Class PolicyTagManager.PolicyTagManagerBase (1.2.0)

[BindServiceMethod(typeof(PolicyTagManager), "BindService")]
public abstract class PolicyTagManagerBase

Base class for server-side implementations of PolicyTagManager

Inheritance

Object > PolicyTagManager.PolicyTagManagerBase

Namespace

Google.Cloud.DataCatalog.V1

Assembly

Google.Cloud.DataCatalog.V1.dll

Methods

CreatePolicyTag(CreatePolicyTagRequest, ServerCallContext)

public virtual Task<PolicyTag> CreatePolicyTag(CreatePolicyTagRequest request, ServerCallContext context)

Creates a policy tag in a taxonomy.

Parameters
NameDescription
requestCreatePolicyTagRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<PolicyTag>

The response to send back to the client (wrapped by a task).

CreateTaxonomy(CreateTaxonomyRequest, ServerCallContext)

public virtual Task<Taxonomy> CreateTaxonomy(CreateTaxonomyRequest request, ServerCallContext context)

Creates a taxonomy in a specified project. The taxonomy is initially empty, i.e., does not contain policy tags.

Parameters
NameDescription
requestCreateTaxonomyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Taxonomy>

The response to send back to the client (wrapped by a task).

DeletePolicyTag(DeletePolicyTagRequest, ServerCallContext)

public virtual Task<Empty> DeletePolicyTag(DeletePolicyTagRequest request, ServerCallContext context)

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

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Empty>

The response to send back to the client (wrapped by a task).

DeleteTaxonomy(DeleteTaxonomyRequest, ServerCallContext)

public virtual Task<Empty> DeleteTaxonomy(DeleteTaxonomyRequest request, ServerCallContext context)

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

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Empty>

The response to send back to the client (wrapped by a task).

GetIamPolicy(GetIamPolicyRequest, ServerCallContext)

public virtual Task<Policy> GetIamPolicy(GetIamPolicyRequest request, ServerCallContext context)

Gets the IAM policy for a policy tag or a taxonomy.

Parameters
NameDescription
requestGoogle.Cloud.Iam.V1.GetIamPolicyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Google.Cloud.Iam.V1.Policy>

The response to send back to the client (wrapped by a task).

GetPolicyTag(GetPolicyTagRequest, ServerCallContext)

public virtual Task<PolicyTag> GetPolicyTag(GetPolicyTagRequest request, ServerCallContext context)

Gets a policy tag.

Parameters
NameDescription
requestGetPolicyTagRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<PolicyTag>

The response to send back to the client (wrapped by a task).

GetTaxonomy(GetTaxonomyRequest, ServerCallContext)

public virtual Task<Taxonomy> GetTaxonomy(GetTaxonomyRequest request, ServerCallContext context)

Gets a taxonomy.

Parameters
NameDescription
requestGetTaxonomyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Taxonomy>

The response to send back to the client (wrapped by a task).

ListPolicyTags(ListPolicyTagsRequest, ServerCallContext)

public virtual Task<ListPolicyTagsResponse> ListPolicyTags(ListPolicyTagsRequest request, ServerCallContext context)

Lists all policy tags in a taxonomy.

Parameters
NameDescription
requestListPolicyTagsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListPolicyTagsResponse>

The response to send back to the client (wrapped by a task).

ListTaxonomies(ListTaxonomiesRequest, ServerCallContext)

public virtual Task<ListTaxonomiesResponse> ListTaxonomies(ListTaxonomiesRequest request, ServerCallContext context)

Lists all taxonomies in a project in a particular location that the caller has permission to view.

Parameters
NameDescription
requestListTaxonomiesRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListTaxonomiesResponse>

The response to send back to the client (wrapped by a task).

SetIamPolicy(SetIamPolicyRequest, ServerCallContext)

public virtual Task<Policy> SetIamPolicy(SetIamPolicyRequest request, ServerCallContext context)

Sets the IAM policy for a policy tag or a taxonomy.

Parameters
NameDescription
requestGoogle.Cloud.Iam.V1.SetIamPolicyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Google.Cloud.Iam.V1.Policy>

The response to send back to the client (wrapped by a task).

TestIamPermissions(TestIamPermissionsRequest, ServerCallContext)

public virtual Task<TestIamPermissionsResponse> TestIamPermissions(TestIamPermissionsRequest request, ServerCallContext context)

Returns the permissions that a caller has on a specified policy tag or taxonomy.

Parameters
NameDescription
requestGoogle.Cloud.Iam.V1.TestIamPermissionsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Google.Cloud.Iam.V1.TestIamPermissionsResponse>

The response to send back to the client (wrapped by a task).

UpdatePolicyTag(UpdatePolicyTagRequest, ServerCallContext)

public virtual Task<PolicyTag> UpdatePolicyTag(UpdatePolicyTagRequest request, ServerCallContext context)

Updates a policy tag. This method can update the policy tag's display name, description, and parent policy tag.

Parameters
NameDescription
requestUpdatePolicyTagRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<PolicyTag>

The response to send back to the client (wrapped by a task).

UpdateTaxonomy(UpdateTaxonomyRequest, ServerCallContext)

public virtual Task<Taxonomy> UpdateTaxonomy(UpdateTaxonomyRequest request, ServerCallContext context)

Updates a taxonomy. This method can update the taxonomy's display name, description, and activated policy types.

Parameters
NameDescription
requestUpdateTaxonomyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Taxonomy>

The response to send back to the client (wrapped by a task).