module Google::Cloud::Gaming::V1::GameServerConfigsService::Paths
Path helper methods for the GameServerConfigsService
API.
Public Instance Methods
game_server_config_path(project:, location:, deployment:, config: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/")
click to toggle source
Create a fully-qualified GameServerConfig resource string.
The resource will be in the following format:
`projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`
@param project [String] @param location [String] @param deployment [String] @param config [String]
@return [::String]
# File lib/google/cloud/gaming/v1/game_server_configs_service/paths.rb, line 40 def game_server_config_path project:, location:, deployment:, config: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "deployment cannot contain /" if deployment.to_s.include? "/" "projects/#{project}/locations/#{location}/gameServerDeployments/#{deployment}/configs/#{config}" end
game_server_deployment_path(project:, location:, deployment: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/")
click to toggle source
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_configs_service/paths.rb, line 60 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