OrganizationMethods

Struct OrganizationMethods 

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

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

§Example

Instantiate a resource builder

extern crate hyper;
extern crate hyper_rustls;
extern crate google_dlp2 as dlp2;

use dlp2::{DLP, 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 = DLP::new(client, auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `deidentify_templates_create(...)`, `deidentify_templates_delete(...)`, `deidentify_templates_get(...)`, `deidentify_templates_list(...)`, `deidentify_templates_patch(...)`, `inspect_templates_create(...)`, `inspect_templates_delete(...)`, `inspect_templates_get(...)`, `inspect_templates_list(...)`, `inspect_templates_patch(...)`, `locations_column_data_profiles_get(...)`, `locations_column_data_profiles_list(...)`, `locations_connections_create(...)`, `locations_connections_delete(...)`, `locations_connections_get(...)`, `locations_connections_list(...)`, `locations_connections_patch(...)`, `locations_connections_search(...)`, `locations_deidentify_templates_create(...)`, `locations_deidentify_templates_delete(...)`, `locations_deidentify_templates_get(...)`, `locations_deidentify_templates_list(...)`, `locations_deidentify_templates_patch(...)`, `locations_discovery_configs_create(...)`, `locations_discovery_configs_delete(...)`, `locations_discovery_configs_get(...)`, `locations_discovery_configs_list(...)`, `locations_discovery_configs_patch(...)`, `locations_dlp_jobs_list(...)`, `locations_file_store_data_profiles_delete(...)`, `locations_file_store_data_profiles_get(...)`, `locations_file_store_data_profiles_list(...)`, `locations_info_types_list(...)`, `locations_inspect_templates_create(...)`, `locations_inspect_templates_delete(...)`, `locations_inspect_templates_get(...)`, `locations_inspect_templates_list(...)`, `locations_inspect_templates_patch(...)`, `locations_job_triggers_create(...)`, `locations_job_triggers_delete(...)`, `locations_job_triggers_get(...)`, `locations_job_triggers_list(...)`, `locations_job_triggers_patch(...)`, `locations_project_data_profiles_get(...)`, `locations_project_data_profiles_list(...)`, `locations_stored_info_types_create(...)`, `locations_stored_info_types_delete(...)`, `locations_stored_info_types_get(...)`, `locations_stored_info_types_list(...)`, `locations_stored_info_types_patch(...)`, `locations_table_data_profiles_delete(...)`, `locations_table_data_profiles_get(...)`, `locations_table_data_profiles_list(...)`, `stored_info_types_create(...)`, `stored_info_types_delete(...)`, `stored_info_types_get(...)`, `stored_info_types_list(...)` and `stored_info_types_patch(...)`
// to build up your call.
let rb = hub.organizations();

Implementations§

Source§

impl<'a, C> OrganizationMethods<'a, C>

Source

pub fn deidentify_templates_create( &self, request: GooglePrivacyDlpV2CreateDeidentifyTemplateRequest, parent: &str, ) -> OrganizationDeidentifyTemplateCreateCall<'a, C>

Create a builder to help you perform the following task:

Creates a DeidentifyTemplate for reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.

§Arguments
  • request - No description provided.
  • parent - Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location: + Projects scope, location specified: projects/{project_id}/locations/{location_id} + Projects scope, no location specified (defaults to global): projects/{project_id} + Organizations scope, location specified: organizations/{org_id}/locations/{location_id} + Organizations scope, no location specified (defaults to global): organizations/{org_id} The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data: parent=projects/example-project/locations/europe-west3
Source

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

Create a builder to help you perform the following task:

Deletes a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.

§Arguments
  • name - Required. Resource name of the organization and deidentify template to be deleted, for example organizations/433245324/deidentifyTemplates/432452342 or projects/project-id/deidentifyTemplates/432452342.
Source

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

Create a builder to help you perform the following task:

Gets a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.

§Arguments
  • name - Required. Resource name of the organization and deidentify template to be read, for example organizations/433245324/deidentifyTemplates/432452342 or projects/project-id/deidentifyTemplates/432452342.
Source

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

Create a builder to help you perform the following task:

Lists DeidentifyTemplates. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.

§Arguments
  • parent - Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location: + Projects scope, location specified: projects/{project_id}/locations/{location_id} + Projects scope, no location specified (defaults to global): projects/{project_id} + Organizations scope, location specified: organizations/{org_id}/locations/{location_id} + Organizations scope, no location specified (defaults to global): organizations/{org_id} The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data: parent=projects/example-project/locations/europe-west3
Source

pub fn deidentify_templates_patch( &self, request: GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest, name: &str, ) -> OrganizationDeidentifyTemplatePatchCall<'a, C>

Create a builder to help you perform the following task:

Updates the DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.

§Arguments
  • request - No description provided.
  • name - Required. Resource name of organization and deidentify template to be updated, for example organizations/433245324/deidentifyTemplates/432452342 or projects/project-id/deidentifyTemplates/432452342.
Source

pub fn inspect_templates_create( &self, request: GooglePrivacyDlpV2CreateInspectTemplateRequest, parent: &str, ) -> OrganizationInspectTemplateCreateCall<'a, C>

Create a builder to help you perform the following task:

Creates an InspectTemplate for reusing frequently used configuration for inspecting content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.

§Arguments
  • request - No description provided.
  • parent - Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location: + Projects scope, location specified: projects/{project_id}/locations/{location_id} + Projects scope, no location specified (defaults to global): projects/{project_id} + Organizations scope, location specified: organizations/{org_id}/locations/{location_id} + Organizations scope, no location specified (defaults to global): organizations/{org_id} The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data: parent=projects/example-project/locations/europe-west3
Source

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

Create a builder to help you perform the following task:

Deletes an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.

§Arguments
  • name - Required. Resource name of the organization and inspectTemplate to be deleted, for example organizations/433245324/inspectTemplates/432452342 or projects/project-id/inspectTemplates/432452342.
Source

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

Create a builder to help you perform the following task:

Gets an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.

§Arguments
  • name - Required. Resource name of the organization and inspectTemplate to be read, for example organizations/433245324/inspectTemplates/432452342 or projects/project-id/inspectTemplates/432452342.
Source

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

Create a builder to help you perform the following task:

Lists InspectTemplates. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.

§Arguments
  • parent - Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location: + Projects scope, location specified: projects/{project_id}/locations/{location_id} + Projects scope, no location specified (defaults to global): projects/{project_id} + Organizations scope, location specified: organizations/{org_id}/locations/{location_id} + Organizations scope, no location specified (defaults to global): organizations/{org_id} The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data: parent=projects/example-project/locations/europe-west3
Source

pub fn inspect_templates_patch( &self, request: GooglePrivacyDlpV2UpdateInspectTemplateRequest, name: &str, ) -> OrganizationInspectTemplatePatchCall<'a, C>

Create a builder to help you perform the following task:

Updates the InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.

§Arguments
  • request - No description provided.
  • name - Required. Resource name of organization and inspectTemplate to be updated, for example organizations/433245324/inspectTemplates/432452342 or projects/project-id/inspectTemplates/432452342.
Source

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

Create a builder to help you perform the following task:

Gets a column data profile.

§Arguments
  • name - Required. Resource name, for example organizations/12345/locations/us/columnDataProfiles/53234423.
Source

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

Create a builder to help you perform the following task:

Lists column data profiles for an organization.

§Arguments
  • parent - Required. Resource name of the organization or project, for example organizations/433245324/locations/europe or projects/project-id/locations/asia.
Source

pub fn locations_connections_create( &self, request: GooglePrivacyDlpV2CreateConnectionRequest, parent: &str, ) -> OrganizationLocationConnectionCreateCall<'a, C>

Create a builder to help you perform the following task:

Create a Connection to an external data source.

§Arguments
  • request - No description provided.
  • parent - Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization): + Projects scope: projects/{project_id}/locations/{location_id} + Organizations scope: organizations/{org_id}/locations/{location_id}
Source

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

Create a builder to help you perform the following task:

Delete a Connection.

§Arguments
  • name - Required. Resource name of the Connection to be deleted, in the format: projects/{project}/locations/{location}/connections/{connection}.
Source

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

Create a builder to help you perform the following task:

Get a Connection by name.

§Arguments
  • name - Required. Resource name in the format: projects/{project}/locations/{location}/connections/{connection}.
Source

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

Create a builder to help you perform the following task:

Lists Connections in a parent. Use SearchConnections to see all connections within an organization.

§Arguments
  • parent - Required. Resource name of the organization or project, for example, organizations/433245324/locations/europe or projects/project-id/locations/asia.
Source

pub fn locations_connections_patch( &self, request: GooglePrivacyDlpV2UpdateConnectionRequest, name: &str, ) -> OrganizationLocationConnectionPatchCall<'a, C>

Create a builder to help you perform the following task:

Update a Connection.

§Arguments
  • request - No description provided.
  • name - Required. Resource name in the format: projects/{project}/locations/{location}/connections/{connection}.

Create a builder to help you perform the following task:

Searches for Connections in a parent.

§Arguments
  • parent - Required. Resource name of the organization or project with a wildcard location, for example, organizations/433245324/locations/- or projects/project-id/locations/-.
Source

pub fn locations_deidentify_templates_create( &self, request: GooglePrivacyDlpV2CreateDeidentifyTemplateRequest, parent: &str, ) -> OrganizationLocationDeidentifyTemplateCreateCall<'a, C>

Create a builder to help you perform the following task:

Creates a DeidentifyTemplate for reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.

§Arguments
  • request - No description provided.
  • parent - Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location: + Projects scope, location specified: projects/{project_id}/locations/{location_id} + Projects scope, no location specified (defaults to global): projects/{project_id} + Organizations scope, location specified: organizations/{org_id}/locations/{location_id} + Organizations scope, no location specified (defaults to global): organizations/{org_id} The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data: parent=projects/example-project/locations/europe-west3
Source

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

Create a builder to help you perform the following task:

Deletes a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.

§Arguments
  • name - Required. Resource name of the organization and deidentify template to be deleted, for example organizations/433245324/deidentifyTemplates/432452342 or projects/project-id/deidentifyTemplates/432452342.
Source

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

Create a builder to help you perform the following task:

Gets a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.

§Arguments
  • name - Required. Resource name of the organization and deidentify template to be read, for example organizations/433245324/deidentifyTemplates/432452342 or projects/project-id/deidentifyTemplates/432452342.
Source

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

Create a builder to help you perform the following task:

Lists DeidentifyTemplates. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.

§Arguments
  • parent - Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location: + Projects scope, location specified: projects/{project_id}/locations/{location_id} + Projects scope, no location specified (defaults to global): projects/{project_id} + Organizations scope, location specified: organizations/{org_id}/locations/{location_id} + Organizations scope, no location specified (defaults to global): organizations/{org_id} The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data: parent=projects/example-project/locations/europe-west3
Source

pub fn locations_deidentify_templates_patch( &self, request: GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest, name: &str, ) -> OrganizationLocationDeidentifyTemplatePatchCall<'a, C>

Create a builder to help you perform the following task:

Updates the DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.

§Arguments
  • request - No description provided.
  • name - Required. Resource name of organization and deidentify template to be updated, for example organizations/433245324/deidentifyTemplates/432452342 or projects/project-id/deidentifyTemplates/432452342.
Source

pub fn locations_discovery_configs_create( &self, request: GooglePrivacyDlpV2CreateDiscoveryConfigRequest, parent: &str, ) -> OrganizationLocationDiscoveryConfigCreateCall<'a, C>

Create a builder to help you perform the following task:

Creates a config for discovery to scan and profile storage.

§Arguments
  • request - No description provided.
  • parent - Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization): + Projects scope: projects/{project_id}/locations/{location_id} + Organizations scope: organizations/{org_id}/locations/{location_id} The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data: parent=projects/example-project/locations/europe-west3
