ProjectMethods

Struct ProjectMethods 

Source
pub struct ProjectMethods<'a, C>
where C: 'a,
{ /* private fields */ }
Expand description

A builder providing access to all methods supported on project resources. It is not used directly, but through the DataCatalog hub.

§Example

Instantiate a resource builder

extern crate hyper;
extern crate hyper_rustls;
extern crate google_datacatalog1 as datacatalog1;

use datacatalog1::{DataCatalog, FieldMask, hyper_rustls, hyper_util, yup_oauth2};

let secret: yup_oauth2::ApplicationSecret = Default::default();
let connector = hyper_rustls::HttpsConnectorBuilder::new()
    .with_native_roots()
    .unwrap()
    .https_only()
    .enable_http2()
    .build();

let executor = hyper_util::rt::TokioExecutor::new();
let auth = yup_oauth2::InstalledFlowAuthenticator::with_client(
    secret,
    yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
    yup_oauth2::client::CustomHyperClientBuilder::from(
        hyper_util::client::legacy::Client::builder(executor).build(connector),
    ),
).build().await.unwrap();

let client = hyper_util::client::legacy::Client::builder(
    hyper_util::rt::TokioExecutor::new()
)
.build(
    hyper_rustls::HttpsConnectorBuilder::new()
        .with_native_roots()
        .unwrap()
        .https_or_http()
        .enable_http2()
        .build()
);
let mut hub = DataCatalog::new(client, auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `locations_entry_groups_create(...)`, `locations_entry_groups_delete(...)`, `locations_entry_groups_entries_create(...)`, `locations_entry_groups_entries_delete(...)`, `locations_entry_groups_entries_get(...)`, `locations_entry_groups_entries_get_iam_policy(...)`, `locations_entry_groups_entries_import(...)`, `locations_entry_groups_entries_list(...)`, `locations_entry_groups_entries_modify_entry_contacts(...)`, `locations_entry_groups_entries_modify_entry_overview(...)`, `locations_entry_groups_entries_patch(...)`, `locations_entry_groups_entries_star(...)`, `locations_entry_groups_entries_tags_create(...)`, `locations_entry_groups_entries_tags_delete(...)`, `locations_entry_groups_entries_tags_list(...)`, `locations_entry_groups_entries_tags_patch(...)`, `locations_entry_groups_entries_tags_reconcile(...)`, `locations_entry_groups_entries_test_iam_permissions(...)`, `locations_entry_groups_entries_unstar(...)`, `locations_entry_groups_get(...)`, `locations_entry_groups_get_iam_policy(...)`, `locations_entry_groups_list(...)`, `locations_entry_groups_patch(...)`, `locations_entry_groups_set_iam_policy(...)`, `locations_entry_groups_tags_create(...)`, `locations_entry_groups_tags_delete(...)`, `locations_entry_groups_tags_list(...)`, `locations_entry_groups_tags_patch(...)`, `locations_entry_groups_test_iam_permissions(...)`, `locations_operations_cancel(...)`, `locations_operations_delete(...)`, `locations_operations_get(...)`, `locations_operations_list(...)`, `locations_retrieve_effective_config(...)`, `locations_set_config(...)`, `locations_tag_templates_create(...)`, `locations_tag_templates_delete(...)`, `locations_tag_templates_fields_create(...)`, `locations_tag_templates_fields_delete(...)`, `locations_tag_templates_fields_enum_values_rename(...)`, `locations_tag_templates_fields_patch(...)`, `locations_tag_templates_fields_rename(...)`, `locations_tag_templates_get(...)`, `locations_tag_templates_get_iam_policy(...)`, `locations_tag_templates_patch(...)`, `locations_tag_templates_set_iam_policy(...)`, `locations_tag_templates_test_iam_permissions(...)`, `locations_taxonomies_create(...)`, `locations_taxonomies_delete(...)`, `locations_taxonomies_export(...)`, `locations_taxonomies_get(...)`, `locations_taxonomies_get_iam_policy(...)`, `locations_taxonomies_import(...)`, `locations_taxonomies_list(...)`, `locations_taxonomies_patch(...)`, `locations_taxonomies_policy_tags_create(...)`, `locations_taxonomies_policy_tags_delete(...)`, `locations_taxonomies_policy_tags_get(...)`, `locations_taxonomies_policy_tags_get_iam_policy(...)`, `locations_taxonomies_policy_tags_list(...)`, `locations_taxonomies_policy_tags_patch(...)`, `locations_taxonomies_policy_tags_set_iam_policy(...)`, `locations_taxonomies_policy_tags_test_iam_permissions(...)`, `locations_taxonomies_replace(...)`, `locations_taxonomies_set_iam_policy(...)` and `locations_taxonomies_test_iam_permissions(...)`
// to build up your call.
let rb = hub.projects();

Implementations§

Source§

impl<'a, C> ProjectMethods<'a, C>

Source

pub fn locations_entry_groups_entries_tags_create( &self, request: GoogleCloudDatacatalogV1Tag, parent: &str, ) -> ProjectLocationEntryGroupEntryTagCreateCall<'a, C>

Create a builder to help you perform the following task:

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.locations.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.

§Arguments
  • request - No description provided.
  • 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.
Source

pub fn locations_entry_groups_entries_tags_delete( &self, name: &str, ) -> ProjectLocationEntryGroupEntryTagDeleteCall<'a, C>

Create a builder to help you perform the following task:

Deletes a tag.

§Arguments
  • name - Required. The name of the tag to delete.
Source

pub fn locations_entry_groups_entries_tags_list( &self, parent: &str, ) -> ProjectLocationEntryGroupEntryTagListCall<'a, C>

Create a builder to help you perform the following task:

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

§Arguments
  • 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).
