Reference documentation and code samples for the Google Cloud Data Catalog V1 Client class DataCatalogClient.
Service Description: Data Catalog API service allows you to discover, understand, and manage your data.
This class is currently experimental and may be subject to changes.
Namespace
Google \ Cloud \ DataCatalog \ V1 \ ClientMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
options |
array
Optional. Options for configuring the service API wrapper. |
↳ apiEndpoint |
string
The address of the API remote host. May optionally include the port, formatted as "
|
↳ credentials |
string|array|FetchAuthTokenInterface|CredentialsWrapper
The credentials to be used by the client to authorize API calls. This option accepts either a path to a credentials file, or a decoded credentials file as a PHP array. Advanced usage: In addition, this option can also accept a pre-constructed Google\Auth\FetchAuthTokenInterface object or Google\ApiCore\CredentialsWrapper object. Note that when one of these objects are provided, any settings in $credentialsConfig will be ignored. |
↳ credentialsConfig |
array
Options used to configure credentials, including auth token caching, for the client. For a full list of supporting configuration options, see Google\ApiCore\CredentialsWrapper::build() . |
↳ disableRetries |
bool
Determines whether or not retries defined by the client configuration should be disabled. Defaults to |
↳ clientConfig |
string|array
Client method configuration, including retry settings. This option can be either a path to a JSON file, or a PHP array containing the decoded JSON data. By default this settings points to the default client config file, which is provided in the resources folder. |
↳ transport |
string|TransportInterface
The transport used for executing network requests. May be either the string |
↳ transportConfig |
array
Configuration options that will be used to construct the transport. Options for each supported transport type should be passed in a key for that transport. For example: $transportConfig = [ 'grpc' => [...], 'rest' => [...], ]; See the Google\ApiCore\Transport\GrpcTransport::build() and Google\ApiCore\Transport\RestTransport::build() methods for the supported options. |
↳ clientCertSource |
callable
A callable which returns the client cert as a string. This can be used to provide a certificate and private key to the transport layer for mTLS. |
createEntry
Creates an entry.
You can create entries only with 'FILESET', 'CLUSTER', 'DATA_STREAM', or custom types. Data Catalog automatically creates entries with other types during metadata ingestion from integrated systems.
You must enable the Data Catalog API in the project identified by
the parent
parameter. For more information, see Data Catalog resource
project.
An entry group can have a maximum of 100,000 entries.
The async variant is Google\Cloud\DataCatalog\V1\Client\BaseClient\self::createEntryAsync() .
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\CreateEntryRequest
A request to house fields associated with the call. |
callOptions |
array
Optional. |
↳ retrySettings |
RetrySettings|array
Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage. |
Returns | |
---|---|
Type | Description |
Google\Cloud\DataCatalog\V1\Entry |
createEntryGroup
Creates an entry group.
An entry group contains logically related entries together with Cloud Identity and Access Management policies. These policies specify users who can create, edit, and view entries within entry groups.
Data Catalog automatically creates entry groups with names that start with
the @
symbol for the following resources:
- BigQuery entries (
@bigquery
) - Pub/Sub topics (
@pubsub
) - Dataproc Metastore services (
@dataproc_metastore_{SERVICE_NAME_HASH}
)
You can create your own entry groups for Cloud Storage fileset entries
and custom entries together with the corresponding IAM policies.
User-created entry groups can't contain the @
symbol, it is reserved
for automatically created groups.
Entry groups, like entries, can be searched.
A maximum of 10,000 entry groups may be created per organization across all locations.
You must enable the Data Catalog API in the project identified by
the parent
parameter. For more information, see Data Catalog resource
project.
The async variant is Google\Cloud\DataCatalog\V1\Client\BaseClient\self::createEntryGroupAsync() .
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\CreateEntryGroupRequest
A request to house fields associated with the call. |
callOptions |
array
Optional. |
↳ retrySettings |
RetrySettings|array
Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage. |
Returns | |
---|---|
Type | Description |
Google\Cloud\DataCatalog\V1\EntryGroup |
createTag
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
and the tag template
used to create the tag must be in the same organization.
The async variant is Google\Cloud\DataCatalog\V1\Client\BaseClient\self::createTagAsync() .
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\CreateTagRequest
A request to house fields associated with the call. |
callOptions |
array
Optional. |
↳ retrySettings |
RetrySettings|array
Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage. |
Returns | |
---|---|
Type | Description |
Google\Cloud\DataCatalog\V1\Tag |
createTagTemplate
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.
The async variant is Google\Cloud\DataCatalog\V1\Client\BaseClient\self::createTagTemplateAsync() .
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\CreateTagTemplateRequest
A request to house fields associated with the call. |
callOptions |
array
Optional. |
↳ retrySettings |
RetrySettings|array
Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage. |
Returns | |
---|---|
Type | Description |
Google\Cloud\DataCatalog\V1\TagTemplate |
createTagTemplateField
Creates a field in 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.
The async variant is Google\Cloud\DataCatalog\V1\Client\BaseClient\self::createTagTemplateFieldAsync() .
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\CreateTagTemplateFieldRequest
A request to house fields associated with the call. |
callOptions |
array
Optional. |
↳ retrySettings |
RetrySettings|array
Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage. |
Returns | |
---|---|
Type | Description |
Google\Cloud\DataCatalog\V1\TagTemplateField |
deleteEntry
Deletes an existing entry.
You can delete only the entries created by the CreateEntry method.
You must enable the Data Catalog API in the project identified by
the name
parameter. For more information, see Data Catalog
resource
project.
The async variant is Google\Cloud\DataCatalog\V1\Client\BaseClient\self::deleteEntryAsync() .
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\DeleteEntryRequest
A request to house fields associated with the call. |
callOptions |
array
Optional. |
↳ retrySettings |
RetrySettings|array
Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage. |
deleteEntryGroup
Deletes an entry group.
You must enable the Data Catalog API in the project
identified by the name
parameter. For more information, see Data Catalog
resource
project.
The async variant is Google\Cloud\DataCatalog\V1\Client\BaseClient\self::deleteEntryGroupAsync() .
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\DeleteEntryGroupRequest
A request to house fields associated with the call. |
callOptions |
array
Optional. |
↳ retrySettings |
RetrySettings|array
Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage. |
deleteTag
Deletes a tag.
The async variant is Google\Cloud\DataCatalog\V1\Client\BaseClient\self::deleteTagAsync() .
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\DeleteTagRequest
A request to house fields associated with the call. |
callOptions |
array
Optional. |
↳ retrySettings |
RetrySettings|array
Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage. |
deleteTagTemplate
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.
The async variant is Google\Cloud\DataCatalog\V1\Client\BaseClient\self::deleteTagTemplateAsync() .
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\DeleteTagTemplateRequest
A request to house fields associated with the call. |
callOptions |
array
Optional. |
↳ retrySettings |
RetrySettings|array
Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage. |
deleteTagTemplateField
Deletes a field in a tag template and all uses of this field from the tags based on this template.
You must enable the Data Catalog API in the project identified by
the name
parameter. For more information, see Data Catalog resource
project.
The async variant is Google\Cloud\DataCatalog\V1\Client\BaseClient\self::deleteTagTemplateFieldAsync() .
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\DeleteTagTemplateFieldRequest
A request to house fields associated with the call. |
callOptions |
array
Optional. |
↳ retrySettings |
RetrySettings|array
Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage. |
getEntry
Gets an entry.
The async variant is Google\Cloud\DataCatalog\V1\Client\BaseClient\self::getEntryAsync() .
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\GetEntryRequest
A request to house fields associated with the call. |
callOptions |
array
Optional. |
↳ retrySettings |
RetrySettings|array
Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage. |
Returns | |
---|---|
Type | Description |
Google\Cloud\DataCatalog\V1\Entry |
getEntryGroup
Gets an entry group.
The async variant is Google\Cloud\DataCatalog\V1\Client\BaseClient\self::getEntryGroupAsync() .
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\GetEntryGroupRequest
A request to house fields associated with the call. |
callOptions |
array
Optional. |
↳ retrySettings |
RetrySettings|array
Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage. |
Returns | |
---|---|
Type | Description |
Google\Cloud\DataCatalog\V1\EntryGroup |
getIamPolicy
Gets the access control policy for a resource.
May return:
- A
NOT_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.
The async variant is Google\Cloud\DataCatalog\V1\Client\BaseClient\self::getIamPolicyAsync() .
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\Iam\V1\GetIamPolicyRequest
A request to house fields associated with the call. |
callOptions |
array
Optional. |
↳ retrySettings |
RetrySettings|array
Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage. |
Returns | |
---|---|
Type | Description |
Google\Cloud\Iam\V1\Policy |
getTagTemplate
Gets a tag template.
The async variant is Google\Cloud\DataCatalog\V1\Client\BaseClient\self::getTagTemplateAsync() .
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\GetTagTemplateRequest
A request to house fields associated with the call. |
callOptions |
array
Optional. |
↳ retrySettings |
RetrySettings|array
Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage. |
Returns | |
---|---|
Type | Description |
Google\Cloud\DataCatalog\V1\TagTemplate |
importEntries
Imports entries from a source, such as data previously dumped into a Cloud Storage bucket, into Data Catalog. Import of entries is a sync operation that reconciles the state of the third-party system with the Data Catalog.
ImportEntries
accepts source data snapshots of a third-party system.
Snapshot should be delivered as a .wire or base65-encoded .txt file
containing a sequence of Protocol Buffer messages of
DumpItem type.
ImportEntries
returns a long-running operation resource that can be queried with
Operations.GetOperation
to return
ImportEntriesMetadata
and an
ImportEntriesResponse
message.
The async variant is Google\Cloud\DataCatalog\V1\Client\BaseClient\self::importEntriesAsync() .
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\ImportEntriesRequest
A request to house fields associated with the call. |
callOptions |
array
Optional. |
↳ retrySettings |
RetrySettings|array
Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage. |
Returns | |
---|---|
Type | Description |
Google\ApiCore\OperationResponse |
listEntries
Lists entries.
Note: Currently, this method can list only custom entries. To get a list of both custom and automatically created entries, use SearchCatalog.
The async variant is Google\Cloud\DataCatalog\V1\Client\BaseClient\self::listEntriesAsync() .
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\ListEntriesRequest
A request to house fields associated with the call. |
callOptions |
array
Optional. |
↳ retrySettings |
RetrySettings|array
Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage. |
Returns | |
---|---|
Type | Description |
Google\ApiCore\PagedListResponse |
listEntryGroups
Lists entry groups.
The async variant is Google\Cloud\DataCatalog\V1\Client\BaseClient\self::listEntryGroupsAsync() .
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\ListEntryGroupsRequest
A request to house fields associated with the call. |
callOptions |
array
Optional. |
↳ retrySettings |
RetrySettings|array
Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage. |
Returns | |
---|---|
Type | Description |
Google\ApiCore\PagedListResponse |
listTags
Lists tags assigned to an Entry.
The columns in the response are lowercased.
The async variant is Google\Cloud\DataCatalog\V1\Client\BaseClient\self::listTagsAsync() .
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\ListTagsRequest
A request to house fields associated with the call. |
callOptions |
array
Optional. |
↳ retrySettings |
RetrySettings|array
Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage. |
Returns | |
---|---|
Type | Description |
Google\ApiCore\PagedListResponse |
lookupEntry
Gets an entry by its target resource name.
The resource name comes from the source Google Cloud Platform service.
The async variant is Google\Cloud\DataCatalog\V1\Client\BaseClient\self::lookupEntryAsync() .
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\LookupEntryRequest
A request to house fields associated with the call. |
callOptions |
array
Optional. |
↳ retrySettings |
RetrySettings|array
Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage. |
Returns | |
---|---|
Type | Description |
Google\Cloud\DataCatalog\V1\Entry |
modifyEntryContacts
Modifies contacts, part of the business context of an Entry.
To call this method, you must have the datacatalog.entries.updateContacts
IAM permission on the corresponding project.
The async variant is Google\Cloud\DataCatalog\V1\Client\BaseClient\self::modifyEntryContactsAsync() .
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\ModifyEntryContactsRequest
A request to house fields associated with the call. |
callOptions |
array
Optional. |
↳ retrySettings |
RetrySettings|array
Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage. |
Returns | |
---|---|
Type | Description |
Google\Cloud\DataCatalog\V1\Contacts |
modifyEntryOverview
Modifies entry overview, part of the business context of an Entry.
To call this method, you must have the datacatalog.entries.updateOverview
IAM permission on the corresponding project.
The async variant is Google\Cloud\DataCatalog\V1\Client\BaseClient\self::modifyEntryOverviewAsync() .
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\ModifyEntryOverviewRequest
A request to house fields associated with the call. |
callOptions |
array
Optional. |
↳ retrySettings |
RetrySettings|array
Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage. |
Returns | |
---|---|
Type | Description |
Google\Cloud\DataCatalog\V1\EntryOverview |
reconcileTags
ReconcileTags
creates or updates a list of tags on the entry.
If the ReconcileTagsRequest.force_delete_missing parameter is set, the operation deletes tags not included in the input tag list.
ReconcileTags
returns a long-running operation resource that can be queried with
Operations.GetOperation
to return ReconcileTagsMetadata and
a ReconcileTagsResponse message.
The async variant is Google\Cloud\DataCatalog\V1\Client\BaseClient\self::reconcileTagsAsync() .
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\ReconcileTagsRequest
A request to house fields associated with the call. |
callOptions |
array
Optional. |
↳ retrySettings |
RetrySettings|array
Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage. |
Returns | |
---|---|
Type | Description |
Google\ApiCore\OperationResponse |
renameTagTemplateField
Renames a field in a tag template.
You must enable the Data Catalog API in the project identified by the
name
parameter. For more information, see Data Catalog resource project.
The async variant is Google\Cloud\DataCatalog\V1\Client\BaseClient\self::renameTagTemplateFieldAsync() .
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\RenameTagTemplateFieldRequest
A request to house fields associated with the call. |
callOptions |
array
Optional. |
↳ retrySettings |
RetrySettings|array
Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage. |
Returns | |
---|---|
Type | Description |
Google\Cloud\DataCatalog\V1\TagTemplateField |
renameTagTemplateFieldEnumValue
Renames an enum value in a tag template.
Within a single enum field, enum values must be unique.
The async variant is Google\Cloud\DataCatalog\V1\Client\BaseClient\self::renameTagTemplateFieldEnumValueAsync() .
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\RenameTagTemplateFieldEnumValueRequest
A request to house fields associated with the call. |
callOptions |
array
Optional. |
↳ retrySettings |
RetrySettings|array
Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage. |
Returns | |
---|---|
Type | Description |
Google\Cloud\DataCatalog\V1\TagTemplateField |
searchCatalog
Searches Data Catalog for multiple resources like entries and tags that match a query.
This is a Custom Method that doesn't return all information on a resource, only its ID and high level fields. To get more information, you can subsequently call specific get methods.
Note: Data Catalog search queries don't guarantee full recall. Results that match your query might not be returned, even in subsequent result pages. Additionally, returned (and not returned) results can vary if you repeat search queries.
For more information, see Data Catalog search syntax.
The async variant is Google\Cloud\DataCatalog\V1\Client\BaseClient\self::searchCatalogAsync() .
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\SearchCatalogRequest
A request to house fields associated with the call. |
callOptions |
array
Optional. |
↳ retrySettings |
RetrySettings|array
Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage. |
Returns | |
---|---|
Type | Description |
Google\ApiCore\PagedListResponse |
setIamPolicy
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.
The async variant is Google\Cloud\DataCatalog\V1\Client\BaseClient\self::setIamPolicyAsync() .
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\Iam\V1\SetIamPolicyRequest
A request to house fields associated with the call. |
callOptions |
array
Optional. |
↳ retrySettings |
RetrySettings|array
Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage. |
Returns | |
---|---|
Type | Description |
Google\Cloud\Iam\V1\Policy |
starEntry
Marks an Entry as starred by the current user. Starring information is private to each user.
The async variant is Google\Cloud\DataCatalog\V1\Client\BaseClient\self::starEntryAsync() .
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\StarEntryRequest
A request to house fields associated with the call. |
callOptions |
array
Optional. |
↳ retrySettings |
RetrySettings|array
Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage. |
Returns | |
---|---|
Type | Description |
Google\Cloud\DataCatalog\V1\StarEntryResponse |
testIamPermissions
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.
The async variant is Google\Cloud\DataCatalog\V1\Client\BaseClient\self::testIamPermissionsAsync() .
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\Iam\V1\TestIamPermissionsRequest
A request to house fields associated with the call. |
callOptions |
array
Optional. |
↳ retrySettings |
RetrySettings|array
Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage. |
Returns | |
---|---|
Type | Description |
Google\Cloud\Iam\V1\TestIamPermissionsResponse |
unstarEntry
Marks an Entry as NOT starred by the current user. Starring information is private to each user.
The async variant is Google\Cloud\DataCatalog\V1\Client\BaseClient\self::unstarEntryAsync() .
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\UnstarEntryRequest
A request to house fields associated with the call. |
callOptions |
array
Optional. |
↳ retrySettings |
RetrySettings|array
Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage. |
Returns | |
---|---|
Type | Description |
Google\Cloud\DataCatalog\V1\UnstarEntryResponse |
updateEntry
Updates an existing entry.
You must enable the Data Catalog API in the project identified by
the entry.name
parameter. For more information, see Data Catalog
resource
project.
The async variant is Google\Cloud\DataCatalog\V1\Client\BaseClient\self::updateEntryAsync() .
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\UpdateEntryRequest
A request to house fields associated with the call. |
callOptions |
array
Optional. |
↳ retrySettings |
RetrySettings|array
Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage. |
Returns | |
---|---|
Type | Description |
Google\Cloud\DataCatalog\V1\Entry |
updateEntryGroup
Updates an entry group.
You must enable the Data Catalog API in the project identified by
the entry_group.name
parameter. For more information, see Data Catalog
resource
project.
The async variant is Google\Cloud\DataCatalog\V1\Client\BaseClient\self::updateEntryGroupAsync() .
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\UpdateEntryGroupRequest
A request to house fields associated with the call. |
callOptions |
array
Optional. |
↳ retrySettings |
RetrySettings|array
Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage. |
Returns | |
---|---|
Type | Description |
Google\Cloud\DataCatalog\V1\EntryGroup |
updateTag
Updates an existing tag.
The async variant is Google\Cloud\DataCatalog\V1\Client\BaseClient\self::updateTagAsync() .
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\UpdateTagRequest
A request to house fields associated with the call. |
callOptions |
array
Optional. |
↳ retrySettings |
RetrySettings|array
Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage. |
Returns | |
---|---|
Type | Description |
Google\Cloud\DataCatalog\V1\Tag |
updateTagTemplate
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.
The async variant is Google\Cloud\DataCatalog\V1\Client\BaseClient\self::updateTagTemplateAsync() .
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\UpdateTagTemplateRequest
A request to house fields associated with the call. |
callOptions |
array
Optional. |
↳ retrySettings |
RetrySettings|array
Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage. |
Returns | |
---|---|
Type | Description |
Google\Cloud\DataCatalog\V1\TagTemplate |
updateTagTemplateField
Updates a field in a tag template.
You can't update the field type with this method.
You must enable the Data Catalog API in the project
identified by the name
parameter. For more information, see Data Catalog
resource
project.
The async variant is Google\Cloud\DataCatalog\V1\Client\BaseClient\self::updateTagTemplateFieldAsync() .
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\UpdateTagTemplateFieldRequest
A request to house fields associated with the call. |
callOptions |
array
Optional. |
↳ retrySettings |
RetrySettings|array
Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage. |
Returns | |
---|---|
Type | Description |
Google\Cloud\DataCatalog\V1\TagTemplateField |
createEntryAsync
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\CreateEntryRequest
|
optionalArgs = [] |
array
|
Returns | |
---|---|
Type | Description |
GuzzleHttp\Promise\PromiseInterface |
createEntryGroupAsync
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\CreateEntryGroupRequest
|
optionalArgs = [] |
array
|
Returns | |
---|---|
Type | Description |
GuzzleHttp\Promise\PromiseInterface |
createTagAsync
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\CreateTagRequest
|
optionalArgs = [] |
array
|
Returns | |
---|---|
Type | Description |
GuzzleHttp\Promise\PromiseInterface |
createTagTemplateAsync
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\CreateTagTemplateRequest
|
optionalArgs = [] |
array
|
Returns | |
---|---|
Type | Description |
GuzzleHttp\Promise\PromiseInterface |
createTagTemplateFieldAsync
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\CreateTagTemplateFieldRequest
|
optionalArgs = [] |
array
|
Returns | |
---|---|
Type | Description |
GuzzleHttp\Promise\PromiseInterface |
deleteEntryAsync
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\DeleteEntryRequest
|
optionalArgs = [] |
array
|
Returns | |
---|---|
Type | Description |
GuzzleHttp\Promise\PromiseInterface |
deleteEntryGroupAsync
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\DeleteEntryGroupRequest
|
optionalArgs = [] |
array
|
Returns | |
---|---|
Type | Description |
GuzzleHttp\Promise\PromiseInterface |
deleteTagAsync
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\DeleteTagRequest
|
optionalArgs = [] |
array
|
Returns | |
---|---|
Type | Description |
GuzzleHttp\Promise\PromiseInterface |
deleteTagTemplateAsync
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\DeleteTagTemplateRequest
|
optionalArgs = [] |
array
|
Returns | |
---|---|
Type | Description |
GuzzleHttp\Promise\PromiseInterface |
deleteTagTemplateFieldAsync
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\DeleteTagTemplateFieldRequest
|
optionalArgs = [] |
array
|
Returns | |
---|---|
Type | Description |
GuzzleHttp\Promise\PromiseInterface |
getEntryAsync
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\GetEntryRequest
|
optionalArgs = [] |
array
|
Returns | |
---|---|
Type | Description |
GuzzleHttp\Promise\PromiseInterface |
getEntryGroupAsync
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\GetEntryGroupRequest
|
optionalArgs = [] |
array
|
Returns | |
---|---|
Type | Description |
GuzzleHttp\Promise\PromiseInterface |
getIamPolicyAsync
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\Iam\V1\GetIamPolicyRequest
|
optionalArgs = [] |
array
|
Returns | |
---|---|
Type | Description |
GuzzleHttp\Promise\PromiseInterface |
getTagTemplateAsync
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\GetTagTemplateRequest
|
optionalArgs = [] |
array
|
Returns | |
---|---|
Type | Description |
GuzzleHttp\Promise\PromiseInterface |
importEntriesAsync
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\ImportEntriesRequest
|
optionalArgs = [] |
array
|
Returns | |
---|---|
Type | Description |
GuzzleHttp\Promise\PromiseInterface |
listEntriesAsync
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\ListEntriesRequest
|
optionalArgs = [] |
array
|
Returns | |
---|---|
Type | Description |
GuzzleHttp\Promise\PromiseInterface |
listEntryGroupsAsync
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\ListEntryGroupsRequest
|
optionalArgs = [] |
array
|
Returns | |
---|---|
Type | Description |
GuzzleHttp\Promise\PromiseInterface |
listTagsAsync
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\ListTagsRequest
|
optionalArgs = [] |
array
|
Returns | |
---|---|
Type | Description |
GuzzleHttp\Promise\PromiseInterface |
lookupEntryAsync
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\LookupEntryRequest
|
optionalArgs = [] |
array
|
Returns | |
---|---|
Type | Description |
GuzzleHttp\Promise\PromiseInterface |
modifyEntryContactsAsync
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\ModifyEntryContactsRequest
|
optionalArgs = [] |
array
|
Returns | |
---|---|
Type | Description |
GuzzleHttp\Promise\PromiseInterface |
modifyEntryOverviewAsync
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\ModifyEntryOverviewRequest
|
optionalArgs = [] |
array
|
Returns | |
---|---|
Type | Description |
GuzzleHttp\Promise\PromiseInterface |
reconcileTagsAsync
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\ReconcileTagsRequest
|
optionalArgs = [] |
array
|
Returns | |
---|---|
Type | Description |
GuzzleHttp\Promise\PromiseInterface |
renameTagTemplateFieldAsync
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\RenameTagTemplateFieldRequest
|
optionalArgs = [] |
array
|
Returns | |
---|---|
Type | Description |
GuzzleHttp\Promise\PromiseInterface |
renameTagTemplateFieldEnumValueAsync
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\RenameTagTemplateFieldEnumValueRequest
|
optionalArgs = [] |
array
|
Returns | |
---|---|
Type | Description |
GuzzleHttp\Promise\PromiseInterface |
searchCatalogAsync
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\SearchCatalogRequest
|
optionalArgs = [] |
array
|
Returns | |
---|---|
Type | Description |
GuzzleHttp\Promise\PromiseInterface |
setIamPolicyAsync
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\Iam\V1\SetIamPolicyRequest
|
optionalArgs = [] |
array
|
Returns | |
---|---|
Type | Description |
GuzzleHttp\Promise\PromiseInterface |
starEntryAsync
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\StarEntryRequest
|
optionalArgs = [] |
array
|
Returns | |
---|---|
Type | Description |
GuzzleHttp\Promise\PromiseInterface |
testIamPermissionsAsync
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\Iam\V1\TestIamPermissionsRequest
|
optionalArgs = [] |
array
|
Returns | |
---|---|
Type | Description |
GuzzleHttp\Promise\PromiseInterface |
unstarEntryAsync
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\UnstarEntryRequest
|
optionalArgs = [] |
array
|
Returns | |
---|---|
Type | Description |
GuzzleHttp\Promise\PromiseInterface |
updateEntryAsync
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\UpdateEntryRequest
|
optionalArgs = [] |
array
|
Returns | |
---|---|
Type | Description |
GuzzleHttp\Promise\PromiseInterface |
updateEntryGroupAsync
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\UpdateEntryGroupRequest
|
optionalArgs = [] |
array
|
Returns | |
---|---|
Type | Description |
GuzzleHttp\Promise\PromiseInterface |
updateTagAsync
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\UpdateTagRequest
|
optionalArgs = [] |
array
|
Returns | |
---|---|
Type | Description |
GuzzleHttp\Promise\PromiseInterface |
updateTagTemplateAsync
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\UpdateTagTemplateRequest
|
optionalArgs = [] |
array
|
Returns | |
---|---|
Type | Description |
GuzzleHttp\Promise\PromiseInterface |
updateTagTemplateFieldAsync
Parameters | |
---|---|
Name | Description |
request |
Google\Cloud\DataCatalog\V1\UpdateTagTemplateFieldRequest
|
optionalArgs = [] |
array
|
Returns | |
---|---|
Type | Description |
GuzzleHttp\Promise\PromiseInterface |
getOperationsClient
Return an OperationsClient object with the same endpoint as $this.
Returns | |
---|---|
Type | Description |
Google\ApiCore\LongRunning\OperationsClient |
resumeOperation
Resume an existing long running operation that was previously started by a long running API method. If $methodName is not provided, or does not match a long running API method, then the operation can still be resumed, but the OperationResponse object will not deserialize the final response.
Parameters | |
---|---|
Name | Description |
operationName |
string
The name of the long running operation |
methodName |
string
The name of the method used to start the operation |
Returns | |
---|---|
Type | Description |
Google\ApiCore\OperationResponse |
static::entryName
Formats a string containing the fully-qualified path to represent a entry resource.
Parameters | |
---|---|
Name | Description |
project |
string
|
location |
string
|
entryGroup |
string
|
entry |
string
|
Returns | |
---|---|
Type | Description |
string | The formatted entry resource. |
static::entryGroupName
Formats a string containing the fully-qualified path to represent a entry_group resource.
Parameters | |
---|---|
Name | Description |
project |
string
|
location |
string
|
entryGroup |
string
|
Returns | |
---|---|
Type | Description |
string | The formatted entry_group resource. |
static::locationName
Formats a string containing the fully-qualified path to represent a location resource.
Parameters | |
---|---|
Name | Description |
project |
string
|
location |
string
|
Returns | |
---|---|
Type | Description |
string | The formatted location resource. |
static::tagName
Formats a string containing the fully-qualified path to represent a tag resource.
Parameters | |
---|---|
Name | Description |
project |
string
|
location |
string
|
entryGroup |
string
|
entry |
string
|
tag |
string
|
Returns | |
---|---|
Type | Description |
string | The formatted tag resource. |
static::tagTemplateName
Formats a string containing the fully-qualified path to represent a tag_template resource.
Parameters | |
---|---|
Name | Description |
project |
string
|
location |
string
|
tagTemplate |
string
|
Returns | |
---|---|
Type | Description |
string | The formatted tag_template resource. |
static::tagTemplateFieldName
Formats a string containing the fully-qualified path to represent a tag_template_field resource.
Parameters | |
---|---|
Name | Description |
project |
string
|
location |
string
|
tagTemplate |
string
|
field |
string
|
Returns | |
---|---|
Type | Description |
string | The formatted tag_template_field resource. |
static::tagTemplateFieldEnumValueName
Formats a string containing the fully-qualified path to represent a tag_template_field_enum_value resource.
Parameters | |
---|---|
Name | Description |
project |
string
|
location |
string
|
tagTemplate |
string
|
tagTemplateFieldId |
string
|
enumValueDisplayName |
string
|
Returns | |
---|---|
Type | Description |
string | The formatted tag_template_field_enum_value resource. |
static::parseName
Parses a formatted name string and returns an associative array of the components in the name.
The following name formats are supported: Template: Pattern
- entry: projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}
- entryGroup: projects/{project}/locations/{location}/entryGroups/{entry_group}
- location: projects/{project}/locations/{location}
- tag: projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}/tags/{tag}
- tagTemplate: projects/{project}/locations/{location}/tagTemplates/{tag_template}
- tagTemplateField: projects/{project}/locations/{location}/tagTemplates/{tag_template}/fields/{field}
- tagTemplateFieldEnumValue: projects/{project}/locations/{location}/tagTemplates/{tag_template}/fields/{tag_template_field_id}/enumValues/{enum_value_display_name}
The optional $template argument can be supplied to specify a particular pattern, and must match one of the templates listed above. If no $template argument is provided, or if the $template argument does not match one of the templates listed, then parseName will check each of the supported templates, and return the first match.
Parameters | |
---|---|
Name | Description |
formattedName |
string
The formatted name string |
template |
string
Optional name of template to match |
Returns | |
---|---|
Type | Description |
array | An associative array from name component IDs to component values. |