Module: Google::Cloud::Gaming::V1::GameServerDeploymentsService::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/gaming/v1/game_server_deployments_service/paths.rb
Overview
Path helper methods for the GameServerDeploymentsService API.
Instance Method Summary collapse
-
#game_server_deployment_path(project:, location:, deployment:) ⇒ ::String
Create a fully-qualified GameServerDeployment resource string.
-
#game_server_deployment_rollout_path(project:, location:, deployment:) ⇒ ::String
Create a fully-qualified GameServerDeploymentRollout resource string.
-
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
Instance Method Details
#game_server_deployment_path(project:, location:, deployment:) ⇒ ::String
Create a fully-qualified GameServerDeployment resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/gameServerDeployments/{deployment}
39 40 41 42 43 44 |
# File 'lib/google/cloud/gaming/v1/game_server_deployments_service/paths.rb', line 39 def game_server_deployment_path project:, location:, deployment: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/gameServerDeployments/#{deployment}" end |
#game_server_deployment_rollout_path(project:, location:, deployment:) ⇒ ::String
Create a fully-qualified GameServerDeploymentRollout resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout
58 59 60 61 62 63 |
# File 'lib/google/cloud/gaming/v1/game_server_deployments_service/paths.rb', line 58 def game_server_deployment_rollout_path project:, location:, deployment: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/gameServerDeployments/#{deployment}/rollout" end |
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
The resource will be in the following format:
projects/{project}/locations/{location}
76 77 78 79 80 |
# File 'lib/google/cloud/gaming/v1/game_server_deployments_service/paths.rb', line 76 def location_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}" end |