ListLabelLocksResponse
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
对 ListLabelLocksRequest 的响应。
JSON 表示法 |
{
"labelLocks": [
{
object (LabelLock )
}
],
"nextPageToken": string
} |
字段 |
labelLocks[] |
object (LabelLock )
LabelLocks。
|
nextPageToken |
string
响应中下一页的令牌。
|
LabelLock
JSON 表示法 |
{
"name": string,
"fieldId": string,
"choiceId": string,
"createTime": string,
"creator": {
object (UserInfo )
},
"deleteTime": string,
"capabilities": {
object (Capabilities )
},
"state": enum (State )
} |
字段 |
name |
string
仅限输出。此 LabelLock 的资源名称。
|
fieldId |
string
应锁定的字段的 ID。如果整个标签都应锁定,则为空。
|
choiceId |
string
应锁定的选择字段选项的 ID。如果存在,则还必须存在 fieldId 。
|
createTime |
string (Timestamp format)
仅限输出。此 LabelLock 的创建时间。
|
creator |
object (UserInfo )
仅限输出。用于创建 LabelLock 的用户的凭据。如果没有用户负责创建 LabelLock,则不会显示此字段。
|
deleteTime |
string (Timestamp format)
仅限输出。指示此 LabelLock 的删除时间安排的时间戳。只有当此 LabelLock 处于“正在删除”状态时,才会显示此值。
|
capabilities |
object (Capabilities )
仅限输出。用户对此 LabelLock 的功能。
|
state |
enum (State )
仅限输出。此 LabelLock 的状态。
|
功能
JSON 表示法 |
{
"canViewPolicy": boolean
} |
字段 |
canViewPolicy |
boolean
如果用户有权查看相应政策,则为 true。
|
州
枚举 |
STATE_UNSPECIFIED |
未知状态。 |
ACTIVE |
LabelLock 处于有效状态,并且由服务器强制执行。 |
DELETING |
正在删除 LabelLock。在 LabelLock 被完全移除之前,服务器会继续强制执行该标签锁定。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],[],null,["# ListLabelLocksResponse\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [LabelLock](#LabelLock)\n - [JSON representation](#LabelLock.SCHEMA_REPRESENTATION)\n- [Capabilities](#Capabilities)\n - [JSON representation](#Capabilities.SCHEMA_REPRESENTATION)\n- [State](#State)\n\nThe response to a ListLabelLocksRequest.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"labelLocks\": [ { object (/workspace/drive/labels/reference/rest/v2beta/ListLabelLocksResponse#LabelLock) } ], \"nextPageToken\": string } ``` |\n\n| Fields ||\n|-----------------|----------------------------------------------------------------------------------------------------------------------|\n| `labelLocks[]` | `object (`[LabelLock](/workspace/drive/labels/reference/rest/v2beta/ListLabelLocksResponse#LabelLock)`)` LabelLocks. |\n| `nextPageToken` | `string` The token of the next page in the response. |\n\nLabelLock\n---------\n\nA Lock that can be applied to a Label, Field, or Choice.\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"fieldId\": string, \"choiceId\": string, \"createTime\": string, \"creator\": { object (/workspace/drive/labels/reference/rest/v2beta/labels#UserInfo) }, \"deleteTime\": string, \"capabilities\": { object (/workspace/drive/labels/reference/rest/v2beta/ListLabelLocksResponse#Capabilities) }, \"state\": enum (/workspace/drive/labels/reference/rest/v2beta/ListLabelLocksResponse#State) } ``` |\n\n| Fields ||\n|----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Output only. Resource name of this LabelLock. |\n| `fieldId` | `string` The ID of the Field that should be locked. Empty if the whole Label should be locked. |\n| `choiceId` | `string` The ID of the Selection Field Choice that should be locked. If present, `fieldId` must also be present. |\n| `createTime` | `string (`[Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp)` format)` Output only. The time this LabelLock was created. |\n| `creator` | `object (`[UserInfo](/workspace/drive/labels/reference/rest/v2beta/labels#UserInfo)`)` 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. |\n| `deleteTime` | `string (`[Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp)` format)` 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. |\n| `capabilities` | `object (`[Capabilities](/workspace/drive/labels/reference/rest/v2beta/ListLabelLocksResponse#Capabilities)`)` Output only. The user's capabilities on this LabelLock. |\n| `state` | `enum (`[State](/workspace/drive/labels/reference/rest/v2beta/ListLabelLocksResponse#State)`)` Output only. This LabelLock's state. |\n\nCapabilities\n------------\n\nA description of a user's capabilities on a LabelLock.\n\n| JSON representation |\n|--------------------------------------|\n| ``` { \"canViewPolicy\": boolean } ``` |\n\n| Fields ||\n|-----------------|--------------------------------------------------------------|\n| `canViewPolicy` | `boolean` True if the user is authorized to view the policy. |\n\nState\n-----\n\nA description of a LabelLock's state.\n\n| Enums ||\n|---------------------|---------------------------------------------------------------------------------------------------------------------------|\n| `STATE_UNSPECIFIED` | Unknown state. |\n| `ACTIVE` | The LabelLock is active and is being enforced by the server. |\n| `DELETING` | The LabelLock is being deleted. The LabelLock will continue to be enforced by the server until it has been fully removed. |"]]