Source

pub fn locations_entry_groups_entries_tags_patch( &self, request: GoogleCloudDatacatalogV1Tag, name: &str, ) -> ProjectLocationEntryGroupEntryTagPatchCall<'a, C>

Create a builder to help you perform the following task:

Updates an existing tag.

§Arguments
  • request - No description provided.
  • 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.
Source

pub fn locations_entry_groups_entries_tags_reconcile( &self, request: GoogleCloudDatacatalogV1ReconcileTagsRequest, parent: &str, ) -> ProjectLocationEntryGroupEntryTagReconcileCall<'a, C>

Create a builder to help you perform the following task:

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. Note: SearchCatalog might return stale search results for up to 24 hours after the ReconcileTags operation completes.

§Arguments
  • request - No description provided.
  • parent - Required. Name of Entry to be tagged.
Source

pub fn locations_entry_groups_entries_create( &self, request: GoogleCloudDatacatalogV1Entry, parent: &str, ) -> ProjectLocationEntryGroupEntryCreateCall<'a, C>

Create a builder to help you perform the following task:

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.

§Arguments
  • request - No description provided.
  • parent - Required. The name of the entry group this entry belongs to. Note: The entry itself and its child resources might not be stored in the location specified in its name.
Source

pub fn locations_entry_groups_entries_delete( &self, name: &str, ) -> ProjectLocationEntryGroupEntryDeleteCall<'a, C>

Create a builder to help you perform the following task:

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.

§Arguments
  • name - Required. The name of the entry to delete.
Source

pub fn locations_entry_groups_entries_get( &self, name: &str, ) -> ProjectLocationEntryGroupEntryGetCall<'a, C>

Create a builder to help you perform the following task:

Gets an entry.

§Arguments
  • name - Required. The name of the entry to get.
Source

pub fn locations_entry_groups_entries_get_iam_policy( &self, request: GetIamPolicyRequest, resource: &str, ) -> ProjectLocationEntryGroupEntryGetIamPolicyCall<'a, C>

Create a builder to help you perform the following task:

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.

§Arguments
  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
Source

pub fn locations_entry_groups_entries_import( &self, request: GoogleCloudDatacatalogV1ImportEntriesRequest, parent: &str, ) -> ProjectLocationEntryGroupEntryImportCall<'a, C>

