public sealed class TagHoldsClientImpl : TagHoldsClient
Reference documentation and code samples for the Cloud Resource Manager v3 API class TagHoldsClientImpl.
TagHolds client wrapper implementation, for convenient use.
Namespace
Google.Cloud.ResourceManager.V3Assembly
Google.Cloud.ResourceManager.V3.dll
Remarks
Allow users to create and manage TagHolds for TagValues. TagHolds represent the use of a Tag Value that is not captured by TagBindings but should still block TagValue deletion (such as a reference in a policy condition). This service provides isolated failure domains by cloud location so that TagHolds can be managed in the same location as their usage.
Constructors
TagHoldsClientImpl(TagHoldsClient, TagHoldsSettings, ILogger)
public TagHoldsClientImpl(TagHolds.TagHoldsClient grpcClient, TagHoldsSettings settings, ILogger logger)
Constructs a client wrapper for the TagHolds service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient |
TagHoldsTagHoldsClient The underlying gRPC client. |
settings |
TagHoldsSettings The base TagHoldsSettings used within this client. |
logger |
ILogger Optional ILogger to use within this client. |
Properties
CreateTagHoldOperationsClient
public override OperationsClient CreateTagHoldOperationsClient { get; }
The long-running operations client for CreateTagHold
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeleteTagHoldOperationsClient
public override OperationsClient DeleteTagHoldOperationsClient { get; }
The long-running operations client for DeleteTagHold
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
GrpcClient
public override TagHolds.TagHoldsClient GrpcClient { get; }
The underlying gRPC TagHolds client
Property Value | |
---|---|
Type | Description |
TagHoldsTagHoldsClient |
Methods
CreateTagHold(CreateTagHoldRequest, CallSettings)
public override Operation<TagHold, CreateTagHoldMetadata> CreateTagHold(CreateTagHoldRequest request, CallSettings callSettings = null)
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 object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationTagHoldCreateTagHoldMetadata |
The RPC response. |
CreateTagHoldAsync(CreateTagHoldRequest, CallSettings)
public override Task<Operation<TagHold, CreateTagHoldMetadata>> CreateTagHoldAsync(CreateTagHoldRequest request, CallSettings callSettings = null)
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 object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationTagHoldCreateTagHoldMetadata |
A Task containing the RPC response. |
DeleteTagHold(DeleteTagHoldRequest, CallSettings)
public override Operation<Empty, DeleteTagHoldMetadata> DeleteTagHold(DeleteTagHoldRequest request, CallSettings callSettings = null)
Deletes a TagHold.
Parameters | |
---|---|
Name | Description |
request |
DeleteTagHoldRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyDeleteTagHoldMetadata |
The RPC response. |
DeleteTagHoldAsync(DeleteTagHoldRequest, CallSettings)
public override Task<Operation<Empty, DeleteTagHoldMetadata>> DeleteTagHoldAsync(DeleteTagHoldRequest request, CallSettings callSettings = null)
Deletes a TagHold.
Parameters | |
---|---|
Name | Description |
request |
DeleteTagHoldRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyDeleteTagHoldMetadata |
A Task containing the RPC response. |
ListTagHolds(ListTagHoldsRequest, CallSettings)
public override PagedEnumerable<ListTagHoldsResponse, TagHold> ListTagHolds(ListTagHoldsRequest request, CallSettings callSettings = null)
Lists TagHolds under a TagValue.
Parameters | |
---|---|
Name | Description |
request |
ListTagHoldsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListTagHoldsResponseTagHold |
A pageable sequence of TagHold resources. |
ListTagHoldsAsync(ListTagHoldsRequest, CallSettings)
public override PagedAsyncEnumerable<ListTagHoldsResponse, TagHold> ListTagHoldsAsync(ListTagHoldsRequest request, CallSettings callSettings = null)
Lists TagHolds under a TagValue.
Parameters | |
---|---|
Name | Description |
request |
ListTagHoldsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListTagHoldsResponseTagHold |
A pageable asynchronous sequence of TagHold resources. |