[][src]Struct google_dlp2::OrganizationMethods

pub struct OrganizationMethods<'a, C, A> where
    C: 'a,
    A: 'a, 
{ /* fields omitted */ }

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 yup_oauth2 as oauth2;
extern crate google_dlp2 as dlp2;
 
use std::default::Default;
use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage};
use dlp2::DLP;
 
let secret: ApplicationSecret = Default::default();
let auth = Authenticator::new(&secret, DefaultAuthenticatorDelegate,
                              hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())),
                              <MemoryStorage as Default>::default(), None);
let mut hub = DLP::new(hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())), 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_deidentify_templates_create(...)`, `locations_deidentify_templates_delete(...)`, `locations_deidentify_templates_get(...)`, `locations_deidentify_templates_list(...)`, `locations_deidentify_templates_patch(...)`, `locations_inspect_templates_create(...)`, `locations_inspect_templates_delete(...)`, `locations_inspect_templates_get(...)`, `locations_inspect_templates_list(...)`, `locations_inspect_templates_patch(...)`, `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(...)`, `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

impl<'a, C, A> OrganizationMethods<'a, C, A>[src]

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

Create a builder to help you perform the following task:

Gets an InspectTemplate. See https://cloud.google.com/dlp/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.

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

Create a builder to help you perform the following task:

Deletes a stored infoType. See https://cloud.google.com/dlp/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.

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

Create a builder to help you perform the following task:

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

Arguments

  • parent - Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format:organizations/[ORGANIZATION-ID] - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID] - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]

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

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/dlp/docs/creating-stored-infotypes to learn more.

Arguments

  • request - No description provided.
  • parent - Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format:organizations/[ORGANIZATION-ID] - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID] - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]

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

Create a builder to help you perform the following task:

Gets a DeidentifyTemplate. See https://cloud.google.com/dlp/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.

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

Create a builder to help you perform the following task:

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

Arguments

  • request - No description provided.
  • parent - Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format:organizations/[ORGANIZATION-ID] - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID] - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]

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

Create a builder to help you perform the following task:

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

Arguments

  • parent - Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format:organizations/[ORGANIZATION-ID] - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID] - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]

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

Create a builder to help you perform the following task:

Deletes a stored infoType. See https://cloud.google.com/dlp/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.

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

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/dlp/docs/creating-stored-infotypes to learn more.

Arguments

  • request - No description provided.
  • parent - Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format:organizations/[ORGANIZATION-ID] - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID] - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]

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

Create a builder to help you perform the following task:

Deletes a DeidentifyTemplate. See https://cloud.google.com/dlp/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.

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

Create a builder to help you perform the following task:

Updates the InspectTemplate. See https://cloud.google.com/dlp/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.

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

Create a builder to help you perform the following task:

Updates the InspectTemplate. See https://cloud.google.com/dlp/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.

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

Create a builder to help you perform the following task:

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

Arguments

  • parent - Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format:organizations/[ORGANIZATION-ID] - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID] - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]

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

Create a builder to help you perform the following task:

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

Arguments

  • parent - Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format:organizations/[ORGANIZATION-ID] - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID] - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]

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

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/dlp/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.

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

Create a builder to help you perform the following task:

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

Arguments

  • request - No description provided.
  • parent - Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format:organizations/[ORGANIZATION-ID] - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID] - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]

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

Create a builder to help you perform the following task:

Gets an InspectTemplate. See https://cloud.google.com/dlp/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.

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

Create a builder to help you perform the following task:

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

Arguments

  • request - No description provided.
  • parent - Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format:organizations/[ORGANIZATION-ID] - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID] - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]

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

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/dlp/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.

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

Create a builder to help you perform the following task:

Deletes an InspectTemplate. See https://cloud.google.com/dlp/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.

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

Create a builder to help you perform the following task:

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

Arguments

  • parent - Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format:organizations/[ORGANIZATION-ID] - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID] - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]

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

Create a builder to help you perform the following task:

Gets a stored infoType. See https://cloud.google.com/dlp/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.

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

Create a builder to help you perform the following task:

Deletes a DeidentifyTemplate. See https://cloud.google.com/dlp/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.

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

Create a builder to help you perform the following task:

Updates the DeidentifyTemplate. See https://cloud.google.com/dlp/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.

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

Create a builder to help you perform the following task:

Gets a stored infoType. See https://cloud.google.com/dlp/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.

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

Create a builder to help you perform the following task:

Updates the DeidentifyTemplate. See https://cloud.google.com/dlp/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.

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

Create a builder to help you perform the following task:

Deletes an InspectTemplate. See https://cloud.google.com/dlp/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.

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

Create a builder to help you perform the following task:

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

Arguments

  • request - No description provided.
  • parent - Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format:organizations/[ORGANIZATION-ID] - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID] - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]

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

Create a builder to help you perform the following task:

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

Arguments

  • parent - Required. Parent resource name. - Format:projects/[PROJECT-ID] - Format:organizations/[ORGANIZATION-ID] - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID] - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]

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

Create a builder to help you perform the following task:

Gets a DeidentifyTemplate. See https://cloud.google.com/dlp/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.

Trait Implementations

impl<'a, C, A> MethodsBuilder for OrganizationMethods<'a, C, A>[src]

Auto Trait Implementations

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

impl<'a, C, A> !Send for OrganizationMethods<'a, C, A>

impl<'a, C, A> !Sync for OrganizationMethods<'a, C, A>

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

impl<'a, C, A> !UnwindSafe for OrganizationMethods<'a, C, A>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any