diff --git a/google/cloud/gaming_v1/__init__.py b/google/cloud/gaming_v1/__init__.py index 63f6dbc5..53c3e07e 100644 --- a/google/cloud/gaming_v1/__init__.py +++ b/google/cloud/gaming_v1/__init__.py @@ -93,12 +93,12 @@ "FleetConfig", "GameServerCluster", "GameServerClusterConnectionInfo", + "GameServerClustersServiceClient", "GameServerConfig", "GameServerConfigOverride", "GameServerConfigsServiceClient", "GameServerDeployment", "GameServerDeploymentRollout", - "GameServerDeploymentsServiceClient", "GetGameServerClusterRequest", "GetGameServerConfigRequest", "GetGameServerDeploymentRequest", @@ -138,5 +138,5 @@ "UpdateGameServerDeploymentRequest", "UpdateGameServerDeploymentRolloutRequest", "UpdateRealmRequest", - "GameServerClustersServiceClient", + "GameServerDeploymentsServiceClient", ) 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 e5e4907f..1a36c783 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 @@ -103,20 +103,20 @@ def from_service_account_file(cls, filename: str, *args, **kwargs): from_service_account_json = from_service_account_file @staticmethod - def game_server_deployment_path( + def game_server_deployment_rollout_path( project: str, location: str, deployment: str ) -> str: - """Return a fully-qualified game_server_deployment string.""" - return "projects/{project}/locations/{location}/gameServerDeployments/{deployment}".format( + """Return a fully-qualified game_server_deployment_rollout string.""" + return "projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout".format( project=project, location=location, deployment=deployment ) @staticmethod - def game_server_deployment_rollout_path( + def game_server_deployment_path( project: str, location: str, deployment: str ) -> str: - """Return a fully-qualified game_server_deployment_rollout string.""" - return "projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout".format( + """Return a fully-qualified game_server_deployment string.""" + return "projects/{project}/locations/{location}/gameServerDeployments/{deployment}".format( project=project, location=location, deployment=deployment ) diff --git a/google/cloud/gaming_v1/types/__init__.py b/google/cloud/gaming_v1/types/__init__.py index 2724c40d..5fa3f8ee 100644 --- a/google/cloud/gaming_v1/types/__init__.py +++ b/google/cloud/gaming_v1/types/__init__.py @@ -36,23 +36,6 @@ FleetConfig, GameServerConfig, ) -from .game_server_deployments import ( - ListGameServerDeploymentsRequest, - ListGameServerDeploymentsResponse, - GetGameServerDeploymentRequest, - GetGameServerDeploymentRolloutRequest, - CreateGameServerDeploymentRequest, - DeleteGameServerDeploymentRequest, - UpdateGameServerDeploymentRequest, - UpdateGameServerDeploymentRolloutRequest, - FetchDeploymentStateRequest, - FetchDeploymentStateResponse, - GameServerDeployment, - GameServerConfigOverride, - GameServerDeploymentRollout, - PreviewGameServerDeploymentRolloutRequest, - PreviewGameServerDeploymentRolloutResponse, -) from .realms import ( ListRealmsRequest, ListRealmsResponse, @@ -81,6 +64,23 @@ GkeClusterReference, GameServerCluster, ) +from .game_server_deployments import ( + ListGameServerDeploymentsRequest, + ListGameServerDeploymentsResponse, + GetGameServerDeploymentRequest, + GetGameServerDeploymentRolloutRequest, + CreateGameServerDeploymentRequest, + DeleteGameServerDeploymentRequest, + UpdateGameServerDeploymentRequest, + UpdateGameServerDeploymentRolloutRequest, + FetchDeploymentStateRequest, + FetchDeploymentStateResponse, + GameServerDeployment, + GameServerConfigOverride, + GameServerDeploymentRollout, + PreviewGameServerDeploymentRolloutRequest, + PreviewGameServerDeploymentRolloutResponse, +) __all__ = ( @@ -101,21 +101,6 @@ "ScalingConfig", "FleetConfig", "GameServerConfig", - "ListGameServerDeploymentsRequest", - "ListGameServerDeploymentsResponse", - "GetGameServerDeploymentRequest", - "GetGameServerDeploymentRolloutRequest", - "CreateGameServerDeploymentRequest", - "DeleteGameServerDeploymentRequest", - "UpdateGameServerDeploymentRequest", - "UpdateGameServerDeploymentRolloutRequest", - "FetchDeploymentStateRequest", - "FetchDeploymentStateResponse", - "GameServerDeployment", - "GameServerConfigOverride", - "GameServerDeploymentRollout", - "PreviewGameServerDeploymentRolloutRequest", - "PreviewGameServerDeploymentRolloutResponse", "ListRealmsRequest", "ListRealmsResponse", "GetRealmRequest", @@ -140,4 +125,19 @@ "GameServerClusterConnectionInfo", "GkeClusterReference", "GameServerCluster", + "ListGameServerDeploymentsRequest", + "ListGameServerDeploymentsResponse", + "GetGameServerDeploymentRequest", + "GetGameServerDeploymentRolloutRequest", + "CreateGameServerDeploymentRequest", + "DeleteGameServerDeploymentRequest", + "UpdateGameServerDeploymentRequest", + "UpdateGameServerDeploymentRolloutRequest", + "FetchDeploymentStateRequest", + "FetchDeploymentStateResponse", + "GameServerDeployment", + "GameServerConfigOverride", + "GameServerDeploymentRollout", + "PreviewGameServerDeploymentRolloutRequest", + "PreviewGameServerDeploymentRolloutResponse", ) diff --git a/synth.metadata b/synth.metadata index 23eebbbf..27f96d73 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,26 +1,20 @@ { - "updateTime": "2020-03-23T19:55:43.225589Z", + "updateTime": "2020-03-24T12:13:52.719294Z", "sources": [ - { - "git": { - "name": ".", - "remote": "git@github.com:googleapis/python-game-servers", - "sha": "63e0243caddd86916391638352d09e1a3e2042a5" - } - }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "0be7105dc52590fa9a24e784052298ae37ce53aa", - "internalRef": "302154871" + "sha": "36c0febd0fa7267ab66d14408eec2afd1b6bec4e", + "internalRef": "302639621", + "log": "36c0febd0fa7267ab66d14408eec2afd1b6bec4e\nUpdate GAPIC configurations to v2 .yaml.\n\nPiperOrigin-RevId: 302639621\n\n078f222366ed344509a48f2f084944ef61476613\nFix containeranalysis v1beta1 assembly target name\n\nPiperOrigin-RevId: 302529186\n\n" } }, { - "template": { - "name": "python_library", - "origin": "synthtool.gcp", - "version": "2020.2.4" + "git": { + "name": "synthtool", + "remote": "https://github.com/googleapis/synthtool.git", + "sha": "6a17abc7652e2fe563e1288c6e8c23fc260dda97" } } ], diff --git a/tests/unit/gaming_v1/test_game_server_deployments_service.py b/tests/unit/gaming_v1/test_game_server_deployments_service.py index 9765e26c..a8a39ab1 100644 --- a/tests/unit/gaming_v1/test_game_server_deployments_service.py +++ b/tests/unit/gaming_v1/test_game_server_deployments_service.py @@ -934,29 +934,29 @@ def test_game_server_deployments_service_grpc_lro_client(): assert transport.operations_client is transport.operations_client -def test_game_server_deployment_path(): +def test_game_server_deployment_rollout_path(): project = "squid" location = "clam" deployment = "whelk" - expected = "projects/{project}/locations/{location}/gameServerDeployments/{deployment}".format( + expected = "projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout".format( project=project, location=location, deployment=deployment ) - actual = GameServerDeploymentsServiceClient.game_server_deployment_path( + actual = GameServerDeploymentsServiceClient.game_server_deployment_rollout_path( project, location, deployment ) assert expected == actual -def test_game_server_deployment_rollout_path(): +def test_game_server_deployment_path(): project = "squid" location = "clam" deployment = "whelk" - expected = "projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout".format( + expected = "projects/{project}/locations/{location}/gameServerDeployments/{deployment}".format( project=project, location=location, deployment=deployment ) - actual = GameServerDeploymentsServiceClient.game_server_deployment_rollout_path( + actual = GameServerDeploymentsServiceClient.game_server_deployment_path( project, location, deployment ) assert expected == actual