Source

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

Create a builder to help you perform the following task:

Deletes a discovery configuration.

§Arguments
  • name - Required. Resource name of the project and the config, for example projects/dlp-test-project/discoveryConfigs/53234423.
Source

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

Create a builder to help you perform the following task:

Gets a discovery configuration.

§Arguments
  • name - Required. Resource name of the project and the configuration, for example projects/dlp-test-project/discoveryConfigs/53234423.
Source

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

Create a builder to help you perform the following task:

Lists discovery configurations.

§Arguments
  • parent - Required. Parent resource name. The format of this value is as follows: projects/{project_id}/locations/{location_id} The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data: parent=projects/example-project/locations/europe-west3
Source

pub fn locations_discovery_configs_patch( &self, request: GooglePrivacyDlpV2UpdateDiscoveryConfigRequest, name: &str, ) -> OrganizationLocationDiscoveryConfigPatchCall<'a, C>

Create a builder to help you perform the following task:

Updates a discovery configuration.

§Arguments
  • request - No description provided.
  • name - Required. Resource name of the project and the configuration, for example projects/dlp-test-project/discoveryConfigs/53234423.
Source

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

Create a builder to help you perform the following task:

Lists DlpJobs that match the specified filter in the request. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.

§Arguments
  • parent - Required. Parent resource name. The format of this value varies depending on whether you have specified a processing location: + Projects scope, location specified: projects/{project_id}/locations/{location_id} + Projects scope, no location specified (defaults to global): projects/{project_id} The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data: parent=projects/example-project/locations/europe-west3