Create a builder to help you perform the following task:

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.

§Arguments
  • request - No description provided.
  • parent - Required. Target entry group for ingested entries.
Source

pub fn locations_entry_groups_entries_list( &self, parent: &str, ) -> ProjectLocationEntryGroupEntryListCall<'a, C>

Create a builder to help you perform the following task:

Lists entries. Note: Currently, this method can list only custom entries. To get a list of both custom and automatically created entries, use SearchCatalog.

§Arguments
  • parent - Required. The name of the entry group that contains the entries to list. Can be provided in URL format.
Source

pub fn locations_entry_groups_entries_modify_entry_contacts( &self, request: GoogleCloudDatacatalogV1ModifyEntryContactsRequest, name: &str, ) -> ProjectLocationEntryGroupEntryModifyEntryContactCall<'a, C>

Create a builder to help you perform the following task:

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.

§Arguments
  • request - No description provided.
  • name - Required. The full resource name of the entry.
Source

pub fn locations_entry_groups_entries_modify_entry_overview( &self, request: GoogleCloudDatacatalogV1ModifyEntryOverviewRequest, name: &str, ) -> ProjectLocationEntryGroupEntryModifyEntryOverviewCall<'a, C>

Create a builder to help you perform the following task:

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.

§Arguments
  • request - No description provided.
  • name - Required. The full resource name of the entry.
Source

pub fn locations_entry_groups_entries_patch( &self, request: GoogleCloudDatacatalogV1Entry, name: &str, ) -> ProjectLocationEntryGroupEntryPatchCall<'a, C>

Create a builder to help you perform the following task:

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.

§Arguments
  • request - No description provided.
  • name - Output only. Identifier. The resource name of an entry in URL format. Note: The entry itself and its child resources might not be stored in the location specified in its name.
Source

pub fn locations_entry_groups_entries_star( &self, request: GoogleCloudDatacatalogV1StarEntryRequest, name: &str, ) -> ProjectLocationEntryGroupEntryStarCall<'a, C>

Create a builder to help you perform the following task:

Marks an Entry as starred by the current user. Starring information is private to each user.

§Arguments
  • request - No description provided.
  • name - Required. The name of the entry to mark as starred.
Source

pub fn locations_entry_groups_entries_test_iam_permissions( &self, request: TestIamPermissionsRequest, resource: &str, ) -> ProjectLocationEntryGroupEntryTestIamPermissionCall<'a, C>

Create a builder to help you perform the following task:

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.

§Arguments
  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.
Source

pub fn locations_entry_groups_entries_unstar( &self, request: GoogleCloudDatacatalogV1UnstarEntryRequest, name: &str, ) -> ProjectLocationEntryGroupEntryUnstarCall<'a, C>

Create a builder to help you perform the following task:

Marks an Entry as NOT starred by the current user. Starring information is private to each user.

§Arguments
  • request - No description provided.
  • name - Required. The name of the entry to mark as not starred.
Source

pub fn locations_entry_groups_tags_create( &self, request: GoogleCloudDatacatalogV1Tag, parent: &str, ) -> ProjectLocationEntryGroupTagCreateCall<'a, C>

Create a builder to help you perform the following task:

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.locations.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.

§Arguments
  • request - No description provided.
  • 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.
Source

pub fn locations_entry_groups_tags_delete( &self, name: &str, ) -> ProjectLocationEntryGroupTagDeleteCall<'a, C>

Create a builder to help you perform the following task:

Deletes a tag.

§Arguments
  • name - Required. The name of the tag to delete.
Source

pub fn locations_entry_groups_tags_list( &self, parent: &str, ) -> ProjectLocationEntryGroupTagListCall<'a, C>

Create a builder to help you perform the following task:

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

§Arguments
  • 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).
Source

pub fn locations_entry_groups_tags_patch( &self, request: GoogleCloudDatacatalogV1Tag, name: &str, ) -> ProjectLocationEntryGroupTagPatchCall<'a, C>

Create a builder to help you perform the following task:

Updates an existing tag.

