Compute Engine v1 API - Class SnapshotSettingsService.SnapshotSettingsServiceClient (2.17.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
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

SnapshotSettingsServiceClient(ChannelBase)

public SnapshotSettingsServiceClient(ChannelBase channel)

Creates a new client for SnapshotSettingsService

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

SnapshotSettingsServiceClient(ClientBaseConfiguration)

protected SnapshotSettingsServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

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
Type Description
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
Name Description
request GetSnapshotSettingRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
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
Name Description
request GetSnapshotSettingRequest

The request to send to the server.

headers Metadata

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

deadline System.DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
SnapshotSettings

The response received from the server.

GetAsync(GetSnapshotSettingRequest, CallOptions)

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

Get snapshot settings.

Parameters
Name Description
request GetSnapshotSettingRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
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
Name Description
request GetSnapshotSettingRequest

The request to send to the server.

headers Metadata

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

deadline System.DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallSnapshotSettings

The call object.

NewInstance(ClientBaseConfiguration)

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

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
SnapshotSettingsServiceSnapshotSettingsServiceClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.SnapshotSettingsService.SnapshotSettingsServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

Patch(PatchSnapshotSettingRequest, CallOptions)

public virtual Operation Patch(PatchSnapshotSettingRequest request, CallOptions options)

Patch snapshot settings.

Parameters
Name Description
request PatchSnapshotSettingRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
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
Name Description
request PatchSnapshotSettingRequest

The request to send to the server.

headers Metadata

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

deadline System.DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

PatchAsync(PatchSnapshotSettingRequest, CallOptions)

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

Patch snapshot settings.

Parameters
Name Description
request PatchSnapshotSettingRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
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
Name Description
request PatchSnapshotSettingRequest

The request to send to the server.

headers Metadata

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

deadline System.DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.