public sealed class PolicyTagManagerClientImpl : PolicyTagManagerClientPolicyTagManager client wrapper implementation, for convenient use.
Namespace
Google.Cloud.DataCatalog.V1Assembly
Google.Cloud.DataCatalog.V1.dll
Remarks
Policy Tag Manager API service allows clients to manage their policy tags and taxonomies.
Policy tags are used to tag BigQuery columns and apply additional access control policies. A taxonomy is a hierarchical grouping of policy tags that classify data along a common axis.
Constructors
PolicyTagManagerClientImpl(PolicyTagManager.PolicyTagManagerClient, PolicyTagManagerSettings)
public PolicyTagManagerClientImpl(PolicyTagManager.PolicyTagManagerClient grpcClient, PolicyTagManagerSettings settings)Constructs a client wrapper for the PolicyTagManager service, with the specified gRPC client and settings.
| Parameters | |
|---|---|
| Name | Description |
grpcClient |
PolicyTagManager.PolicyTagManagerClientThe underlying gRPC client. |
settings |
PolicyTagManagerSettingsThe base PolicyTagManagerSettings used within this client. |
Properties
GrpcClient
public override PolicyTagManager.PolicyTagManagerClient GrpcClient { get; }The underlying gRPC PolicyTagManager client
| Property Value | |
|---|---|
| Type | Description |
PolicyTagManager.PolicyTagManagerClient |
|
Methods
CreatePolicyTag(CreatePolicyTagRequest, CallSettings)
public override PolicyTag CreatePolicyTag(CreatePolicyTagRequest request, CallSettings callSettings = null)Creates a policy tag in a taxonomy.
| Parameters | |
|---|---|
| Name | Description |
request |
CreatePolicyTagRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PolicyTag |
The RPC response. |
CreatePolicyTagAsync(CreatePolicyTagRequest, CallSettings)
public override Task<PolicyTag> CreatePolicyTagAsync(CreatePolicyTagRequest request, CallSettings callSettings = null)Creates a policy tag in a taxonomy.
| Parameters | |
|---|---|
| Name | Description |
request |
CreatePolicyTagRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<PolicyTag> |
A Task containing the RPC response. |
CreateTaxonomy(CreateTaxonomyRequest, CallSettings)
public override Taxonomy CreateTaxonomy(CreateTaxonomyRequest request, CallSettings callSettings = null)Creates a taxonomy in a specified project. The taxonomy is initially empty, i.e., does not contain policy tags.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateTaxonomyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Taxonomy |
The RPC response. |
CreateTaxonomyAsync(CreateTaxonomyRequest, CallSettings)
public override Task<Taxonomy> CreateTaxonomyAsync(CreateTaxonomyRequest request, CallSettings callSettings = null)Creates a taxonomy in a specified project. The taxonomy is initially empty, i.e., does not contain policy tags.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateTaxonomyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<Taxonomy> |
A Task containing the RPC response. |
DeletePolicyTag(DeletePolicyTagRequest, CallSettings)
public override void DeletePolicyTag(DeletePolicyTagRequest request, CallSettings callSettings = null)Deletes a policy tag. This method also deletes:
- all of its descendant policy tags, if any
- the policies associated with the policy tag and its descendants
- references from BigQuery table schema of the policy tag and its descendants.
| Parameters | |
|---|---|
| Name | Description |
request |
DeletePolicyTagRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
DeletePolicyTagAsync(DeletePolicyTagRequest, CallSettings)
public override Task DeletePolicyTagAsync(DeletePolicyTagRequest request, CallSettings callSettings = null)Deletes a policy tag. This method also deletes:
- all of its descendant policy tags, if any
- the policies associated with the policy tag and its descendants
- references from BigQuery table schema of the policy tag and its descendants.
| Parameters | |
|---|---|
| Name | Description |
request |
DeletePolicyTagRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
DeleteTaxonomy(DeleteTaxonomyRequest, CallSettings)
public override void DeleteTaxonomy(DeleteTaxonomyRequest request, CallSettings callSettings = null)Deletes a taxonomy. This method will also delete all policy tags in this taxonomy, their associated policies, and the policy tags references from BigQuery columns.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteTaxonomyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
DeleteTaxonomyAsync(DeleteTaxonomyRequest, CallSettings)
public override Task DeleteTaxonomyAsync(DeleteTaxonomyRequest request, CallSettings callSettings = null)Deletes a taxonomy. This method will also delete all policy tags in this taxonomy, their associated policies, and the policy tags references from BigQuery columns.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteTaxonomyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
GetIamPolicy(GetIamPolicyRequest, CallSettings)
public override Policy GetIamPolicy(GetIamPolicyRequest request, CallSettings callSettings = null)Gets the IAM policy for a policy tag or a taxonomy.
| Parameters | |
|---|---|
| Name | Description |
request |
Google.Cloud.Iam.V1.GetIamPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Google.Cloud.Iam.V1.Policy |
The RPC response. |
GetIamPolicyAsync(GetIamPolicyRequest, CallSettings)
public override Task<Policy> GetIamPolicyAsync(GetIamPolicyRequest request, CallSettings callSettings = null)Gets the IAM policy for a policy tag or a taxonomy.
| Parameters | |
|---|---|
| Name | Description |
request |
Google.Cloud.Iam.V1.GetIamPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<Google.Cloud.Iam.V1.Policy> |
A Task containing the RPC response. |
GetPolicyTag(GetPolicyTagRequest, CallSettings)
public override PolicyTag GetPolicyTag(GetPolicyTagRequest request, CallSettings callSettings = null)Gets a policy tag.
| Parameters | |
|---|---|
| Name | Description |
request |
GetPolicyTagRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PolicyTag |
The RPC response. |
GetPolicyTagAsync(GetPolicyTagRequest, CallSettings)
public override Task<PolicyTag> GetPolicyTagAsync(GetPolicyTagRequest request, CallSettings callSettings = null)Gets a policy tag.
| Parameters | |
|---|---|
| Name | Description |
request |
GetPolicyTagRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<PolicyTag> |
A Task containing the RPC response. |
GetTaxonomy(GetTaxonomyRequest, CallSettings)
public override Taxonomy GetTaxonomy(GetTaxonomyRequest request, CallSettings callSettings = null)Gets a taxonomy.
| Parameters | |
|---|---|
| Name | Description |
request |
GetTaxonomyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Taxonomy |
The RPC response. |
GetTaxonomyAsync(GetTaxonomyRequest, CallSettings)
public override Task<Taxonomy> GetTaxonomyAsync(GetTaxonomyRequest request, CallSettings callSettings = null)Gets a taxonomy.
| Parameters | |
|---|---|
| Name | Description |
request |
GetTaxonomyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<Taxonomy> |
A Task containing the RPC response. |
ListPolicyTags(ListPolicyTagsRequest, CallSettings)
public override PagedEnumerable<ListPolicyTagsResponse, PolicyTag> ListPolicyTags(ListPolicyTagsRequest request, CallSettings callSettings = null)Lists all policy tags in a taxonomy.
| Parameters | |
|---|---|
| Name | Description |
request |
ListPolicyTagsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerable<ListPolicyTagsResponse, PolicyTag> |
A pageable sequence of PolicyTag resources. |
ListPolicyTagsAsync(ListPolicyTagsRequest, CallSettings)
public override PagedAsyncEnumerable<ListPolicyTagsResponse, PolicyTag> ListPolicyTagsAsync(ListPolicyTagsRequest request, CallSettings callSettings = null)Lists all policy tags in a taxonomy.
| Parameters | |
|---|---|
| Name | Description |
request |
ListPolicyTagsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerable<ListPolicyTagsResponse, PolicyTag> |
A pageable asynchronous sequence of PolicyTag resources. |
ListTaxonomies(ListTaxonomiesRequest, CallSettings)
public override PagedEnumerable<ListTaxonomiesResponse, Taxonomy> ListTaxonomies(ListTaxonomiesRequest request, CallSettings callSettings = null)Lists all taxonomies in a project in a particular location that the caller has permission to view.
| Parameters | |
|---|---|
| Name | Description |
request |
ListTaxonomiesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerable<ListTaxonomiesResponse, Taxonomy> |
A pageable sequence of Taxonomy resources. |
ListTaxonomiesAsync(ListTaxonomiesRequest, CallSettings)
public override PagedAsyncEnumerable<ListTaxonomiesResponse, Taxonomy> ListTaxonomiesAsync(ListTaxonomiesRequest request, CallSettings callSettings = null)Lists all taxonomies in a project in a particular location that the caller has permission to view.
| Parameters | |
|---|---|
| Name | Description |
request |
ListTaxonomiesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerable<ListTaxonomiesResponse, Taxonomy> |
A pageable asynchronous sequence of Taxonomy resources. |
SetIamPolicy(SetIamPolicyRequest, CallSettings)
public override Policy SetIamPolicy(SetIamPolicyRequest request, CallSettings callSettings = null)Sets the IAM policy for a policy tag or a taxonomy.
| Parameters | |
|---|---|
| Name | Description |
request |
Google.Cloud.Iam.V1.SetIamPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Google.Cloud.Iam.V1.Policy |
The RPC response. |
SetIamPolicyAsync(SetIamPolicyRequest, CallSettings)
public override Task<Policy> SetIamPolicyAsync(SetIamPolicyRequest request, CallSettings callSettings = null)Sets the IAM policy for a policy tag or a taxonomy.
| Parameters | |
|---|---|
| Name | Description |
request |
Google.Cloud.Iam.V1.SetIamPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<Google.Cloud.Iam.V1.Policy> |
A Task containing the RPC response. |
TestIamPermissions(TestIamPermissionsRequest, CallSettings)
public override TestIamPermissionsResponse TestIamPermissions(TestIamPermissionsRequest request, CallSettings callSettings = null)Returns the permissions that a caller has on a specified policy tag or taxonomy.
| Parameters | |
|---|---|
| Name | Description |
request |
Google.Cloud.Iam.V1.TestIamPermissionsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Google.Cloud.Iam.V1.TestIamPermissionsResponse |
The RPC response. |
TestIamPermissionsAsync(TestIamPermissionsRequest, CallSettings)
public override Task<TestIamPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRequest request, CallSettings callSettings = null)Returns the permissions that a caller has on a specified policy tag or taxonomy.
| Parameters | |
|---|---|
| Name | Description |
request |
Google.Cloud.Iam.V1.TestIamPermissionsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<Google.Cloud.Iam.V1.TestIamPermissionsResponse> |
A Task containing the RPC response. |
UpdatePolicyTag(UpdatePolicyTagRequest, CallSettings)
public override PolicyTag UpdatePolicyTag(UpdatePolicyTagRequest request, CallSettings callSettings = null)Updates a policy tag. This method can update the policy tag's display name, description, and parent policy tag.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdatePolicyTagRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PolicyTag |
The RPC response. |
UpdatePolicyTagAsync(UpdatePolicyTagRequest, CallSettings)
public override Task<PolicyTag> UpdatePolicyTagAsync(UpdatePolicyTagRequest request, CallSettings callSettings = null)Updates a policy tag. This method can update the policy tag's display name, description, and parent policy tag.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdatePolicyTagRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<PolicyTag> |
A Task containing the RPC response. |
UpdateTaxonomy(UpdateTaxonomyRequest, CallSettings)
public override Taxonomy UpdateTaxonomy(UpdateTaxonomyRequest request, CallSettings callSettings = null)Updates a taxonomy. This method can update the taxonomy's display name, description, and activated policy types.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateTaxonomyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Taxonomy |
The RPC response. |
UpdateTaxonomyAsync(UpdateTaxonomyRequest, CallSettings)
public override Task<Taxonomy> UpdateTaxonomyAsync(UpdateTaxonomyRequest request, CallSettings callSettings = null)Updates a taxonomy. This method can update the taxonomy's display name, description, and activated policy types.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateTaxonomyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<Taxonomy> |
A Task containing the RPC response. |