§Arguments
  • request - No description provided.
  • 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.
Source

pub fn locations_entry_groups_create( &self, request: GoogleCloudDatacatalogV1EntryGroup, parent: &str, ) -> ProjectLocationEntryGroupCreateCall<'a, C>

Create a builder to help you perform the following task:

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.

§Arguments
  • request - No description provided.
  • parent - Required. The names of the project and location that the new entry group belongs to. Note: The entry group itself and its child resources might not be stored in the location specified in its name.
Source

pub fn locations_entry_groups_delete( &self, name: &str, ) -> ProjectLocationEntryGroupDeleteCall<'a, C>

Create a builder to help you perform the following task:

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.

§Arguments
  • name - Required. The name of the entry group to delete.
Source

pub fn locations_entry_groups_get( &self, name: &str, ) -> ProjectLocationEntryGroupGetCall<'a, C>

Create a builder to help you perform the following task:

Gets an entry group.

§Arguments
  • name - Required. The name of the entry group to get.
Source

pub fn locations_entry_groups_get_iam_policy( &self, request: GetIamPolicyRequest, resource: &str, ) -> ProjectLocationEntryGroupGetIamPolicyCall<'a, C>

Create a builder to help you perform the following task:

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.

§Arguments
  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
Source

pub fn locations_entry_groups_list( &self, parent: &str, ) -> ProjectLocationEntryGroupListCall<'a, C>

Create a builder to help you perform the following task:

Lists entry groups.

§Arguments
  • parent - Required. The name of the location that contains the entry groups to list. Can be provided as a URL.
Source

pub fn locations_entry_groups_patch( &self, request: GoogleCloudDatacatalogV1EntryGroup, name: &str, ) -> ProjectLocationEntryGroupPatchCall<'a, C>

Create a builder to help you perform the following task:

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.

§Arguments
  • request - No description provided.
  • name - Identifier. The resource name of the entry group in URL format. Note: The entry group itself and its child resources might not be stored in the location specified in its name.
Source

pub fn locations_entry_groups_set_iam_policy( &self, request: SetIamPolicyRequest, resource: &str, ) -> ProjectLocationEntryGroupSetIamPolicyCall<'a, C>

Create a builder to help you perform the following task:

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.

§Arguments
  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.
Source

pub fn locations_entry_groups_test_iam_permissions( &self, request: TestIamPermissionsRequest, resource: &str, ) -> ProjectLocationEntryGroupTestIamPermissionCall<'a, C>

Create a builder to help you perform the following task:

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.

§Arguments
  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.
Source

pub fn locations_operations_cancel( &self, name: &str, ) -> ProjectLocationOperationCancelCall<'a, C>

Create a builder to help you perform the following task:

Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn’t support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.

§Arguments
  • name - The name of the operation resource to be cancelled.
Source

pub fn locations_operations_delete( &self, name: &str, ) -> ProjectLocationOperationDeleteCall<'a, C>

Create a builder to help you perform the following task:

Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn’t support this method, it returns google.rpc.Code.UNIMPLEMENTED.

§Arguments
  • name - The name of the operation resource to be deleted.
Source

pub fn locations_operations_get( &self, name: &str, ) -> ProjectLocationOperationGetCall<'a, C>

Create a builder to help you perform the following task:

Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

§Arguments
  • name - The name of the operation resource.
Source

pub fn locations_operations_list( &self, name: &str, ) -> ProjectLocationOperationListCall<'a, C>

Create a builder to help you perform the following task:

Lists operations that match the specified filter in the request. If the server doesn’t support this method, it returns UNIMPLEMENTED.

§Arguments
  • name - The name of the operation’s parent resource.
Source

pub fn locations_tag_templates_fields_enum_values_rename( &self, request: GoogleCloudDatacatalogV1RenameTagTemplateFieldEnumValueRequest, name: &str, ) -> ProjectLocationTagTemplateFieldEnumValueRenameCall<'a, C>

Create a builder to help you perform the following task:

Renames an enum value in a tag template. Within a single enum field, enum values must be unique.

