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

Commit

Permalink
chore: reorder methods (#23)
Browse files Browse the repository at this point in the history
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/016f4805-e1c0-49da-9122-d613a5d899c3/targets

- [ ] To automatically regenerate this PR, check this box.

Source-Link: googleapis/synthtool@3a89215
  • Loading branch information
yoshi-automation committed Jul 20, 2020
1 parent 1c69b1e commit a7a8b2c
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 59 deletions.
4 changes: 2 additions & 2 deletions google/cloud/gaming_v1/__init__.py
Expand Up @@ -92,12 +92,12 @@
"FleetConfig",
"GameServerCluster",
"GameServerClusterConnectionInfo",
"GameServerClustersServiceClient",
"GameServerConfig",
"GameServerConfigOverride",
"GameServerConfigsServiceClient",
"GameServerDeployment",
"GameServerDeploymentRollout",
"GameServerDeploymentsServiceClient",
"GetGameServerClusterRequest",
"GetGameServerConfigRequest",
"GetGameServerDeploymentRequest",
Expand Down Expand Up @@ -137,5 +137,5 @@
"UpdateGameServerDeploymentRequest",
"UpdateGameServerDeploymentRolloutRequest",
"UpdateRealmRequest",
"GameServerClustersServiceClient",
"GameServerDeploymentsServiceClient",
)
Expand Up @@ -52,14 +52,14 @@ class GameServerDeploymentsServiceAsyncClient:
DEFAULT_ENDPOINT = GameServerDeploymentsServiceClient.DEFAULT_ENDPOINT
DEFAULT_MTLS_ENDPOINT = GameServerDeploymentsServiceClient.DEFAULT_MTLS_ENDPOINT

game_server_deployment_path = staticmethod(
GameServerDeploymentsServiceClient.game_server_deployment_path
)

game_server_deployment_rollout_path = staticmethod(
GameServerDeploymentsServiceClient.game_server_deployment_rollout_path
)

game_server_deployment_path = staticmethod(
GameServerDeploymentsServiceClient.game_server_deployment_path
)

from_service_account_file = (
GameServerDeploymentsServiceClient.from_service_account_file
)
Expand Down
64 changes: 32 additions & 32 deletions google/cloud/gaming_v1/types/__init__.py
Expand Up @@ -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,
Expand Down Expand Up @@ -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__ = (
Expand 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",
Expand All @@ -140,4 +125,19 @@
"GameServerClusterConnectionInfo",
"GkeClusterReference",
"GameServerCluster",
"ListGameServerDeploymentsRequest",
"ListGameServerDeploymentsResponse",
"GetGameServerDeploymentRequest",
"GetGameServerDeploymentRolloutRequest",
"CreateGameServerDeploymentRequest",
"DeleteGameServerDeploymentRequest",
"UpdateGameServerDeploymentRequest",
"UpdateGameServerDeploymentRolloutRequest",
"FetchDeploymentStateRequest",
"FetchDeploymentStateResponse",
"GameServerDeployment",
"GameServerConfigOverride",
"GameServerDeploymentRollout",
"PreviewGameServerDeploymentRolloutRequest",
"PreviewGameServerDeploymentRolloutResponse",
)
2 changes: 1 addition & 1 deletion noxfile.py
Expand Up @@ -137,7 +137,7 @@ def cover(session):
test runs (not system test runs), and then erases coverage data.
"""
session.install("coverage", "pytest-cov")
session.run("coverage", "report", "--show-missing", "--fail-under=100")
session.run("coverage", "report", "--show-missing", "--fail-under=99")

session.run("coverage", "erase")

Expand Down
8 changes: 4 additions & 4 deletions synth.metadata
Expand Up @@ -3,8 +3,8 @@
{
"git": {
"name": ".",
"remote": "git@github.com:googleapis/python-game-servers",
"sha": "318bba3f5d6848f5589f67be34a0da518fffbc0c"
"remote": "https://github.com/googleapis/python-game-servers.git",
"sha": "1c69b1ed137047c80e65a0545a56c191baa1f4ab"
}
},
{
Expand All @@ -19,14 +19,14 @@
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "d82deccf657a66e31bd5da9efdb96c6fa322fc7e"
"sha": "3a89215abd0e66dfc4f21d07d552d0b543abf082"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "d82deccf657a66e31bd5da9efdb96c6fa322fc7e"
"sha": "3a89215abd0e66dfc4f21d07d552d0b543abf082"
}
}
],
Expand Down
32 changes: 16 additions & 16 deletions tests/unit/gapic/gaming_v1/test_game_server_deployments_service.py
Expand Up @@ -2694,59 +2694,59 @@ def test_game_server_deployments_service_grpc_lro_async_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_parse_game_server_deployment_path():
def test_parse_game_server_deployment_rollout_path():
expected = {
"project": "octopus",
"location": "oyster",
"deployment": "nudibranch",
}
path = GameServerDeploymentsServiceClient.game_server_deployment_path(**expected)
path = GameServerDeploymentsServiceClient.game_server_deployment_rollout_path(
**expected
)

# Check that the path construction is reversible.
actual = GameServerDeploymentsServiceClient.parse_game_server_deployment_path(path)
actual = GameServerDeploymentsServiceClient.parse_game_server_deployment_rollout_path(
path
)
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


def test_parse_game_server_deployment_rollout_path():
def test_parse_game_server_deployment_path():
expected = {
"project": "octopus",
"location": "oyster",
"deployment": "nudibranch",
}
path = GameServerDeploymentsServiceClient.game_server_deployment_rollout_path(
**expected
)
path = GameServerDeploymentsServiceClient.game_server_deployment_path(**expected)

# Check that the path construction is reversible.
actual = GameServerDeploymentsServiceClient.parse_game_server_deployment_rollout_path(
path
)
actual = GameServerDeploymentsServiceClient.parse_game_server_deployment_path(path)
assert expected == actual

0 comments on commit a7a8b2c

Please sign in to comment.