Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
chore: use gapic-generator-python 0.51.2 (#194)
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] committed Sep 24, 2021
1 parent 58251a1 commit 3a701f7
Show file tree
Hide file tree
Showing 34 changed files with 288 additions and 228 deletions.
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 @@ -364,7 +364,7 @@ def __init__(

def list_game_server_clusters(
self,
request: game_server_clusters.ListGameServerClustersRequest = None,
request: Union[game_server_clusters.ListGameServerClustersRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -375,7 +375,7 @@ def list_game_server_clusters(
location.
Args:
request (google.cloud.gaming_v1.types.ListGameServerClustersRequest):
request (Union[google.cloud.gaming_v1.types.ListGameServerClustersRequest, dict]):
The request object. Request message for
GameServerClustersService.ListGameServerClusters.
parent (str):
Expand Down Expand Up @@ -448,7 +448,7 @@ def list_game_server_clusters(

def get_game_server_cluster(
self,
request: game_server_clusters.GetGameServerClusterRequest = None,
request: Union[game_server_clusters.GetGameServerClusterRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -458,7 +458,7 @@ def get_game_server_cluster(
r"""Gets details of a single game server cluster.
Args:
request (google.cloud.gaming_v1.types.GetGameServerClusterRequest):
request (Union[google.cloud.gaming_v1.types.GetGameServerClusterRequest, dict]):
The request object. Request message for
GameServerClustersService.GetGameServerCluster.
name (str):
Expand Down Expand Up @@ -518,7 +518,9 @@ def get_game_server_cluster(

def create_game_server_cluster(
self,
request: game_server_clusters.CreateGameServerClusterRequest = None,
request: Union[
game_server_clusters.CreateGameServerClusterRequest, dict
] = None,
*,
parent: str = None,
game_server_cluster: game_server_clusters.GameServerCluster = None,
Expand All @@ -531,7 +533,7 @@ def create_game_server_cluster(
and location.
Args:
request (google.cloud.gaming_v1.types.CreateGameServerClusterRequest):
request (Union[google.cloud.gaming_v1.types.CreateGameServerClusterRequest, dict]):
The request object. Request message for
GameServerClustersService.CreateGameServerCluster.
parent (str):
Expand Down Expand Up @@ -626,7 +628,9 @@ def create_game_server_cluster(

def preview_create_game_server_cluster(
self,
request: game_server_clusters.PreviewCreateGameServerClusterRequest = None,
request: Union[
game_server_clusters.PreviewCreateGameServerClusterRequest, dict
] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
Expand All @@ -636,7 +640,7 @@ def preview_create_game_server_cluster(
given project and location.
Args:
request (google.cloud.gaming_v1.types.PreviewCreateGameServerClusterRequest):
request (Union[google.cloud.gaming_v1.types.PreviewCreateGameServerClusterRequest, dict]):
The request object. Request message for
GameServerClustersService.PreviewCreateGameServerCluster.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down Expand Up @@ -683,7 +687,9 @@ def preview_create_game_server_cluster(

def delete_game_server_cluster(
self,
request: game_server_clusters.DeleteGameServerClusterRequest = None,
request: Union[
game_server_clusters.DeleteGameServerClusterRequest, dict
] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -693,7 +699,7 @@ def delete_game_server_cluster(
r"""Deletes a single game server cluster.
Args:
request (google.cloud.gaming_v1.types.DeleteGameServerClusterRequest):
request (Union[google.cloud.gaming_v1.types.DeleteGameServerClusterRequest, dict]):
The request object. Request message for
GameServerClustersService.DeleteGameServerCluster.
name (str):
Expand Down Expand Up @@ -778,7 +784,9 @@ def delete_game_server_cluster(

def preview_delete_game_server_cluster(
self,
request: game_server_clusters.PreviewDeleteGameServerClusterRequest = None,
request: Union[
game_server_clusters.PreviewDeleteGameServerClusterRequest, dict
] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
Expand All @@ -787,7 +795,7 @@ def preview_delete_game_server_cluster(
r"""Previews deletion of a single game server cluster.
Args:
request (google.cloud.gaming_v1.types.PreviewDeleteGameServerClusterRequest):
request (Union[google.cloud.gaming_v1.types.PreviewDeleteGameServerClusterRequest, dict]):
The request object. Request message for
GameServerClustersService.PreviewDeleteGameServerCluster.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down Expand Up @@ -834,7 +842,9 @@ def preview_delete_game_server_cluster(

def update_game_server_cluster(
self,
request: game_server_clusters.UpdateGameServerClusterRequest = None,
request: Union[
game_server_clusters.UpdateGameServerClusterRequest, dict
] = None,
*,
game_server_cluster: game_server_clusters.GameServerCluster = None,
update_mask: field_mask_pb2.FieldMask = None,
Expand All @@ -845,7 +855,7 @@ def update_game_server_cluster(
r"""Patches a single game server cluster.
Args:
request (google.cloud.gaming_v1.types.UpdateGameServerClusterRequest):
request (Union[google.cloud.gaming_v1.types.UpdateGameServerClusterRequest, dict]):
The request object. Request message for
GameServerClustersService.UpdateGameServerCluster.
game_server_cluster (google.cloud.gaming_v1.types.GameServerCluster):
Expand Down Expand Up @@ -932,7 +942,9 @@ def update_game_server_cluster(

def preview_update_game_server_cluster(
self,
request: game_server_clusters.PreviewUpdateGameServerClusterRequest = None,
request: Union[
game_server_clusters.PreviewUpdateGameServerClusterRequest, dict
] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
Expand All @@ -941,7 +953,7 @@ def preview_update_game_server_cluster(
r"""Previews updating a GameServerCluster.
Args:
request (google.cloud.gaming_v1.types.PreviewUpdateGameServerClusterRequest):
request (Union[google.cloud.gaming_v1.types.PreviewUpdateGameServerClusterRequest, dict]):
The request object. Request message for
GameServerClustersService.UpdateGameServerCluster.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down
Expand Up @@ -119,7 +119,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
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
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
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 @@ -363,7 +363,7 @@ def __init__(

def list_game_server_configs(
self,
request: game_server_configs.ListGameServerConfigsRequest = None,
request: Union[game_server_configs.ListGameServerConfigsRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -374,7 +374,7 @@ def list_game_server_configs(
location, and game server deployment.
Args:
request (google.cloud.gaming_v1.types.ListGameServerConfigsRequest):
request (Union[google.cloud.gaming_v1.types.ListGameServerConfigsRequest, dict]):
The request object. Request message for
GameServerConfigsService.ListGameServerConfigs.
parent (str):
Expand Down Expand Up @@ -445,7 +445,7 @@ def list_game_server_configs(

def get_game_server_config(
self,
request: game_server_configs.GetGameServerConfigRequest = None,
request: Union[game_server_configs.GetGameServerConfigRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -455,7 +455,7 @@ def get_game_server_config(
r"""Gets details of a single game server config.
Args:
request (google.cloud.gaming_v1.types.GetGameServerConfigRequest):
request (Union[google.cloud.gaming_v1.types.GetGameServerConfigRequest, dict]):
The request object. Request message for
GameServerConfigsService.GetGameServerConfig.
name (str):
Expand Down Expand Up @@ -515,7 +515,7 @@ def get_game_server_config(

def create_game_server_config(
self,
request: game_server_configs.CreateGameServerConfigRequest = None,
request: Union[game_server_configs.CreateGameServerConfigRequest, dict] = None,
*,
parent: str = None,
game_server_config: game_server_configs.GameServerConfig = None,
Expand All @@ -530,7 +530,7 @@ def create_game_server_config(
resource.
Args:
request (google.cloud.gaming_v1.types.CreateGameServerConfigRequest):
request (Union[google.cloud.gaming_v1.types.CreateGameServerConfigRequest, dict]):
The request object. Request message for
GameServerConfigsService.CreateGameServerConfig.
parent (str):
Expand Down Expand Up @@ -614,7 +614,7 @@ def create_game_server_config(

def delete_game_server_config(
self,
request: game_server_configs.DeleteGameServerConfigRequest = None,
request: Union[game_server_configs.DeleteGameServerConfigRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -626,7 +626,7 @@ def delete_game_server_config(
game server deployment rollout.
Args:
request (google.cloud.gaming_v1.types.DeleteGameServerConfigRequest):
request (Union[google.cloud.gaming_v1.types.DeleteGameServerConfigRequest, dict]):
The request object. Request message for
GameServerConfigsService.DeleteGameServerConfig.
name (str):
Expand Down
Expand Up @@ -119,7 +119,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
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
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

0 comments on commit 3a701f7

Please sign in to comment.