Admin SDK . groups . aliases

Instance Methods

close()

Close httplib2 connections.

delete(groupKey, alias, x__xgafv=None)

Remove a alias for the group

insert(groupKey, body=None, x__xgafv=None)

Add a alias for the group

list(groupKey, x__xgafv=None)

List all aliases for a group

Method Details

close()
Close httplib2 connections.
delete(groupKey, alias, x__xgafv=None)
Remove a alias for the group

Args:
  groupKey: string, Email or immutable ID of the group (required)
  alias: string, The alias to be removed (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format
insert(groupKey, body=None, x__xgafv=None)
Add a alias for the group

Args:
  groupKey: string, Email or immutable ID of the group (required)
  body: object, The request body.
    The object takes the form of:

{ # JSON template for Alias object in Directory API.
    "primaryEmail": "A String",
    "alias": "A String",
    "id": "A String",
    "etag": "A String",
    "kind": "admin#directory#alias",
  }

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

Returns:
  An object of the form:

    { # JSON template for Alias object in Directory API.
      "primaryEmail": "A String",
      "alias": "A String",
      "id": "A String",
      "etag": "A String",
      "kind": "admin#directory#alias",
    }
list(groupKey, x__xgafv=None)
List all aliases for a group

Args:
  groupKey: string, Email or immutable ID of the group (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # JSON response template to list aliases in Directory API.
    "kind": "admin#directory#aliases",
    "aliases": [
      "",
    ],
    "etag": "A String",
  }