Compute Engine v1 API - Class RegionSnapshotSettings.RegionSnapshotSettingsClient (3.27.0)

public class RegionSnapshotSettings.RegionSnapshotSettingsClient : ClientBase<RegionSnapshotSettings.RegionSnapshotSettingsClient>

Reference documentation and code samples for the Compute Engine v1 API class RegionSnapshotSettings.RegionSnapshotSettingsClient.

Client for RegionSnapshotSettings

Inheritance

object > ClientBase > ClientBaseRegionSnapshotSettingsRegionSnapshotSettingsClient > RegionSnapshotSettings.RegionSnapshotSettingsClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

RegionSnapshotSettingsClient()

protected RegionSnapshotSettingsClient()

Protected parameterless constructor to allow creation of test doubles.

RegionSnapshotSettingsClient(CallInvoker)

public RegionSnapshotSettingsClient(CallInvoker callInvoker)

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

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

RegionSnapshotSettingsClient(ChannelBase)

public RegionSnapshotSettingsClient(ChannelBase channel)

Creates a new client for RegionSnapshotSettings

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

RegionSnapshotSettingsClient(ClientBaseConfiguration)

protected RegionSnapshotSettingsClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateOperationsClientForRegionOperations()

public virtual Operations.OperationsClient CreateOperationsClientForRegionOperations()

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

Returns
Type Description
OperationsOperationsClient

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

Get(GetRegionSnapshotSettingRequest, CallOptions)

public virtual SnapshotSettings Get(GetRegionSnapshotSettingRequest request, CallOptions options)

Get region snapshot settings.

Parameters
Name Description
request GetRegionSnapshotSettingRequest

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(GetRegionSnapshotSettingRequest, Metadata, DateTime?, CancellationToken)

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

Get region snapshot settings.

Parameters
Name Description
request GetRegionSnapshotSettingRequest

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(GetRegionSnapshotSettingRequest, CallOptions)

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

Get region snapshot settings.

Parameters
Name Description
request GetRegionSnapshotSettingRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallSnapshotSettings

The call object.

GetAsync(GetRegionSnapshotSettingRequest, Metadata, DateTime?, CancellationToken)

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

Get region snapshot settings.

Parameters
Name Description
request GetRegionSnapshotSettingRequest

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 RegionSnapshotSettings.RegionSnapshotSettingsClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
RegionSnapshotSettingsRegionSnapshotSettingsClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.RegionSnapshotSettings.RegionSnapshotSettingsClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

Patch(PatchRegionSnapshotSettingRequest, CallOptions)

public virtual Operation Patch(PatchRegionSnapshotSettingRequest request, CallOptions options)

Patch region snapshot settings.

Parameters
Name Description
request PatchRegionSnapshotSettingRequest

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(PatchRegionSnapshotSettingRequest, Metadata, DateTime?, CancellationToken)

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

Patch region snapshot settings.

Parameters
Name Description
request PatchRegionSnapshotSettingRequest

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(PatchRegionSnapshotSettingRequest, CallOptions)

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

Patch region snapshot settings.

Parameters
Name Description
request PatchRegionSnapshotSettingRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

PatchAsync(PatchRegionSnapshotSettingRequest, Metadata, DateTime?, CancellationToken)

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

Patch region snapshot settings.

Parameters
Name Description
request PatchRegionSnapshotSettingRequest

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.