Cloud Resource Manager v3 API - Class TagHolds.TagHoldsClient (2.4.0)

public class TagHolds.TagHoldsClient : ClientBase<TagHolds.TagHoldsClient>

Reference documentation and code samples for the Cloud Resource Manager v3 API class TagHolds.TagHoldsClient.

Client for TagHolds

Inheritance

object > ClientBase > ClientBaseTagHoldsTagHoldsClient > TagHolds.TagHoldsClient

Namespace

Google.Cloud.ResourceManager.V3

Assembly

Google.Cloud.ResourceManager.V3.dll

Constructors

TagHoldsClient()

protected TagHoldsClient()

Protected parameterless constructor to allow creation of test doubles.

TagHoldsClient(CallInvoker)

public TagHoldsClient(CallInvoker callInvoker)

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

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

TagHoldsClient(ChannelBase)

public TagHoldsClient(ChannelBase channel)

Creates a new client for TagHolds

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

TagHoldsClient(ClientBaseConfiguration)

protected TagHoldsClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateOperationsClient()

public virtual Operations.OperationsClient CreateOperationsClient()

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

Returns
Type Description
OperationsOperationsClient

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

CreateTagHold(CreateTagHoldRequest, CallOptions)

public virtual Operation CreateTagHold(CreateTagHoldRequest request, CallOptions options)

Creates a TagHold. Returns ALREADY_EXISTS if a TagHold with the same resource and origin exists under the same TagValue.

Parameters
Name Description
request CreateTagHoldRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

CreateTagHold(CreateTagHoldRequest, Metadata, DateTime?, CancellationToken)

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

Creates a TagHold. Returns ALREADY_EXISTS if a TagHold with the same resource and origin exists under the same TagValue.

Parameters
Name Description
request CreateTagHoldRequest

The request to send to the server.

headers Metadata

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

deadline 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.

CreateTagHoldAsync(CreateTagHoldRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> CreateTagHoldAsync(CreateTagHoldRequest request, CallOptions options)

Creates a TagHold. Returns ALREADY_EXISTS if a TagHold with the same resource and origin exists under the same TagValue.

Parameters
Name Description
request CreateTagHoldRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

CreateTagHoldAsync(CreateTagHoldRequest, Metadata, DateTime?, CancellationToken)

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

Creates a TagHold. Returns ALREADY_EXISTS if a TagHold with the same resource and origin exists under the same TagValue.

Parameters
Name Description
request CreateTagHoldRequest

The request to send to the server.

headers Metadata

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

deadline 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.

DeleteTagHold(DeleteTagHoldRequest, CallOptions)

public virtual Operation DeleteTagHold(DeleteTagHoldRequest request, CallOptions options)

Deletes a TagHold.

Parameters
Name Description
request DeleteTagHoldRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

DeleteTagHold(DeleteTagHoldRequest, Metadata, DateTime?, CancellationToken)

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

Deletes a TagHold.

Parameters
Name Description
request DeleteTagHoldRequest

The request to send to the server.

headers Metadata

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

deadline 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.

DeleteTagHoldAsync(DeleteTagHoldRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> DeleteTagHoldAsync(DeleteTagHoldRequest request, CallOptions options)

Deletes a TagHold.

Parameters
Name Description
request DeleteTagHoldRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

DeleteTagHoldAsync(DeleteTagHoldRequest, Metadata, DateTime?, CancellationToken)

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

Deletes a TagHold.

Parameters
Name Description
request DeleteTagHoldRequest

The request to send to the server.

headers Metadata

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

deadline 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.

ListTagHolds(ListTagHoldsRequest, CallOptions)

public virtual ListTagHoldsResponse ListTagHolds(ListTagHoldsRequest request, CallOptions options)

Lists TagHolds under a TagValue.

Parameters
Name Description
request ListTagHoldsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ListTagHoldsResponse

The response received from the server.

ListTagHolds(ListTagHoldsRequest, Metadata, DateTime?, CancellationToken)

public virtual ListTagHoldsResponse ListTagHolds(ListTagHoldsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists TagHolds under a TagValue.

Parameters
Name Description
request ListTagHoldsRequest

The request to send to the server.

headers Metadata

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

deadline 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
ListTagHoldsResponse

The response received from the server.

ListTagHoldsAsync(ListTagHoldsRequest, CallOptions)

public virtual AsyncUnaryCall<ListTagHoldsResponse> ListTagHoldsAsync(ListTagHoldsRequest request, CallOptions options)

Lists TagHolds under a TagValue.

Parameters
Name Description
request ListTagHoldsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallListTagHoldsResponse

The call object.

ListTagHoldsAsync(ListTagHoldsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListTagHoldsResponse> ListTagHoldsAsync(ListTagHoldsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists TagHolds under a TagValue.

Parameters
Name Description
request ListTagHoldsRequest

The request to send to the server.

headers Metadata

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

deadline 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
AsyncUnaryCallListTagHoldsResponse

The call object.

NewInstance(ClientBaseConfiguration)

protected override TagHolds.TagHoldsClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
TagHoldsTagHoldsClient
Overrides