class ProjectsLocationsEntryGroupsTags extends Resource (View source)

The "tags" collection of methods.

Typical usage is:

 $datacatalogService = new Google\Service\DataCatalog(...);
 $tags = $datacatalogService->projects_locations_entryGroups_tags;

Methods

create(string $parent, GoogleCloudDatacatalogV1Tag $postBody, array $optParams = [])

Creates a tag and assigns it to: An Entry if the method name is projects.locations.entryGroups.entries.tags.create. Or EntryGroupif the method name is projects.locations.entryGroups.tags.create. Note: The project identified by the parent parameter for the [tag] (https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locati ons.entryGroups.entries.tags/create#path-parameters) and the [tag template] (https://cloud.google.com/data- catalog/docs/reference/rest/v1/projects.locations.tagTemplates/create#path- parameters) used to create the tag must be in the same organization.

delete(string $name, array $optParams = [])

Deletes a tag. (tags.delete)

listProjectsLocationsEntryGroupsTags(string $parent, array $optParams = [])

Lists tags assigned to an Entry. The columns in the response are lowercased.

patch(string $name, GoogleCloudDatacatalogV1Tag $postBody, array $optParams = [])

Updates an existing tag. (tags.patch)

Details

GoogleCloudDatacatalogV1Tag create(string $parent, GoogleCloudDatacatalogV1Tag $postBody, array $optParams = [])

Creates a tag and assigns it to: An Entry if the method name is projects.locations.entryGroups.entries.tags.create. Or EntryGroupif the method name is projects.locations.entryGroups.tags.create. Note: The project identified by the parent parameter for the [tag] (https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locati ons.entryGroups.entries.tags/create#path-parameters) and the [tag template] (https://cloud.google.com/data- catalog/docs/reference/rest/v1/projects.locations.tagTemplates/create#path- parameters) used to create the tag must be in the same organization.

(tags.create)

Parameters

string $parent

Required. The name of the resource to attach this tag to. Tags can be attached to entries or entry groups. An entry can have up to 1000 attached tags. Note: The tag and its child resources might not be stored in the location specified in its name.

GoogleCloudDatacatalogV1Tag $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudDatacatalogV1Tag

Exceptions

Exception

DatacatalogEmpty delete(string $name, array $optParams = [])

Deletes a tag. (tags.delete)

Parameters

string $name

Required. The name of the tag to delete.

array $optParams

Optional parameters.

Return Value

DatacatalogEmpty

Exceptions

Exception

GoogleCloudDatacatalogV1ListTagsResponse listProjectsLocationsEntryGroupsTags(string $parent, array $optParams = [])

Lists tags assigned to an Entry. The columns in the response are lowercased.

(tags.listProjectsLocationsEntryGroupsTags)

Parameters

string $parent

Required. The name of the Data Catalog resource to list the tags of. The resource can be an Entry or an EntryGroup (without /entries/{entries} at the end).

array $optParams

Optional parameters.

Return Value

GoogleCloudDatacatalogV1ListTagsResponse

Exceptions

Exception

GoogleCloudDatacatalogV1Tag patch(string $name, GoogleCloudDatacatalogV1Tag $postBody, array $optParams = [])

Updates an existing tag. (tags.patch)

Parameters

string $name

Identifier. The resource name of the tag in URL format where tag ID is a system-generated identifier. Note: The tag itself might not be stored in the location specified in its name.

GoogleCloudDatacatalogV1Tag $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudDatacatalogV1Tag

Exceptions

Exception