Source

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

Create a builder to help you perform the following task:

Delete a FileStoreDataProfile. Will not prevent the profile from being regenerated if the resource is still included in a discovery configuration.

§Arguments
  • name - Required. Resource name of the file store data profile.
Source

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

Create a builder to help you perform the following task:

Gets a file store data profile.

§Arguments
  • name - Required. Resource name, for example organizations/12345/locations/us/fileStoreDataProfiles/53234423.
Source

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

Create a builder to help you perform the following task:

Lists file store data profiles for an organization.

§Arguments
  • parent - Required. Resource name of the organization or project, for example organizations/433245324/locations/europe or projects/project-id/locations/asia.
Source

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

Create a builder to help you perform the following task:

Returns a list of the sensitive information types that the DLP API supports. See https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference to learn more.

§Arguments
  • parent - The parent resource name. The format of this value is as follows: locations/{location_id}
Source

pub fn locations_inspect_templates_create( &self, request: GooglePrivacyDlpV2CreateInspectTemplateRequest, parent: &str, ) -> OrganizationLocationInspectTemplateCreateCall<'a, C>

Create a builder to help you perform the following task:

Creates an InspectTemplate for reusing frequently used configuration for inspecting content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.

§Arguments
  • request - No description provided.
  • parent - Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location: + Projects scope, location specified: projects/{project_id}/locations/{location_id} + Projects scope, no location specified (defaults to global): projects/{project_id} + Organizations scope, location specified: organizations/{org_id}/locations/{location_id} + Organizations scope, no location specified (defaults to global): organizations/{org_id} The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data: parent=projects/example-project/locations/europe-west3
