Data Catalog v1 API - Class PolicyTagManagerSerializationClientImpl (2.6.0)

public sealed class PolicyTagManagerSerializationClientImpl : PolicyTagManagerSerializationClient

Reference documentation and code samples for the Data Catalog v1 API class PolicyTagManagerSerializationClientImpl.

PolicyTagManagerSerialization client wrapper implementation, for convenient use.

Inheritance

object > PolicyTagManagerSerializationClient > PolicyTagManagerSerializationClientImpl

Namespace

Google.Cloud.DataCatalog.V1

Assembly

Google.Cloud.DataCatalog.V1.dll

Remarks

Policy Tag Manager Serialization API service allows you to manipulate your policy tags and taxonomies in a serialized format.

Taxonomy is a hierarchical group of policy tags.

Constructors

PolicyTagManagerSerializationClientImpl(PolicyTagManagerSerializationClient, PolicyTagManagerSerializationSettings, ILogger)

public PolicyTagManagerSerializationClientImpl(PolicyTagManagerSerialization.PolicyTagManagerSerializationClient grpcClient, PolicyTagManagerSerializationSettings settings, ILogger logger)

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

Parameters
NameDescription
grpcClientPolicyTagManagerSerializationPolicyTagManagerSerializationClient

The underlying gRPC client.

settingsPolicyTagManagerSerializationSettings

The base PolicyTagManagerSerializationSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override PolicyTagManagerSerialization.PolicyTagManagerSerializationClient GrpcClient { get; }

The underlying gRPC PolicyTagManagerSerialization client

Property Value
TypeDescription
PolicyTagManagerSerializationPolicyTagManagerSerializationClient
Overrides

IAMPolicyClient

public override IAMPolicyClient IAMPolicyClient { get; }

The IAMPolicyClient associated with this client.

Property Value
TypeDescription
IAMPolicyClient
Overrides

Methods

ExportTaxonomies(ExportTaxonomiesRequest, CallSettings)

public override ExportTaxonomiesResponse ExportTaxonomies(ExportTaxonomiesRequest request, CallSettings callSettings = null)

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ExportTaxonomiesResponse

The RPC response.

Overrides

ExportTaxonomiesAsync(ExportTaxonomiesRequest, CallSettings)

public override Task<ExportTaxonomiesResponse> ExportTaxonomiesAsync(ExportTaxonomiesRequest request, CallSettings callSettings = null)

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskExportTaxonomiesResponse

A Task containing the RPC response.

Overrides

ImportTaxonomies(ImportTaxonomiesRequest, CallSettings)

public override ImportTaxonomiesResponse ImportTaxonomies(ImportTaxonomiesRequest request, CallSettings callSettings = null)

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ImportTaxonomiesResponse

The RPC response.

Overrides

ImportTaxonomiesAsync(ImportTaxonomiesRequest, CallSettings)

public override Task<ImportTaxonomiesResponse> ImportTaxonomiesAsync(ImportTaxonomiesRequest request, CallSettings callSettings = null)

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskImportTaxonomiesResponse

A Task containing the RPC response.

Overrides

ReplaceTaxonomy(ReplaceTaxonomyRequest, CallSettings)

public override Taxonomy ReplaceTaxonomy(ReplaceTaxonomyRequest request, CallSettings callSettings = null)

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Taxonomy

The RPC response.

Overrides

ReplaceTaxonomyAsync(ReplaceTaxonomyRequest, CallSettings)

public override Task<Taxonomy> ReplaceTaxonomyAsync(ReplaceTaxonomyRequest request, CallSettings callSettings = null)

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskTaxonomy

A Task containing the RPC response.

Overrides