People API . contactGroups . members

Instance Methods

close()

Close httplib2 connections.

modify(resourceName, body=None, x__xgafv=None)

Modify the members of a contact group owned by the authenticated user. The only system contact groups that can have members added are `contactGroups/myContacts` and `contactGroups/starred`. Other system contact groups are deprecated and can only have contacts removed.

Method Details

close()
Close httplib2 connections.
modify(resourceName, body=None, x__xgafv=None)
Modify the members of a contact group owned by the authenticated user. The only system contact groups that can have members added are `contactGroups/myContacts` and `contactGroups/starred`. Other system contact groups are deprecated and can only have contacts removed.

Args:
  resourceName: string, Required. The resource name of the contact group to modify. (required)
  body: object, The request body.
    The object takes the form of:

{ # A request to modify an existing contact group's members. Contacts can be removed from any group but they can only be added to a user group or "myContacts" or "starred" system groups.
  "resourceNamesToAdd": [ # Optional. The resource names of the contact people to add in the form of `people/{person_id}`. The total number of resource names in `resource_names_to_add` and `resource_names_to_remove` must be less than or equal to 1000.
    "A String",
  ],
  "resourceNamesToRemove": [ # Optional. The resource names of the contact people to remove in the form of `people/{person_id}`. The total number of resource names in `resource_names_to_add` and `resource_names_to_remove` must be less than or equal to 1000.
    "A String",
  ],
}

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

Returns:
  An object of the form:

    { # The response to a modify contact group members request.
  "canNotRemoveLastContactGroupResourceNames": [ # The contact people resource names that cannot be removed from their last contact group.
    "A String",
  ],
  "notFoundResourceNames": [ # The contact people resource names that were not found.
    "A String",
  ],
}