Cloud Resource Manager v3 API - Class TagHolds.TagHoldsClient (2.3.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
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

TagHoldsClient(ChannelBase)

public TagHoldsClient(ChannelBase channel)

Creates a new client for TagHolds

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

TagHoldsClient(ClientBaseConfiguration)

protected TagHoldsClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

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
TypeDescription
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
NameDescription
requestCreateTagHoldRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestCreateTagHoldRequest

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.

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
NameDescription
requestCreateTagHoldRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestCreateTagHoldRequest

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.

DeleteTagHold(DeleteTagHoldRequest, CallOptions)

public virtual Operation DeleteTagHold(DeleteTagHoldRequest request, CallOptions options)

Deletes a TagHold.

Parameters
NameDescription
requestDeleteTagHoldRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestDeleteTagHoldRequest

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.

DeleteTagHoldAsync(DeleteTagHoldRequest, CallOptions)

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

Deletes a TagHold.

Parameters
NameDescription
requestDeleteTagHoldRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestDeleteTagHoldRequest

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.

ListTagHolds(ListTagHoldsRequest, CallOptions)

public virtual ListTagHoldsResponse ListTagHolds(ListTagHoldsRequest request, CallOptions options)

Lists TagHolds under a TagValue.

Parameters
NameDescription
requestListTagHoldsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestListTagHoldsRequest

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
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
NameDescription
requestListTagHoldsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestListTagHoldsRequest

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
AsyncUnaryCallListTagHoldsResponse

The call object.

NewInstance(ClientBaseConfiguration)

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

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
TagHoldsTagHoldsClient
Overrides