pub struct AccountMethods<'a, S>
where S: 'a,
{ /* private fields */ }
Expand description

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

§Example

Instantiate a resource builder

extern crate hyper;
extern crate hyper_rustls;
extern crate google_tagmanager1 as tagmanager1;
 
use std::default::Default;
use tagmanager1::{TagManager, oauth2, hyper, hyper_rustls, chrono, FieldMask};
 
let secret: oauth2::ApplicationSecret = Default::default();
let auth = oauth2::InstalledFlowAuthenticator::builder(
        secret,
        oauth2::InstalledFlowReturnMethod::HTTPRedirect,
    ).build().await.unwrap();
let mut hub = TagManager::new(hyper::Client::builder().build(hyper_rustls::HttpsConnectorBuilder::new().with_native_roots().https_or_http().enable_http1().build()), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `containers_create(...)`, `containers_delete(...)`, `containers_environments_create(...)`, `containers_environments_delete(...)`, `containers_environments_get(...)`, `containers_environments_list(...)`, `containers_environments_update(...)`, `containers_folders_create(...)`, `containers_folders_delete(...)`, `containers_folders_entities_list(...)`, `containers_folders_get(...)`, `containers_folders_list(...)`, `containers_folders_update(...)`, `containers_get(...)`, `containers_list(...)`, `containers_move_folders_update(...)`, `containers_reauthorize_environments_update(...)`, `containers_tags_create(...)`, `containers_tags_delete(...)`, `containers_tags_get(...)`, `containers_tags_list(...)`, `containers_tags_update(...)`, `containers_triggers_create(...)`, `containers_triggers_delete(...)`, `containers_triggers_get(...)`, `containers_triggers_list(...)`, `containers_triggers_update(...)`, `containers_update(...)`, `containers_variables_create(...)`, `containers_variables_delete(...)`, `containers_variables_get(...)`, `containers_variables_list(...)`, `containers_variables_update(...)`, `containers_versions_create(...)`, `containers_versions_delete(...)`, `containers_versions_get(...)`, `containers_versions_list(...)`, `containers_versions_publish(...)`, `containers_versions_restore(...)`, `containers_versions_undelete(...)`, `containers_versions_update(...)`, `get(...)`, `list(...)`, `permissions_create(...)`, `permissions_delete(...)`, `permissions_get(...)`, `permissions_list(...)`, `permissions_update(...)` and `update(...)`
// to build up your call.
let rb = hub.accounts();

Implementations§

source§

impl<'a, S> AccountMethods<'a, S>

source

pub fn containers_environments_create( &self, request: Environment, account_id: &str, container_id: &str ) -> AccountContainerEnvironmentCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a GTM Environment.

§Arguments
  • request - No description provided.
  • accountId - The GTM Account ID.
  • containerId - The GTM Container ID.
source

pub fn containers_environments_delete( &self, account_id: &str, container_id: &str, environment_id: &str ) -> AccountContainerEnvironmentDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes a GTM Environment.

§Arguments
  • accountId - The GTM Account ID.
  • containerId - The GTM Container ID.
  • environmentId - The GTM Environment ID.
source

pub fn containers_environments_get( &self, account_id: &str, container_id: &str, environment_id: &str ) -> AccountContainerEnvironmentGetCall<'a, S>

Create a builder to help you perform the following task:

Gets a GTM Environment.

§Arguments
  • accountId - The GTM Account ID.
  • containerId - The GTM Container ID.
  • environmentId - The GTM Environment ID.
source

pub fn containers_environments_list( &self, account_id: &str, container_id: &str ) -> AccountContainerEnvironmentListCall<'a, S>

Create a builder to help you perform the following task:

Lists all GTM Environments of a GTM Container.

§Arguments
  • accountId - The GTM Account ID.
  • containerId - The GTM Container ID.
source

pub fn containers_environments_update( &self, request: Environment, account_id: &str, container_id: &str, environment_id: &str ) -> AccountContainerEnvironmentUpdateCall<'a, S>

Create a builder to help you perform the following task:

Updates a GTM Environment.

§Arguments
  • request - No description provided.
  • accountId - The GTM Account ID.
  • containerId - The GTM Container ID.
  • environmentId - The GTM Environment ID.
source

pub fn containers_folders_entities_list( &self, account_id: &str, container_id: &str, folder_id: &str ) -> AccountContainerFolderEntityListCall<'a, S>

Create a builder to help you perform the following task:

List all entities in a GTM Folder.

§Arguments
  • accountId - The GTM Account ID.
  • containerId - The GTM Container ID.
  • folderId - The GTM Folder ID.
source

pub fn containers_folders_create( &self, request: Folder, account_id: &str, container_id: &str ) -> AccountContainerFolderCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a GTM Folder.

§Arguments
  • request - No description provided.
  • accountId - The GTM Account ID.
  • containerId - The GTM Container ID.
source

pub fn containers_folders_delete( &self, account_id: &str, container_id: &str, folder_id: &str ) -> AccountContainerFolderDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes a GTM Folder.

§Arguments
  • accountId - The GTM Account ID.
  • containerId - The GTM Container ID.
  • folderId - The GTM Folder ID.
source

pub fn containers_folders_get( &self, account_id: &str, container_id: &str, folder_id: &str ) -> AccountContainerFolderGetCall<'a, S>

Create a builder to help you perform the following task:

Gets a GTM Folder.

§Arguments
  • accountId - The GTM Account ID.
  • containerId - The GTM Container ID.
  • folderId - The GTM Folder ID.
source

pub fn containers_folders_list( &self, account_id: &str, container_id: &str ) -> AccountContainerFolderListCall<'a, S>

Create a builder to help you perform the following task:

Lists all GTM Folders of a Container.

§Arguments
  • accountId - The GTM Account ID.
  • containerId - The GTM Container ID.
source

pub fn containers_folders_update( &self, request: Folder, account_id: &str, container_id: &str, folder_id: &str ) -> AccountContainerFolderUpdateCall<'a, S>

Create a builder to help you perform the following task:

Updates a GTM Folder.

§Arguments
  • request - No description provided.
  • accountId - The GTM Account ID.
  • containerId - The GTM Container ID.
  • folderId - The GTM Folder ID.
source

pub fn containers_move_folders_update( &self, request: Folder, account_id: &str, container_id: &str, folder_id: &str ) -> AccountContainerMoveFolderUpdateCall<'a, S>

Create a builder to help you perform the following task:

Moves entities to a GTM Folder.

§Arguments
  • request - No description provided.
  • accountId - The GTM Account ID.
  • containerId - The GTM Container ID.
  • folderId - The GTM Folder ID.
source

pub fn containers_reauthorize_environments_update( &self, request: Environment, account_id: &str, container_id: &str, environment_id: &str ) -> AccountContainerReauthorizeEnvironmentUpdateCall<'a, S>

Create a builder to help you perform the following task:

Re-generates the authorization code for a GTM Environment.

§Arguments
  • request - No description provided.
  • accountId - The GTM Account ID.
  • containerId - The GTM Container ID.
  • environmentId - The GTM Environment ID.
source

pub fn containers_tags_create( &self, request: Tag, account_id: &str, container_id: &str ) -> AccountContainerTagCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a GTM Tag.

§Arguments
  • request - No description provided.
  • accountId - The GTM Account ID.
  • containerId - The GTM Container ID.
source

pub fn containers_tags_delete( &self, account_id: &str, container_id: &str, tag_id: &str ) -> AccountContainerTagDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes a GTM Tag.

§Arguments
  • accountId - The GTM Account ID.
  • containerId - The GTM Container ID.
  • tagId - The GTM Tag ID.
source

pub fn containers_tags_get( &self, account_id: &str, container_id: &str, tag_id: &str ) -> AccountContainerTagGetCall<'a, S>

Create a builder to help you perform the following task:

Gets a GTM Tag.

§Arguments
  • accountId - The GTM Account ID.
  • containerId - The GTM Container ID.
  • tagId - The GTM Tag ID.
source

pub fn containers_tags_list( &self, account_id: &str, container_id: &str ) -> AccountContainerTagListCall<'a, S>

Create a builder to help you perform the following task:

Lists all GTM Tags of a Container.

§Arguments
  • accountId - The GTM Account ID.
  • containerId - The GTM Container ID.
source

pub fn containers_tags_update( &self, request: Tag, account_id: &str, container_id: &str, tag_id: &str ) -> AccountContainerTagUpdateCall<'a, S>

Create a builder to help you perform the following task:

Updates a GTM Tag.

§Arguments
  • request - No description provided.
  • accountId - The GTM Account ID.
  • containerId - The GTM Container ID.
  • tagId - The GTM Tag ID.
source

pub fn containers_triggers_create( &self, request: Trigger, account_id: &str, container_id: &str ) -> AccountContainerTriggerCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a GTM Trigger.

§Arguments
  • request - No description provided.
  • accountId - The GTM Account ID.
  • containerId - The GTM Container ID.
source

pub fn containers_triggers_delete( &self, account_id: &str, container_id: &str, trigger_id: &str ) -> AccountContainerTriggerDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes a GTM Trigger.

§Arguments
  • accountId - The GTM Account ID.
  • containerId - The GTM Container ID.
  • triggerId - The GTM Trigger ID.
source

pub fn containers_triggers_get( &self, account_id: &str, container_id: &str, trigger_id: &str ) -> AccountContainerTriggerGetCall<'a, S>

Create a builder to help you perform the following task:

Gets a GTM Trigger.

§Arguments
  • accountId - The GTM Account ID.
  • containerId - The GTM Container ID.
  • triggerId - The GTM Trigger ID.
source

pub fn containers_triggers_list( &self, account_id: &str, container_id: &str ) -> AccountContainerTriggerListCall<'a, S>

Create a builder to help you perform the following task:

Lists all GTM Triggers of a Container.

§Arguments
  • accountId - The GTM Account ID.
  • containerId - The GTM Container ID.
source

pub fn containers_triggers_update( &self, request: Trigger, account_id: &str, container_id: &str, trigger_id: &str ) -> AccountContainerTriggerUpdateCall<'a, S>

Create a builder to help you perform the following task:

Updates a GTM Trigger.

§Arguments
  • request - No description provided.
  • accountId - The GTM Account ID.
  • containerId - The GTM Container ID.
  • triggerId - The GTM Trigger ID.
source

pub fn containers_variables_create( &self, request: Variable, account_id: &str, container_id: &str ) -> AccountContainerVariableCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a GTM Variable.

§Arguments
  • request - No description provided.
  • accountId - The GTM Account ID.
  • containerId - The GTM Container ID.
source

pub fn containers_variables_delete( &self, account_id: &str, container_id: &str, variable_id: &str ) -> AccountContainerVariableDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes a GTM Variable.

§Arguments
  • accountId - The GTM Account ID.
  • containerId - The GTM Container ID.
  • variableId - The GTM Variable ID.
source

pub fn containers_variables_get( &self, account_id: &str, container_id: &str, variable_id: &str ) -> AccountContainerVariableGetCall<'a, S>

Create a builder to help you perform the following task:

Gets a GTM Variable.

§Arguments
  • accountId - The GTM Account ID.
  • containerId - The GTM Container ID.
  • variableId - The GTM Variable ID.
source

pub fn containers_variables_list( &self, account_id: &str, container_id: &str ) -> AccountContainerVariableListCall<'a, S>

Create a builder to help you perform the following task:

Lists all GTM Variables of a Container.

§Arguments
  • accountId - The GTM Account ID.
  • containerId - The GTM Container ID.
source

pub fn containers_variables_update( &self, request: Variable, account_id: &str, container_id: &str, variable_id: &str ) -> AccountContainerVariableUpdateCall<'a, S>

Create a builder to help you perform the following task:

Updates a GTM Variable.

§Arguments
  • request - No description provided.
  • accountId - The GTM Account ID.
  • containerId - The GTM Container ID.
  • variableId - The GTM Variable ID.
source

pub fn containers_versions_create( &self, request: CreateContainerVersionRequestVersionOptions, account_id: &str, container_id: &str ) -> AccountContainerVersionCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a Container Version.

§Arguments
  • request - No description provided.
  • accountId - The GTM Account ID.
  • containerId - The GTM Container ID.
source

pub fn containers_versions_delete( &self, account_id: &str, container_id: &str, container_version_id: &str ) -> AccountContainerVersionDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes a Container Version.

§Arguments
  • accountId - The GTM Account ID.
  • containerId - The GTM Container ID.
  • containerVersionId - The GTM Container Version ID.
source

pub fn containers_versions_get( &self, account_id: &str, container_id: &str, container_version_id: &str ) -> AccountContainerVersionGetCall<'a, S>

Create a builder to help you perform the following task:

Gets a Container Version.

§Arguments
  • accountId - The GTM Account ID.
  • containerId - The GTM Container ID.
  • containerVersionId - The GTM Container Version ID. Specify published to retrieve the currently published version.
source

pub fn containers_versions_list( &self, account_id: &str, container_id: &str ) -> AccountContainerVersionListCall<'a, S>

Create a builder to help you perform the following task:

Lists all Container Versions of a GTM Container.

§Arguments
  • accountId - The GTM Account ID.
  • containerId - The GTM Container ID.
source

pub fn containers_versions_publish( &self, account_id: &str, container_id: &str, container_version_id: &str ) -> AccountContainerVersionPublishCall<'a, S>

Create a builder to help you perform the following task:

Publishes a Container Version.

§Arguments
  • accountId - The GTM Account ID.
  • containerId - The GTM Container ID.
  • containerVersionId - The GTM Container Version ID.
source

pub fn containers_versions_restore( &self, account_id: &str, container_id: &str, container_version_id: &str ) -> AccountContainerVersionRestoreCall<'a, S>

Create a builder to help you perform the following task:

Restores a Container Version. This will overwrite the container’s current configuration (including its variables, triggers and tags). The operation will not have any effect on the version that is being served (i.e. the published version).

§Arguments
  • accountId - The GTM Account ID.
  • containerId - The GTM Container ID.
  • containerVersionId - The GTM Container Version ID.
source

pub fn containers_versions_undelete( &self, account_id: &str, container_id: &str, container_version_id: &str ) -> AccountContainerVersionUndeleteCall<'a, S>

Create a builder to help you perform the following task:

Undeletes a Container Version.

§Arguments
  • accountId - The GTM Account ID.
  • containerId - The GTM Container ID.
  • containerVersionId - The GTM Container Version ID.
source

pub fn containers_versions_update( &self, request: ContainerVersion, account_id: &str, container_id: &str, container_version_id: &str ) -> AccountContainerVersionUpdateCall<'a, S>

Create a builder to help you perform the following task:

Updates a Container Version.

§Arguments
  • request - No description provided.
  • accountId - The GTM Account ID.
  • containerId - The GTM Container ID.
  • containerVersionId - The GTM Container Version ID.
source

pub fn containers_create( &self, request: Container, account_id: &str ) -> AccountContainerCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a Container.

§Arguments
  • request - No description provided.
  • accountId - The GTM Account ID.
source

pub fn containers_delete( &self, account_id: &str, container_id: &str ) -> AccountContainerDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes a Container.

§Arguments
  • accountId - The GTM Account ID.
  • containerId - The GTM Container ID.
source

pub fn containers_get( &self, account_id: &str, container_id: &str ) -> AccountContainerGetCall<'a, S>

Create a builder to help you perform the following task:

Gets a Container.

§Arguments
  • accountId - The GTM Account ID.
  • containerId - The GTM Container ID.
source

pub fn containers_list( &self, account_id: &str ) -> AccountContainerListCall<'a, S>

Create a builder to help you perform the following task:

Lists all Containers that belongs to a GTM Account.

§Arguments
  • accountId - The GTM Account ID.
source

pub fn containers_update( &self, request: Container, account_id: &str, container_id: &str ) -> AccountContainerUpdateCall<'a, S>

Create a builder to help you perform the following task:

Updates a Container.

§Arguments
  • request - No description provided.
  • accountId - The GTM Account ID.
  • containerId - The GTM Container ID.
source

pub fn permissions_create( &self, request: UserAccess, account_id: &str ) -> AccountPermissionCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a user’s Account & Container Permissions.

§Arguments
  • request - No description provided.
  • accountId - The GTM Account ID.
source

pub fn permissions_delete( &self, account_id: &str, permission_id: &str ) -> AccountPermissionDeleteCall<'a, S>

Create a builder to help you perform the following task:

Removes a user from the account, revoking access to it and all of its containers.

§Arguments
  • accountId - The GTM Account ID.
  • permissionId - The GTM User ID.
source

pub fn permissions_get( &self, account_id: &str, permission_id: &str ) -> AccountPermissionGetCall<'a, S>

Create a builder to help you perform the following task:

Gets a user’s Account & Container Permissions.

§Arguments
  • accountId - The GTM Account ID.
  • permissionId - The GTM User ID.
source

pub fn permissions_list( &self, account_id: &str ) -> AccountPermissionListCall<'a, S>

Create a builder to help you perform the following task:

List all users that have access to the account along with Account and Container Permissions granted to each of them.

§Arguments
  • accountId - The GTM Account ID.
source

pub fn permissions_update( &self, request: UserAccess, account_id: &str, permission_id: &str ) -> AccountPermissionUpdateCall<'a, S>

Create a builder to help you perform the following task:

Updates a user’s Account & Container Permissions.

§Arguments
  • request - No description provided.
  • accountId - The GTM Account ID.
  • permissionId - The GTM User ID.
source

pub fn get(&self, account_id: &str) -> AccountGetCall<'a, S>

Create a builder to help you perform the following task:

Gets a GTM Account.

§Arguments
  • accountId - The GTM Account ID.
source

pub fn list(&self) -> AccountListCall<'a, S>

Create a builder to help you perform the following task:

Lists all GTM Accounts that a user has access to.

source

pub fn update( &self, request: Account, account_id: &str ) -> AccountUpdateCall<'a, S>

Create a builder to help you perform the following task:

Updates a GTM Account.

§Arguments
  • request - No description provided.
  • accountId - The GTM Account ID.

Trait Implementations§

source§

impl<'a, S> MethodsBuilder for AccountMethods<'a, S>

Auto Trait Implementations§

§

impl<'a, S> !RefUnwindSafe for AccountMethods<'a, S>

§

impl<'a, S> Send for AccountMethods<'a, S>
where S: Sync,

§

impl<'a, S> Sync for AccountMethods<'a, S>
where S: Sync,

§

impl<'a, S> Unpin for AccountMethods<'a, S>

§

impl<'a, S> !UnwindSafe for AccountMethods<'a, S>

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>,

§

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>,

§

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