Source

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

Create a builder to help you perform the following task:

Deletes an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.

§Arguments
  • name - Required. Resource name of the organization and inspectTemplate to be deleted, for example organizations/433245324/inspectTemplates/432452342 or projects/project-id/inspectTemplates/432452342.
Source

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

Create a builder to help you perform the following task:

Gets an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.

§Arguments
  • name - Required. Resource name of the organization and inspectTemplate to be read, for example organizations/433245324/inspectTemplates/432452342 or projects/project-id/inspectTemplates/432452342.
Source

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

Create a builder to help you perform the following task:

Lists InspectTemplates. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.

§Arguments
  • parent - Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location: + Projects scope, location specified: projects/{project_id}/locations/{location_id} + Projects scope, no location specified (defaults to global): projects/{project_id} + Organizations scope, location specified: organizations/{org_id}/locations/{location_id} + Organizations scope, no location specified (defaults to global): organizations/{org_id} The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data: parent=projects/example-project/locations/europe-west3
Source

pub fn locations_inspect_templates_patch( &self, request: GooglePrivacyDlpV2UpdateInspectTemplateRequest, name: &str, ) -> OrganizationLocationInspectTemplatePatchCall<'a, C>

Create a builder to help you perform the following task:

Updates the InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.

§Arguments
  • request - No description provided.
  • name - Required. Resource name of organization and inspectTemplate to be updated, for example organizations/433245324/inspectTemplates/432452342 or projects/project-id/inspectTemplates/432452342.