§Arguments
  • request - No description provided.
  • name - Required. The name of the enum field value.
Source

pub fn locations_tag_templates_fields_create( &self, request: GoogleCloudDatacatalogV1TagTemplateField, parent: &str, ) -> ProjectLocationTagTemplateFieldCreateCall<'a, C>

Create a builder to help you perform the following task:

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.

§Arguments
  • request - No description provided.
  • parent - Required. The name of the project and the template location region.
Source

pub fn locations_tag_templates_fields_delete( &self, name: &str, ) -> ProjectLocationTagTemplateFieldDeleteCall<'a, C>

Create a builder to help you perform the following task:

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.

§Arguments
  • name - Required. The name of the tag template field to delete.
Source

pub fn locations_tag_templates_fields_patch( &self, request: GoogleCloudDatacatalogV1TagTemplateField, name: &str, ) -> ProjectLocationTagTemplateFieldPatchCall<'a, C>

Create a builder to help you perform the following task:

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.

§Arguments
  • request - No description provided.
  • name - Required. The name of the tag template field.
Source

pub fn locations_tag_templates_fields_rename( &self, request: GoogleCloudDatacatalogV1RenameTagTemplateFieldRequest, name: &str, ) -> ProjectLocationTagTemplateFieldRenameCall<'a, C>

Create a builder to help you perform the following task:

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] (https://cloud.google.com/data-catalog/docs/concepts/resource-project).

§Arguments
  • request - No description provided.
  • name - Required. The name of the tag template field.
Source

pub fn locations_tag_templates_create( &self, request: GoogleCloudDatacatalogV1TagTemplate, parent: &str, ) -> ProjectLocationTagTemplateCreateCall<'a, C>

Create a builder to help you perform the following task:

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).

§Arguments
  • request - No description provided.
  • parent - Required. The name of the project and the template location region.
Source

pub fn locations_tag_templates_delete( &self, name: &str, ) -> ProjectLocationTagTemplateDeleteCall<'a, C>

Create a builder to help you perform the following task:

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.

§Arguments
  • name - Required. The name of the tag template to delete.
Source

pub fn locations_tag_templates_get( &self, name: &str, ) -> ProjectLocationTagTemplateGetCall<'a, C>

Create a builder to help you perform the following task:

Gets a tag template.

§Arguments
  • name - Required. The name of the tag template to get.
Source

pub fn locations_tag_templates_get_iam_policy( &self, request: GetIamPolicyRequest, resource: &str, ) -> ProjectLocationTagTemplateGetIamPolicyCall<'a, C>

Create a builder to help you perform the following task:

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.

§Arguments
  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
Source

pub fn locations_tag_templates_patch( &self, request: GoogleCloudDatacatalogV1TagTemplate, name: &str, ) -> ProjectLocationTagTemplatePatchCall<'a, C>

Create a builder to help you perform the following task:

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.

§Arguments
  • request - No description provided.
  • 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.
Source

pub fn locations_tag_templates_set_iam_policy( &self, request: SetIamPolicyRequest, resource: &str, ) -> ProjectLocationTagTemplateSetIamPolicyCall<'a, C>

Create a builder to help you perform the following task:

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.

§Arguments
  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.
Source

pub fn locations_tag_templates_test_iam_permissions( &self, request: TestIamPermissionsRequest, resource: &str, ) -> ProjectLocationTagTemplateTestIamPermissionCall<'a, C>

Create a builder to help you perform the following task:

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.

§Arguments
  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.
Source

pub fn locations_taxonomies_policy_tags_create( &self, request: GoogleCloudDatacatalogV1PolicyTag, parent: &str, ) -> ProjectLocationTaxonomyPolicyTagCreateCall<'a, C>

Create a builder to help you perform the following task:

Creates a policy tag in a taxonomy.

§Arguments
  • request - No description provided.
  • parent - Required. Resource name of the taxonomy that the policy tag will belong to.
Source

pub fn locations_taxonomies_policy_tags_delete( &self, name: &str, ) -> ProjectLocationTaxonomyPolicyTagDeleteCall<'a, C>

