Compute Engine v1 API - Class SnapshotSettingsService.SnapshotSettingsServiceClient (2.12.0)

public class SnapshotSettingsService.SnapshotSettingsServiceClient : ClientBase<SnapshotSettingsService.SnapshotSettingsServiceClient>

Reference documentation and code samples for the Compute Engine v1 API class SnapshotSettingsService.SnapshotSettingsServiceClient.

Client for SnapshotSettingsService

Inheritance

object > ClientBase > ClientBaseSnapshotSettingsServiceSnapshotSettingsServiceClient > SnapshotSettingsService.SnapshotSettingsServiceClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

SnapshotSettingsServiceClient()

protected SnapshotSettingsServiceClient()

Protected parameterless constructor to allow creation of test doubles.

SnapshotSettingsServiceClient(CallInvoker)

public SnapshotSettingsServiceClient(CallInvoker callInvoker)

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

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

SnapshotSettingsServiceClient(ChannelBase)

public SnapshotSettingsServiceClient(ChannelBase channel)

Creates a new client for SnapshotSettingsService

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

SnapshotSettingsServiceClient(ClientBaseConfiguration)

protected SnapshotSettingsServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateOperationsClientForGlobalOperations()

public virtual Operations.OperationsClient CreateOperationsClientForGlobalOperations()

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

Returns
TypeDescription
OperationsOperationsClient

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

Get(GetSnapshotSettingRequest, CallOptions)

public virtual SnapshotSettings Get(GetSnapshotSettingRequest request, CallOptions options)

Get snapshot settings.

Parameters
NameDescription
requestGetSnapshotSettingRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
SnapshotSettings

The response received from the server.

Get(GetSnapshotSettingRequest, Metadata, DateTime?, CancellationToken)

public virtual SnapshotSettings Get(GetSnapshotSettingRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Get snapshot settings.

Parameters
NameDescription
requestGetSnapshotSettingRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
SnapshotSettings

The response received from the server.

GetAsync(GetSnapshotSettingRequest, CallOptions)

public virtual AsyncUnaryCall<SnapshotSettings> GetAsync(GetSnapshotSettingRequest request, CallOptions options)

Get snapshot settings.

Parameters
NameDescription
requestGetSnapshotSettingRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallSnapshotSettings

The call object.

GetAsync(GetSnapshotSettingRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<SnapshotSettings> GetAsync(GetSnapshotSettingRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Get snapshot settings.

Parameters
NameDescription
requestGetSnapshotSettingRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallSnapshotSettings

The call object.

NewInstance(ClientBaseConfiguration)

protected override SnapshotSettingsService.SnapshotSettingsServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
SnapshotSettingsServiceSnapshotSettingsServiceClient
Overrides

Patch(PatchSnapshotSettingRequest, CallOptions)

public virtual Operation Patch(PatchSnapshotSettingRequest request, CallOptions options)

Patch snapshot settings.

Parameters
NameDescription
requestPatchSnapshotSettingRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Patch(PatchSnapshotSettingRequest, Metadata, DateTime?, CancellationToken)

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

Patch snapshot settings.

Parameters
NameDescription
requestPatchSnapshotSettingRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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.

PatchAsync(PatchSnapshotSettingRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> PatchAsync(PatchSnapshotSettingRequest request, CallOptions options)

Patch snapshot settings.

Parameters
NameDescription
requestPatchSnapshotSettingRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

PatchAsync(PatchSnapshotSettingRequest, Metadata, DateTime?, CancellationToken)

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

Patch snapshot settings.

Parameters
NameDescription
requestPatchSnapshotSettingRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallOperation

The call object.