Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.51.2 (#269)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

fix: add 'dict' annotation type to 'request'

Committer: @busunkim96
PiperOrigin-RevId: 398509016

Source-Link: googleapis/googleapis@b224dfa

Source-Link: googleapis/googleapis-gen@63a1db7
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjNhMWRiN2EzOGQ3NGI5NjM5NTkyZjUyMWVkMWRhYWY3Mjk5YWQ5YSJ9
  • Loading branch information
gcf-owl-bot[bot] authored Sep 24, 2021
1 parent 36e9526 commit 1741115
Show file tree
Hide file tree
Showing 17 changed files with 126 additions and 114 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -358,7 +358,9 @@ def __init__(

def create_autoscaling_policy(
self,
request: autoscaling_policies.CreateAutoscalingPolicyRequest = None,
request: Union[
autoscaling_policies.CreateAutoscalingPolicyRequest, dict
] = None,
*,
parent: str = None,
policy: autoscaling_policies.AutoscalingPolicy = None,
Expand All @@ -369,7 +371,7 @@ def create_autoscaling_policy(
r"""Creates new autoscaling policy.
Args:
request (google.cloud.dataproc_v1.types.CreateAutoscalingPolicyRequest):
request (Union[google.cloud.dataproc_v1.types.CreateAutoscalingPolicyRequest, dict]):
The request object. A request to create an autoscaling
policy.
parent (str):
Expand Down Expand Up @@ -452,7 +454,9 @@ def create_autoscaling_policy(

def update_autoscaling_policy(
self,
request: autoscaling_policies.UpdateAutoscalingPolicyRequest = None,
request: Union[
autoscaling_policies.UpdateAutoscalingPolicyRequest, dict
] = None,
*,
policy: autoscaling_policies.AutoscalingPolicy = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -465,7 +469,7 @@ def update_autoscaling_policy(
replacements.
Args:
request (google.cloud.dataproc_v1.types.UpdateAutoscalingPolicyRequest):
request (Union[google.cloud.dataproc_v1.types.UpdateAutoscalingPolicyRequest, dict]):
The request object. A request to update an autoscaling
policy.
policy (google.cloud.dataproc_v1.types.AutoscalingPolicy):
Expand Down Expand Up @@ -530,7 +534,7 @@ def update_autoscaling_policy(

def get_autoscaling_policy(
self,
request: autoscaling_policies.GetAutoscalingPolicyRequest = None,
request: Union[autoscaling_policies.GetAutoscalingPolicyRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -540,7 +544,7 @@ def get_autoscaling_policy(
r"""Retrieves autoscaling policy.
Args:
request (google.cloud.dataproc_v1.types.GetAutoscalingPolicyRequest):
request (Union[google.cloud.dataproc_v1.types.GetAutoscalingPolicyRequest, dict]):
The request object. A request to fetch an autoscaling
policy.
name (str):
Expand Down Expand Up @@ -611,7 +615,9 @@ def get_autoscaling_policy(

def list_autoscaling_policies(
self,
request: autoscaling_policies.ListAutoscalingPoliciesRequest = None,
request: Union[
autoscaling_policies.ListAutoscalingPoliciesRequest, dict
] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -621,7 +627,7 @@ def list_autoscaling_policies(
r"""Lists autoscaling policies in the project.
Args:
request (google.cloud.dataproc_v1.types.ListAutoscalingPoliciesRequest):
request (Union[google.cloud.dataproc_v1.types.ListAutoscalingPoliciesRequest, dict]):
The request object. A request to list autoscaling
policies in a project.
parent (str):
Expand Down Expand Up @@ -703,7 +709,9 @@ def list_autoscaling_policies(

def delete_autoscaling_policy(
self,
request: autoscaling_policies.DeleteAutoscalingPolicyRequest = None,
request: Union[
autoscaling_policies.DeleteAutoscalingPolicyRequest, dict
] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -715,7 +723,7 @@ def delete_autoscaling_policy(
more clusters.
Args:
request (google.cloud.dataproc_v1.types.DeleteAutoscalingPolicyRequest):
request (Union[google.cloud.dataproc_v1.types.DeleteAutoscalingPolicyRequest, dict]):
The request object. A request to delete an autoscaling
policy.
Autoscaling policies in use by one or more clusters will
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -377,7 +377,7 @@ def __init__(

def create_cluster(
self,
request: clusters.CreateClusterRequest = None,
request: Union[clusters.CreateClusterRequest, dict] = None,
*,
project_id: str = None,
region: str = None,
Expand All @@ -392,7 +392,7 @@ def create_cluster(
`ClusterOperationMetadata <https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata>`__.
Args:
request (google.cloud.dataproc_v1.types.CreateClusterRequest):
request (Union[google.cloud.dataproc_v1.types.CreateClusterRequest, dict]):
The request object. A request to create a cluster.
project_id (str):
Required. The ID of the Google Cloud
Expand Down Expand Up @@ -473,7 +473,7 @@ def create_cluster(

def update_cluster(
self,
request: clusters.UpdateClusterRequest = None,
request: Union[clusters.UpdateClusterRequest, dict] = None,
*,
project_id: str = None,
region: str = None,
Expand All @@ -490,7 +490,7 @@ def update_cluster(
`ClusterOperationMetadata <https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata>`__.
Args:
request (google.cloud.dataproc_v1.types.UpdateClusterRequest):
request (Union[google.cloud.dataproc_v1.types.UpdateClusterRequest, dict]):
The request object. A request to update a cluster.
project_id (str):
Required. The ID of the Google Cloud
Expand Down Expand Up @@ -648,7 +648,7 @@ def update_cluster(

def stop_cluster(
self,
request: clusters.StopClusterRequest = None,
request: Union[clusters.StopClusterRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
Expand All @@ -657,7 +657,7 @@ def stop_cluster(
r"""Stops a cluster in a project.
Args:
request (google.cloud.dataproc_v1.types.StopClusterRequest):
request (Union[google.cloud.dataproc_v1.types.StopClusterRequest, dict]):
The request object. A request to stop a cluster.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
Expand Down Expand Up @@ -701,7 +701,7 @@ def stop_cluster(

def start_cluster(
self,
request: clusters.StartClusterRequest = None,
request: Union[clusters.StartClusterRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
Expand All @@ -710,7 +710,7 @@ def start_cluster(
r"""Starts a cluster in a project.
Args:
request (google.cloud.dataproc_v1.types.StartClusterRequest):
request (Union[google.cloud.dataproc_v1.types.StartClusterRequest, dict]):
The request object. A request to start a cluster.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
Expand Down Expand Up @@ -754,7 +754,7 @@ def start_cluster(

def delete_cluster(
self,
request: clusters.DeleteClusterRequest = None,
request: Union[clusters.DeleteClusterRequest, dict] = None,
*,
project_id: str = None,
region: str = None,
Expand All @@ -769,7 +769,7 @@ def delete_cluster(
`ClusterOperationMetadata <https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata>`__.
Args:
request (google.cloud.dataproc_v1.types.DeleteClusterRequest):
request (Union[google.cloud.dataproc_v1.types.DeleteClusterRequest, dict]):
The request object. A request to delete a cluster.
project_id (str):
Required. The ID of the Google Cloud
Expand Down Expand Up @@ -861,7 +861,7 @@ def delete_cluster(

def get_cluster(
self,
request: clusters.GetClusterRequest = None,
request: Union[clusters.GetClusterRequest, dict] = None,
*,
project_id: str = None,
region: str = None,
Expand All @@ -874,7 +874,7 @@ def get_cluster(
project.
Args:
request (google.cloud.dataproc_v1.types.GetClusterRequest):
request (Union[google.cloud.dataproc_v1.types.GetClusterRequest, dict]):
The request object. Request to get the resource
representation for a cluster in a project.
project_id (str):
Expand Down Expand Up @@ -947,7 +947,7 @@ def get_cluster(

def list_clusters(
self,
request: clusters.ListClustersRequest = None,
request: Union[clusters.ListClustersRequest, dict] = None,
*,
project_id: str = None,
region: str = None,
Expand All @@ -960,7 +960,7 @@ def list_clusters(
alphabetically.
Args:
request (google.cloud.dataproc_v1.types.ListClustersRequest):
request (Union[google.cloud.dataproc_v1.types.ListClustersRequest, dict]):
The request object. A request to list the clusters in a
project.
project_id (str):
Expand Down Expand Up @@ -1064,7 +1064,7 @@ def list_clusters(

def diagnose_cluster(
self,
request: clusters.DiagnoseClusterRequest = None,
request: Union[clusters.DiagnoseClusterRequest, dict] = None,
*,
project_id: str = None,
region: str = None,
Expand All @@ -1083,7 +1083,7 @@ def diagnose_cluster(
`DiagnoseClusterResults <https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults>`__.
Args:
request (google.cloud.dataproc_v1.types.DiagnoseClusterRequest):
request (Union[google.cloud.dataproc_v1.types.DiagnoseClusterRequest, dict]):
The request object. A request to collect cluster
diagnostic information.
project_id (str):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading

0 comments on commit 1741115

Please sign in to comment.