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

Commit

Permalink
feat: support version reporting API (#180)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 393476621

Source-Link: googleapis/googleapis@e9da6f8

Source-Link: googleapis/googleapis-gen@acd7bed

feat: add cluster_state to show the state of the Kubernetes cluster
  • Loading branch information
gcf-owl-bot[bot] committed Aug 28, 2021
1 parent 9cfe8b3 commit a149bb7
Show file tree
Hide file tree
Showing 18 changed files with 226 additions and 176 deletions.
4 changes: 4 additions & 0 deletions google/cloud/gaming/__init__.py
Expand Up @@ -60,6 +60,7 @@
GetGameServerClusterRequest,
)
from google.cloud.gaming_v1.types.game_server_clusters import GkeClusterReference
from google.cloud.gaming_v1.types.game_server_clusters import KubernetesClusterState
from google.cloud.gaming_v1.types.game_server_clusters import (
ListGameServerClustersRequest,
)
Expand Down Expand Up @@ -87,6 +88,7 @@
from google.cloud.gaming_v1.types.game_server_clusters import (
UpdateGameServerClusterRequest,
)
from google.cloud.gaming_v1.types.game_server_clusters import GameServerClusterView
from google.cloud.gaming_v1.types.game_server_configs import (
CreateGameServerConfigRequest,
)
Expand Down Expand Up @@ -180,6 +182,7 @@
"GameServerClusterConnectionInfo",
"GetGameServerClusterRequest",
"GkeClusterReference",
"KubernetesClusterState",
"ListGameServerClustersRequest",
"ListGameServerClustersResponse",
"PreviewCreateGameServerClusterRequest",
Expand All @@ -189,6 +192,7 @@
"PreviewUpdateGameServerClusterRequest",
"PreviewUpdateGameServerClusterResponse",
"UpdateGameServerClusterRequest",
"GameServerClusterView",
"CreateGameServerConfigRequest",
"DeleteGameServerConfigRequest",
"FleetConfig",
Expand Down
4 changes: 4 additions & 0 deletions google/cloud/gaming_v1/__init__.py
Expand Up @@ -40,6 +40,7 @@
from .types.game_server_clusters import GameServerClusterConnectionInfo
from .types.game_server_clusters import GetGameServerClusterRequest
from .types.game_server_clusters import GkeClusterReference
from .types.game_server_clusters import KubernetesClusterState
from .types.game_server_clusters import ListGameServerClustersRequest
from .types.game_server_clusters import ListGameServerClustersResponse
from .types.game_server_clusters import PreviewCreateGameServerClusterRequest
Expand All @@ -49,6 +50,7 @@
from .types.game_server_clusters import PreviewUpdateGameServerClusterRequest
from .types.game_server_clusters import PreviewUpdateGameServerClusterResponse
from .types.game_server_clusters import UpdateGameServerClusterRequest
from .types.game_server_clusters import GameServerClusterView
from .types.game_server_configs import CreateGameServerConfigRequest
from .types.game_server_configs import DeleteGameServerConfigRequest
from .types.game_server_configs import FleetConfig
Expand Down Expand Up @@ -101,6 +103,7 @@
"FleetConfig",
"GameServerCluster",
"GameServerClusterConnectionInfo",
"GameServerClusterView",
"GameServerClustersServiceClient",
"GameServerConfig",
"GameServerConfigOverride",
Expand All @@ -114,6 +117,7 @@
"GetGameServerDeploymentRolloutRequest",
"GetRealmRequest",
"GkeClusterReference",
"KubernetesClusterState",
"LabelSelector",
"ListGameServerClustersRequest",
"ListGameServerClustersResponse",
Expand Down
Expand Up @@ -197,8 +197,8 @@ async def list_game_server_clusters(
The request object. Request message for
GameServerClustersService.ListGameServerClusters.
parent (:class:`str`):
Required. The parent resource name.
Uses the form:
Required. The parent resource name,
in the following form:
"projects/{project}/locations/{location}/realms/{realm}".
This corresponds to the ``parent`` field
Expand Down Expand Up @@ -288,8 +288,7 @@ async def get_game_server_cluster(
GameServerClustersService.GetGameServerCluster.
name (:class:`str`):
Required. The name of the game server cluster to
retrieve. Uses the form:
retrieve, in the following form:
``projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}``.
This corresponds to the ``name`` field
Expand Down Expand Up @@ -370,7 +369,8 @@ async def create_game_server_cluster(
The request object. Request message for
GameServerClustersService.CreateGameServerCluster.
parent (:class:`str`):
Required. The parent resource name. Uses the form:
Required. The parent resource name, in the following
form:
``projects/{project}/locations/{location}/realms/{realm-id}``.
This corresponds to the ``parent`` field
Expand Down Expand Up @@ -531,8 +531,8 @@ async def delete_game_server_cluster(
The request object. Request message for
GameServerClustersService.DeleteGameServerCluster.
name (:class:`str`):
Required. The name of the game server cluster to delete.
Uses the form:
Required. The name of the game server cluster to delete,
in the following form:
``projects/{project}/locations/{location}/gameServerClusters/{cluster}``.
This corresponds to the ``name`` field
Expand Down Expand Up @@ -693,9 +693,7 @@ async def update_game_server_cluster(
Required. Mask of fields to update. At least one path
must be supplied in this field. For the ``FieldMask``
definition, see
https: //developers.google.com/protocol-buffers //
/docs/reference/google.protobuf#fieldmask
https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
This corresponds to the ``update_mask`` field
on the ``request`` instance; if ``request`` is provided, this
Expand Down
Expand Up @@ -379,8 +379,8 @@ def list_game_server_clusters(
The request object. Request message for
GameServerClustersService.ListGameServerClusters.
parent (str):
Required. The parent resource name.
Uses the form:
Required. The parent resource name,
in the following form:
"projects/{project}/locations/{location}/realms/{realm}".
This corresponds to the ``parent`` field
Expand Down Expand Up @@ -463,8 +463,7 @@ def get_game_server_cluster(
GameServerClustersService.GetGameServerCluster.
name (str):
Required. The name of the game server cluster to
retrieve. Uses the form:
retrieve, in the following form:
``projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}``.
This corresponds to the ``name`` field
Expand Down Expand Up @@ -536,7 +535,8 @@ def create_game_server_cluster(
The request object. Request message for
GameServerClustersService.CreateGameServerCluster.
parent (str):
Required. The parent resource name. Uses the form:
Required. The parent resource name, in the following
form:
``projects/{project}/locations/{location}/realms/{realm-id}``.
This corresponds to the ``parent`` field
Expand Down Expand Up @@ -697,8 +697,8 @@ def delete_game_server_cluster(
The request object. Request message for
GameServerClustersService.DeleteGameServerCluster.
name (str):
Required. The name of the game server cluster to delete.
Uses the form:
Required. The name of the game server cluster to delete,
in the following form:
``projects/{project}/locations/{location}/gameServerClusters/{cluster}``.
This corresponds to the ``name`` field
Expand Down Expand Up @@ -859,9 +859,7 @@ def update_game_server_cluster(
Required. Mask of fields to update. At least one path
must be supplied in this field. For the ``FieldMask``
definition, see
https: //developers.google.com/protocol-buffers //
/docs/reference/google.protobuf#fieldmask
https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
This corresponds to the ``update_mask`` field
on the ``request`` instance; if ``request`` is provided, this
Expand Down
Expand Up @@ -194,8 +194,8 @@ async def list_game_server_configs(
The request object. Request message for
GameServerConfigsService.ListGameServerConfigs.
parent (:class:`str`):
Required. The parent resource name. Uses the form:
Required. The parent resource name, in the following
form:
``projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/*``.
This corresponds to the ``parent`` field
Expand Down Expand Up @@ -285,8 +285,7 @@ async def get_game_server_config(
GameServerConfigsService.GetGameServerConfig.
name (:class:`str`):
Required. The name of the game server config to
retrieve. Uses the form:
retrieve, in the following form:
``projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}``.
This corresponds to the ``name`` field
Expand Down Expand Up @@ -369,8 +368,8 @@ async def create_game_server_config(
The request object. Request message for
GameServerConfigsService.CreateGameServerConfig.
parent (:class:`str`):
Required. The parent resource name. Uses the form:
Required. The parent resource name, in the following
form:
``projects/{project}/locations/{location}/gameServerDeployments/{deployment}/``.
This corresponds to the ``parent`` field
Expand Down Expand Up @@ -463,9 +462,8 @@ async def delete_game_server_config(
The request object. Request message for
GameServerConfigsService.DeleteGameServerConfig.
name (:class:`str`):
Required. The name of the game server config to delete.
Uses the form:
Required. The name of the game server config to delete,
in the following form:
``projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}``.
This corresponds to the ``name`` field
Expand Down
Expand Up @@ -378,8 +378,8 @@ def list_game_server_configs(
The request object. Request message for
GameServerConfigsService.ListGameServerConfigs.
parent (str):
Required. The parent resource name. Uses the form:
Required. The parent resource name, in the following
form:
``projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/*``.
This corresponds to the ``parent`` field
Expand Down Expand Up @@ -460,8 +460,7 @@ def get_game_server_config(
GameServerConfigsService.GetGameServerConfig.
name (str):
Required. The name of the game server config to
retrieve. Uses the form:
retrieve, in the following form:
``projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}``.
This corresponds to the ``name`` field
Expand Down Expand Up @@ -535,8 +534,8 @@ def create_game_server_config(
The request object. Request message for
GameServerConfigsService.CreateGameServerConfig.
parent (str):
Required. The parent resource name. Uses the form:
Required. The parent resource name, in the following
form:
``projects/{project}/locations/{location}/gameServerDeployments/{deployment}/``.
This corresponds to the ``parent`` field
Expand Down Expand Up @@ -631,9 +630,8 @@ def delete_game_server_config(
The request object. Request message for
GameServerConfigsService.DeleteGameServerConfig.
name (str):
Required. The name of the game server config to delete.
Uses the form:
Required. The name of the game server config to delete,
in the following form:
``projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}``.
This corresponds to the ``name`` field
Expand Down
Expand Up @@ -203,8 +203,8 @@ async def list_game_server_deployments(
The request object. Request message for
GameServerDeploymentsService.ListGameServerDeployments.
parent (:class:`str`):
Required. The parent resource name. Uses the form:
``projects/{project}/locations/{location}``.
Required. The parent resource name, in the following
form: ``projects/{project}/locations/{location}``.
This corresponds to the ``parent`` field
on the ``request`` instance; if ``request`` is provided, this
Expand Down Expand Up @@ -293,8 +293,7 @@ async def get_game_server_deployment(
GameServerDeploymentsService.GetGameServerDeployment.
name (:class:`str`):
Required. The name of the game server delpoyment to
retrieve. Uses the form:
retrieve, in the following form:
``projects/{project}/locations/{location}/gameServerDeployments/{deployment}``.
This corresponds to the ``name`` field
Expand Down Expand Up @@ -374,8 +373,8 @@ async def create_game_server_deployment(
The request object. Request message for
GameServerDeploymentsService.CreateGameServerDeployment.
parent (:class:`str`):
Required. The parent resource name. Uses the form:
``projects/{project}/locations/{location}``.
Required. The parent resource name, in the following
form: ``projects/{project}/locations/{location}``.
This corresponds to the ``parent`` field
on the ``request`` instance; if ``request`` is provided, this
Expand Down Expand Up @@ -466,8 +465,7 @@ async def delete_game_server_deployment(
GameServerDeploymentsService.DeleteGameServerDeployment.
name (:class:`str`):
Required. The name of the game server delpoyment to
delete. Uses the form:
delete, in the following form:
``projects/{project}/locations/{location}/gameServerDeployments/{deployment}``.
This corresponds to the ``name`` field
Expand Down Expand Up @@ -571,9 +569,7 @@ async def update_game_server_deployment(
Required. Mask of fields to update. At least one path
must be supplied in this field. For the ``FieldMask``
definition, see
https: //developers.google.com/protocol-buffers //
/docs/reference/google.protobuf#fieldmask
https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
This corresponds to the ``update_mask`` field
on the ``request`` instance; if ``request`` is provided, this
Expand Down Expand Up @@ -659,8 +655,7 @@ async def get_game_server_deployment_rollout(
GameServerDeploymentsService.GetGameServerDeploymentRollout.
name (:class:`str`):
Required. The name of the game server delpoyment to
retrieve. Uses the form:
retrieve, in the following form:
``projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout``.
This corresponds to the ``name`` field
Expand Down Expand Up @@ -759,9 +754,7 @@ async def update_game_server_deployment_rollout(
Required. Mask of fields to update. At least one path
must be supplied in this field. For the ``FieldMask``
definition, see
https: //developers.google.com/protocol-buffers //
/docs/reference/google.protobuf#fieldmask
https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
This corresponds to the ``update_mask`` field
on the ``request`` instance; if ``request`` is provided, this
Expand Down Expand Up @@ -940,9 +933,9 @@ async def fetch_deployment_state(
predicate=retries.if_exception_type(
core_exceptions.ServiceUnavailable,
),
deadline=120.0,
deadline=60.0,
),
default_timeout=120.0,
default_timeout=60.0,
client_info=DEFAULT_CLIENT_INFO,
)

Expand Down

0 comments on commit a149bb7

Please sign in to comment.