Skip to content

Commit

Permalink
Merge pull request #34 from henribru/defaults
Browse files Browse the repository at this point in the history
Add defaults
  • Loading branch information
henribru authored Nov 15, 2023
2 parents a6f8d0b + 76c6092 commit def40c3
Show file tree
Hide file tree
Showing 3,335 changed files with 20,151 additions and 20,109 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
28 changes: 14 additions & 14 deletions google-stubs/ads/googleads/client.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -696,33 +696,33 @@ class GoogleAdsClient:
origin: Union[proto.Message, Message],
) -> None: ...
@classmethod
def load_from_env(cls, version: str | None = ...) -> GoogleAdsClient: ...
def load_from_env(cls, version: str | None = None) -> GoogleAdsClient: ...
@classmethod
def load_from_string(
cls, yaml_str: str, version: str | None = ...
cls, yaml_str: str, version: str | None = None
) -> GoogleAdsClient: ...
@classmethod
def load_from_storage(
cls, path: str | None = ..., version: str | None = ...
cls, path: str | None = None, version: str | None = None
) -> GoogleAdsClient: ...
@classmethod
def load_from_dict(
cls, config_dict: _ConfigDataUnparsed, version: str | None = ...
cls, config_dict: _ConfigDataUnparsed, version: str | None = None
) -> GoogleAdsClient: ...
def __init__(
self,
credentials: Credentials,
developer_token: str,
endpoint: str | None = ...,
login_customer_id: str | None = ...,
logging_config: Dict[Any, Any] | None = ...,
linked_customer_id: str | None = ...,
version: str | None = ...,
http_proxy: str | None = ...,
use_proto_plus: bool = ...,
use_cloud_org_for_api_access: bool = ...,
endpoint: str | None = None,
login_customer_id: str | None = None,
logging_config: Dict[Any, Any] | None = None,
linked_customer_id: str | None = None,
version: str | None = None,
http_proxy: str | None = None,
use_proto_plus: bool = False,
use_cloud_org_for_api_access: bool | None = None,
) -> None: ...
def get_type(cls, name: str, version: _V = ...) -> Any: ...
def get_type(cls, name: str, version: _V = "v15") -> Any: ...
@overload
def get_service(
self, name: Literal["AccountBudgetProposalService"], version: _V13
Expand Down Expand Up @@ -2472,4 +2472,4 @@ class GoogleAdsClient:
self, name: Literal["UserListService"]
) -> v15.UserListServiceClient: ...
@overload
def get_service(self, name: str, version: _V = ...) -> Any: ...
def get_service(self, name: str, version: _V = "v15") -> Any: ...
2 changes: 1 addition & 1 deletion google-stubs/ads/googleads/config.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ _ConfigDataUnparsed = Union[
def validate_dict(config_data: _ConfigData) -> None: ...
def validate_login_customer_id(login_customer_id: str | None) -> None: ...
def validate_linked_customer_id(linked_customer_id: str | None) -> None: ...
def load_from_yaml_file(path: str | None = ...) -> _ConfigData: ...
def load_from_yaml_file(path: str | None = None) -> _ConfigData: ...
@overload
def load_from_dict(
config_dict: _InstalledAppConfigDataUnparsed,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ _Response = TypeVar("_Response")
class ExceptionInterceptor(
Interceptor, grpc.UnaryUnaryClientInterceptor, grpc.UnaryStreamClientInterceptor
):
def __init__(self, api_version: str, use_proto_plus: bool = ...) -> None: ...
def __init__(self, api_version: str, use_proto_plus: bool = False) -> None: ...
def intercept_unary_unary(
self,
continuation: Callable[[grpc.ClientCallDetails, _Request], _Response],
Expand Down
2 changes: 1 addition & 1 deletion google-stubs/ads/googleads/interceptors/interceptor.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ class Interceptor:
method: str,
timeout: float,
metadata: List[Tuple[str, Any]],
credentials: grpc.CallCredentials | None = ...,
credentials: grpc.CallCredentials | None = None,
) -> _ClientCallDetails: ...
def __init__(self, api_version: str) -> None: ...
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class LoggingInterceptor(
endpoint: str = ...
logger: logging.Logger = ...
def __init__(
self, logger: logging.Logger, api_version: str, endpoint: str | None = ...
self, logger: logging.Logger, api_version: str, endpoint: str | None = None
) -> None: ...
def log_successful_request(
self,
Expand Down
4 changes: 2 additions & 2 deletions google-stubs/ads/googleads/oauth2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ def get_installed_app_credentials(
client_secret: str,
refresh_token: str,
http_proxy: str | None,
token_uri: str = ...,
token_uri: str = "https://accounts.google.com/o/oauth2/token",
) -> InstalledAppCredentials: ...
def get_service_account_credentials(
json_key_file_path: str,
subject: str,
http_proxy: str | None,
scopes: List[str] = ...,
scopes: List[str] = ["https://www.googleapis.com/auth/adwords"],
) -> ServiceAccountCreds: ...
@overload
def get_credentials(
Expand Down
20 changes: 10 additions & 10 deletions google-stubs/ads/googleads/v13/common/types/ad_asset.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,29 @@ class AdDiscoveryCarouselCardAsset(proto.Message):
asset: str
def __init__(
self: _M,
mapping: _M | Mapping | google.protobuf.message.Message | None = ...,
mapping: _M | Mapping | google.protobuf.message.Message | None = None,
*,
ignore_unknown_fields: bool = ...,
ignore_unknown_fields: bool = False,
asset: str = ...
) -> None: ...

class AdImageAsset(proto.Message):
asset: str
def __init__(
self: _M,
mapping: _M | Mapping | google.protobuf.message.Message | None = ...,
mapping: _M | Mapping | google.protobuf.message.Message | None = None,
*,
ignore_unknown_fields: bool = ...,
ignore_unknown_fields: bool = False,
asset: str = ...
) -> None: ...

class AdMediaBundleAsset(proto.Message):
asset: str
def __init__(
self: _M,
mapping: _M | Mapping | google.protobuf.message.Message | None = ...,
mapping: _M | Mapping | google.protobuf.message.Message | None = None,
*,
ignore_unknown_fields: bool = ...,
ignore_unknown_fields: bool = False,
asset: str = ...
) -> None: ...

Expand All @@ -51,9 +51,9 @@ class AdTextAsset(proto.Message):
policy_summary_info: AdAssetPolicySummary
def __init__(
self: _M,
mapping: _M | Mapping | google.protobuf.message.Message | None = ...,
mapping: _M | Mapping | google.protobuf.message.Message | None = None,
*,
ignore_unknown_fields: bool = ...,
ignore_unknown_fields: bool = False,
text: str = ...,
pinned_field: ServedAssetFieldTypeEnum.ServedAssetFieldType = ...,
asset_performance_label: AssetPerformanceLabelEnum.AssetPerformanceLabel = ...,
Expand All @@ -64,8 +64,8 @@ class AdVideoAsset(proto.Message):
asset: str
def __init__(
self: _M,
mapping: _M | Mapping | google.protobuf.message.Message | None = ...,
mapping: _M | Mapping | google.protobuf.message.Message | None = None,
*,
ignore_unknown_fields: bool = ...,
ignore_unknown_fields: bool = False,
asset: str = ...
) -> None: ...
Loading

0 comments on commit def40c3

Please sign in to comment.