Reference documentation and code samples for the Cloud Gaming V1 API class Google::Cloud::Gaming::V1::GameServerConfigsService::Rest::Client.
REST client for the GameServerConfigsService service.
The game server config configures the game servers in an Agones fleet.
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::Configuration
Configure the GameServerConfigsService Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all GameServerConfigsService clients ::Google::Cloud::Gaming::V1::GameServerConfigsService::Rest::Client.configure do |config| config.timeout = 10.0 end
#configure
def configure() { |config| ... } -> Client::Configuration
Configure the GameServerConfigsService Client instance.
The configuration is set to the derived mode, meaning that values can be changed, but structural changes (adding new fields, etc.) are not allowed. Structural changes should be made on Client.configure.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
#create_game_server_config
def create_game_server_config(request, options = nil) -> ::Gapic::Operation
def create_game_server_config(parent: nil, config_id: nil, game_server_config: nil) -> ::Gapic::Operation
Creates a new game server config in a given project, location, and game server deployment. Game server configs are immutable, and are not applied until referenced in the game server deployment rollout resource.
def create_game_server_config(request, options = nil) -> ::Gapic::Operation
create_game_server_config
via a request object, either of type
CreateGameServerConfigRequest or an equivalent Hash.
- request (::Google::Cloud::Gaming::V1::CreateGameServerConfigRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def create_game_server_config(parent: nil, config_id: nil, game_server_config: nil) -> ::Gapic::Operation
create_game_server_config
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The parent resource name, in the following form:
projects/{project}/locations/{location}/gameServerDeployments/{deployment}/
. - config_id (::String) — Required. The ID of the game server config resource to be created.
- game_server_config (::Google::Cloud::Gaming::V1::GameServerConfig, ::Hash) — Required. The game server config resource to be created.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#delete_game_server_config
def delete_game_server_config(request, options = nil) -> ::Gapic::Operation
def delete_game_server_config(name: nil) -> ::Gapic::Operation
Deletes a single game server config. The deletion will fail if the game server config is referenced in a game server deployment rollout.
def delete_game_server_config(request, options = nil) -> ::Gapic::Operation
delete_game_server_config
via a request object, either of type
DeleteGameServerConfigRequest or an equivalent Hash.
- request (::Google::Cloud::Gaming::V1::DeleteGameServerConfigRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def delete_game_server_config(name: nil) -> ::Gapic::Operation
delete_game_server_config
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The name of the game server config to delete, in the following form:
projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}
.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#get_game_server_config
def get_game_server_config(request, options = nil) -> ::Google::Cloud::Gaming::V1::GameServerConfig
def get_game_server_config(name: nil) -> ::Google::Cloud::Gaming::V1::GameServerConfig
Gets details of a single game server config.
def get_game_server_config(request, options = nil) -> ::Google::Cloud::Gaming::V1::GameServerConfig
get_game_server_config
via a request object, either of type
Google::Cloud::Gaming::V1::GetGameServerConfigRequest or an equivalent Hash.
- request (::Google::Cloud::Gaming::V1::GetGameServerConfigRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_game_server_config(name: nil) -> ::Google::Cloud::Gaming::V1::GameServerConfig
get_game_server_config
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The name of the game server config to retrieve, in the following form:
projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}
.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Gaming::V1::GameServerConfig)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#initialize
def initialize() { |config| ... } -> Client
Create a new GameServerConfigsService REST client object.
- (config) — Configure the GameServerConfigsService client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::Gaming::V1::GameServerConfigsService::Rest::Client.new # Create a client using a custom configuration client = ::Google::Cloud::Gaming::V1::GameServerConfigsService::Rest::Client.new do |config| config.timeout = 10.0 end
#list_game_server_configs
def list_game_server_configs(request, options = nil) -> ::Google::Cloud::Gaming::V1::ListGameServerConfigsResponse
def list_game_server_configs(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::Gaming::V1::ListGameServerConfigsResponse
Lists game server configs in a given project, location, and game server deployment.
def list_game_server_configs(request, options = nil) -> ::Google::Cloud::Gaming::V1::ListGameServerConfigsResponse
list_game_server_configs
via a request object, either of type
ListGameServerConfigsRequest or an equivalent Hash.
- request (::Google::Cloud::Gaming::V1::ListGameServerConfigsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_game_server_configs(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::Gaming::V1::ListGameServerConfigsResponse
list_game_server_configs
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The parent resource name, in the following form:
projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/*
. - page_size (::Integer) — Optional. The maximum number of items to return. If unspecified, server will pick an appropriate default. Server may return fewer items than requested. A caller should only rely on response's next_page_token to determine if there are more GameServerConfigs left to be queried.
- page_token (::String) — Optional. The next_page_token value returned from a previous list request, if any.
- filter (::String) — Optional. The filter to apply to list results.
- order_by (::String) — Optional. Specifies the ordering of results following syntax at https://cloud.google.com/apis/design/design_patterns#sorting_order.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Gaming::V1::ListGameServerConfigsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#operations_client
def operations_client() -> ::Google::Cloud::Gaming::V1::GameServerConfigsService::Rest::Operations
Get the associated client for long-running operations.