Drive Labels API . labels . revisions . locks

Instance Methods

close()

Close httplib2 connections.

list(parent, pageSize=None, pageToken=None, x__xgafv=None)

Lists the label locks on a label.

list_next()

Retrieves the next page of results.

Method Details

close()
Close httplib2 connections.
list(parent, pageSize=None, pageToken=None, x__xgafv=None)
Lists the label locks on a label.

Args:
  parent: string, Required. Label on which locks are applied. Format: `labels/{label}`. (required)
  pageSize: integer, Maximum number of locks to return per page. Default: 100. Max: 200.
  pageToken: string, The token of the page to return.
  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 `ListLabelLocksRequest`.
  "labelLocks": [ # Label locks.
    { # A lock that can be applied to a label, field, or choice.
      "capabilities": { # A description of a user's capabilities on a label lock. # Output only. The user's capabilities on this label lock.
        "canViewPolicy": True or False, # True if the user is authorized to view the policy.
      },
      "choiceId": "A String", # The ID of the selection field choice that should be locked. If present, `field_id` must also be present.
      "createTime": "A String", # Output only. The time this label lock was created.
      "creator": { # Information about a user. # Output only. The user whose credentials were used to create the label lock. Not present if no user was responsible for creating the label lock.
        "person": "A String", # The identifier for this user that can be used with the [People API](https://developers.google.com/people) to get more information. For example, `people/12345678`.
      },
      "deleteTime": "A String", # Output only. A timestamp indicating when this label lock was scheduled for deletion. Present only if this label lock is in the `DELETING` state.
      "fieldId": "A String", # The ID of the field that should be locked. Empty if the whole label should be locked.
      "name": "A String", # Output only. Resource name of this label lock.
      "state": "A String", # Output only. This label lock's state.
    },
  ],
  "nextPageToken": "A String", # The token of the next page in the response.
}
list_next()
Retrieves the next page of results.

        Args:
          previous_request: The request for the previous page. (required)
          previous_response: The response from the request for the previous page. (required)

        Returns:
          A request object that you can call 'execute()' on to request the next
          page. Returns None if there are no more items in the collection.