Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.TagTemplatesResource

The "tagTemplates" collection of methods.

Inheritance
object
ProjectsResource.LocationsResource.TagTemplatesResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.DataCatalog.v1
Assembly: Google.Apis.DataCatalog.v1.dll
Syntax
public class ProjectsResource.LocationsResource.TagTemplatesResource

Constructors

TagTemplatesResource(IClientService)

Constructs a new resource.

Declaration
public TagTemplatesResource(IClientService service)
Parameters
Type Name Description
IClientService service

Properties

Fields

Gets the Fields resource.

Declaration
public virtual ProjectsResource.LocationsResource.TagTemplatesResource.FieldsResource Fields { get; }
Property Value
Type Description
ProjectsResource.LocationsResource.TagTemplatesResource.FieldsResource

Methods

Create(GoogleCloudDatacatalogV1TagTemplate, string)

Creates a tag template. You must enable the Data Catalog API in the project identified by the parent parameter. For more information, see [Data Catalog resource project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project).

Declaration
public virtual ProjectsResource.LocationsResource.TagTemplatesResource.CreateRequest Create(GoogleCloudDatacatalogV1TagTemplate body, string parent)
Parameters
Type Name Description
GoogleCloudDatacatalogV1TagTemplate body

The body of the request.

string parent

Required. The name of the project and the template location region.

Returns
Type Description
ProjectsResource.LocationsResource.TagTemplatesResource.CreateRequest

Delete(string)

Deletes a tag template and all tags that use it. You must enable the Data Catalog API in the project identified by the name parameter. For more information, see Data Catalog resource project.

Declaration
public virtual ProjectsResource.LocationsResource.TagTemplatesResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
string name

Required. The name of the tag template to delete.

Returns
Type Description
ProjectsResource.LocationsResource.TagTemplatesResource.DeleteRequest

Get(string)

Gets a tag template.

Declaration
public virtual ProjectsResource.LocationsResource.TagTemplatesResource.GetRequest Get(string name)
Parameters
Type Name Description
string name

Required. The name of the tag template to get.

Returns
Type Description
ProjectsResource.LocationsResource.TagTemplatesResource.GetRequest

GetIamPolicy(GetIamPolicyRequest, string)

Gets the access control policy for a resource. May return: * ANOT_FOUND error if the resource doesn't exist or you don't have the permission to view it. * An empty policy if the resource exists but doesn't have a set policy. Supported resources are: - Tag templates - Entry groups Note: This method doesn't get policies from Google Cloud Platform resources ingested into Data Catalog. To call this method, you must have the following Google IAM permissions: - datacatalog.tagTemplates.getIamPolicy to get policies on tag templates. - datacatalog.entryGroups.getIamPolicy to get policies on entry groups.

Declaration
public virtual ProjectsResource.LocationsResource.TagTemplatesResource.GetIamPolicyRequest GetIamPolicy(GetIamPolicyRequest body, string resource)
Parameters
Type Name Description
GetIamPolicyRequest body

The body of the request.

string resource

REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.

Returns
Type Description
ProjectsResource.LocationsResource.TagTemplatesResource.GetIamPolicyRequest

Patch(GoogleCloudDatacatalogV1TagTemplate, string)

Updates a tag template. You can't update template fields with this method. These fields are separate resources with their own create, update, and delete methods. You must enable the Data Catalog API in the project identified by the tag_template.name parameter. For more information, see Data Catalog resource project.

Declaration
public virtual ProjectsResource.LocationsResource.TagTemplatesResource.PatchRequest Patch(GoogleCloudDatacatalogV1TagTemplate body, string name)
Parameters
Type Name Description
GoogleCloudDatacatalogV1TagTemplate body

The body of the request.

string name

Identifier. The resource name of the tag template in URL format. Note: The tag template itself and its child resources might not be stored in the location specified in its name.

Returns
Type Description
ProjectsResource.LocationsResource.TagTemplatesResource.PatchRequest

SetIamPolicy(SetIamPolicyRequest, string)

Sets an access control policy for a resource. Replaces any existing policy. Supported resources are:

  • Tag templates - Entry groups Note: This method sets policies only within Data Catalog and can't be used to manage policies in BigQuery, Pub/Sub, Dataproc Metastore, and any external Google Cloud Platform resources synced with the Data Catalog. To call this method, you must have the following Google IAM permissions: - datacatalog.tagTemplates.setIamPolicy to set policies on tag templates.
  • datacatalog.entryGroups.setIamPolicy to set policies on entry groups.
Declaration
public virtual ProjectsResource.LocationsResource.TagTemplatesResource.SetIamPolicyRequest SetIamPolicy(SetIamPolicyRequest body, string resource)
Parameters
Type Name Description
SetIamPolicyRequest body

The body of the request.

string resource

REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.

Returns
Type Description
ProjectsResource.LocationsResource.TagTemplatesResource.SetIamPolicyRequest

TestIamPermissions(TestIamPermissionsRequest, string)

Gets your permissions on a resource. Returns an empty set of permissions if the resource doesn't exist. Supported resources are: - Tag templates - Entry groups Note: This method gets policies only within Data Catalog and can't be used to get policies from BigQuery, Pub/Sub, Dataproc Metastore, and any external Google Cloud Platform resources ingested into Data Catalog. No Google IAM permissions are required to call this method.

Declaration
public virtual ProjectsResource.LocationsResource.TagTemplatesResource.TestIamPermissionsRequest TestIamPermissions(TestIamPermissionsRequest body, string resource)
Parameters
Type Name Description
TestIamPermissionsRequest body

The body of the request.

string resource

REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.

Returns
Type Description
ProjectsResource.LocationsResource.TagTemplatesResource.TestIamPermissionsRequest
In this article
Back to top Generated by DocFX