locks
Creates, updates, deletes, gets or lists a locks
resource.
Overview
Name | locks |
Type | Resource |
Id | googleworkspace.drivelabelsv2.locks |
Fields
The following fields are returned by SELECT
queries:
- list
Name | Datatype | Description |
---|---|---|
name | string | Output only. Resource name of this label lock. |
capabilities | object | Output only. The user's capabilities on this label lock. (id: GoogleAppsDriveLabelsV2LabelLockCapabilities) |
choiceId | string | The ID of the selection field choice that should be locked. If present, field_id must also be present. |
createTime | string (google-datetime) | Output only. The time this label lock was created. |
creator | object | 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. (id: GoogleAppsDriveLabelsV2UserInfo) |
deleteTime | string (google-datetime) | 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 | string | The ID of the field that should be locked. Empty if the whole label should be locked. |
state | string | Output only. This label lock's state. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
list | select | labelsId | pageSize , pageToken | Lists the label locks on a label. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
labelsId | string | |
pageSize | integer (int32) | |
pageToken | string |
SELECT
examples
- list
Lists the label locks on a label.
SELECT
name,
capabilities,
choiceId,
createTime,
creator,
deleteTime,
fieldId,
state
FROM googleworkspace.drivelabelsv2.locks
WHERE labelsId = '{{ labelsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
;