Source

pub fn locations_job_triggers_create( &self, request: GooglePrivacyDlpV2CreateJobTriggerRequest, parent: &str, ) -> OrganizationLocationJobTriggerCreateCall<'a, C>

Create a builder to help you perform the following task:

Creates a job trigger to run DLP actions such as scanning storage for sensitive information on a set schedule. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.

§Arguments
  • request - No description provided.
  • parent - Required. Parent resource name. The format of this value varies depending on whether you have specified a processing location: + Projects scope, location specified: projects/{project_id}/locations/{location_id} + Projects scope, no location specified (defaults to global): projects/{project_id} The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data: parent=projects/example-project/locations/europe-west3
Source

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

Create a builder to help you perform the following task:

Deletes a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.

§Arguments
  • name - Required. Resource name of the project and the triggeredJob, for example projects/dlp-test-project/jobTriggers/53234423.
Source

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

Create a builder to help you perform the following task:

Gets a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.

§Arguments
  • name - Required. Resource name of the project and the triggeredJob, for example projects/dlp-test-project/jobTriggers/53234423.
Source

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

Create a builder to help you perform the following task:

Lists job triggers. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.

§Arguments
  • parent - Required. Parent resource name. The format of this value varies depending on whether you have specified a processing location: + Projects scope, location specified: projects/{project_id}/locations/{location_id} + Projects scope, no location specified (defaults to global): projects/{project_id} The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data: parent=projects/example-project/locations/europe-west3
Source

pub fn locations_job_triggers_patch( &self, request: GooglePrivacyDlpV2UpdateJobTriggerRequest, name: &str, ) -> OrganizationLocationJobTriggerPatchCall<'a, C>

Create a builder to help you perform the following task:

Updates a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.

§Arguments
  • request - No description provided.
  • name - Required. Resource name of the project and the triggeredJob, for example projects/dlp-test-project/jobTriggers/53234423.
Source

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

Create a builder to help you perform the following task:

Gets a project data profile.

§Arguments
  • name - Required. Resource name, for example organizations/12345/locations/us/projectDataProfiles/53234423.
Source

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

Create a builder to help you perform the following task:

Lists project data profiles for an organization.

§Arguments
  • parent - Required. organizations/{org_id}/locations/{loc_id}
Source

pub fn locations_stored_info_types_create( &self, request: GooglePrivacyDlpV2CreateStoredInfoTypeRequest, parent: &str, ) -> OrganizationLocationStoredInfoTypeCreateCall<'a, C>

Create a builder to help you perform the following task:

Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.

§Arguments
  • request - No description provided.
  • parent - Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location: + Projects scope, location specified: projects/{project_id}/locations/{location_id} + Projects scope, no location specified (defaults to global): projects/{project_id} + Organizations scope, location specified: organizations/{org_id}/locations/{location_id} + Organizations scope, no location specified (defaults to global): organizations/{org_id} The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data: parent=projects/example-project/locations/europe-west3
Source

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

Create a builder to help you perform the following task:

Deletes a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.

