module Google::Cloud::Gaming::V1::GameServerDeploymentsService::Paths
Path helper methods for the GameServerDeploymentsService
API.
Public Instance Methods
Create a fully-qualified GameServerDeployment resource string.
The resource will be in the following format:
`projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
@param project [String] @param location [String] @param deployment [String]
@return [::String]
# 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
Create a fully-qualified GameServerDeploymentRollout resource string.
The resource will be in the following format:
`projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`
@param project [String] @param location [String] @param deployment [String]
@return [::String]
# 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
Create a fully-qualified Location resource string.
The resource will be in the following format:
`projects/{project}/locations/{location}`
@param project [String] @param location [String]
@return [::String]
# 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