Create a builder to help you perform the following task:

Deletes a policy tag together with the following: * All of its descendant policy tags, if any * Policies associated with the policy tag and its descendants * References from BigQuery table schema of the policy tag and its descendants

§Arguments
  • name - Required. Resource name of the policy tag to delete. Note: All of its descendant policy tags are also deleted.
Source

pub fn locations_taxonomies_policy_tags_get( &self, name: &str, ) -> ProjectLocationTaxonomyPolicyTagGetCall<'a, C>

Create a builder to help you perform the following task:

Gets a policy tag.

§Arguments
  • name - Required. Resource name of the policy tag.
Source

pub fn locations_taxonomies_policy_tags_get_iam_policy( &self, request: GetIamPolicyRequest, resource: &str, ) -> ProjectLocationTaxonomyPolicyTagGetIamPolicyCall<'a, C>

Create a builder to help you perform the following task:

Gets the IAM policy for a policy tag or a taxonomy.

§Arguments
  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
Source

pub fn locations_taxonomies_policy_tags_list( &self, parent: &str, ) -> ProjectLocationTaxonomyPolicyTagListCall<'a, C>

Create a builder to help you perform the following task:

Lists all policy tags in a taxonomy.

§Arguments
  • parent - Required. Resource name of the taxonomy to list the policy tags of.
Source

pub fn locations_taxonomies_policy_tags_patch( &self, request: GoogleCloudDatacatalogV1PolicyTag, name: &str, ) -> ProjectLocationTaxonomyPolicyTagPatchCall<'a, C>

Create a builder to help you perform the following task:

Updates a policy tag, including its display name, description, and parent policy tag.

§Arguments
  • request - No description provided.
  • name - Identifier. Resource name of this policy tag in the URL format. The policy tag manager generates unique taxonomy IDs and policy tag IDs.
Source

pub fn locations_taxonomies_policy_tags_set_iam_policy( &self, request: SetIamPolicyRequest, resource: &str, ) -> ProjectLocationTaxonomyPolicyTagSetIamPolicyCall<'a, C>

Create a builder to help you perform the following task:

Sets the IAM policy for a policy tag or a taxonomy.

§Arguments
  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.
Source

pub fn locations_taxonomies_policy_tags_test_iam_permissions( &self, request: TestIamPermissionsRequest, resource: &str, ) -> ProjectLocationTaxonomyPolicyTagTestIamPermissionCall<'a, C>

Create a builder to help you perform the following task:

Returns your permissions on a specified policy tag or taxonomy.

§Arguments
  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.
Source

pub fn locations_taxonomies_create( &self, request: GoogleCloudDatacatalogV1Taxonomy, parent: &str, ) -> ProjectLocationTaxonomyCreateCall<'a, C>

Create a builder to help you perform the following task:

Creates a taxonomy in a specified project. The taxonomy is initially empty, that is, it doesn’t contain policy tags.

§Arguments
  • request - No description provided.
  • parent - Required. Resource name of the project that the taxonomy will belong to.
Source

pub fn locations_taxonomies_delete( &self, name: &str, ) -> ProjectLocationTaxonomyDeleteCall<'a, C>

Create a builder to help you perform the following task:

Deletes a taxonomy, including all policy tags in this taxonomy, their associated policies, and the policy tags references from BigQuery columns.

§Arguments
  • name - Required. Resource name of the taxonomy to delete. Note: All policy tags in this taxonomy are also deleted.
Source

pub fn locations_taxonomies_export( &self, parent: &str, ) -> ProjectLocationTaxonomyExportCall<'a, C>

Create a builder to help you perform the following task:

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.

§Arguments
  • parent - Required. Resource name of the project that the exported taxonomies belong to.
Source

pub fn locations_taxonomies_get( &self, name: &str, ) -> ProjectLocationTaxonomyGetCall<'a, C>

Create a builder to help you perform the following task:

Gets a taxonomy.

§Arguments
  • name - Required. Resource name of the taxonomy to get.
Source

