[BindServiceMethod(typeof(PolicyTagManagerSerialization), "BindService")]
public abstract class PolicyTagManagerSerialization.PolicyTagManagerSerializationBase
Reference documentation and code samples for the Data Catalog v1 API class PolicyTagManagerSerialization.PolicyTagManagerSerializationBase.
Base class for server-side implementations of PolicyTagManagerSerialization
Namespace
GoogleCloudGoogle.Cloud.DataCatalogV1Assembly
Google.Cloud.DataCatalog.V1.dll
Methods
ExportTaxonomies(ExportTaxonomiesRequest, ServerCallContext)
public virtual Task<ExportTaxonomiesResponse> ExportTaxonomies(ExportTaxonomiesRequest request, ServerCallContext context)
Exports taxonomies in the requested type and returns them, including their policy tags. The requested taxonomies must belong to the same project.
This method generates SerializedTaxonomy
protocol buffers with nested
policy tags that can be used as input for ImportTaxonomies
calls.
Parameters | |
---|---|
Name | Description |
request | ExportTaxonomiesRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
TaskExportTaxonomiesResponse | The response to send back to the client (wrapped by a task). |
ImportTaxonomies(ImportTaxonomiesRequest, ServerCallContext)
public virtual Task<ImportTaxonomiesResponse> ImportTaxonomies(ImportTaxonomiesRequest request, ServerCallContext context)
Creates new taxonomies (including their policy tags) in a given project by importing from inlined or cross-regional sources.
For a cross-regional source, new taxonomies are created by copying from a source in another region.
For an inlined source, taxonomies and policy tags are created in bulk using nested protocol buffer structures.
Parameters | |
---|---|
Name | Description |
request | ImportTaxonomiesRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
TaskImportTaxonomiesResponse | The response to send back to the client (wrapped by a task). |
ReplaceTaxonomy(ReplaceTaxonomyRequest, ServerCallContext)
public virtual Task<Taxonomy> ReplaceTaxonomy(ReplaceTaxonomyRequest request, ServerCallContext context)
Replaces (updates) a taxonomy and all its policy tags.
The taxonomy and its entire hierarchy of policy tags must be
represented literally by SerializedTaxonomy
and the nested
SerializedPolicyTag
messages.
This operation automatically does the following:
- Deletes the existing policy tags that are missing from the
SerializedPolicyTag
. - Creates policy tags that don't have resource names. They are considered new.
- Updates policy tags with valid resources names accordingly.
Parameters | |
---|---|
Name | Description |
request | ReplaceTaxonomyRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
TaskTaxonomy | The response to send back to the client (wrapped by a task). |