Skip to content

Commit

Permalink
Modernize generated types
Browse files Browse the repository at this point in the history
  • Loading branch information
henribru committed Nov 15, 2023
1 parent 39307c5 commit a631727
Show file tree
Hide file tree
Showing 991 changed files with 15,323 additions and 16,864 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ from .transports.base import AccountBudgetProposalServiceTransport

class AccountBudgetProposalServiceClientMeta(type):
def get_transport_class(
cls, label: Optional[str] = None
) -> Type[AccountBudgetProposalServiceTransport]: ...
cls, label: str | None = None
) -> type[AccountBudgetProposalServiceTransport]: ...

class AccountBudgetProposalServiceClient(
metaclass=AccountBudgetProposalServiceClientMeta
Expand All @@ -34,58 +34,55 @@ class AccountBudgetProposalServiceClient(
@staticmethod
def account_budget_path(customer_id: str, account_budget_id: str) -> str: ...
@staticmethod
def parse_account_budget_path(path: str) -> Dict[str, str]: ...
def parse_account_budget_path(path: str) -> dict[str, str]: ...
@staticmethod
def account_budget_proposal_path(
customer_id: str, account_budget_proposal_id: str
) -> str: ...
@staticmethod
def parse_account_budget_proposal_path(path: str) -> Dict[str, str]: ...
def parse_account_budget_proposal_path(path: str) -> dict[str, str]: ...
@staticmethod
def billing_setup_path(customer_id: str, billing_setup_id: str) -> str: ...
@staticmethod
def parse_billing_setup_path(path: str) -> Dict[str, str]: ...
def parse_billing_setup_path(path: str) -> dict[str, str]: ...
@staticmethod
def common_billing_account_path(billing_account: str) -> str: ...
@staticmethod
def parse_common_billing_account_path(path: str) -> Dict[str, str]: ...
def parse_common_billing_account_path(path: str) -> dict[str, str]: ...
@staticmethod
def common_folder_path(folder: str) -> str: ...
@staticmethod
def parse_common_folder_path(path: str) -> Dict[str, str]: ...
def parse_common_folder_path(path: str) -> dict[str, str]: ...
@staticmethod
def common_organization_path(organization: str) -> str: ...
@staticmethod
def parse_common_organization_path(path: str) -> Dict[str, str]: ...
def parse_common_organization_path(path: str) -> dict[str, str]: ...
@staticmethod
def common_project_path(project: str) -> str: ...
@staticmethod
def parse_common_project_path(path: str) -> Dict[str, str]: ...
def parse_common_project_path(path: str) -> dict[str, str]: ...
@staticmethod
def common_location_path(project: str, location: str) -> str: ...
@staticmethod
def parse_common_location_path(path: str) -> Dict[str, str]: ...
def parse_common_location_path(path: str) -> dict[str, str]: ...
def __init__(
self,
*,
credentials: Optional[ga_credentials.Credentials] = None,
transport: Optional[Union[str, AccountBudgetProposalServiceTransport]] = None,
client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None,
credentials: ga_credentials.Credentials | None = None,
transport: str | AccountBudgetProposalServiceTransport | None = None,
client_options: client_options_lib.ClientOptions | dict | None = None,
client_info: gapic_v1.client_info.ClientInfo = ...
) -> None: ...
def mutate_account_budget_proposal(
self,
request: Optional[
Union[
account_budget_proposal_service.MutateAccountBudgetProposalRequest, dict
]
] = None,
request: account_budget_proposal_service.MutateAccountBudgetProposalRequest
| dict
| None = None,
*,
customer_id: Optional[str] = None,
operation: Optional[
account_budget_proposal_service.AccountBudgetProposalOperation
] = None,
retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ...,
timeout: Union[float, object] = ...,
metadata: Sequence[Tuple[str, str]] = ()
customer_id: str | None = None,
operation: account_budget_proposal_service.AccountBudgetProposalOperation
| None = None,
retry: retries.Retry | gapic_v1.method._MethodDefault = ...,
timeout: float | object = ...,
metadata: Sequence[tuple[str, str]] = ()
) -> account_budget_proposal_service.MutateAccountBudgetProposalResponse: ...
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ class AccountBudgetProposalServiceTransport(abc.ABC):
self,
*,
host: str = "googleads.googleapis.com",
credentials: Optional[ga_credentials.Credentials] = None,
credentials_file: Optional[str] = None,
scopes: Optional[Sequence[str]] = None,
quota_project_id: Optional[str] = None,
credentials: ga_credentials.Credentials | None = None,
credentials_file: str | None = None,
scopes: Sequence[str] | None = None,
quota_project_id: str | None = None,
client_info: gapic_v1.client_info.ClientInfo = ...,
always_use_jwt_access: Optional[bool] = False,
always_use_jwt_access: bool | None = False,
**kwargs
) -> None: ...
def close(self) -> None: ...
Expand All @@ -28,10 +28,8 @@ class AccountBudgetProposalServiceTransport(abc.ABC):
self,
) -> Callable[
[account_budget_proposal_service.MutateAccountBudgetProposalRequest],
Union[
account_budget_proposal_service.MutateAccountBudgetProposalResponse,
Awaitable[
account_budget_proposal_service.MutateAccountBudgetProposalResponse
],
account_budget_proposal_service.MutateAccountBudgetProposalResponse
| Awaitable[
account_budget_proposal_service.MutateAccountBudgetProposalResponse
],
]: ...
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,26 @@ class AccountBudgetProposalServiceGrpcTransport(AccountBudgetProposalServiceTran
self,
*,
host: str = "googleads.googleapis.com",
credentials: Optional[ga_credentials.Credentials] = None,
credentials_file: Optional[str] = None,
scopes: Optional[Sequence[str]] = None,
channel: Optional[grpc.Channel] = None,
api_mtls_endpoint: Optional[str] = None,
client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None,
ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None,
client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None,
quota_project_id: Optional[str] = None,
credentials: ga_credentials.Credentials | None = None,
credentials_file: str | None = None,
scopes: Sequence[str] | None = None,
channel: grpc.Channel | None = None,
api_mtls_endpoint: str | None = None,
client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None,
ssl_channel_credentials: grpc.ChannelCredentials | None = None,
client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None,
quota_project_id: str | None = None,
client_info: gapic_v1.client_info.ClientInfo = ...,
always_use_jwt_access: Optional[bool] = False
always_use_jwt_access: bool | None = False
) -> None: ...
@classmethod
def create_channel(
cls,
host: str = "googleads.googleapis.com",
credentials: Optional[ga_credentials.Credentials] = None,
credentials_file: Optional[str] = None,
scopes: Optional[Sequence[str]] = None,
quota_project_id: Optional[str] = None,
credentials: ga_credentials.Credentials | None = None,
credentials_file: str | None = None,
scopes: Sequence[str] | None = None,
quota_project_id: str | None = None,
**kwargs
) -> grpc.Channel: ...
@property
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ from .transports.base import AccountLinkServiceTransport

class AccountLinkServiceClientMeta(type):
def get_transport_class(
cls, label: Optional[str] = None
) -> Type[AccountLinkServiceTransport]: ...
cls, label: str | None = None
) -> type[AccountLinkServiceTransport]: ...

