diff --git a/google/cloud/gaming/__init__.py b/google/cloud/gaming/__init__.py index b6caee2e..d792c955 100644 --- a/google/cloud/gaming/__init__.py +++ b/google/cloud/gaming/__init__.py @@ -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, ) @@ -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, ) @@ -180,6 +182,7 @@ "GameServerClusterConnectionInfo", "GetGameServerClusterRequest", "GkeClusterReference", + "KubernetesClusterState", "ListGameServerClustersRequest", "ListGameServerClustersResponse", "PreviewCreateGameServerClusterRequest", @@ -189,6 +192,7 @@ "PreviewUpdateGameServerClusterRequest", "PreviewUpdateGameServerClusterResponse", "UpdateGameServerClusterRequest", + "GameServerClusterView", "CreateGameServerConfigRequest", "DeleteGameServerConfigRequest", "FleetConfig", diff --git a/google/cloud/gaming_v1/__init__.py b/google/cloud/gaming_v1/__init__.py index de772153..0574adc0 100644 --- a/google/cloud/gaming_v1/__init__.py +++ b/google/cloud/gaming_v1/__init__.py @@ -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 @@ -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 @@ -101,6 +103,7 @@ "FleetConfig", "GameServerCluster", "GameServerClusterConnectionInfo", + "GameServerClusterView", "GameServerClustersServiceClient", "GameServerConfig", "GameServerConfigOverride", @@ -114,6 +117,7 @@ "GetGameServerDeploymentRolloutRequest", "GetRealmRequest", "GkeClusterReference", + "KubernetesClusterState", "LabelSelector", "ListGameServerClustersRequest", "ListGameServerClustersResponse", diff --git a/google/cloud/gaming_v1/services/game_server_clusters_service/async_client.py b/google/cloud/gaming_v1/services/game_server_clusters_service/async_client.py index 4fd16f5a..67ea7a11 100644 --- a/google/cloud/gaming_v1/services/game_server_clusters_service/async_client.py +++ b/google/cloud/gaming_v1/services/game_server_clusters_service/async_client.py @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/google/cloud/gaming_v1/services/game_server_clusters_service/client.py b/google/cloud/gaming_v1/services/game_server_clusters_service/client.py index f135d4d6..af8dc2c1 100644 --- a/google/cloud/gaming_v1/services/game_server_clusters_service/client.py +++ b/google/cloud/gaming_v1/services/game_server_clusters_service/client.py @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/google/cloud/gaming_v1/services/game_server_configs_service/async_client.py b/google/cloud/gaming_v1/services/game_server_configs_service/async_client.py index 9f8ab745..aaf23961 100644 --- a/google/cloud/gaming_v1/services/game_server_configs_service/async_client.py +++ b/google/cloud/gaming_v1/services/game_server_configs_service/async_client.py @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/google/cloud/gaming_v1/services/game_server_configs_service/client.py b/google/cloud/gaming_v1/services/game_server_configs_service/client.py index e72ec4ae..20033c8c 100644 --- a/google/cloud/gaming_v1/services/game_server_configs_service/client.py +++ b/google/cloud/gaming_v1/services/game_server_configs_service/client.py @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/google/cloud/gaming_v1/services/game_server_deployments_service/async_client.py b/google/cloud/gaming_v1/services/game_server_deployments_service/async_client.py index 6ae7beea..cd4bc3fe 100644 --- a/google/cloud/gaming_v1/services/game_server_deployments_service/async_client.py +++ b/google/cloud/gaming_v1/services/game_server_deployments_service/async_client.py @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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, ) diff --git a/google/cloud/gaming_v1/services/game_server_deployments_service/client.py b/google/cloud/gaming_v1/services/game_server_deployments_service/client.py index 80788b3f..d8eaf366 100644 --- a/google/cloud/gaming_v1/services/game_server_deployments_service/client.py +++ b/google/cloud/gaming_v1/services/game_server_deployments_service/client.py @@ -401,8 +401,8 @@ def list_game_server_deployments( The request object. Request message for GameServerDeploymentsService.ListGameServerDeployments. parent (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 @@ -486,8 +486,7 @@ def get_game_server_deployment( GameServerDeploymentsService.GetGameServerDeployment. name (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 @@ -562,8 +561,8 @@ def create_game_server_deployment( The request object. Request message for GameServerDeploymentsService.CreateGameServerDeployment. parent (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 @@ -658,8 +657,7 @@ def delete_game_server_deployment( GameServerDeploymentsService.DeleteGameServerDeployment. name (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 @@ -767,9 +765,7 @@ 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 @@ -859,8 +855,7 @@ def get_game_server_deployment_rollout( GameServerDeploymentsService.GetGameServerDeploymentRollout. name (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 @@ -956,9 +951,7 @@ 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 diff --git a/google/cloud/gaming_v1/services/game_server_deployments_service/transports/base.py b/google/cloud/gaming_v1/services/game_server_deployments_service/transports/base.py index 65a8e457..366e6c57 100644 --- a/google/cloud/gaming_v1/services/game_server_deployments_service/transports/base.py +++ b/google/cloud/gaming_v1/services/game_server_deployments_service/transports/base.py @@ -241,9 +241,9 @@ def _prep_wrapped_messages(self, client_info): predicate=retries.if_exception_type( core_exceptions.ServiceUnavailable, ), - deadline=120.0, + deadline=60.0, ), - default_timeout=120.0, + default_timeout=60.0, client_info=client_info, ), } diff --git a/google/cloud/gaming_v1/services/realms_service/async_client.py b/google/cloud/gaming_v1/services/realms_service/async_client.py index aac5568b..c1be41ca 100644 --- a/google/cloud/gaming_v1/services/realms_service/async_client.py +++ b/google/cloud/gaming_v1/services/realms_service/async_client.py @@ -185,8 +185,8 @@ async def list_realms( The request object. Request message for RealmsService.ListRealms. 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 @@ -274,8 +274,8 @@ async def get_realm( The request object. Request message for RealmsService.GetRealm. name (:class:`str`): - Required. The name of the realm to retrieve. Uses the - form: + Required. The name of the realm to retrieve, in the + following form: ``projects/{project}/locations/{location}/realms/{realm}``. This corresponds to the ``name`` field @@ -355,8 +355,8 @@ async def create_realm( The request object. Request message for RealmsService.CreateRealm. 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 @@ -455,8 +455,8 @@ async def delete_realm( The request object. Request message for RealmsService.DeleteRealm. name (:class:`str`): - Required. The name of the realm to delete. Uses the - form: + Required. The name of the realm to delete, in the + following form: ``projects/{project}/locations/{location}/realms/{realm}``. This corresponds to the ``name`` field @@ -558,9 +558,7 @@ async def update_realm( update_mask (:class:`google.protobuf.field_mask_pb2.FieldMask`): Required. The update mask applies to the resource. 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 diff --git a/google/cloud/gaming_v1/services/realms_service/client.py b/google/cloud/gaming_v1/services/realms_service/client.py index dc3c333b..34c486b1 100644 --- a/google/cloud/gaming_v1/services/realms_service/client.py +++ b/google/cloud/gaming_v1/services/realms_service/client.py @@ -372,8 +372,8 @@ def list_realms( The request object. Request message for RealmsService.ListRealms. parent (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 @@ -452,8 +452,8 @@ def get_realm( The request object. Request message for RealmsService.GetRealm. name (str): - Required. The name of the realm to retrieve. Uses the - form: + Required. The name of the realm to retrieve, in the + following form: ``projects/{project}/locations/{location}/realms/{realm}``. This corresponds to the ``name`` field @@ -524,8 +524,8 @@ def create_realm( The request object. Request message for RealmsService.CreateRealm. parent (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 @@ -624,8 +624,8 @@ def delete_realm( The request object. Request message for RealmsService.DeleteRealm. name (str): - Required. The name of the realm to delete. Uses the - form: + Required. The name of the realm to delete, in the + following form: ``projects/{project}/locations/{location}/realms/{realm}``. This corresponds to the ``name`` field @@ -727,9 +727,7 @@ def update_realm( update_mask (google.protobuf.field_mask_pb2.FieldMask): Required. The update mask applies to the resource. 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 diff --git a/google/cloud/gaming_v1/types/__init__.py b/google/cloud/gaming_v1/types/__init__.py index 0940e920..517d05f7 100644 --- a/google/cloud/gaming_v1/types/__init__.py +++ b/google/cloud/gaming_v1/types/__init__.py @@ -31,6 +31,7 @@ GameServerClusterConnectionInfo, GetGameServerClusterRequest, GkeClusterReference, + KubernetesClusterState, ListGameServerClustersRequest, ListGameServerClustersResponse, PreviewCreateGameServerClusterRequest, @@ -40,6 +41,7 @@ PreviewUpdateGameServerClusterRequest, PreviewUpdateGameServerClusterResponse, UpdateGameServerClusterRequest, + GameServerClusterView, ) from .game_server_configs import ( CreateGameServerConfigRequest, @@ -96,6 +98,7 @@ "GameServerClusterConnectionInfo", "GetGameServerClusterRequest", "GkeClusterReference", + "KubernetesClusterState", "ListGameServerClustersRequest", "ListGameServerClustersResponse", "PreviewCreateGameServerClusterRequest", @@ -105,6 +108,7 @@ "PreviewUpdateGameServerClusterRequest", "PreviewUpdateGameServerClusterResponse", "UpdateGameServerClusterRequest", + "GameServerClusterView", "CreateGameServerConfigRequest", "DeleteGameServerConfigRequest", "FleetConfig", diff --git a/google/cloud/gaming_v1/types/common.py b/google/cloud/gaming_v1/types/common.py index 9c60838f..cccc8362 100644 --- a/google/cloud/gaming_v1/types/common.py +++ b/google/cloud/gaming_v1/types/common.py @@ -176,7 +176,6 @@ class SpecSource(proto.Message): Attributes: game_server_config_name (str): The game server config resource. Uses the form: - ``projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}/configs/{config_id}``. name (str): The name of the Agones leet config or Agones @@ -193,11 +192,9 @@ class TargetDetails(proto.Message): Attributes: game_server_cluster_name (str): The game server cluster name. Uses the form: - ``projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}``. game_server_deployment_name (str): The game server deployment name. Uses the form: - ``projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}``. fleet_details (Sequence[google.cloud.gaming_v1.types.TargetDetails.TargetFleetDetails]): Agones fleet details for game server clusters diff --git a/google/cloud/gaming_v1/types/game_server_clusters.py b/google/cloud/gaming_v1/types/game_server_clusters.py index 1c2fc009..b58cdfe9 100644 --- a/google/cloud/gaming_v1/types/game_server_clusters.py +++ b/google/cloud/gaming_v1/types/game_server_clusters.py @@ -23,6 +23,7 @@ __protobuf__ = proto.module( package="google.cloud.gaming.v1", manifest={ + "GameServerClusterView", "ListGameServerClustersRequest", "ListGameServerClustersResponse", "GetGameServerClusterRequest", @@ -38,18 +39,26 @@ "GameServerClusterConnectionInfo", "GkeClusterReference", "GameServerCluster", + "KubernetesClusterState", }, ) +class GameServerClusterView(proto.Enum): + r"""A view for GameServerCluster objects.""" + GAME_SERVER_CLUSTER_VIEW_UNSPECIFIED = 0 + BASIC = 1 + FULL = 2 + + class ListGameServerClustersRequest(proto.Message): r"""Request message for GameServerClustersService.ListGameServerClusters. Attributes: 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}". page_size (int): Optional. The maximum number of items to return. If @@ -69,6 +78,14 @@ class ListGameServerClustersRequest(proto.Message): Optional. Specifies the ordering of results following syntax at https://cloud.google.com/apis/design/design_patterns#sorting_order. + view (google.cloud.gaming_v1.types.GameServerClusterView): + Optional. View for the returned GameServerCluster objects. + When ``FULL`` is specified, the ``cluster_state`` field is + also returned in the GameServerCluster object, which + includes the state of the referenced Kubernetes cluster such + as versions and provider info. The default/unset value is + GAME_SERVER_CLUSTER_VIEW_UNSPECIFIED, same as BASIC, which + does not return the ``cluster_state`` field. """ parent = proto.Field(proto.STRING, number=1,) @@ -76,6 +93,7 @@ class ListGameServerClustersRequest(proto.Message): page_token = proto.Field(proto.STRING, number=3,) filter = proto.Field(proto.STRING, number=4,) order_by = proto.Field(proto.STRING, number=5,) + view = proto.Field(proto.ENUM, number=6, enum="GameServerClusterView",) class ListGameServerClustersResponse(proto.Message): @@ -110,13 +128,21 @@ class GetGameServerClusterRequest(proto.Message): Attributes: name (str): - Required. The name of the game server cluster to retrieve. - Uses the form: - + Required. The name of the game server cluster to retrieve, + in the following form: ``projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}``. + view (google.cloud.gaming_v1.types.GameServerClusterView): + Optional. View for the returned GameServerCluster objects. + When ``FULL`` is specified, the ``cluster_state`` field is + also returned in the GameServerCluster object, which + includes the state of the referenced Kubernetes cluster such + as versions and provider info. The default/unset value is + GAME_SERVER_CLUSTER_VIEW_UNSPECIFIED, same as BASIC, which + does not return the ``cluster_state`` field. """ name = proto.Field(proto.STRING, number=1,) + view = proto.Field(proto.ENUM, number=6, enum="GameServerClusterView",) class CreateGameServerClusterRequest(proto.Message): @@ -125,7 +151,7 @@ class CreateGameServerClusterRequest(proto.Message): Attributes: 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}``. game_server_cluster_id (str): Required. The ID of the game server cluster @@ -148,7 +174,7 @@ class PreviewCreateGameServerClusterRequest(proto.Message): Attributes: 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}``. game_server_cluster_id (str): Required. The ID of the game server cluster @@ -159,6 +185,9 @@ class PreviewCreateGameServerClusterRequest(proto.Message): preview_time (google.protobuf.timestamp_pb2.Timestamp): Optional. The target timestamp to compute the preview. + view (google.cloud.gaming_v1.types.GameServerClusterView): + Optional. This field is deprecated, preview + will always return KubernetesClusterState. """ parent = proto.Field(proto.STRING, number=1,) @@ -169,6 +198,7 @@ class PreviewCreateGameServerClusterRequest(proto.Message): preview_time = proto.Field( proto.MESSAGE, number=4, message=timestamp_pb2.Timestamp, ) + view = proto.Field(proto.ENUM, number=6, enum="GameServerClusterView",) class PreviewCreateGameServerClusterResponse(proto.Message): @@ -180,10 +210,17 @@ class PreviewCreateGameServerClusterResponse(proto.Message): The ETag of the game server cluster. target_state (google.cloud.gaming_v1.types.TargetState): The target state. + cluster_state (google.cloud.gaming_v1.types.KubernetesClusterState): + Output only. The state of the Kubernetes cluster in preview, + this will be available if 'view' is set to ``FULL`` in the + relevant List/Get/Preview request. """ etag = proto.Field(proto.STRING, number=2,) target_state = proto.Field(proto.MESSAGE, number=3, message=common.TargetState,) + cluster_state = proto.Field( + proto.MESSAGE, number=4, message="KubernetesClusterState", + ) class DeleteGameServerClusterRequest(proto.Message): @@ -192,8 +229,8 @@ class DeleteGameServerClusterRequest(proto.Message): Attributes: 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}``. """ @@ -206,8 +243,8 @@ class PreviewDeleteGameServerClusterRequest(proto.Message): Attributes: 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}``. preview_time (google.protobuf.timestamp_pb2.Timestamp): Optional. The target timestamp to compute the @@ -247,9 +284,7 @@ class UpdateGameServerClusterRequest(proto.Message): 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 """ game_server_cluster = proto.Field( @@ -272,9 +307,7 @@ class PreviewUpdateGameServerClusterRequest(proto.Message): 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 preview_time (google.protobuf.timestamp_pb2.Timestamp): Optional. The target timestamp to compute the preview. @@ -350,12 +383,10 @@ class GameServerCluster(proto.Message): r"""A game server cluster resource. Attributes: name (str): - Required. The resource name of the game server cluster. Uses - the form: - + Required. The resource name of the game server cluster, in + the following form: ``projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}``. For example, - ``projects/my-project/locations/{location}/realms/zanzibar/gameServerClusters/my-onprem-cluster``. create_time (google.protobuf.timestamp_pb2.Timestamp): Output only. The creation time. @@ -372,6 +403,10 @@ class GameServerCluster(proto.Message): ETag of the resource. description (str): Human readable description of the cluster. + cluster_state (google.cloud.gaming_v1.types.KubernetesClusterState): + Output only. The state of the Kubernetes cluster, this will + be available if 'view' is set to ``FULL`` in the relevant + List/Get/Preview request. """ name = proto.Field(proto.STRING, number=1,) @@ -383,6 +418,59 @@ class GameServerCluster(proto.Message): ) etag = proto.Field(proto.STRING, number=6,) description = proto.Field(proto.STRING, number=7,) + cluster_state = proto.Field( + proto.MESSAGE, number=11, message="KubernetesClusterState", + ) + + +class KubernetesClusterState(proto.Message): + r"""The state of the Kubernetes cluster. + Attributes: + agones_version_installed (str): + Output only. The version of Agones currently + installed in the registered Kubernetes cluster. + kubernetes_version_installed (str): + Output only. The version of Kubernetes that + is currently used in the registered Kubernetes + cluster (as detected by the Cloud Game Servers + service). + installation_state (google.cloud.gaming_v1.types.KubernetesClusterState.InstallationState): + Output only. The state for the installed + versions of Agones/Kubernetes. + version_installed_error_message (str): + Output only. The detailed error message for + the installed versions of Agones/Kubernetes. + provider (str): + Output only. The cloud provider type reported + by the first node's providerID in the list of + nodes on the Kubernetes endpoint. On Kubernetes + platforms that support zero-node clusters (like + GKE-on-GCP), the provider type will be empty. + agones_version_targeted (str): + Output only. The version of Agones that is + targeted to be installed in the cluster. + """ + + class InstallationState(proto.Enum): + r"""The state of the installed versions of Agones/Kubernetes. See + also https://cloud.google.com/game-servers/docs/versions-and- + upgrades. + """ + INSTALLATION_STATE_UNSPECIFIED = 0 + AGONES_KUBERNETES_VERSION_SUPPORTED = 1 + AGONES_VERSION_UNSUPPORTED = 2 + AGONES_KUBERNETES_VERSION_UNSUPPORTED = 3 + AGONES_VERSION_UNRECOGNIZED = 4 + KUBERNETES_VERSION_UNRECOGNIZED = 5 + VERSION_VERIFICATION_FAILED = 6 + AGONES_NOT_INSTALLED = 7 + + agones_version_installed = proto.Field(proto.STRING, number=1,) + kubernetes_version_installed = proto.Field(proto.STRING, number=2,) + installation_state = proto.Field(proto.ENUM, number=3, enum=InstallationState,) + version_installed_error_message = proto.Field(proto.STRING, number=4,) + provider = proto.Field(proto.STRING, number=5,) + agones_version_targeted = proto.Field(proto.STRING, number=6,) __all__ = tuple(sorted(__protobuf__.manifest)) diff --git a/google/cloud/gaming_v1/types/game_server_configs.py b/google/cloud/gaming_v1/types/game_server_configs.py index 0caa436a..5d400511 100644 --- a/google/cloud/gaming_v1/types/game_server_configs.py +++ b/google/cloud/gaming_v1/types/game_server_configs.py @@ -40,8 +40,7 @@ class ListGameServerConfigsRequest(proto.Message): Attributes: 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/*``. page_size (int): Optional. The maximum number of items to return. If @@ -102,9 +101,8 @@ class GetGameServerConfigRequest(proto.Message): Attributes: name (str): - Required. The name of the game server config to retrieve. - Uses the form: - + Required. The name of the game server config to retrieve, in + the following form: ``projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}``. """ @@ -117,8 +115,7 @@ class CreateGameServerConfigRequest(proto.Message): Attributes: 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}/``. config_id (str): Required. The ID of the game server config @@ -141,9 +138,8 @@ class DeleteGameServerConfigRequest(proto.Message): Attributes: 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}``. """ @@ -196,11 +192,10 @@ class GameServerConfig(proto.Message): r"""A game server config resource. Attributes: name (str): - The resource name of the game server config. Uses the form: - + The resource name of the game server config, in the + following form: ``projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}``. For example, - ``projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config``. create_time (google.protobuf.timestamp_pb2.Timestamp): Output only. The creation time. diff --git a/google/cloud/gaming_v1/types/game_server_deployments.py b/google/cloud/gaming_v1/types/game_server_deployments.py index 17ab0d8c..6e84c70c 100644 --- a/google/cloud/gaming_v1/types/game_server_deployments.py +++ b/google/cloud/gaming_v1/types/game_server_deployments.py @@ -48,7 +48,7 @@ class ListGameServerDeploymentsRequest(proto.Message): Attributes: parent (str): - Required. The parent resource name. Uses the form: + Required. The parent resource name, in the following form: ``projects/{project}/locations/{location}``. page_size (int): Optional. The maximum number of items to return. If @@ -110,8 +110,7 @@ class GetGameServerDeploymentRequest(proto.Message): Attributes: name (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}``. """ @@ -125,8 +124,7 @@ class GetGameServerDeploymentRolloutRequest(proto.Message): Attributes: name (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``. """ @@ -139,7 +137,7 @@ class CreateGameServerDeploymentRequest(proto.Message): Attributes: parent (str): - Required. The parent resource name. Uses the form: + Required. The parent resource name, in the following form: ``projects/{project}/locations/{location}``. deployment_id (str): Required. The ID of the game server @@ -162,9 +160,8 @@ class DeleteGameServerDeploymentRequest(proto.Message): Attributes: name (str): - Required. The name of the game server delpoyment to delete. - Uses the form: - + Required. The name of the game server delpoyment to delete, + in the following form: ``projects/{project}/locations/{location}/gameServerDeployments/{deployment}``. """ @@ -184,9 +181,7 @@ class UpdateGameServerDeploymentRequest(proto.Message): 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 """ game_server_deployment = proto.Field( @@ -209,9 +204,7 @@ class UpdateGameServerDeploymentRolloutRequest(proto.Message): 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 """ rollout = proto.Field( @@ -228,9 +221,8 @@ class FetchDeploymentStateRequest(proto.Message): Attributes: name (str): - Required. The name of the game server delpoyment. Uses the - form: - + Required. The name of the game server delpoyment, in the + following form: ``projects/{project}/locations/{location}/gameServerDeployments/{deployment}``. """ @@ -276,9 +268,8 @@ class GameServerDeployment(proto.Message): r"""A game server deployment resource. Attributes: name (str): - The resource name of the game server deployment. Uses the - form: - + The resource name of the game server deployment, in the + following form: ``projects/{project}/locations/{location}/gameServerDeployments/{deployment}``. For example, ``projects/my-project/locations/global/gameServerDeployments/my-deployment``. @@ -325,12 +316,10 @@ class GameServerDeploymentRollout(proto.Message): Attributes: name (str): - The resource name of the game server deployment rollout. - Uses the form: - + The resource name of the game server deployment rollout, in + the following form: ``projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout``. For example, - ``projects/my-project/locations/global/gameServerDeployments/my-deployment/rollout``. create_time (google.protobuf.timestamp_pb2.Timestamp): Output only. The creation time. @@ -339,7 +328,6 @@ class GameServerDeploymentRollout(proto.Message): default_game_server_config (str): The default game server config is applied to all realms unless overridden in the rollout. For example, - ``projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config``. game_server_config_overrides (Sequence[google.cloud.gaming_v1.types.GameServerConfigOverride]): Contains the game server config rollout @@ -370,9 +358,7 @@ class PreviewGameServerDeploymentRolloutRequest(proto.Message): Optional. 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 preview_time (google.protobuf.timestamp_pb2.Timestamp): Optional. The target timestamp to compute the preview. Defaults to the immediately after the diff --git a/google/cloud/gaming_v1/types/realms.py b/google/cloud/gaming_v1/types/realms.py index 9ac4d1ec..1a349993 100644 --- a/google/cloud/gaming_v1/types/realms.py +++ b/google/cloud/gaming_v1/types/realms.py @@ -40,7 +40,7 @@ class ListRealmsRequest(proto.Message): r"""Request message for RealmsService.ListRealms. Attributes: parent (str): - Required. The parent resource name. Uses the form: + Required. The parent resource name, in the following form: ``projects/{project}/locations/{location}``. page_size (int): Optional. The maximum number of items to return. If @@ -94,7 +94,8 @@ class GetRealmRequest(proto.Message): r"""Request message for RealmsService.GetRealm. Attributes: name (str): - Required. The name of the realm to retrieve. Uses the form: + Required. The name of the realm to retrieve, in the + following form: ``projects/{project}/locations/{location}/realms/{realm}``. """ @@ -105,7 +106,7 @@ class CreateRealmRequest(proto.Message): r"""Request message for RealmsService.CreateRealm. Attributes: parent (str): - Required. The parent resource name. Uses the form: + Required. The parent resource name, in the following form: ``projects/{project}/locations/{location}``. realm_id (str): Required. The ID of the realm resource to be @@ -123,7 +124,8 @@ class DeleteRealmRequest(proto.Message): r"""Request message for RealmsService.DeleteRealm. Attributes: name (str): - Required. The name of the realm to delete. Uses the form: + Required. The name of the realm to delete, in the following + form: ``projects/{project}/locations/{location}/realms/{realm}``. """ @@ -139,9 +141,7 @@ class UpdateRealmRequest(proto.Message): update_mask (google.protobuf.field_mask_pb2.FieldMask): Required. The update mask applies to the resource. 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 """ realm = proto.Field(proto.MESSAGE, number=1, message="Realm",) @@ -159,9 +159,7 @@ class PreviewRealmUpdateRequest(proto.Message): update_mask (google.protobuf.field_mask_pb2.FieldMask): Required. The update mask applies to the resource. 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 preview_time (google.protobuf.timestamp_pb2.Timestamp): Optional. The target timestamp to compute the preview. @@ -193,7 +191,7 @@ class Realm(proto.Message): r"""A realm resource. Attributes: name (str): - The resource name of the realm. Uses the form: + The resource name of the realm, in the following form: ``projects/{project}/locations/{location}/realms/{realm}``. For example, ``projects/my-project/locations/{location}/realms/my-realm``. diff --git a/scripts/fixup_gaming_v1_keywords.py b/scripts/fixup_gaming_v1_keywords.py index 78e00511..1e938562 100644 --- a/scripts/fixup_gaming_v1_keywords.py +++ b/scripts/fixup_gaming_v1_keywords.py @@ -48,16 +48,16 @@ class gamingCallTransformer(cst.CSTTransformer): 'delete_game_server_deployment': ('name', ), 'delete_realm': ('name', ), 'fetch_deployment_state': ('name', ), - 'get_game_server_cluster': ('name', ), + 'get_game_server_cluster': ('name', 'view', ), 'get_game_server_config': ('name', ), 'get_game_server_deployment': ('name', ), 'get_game_server_deployment_rollout': ('name', ), 'get_realm': ('name', ), - 'list_game_server_clusters': ('parent', 'page_size', 'page_token', 'filter', 'order_by', ), + 'list_game_server_clusters': ('parent', 'page_size', 'page_token', 'filter', 'order_by', 'view', ), 'list_game_server_configs': ('parent', 'page_size', 'page_token', 'filter', 'order_by', ), 'list_game_server_deployments': ('parent', 'page_size', 'page_token', 'filter', 'order_by', ), 'list_realms': ('parent', 'page_size', 'page_token', 'filter', 'order_by', ), - 'preview_create_game_server_cluster': ('parent', 'game_server_cluster_id', 'game_server_cluster', 'preview_time', ), + 'preview_create_game_server_cluster': ('parent', 'game_server_cluster_id', 'game_server_cluster', 'preview_time', 'view', ), 'preview_delete_game_server_cluster': ('name', 'preview_time', ), 'preview_game_server_deployment_rollout': ('rollout', 'update_mask', 'preview_time', ), 'preview_realm_update': ('realm', 'update_mask', 'preview_time', ),