diff --git a/packages/google-cloud-billing/google/cloud/billing_v1/services/cloud_billing/client.py b/packages/google-cloud-billing/google/cloud/billing_v1/services/cloud_billing/client.py index 52e843632174..9add2c25d73c 100644 --- a/packages/google-cloud-billing/google/cloud/billing_v1/services/cloud_billing/client.py +++ b/packages/google-cloud-billing/google/cloud/billing_v1/services/cloud_billing/client.py @@ -17,7 +17,7 @@ from distutils import util import os import re -from typing import Callable, Dict, Optional, Sequence, Tuple, Type, Union +from typing import Dict, Optional, Sequence, Tuple, Type, Union import pkg_resources from google.api_core import client_options as client_options_lib # type: ignore @@ -338,7 +338,7 @@ def __init__( def get_billing_account( self, - request: cloud_billing.GetBillingAccountRequest = None, + request: Union[cloud_billing.GetBillingAccountRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -350,7 +350,7 @@ def get_billing_account( account `__. Args: - request (google.cloud.billing_v1.types.GetBillingAccountRequest): + request (Union[google.cloud.billing_v1.types.GetBillingAccountRequest, dict]): The request object. Request message for `GetBillingAccount`. name (str): @@ -413,7 +413,7 @@ def get_billing_account( def list_billing_accounts( self, - request: cloud_billing.ListBillingAccountsRequest = None, + request: Union[cloud_billing.ListBillingAccountsRequest, dict] = None, *, retry: retries.Retry = gapic_v1.method.DEFAULT, timeout: float = None, @@ -424,7 +424,7 @@ def list_billing_accounts( `view `__. Args: - request (google.cloud.billing_v1.types.ListBillingAccountsRequest): + request (Union[google.cloud.billing_v1.types.ListBillingAccountsRequest, dict]): The request object. Request message for `ListBillingAccounts`. retry (google.api_core.retry.Retry): Designation of what errors, if any, @@ -467,7 +467,7 @@ def list_billing_accounts( def update_billing_account( self, - request: cloud_billing.UpdateBillingAccountRequest = None, + request: Union[cloud_billing.UpdateBillingAccountRequest, dict] = None, *, name: str = None, account: cloud_billing.BillingAccount = None, @@ -483,7 +483,7 @@ def update_billing_account( of the billing account. Args: - request (google.cloud.billing_v1.types.UpdateBillingAccountRequest): + request (Union[google.cloud.billing_v1.types.UpdateBillingAccountRequest, dict]): The request object. Request message for `UpdateBillingAccount`. name (str): @@ -555,7 +555,7 @@ def update_billing_account( def create_billing_account( self, - request: cloud_billing.CreateBillingAccountRequest = None, + request: Union[cloud_billing.CreateBillingAccountRequest, dict] = None, *, billing_account: cloud_billing.BillingAccount = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -574,7 +574,7 @@ def create_billing_account( been provisioned as a reseller account. Args: - request (google.cloud.billing_v1.types.CreateBillingAccountRequest): + request (Union[google.cloud.billing_v1.types.CreateBillingAccountRequest, dict]): The request object. Request message for `CreateBillingAccount`. billing_account (google.cloud.billing_v1.types.BillingAccount): @@ -634,7 +634,7 @@ def create_billing_account( def list_project_billing_info( self, - request: cloud_billing.ListProjectBillingInfoRequest = None, + request: Union[cloud_billing.ListProjectBillingInfoRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -648,7 +648,7 @@ def list_project_billing_info( `viewers `__. Args: - request (google.cloud.billing_v1.types.ListProjectBillingInfoRequest): + request (Union[google.cloud.billing_v1.types.ListProjectBillingInfoRequest, dict]): The request object. Request message for `ListProjectBillingInfo`. name (str): @@ -720,7 +720,7 @@ def list_project_billing_info( def get_project_billing_info( self, - request: cloud_billing.GetProjectBillingInfoRequest = None, + request: Union[cloud_billing.GetProjectBillingInfoRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -732,7 +732,7 @@ def get_project_billing_info( project `__. Args: - request (google.cloud.billing_v1.types.GetProjectBillingInfoRequest): + request (Union[google.cloud.billing_v1.types.GetProjectBillingInfoRequest, dict]): The request object. Request message for `GetProjectBillingInfo`. name (str): @@ -797,7 +797,7 @@ def get_project_billing_info( def update_project_billing_info( self, - request: cloud_billing.UpdateProjectBillingInfoRequest = None, + request: Union[cloud_billing.UpdateProjectBillingInfoRequest, dict] = None, *, name: str = None, project_billing_info: cloud_billing.ProjectBillingInfo = None, @@ -843,7 +843,7 @@ def update_project_billing_info( account. Args: - request (google.cloud.billing_v1.types.UpdateProjectBillingInfoRequest): + request (Union[google.cloud.billing_v1.types.UpdateProjectBillingInfoRequest, dict]): The request object. Request message for `UpdateProjectBillingInfo`. name (str): @@ -920,7 +920,7 @@ def update_project_billing_info( def get_iam_policy( self, - request: iam_policy_pb2.GetIamPolicyRequest = None, + request: Union[iam_policy_pb2.GetIamPolicyRequest, dict] = None, *, resource: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -933,7 +933,7 @@ def get_iam_policy( `viewers `__. Args: - request (google.iam.v1.iam_policy_pb2.GetIamPolicyRequest): + request (Union[google.iam.v1.iam_policy_pb2.GetIamPolicyRequest, dict]): The request object. Request message for `GetIamPolicy` method. resource (str): @@ -1048,7 +1048,7 @@ def get_iam_policy( def set_iam_policy( self, - request: iam_policy_pb2.SetIamPolicyRequest = None, + request: Union[iam_policy_pb2.SetIamPolicyRequest, dict] = None, *, resource: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -1062,7 +1062,7 @@ def set_iam_policy( `administrators `__. Args: - request (google.iam.v1.iam_policy_pb2.SetIamPolicyRequest): + request (Union[google.iam.v1.iam_policy_pb2.SetIamPolicyRequest, dict]): The request object. Request message for `SetIamPolicy` method. resource (str): @@ -1177,7 +1177,7 @@ def set_iam_policy( def test_iam_permissions( self, - request: iam_policy_pb2.TestIamPermissionsRequest = None, + request: Union[iam_policy_pb2.TestIamPermissionsRequest, dict] = None, *, resource: str = None, permissions: Sequence[str] = None, @@ -1192,7 +1192,7 @@ def test_iam_permissions( resource. Args: - request (google.iam.v1.iam_policy_pb2.TestIamPermissionsRequest): + request (Union[google.iam.v1.iam_policy_pb2.TestIamPermissionsRequest, dict]): The request object. Request message for `TestIamPermissions` method. resource (str): diff --git a/packages/google-cloud-billing/google/cloud/billing_v1/services/cloud_billing/transports/base.py b/packages/google-cloud-billing/google/cloud/billing_v1/services/cloud_billing/transports/base.py index 5afd168a6224..95c77a8be5db 100644 --- a/packages/google-cloud-billing/google/cloud/billing_v1/services/cloud_billing/transports/base.py +++ b/packages/google-cloud-billing/google/cloud/billing_v1/services/cloud_billing/transports/base.py @@ -117,7 +117,7 @@ def __init__( **scopes_kwargs, quota_project_id=quota_project_id ) - # If the credentials is service account credentials, then always try to use self signed JWT. + # If the credentials are service account credentials, then always try to use self signed JWT. if ( always_use_jwt_access and isinstance(credentials, service_account.Credentials) diff --git a/packages/google-cloud-billing/google/cloud/billing_v1/services/cloud_billing/transports/grpc.py b/packages/google-cloud-billing/google/cloud/billing_v1/services/cloud_billing/transports/grpc.py index 1dfb6524433b..2165e89ee3d4 100644 --- a/packages/google-cloud-billing/google/cloud/billing_v1/services/cloud_billing/transports/grpc.py +++ b/packages/google-cloud-billing/google/cloud/billing_v1/services/cloud_billing/transports/grpc.py @@ -83,16 +83,16 @@ def __init__( api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint. If provided, it overrides the ``host`` argument and tries to create a mutual TLS channel with client SSL credentials from - ``client_cert_source`` or applicatin default SSL credentials. + ``client_cert_source`` or application default SSL credentials. client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]): Deprecated. A callback to provide client SSL certificate bytes and private key bytes, both in PEM format. It is ignored if ``api_mtls_endpoint`` is None. ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials - for grpc channel. It is ignored if ``channel`` is provided. + for the grpc channel. It is ignored if ``channel`` is provided. client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]): A callback to provide client certificate bytes and private key bytes, - both in PEM format. It is used to configure mutual TLS channel. It is + both in PEM format. It is used to configure a mutual TLS channel. It is ignored if ``channel`` or ``ssl_channel_credentials`` is provided. quota_project_id (Optional[str]): An optional project to use for billing and quota. diff --git a/packages/google-cloud-billing/google/cloud/billing_v1/services/cloud_billing/transports/grpc_asyncio.py b/packages/google-cloud-billing/google/cloud/billing_v1/services/cloud_billing/transports/grpc_asyncio.py index 43989ef36bba..63365b44c596 100644 --- a/packages/google-cloud-billing/google/cloud/billing_v1/services/cloud_billing/transports/grpc_asyncio.py +++ b/packages/google-cloud-billing/google/cloud/billing_v1/services/cloud_billing/transports/grpc_asyncio.py @@ -130,16 +130,16 @@ def __init__( api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint. If provided, it overrides the ``host`` argument and tries to create a mutual TLS channel with client SSL credentials from - ``client_cert_source`` or applicatin default SSL credentials. + ``client_cert_source`` or application default SSL credentials. client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]): Deprecated. A callback to provide client SSL certificate bytes and private key bytes, both in PEM format. It is ignored if ``api_mtls_endpoint`` is None. ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials - for grpc channel. It is ignored if ``channel`` is provided. + for the grpc channel. It is ignored if ``channel`` is provided. client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]): A callback to provide client certificate bytes and private key bytes, - both in PEM format. It is used to configure mutual TLS channel. It is + both in PEM format. It is used to configure a mutual TLS channel. It is ignored if ``channel`` or ``ssl_channel_credentials`` is provided. quota_project_id (Optional[str]): An optional project to use for billing and quota. diff --git a/packages/google-cloud-billing/google/cloud/billing_v1/services/cloud_catalog/client.py b/packages/google-cloud-billing/google/cloud/billing_v1/services/cloud_catalog/client.py index 2f29897e02a9..33db2052e089 100644 --- a/packages/google-cloud-billing/google/cloud/billing_v1/services/cloud_catalog/client.py +++ b/packages/google-cloud-billing/google/cloud/billing_v1/services/cloud_catalog/client.py @@ -17,7 +17,7 @@ from distutils import util import os import re -from typing import Callable, Dict, Optional, Sequence, Tuple, Type, Union +from typing import Dict, Optional, Sequence, Tuple, Type, Union import pkg_resources from google.api_core import client_options as client_options_lib # type: ignore @@ -359,7 +359,7 @@ def __init__( def list_services( self, - request: cloud_catalog.ListServicesRequest = None, + request: Union[cloud_catalog.ListServicesRequest, dict] = None, *, retry: retries.Retry = gapic_v1.method.DEFAULT, timeout: float = None, @@ -368,7 +368,7 @@ def list_services( r"""Lists all public cloud services. Args: - request (google.cloud.billing_v1.types.ListServicesRequest): + request (Union[google.cloud.billing_v1.types.ListServicesRequest, dict]): The request object. Request message for `ListServices`. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. @@ -410,7 +410,7 @@ def list_services( def list_skus( self, - request: cloud_catalog.ListSkusRequest = None, + request: Union[cloud_catalog.ListSkusRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -421,7 +421,7 @@ def list_skus( service. Args: - request (google.cloud.billing_v1.types.ListSkusRequest): + request (Union[google.cloud.billing_v1.types.ListSkusRequest, dict]): The request object. Request message for `ListSkus`. parent (str): Required. The name of the service. diff --git a/packages/google-cloud-billing/google/cloud/billing_v1/services/cloud_catalog/transports/base.py b/packages/google-cloud-billing/google/cloud/billing_v1/services/cloud_catalog/transports/base.py index 196570a2b2a6..5c26aec8d08c 100644 --- a/packages/google-cloud-billing/google/cloud/billing_v1/services/cloud_catalog/transports/base.py +++ b/packages/google-cloud-billing/google/cloud/billing_v1/services/cloud_catalog/transports/base.py @@ -115,7 +115,7 @@ def __init__( **scopes_kwargs, quota_project_id=quota_project_id ) - # If the credentials is service account credentials, then always try to use self signed JWT. + # If the credentials are service account credentials, then always try to use self signed JWT. if ( always_use_jwt_access and isinstance(credentials, service_account.Credentials) diff --git a/packages/google-cloud-billing/google/cloud/billing_v1/services/cloud_catalog/transports/grpc.py b/packages/google-cloud-billing/google/cloud/billing_v1/services/cloud_catalog/transports/grpc.py index 76e48f8df143..aa0cdd60debc 100644 --- a/packages/google-cloud-billing/google/cloud/billing_v1/services/cloud_catalog/transports/grpc.py +++ b/packages/google-cloud-billing/google/cloud/billing_v1/services/cloud_catalog/transports/grpc.py @@ -82,16 +82,16 @@ def __init__( api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint. If provided, it overrides the ``host`` argument and tries to create a mutual TLS channel with client SSL credentials from - ``client_cert_source`` or applicatin default SSL credentials. + ``client_cert_source`` or application default SSL credentials. client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]): Deprecated. A callback to provide client SSL certificate bytes and private key bytes, both in PEM format. It is ignored if ``api_mtls_endpoint`` is None. ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials - for grpc channel. It is ignored if ``channel`` is provided. + for the grpc channel. It is ignored if ``channel`` is provided. client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]): A callback to provide client certificate bytes and private key bytes, - both in PEM format. It is used to configure mutual TLS channel. It is + both in PEM format. It is used to configure a mutual TLS channel. It is ignored if ``channel`` or ``ssl_channel_credentials`` is provided. quota_project_id (Optional[str]): An optional project to use for billing and quota. diff --git a/packages/google-cloud-billing/google/cloud/billing_v1/services/cloud_catalog/transports/grpc_asyncio.py b/packages/google-cloud-billing/google/cloud/billing_v1/services/cloud_catalog/transports/grpc_asyncio.py index 91e781764567..da0523c6f1b7 100644 --- a/packages/google-cloud-billing/google/cloud/billing_v1/services/cloud_catalog/transports/grpc_asyncio.py +++ b/packages/google-cloud-billing/google/cloud/billing_v1/services/cloud_catalog/transports/grpc_asyncio.py @@ -129,16 +129,16 @@ def __init__( api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint. If provided, it overrides the ``host`` argument and tries to create a mutual TLS channel with client SSL credentials from - ``client_cert_source`` or applicatin default SSL credentials. + ``client_cert_source`` or application default SSL credentials. client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]): Deprecated. A callback to provide client SSL certificate bytes and private key bytes, both in PEM format. It is ignored if ``api_mtls_endpoint`` is None. ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials - for grpc channel. It is ignored if ``channel`` is provided. + for the grpc channel. It is ignored if ``channel`` is provided. client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]): A callback to provide client certificate bytes and private key bytes, - both in PEM format. It is used to configure mutual TLS channel. It is + both in PEM format. It is used to configure a mutual TLS channel. It is ignored if ``channel`` or ``ssl_channel_credentials`` is provided. quota_project_id (Optional[str]): An optional project to use for billing and quota.