Class TagValuesClientImpl (2.0.0)

public sealed class TagValuesClientImpl : TagValuesClient

TagValues client wrapper implementation, for convenient use.

Inheritance

Object > TagValuesClient > TagValuesClientImpl

Namespace

Google.Cloud.ResourceManager.V3

Assembly

Google.Cloud.ResourceManager.V3.dll

Remarks

Allow users to create and manage tag values.

Constructors

TagValuesClientImpl(TagValues.TagValuesClient, TagValuesSettings, ILogger)

public TagValuesClientImpl(TagValues.TagValuesClient grpcClient, TagValuesSettings settings, ILogger logger)

Constructs a client wrapper for the TagValues service, with the specified gRPC client and settings.

Parameters
NameDescription
grpcClientTagValues.TagValuesClient

The underlying gRPC client.

settingsTagValuesSettings

The base TagValuesSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

CreateTagValueOperationsClient

public override OperationsClient CreateTagValueOperationsClient { get; }

The long-running operations client for CreateTagValue.

Property Value
TypeDescription
OperationsClient
Overrides

DeleteTagValueOperationsClient

public override OperationsClient DeleteTagValueOperationsClient { get; }

The long-running operations client for DeleteTagValue.

Property Value
TypeDescription
OperationsClient
Overrides

GrpcClient

public override TagValues.TagValuesClient GrpcClient { get; }

The underlying gRPC TagValues client

Property Value
TypeDescription
TagValues.TagValuesClient
Overrides

UpdateTagValueOperationsClient

public override OperationsClient UpdateTagValueOperationsClient { get; }

The long-running operations client for UpdateTagValue.

Property Value
TypeDescription
OperationsClient
Overrides

Methods

CreateTagValue(CreateTagValueRequest, CallSettings)

public override Operation<TagValue, CreateTagValueMetadata> CreateTagValue(CreateTagValueRequest request, CallSettings callSettings = null)

Creates a TagValue as a child of the specified TagKey. If a another request with the same parameters is sent while the original request is in process the second request will receive an error. A maximum of 300 TagValues can exist under a TagKey at any given time.

Parameters
NameDescription
requestCreateTagValueRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<TagValue, CreateTagValueMetadata>

The RPC response.

Overrides

CreateTagValueAsync(CreateTagValueRequest, CallSettings)

public override async Task<Operation<TagValue, CreateTagValueMetadata>> CreateTagValueAsync(CreateTagValueRequest request, CallSettings callSettings = null)

Creates a TagValue as a child of the specified TagKey. If a another request with the same parameters is sent while the original request is in process the second request will receive an error. A maximum of 300 TagValues can exist under a TagKey at any given time.

Parameters
NameDescription
requestCreateTagValueRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<TagValue, CreateTagValueMetadata>>

A Task containing the RPC response.

Overrides

DeleteTagValue(DeleteTagValueRequest, CallSettings)

public override Operation<TagValue, DeleteTagValueMetadata> DeleteTagValue(DeleteTagValueRequest request, CallSettings callSettings = null)

Deletes a TagValue. The TagValue cannot have any bindings when it is deleted.

Parameters
NameDescription
requestDeleteTagValueRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<TagValue, DeleteTagValueMetadata>

The RPC response.

Overrides

DeleteTagValueAsync(DeleteTagValueRequest, CallSettings)

public override async Task<Operation<TagValue, DeleteTagValueMetadata>> DeleteTagValueAsync(DeleteTagValueRequest request, CallSettings callSettings = null)

Deletes a TagValue. The TagValue cannot have any bindings when it is deleted.

Parameters
NameDescription
requestDeleteTagValueRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<TagValue, DeleteTagValueMetadata>>

A Task containing the RPC response.

Overrides

GetIamPolicy(GetIamPolicyRequest, CallSettings)

public override Policy GetIamPolicy(GetIamPolicyRequest request, CallSettings callSettings = null)

Gets the access control policy for a TagValue. The returned policy may be empty if no such policy or resource exists. The resource field should be the TagValue's resource name. For example: tagValues/1234. The caller must have the cloudresourcemanager.googleapis.com/tagValues.getIamPolicy permission on the identified TagValue to get the access control policy.

Parameters
NameDescription
requestGetIamPolicyRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Policy

The RPC response.

Overrides

GetIamPolicyAsync(GetIamPolicyRequest, CallSettings)

public override Task<Policy> GetIamPolicyAsync(GetIamPolicyRequest request, CallSettings callSettings = null)

Gets the access control policy for a TagValue. The returned policy may be empty if no such policy or resource exists. The resource field should be the TagValue's resource name. For example: tagValues/1234. The caller must have the cloudresourcemanager.googleapis.com/tagValues.getIamPolicy permission on the identified TagValue to get the access control policy.

