The game server deployment is used to control the deployment of Agones fleets.
Equality
Instances of this class created via copy-construction or copy-assignment always compare equal. Instances created with equal std::shared_ptr<*Connection>
objects compare equal. Objects that compare equal share the same underlying resources.
Performance
Creating a new instance of this class is a relatively expensive operation, new objects establish new connections to the service. In contrast, copy-construction, move-construction, and the corresponding assignment operations are relatively efficient as the copies share all underlying resources.
Thread Safety
Concurrent access to different instances of this class, even if they compare equal, is guaranteed to work. Two or more threads operating on the same instance of this class is not guaranteed to work. Since copy-construction and move-construction is a relatively efficient operation, consider using such a copy when using this class from multiple threads.
Constructors
GameServerDeploymentsServiceClient(GameServerDeploymentsServiceClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
GameServerDeploymentsServiceClient const &
|
GameServerDeploymentsServiceClient(GameServerDeploymentsServiceClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
GameServerDeploymentsServiceClient &&
|
GameServerDeploymentsServiceClient(std::shared_ptr< GameServerDeploymentsServiceConnection >, Options)
Parameters | |
---|---|
Name | Description |
connection |
std::shared_ptr< GameServerDeploymentsServiceConnection >
|
opts |
Options
|
Operators
operator=(GameServerDeploymentsServiceClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
GameServerDeploymentsServiceClient const &
|
Returns | |
---|---|
Type | Description |
GameServerDeploymentsServiceClient & |
operator=(GameServerDeploymentsServiceClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
GameServerDeploymentsServiceClient &&
|
Returns | |
---|---|
Type | Description |
GameServerDeploymentsServiceClient & |
Functions
ListGameServerDeployments(std::string const &, Options)
Lists game server deployments in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The parent resource name, in the following form: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::gaming::v1::GameServerDeployment > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListGameServerDeployments(google::cloud::gaming::v1::ListGameServerDeploymentsRequest, Options)
Lists game server deployments in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::gaming::v1::ListGameServerDeploymentsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::gaming::v1::GameServerDeployment > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetGameServerDeployment(std::string const &, Options)
Gets details of a single game server deployment.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the game server delpoyment to retrieve, in the following form: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::gaming::v1::GameServerDeployment > |
the result of the RPC. The response message type (google.cloud.gaming.v1.GameServerDeployment) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetGameServerDeployment(google::cloud::gaming::v1::GetGameServerDeploymentRequest const &, Options)
Gets details of a single game server deployment.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::gaming::v1::GetGameServerDeploymentRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::gaming::v1::GameServerDeployment > |
the result of the RPC. The response message type (google.cloud.gaming.v1.GameServerDeployment) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
CreateGameServerDeployment(std::string const &, google::cloud::gaming::v1::GameServerDeployment const &, Options)
Creates a new game server deployment in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The parent resource name, in the following form: |
game_server_deployment |
google::cloud::gaming::v1::GameServerDeployment const &
Required. The game server delpoyment resource to be created. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gaming::v1::GameServerDeployment > > |
A |
CreateGameServerDeployment(google::cloud::gaming::v1::CreateGameServerDeploymentRequest const &, Options)
Creates a new game server deployment in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::gaming::v1::CreateGameServerDeploymentRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gaming::v1::GameServerDeployment > > |
A |
DeleteGameServerDeployment(std::string const &, Options)
Deletes a single game server deployment.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the game server delpoyment to delete, in the following form: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gaming::v1::OperationMetadata > > |
A |
DeleteGameServerDeployment(google::cloud::gaming::v1::DeleteGameServerDeploymentRequest const &, Options)
Deletes a single game server deployment.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::gaming::v1::DeleteGameServerDeploymentRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gaming::v1::OperationMetadata > > |
A |
UpdateGameServerDeployment(google::cloud::gaming::v1::GameServerDeployment const &, google::protobuf::FieldMask const &, Options)
Patches a game server deployment.
Parameters | |
---|---|
Name | Description |
game_server_deployment |
google::cloud::gaming::v1::GameServerDeployment const &
Required. The game server delpoyment to be updated. Only fields specified in update_mask are updated. |
update_mask |
google::protobuf::FieldMask const &
Required. Mask of fields to update. At least one path must be supplied in this field. For the |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gaming::v1::GameServerDeployment > > |
A |
UpdateGameServerDeployment(google::cloud::gaming::v1::UpdateGameServerDeploymentRequest const &, Options)
Patches a game server deployment.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::gaming::v1::UpdateGameServerDeploymentRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gaming::v1::GameServerDeployment > > |
A |
GetGameServerDeploymentRollout(std::string const &, Options)
Gets details a single game server deployment rollout.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the game server delpoyment to retrieve, in the following form: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::gaming::v1::GameServerDeploymentRollout > |
the result of the RPC. The response message type (google.cloud.gaming.v1.GameServerDeploymentRollout) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetGameServerDeploymentRollout(google::cloud::gaming::v1::GetGameServerDeploymentRolloutRequest const &, Options)
Gets details a single game server deployment rollout.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::gaming::v1::GetGameServerDeploymentRolloutRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::gaming::v1::GameServerDeploymentRollout > |
the result of the RPC. The response message type (google.cloud.gaming.v1.GameServerDeploymentRollout) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateGameServerDeploymentRollout(google::cloud::gaming::v1::GameServerDeploymentRollout const &, google::protobuf::FieldMask const &, Options)
Patches a single game server deployment rollout.
The method will not return an error if the update does not affect any existing realms. For example - if the default_game_server_config is changed but all existing realms use the override, that is valid. Similarly, if a non existing realm is explicitly called out in game_server_config_overrides field, that will also not result in an error.
Parameters | |
---|---|
Name | Description |
rollout |
google::cloud::gaming::v1::GameServerDeploymentRollout const &
Required. The game server delpoyment rollout to be updated. Only fields specified in update_mask are updated. |
update_mask |
google::protobuf::FieldMask const &
Required. Mask of fields to update. At least one path must be supplied in this field. For the |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gaming::v1::GameServerDeployment > > |
A |
UpdateGameServerDeploymentRollout(google::cloud::gaming::v1::UpdateGameServerDeploymentRolloutRequest const &, Options)
Patches a single game server deployment rollout.
The method will not return an error if the update does not affect any existing realms. For example - if the default_game_server_config is changed but all existing realms use the override, that is valid. Similarly, if a non existing realm is explicitly called out in game_server_config_overrides field, that will also not result in an error.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::gaming::v1::UpdateGameServerDeploymentRolloutRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gaming::v1::GameServerDeployment > > |
A |
PreviewGameServerDeploymentRollout(google::cloud::gaming::v1::PreviewGameServerDeploymentRolloutRequest const &, Options)
Previews the game server deployment rollout.
This API does not mutate the rollout resource.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::gaming::v1::PreviewGameServerDeploymentRolloutRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::gaming::v1::PreviewGameServerDeploymentRolloutResponse > |
the result of the RPC. The response message type (google.cloud.gaming.v1.PreviewGameServerDeploymentRolloutResponse) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
FetchDeploymentState(google::cloud::gaming::v1::FetchDeploymentStateRequest const &, Options)
Retrieves information about the current state of the game server deployment.
Gathers all the Agones fleets and Agones autoscalers, including fleets running an older version of the game server deployment.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::gaming::v1::FetchDeploymentStateRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::gaming::v1::FetchDeploymentStateResponse > |
the result of the RPC. The response message type (google.cloud.gaming.v1.FetchDeploymentStateResponse) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |