Compute Engine v1 API - Class RegionInstantSnapshotGroups.RegionInstantSnapshotGroupsClient (3.27.0)

public class RegionInstantSnapshotGroups.RegionInstantSnapshotGroupsClient : ClientBase<RegionInstantSnapshotGroups.RegionInstantSnapshotGroupsClient>

Reference documentation and code samples for the Compute Engine v1 API class RegionInstantSnapshotGroups.RegionInstantSnapshotGroupsClient.

Client for RegionInstantSnapshotGroups

Inheritance

object > ClientBase > ClientBaseRegionInstantSnapshotGroupsRegionInstantSnapshotGroupsClient > RegionInstantSnapshotGroups.RegionInstantSnapshotGroupsClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

RegionInstantSnapshotGroupsClient()

protected RegionInstantSnapshotGroupsClient()

Protected parameterless constructor to allow creation of test doubles.

RegionInstantSnapshotGroupsClient(CallInvoker)

public RegionInstantSnapshotGroupsClient(CallInvoker callInvoker)

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

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

RegionInstantSnapshotGroupsClient(ChannelBase)

public RegionInstantSnapshotGroupsClient(ChannelBase channel)

Creates a new client for RegionInstantSnapshotGroups

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

RegionInstantSnapshotGroupsClient(ClientBaseConfiguration)

protected RegionInstantSnapshotGroupsClient(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.

Delete(DeleteRegionInstantSnapshotGroupRequest, CallOptions)

public virtual Operation Delete(DeleteRegionInstantSnapshotGroupRequest request, CallOptions options)

deletes a Regional InstantSnapshotGroup resource

Parameters
Name Description
request DeleteRegionInstantSnapshotGroupRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Delete(DeleteRegionInstantSnapshotGroupRequest, Metadata, DateTime?, CancellationToken)

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

deletes a Regional InstantSnapshotGroup resource

Parameters
Name Description
request DeleteRegionInstantSnapshotGroupRequest

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.

DeleteAsync(DeleteRegionInstantSnapshotGroupRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteRegionInstantSnapshotGroupRequest request, CallOptions options)

deletes a Regional InstantSnapshotGroup resource

Parameters
Name Description
request DeleteRegionInstantSnapshotGroupRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

DeleteAsync(DeleteRegionInstantSnapshotGroupRequest, Metadata, DateTime?, CancellationToken)

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

deletes a Regional InstantSnapshotGroup resource

Parameters
Name Description
request DeleteRegionInstantSnapshotGroupRequest

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.

Get(GetRegionInstantSnapshotGroupRequest, CallOptions)

public virtual InstantSnapshotGroup Get(GetRegionInstantSnapshotGroupRequest request, CallOptions options)

returns the specified InstantSnapshotGroup resource in the specified region.

Parameters
Name Description
request GetRegionInstantSnapshotGroupRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
InstantSnapshotGroup

The response received from the server.

Get(GetRegionInstantSnapshotGroupRequest, Metadata, DateTime?, CancellationToken)

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

returns the specified InstantSnapshotGroup resource in the specified region.

Parameters
Name Description
request GetRegionInstantSnapshotGroupRequest

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
InstantSnapshotGroup

The response received from the server.

GetAsync(GetRegionInstantSnapshotGroupRequest, CallOptions)

public virtual AsyncUnaryCall<InstantSnapshotGroup> GetAsync(GetRegionInstantSnapshotGroupRequest request, CallOptions options)

returns the specified InstantSnapshotGroup resource in the specified region.

Parameters
Name Description
request GetRegionInstantSnapshotGroupRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallInstantSnapshotGroup

The call object.

GetAsync(GetRegionInstantSnapshotGroupRequest, Metadata, DateTime?, CancellationToken)

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

returns the specified InstantSnapshotGroup resource in the specified region.

Parameters
Name Description
request GetRegionInstantSnapshotGroupRequest

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
AsyncUnaryCallInstantSnapshotGroup

The call object.

GetIamPolicy(GetIamPolicyRegionInstantSnapshotGroupRequest, CallOptions)

public virtual Policy GetIamPolicy(GetIamPolicyRegionInstantSnapshotGroupRequest request, CallOptions options)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Parameters
Name Description
request GetIamPolicyRegionInstantSnapshotGroupRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Policy

The response received from the server.

GetIamPolicy(GetIamPolicyRegionInstantSnapshotGroupRequest, Metadata, DateTime?, CancellationToken)

public virtual Policy GetIamPolicy(GetIamPolicyRegionInstantSnapshotGroupRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Parameters
Name Description
request GetIamPolicyRegionInstantSnapshotGroupRequest

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
Policy

The response received from the server.

GetIamPolicyAsync(GetIamPolicyRegionInstantSnapshotGroupRequest, CallOptions)

public virtual AsyncUnaryCall<Policy> GetIamPolicyAsync(GetIamPolicyRegionInstantSnapshotGroupRequest request, CallOptions options)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Parameters
Name Description
request GetIamPolicyRegionInstantSnapshotGroupRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallPolicy

The call object.

GetIamPolicyAsync(GetIamPolicyRegionInstantSnapshotGroupRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Policy> GetIamPolicyAsync(GetIamPolicyRegionInstantSnapshotGroupRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Parameters
Name Description
request GetIamPolicyRegionInstantSnapshotGroupRequest

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
AsyncUnaryCallPolicy

The call object.

Insert(InsertRegionInstantSnapshotGroupRequest, CallOptions)

public virtual Operation Insert(InsertRegionInstantSnapshotGroupRequest request, CallOptions options)

creates a Regional InstantSnapshotGroup resource

Parameters
Name Description
request InsertRegionInstantSnapshotGroupRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Insert(InsertRegionInstantSnapshotGroupRequest, Metadata, DateTime?, CancellationToken)

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

creates a Regional InstantSnapshotGroup resource

Parameters
Name Description
request InsertRegionInstantSnapshotGroupRequest

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.

InsertAsync(InsertRegionInstantSnapshotGroupRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> InsertAsync(InsertRegionInstantSnapshotGroupRequest request, CallOptions options)

creates a Regional InstantSnapshotGroup resource

Parameters
Name Description
request InsertRegionInstantSnapshotGroupRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

InsertAsync(InsertRegionInstantSnapshotGroupRequest, Metadata, DateTime?, CancellationToken)

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

creates a Regional InstantSnapshotGroup resource

Parameters
Name Description
request InsertRegionInstantSnapshotGroupRequest

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.

List(ListRegionInstantSnapshotGroupsRequest, CallOptions)

public virtual ListInstantSnapshotGroups List(ListRegionInstantSnapshotGroupsRequest request, CallOptions options)

retrieves the list of InstantSnapshotGroup resources contained within the specified region.

Parameters
Name Description
request ListRegionInstantSnapshotGroupsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ListInstantSnapshotGroups

The response received from the server.

List(ListRegionInstantSnapshotGroupsRequest, Metadata, DateTime?, CancellationToken)

public virtual ListInstantSnapshotGroups List(ListRegionInstantSnapshotGroupsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

retrieves the list of InstantSnapshotGroup resources contained within the specified region.

Parameters
Name Description
request ListRegionInstantSnapshotGroupsRequest

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
ListInstantSnapshotGroups

The response received from the server.

ListAsync(ListRegionInstantSnapshotGroupsRequest, CallOptions)

public virtual AsyncUnaryCall<ListInstantSnapshotGroups> ListAsync(ListRegionInstantSnapshotGroupsRequest request, CallOptions options)

retrieves the list of InstantSnapshotGroup resources contained within the specified region.

Parameters
Name Description
request ListRegionInstantSnapshotGroupsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallListInstantSnapshotGroups

The call object.

ListAsync(ListRegionInstantSnapshotGroupsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListInstantSnapshotGroups> ListAsync(ListRegionInstantSnapshotGroupsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

retrieves the list of InstantSnapshotGroup resources contained within the specified region.

Parameters
Name Description
request ListRegionInstantSnapshotGroupsRequest

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
AsyncUnaryCallListInstantSnapshotGroups

The call object.

NewInstance(ClientBaseConfiguration)

protected override RegionInstantSnapshotGroups.RegionInstantSnapshotGroupsClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
RegionInstantSnapshotGroupsRegionInstantSnapshotGroupsClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.RegionInstantSnapshotGroups.RegionInstantSnapshotGroupsClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

SetIamPolicy(SetIamPolicyRegionInstantSnapshotGroupRequest, CallOptions)

public virtual Policy SetIamPolicy(SetIamPolicyRegionInstantSnapshotGroupRequest request, CallOptions options)

Sets the access control policy on the specified resource. Replaces any existing policy.

Parameters
Name Description
request SetIamPolicyRegionInstantSnapshotGroupRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Policy

The response received from the server.

SetIamPolicy(SetIamPolicyRegionInstantSnapshotGroupRequest, Metadata, DateTime?, CancellationToken)

public virtual Policy SetIamPolicy(SetIamPolicyRegionInstantSnapshotGroupRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Sets the access control policy on the specified resource. Replaces any existing policy.

Parameters
Name Description
request SetIamPolicyRegionInstantSnapshotGroupRequest

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
Policy

The response received from the server.

SetIamPolicyAsync(SetIamPolicyRegionInstantSnapshotGroupRequest, CallOptions)

public virtual AsyncUnaryCall<Policy> SetIamPolicyAsync(SetIamPolicyRegionInstantSnapshotGroupRequest request, CallOptions options)

Sets the access control policy on the specified resource. Replaces any existing policy.

Parameters
Name Description
request SetIamPolicyRegionInstantSnapshotGroupRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallPolicy

The call object.

SetIamPolicyAsync(SetIamPolicyRegionInstantSnapshotGroupRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Policy> SetIamPolicyAsync(SetIamPolicyRegionInstantSnapshotGroupRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Sets the access control policy on the specified resource. Replaces any existing policy.

Parameters
Name Description
request SetIamPolicyRegionInstantSnapshotGroupRequest

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
AsyncUnaryCallPolicy

The call object.

TestIamPermissions(TestIamPermissionsRegionInstantSnapshotGroupRequest, CallOptions)

public virtual TestPermissionsResponse TestIamPermissions(TestIamPermissionsRegionInstantSnapshotGroupRequest request, CallOptions options)

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
request TestIamPermissionsRegionInstantSnapshotGroupRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
TestPermissionsResponse

The response received from the server.

TestIamPermissions(TestIamPermissionsRegionInstantSnapshotGroupRequest, Metadata, DateTime?, CancellationToken)

public virtual TestPermissionsResponse TestIamPermissions(TestIamPermissionsRegionInstantSnapshotGroupRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
request TestIamPermissionsRegionInstantSnapshotGroupRequest

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
TestPermissionsResponse

The response received from the server.

TestIamPermissionsAsync(TestIamPermissionsRegionInstantSnapshotGroupRequest, CallOptions)

public virtual AsyncUnaryCall<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRegionInstantSnapshotGroupRequest request, CallOptions options)

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
request TestIamPermissionsRegionInstantSnapshotGroupRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallTestPermissionsResponse

The call object.

TestIamPermissionsAsync(TestIamPermissionsRegionInstantSnapshotGroupRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRegionInstantSnapshotGroupRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
request TestIamPermissionsRegionInstantSnapshotGroupRequest

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
AsyncUnaryCallTestPermissionsResponse

The call object.