Drive Labels API . labels . revisions . locks

Instance Methods

close()

Close httplib2 connections.

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

Lists the LabelLocks 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 LabelLocks 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": [ # LabelLocks.
    { # A Lock that can be applied to a Label, Field, or Choice.
      "capabilities": { # A description of a user's capabilities on a LabelLock. # Output only. The user's capabilities on this LabelLock.
        "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 LabelLock was created.
      "creator": { # Information about a user. # Output only. The user whose credentials were used to create the LabelLock. This will not be present if no user was responsible for creating the LabelLock.
        "person": "A String", # The identifier for this user that can be used with the People API to get more information. For example, people/12345678.
      },
      "deleteTime": "A String", # Output only. A timestamp indicating when this LabelLock was scheduled for deletion. This will be present only if this LabelLock 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 LabelLock.
      "state": "A String", # Output only. This LabelLock'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.