Admin SDK . users . photos

Instance Methods

close()

Close httplib2 connections.

delete(userKey, x__xgafv=None)

Remove photos for the user

get(userKey, x__xgafv=None)

Retrieve photo of a user

patch(userKey, body=None, x__xgafv=None)

Patch Photo via Apiary Patch Orchestration

update(userKey, body=None, x__xgafv=None)

Add a photo for the user

Method Details

close()
Close httplib2 connections.
delete(userKey, x__xgafv=None)
Remove photos for the user

Args:
  userKey: string, Email or immutable ID of the user (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format
get(userKey, x__xgafv=None)
Retrieve photo of a user

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

Returns:
  An object of the form:

    { # STEPLADDER: Generated unstable field number for field 'kind'. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'etag'. (See http://go/stepladder-help#fieldNumber)
    "kind": "admin#directory#user#photo", # Kind of resource this is.
    "photoData": "A String", # Base64 encoded photo data
    "primaryEmail": "A String", # Primary email of User (Read-only)
    "etag": "A String", # ETag of the resource.
    "height": 42, # Height in pixels of the photo
    "mimeType": "A String", # Mime Type of the photo
    "width": 42, # Width in pixels of the photo
    "id": "A String", # Unique identifier of User (Read-only)
  }
patch(userKey, body=None, x__xgafv=None)
Patch Photo via Apiary Patch Orchestration

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

{ # STEPLADDER: Generated unstable field number for field 'kind'. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'etag'. (See http://go/stepladder-help#fieldNumber)
  "kind": "admin#directory#user#photo", # Kind of resource this is.
  "photoData": "A String", # Base64 encoded photo data
  "primaryEmail": "A String", # Primary email of User (Read-only)
  "etag": "A String", # ETag of the resource.
  "height": 42, # Height in pixels of the photo
  "mimeType": "A String", # Mime Type of the photo
  "width": 42, # Width in pixels of the photo
  "id": "A String", # Unique identifier of User (Read-only)
}

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

Returns:
  An object of the form:

    { # STEPLADDER: Generated unstable field number for field 'kind'. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'etag'. (See http://go/stepladder-help#fieldNumber)
    "kind": "admin#directory#user#photo", # Kind of resource this is.
    "photoData": "A String", # Base64 encoded photo data
    "primaryEmail": "A String", # Primary email of User (Read-only)
    "etag": "A String", # ETag of the resource.
    "height": 42, # Height in pixels of the photo
    "mimeType": "A String", # Mime Type of the photo
    "width": 42, # Width in pixels of the photo
    "id": "A String", # Unique identifier of User (Read-only)
  }
update(userKey, body=None, x__xgafv=None)
Add a photo for the user

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

{ # STEPLADDER: Generated unstable field number for field 'kind'. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'etag'. (See http://go/stepladder-help#fieldNumber)
  "kind": "admin#directory#user#photo", # Kind of resource this is.
  "photoData": "A String", # Base64 encoded photo data
  "primaryEmail": "A String", # Primary email of User (Read-only)
  "etag": "A String", # ETag of the resource.
  "height": 42, # Height in pixels of the photo
  "mimeType": "A String", # Mime Type of the photo
  "width": 42, # Width in pixels of the photo
  "id": "A String", # Unique identifier of User (Read-only)
}

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

Returns:
  An object of the form:

    { # STEPLADDER: Generated unstable field number for field 'kind'. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'etag'. (See http://go/stepladder-help#fieldNumber)
    "kind": "admin#directory#user#photo", # Kind of resource this is.
    "photoData": "A String", # Base64 encoded photo data
    "primaryEmail": "A String", # Primary email of User (Read-only)
    "etag": "A String", # ETag of the resource.
    "height": 42, # Height in pixels of the photo
    "mimeType": "A String", # Mime Type of the photo
    "width": 42, # Width in pixels of the photo
    "id": "A String", # Unique identifier of User (Read-only)
  }