pub fn locations_taxonomies_get_iam_policy( &self, request: GetIamPolicyRequest, resource: &str, ) -> ProjectLocationTaxonomyGetIamPolicyCall<'a, C>

Create a builder to help you perform the following task:

Gets the IAM policy for a policy tag or a taxonomy.

§Arguments
  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
Source

pub fn locations_taxonomies_import( &self, request: GoogleCloudDatacatalogV1ImportTaxonomiesRequest, parent: &str, ) -> ProjectLocationTaxonomyImportCall<'a, C>

Create a builder to help you perform the following task:

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.

§Arguments
  • request - No description provided.
  • parent - Required. Resource name of project that the imported taxonomies will belong to.
Source

pub fn locations_taxonomies_list( &self, parent: &str, ) -> ProjectLocationTaxonomyListCall<'a, C>

Create a builder to help you perform the following task:

Lists all taxonomies in a project in a particular location that you have a permission to view.

§Arguments
  • parent - Required. Resource name of the project to list the taxonomies of.
Source

pub fn locations_taxonomies_patch( &self, request: GoogleCloudDatacatalogV1Taxonomy, name: &str, ) -> ProjectLocationTaxonomyPatchCall<'a, C>

Create a builder to help you perform the following task:

Updates a taxonomy, including its display name, description, and activated policy types.

§Arguments
  • request - No description provided.
  • name - Identifier. Resource name of this taxonomy in URL format. Note: Policy tag manager generates unique taxonomy IDs.
Source

pub fn locations_taxonomies_replace( &self, request: GoogleCloudDatacatalogV1ReplaceTaxonomyRequest, name: &str, ) -> ProjectLocationTaxonomyReplaceCall<'a, C>

Create a builder to help you perform the following task:

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.

§Arguments
  • request - No description provided.
  • name - Required. Resource name of the taxonomy to update.
Source

pub fn locations_taxonomies_set_iam_policy( &self, request: SetIamPolicyRequest, resource: &str, ) -> ProjectLocationTaxonomySetIamPolicyCall<'a, C>

Create a builder to help you perform the following task:

Sets the IAM policy for a policy tag or a taxonomy.

§Arguments
  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.
Source

pub fn locations_taxonomies_test_iam_permissions( &self, request: TestIamPermissionsRequest, resource: &str, ) -> ProjectLocationTaxonomyTestIamPermissionCall<'a, C>

Create a builder to help you perform the following task:

Returns your permissions on a specified policy tag or taxonomy.

§Arguments
  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.
Source

pub fn locations_retrieve_effective_config( &self, name: &str, ) -> ProjectLocationRetrieveEffectiveConfigCall<'a, C>

Create a builder to help you perform the following task:

Retrieves the effective configuration related to the migration from Data Catalog to Dataplex Universal Catalog for a specific organization or project. If there is no specific configuration set for the resource, the setting is checked hierarchicahlly through the ancestors of the resource, starting from the resource itself.

§Arguments
  • name - Required. The resource whose effective config is being retrieved.
Source

pub fn locations_set_config( &self, request: GoogleCloudDatacatalogV1SetConfigRequest, name: &str, ) -> ProjectLocationSetConfigCall<'a, C>

Create a builder to help you perform the following task:

Sets the configuration related to the migration to Dataplex Universal Catalog for an organization or project.

§Arguments
  • request - No description provided.
  • name - Required. The organization or project whose config is being specified.

Trait Implementations§

Source§

impl<'a, C> MethodsBuilder for ProjectMethods<'a, C>

Auto Trait Implementations§

§

impl<'a, C> Freeze for ProjectMethods<'a, C>

§

impl<'a, C> !RefUnwindSafe for ProjectMethods<'a, C>

§

impl<'a, C> Send for ProjectMethods<'a, C>
where C: Sync,

§

impl<'a, C> Sync for ProjectMethods<'a, C>
where C: Sync,

§

impl<'a, C> Unpin for ProjectMethods<'a, C>

§

impl<'a, C> !UnwindSafe for ProjectMethods<'a, C>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more