class AccountLinkServiceClient(metaclass=AccountLinkServiceClientMeta):
DEFAULT_ENDPOINT: str
Expand All @@ -33,60 +33,56 @@ class AccountLinkServiceClient(metaclass=AccountLinkServiceClientMeta):
@staticmethod
def account_link_path(customer_id: str, account_link_id: str) -> str: ...
@staticmethod
def parse_account_link_path(path: str) -> Dict[str, str]: ...
def parse_account_link_path(path: str) -> dict[str, str]: ...
@staticmethod
def customer_path(customer_id: str) -> str: ...
@staticmethod
def parse_customer_path(path: str) -> Dict[str, str]: ...
def parse_customer_path(path: str) -> dict[str, str]: ...
@staticmethod
def common_billing_account_path(billing_account: str) -> str: ...
@staticmethod
def parse_common_billing_account_path(path: str) -> Dict[str, str]: ...
def parse_common_billing_account_path(path: str) -> dict[str, str]: ...
@staticmethod
def common_folder_path(folder: str) -> str: ...
@staticmethod
def parse_common_folder_path(path: str) -> Dict[str, str]: ...
def parse_common_folder_path(path: str) -> dict[str, str]: ...
@staticmethod
def common_organization_path(organization: str) -> str: ...
@staticmethod
def parse_common_organization_path(path: str) -> Dict[str, str]: ...
def parse_common_organization_path(path: str) -> dict[str, str]: ...
@staticmethod
def common_project_path(project: str) -> str: ...
@staticmethod
def parse_common_project_path(path: str) -> Dict[str, str]: ...
def parse_common_project_path(path: str) -> dict[str, str]: ...
@staticmethod
def common_location_path(project: str, location: str) -> str: ...
@staticmethod
def parse_common_location_path(path: str) -> Dict[str, str]: ...
def parse_common_location_path(path: str) -> dict[str, str]: ...
def __init__(
self,
*,
credentials: Optional[ga_credentials.Credentials] = None,
transport: Optional[Union[str, AccountLinkServiceTransport]] = None,
client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None,
credentials: ga_credentials.Credentials | None = None,
transport: str | AccountLinkServiceTransport | None = None,
client_options: client_options_lib.ClientOptions | dict | None = None,
client_info: gapic_v1.client_info.ClientInfo = ...
) -> None: ...
def create_account_link(
self,
request: Optional[
Union[account_link_service.CreateAccountLinkRequest, dict]
] = None,
request: account_link_service.CreateAccountLinkRequest | dict | None = None,
*,
customer_id: Optional[str] = None,
account_link: Optional[gagr_account_link.AccountLink] = None,
retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ...,
timeout: Union[float, object] = ...,
metadata: Sequence[Tuple[str, str]] = ()
customer_id: str | None = None,
account_link: gagr_account_link.AccountLink | None = None,
retry: retries.Retry | gapic_v1.method._MethodDefault = ...,
timeout: float | object = ...,
metadata: Sequence[tuple[str, str]] = ()
) -> account_link_service.CreateAccountLinkResponse: ...
def mutate_account_link(
self,
request: Optional[
Union[account_link_service.MutateAccountLinkRequest, dict]
] = None,
request: account_link_service.MutateAccountLinkRequest | dict | None = None,
*,
customer_id: Optional[str] = None,
operation: Optional[account_link_service.AccountLinkOperation] = None,
retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ...,
timeout: Union[float, object] = ...,
metadata: Sequence[Tuple[str, str]] = ()
customer_id: str | None = None,
operation: account_link_service.AccountLinkOperation | None = None,
retry: retries.Retry | gapic_v1.method._MethodDefault = ...,
timeout: float | object = ...,
metadata: Sequence[tuple[str, str]] = ()
) -> account_link_service.MutateAccountLinkResponse: ...
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ class AccountLinkServiceTransport(abc.ABC):
self,
*,
host: str = "googleads.googleapis.com",
credentials: Optional[ga_credentials.Credentials] = None,
credentials_file: Optional[str] = None,
scopes: Optional[Sequence[str]] = None,
quota_project_id: Optional[str] = None,
credentials: ga_credentials.Credentials | None = None,
credentials_file: str | None = None,
scopes: Sequence[str] | None = None,
quota_project_id: str | None = None,
client_info: gapic_v1.client_info.ClientInfo = ...,
always_use_jwt_access: Optional[bool] = False,
always_use_jwt_access: bool | None = False,
**kwargs
) -> None: ...
def close(self) -> None: ...
Expand All @@ -28,18 +28,14 @@ class AccountLinkServiceTransport(abc.ABC):
self,
) -> Callable[
[account_link_service.CreateAccountLinkRequest],
Union[
account_link_service.CreateAccountLinkResponse,
Awaitable[account_link_service.CreateAccountLinkResponse],
],
account_link_service.CreateAccountLinkResponse
| Awaitable[account_link_service.CreateAccountLinkResponse],
]: ...
@property
def mutate_account_link(
self,
) -> Callable[
[account_link_service.MutateAccountLinkRequest],
Union[
account_link_service.MutateAccountLinkResponse,
Awaitable[account_link_service.MutateAccountLinkResponse],
],
account_link_service.MutateAccountLinkResponse
| Awaitable[account_link_service.MutateAccountLinkResponse],
]: ...
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,26 @@ class AccountLinkServiceGrpcTransport(AccountLinkServiceTransport):
self,
*,
host: str = "googleads.googleapis.com",
credentials: Optional[ga_credentials.Credentials] = None,
credentials_file: Optional[str] = None,
scopes: Optional[Sequence[str]] = None,
channel: Optional[grpc.Channel] = None,
api_mtls_endpoint: Optional[str] = None,
client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None,
ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None,
client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None,
quota_project_id: Optional[str] = None,
credentials: ga_credentials.Credentials | None = None,
credentials_file: str | None = None,
scopes: Sequence[str] | None = None,
channel: grpc.Channel | None = None,
api_mtls_endpoint: str | None = None,
client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None,
ssl_channel_credentials: grpc.ChannelCredentials | None = None,
client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None,
quota_project_id: str | None = None,
client_info: gapic_v1.client_info.ClientInfo = ...,
always_use_jwt_access: Optional[bool] = False
always_use_jwt_access: bool | None = False
) -> None: ...
@classmethod
def create_channel(
cls,
host: str = "googleads.googleapis.com",
credentials: Optional[ga_credentials.Credentials] = None,
credentials_file: Optional[str] = None,
scopes: Optional[Sequence[str]] = None,
quota_project_id: Optional[str] = None,
credentials: ga_credentials.Credentials | None = None,
credentials_file: str | None = None,
scopes: Sequence[str] | None = None,
quota_project_id: str | None = None,
**kwargs
) -> grpc.Channel: ...
@property
Expand Down
Loading

0 comments on commit a631727

Please sign in to comment.