Class PolicyTagManagerSerialization.PolicyTagManagerSerializationBase (1.2.0)

[BindServiceMethod(typeof(PolicyTagManagerSerialization), "BindService")]
public abstract class PolicyTagManagerSerializationBase

Base class for server-side implementations of PolicyTagManagerSerialization

Inheritance

Object > PolicyTagManagerSerialization.PolicyTagManagerSerializationBase

Namespace

Google.Cloud.DataCatalog.V1

Assembly

Google.Cloud.DataCatalog.V1.dll

Methods

ExportTaxonomies(ExportTaxonomiesRequest, ServerCallContext)

public virtual Task<ExportTaxonomiesResponse> ExportTaxonomies(ExportTaxonomiesRequest request, ServerCallContext context)

Exports taxonomies as the requested type and returns the taxonomies including their policy tags. The requested taxonomies must belong to one project.

SerializedTaxonomy protos with nested policy tags that are generated by this method can be used as input for future ImportTaxonomies calls.

Parameters
NameDescription
requestExportTaxonomiesRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<ExportTaxonomiesResponse>

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) by importing from inlined source or cross-regional source. New taxonomies will be created in a given parent project.

If using the cross-regional source, a new taxonomy is created by copying from a source in another region.

If using the inlined source, this method provides a way to bulk create taxonomies and policy tags using nested proto structure.

Parameters
NameDescription
requestImportTaxonomiesRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<ImportTaxonomiesResponse>

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