Parameters
NameDescription
requestGetIamPolicyRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Policy>

A Task containing the RPC response.

Overrides

GetTagValue(GetTagValueRequest, CallSettings)

public override TagValue GetTagValue(GetTagValueRequest request, CallSettings callSettings = null)

Retrieves TagValue. If the TagValue or namespaced name does not exist, or if the user does not have permission to view it, this method will return PERMISSION_DENIED.

Parameters
NameDescription
requestGetTagValueRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TagValue

The RPC response.

Overrides

GetTagValueAsync(GetTagValueRequest, CallSettings)

public override Task<TagValue> GetTagValueAsync(GetTagValueRequest request, CallSettings callSettings = null)

Retrieves TagValue. If the TagValue or namespaced name does not exist, or if the user does not have permission to view it, this method will return PERMISSION_DENIED.

Parameters
NameDescription
requestGetTagValueRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<TagValue>

A Task containing the RPC response.

Overrides

ListTagValues(ListTagValuesRequest, CallSettings)

public override PagedEnumerable<ListTagValuesResponse, TagValue> ListTagValues(ListTagValuesRequest request, CallSettings callSettings = null)

Lists all TagValues for a specific TagKey.

Parameters
NameDescription
requestListTagValuesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListTagValuesResponse, TagValue>

A pageable sequence of TagValue resources.

Overrides

ListTagValuesAsync(ListTagValuesRequest, CallSettings)

public override PagedAsyncEnumerable<ListTagValuesResponse, TagValue> ListTagValuesAsync(ListTagValuesRequest request, CallSettings callSettings = null)

Lists all TagValues for a specific TagKey.

Parameters
NameDescription
requestListTagValuesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListTagValuesResponse, TagValue>

A pageable asynchronous sequence of TagValue resources.

Overrides

SetIamPolicy(SetIamPolicyRequest, CallSettings)

public override Policy SetIamPolicy(SetIamPolicyRequest request, CallSettings callSettings = null)

Sets the access control policy on a TagValue, replacing any existing policy. The resource field should be the TagValue's resource name. For example: tagValues/1234. The caller must have resourcemanager.tagValues.setIamPolicy permission on the identified tagValue.

Parameters
NameDescription
requestSetIamPolicyRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Policy

The RPC response.

Overrides

SetIamPolicyAsync(SetIamPolicyRequest, CallSettings)

public override Task<Policy> SetIamPolicyAsync(SetIamPolicyRequest request, CallSettings callSettings = null)

Sets the access control policy on a TagValue, replacing any existing policy. The resource field should be the TagValue's resource name. For example: tagValues/1234. The caller must have resourcemanager.tagValues.setIamPolicy permission on the identified tagValue.

Parameters
NameDescription
requestSetIamPolicyRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Policy>

A Task containing the RPC response.

Overrides

TestIamPermissions(TestIamPermissionsRequest, CallSettings)

public override TestIamPermissionsResponse TestIamPermissions(TestIamPermissionsRequest request, CallSettings callSettings = null)

Returns permissions that a caller has on the specified TagValue. The resource field should be the TagValue's resource name. For example: tagValues/1234.

There are no permissions required for making this API call.

Parameters
NameDescription
requestTestIamPermissionsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TestIamPermissionsResponse

The RPC response.

Overrides

TestIamPermissionsAsync(TestIamPermissionsRequest, CallSettings)

public override Task<TestIamPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRequest request, CallSettings callSettings = null)

Returns permissions that a caller has on the specified TagValue. The resource field should be the TagValue's resource name. For example: tagValues/1234.

There are no permissions required for making this API call.

Parameters
NameDescription
requestTestIamPermissionsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<TestIamPermissionsResponse>

A Task containing the RPC response.

Overrides

UpdateTagValue(UpdateTagValueRequest, CallSettings)

public override Operation<TagValue, UpdateTagValueMetadata> UpdateTagValue(UpdateTagValueRequest request, CallSettings callSettings = null)

Updates the attributes of the TagValue resource.

Parameters
NameDescription
requestUpdateTagValueRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<TagValue, UpdateTagValueMetadata>

The RPC response.

Overrides

UpdateTagValueAsync(UpdateTagValueRequest, CallSettings)

public override async Task<Operation<TagValue, UpdateTagValueMetadata>> UpdateTagValueAsync(UpdateTagValueRequest request, CallSettings callSettings = null)

Updates the attributes of the TagValue resource.

Parameters
NameDescription
requestUpdateTagValueRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<TagValue, UpdateTagValueMetadata>>

A Task containing the RPC response.

Overrides