# Tag Manager API . accounts . containers . folders

## Instance Methods

Returns the entities Resource.

Creates a GTM Folder.

Deletes a GTM Folder.

Gets a GTM Folder.

Lists all GTM Folders of a Container.

Updates a GTM Folder.

### Method Details

`create(accountId, containerId, body=None, x__xgafv=None)`

    Creates a GTM Folder.

    Args:
      accountId: string, The GTM Account ID. (required)
      containerId: string, The GTM Container ID. (required)
      body: object, The request body.
        The object takes the form of:

    { # Represents a Google Tag Manager Folder.
      "accountId": "A String", # GTM Account ID.
      "name": "A String", # Folder display name.
          # @mutable tagmanager.accounts.containers.folders.create
          # @mutable tagmanager.accounts.containers.folders.update
      "containerId": "A String", # GTM Container ID.
      "folderId": "A String", # The Folder ID uniquely identifies the GTM Folder.
      "fingerprint": "A String", # The fingerprint of the GTM Folder as computed at storage time.
          # This value is recomputed whenever the folder is modified.
    }

      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # Represents a Google Tag Manager Folder.
        "accountId": "A String", # GTM Account ID.
        "name": "A String", # Folder display name.
            # @mutable tagmanager.accounts.containers.folders.create
            # @mutable tagmanager.accounts.containers.folders.update
        "containerId": "A String", # GTM Container ID.
        "folderId": "A String", # The Folder ID uniquely identifies the GTM Folder.
        "fingerprint": "A String", # The fingerprint of the GTM Folder as computed at storage time.
            # This value is recomputed whenever the folder is modified.
      }

`delete(accountId, containerId, folderId, x__xgafv=None)`

    Deletes a GTM Folder.

    Args:
      accountId: string, The GTM Account ID. (required)
      containerId: string, The GTM Container ID. (required)
      folderId: string, The GTM Folder ID. (required)
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

`get(accountId, containerId, folderId, x__xgafv=None)`

    Gets a GTM Folder.

    Args:
      accountId: string, The GTM Account ID. (required)
      containerId: string, The GTM Container ID. (required)
      folderId: string, The GTM Folder ID. (required)
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # Represents a Google Tag Manager Folder.
        "accountId": "A String", # GTM Account ID.
        "name": "A String", # Folder display name.
            # @mutable tagmanager.accounts.containers.folders.create
            # @mutable tagmanager.accounts.containers.folders.update
        "containerId": "A String", # GTM Container ID.
        "folderId": "A String", # The Folder ID uniquely identifies the GTM Folder.
        "fingerprint": "A String", # The fingerprint of the GTM Folder as computed at storage time.
            # This value is recomputed whenever the folder is modified.
      }

`list(accountId, containerId, x__xgafv=None)`

    Lists all GTM Folders of a Container.

    Args:
      accountId: string, The GTM Account ID. (required)
      containerId: string, The GTM Container ID. (required)
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # List Folders Response.
        "folders": [ # All GTM Folders of a GTM Container.
          { # Represents a Google Tag Manager Folder.
            "accountId": "A String", # GTM Account ID.
            "name": "A String", # Folder display name.
                # @mutable tagmanager.accounts.containers.folders.create
                # @mutable tagmanager.accounts.containers.folders.update
            "containerId": "A String", # GTM Container ID.
            "folderId": "A String", # The Folder ID uniquely identifies the GTM Folder.
            "fingerprint": "A String", # The fingerprint of the GTM Folder as computed at storage time.
                # This value is recomputed whenever the folder is modified.
          },
        ],
      }

`update(accountId, containerId, folderId, body=None, fingerprint=None, x__xgafv=None)`

    Updates a GTM Folder.

    Args:
      accountId: string, The GTM Account ID. (required)
      containerId: string, The GTM Container ID. (required)
      folderId: string, The GTM Folder ID. (required)
      body: object, The request body.
        The object takes the form of:

    { # Represents a Google Tag Manager Folder.
      "accountId": "A String", # GTM Account ID.
      "name": "A String", # Folder display name.
          # @mutable tagmanager.accounts.containers.folders.create
          # @mutable tagmanager.accounts.containers.folders.update
      "containerId": "A String", # GTM Container ID.
      "folderId": "A String", # The Folder ID uniquely identifies the GTM Folder.
      "fingerprint": "A String", # The fingerprint of the GTM Folder as computed at storage time.
          # This value is recomputed whenever the folder is modified.
    }

      fingerprint: string, When provided, this fingerprint must match the fingerprint of the folder in
    storage.
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # Represents a Google Tag Manager Folder.
        "accountId": "A String", # GTM Account ID.
        "name": "A String", # Folder display name.
            # @mutable tagmanager.accounts.containers.folders.create
            # @mutable tagmanager.accounts.containers.folders.update
        "containerId": "A String", # GTM Container ID.
        "folderId": "A String", # The Folder ID uniquely identifies the GTM Folder.
        "fingerprint": "A String", # The fingerprint of the GTM Folder as computed at storage time.
            # This value is recomputed whenever the folder is modified.
      }