Game Services v1 API - Class GameServerConfigsService.GameServerConfigsServiceClient (2.1.0)

public class GameServerConfigsServiceClient : ClientBase<GameServerConfigsService.GameServerConfigsServiceClient>

Reference documentation and code samples for the Game Services v1 API class GameServerConfigsService.GameServerConfigsServiceClient.

Client for GameServerConfigsService

Inheritance

Object > ClientBase > ClientBase<GameServerConfigsService.GameServerConfigsServiceClient> > GameServerConfigsService.GameServerConfigsServiceClient

Namespace

Google.Cloud.Gaming.V1

Assembly

Google.Cloud.Gaming.V1.dll

Constructors

GameServerConfigsServiceClient()

protected GameServerConfigsServiceClient()

Protected parameterless constructor to allow creation of test doubles.

GameServerConfigsServiceClient(CallInvoker)

public GameServerConfigsServiceClient(CallInvoker callInvoker)

Creates a new client for GameServerConfigsService that uses a custom CallInvoker.

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

GameServerConfigsServiceClient(ChannelBase)

public GameServerConfigsServiceClient(ChannelBase channel)

Creates a new client for GameServerConfigsService

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

GameServerConfigsServiceClient(ClientBase.ClientBaseConfiguration)

protected GameServerConfigsServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

The client configuration.

Methods

CreateGameServerConfig(CreateGameServerConfigRequest, CallOptions)

public virtual Operation CreateGameServerConfig(CreateGameServerConfigRequest request, CallOptions options)

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.

Parameters
NameDescription
requestCreateGameServerConfigRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

CreateGameServerConfig(CreateGameServerConfigRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Operation CreateGameServerConfig(CreateGameServerConfigRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

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.

Parameters
NameDescription
requestCreateGameServerConfigRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

CreateGameServerConfigAsync(CreateGameServerConfigRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> CreateGameServerConfigAsync(CreateGameServerConfigRequest request, CallOptions options)

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.

Parameters
NameDescription
requestCreateGameServerConfigRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

CreateGameServerConfigAsync(CreateGameServerConfigRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Operation> CreateGameServerConfigAsync(CreateGameServerConfigRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

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.

Parameters
NameDescription
requestCreateGameServerConfigRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

CreateOperationsClient()

public virtual Operations.OperationsClient CreateOperationsClient()

Creates a new instance of Operations.OperationsClient using the same call invoker as this client.

Returns
TypeDescription
Operations.OperationsClient

A new Operations client for the same target as this client.

DeleteGameServerConfig(DeleteGameServerConfigRequest, CallOptions)

public virtual Operation DeleteGameServerConfig(DeleteGameServerConfigRequest request, CallOptions options)

Deletes a single game server config. The deletion will fail if the game server config is referenced in a game server deployment rollout.

Parameters
NameDescription
requestDeleteGameServerConfigRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

DeleteGameServerConfig(DeleteGameServerConfigRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Operation DeleteGameServerConfig(DeleteGameServerConfigRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Deletes a single game server config. The deletion will fail if the game server config is referenced in a game server deployment rollout.

Parameters
NameDescription
requestDeleteGameServerConfigRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

DeleteGameServerConfigAsync(DeleteGameServerConfigRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> DeleteGameServerConfigAsync(DeleteGameServerConfigRequest request, CallOptions options)

Deletes a single game server config. The deletion will fail if the game server config is referenced in a game server deployment rollout.

Parameters
NameDescription
requestDeleteGameServerConfigRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

DeleteGameServerConfigAsync(DeleteGameServerConfigRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Operation> DeleteGameServerConfigAsync(DeleteGameServerConfigRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Deletes a single game server config. The deletion will fail if the game server config is referenced in a game server deployment rollout.

Parameters
NameDescription
requestDeleteGameServerConfigRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

GetGameServerConfig(GetGameServerConfigRequest, CallOptions)

public virtual GameServerConfig GetGameServerConfig(GetGameServerConfigRequest request, CallOptions options)

Gets details of a single game server config.

Parameters
NameDescription
requestGetGameServerConfigRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
GameServerConfig

The response received from the server.

GetGameServerConfig(GetGameServerConfigRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual GameServerConfig GetGameServerConfig(GetGameServerConfigRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Gets details of a single game server config.

Parameters
NameDescription
requestGetGameServerConfigRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
GameServerConfig

The response received from the server.

GetGameServerConfigAsync(GetGameServerConfigRequest, CallOptions)

public virtual AsyncUnaryCall<GameServerConfig> GetGameServerConfigAsync(GetGameServerConfigRequest request, CallOptions options)

Gets details of a single game server config.

Parameters
NameDescription
requestGetGameServerConfigRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<GameServerConfig>

The call object.

GetGameServerConfigAsync(GetGameServerConfigRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<GameServerConfig> GetGameServerConfigAsync(GetGameServerConfigRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Gets details of a single game server config.

Parameters
NameDescription
requestGetGameServerConfigRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<GameServerConfig>

The call object.

ListGameServerConfigs(ListGameServerConfigsRequest, CallOptions)

public virtual ListGameServerConfigsResponse ListGameServerConfigs(ListGameServerConfigsRequest request, CallOptions options)

Lists game server configs in a given project, location, and game server deployment.

Parameters
NameDescription
requestListGameServerConfigsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ListGameServerConfigsResponse

The response received from the server.

ListGameServerConfigs(ListGameServerConfigsRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual ListGameServerConfigsResponse ListGameServerConfigs(ListGameServerConfigsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Lists game server configs in a given project, location, and game server deployment.

Parameters
NameDescription
requestListGameServerConfigsRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ListGameServerConfigsResponse

The response received from the server.

ListGameServerConfigsAsync(ListGameServerConfigsRequest, CallOptions)

public virtual AsyncUnaryCall<ListGameServerConfigsResponse> ListGameServerConfigsAsync(ListGameServerConfigsRequest request, CallOptions options)

Lists game server configs in a given project, location, and game server deployment.

Parameters
NameDescription
requestListGameServerConfigsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<ListGameServerConfigsResponse>

The call object.

ListGameServerConfigsAsync(ListGameServerConfigsRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<ListGameServerConfigsResponse> ListGameServerConfigsAsync(ListGameServerConfigsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Lists game server configs in a given project, location, and game server deployment.

Parameters
NameDescription
requestListGameServerConfigsRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<ListGameServerConfigsResponse>

The call object.

NewInstance(ClientBase.ClientBaseConfiguration)

protected override GameServerConfigsService.GameServerConfigsServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
GameServerConfigsService.GameServerConfigsServiceClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Gaming.V1.GameServerConfigsService.GameServerConfigsServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)