§Arguments
  • name - Required. Resource name of the organization and storedInfoType to be deleted, for example organizations/433245324/storedInfoTypes/432452342 or projects/project-id/storedInfoTypes/432452342.
Source

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

Create a builder to help you perform the following task:

Gets a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.

§Arguments
  • name - Required. Resource name of the organization and storedInfoType to be read, for example organizations/433245324/storedInfoTypes/432452342 or projects/project-id/storedInfoTypes/432452342.
Source

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

Create a builder to help you perform the following task:

Lists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.

§Arguments
  • parent - Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location: + Projects scope, location specified: projects/{project_id}/locations/{location_id} + Projects scope, no location specified (defaults to global): projects/{project_id} The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data: parent=projects/example-project/locations/europe-west3
Source

pub fn locations_stored_info_types_patch( &self, request: GooglePrivacyDlpV2UpdateStoredInfoTypeRequest, name: &str, ) -> OrganizationLocationStoredInfoTypePatchCall<'a, C>

Create a builder to help you perform the following task:

Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.

§Arguments
  • request - No description provided.
  • name - Required. Resource name of organization and storedInfoType to be updated, for example organizations/433245324/storedInfoTypes/432452342 or projects/project-id/storedInfoTypes/432452342.
Source

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

Create a builder to help you perform the following task:

Delete a TableDataProfile. Will not prevent the profile from being regenerated if the table is still included in a discovery configuration.

§Arguments
  • name - Required. Resource name of the table data profile.
Source

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

Create a builder to help you perform the following task:

Gets a table data profile.

§Arguments
  • name - Required. Resource name, for example organizations/12345/locations/us/tableDataProfiles/53234423.
Source

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

Create a builder to help you perform the following task:

Lists table data profiles for an organization.

§Arguments
  • parent - Required. Resource name of the organization or project, for example organizations/433245324/locations/europe or projects/project-id/locations/asia.
Source

pub fn stored_info_types_create( &self, request: GooglePrivacyDlpV2CreateStoredInfoTypeRequest, parent: &str, ) -> OrganizationStoredInfoTypeCreateCall<'a, C>

Create a builder to help you perform the following task:

Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.

§Arguments
  • request - No description provided.
  • parent - Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location: + Projects scope, location specified: projects/{project_id}/locations/{location_id} + Projects scope, no location specified (defaults to global): projects/{project_id} + Organizations scope, location specified: organizations/{org_id}/locations/{location_id} + Organizations scope, no location specified (defaults to global): organizations/{org_id} The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data: parent=projects/example-project/locations/europe-west3
Source

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

Create a builder to help you perform the following task:

Deletes a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.

§Arguments
  • name - Required. Resource name of the organization and storedInfoType to be deleted, for example organizations/433245324/storedInfoTypes/432452342 or projects/project-id/storedInfoTypes/432452342.
Source

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

Create a builder to help you perform the following task:

Gets a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.

§Arguments
  • name - Required. Resource name of the organization and storedInfoType to be read, for example organizations/433245324/storedInfoTypes/432452342 or projects/project-id/storedInfoTypes/432452342.
Source

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

Create a builder to help you perform the following task:

Lists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.

§Arguments
  • parent - Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location: + Projects scope, location specified: projects/{project_id}/locations/{location_id} + Projects scope, no location specified (defaults to global): projects/{project_id} The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data: parent=projects/example-project/locations/europe-west3
Source

pub fn stored_info_types_patch( &self, request: GooglePrivacyDlpV2UpdateStoredInfoTypeRequest, name: &str, ) -> OrganizationStoredInfoTypePatchCall<'a, C>

Create a builder to help you perform the following task:

Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.

§Arguments
  • request - No description provided.
  • name - Required. Resource name of organization and storedInfoType to be updated, for example organizations/433245324/storedInfoTypes/432452342 or projects/project-id/storedInfoTypes/432452342.

Trait Implementations§

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

impl<'a, C> !UnwindSafe for OrganizationMethods<'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