1{
2 "auth": {
3 "oauth2": {
4 "scopes": {
5 "https://www.googleapis.com/auth/drive.admin.labels": {
6 "description": "See, edit, create, and delete all Google Drive labels in your organization, and see your organization's label-related admin policies"
7 },
8 "https://www.googleapis.com/auth/drive.admin.labels.readonly": {
9 "description": "See all Google Drive labels and label-related admin policies in your organization"
10 },
11 "https://www.googleapis.com/auth/drive.labels": {
12 "description": "See, edit, create, and delete your Google Drive labels"
13 },
14 "https://www.googleapis.com/auth/drive.labels.readonly": {
15 "description": "See your Google Drive labels"
16 }
17 }
18 }
19 },
20 "basePath": "",
21 "baseUrl": "https://drivelabels.googleapis.com/",
22 "batchPath": "batch",
23 "canonicalName": "Drive Labels",
24 "description": "An API for managing Drive Labels",
25 "discoveryVersion": "v1",
26 "documentationLink": "https://developers.google.com/drive/labels",
27 "fullyEncodeReservedExpansion": true,
28 "icons": {
29 "x16": "http://www.google.com/images/icons/product/search-16.gif",
30 "x32": "http://www.google.com/images/icons/product/search-32.gif"
31 },
32 "id": "drivelabels:v2beta",
33 "kind": "discovery#restDescription",
34 "mtlsRootUrl": "https://drivelabels.mtls.googleapis.com/",
35 "name": "drivelabels",
36 "ownerDomain": "google.com",
37 "ownerName": "Google",
38 "parameters": {
39 "$.xgafv": {
40 "description": "V1 error format.",
41 "enum": [
42 "1",
43 "2"
44 ],
45 "enumDescriptions": [
46 "v1 error format",
47 "v2 error format"
48 ],
49 "location": "query",
50 "type": "string"
51 },
52 "access_token": {
53 "description": "OAuth access token.",
54 "location": "query",
55 "type": "string"
56 },
57 "alt": {
58 "default": "json",
59 "description": "Data format for response.",
60 "enum": [
61 "json",
62 "media",
63 "proto"
64 ],
65 "enumDescriptions": [
66 "Responses with Content-Type of application/json",
67 "Media download with context-dependent Content-Type",
68 "Responses with Content-Type of application/x-protobuf"
69 ],
70 "location": "query",
71 "type": "string"
72 },
73 "callback": {
74 "description": "JSONP",
75 "location": "query",
76 "type": "string"
77 },
78 "fields": {
79 "description": "Selector specifying which fields to include in a partial response.",
80 "location": "query",
81 "type": "string"
82 },
83 "key": {
84 "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
85 "location": "query",
86 "type": "string"
87 },
88 "oauth_token": {
89 "description": "OAuth 2.0 token for the current user.",
90 "location": "query",
91 "type": "string"
92 },
93 "prettyPrint": {
94 "default": "true",
95 "description": "Returns response with indentations and line breaks.",
96 "location": "query",
97 "type": "boolean"
98 },
99 "quotaUser": {
100 "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
101 "location": "query",
102 "type": "string"
103 },
104 "uploadType": {
105 "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
106 "location": "query",
107 "type": "string"
108 },
109 "upload_protocol": {
110 "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
111 "location": "query",
112 "type": "string"
113 }
114 },
115 "protocol": "rest",
116 "resources": {
117 "labels": {
118 "methods": {
119 "create": {
120 "description": "Creates a new Label.",
121 "flatPath": "v2beta/labels",
122 "httpMethod": "POST",
123 "id": "drivelabels.labels.create",
124 "parameterOrder": [],
125 "parameters": {
126 "languageCode": {
127 "description": "The BCP-47 language code to use for evaluating localized Field labels in response. When not specified, values in the default configured language will be used.",
128 "location": "query",
129 "type": "string"
130 },
131 "useAdminAccess": {
132 "description": "Set to `true` in order to use the user's admin privileges. The server will verify the user is an admin before allowing access.",
133 "location": "query",
134 "type": "boolean"
135 }
136 },
137 "path": "v2beta/labels",
138 "request": {
139 "$ref": "GoogleAppsDriveLabelsV2betaLabel"
140 },
141 "response": {
142 "$ref": "GoogleAppsDriveLabelsV2betaLabel"
143 },
144 "scopes": [
145 "https://www.googleapis.com/auth/drive.admin.labels",
146 "https://www.googleapis.com/auth/drive.labels"
147 ]
148 },
149 "delete": {
150 "description": "Permanently deletes a Label and related metadata on Drive Items. Once deleted, the Label and related Drive item metadata will be deleted. Only draft Labels, and disabled Labels may be deleted.",
151 "flatPath": "v2beta/labels/{labelsId}",
152 "httpMethod": "DELETE",
153 "id": "drivelabels.labels.delete",
154 "parameterOrder": [
155 "name"
156 ],
157 "parameters": {
158 "name": {
159 "description": "Required. Label resource name.",
160 "location": "path",
161 "pattern": "^labels/[^/]+$",
162 "required": true,
163 "type": "string"
164 },
165 "useAdminAccess": {
166 "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.",
167 "location": "query",
168 "type": "boolean"
169 },
170 "writeControl.requiredRevisionId": {
171 "description": "The revision_id of the label that the write request will be applied to. If this is not the latest revision of the label, the request will not be processed and will return a 400 Bad Request error.",
172 "location": "query",
173 "type": "string"
174 }
175 },
176 "path": "v2beta/{+name}",
177 "response": {
178 "$ref": "GoogleProtobufEmpty"
179 },
180 "scopes": [
181 "https://www.googleapis.com/auth/drive.admin.labels",
182 "https://www.googleapis.com/auth/drive.labels"
183 ]
184 },
185 "delta": {
186 "description": "Updates a single Label by applying a set of update requests resulting in a new draft revision. The batch update is all-or-nothing: If any of the update requests are invalid, no changes are applied. The resulting draft revision must be published before the changes may be used with Drive Items.",
187 "flatPath": "v2beta/labels/{labelsId}:delta",
188 "httpMethod": "POST",
189 "id": "drivelabels.labels.delta",
190 "parameterOrder": [
191 "name"
192 ],
193 "parameters": {
194 "name": {
195 "description": "Required. The resource name of the Label to update.",
196 "location": "path",
197 "pattern": "^labels/[^/]+$",
198 "required": true,
199 "type": "string"
200 }
201 },
202 "path": "v2beta/{+name}:delta",
203 "request": {
204 "$ref": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequest"
205 },
206 "response": {
207 "$ref": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponse"
208 },
209 "scopes": [
210 "https://www.googleapis.com/auth/drive.admin.labels",
211 "https://www.googleapis.com/auth/drive.labels"
212 ]
213 },
214 "disable": {
215 "description": "Disable a published Label. Disabling a Label will result in a new disabled published revision based on the current published revision. If there is a draft revision, a new disabled draft revision will be created based on the latest draft revision. Older draft revisions will be deleted. Once disabled, a label may be deleted with `DeleteLabel`.",
216 "flatPath": "v2beta/labels/{labelsId}:disable",
217 "httpMethod": "POST",
218 "id": "drivelabels.labels.disable",
219 "parameterOrder": [
220 "name"
221 ],
222 "parameters": {
223 "name": {
224 "description": "Required. Label resource name.",
225 "location": "path",
226 "pattern": "^labels/[^/]+$",
227 "required": true,
228 "type": "string"
229 }
230 },
231 "path": "v2beta/{+name}:disable",
232 "request": {
233 "$ref": "GoogleAppsDriveLabelsV2betaDisableLabelRequest"
234 },
235 "response": {
236 "$ref": "GoogleAppsDriveLabelsV2betaLabel"
237 },
238 "scopes": [
239 "https://www.googleapis.com/auth/drive.admin.labels",
240 "https://www.googleapis.com/auth/drive.labels"
241 ]
242 },
243 "enable": {
244 "description": "Enable a disabled Label and restore it to its published state. This will result in a new published revision based on the current disabled published revision. If there is an existing disabled draft revision, a new revision will be created based on that draft and will be enabled.",
245 "flatPath": "v2beta/labels/{labelsId}:enable",
246 "httpMethod": "POST",
247 "id": "drivelabels.labels.enable",
248 "parameterOrder": [
249 "name"
250 ],
251 "parameters": {
252 "name": {
253 "description": "Required. Label resource name.",
254 "location": "path",
255 "pattern": "^labels/[^/]+$",
256 "required": true,
257 "type": "string"
258 }
259 },
260 "path": "v2beta/{+name}:enable",
261 "request": {
262 "$ref": "GoogleAppsDriveLabelsV2betaEnableLabelRequest"
263 },
264 "response": {
265 "$ref": "GoogleAppsDriveLabelsV2betaLabel"
266 },
267 "scopes": [
268 "https://www.googleapis.com/auth/drive.admin.labels",
269 "https://www.googleapis.com/auth/drive.labels"
270 ]
271 },
272 "get": {
273 "description": "Get a label by its resource name. Resource name may be any of: * `labels/{id}` - See `labels/{id}@latest` * `labels/{id}@latest` - Gets the latest revision of the label. * `labels/{id}@published` - Gets the current published revision of the label. * `labels/{id}@{revision_id}` - Gets the label at the specified revision ID.",
274 "flatPath": "v2beta/labels/{labelsId}",
275 "httpMethod": "GET",
276 "id": "drivelabels.labels.get",
277 "parameterOrder": [
278 "name"
279 ],
280 "parameters": {
281 "languageCode": {
282 "description": "The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language are used.",
283 "location": "query",
284 "type": "string"
285 },
286 "name": {
287 "description": "Required. Label resource name. May be any of: * `labels/{id}` (equivalent to labels/{id}@latest) * `labels/{id}@latest` * `labels/{id}@published` * `labels/{id}@{revision_id}`",
288 "location": "path",
289 "pattern": "^labels/[^/]+$",
290 "required": true,
291 "type": "string"
292 },
293 "useAdminAccess": {
294 "description": "Set to `true` in order to use the user's admin credentials. The server verifies that the user is an admin for the label before allowing access.",
295 "location": "query",
296 "type": "boolean"
297 },
298 "view": {
299 "description": "When specified, only certain fields belonging to the indicated view are returned.",
300 "enum": [
301 "LABEL_VIEW_BASIC",
302 "LABEL_VIEW_FULL"
303 ],
304 "enumDescriptions": [
305 "Implies the field mask: `name,id,revision_id,label_type,properties.*`",
306 "All possible fields."
307 ],
308 "location": "query",
309 "type": "string"
310 }
311 },
312 "path": "v2beta/{+name}",
313 "response": {
314 "$ref": "GoogleAppsDriveLabelsV2betaLabel"
315 },
316 "scopes": [
317 "https://www.googleapis.com/auth/drive.admin.labels",
318 "https://www.googleapis.com/auth/drive.admin.labels.readonly",
319 "https://www.googleapis.com/auth/drive.labels",
320 "https://www.googleapis.com/auth/drive.labels.readonly"
321 ]
322 },
323 "list": {
324 "description": "List labels.",
325 "flatPath": "v2beta/labels",
326 "httpMethod": "GET",
327 "id": "drivelabels.labels.list",
328 "parameterOrder": [],
329 "parameters": {
330 "customer": {
331 "description": "The customer to scope this list request to. For example: \"customers/abcd1234\". If unset, will return all labels within the current customer.",
332 "location": "query",
333 "type": "string"
334 },
335 "languageCode": {
336 "description": "The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language are used.",
337 "location": "query",
338 "type": "string"
339 },
340 "minimumRole": {
341 "description": "Specifies the level of access the user must have on the returned Labels. The minimum role a user must have on a label. Defaults to `READER`.",
342 "enum": [
343 "LABEL_ROLE_UNSPECIFIED",
344 "READER",
345 "APPLIER",
346 "ORGANIZER",
347 "EDITOR"
348 ],
349 "enumDescriptions": [
350 "Unknown role.",
351 "A reader can read the label and associated metadata applied to Drive items.",
352 "An applier can write associated metadata on Drive items in which they also have write access to. Implies `READER`.",
353 "An organizer can pin this label in shared drives they manage and add new appliers to the label.",
354 "Editors can make any update including deleting the label which also deletes the associated Drive item metadata. Implies `APPLIER`."
355 ],
356 "location": "query",
357 "type": "string"
358 },
359 "pageSize": {
360 "description": "Maximum number of labels to return per page. Default: 50. Max: 200.",
361 "format": "int32",
362 "location": "query",
363 "type": "integer"
364 },
365 "pageToken": {
366 "description": "The token of the page to return.",
367 "location": "query",
368 "type": "string"
369 },
370 "publishedOnly": {
371 "description": "Whether to include only published labels in the results. * When `true`, only the current published label revisions are returned. Disabled labels are included. Returned label resource names reference the published revision (`labels/{id}/{revision_id}`). * When `false`, the current label revisions are returned, which might not be published. Returned label resource names don't reference a specific revision (`labels/{id}`).",
372 "location": "query",
373 "type": "boolean"
374 },
375 "useAdminAccess": {
376 "description": "Set to `true` in order to use the user's admin credentials. This will return all Labels within the customer.",
377 "location": "query",
378 "type": "boolean"
379 },
380 "view": {
381 "description": "When specified, only certain fields belonging to the indicated view are returned.",
382 "enum": [
383 "LABEL_VIEW_BASIC",
384 "LABEL_VIEW_FULL"
385 ],
386 "enumDescriptions": [
387 "Implies the field mask: `name,id,revision_id,label_type,properties.*`",
388 "All possible fields."
389 ],
390 "location": "query",
391 "type": "string"
392 }
393 },
394 "path": "v2beta/labels",
395 "response": {
396 "$ref": "GoogleAppsDriveLabelsV2betaListLabelsResponse"
397 },
398 "scopes": [
399 "https://www.googleapis.com/auth/drive.admin.labels",
400 "https://www.googleapis.com/auth/drive.admin.labels.readonly",
401 "https://www.googleapis.com/auth/drive.labels",
402 "https://www.googleapis.com/auth/drive.labels.readonly"
403 ]
404 },
405 "publish": {
406 "description": "Publish all draft changes to the Label. Once published, the Label may not return to its draft state. See `google.apps.drive.labels.v2.Lifecycle` for more information. Publishing a Label will result in a new published revision. All previous draft revisions will be deleted. Previous published revisions will be kept but are subject to automated deletion as needed. Once published, some changes are no longer permitted. Generally, any change that would invalidate or cause new restrictions on existing metadata related to the Label will be rejected. For example, the following changes to a Label will be rejected after the Label is published: * The label cannot be directly deleted. It must be disabled first, then deleted. * Field.FieldType cannot be changed. * Changes to Field validation options cannot reject something that was previously accepted. * Reducing the max entries.",
407 "flatPath": "v2beta/labels/{labelsId}:publish",
408 "httpMethod": "POST",
409 "id": "drivelabels.labels.publish",
410 "parameterOrder": [
411 "name"
412 ],
413 "parameters": {
414 "name": {
415 "description": "Required. Label resource name.",
416 "location": "path",
417 "pattern": "^labels/[^/]+$",
418 "required": true,
419 "type": "string"
420 }
421 },
422 "path": "v2beta/{+name}:publish",
423 "request": {
424 "$ref": "GoogleAppsDriveLabelsV2betaPublishLabelRequest"
425 },
426 "response": {
427 "$ref": "GoogleAppsDriveLabelsV2betaLabel"
428 },
429 "scopes": [
430 "https://www.googleapis.com/auth/drive.admin.labels",
431 "https://www.googleapis.com/auth/drive.labels"
432 ]
433 },
434 "updateLabelCopyMode": {
435 "description": "Updates a Label's `CopyMode`. Changes to this policy are not revisioned, do not require publishing, and take effect immediately.",
436 "flatPath": "v2beta/labels/{labelsId}:updateLabelCopyMode",
437 "httpMethod": "POST",
438 "id": "drivelabels.labels.updateLabelCopyMode",
439 "parameterOrder": [
440 "name"
441 ],
442 "parameters": {
443 "name": {
444 "description": "Required. The resource name of the Label to update.",
445 "location": "path",
446 "pattern": "^labels/[^/]+$",
447 "required": true,
448 "type": "string"
449 }
450 },
451 "path": "v2beta/{+name}:updateLabelCopyMode",
452 "request": {
453 "$ref": "GoogleAppsDriveLabelsV2betaUpdateLabelCopyModeRequest"
454 },
455 "response": {
456 "$ref": "GoogleAppsDriveLabelsV2betaLabel"
457 },
458 "scopes": [
459 "https://www.googleapis.com/auth/drive.admin.labels",
460 "https://www.googleapis.com/auth/drive.labels"
461 ]
462 },
463 "updatePermissions": {
464 "description": "Updates a Label's permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.",
465 "flatPath": "v2beta/labels/{labelsId}/permissions",
466 "httpMethod": "PATCH",
467 "id": "drivelabels.labels.updatePermissions",
468 "parameterOrder": [
469 "parent"
470 ],
471 "parameters": {
472 "parent": {
473 "description": "Required. The parent Label resource name.",
474 "location": "path",
475 "pattern": "^labels/[^/]+$",
476 "required": true,
477 "type": "string"
478 },
479 "useAdminAccess": {
480 "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.",
481 "location": "query",
482 "type": "boolean"
483 }
484 },
485 "path": "v2beta/{+parent}/permissions",
486 "request": {
487 "$ref": "GoogleAppsDriveLabelsV2betaLabelPermission"
488 },
489 "response": {
490 "$ref": "GoogleAppsDriveLabelsV2betaLabelPermission"
491 },
492 "scopes": [
493 "https://www.googleapis.com/auth/drive.admin.labels",
494 "https://www.googleapis.com/auth/drive.labels"
495 ]
496 }
497 },
498 "resources": {
499 "locks": {
500 "methods": {
501 "list": {
502 "description": "Lists the LabelLocks on a Label.",
503 "flatPath": "v2beta/labels/{labelsId}/locks",
504 "httpMethod": "GET",
505 "id": "drivelabels.labels.locks.list",
506 "parameterOrder": [
507 "parent"
508 ],
509 "parameters": {
510 "pageSize": {
511 "description": "Maximum number of Locks to return per page. Default: 100. Max: 200.",
512 "format": "int32",
513 "location": "query",
514 "type": "integer"
515 },
516 "pageToken": {
517 "description": "The token of the page to return.",
518 "location": "query",
519 "type": "string"
520 },
521 "parent": {
522 "description": "Required. Label on which Locks are applied. Format: labels/{label}",
523 "location": "path",
524 "pattern": "^labels/[^/]+$",
525 "required": true,
526 "type": "string"
527 }
528 },
529 "path": "v2beta/{+parent}/locks",
530 "response": {
531 "$ref": "GoogleAppsDriveLabelsV2betaListLabelLocksResponse"
532 },
533 "scopes": [
534 "https://www.googleapis.com/auth/drive.admin.labels",
535 "https://www.googleapis.com/auth/drive.admin.labels.readonly",
536 "https://www.googleapis.com/auth/drive.labels",
537 "https://www.googleapis.com/auth/drive.labels.readonly"
538 ]
539 }
540 }
541 },
542 "permissions": {
543 "methods": {
544 "batchDelete": {
545 "description": "Deletes Label permissions. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.",
546 "flatPath": "v2beta/labels/{labelsId}/permissions:batchDelete",
547 "httpMethod": "POST",
548 "id": "drivelabels.labels.permissions.batchDelete",
549 "parameterOrder": [
550 "parent"
551 ],
552 "parameters": {
553 "parent": {
554 "description": "Required. The parent Label resource name shared by all permissions being deleted. Format: labels/{label} If this is set, the parent field in the UpdateLabelPermissionRequest messages must either be empty or match this field.",
555 "location": "path",
556 "pattern": "^labels/[^/]+$",
557 "required": true,
558 "type": "string"
559 }
560 },
561 "path": "v2beta/{+parent}/permissions:batchDelete",
562 "request": {
563 "$ref": "GoogleAppsDriveLabelsV2betaBatchDeleteLabelPermissionsRequest"
564 },
565 "response": {
566 "$ref": "GoogleProtobufEmpty"
567 },
568 "scopes": [
569 "https://www.googleapis.com/auth/drive.admin.labels",
570 "https://www.googleapis.com/auth/drive.labels"
571 ]
572 },
573 "batchUpdate": {
574 "description": "Updates Label permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.",
575 "flatPath": "v2beta/labels/{labelsId}/permissions:batchUpdate",
576 "httpMethod": "POST",
577 "id": "drivelabels.labels.permissions.batchUpdate",
578 "parameterOrder": [
579 "parent"
580 ],
581 "parameters": {
582 "parent": {
583 "description": "Required. The parent Label resource name shared by all permissions being updated. Format: labels/{label} If this is set, the parent field in the UpdateLabelPermissionRequest messages must either be empty or match this field.",
584 "location": "path",
585 "pattern": "^labels/[^/]+$",
586 "required": true,
587 "type": "string"
588 }
589 },
590 "path": "v2beta/{+parent}/permissions:batchUpdate",
591 "request": {
592 "$ref": "GoogleAppsDriveLabelsV2betaBatchUpdateLabelPermissionsRequest"
593 },
594 "response": {
595 "$ref": "GoogleAppsDriveLabelsV2betaBatchUpdateLabelPermissionsResponse"
596 },
597 "scopes": [
598 "https://www.googleapis.com/auth/drive.admin.labels",
599 "https://www.googleapis.com/auth/drive.labels"
600 ]
601 },
602 "create": {
603 "description": "Updates a Label's permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.",
604 "flatPath": "v2beta/labels/{labelsId}/permissions",
605 "httpMethod": "POST",
606 "id": "drivelabels.labels.permissions.create",
607 "parameterOrder": [
608 "parent"
609 ],
610 "parameters": {
611 "parent": {
612 "description": "Required. The parent Label resource name on the Label Permission is created. Format: labels/{label}",
613 "location": "path",
614 "pattern": "^labels/[^/]+$",
615 "required": true,
616 "type": "string"
617 },
618 "useAdminAccess": {
619 "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.",
620 "location": "query",
621 "type": "boolean"
622 }
623 },
624 "path": "v2beta/{+parent}/permissions",
625 "request": {
626 "$ref": "GoogleAppsDriveLabelsV2betaLabelPermission"
627 },
628 "response": {
629 "$ref": "GoogleAppsDriveLabelsV2betaLabelPermission"
630 },
631 "scopes": [
632 "https://www.googleapis.com/auth/drive.admin.labels",
633 "https://www.googleapis.com/auth/drive.labels"
634 ]
635 },
636 "delete": {
637 "description": "Deletes a Label's permission. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.",
638 "flatPath": "v2beta/labels/{labelsId}/permissions/{permissionsId}",
639 "httpMethod": "DELETE",
640 "id": "drivelabels.labels.permissions.delete",
641 "parameterOrder": [
642 "name"
643 ],
644 "parameters": {
645 "name": {
646 "description": "Required. Label Permission resource name.",
647 "location": "path",
648 "pattern": "^labels/[^/]+/permissions/[^/]+$",
649 "required": true,
650 "type": "string"
651 },
652 "useAdminAccess": {
653 "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.",
654 "location": "query",
655 "type": "boolean"
656 }
657 },
658 "path": "v2beta/{+name}",
659 "response": {
660 "$ref": "GoogleProtobufEmpty"
661 },
662 "scopes": [
663 "https://www.googleapis.com/auth/drive.admin.labels",
664 "https://www.googleapis.com/auth/drive.labels"
665 ]
666 },
667 "list": {
668 "description": "Lists a Label's permissions.",
669 "flatPath": "v2beta/labels/{labelsId}/permissions",
670 "httpMethod": "GET",
671 "id": "drivelabels.labels.permissions.list",
672 "parameterOrder": [
673 "parent"
674 ],
675 "parameters": {
676 "pageSize": {
677 "description": "Maximum number of permissions to return per page. Default: 50. Max: 200.",
678 "format": "int32",
679 "location": "query",
680 "type": "integer"
681 },
682 "pageToken": {
683 "description": "The token of the page to return.",
684 "location": "query",
685 "type": "string"
686 },
687 "parent": {
688 "description": "Required. The parent Label resource name on which Label Permission are listed. Format: labels/{label}",
689 "location": "path",
690 "pattern": "^labels/[^/]+$",
691 "required": true,
692 "type": "string"
693 },
694 "useAdminAccess": {
695 "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.",
696 "location": "query",
697 "type": "boolean"
698 }
699 },
700 "path": "v2beta/{+parent}/permissions",
701 "response": {
702 "$ref": "GoogleAppsDriveLabelsV2betaListLabelPermissionsResponse"
703 },
704 "scopes": [
705 "https://www.googleapis.com/auth/drive.admin.labels",
706 "https://www.googleapis.com/auth/drive.admin.labels.readonly",
707 "https://www.googleapis.com/auth/drive.labels",
708 "https://www.googleapis.com/auth/drive.labels.readonly"
709 ]
710 }
711 }
712 },
713 "revisions": {
714 "methods": {
715 "updatePermissions": {
716 "description": "Updates a Label's permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.",
717 "flatPath": "v2beta/labels/{labelsId}/revisions/{revisionsId}/permissions",
718 "httpMethod": "PATCH",
719 "id": "drivelabels.labels.revisions.updatePermissions",
720 "parameterOrder": [
721 "parent"
722 ],
723 "parameters": {
724 "parent": {
725 "description": "Required. The parent Label resource name.",
726 "location": "path",
727 "pattern": "^labels/[^/]+/revisions/[^/]+$",
728 "required": true,
729 "type": "string"
730 },
731 "useAdminAccess": {
732 "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.",
733 "location": "query",
734 "type": "boolean"
735 }
736 },
737 "path": "v2beta/{+parent}/permissions",
738 "request": {
739 "$ref": "GoogleAppsDriveLabelsV2betaLabelPermission"
740 },
741 "response": {
742 "$ref": "GoogleAppsDriveLabelsV2betaLabelPermission"
743 },
744 "scopes": [
745 "https://www.googleapis.com/auth/drive.admin.labels",
746 "https://www.googleapis.com/auth/drive.labels"
747 ]
748 }
749 },
750 "resources": {
751 "locks": {
752 "methods": {
753 "list": {
754 "description": "Lists the LabelLocks on a Label.",
755 "flatPath": "v2beta/labels/{labelsId}/revisions/{revisionsId}/locks",
756 "httpMethod": "GET",
757 "id": "drivelabels.labels.revisions.locks.list",
758 "parameterOrder": [
759 "parent"
760 ],
761 "parameters": {
762 "pageSize": {
763 "description": "Maximum number of Locks to return per page. Default: 100. Max: 200.",
764 "format": "int32",
765 "location": "query",
766 "type": "integer"
767 },
768 "pageToken": {
769 "description": "The token of the page to return.",
770 "location": "query",
771 "type": "string"
772 },
773 "parent": {
774 "description": "Required. Label on which Locks are applied. Format: labels/{label}",
775 "location": "path",
776 "pattern": "^labels/[^/]+/revisions/[^/]+$",
777 "required": true,
778 "type": "string"
779 }
780 },
781 "path": "v2beta/{+parent}/locks",
782 "response": {
783 "$ref": "GoogleAppsDriveLabelsV2betaListLabelLocksResponse"
784 },
785 "scopes": [
786 "https://www.googleapis.com/auth/drive.admin.labels",
787 "https://www.googleapis.com/auth/drive.admin.labels.readonly",
788 "https://www.googleapis.com/auth/drive.labels",
789 "https://www.googleapis.com/auth/drive.labels.readonly"
790 ]
791 }
792 }
793 },
794 "permissions": {
795 "methods": {
796 "batchDelete": {
797 "description": "Deletes Label permissions. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.",
798 "flatPath": "v2beta/labels/{labelsId}/revisions/{revisionsId}/permissions:batchDelete",
799 "httpMethod": "POST",
800 "id": "drivelabels.labels.revisions.permissions.batchDelete",
801 "parameterOrder": [
802 "parent"
803 ],
804 "parameters": {
805 "parent": {
806 "description": "Required. The parent Label resource name shared by all permissions being deleted. Format: labels/{label} If this is set, the parent field in the UpdateLabelPermissionRequest messages must either be empty or match this field.",
807 "location": "path",
808 "pattern": "^labels/[^/]+/revisions/[^/]+$",
809 "required": true,
810 "type": "string"
811 }
812 },
813 "path": "v2beta/{+parent}/permissions:batchDelete",
814 "request": {
815 "$ref": "GoogleAppsDriveLabelsV2betaBatchDeleteLabelPermissionsRequest"
816 },
817 "response": {
818 "$ref": "GoogleProtobufEmpty"
819 },
820 "scopes": [
821 "https://www.googleapis.com/auth/drive.admin.labels",
822 "https://www.googleapis.com/auth/drive.labels"
823 ]
824 },
825 "batchUpdate": {
826 "description": "Updates Label permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.",
827 "flatPath": "v2beta/labels/{labelsId}/revisions/{revisionsId}/permissions:batchUpdate",
828 "httpMethod": "POST",
829 "id": "drivelabels.labels.revisions.permissions.batchUpdate",
830 "parameterOrder": [
831 "parent"
832 ],
833 "parameters": {
834 "parent": {
835 "description": "Required. The parent Label resource name shared by all permissions being updated. Format: labels/{label} If this is set, the parent field in the UpdateLabelPermissionRequest messages must either be empty or match this field.",
836 "location": "path",
837 "pattern": "^labels/[^/]+/revisions/[^/]+$",
838 "required": true,
839 "type": "string"
840 }
841 },
842 "path": "v2beta/{+parent}/permissions:batchUpdate",
843 "request": {
844 "$ref": "GoogleAppsDriveLabelsV2betaBatchUpdateLabelPermissionsRequest"
845 },
846 "response": {
847 "$ref": "GoogleAppsDriveLabelsV2betaBatchUpdateLabelPermissionsResponse"
848 },
849 "scopes": [
850 "https://www.googleapis.com/auth/drive.admin.labels",
851 "https://www.googleapis.com/auth/drive.labels"
852 ]
853 },
854 "create": {
855 "description": "Updates a Label's permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.",
856 "flatPath": "v2beta/labels/{labelsId}/revisions/{revisionsId}/permissions",
857 "httpMethod": "POST",
858 "id": "drivelabels.labels.revisions.permissions.create",
859 "parameterOrder": [
860 "parent"
861 ],
862 "parameters": {
863 "parent": {
864 "description": "Required. The parent Label resource name on the Label Permission is created. Format: labels/{label}",
865 "location": "path",
866 "pattern": "^labels/[^/]+/revisions/[^/]+$",
867 "required": true,
868 "type": "string"
869 },
870 "useAdminAccess": {
871 "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.",
872 "location": "query",
873 "type": "boolean"
874 }
875 },
876 "path": "v2beta/{+parent}/permissions",
877 "request": {
878 "$ref": "GoogleAppsDriveLabelsV2betaLabelPermission"
879 },
880 "response": {
881 "$ref": "GoogleAppsDriveLabelsV2betaLabelPermission"
882 },
883 "scopes": [
884 "https://www.googleapis.com/auth/drive.admin.labels",
885 "https://www.googleapis.com/auth/drive.labels"
886 ]
887 },
888 "delete": {
889 "description": "Deletes a Label's permission. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.",
890 "flatPath": "v2beta/labels/{labelsId}/revisions/{revisionsId}/permissions/{permissionsId}",
891 "httpMethod": "DELETE",
892 "id": "drivelabels.labels.revisions.permissions.delete",
893 "parameterOrder": [
894 "name"
895 ],
896 "parameters": {
897 "name": {
898 "description": "Required. Label Permission resource name.",
899 "location": "path",
900 "pattern": "^labels/[^/]+/revisions/[^/]+/permissions/[^/]+$",
901 "required": true,
902 "type": "string"
903 },
904 "useAdminAccess": {
905 "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.",
906 "location": "query",
907 "type": "boolean"
908 }
909 },
910 "path": "v2beta/{+name}",
911 "response": {
912 "$ref": "GoogleProtobufEmpty"
913 },
914 "scopes": [
915 "https://www.googleapis.com/auth/drive.admin.labels",
916 "https://www.googleapis.com/auth/drive.labels"
917 ]
918 },
919 "list": {
920 "description": "Lists a Label's permissions.",
921 "flatPath": "v2beta/labels/{labelsId}/revisions/{revisionsId}/permissions",
922 "httpMethod": "GET",
923 "id": "drivelabels.labels.revisions.permissions.list",
924 "parameterOrder": [
925 "parent"
926 ],
927 "parameters": {
928 "pageSize": {
929 "description": "Maximum number of permissions to return per page. Default: 50. Max: 200.",
930 "format": "int32",
931 "location": "query",
932 "type": "integer"
933 },
934 "pageToken": {
935 "description": "The token of the page to return.",
936 "location": "query",
937 "type": "string"
938 },
939 "parent": {
940 "description": "Required. The parent Label resource name on which Label Permission are listed. Format: labels/{label}",
941 "location": "path",
942 "pattern": "^labels/[^/]+/revisions/[^/]+$",
943 "required": true,
944 "type": "string"
945 },
946 "useAdminAccess": {
947 "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.",
948 "location": "query",
949 "type": "boolean"
950 }
951 },
952 "path": "v2beta/{+parent}/permissions",
953 "response": {
954 "$ref": "GoogleAppsDriveLabelsV2betaListLabelPermissionsResponse"
955 },
956 "scopes": [
957 "https://www.googleapis.com/auth/drive.admin.labels",
958 "https://www.googleapis.com/auth/drive.admin.labels.readonly",
959 "https://www.googleapis.com/auth/drive.labels",
960 "https://www.googleapis.com/auth/drive.labels.readonly"
961 ]
962 }
963 }
964 }
965 }
966 }
967 }
968 },
969 "limits": {
970 "methods": {
971 "getLabel": {
972 "description": "Get the constraints on the structure of a Label; such as, the maximum number of Fields allowed and maximum length of the label title.",
973 "flatPath": "v2beta/limits/label",
974 "httpMethod": "GET",
975 "id": "drivelabels.limits.getLabel",
976 "parameterOrder": [],
977 "parameters": {
978 "name": {
979 "description": "Required. Label revision resource name Must be: \"limits/label\"",
980 "location": "query",
981 "type": "string"
982 }
983 },
984 "path": "v2beta/limits/label",
985 "response": {
986 "$ref": "GoogleAppsDriveLabelsV2betaLabelLimits"
987 },
988 "scopes": [
989 "https://www.googleapis.com/auth/drive.admin.labels",
990 "https://www.googleapis.com/auth/drive.admin.labels.readonly",
991 "https://www.googleapis.com/auth/drive.labels",
992 "https://www.googleapis.com/auth/drive.labels.readonly"
993 ]
994 }
995 }
996 },
997 "users": {
998 "methods": {
999 "getCapabilities": {
1000 "description": "Gets the user capabilities.",
1001 "flatPath": "v2beta/users/{usersId}/capabilities",
1002 "httpMethod": "GET",
1003 "id": "drivelabels.users.getCapabilities",
1004 "parameterOrder": [
1005 "name"
1006 ],
1007 "parameters": {
1008 "customer": {
1009 "description": "The customer to scope this request to. For example: \"customers/abcd1234\". If unset, will return settings within the current customer.",
1010 "location": "query",
1011 "type": "string"
1012 },
1013 "name": {
1014 "description": "Required. The resource name of the user. Only \"users/me/capabilities\" is supported.",
1015 "location": "path",
1016 "pattern": "^users/[^/]+/capabilities$",
1017 "required": true,
1018 "type": "string"
1019 }
1020 },
1021 "path": "v2beta/{+name}",
1022 "response": {
1023 "$ref": "GoogleAppsDriveLabelsV2betaUserCapabilities"
1024 },
1025 "scopes": [
1026 "https://www.googleapis.com/auth/drive.admin.labels",
1027 "https://www.googleapis.com/auth/drive.admin.labels.readonly",
1028 "https://www.googleapis.com/auth/drive.labels",
1029 "https://www.googleapis.com/auth/drive.labels.readonly"
1030 ]
1031 }
1032 }
1033 }
1034 },
1035 "revision": "20231218",
1036 "rootUrl": "https://drivelabels.googleapis.com/",
1037 "schemas": {
1038 "GoogleAppsDriveLabelsV2betaBadgeColors": {
1039 "description": "The color derived from BadgeConfig and changed to the closest recommended supported color.",
1040 "id": "GoogleAppsDriveLabelsV2betaBadgeColors",
1041 "properties": {
1042 "backgroundColor": {
1043 "$ref": "GoogleTypeColor",
1044 "description": "Output only. Badge background that pairs with the foreground.",
1045 "readOnly": true
1046 },
1047 "foregroundColor": {
1048 "$ref": "GoogleTypeColor",
1049 "description": "Output only. Badge foreground that pairs with the background.",
1050 "readOnly": true
1051 },
1052 "soloColor": {
1053 "$ref": "GoogleTypeColor",
1054 "description": "Output only. Color that can be used for text without a background.",
1055 "readOnly": true
1056 }
1057 },
1058 "type": "object"
1059 },
1060 "GoogleAppsDriveLabelsV2betaBadgeConfig": {
1061 "description": "Badge status of the label.",
1062 "id": "GoogleAppsDriveLabelsV2betaBadgeConfig",
1063 "properties": {
1064 "color": {
1065 "$ref": "GoogleTypeColor",
1066 "description": "The color of the badge. When not specified, no badge is rendered. The background, foreground, and solo (light and dark mode) colors set here are changed in the Drive UI into the closest recommended supported color."
1067 },
1068 "priorityOverride": {
1069 "description": "Override the default global priority of this badge. When set to 0, the default priority heuristic is used.",
1070 "format": "int64",
1071 "type": "string"
1072 }
1073 },
1074 "type": "object"
1075 },
1076 "GoogleAppsDriveLabelsV2betaBatchDeleteLabelPermissionsRequest": {
1077 "description": "Deletes one of more Label Permissions.",
1078 "id": "GoogleAppsDriveLabelsV2betaBatchDeleteLabelPermissionsRequest",
1079 "properties": {
1080 "requests": {
1081 "description": "Required. The request message specifying the resources to update.",
1082 "items": {
1083 "$ref": "GoogleAppsDriveLabelsV2betaDeleteLabelPermissionRequest"
1084 },
1085 "type": "array"
1086 },
1087 "useAdminAccess": {
1088 "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. If this is set, the use_admin_access field in the DeleteLabelPermissionRequest messages must either be empty or match this field.",
1089 "type": "boolean"
1090 }
1091 },
1092 "type": "object"
1093 },
1094 "GoogleAppsDriveLabelsV2betaBatchUpdateLabelPermissionsRequest": {
1095 "description": "Updates one or more Label Permissions.",
1096 "id": "GoogleAppsDriveLabelsV2betaBatchUpdateLabelPermissionsRequest",
1097 "properties": {
1098 "requests": {
1099 "description": "Required. The request message specifying the resources to update.",
1100 "items": {
1101 "$ref": "GoogleAppsDriveLabelsV2betaUpdateLabelPermissionRequest"
1102 },
1103 "type": "array"
1104 },
1105 "useAdminAccess": {
1106 "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. If this is set, the use_admin_access field in the UpdateLabelPermissionRequest messages must either be empty or match this field.",
1107 "type": "boolean"
1108 }
1109 },
1110 "type": "object"
1111 },
1112 "GoogleAppsDriveLabelsV2betaBatchUpdateLabelPermissionsResponse": {
1113 "description": "Response for updating one or more Label Permissions.",
1114 "id": "GoogleAppsDriveLabelsV2betaBatchUpdateLabelPermissionsResponse",
1115 "properties": {
1116 "permissions": {
1117 "description": "Required. Permissions updated.",
1118 "items": {
1119 "$ref": "GoogleAppsDriveLabelsV2betaLabelPermission"
1120 },
1121 "type": "array"
1122 }
1123 },
1124 "type": "object"
1125 },
1126 "GoogleAppsDriveLabelsV2betaDateLimits": {
1127 "description": "Limits for date Field type.",
1128 "id": "GoogleAppsDriveLabelsV2betaDateLimits",
1129 "properties": {
1130 "maxValue": {
1131 "$ref": "GoogleTypeDate",
1132 "description": "Maximum value for the date Field type."
1133 },
1134 "minValue": {
1135 "$ref": "GoogleTypeDate",
1136 "description": "Minimum value for the date Field type."
1137 }
1138 },
1139 "type": "object"
1140 },
1141 "GoogleAppsDriveLabelsV2betaDeleteLabelPermissionRequest": {
1142 "description": "Deletes a Label Permission. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.",
1143 "id": "GoogleAppsDriveLabelsV2betaDeleteLabelPermissionRequest",
1144 "properties": {
1145 "name": {
1146 "description": "Required. Label Permission resource name.",
1147 "type": "string"
1148 },
1149 "useAdminAccess": {
1150 "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.",
1151 "type": "boolean"
1152 }
1153 },
1154 "type": "object"
1155 },
1156 "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequest": {
1157 "description": "The set of requests for updating aspects of a Label. If any request is not valid, no requests will be applied.",
1158 "id": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequest",
1159 "properties": {
1160 "languageCode": {
1161 "description": "The BCP-47 language code to use for evaluating localized Field labels when `include_label_in_response` is `true`.",
1162 "type": "string"
1163 },
1164 "requests": {
1165 "description": "A list of updates to apply to the Label. Requests will be applied in the order they are specified.",
1166 "items": {
1167 "$ref": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestRequest"
1168 },
1169 "type": "array"
1170 },
1171 "useAdminAccess": {
1172 "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.",
1173 "type": "boolean"
1174 },
1175 "view": {
1176 "description": "When specified, only certain fields belonging to the indicated view will be returned.",
1177 "enum": [
1178 "LABEL_VIEW_BASIC",
1179 "LABEL_VIEW_FULL"
1180 ],
1181 "enumDescriptions": [
1182 "Implies the field mask: `name,id,revision_id,label_type,properties.*`",
1183 "All possible fields."
1184 ],
1185 "type": "string"
1186 },
1187 "writeControl": {
1188 "$ref": "GoogleAppsDriveLabelsV2betaWriteControl",
1189 "description": "Provides control over how write requests are executed."
1190 }
1191 },
1192 "type": "object"
1193 },
1194 "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestCreateFieldRequest": {
1195 "description": "Request to create a Field within a Label.",
1196 "id": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestCreateFieldRequest",
1197 "properties": {
1198 "field": {
1199 "$ref": "GoogleAppsDriveLabelsV2betaField",
1200 "description": "Required. Field to create."
1201 }
1202 },
1203 "type": "object"
1204 },
1205 "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestCreateSelectionChoiceRequest": {
1206 "description": "Request to create a Selection Choice.",
1207 "id": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestCreateSelectionChoiceRequest",
1208 "properties": {
1209 "choice": {
1210 "$ref": "GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoice",
1211 "description": "Required. The Choice to create."
1212 },
1213 "fieldId": {
1214 "description": "Required. The Selection Field in which a Choice will be created.",
1215 "type": "string"
1216 }
1217 },
1218 "type": "object"
1219 },
1220 "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDeleteFieldRequest": {
1221 "description": "Request to delete the Field.",
1222 "id": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDeleteFieldRequest",
1223 "properties": {
1224 "id": {
1225 "description": "Required. ID of the Field to delete.",
1226 "type": "string"
1227 }
1228 },
1229 "type": "object"
1230 },
1231 "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDeleteSelectionChoiceRequest": {
1232 "description": "Request to delete a Choice.",
1233 "id": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDeleteSelectionChoiceRequest",
1234 "properties": {
1235 "fieldId": {
1236 "description": "Required. The Selection Field from which a Choice will be deleted.",
1237 "type": "string"
1238 },
1239 "id": {
1240 "description": "Required. Choice to delete.",
1241 "type": "string"
1242 }
1243 },
1244 "type": "object"
1245 },
1246 "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDisableFieldRequest": {
1247 "description": "Request to disable the Field.",
1248 "id": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDisableFieldRequest",
1249 "properties": {
1250 "disabledPolicy": {
1251 "$ref": "GoogleAppsDriveLabelsV2betaLifecycleDisabledPolicy",
1252 "description": "Required. Field Disabled Policy."
1253 },
1254 "id": {
1255 "description": "Required. Key of the Field to disable.",
1256 "type": "string"
1257 },
1258 "updateMask": {
1259 "description": "The fields that should be updated. At least one field must be specified. The root `disabled_policy` is implied and should not be specified. A single `*` can be used as short-hand for updating every field.",
1260 "format": "google-fieldmask",
1261 "type": "string"
1262 }
1263 },
1264 "type": "object"
1265 },
1266 "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDisableSelectionChoiceRequest": {
1267 "description": "Request to disable a Choice.",
1268 "id": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDisableSelectionChoiceRequest",
1269 "properties": {
1270 "disabledPolicy": {
1271 "$ref": "GoogleAppsDriveLabelsV2betaLifecycleDisabledPolicy",
1272 "description": "Required. The disabled policy to update."
1273 },
1274 "fieldId": {
1275 "description": "Required. The Selection Field in which a Choice will be disabled.",
1276 "type": "string"
1277 },
1278 "id": {
1279 "description": "Required. Choice to disable.",
1280 "type": "string"
1281 },
1282 "updateMask": {
1283 "description": "The fields that should be updated. At least one field must be specified. The root `disabled_policy` is implied and should not be specified. A single `*` can be used as short-hand for updating every field.",
1284 "format": "google-fieldmask",
1285 "type": "string"
1286 }
1287 },
1288 "type": "object"
1289 },
1290 "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestEnableFieldRequest": {
1291 "description": "Request to enable the Field.",
1292 "id": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestEnableFieldRequest",
1293 "properties": {
1294 "id": {
1295 "description": "Required. ID of the Field to enable.",
1296 "type": "string"
1297 }
1298 },
1299 "type": "object"
1300 },
1301 "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestEnableSelectionChoiceRequest": {
1302 "description": "Request to enable a Choice.",
1303 "id": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestEnableSelectionChoiceRequest",
1304 "properties": {
1305 "fieldId": {
1306 "description": "Required. The Selection Field in which a Choice will be enabled.",
1307 "type": "string"
1308 },
1309 "id": {
1310 "description": "Required. Choice to enable.",
1311 "type": "string"
1312 }
1313 },
1314 "type": "object"
1315 },
1316 "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestRequest": {
1317 "description": "A single kind of update to apply to a Label.",
1318 "id": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestRequest",
1319 "properties": {
1320 "createField": {
1321 "$ref": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestCreateFieldRequest",
1322 "description": "Creates a new Field."
1323 },
1324 "createSelectionChoice": {
1325 "$ref": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestCreateSelectionChoiceRequest",
1326 "description": "Creates Choice within a Selection field."
1327 },
1328 "deleteField": {
1329 "$ref": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDeleteFieldRequest",
1330 "description": "Deletes a Field from the label."
1331 },
1332 "deleteSelectionChoice": {
1333 "$ref": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDeleteSelectionChoiceRequest",
1334 "description": "Delete a Choice within a Selection Field."
1335 },
1336 "disableField": {
1337 "$ref": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDisableFieldRequest",
1338 "description": "Disables the Field."
1339 },
1340 "disableSelectionChoice": {
1341 "$ref": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDisableSelectionChoiceRequest",
1342 "description": "Disable a Choice within a Selection Field."
1343 },
1344 "enableField": {
1345 "$ref": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestEnableFieldRequest",
1346 "description": "Enables the Field."
1347 },
1348 "enableSelectionChoice": {
1349 "$ref": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestEnableSelectionChoiceRequest",
1350 "description": "Enable a Choice within a Selection Field."
1351 },
1352 "updateField": {
1353 "$ref": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateFieldPropertiesRequest",
1354 "description": "Updates basic properties of a Field."
1355 },
1356 "updateFieldType": {
1357 "$ref": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateFieldTypeRequest",
1358 "description": "Update Field type and/or type options."
1359 },
1360 "updateLabel": {
1361 "$ref": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateLabelPropertiesRequest",
1362 "description": "Updates the Label properties."
1363 },
1364 "updateSelectionChoiceProperties": {
1365 "$ref": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest",
1366 "description": "Update a Choice properties within a Selection Field."
1367 }
1368 },
1369 "type": "object"
1370 },
1371 "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateFieldPropertiesRequest": {
1372 "description": "Request to update Field properties.",
1373 "id": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateFieldPropertiesRequest",
1374 "properties": {
1375 "id": {
1376 "description": "Required. The Field to update.",
1377 "type": "string"
1378 },
1379 "properties": {
1380 "$ref": "GoogleAppsDriveLabelsV2betaFieldProperties",
1381 "description": "Required. Basic Field properties."
1382 },
1383 "updateMask": {
1384 "description": "The fields that should be updated. At least one field must be specified. The root `properties` is implied and should not be specified. A single `*` can be used as short-hand for updating every field.",
1385 "format": "google-fieldmask",
1386 "type": "string"
1387 }
1388 },
1389 "type": "object"
1390 },
1391 "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateFieldTypeRequest": {
1392 "description": "Request to change the type of a Field.",
1393 "id": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateFieldTypeRequest",
1394 "properties": {
1395 "dateOptions": {
1396 "$ref": "GoogleAppsDriveLabelsV2betaFieldDateOptions",
1397 "description": "Update field to Date."
1398 },
1399 "id": {
1400 "description": "Required. The Field to update.",
1401 "type": "string"
1402 },
1403 "integerOptions": {
1404 "$ref": "GoogleAppsDriveLabelsV2betaFieldIntegerOptions",
1405 "description": "Update field to Integer."
1406 },
1407 "selectionOptions": {
1408 "$ref": "GoogleAppsDriveLabelsV2betaFieldSelectionOptions",
1409 "description": "Update field to Selection."
1410 },
1411 "textOptions": {
1412 "$ref": "GoogleAppsDriveLabelsV2betaFieldTextOptions",
1413 "description": "Update field to Text."
1414 },
1415 "updateMask": {
1416 "description": "The fields that should be updated. At least one field must be specified. The root of `type_options` is implied and should not be specified. A single `*` can be used as short-hand for updating every field.",
1417 "format": "google-fieldmask",
1418 "type": "string"
1419 },
1420 "userOptions": {
1421 "$ref": "GoogleAppsDriveLabelsV2betaFieldUserOptions",
1422 "description": "Update field to User."
1423 }
1424 },
1425 "type": "object"
1426 },
1427 "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateLabelPropertiesRequest": {
1428 "description": "Updates basic properties of a Label.",
1429 "id": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateLabelPropertiesRequest",
1430 "properties": {
1431 "properties": {
1432 "$ref": "GoogleAppsDriveLabelsV2betaLabelProperties",
1433 "description": "Required. Label properties to update."
1434 },
1435 "updateMask": {
1436 "description": "The fields that should be updated. At least one field must be specified. The root `label_properties` is implied and should not be specified. A single `*` can be used as short-hand for updating every field.",
1437 "format": "google-fieldmask",
1438 "type": "string"
1439 }
1440 },
1441 "type": "object"
1442 },
1443 "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest": {
1444 "description": "Request to update a Choice properties.",
1445 "id": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest",
1446 "properties": {
1447 "fieldId": {
1448 "description": "Required. The Selection Field to update.",
1449 "type": "string"
1450 },
1451 "id": {
1452 "description": "Required. The Choice to update.",
1453 "type": "string"
1454 },
1455 "properties": {
1456 "$ref": "GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceProperties",
1457 "description": "Required. The Choice properties to update."
1458 },
1459 "updateMask": {
1460 "description": "The fields that should be updated. At least one field must be specified. The root `properties` is implied and should not be specified. A single `*` can be used as short-hand for updating every field.",
1461 "format": "google-fieldmask",
1462 "type": "string"
1463 }
1464 },
1465 "type": "object"
1466 },
1467 "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponse": {
1468 "description": "Response for Label update.",
1469 "id": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponse",
1470 "properties": {
1471 "responses": {
1472 "description": "The reply of the updates. This maps 1:1 with the updates, although responses to some requests may be empty.",
1473 "items": {
1474 "$ref": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseResponse"
1475 },
1476 "type": "array"
1477 },
1478 "updatedLabel": {
1479 "$ref": "GoogleAppsDriveLabelsV2betaLabel",
1480 "description": "The label after updates were applied. This is only set if [BatchUpdateLabelResponse2.include_label_in_response] is `true` and there were no errors."
1481 }
1482 },
1483 "type": "object"
1484 },
1485 "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseCreateFieldResponse": {
1486 "description": "Response following Field create.",
1487 "id": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseCreateFieldResponse",
1488 "properties": {
1489 "id": {
1490 "description": "The field of the created field. When left blank in a create request, a key will be autogenerated and can be identified here.",
1491 "type": "string"
1492 },
1493 "priority": {
1494 "description": "The priority of the created field. The priority may change from what was specified to assure contiguous priorities between fields (1-n).",
1495 "format": "int32",
1496 "type": "integer"
1497 }
1498 },
1499 "type": "object"
1500 },
1501 "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseCreateSelectionChoiceResponse": {
1502 "description": "Response following Selection Choice create.",
1503 "id": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseCreateSelectionChoiceResponse",
1504 "properties": {
1505 "fieldId": {
1506 "description": "The server-generated id of the field.",
1507 "type": "string"
1508 },
1509 "id": {
1510 "description": "The server-generated ID of the created choice within the Field",
1511 "type": "string"
1512 }
1513 },
1514 "type": "object"
1515 },
1516 "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseDeleteFieldResponse": {
1517 "description": "Response following Field delete.",
1518 "id": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseDeleteFieldResponse",
1519 "properties": {},
1520 "type": "object"
1521 },
1522 "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseDeleteSelectionChoiceResponse": {
1523 "description": "Response following Choice delete.",
1524 "id": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseDeleteSelectionChoiceResponse",
1525 "properties": {},
1526 "type": "object"
1527 },
1528 "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseDisableFieldResponse": {
1529 "description": "Response following Field disable.",
1530 "id": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseDisableFieldResponse",
1531 "properties": {},
1532 "type": "object"
1533 },
1534 "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseDisableSelectionChoiceResponse": {
1535 "description": "Response following Choice disable.",
1536 "id": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseDisableSelectionChoiceResponse",
1537 "properties": {},
1538 "type": "object"
1539 },
1540 "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseEnableFieldResponse": {
1541 "description": "Response following Field enable.",
1542 "id": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseEnableFieldResponse",
1543 "properties": {},
1544 "type": "object"
1545 },
1546 "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseEnableSelectionChoiceResponse": {
1547 "description": "Response following Choice enable.",
1548 "id": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseEnableSelectionChoiceResponse",
1549 "properties": {},
1550 "type": "object"
1551 },
1552 "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseResponse": {
1553 "description": "A single response from an update.",
1554 "id": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseResponse",
1555 "properties": {
1556 "createField": {
1557 "$ref": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseCreateFieldResponse",
1558 "description": "Creates a new Field."
1559 },
1560 "createSelectionChoice": {
1561 "$ref": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseCreateSelectionChoiceResponse",
1562 "description": "Creates a new selection list option to add to a Selection Field."
1563 },
1564 "deleteField": {
1565 "$ref": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseDeleteFieldResponse",
1566 "description": "Deletes a Field from the label."
1567 },
1568 "deleteSelectionChoice": {
1569 "$ref": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseDeleteSelectionChoiceResponse",
1570 "description": "Deletes a Choice from a Selection Field."
1571 },
1572 "disableField": {
1573 "$ref": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseDisableFieldResponse",
1574 "description": "Disables Field."
1575 },
1576 "disableSelectionChoice": {
1577 "$ref": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseDisableSelectionChoiceResponse",
1578 "description": "Disables a Choice within a Selection Field."
1579 },
1580 "enableField": {
1581 "$ref": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseEnableFieldResponse",
1582 "description": "Enables Field."
1583 },
1584 "enableSelectionChoice": {
1585 "$ref": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseEnableSelectionChoiceResponse",
1586 "description": "Enables a Choice within a Selection Field."
1587 },
1588 "updateField": {
1589 "$ref": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseUpdateFieldPropertiesResponse",
1590 "description": "Updates basic properties of a Field."
1591 },
1592 "updateFieldType": {
1593 "$ref": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseUpdateFieldTypeResponse",
1594 "description": "Update Field type and/or type options."
1595 },
1596 "updateLabel": {
1597 "$ref": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseUpdateLabelPropertiesResponse",
1598 "description": "Updated basic properties of a Label."
1599 },
1600 "updateSelectionChoiceProperties": {
1601 "$ref": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse",
1602 "description": "Updates a Choice within a Selection Field."
1603 }
1604 },
1605 "type": "object"
1606 },
1607 "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseUpdateFieldPropertiesResponse": {
1608 "description": "Response following update to Field properties.",
1609 "id": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseUpdateFieldPropertiesResponse",
1610 "properties": {
1611 "priority": {
1612 "description": "The priority of the updated field. The priority may change from what was specified to assure contiguous priorities between fields (1-n).",
1613 "format": "int32",
1614 "type": "integer"
1615 }
1616 },
1617 "type": "object"
1618 },
1619 "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseUpdateFieldTypeResponse": {
1620 "description": "Response following update to Field type.",
1621 "id": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseUpdateFieldTypeResponse",
1622 "properties": {},
1623 "type": "object"
1624 },
1625 "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseUpdateLabelPropertiesResponse": {
1626 "description": "Response following update to Label properties.",
1627 "id": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseUpdateLabelPropertiesResponse",
1628 "properties": {},
1629 "type": "object"
1630 },
1631 "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse": {
1632 "description": "Response following update to Selection Choice properties.",
1633 "id": "GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse",
1634 "properties": {
1635 "priority": {
1636 "description": "The priority of the updated choice. The priority may change from what was specified to assure contiguous priorities between choices (1-n).",
1637 "format": "int32",
1638 "type": "integer"
1639 }
1640 },
1641 "type": "object"
1642 },
1643 "GoogleAppsDriveLabelsV2betaDisableLabelRequest": {
1644 "description": "Request to deprecate a published Label.",
1645 "id": "GoogleAppsDriveLabelsV2betaDisableLabelRequest",
1646 "properties": {
1647 "disabledPolicy": {
1648 "$ref": "GoogleAppsDriveLabelsV2betaLifecycleDisabledPolicy",
1649 "description": "Disabled policy to use."
1650 },
1651 "languageCode": {
1652 "description": "The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language will be used.",
1653 "type": "string"
1654 },
1655 "updateMask": {
1656 "description": "The fields that should be updated. At least one field must be specified. The root `disabled_policy` is implied and should not be specified. A single `*` can be used as short-hand for updating every field.",
1657 "format": "google-fieldmask",
1658 "type": "string"
1659 },
1660 "useAdminAccess": {
1661 "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.",
1662 "type": "boolean"
1663 },
1664 "writeControl": {
1665 "$ref": "GoogleAppsDriveLabelsV2betaWriteControl",
1666 "description": "Provides control over how write requests are executed. Defaults to unset, which means last write wins."
1667 }
1668 },
1669 "type": "object"
1670 },
1671 "GoogleAppsDriveLabelsV2betaEnableLabelRequest": {
1672 "description": "Request to enable a label.",
1673 "id": "GoogleAppsDriveLabelsV2betaEnableLabelRequest",
1674 "properties": {
1675 "languageCode": {
1676 "description": "The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language will be used.",
1677 "type": "string"
1678 },
1679 "useAdminAccess": {
1680 "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.",
1681 "type": "boolean"
1682 },
1683 "writeControl": {
1684 "$ref": "GoogleAppsDriveLabelsV2betaWriteControl",
1685 "description": "Provides control over how write requests are executed. Defaults to unset, which means last write wins."
1686 }
1687 },
1688 "type": "object"
1689 },
1690 "GoogleAppsDriveLabelsV2betaField": {
1691 "description": "Defines a field that has a display name, data type, and other configuration options. This field defines the kind of metadata that may be set on a Drive item.",
1692 "id": "GoogleAppsDriveLabelsV2betaField",
1693 "properties": {
1694 "appliedCapabilities": {
1695 "$ref": "GoogleAppsDriveLabelsV2betaFieldAppliedCapabilities",
1696 "description": "Output only. The capabilities this user has on this field and its value when the label is applied on Drive items.",
1697 "readOnly": true
1698 },
1699 "createTime": {
1700 "description": "Output only. The time this field was created.",
1701 "format": "google-datetime",
1702 "readOnly": true,
1703 "type": "string"
1704 },
1705 "creator": {
1706 "$ref": "GoogleAppsDriveLabelsV2betaUserInfo",
1707 "description": "Output only. The user who created this field.",
1708 "readOnly": true
1709 },
1710 "dateOptions": {
1711 "$ref": "GoogleAppsDriveLabelsV2betaFieldDateOptions",
1712 "description": "Date field options."
1713 },
1714 "disableTime": {
1715 "description": "Output only. The time this field was disabled. This value has no meaning when the field is not disabled.",
1716 "format": "google-datetime",
1717 "readOnly": true,
1718 "type": "string"
1719 },
1720 "disabler": {
1721 "$ref": "GoogleAppsDriveLabelsV2betaUserInfo",
1722 "description": "Output only. The user who disabled this field. This value has no meaning when the field is not disabled.",
1723 "readOnly": true
1724 },
1725 "displayHints": {
1726 "$ref": "GoogleAppsDriveLabelsV2betaFieldDisplayHints",
1727 "description": "Output only. UI display hints for rendering a field.",
1728 "readOnly": true
1729 },
1730 "id": {
1731 "description": "Output only. The key of a field, unique within a label or library. This value is autogenerated. Matches the regex: `([a-zA-Z0-9])+`",
1732 "readOnly": true,
1733 "type": "string"
1734 },
1735 "integerOptions": {
1736 "$ref": "GoogleAppsDriveLabelsV2betaFieldIntegerOptions",
1737 "description": "Integer field options."
1738 },
1739 "lifecycle": {
1740 "$ref": "GoogleAppsDriveLabelsV2betaLifecycle",
1741 "description": "Output only. The lifecycle of this field.",
1742 "readOnly": true
1743 },
1744 "lockStatus": {
1745 "$ref": "GoogleAppsDriveLabelsV2betaLockStatus",
1746 "description": "Output only. The LockStatus of this field.",
1747 "readOnly": true
1748 },
1749 "properties": {
1750 "$ref": "GoogleAppsDriveLabelsV2betaFieldProperties",
1751 "description": "The basic properties of the field."
1752 },
1753 "publisher": {
1754 "$ref": "GoogleAppsDriveLabelsV2betaUserInfo",
1755 "description": "Output only. The user who published this field. This value has no meaning when the field is not published.",
1756 "readOnly": true
1757 },
1758 "queryKey": {
1759 "description": "Output only. The key to use when constructing Drive search queries to find files based on values defined for this field on files. For example, \"`{query_key}` \u003e 2001-01-01\".",
1760 "readOnly": true,
1761 "type": "string"
1762 },
1763 "schemaCapabilities": {
1764 "$ref": "GoogleAppsDriveLabelsV2betaFieldSchemaCapabilities",
1765 "description": "Output only. The capabilities this user has when editing this field.",
1766 "readOnly": true
1767 },
1768 "selectionOptions": {
1769 "$ref": "GoogleAppsDriveLabelsV2betaFieldSelectionOptions",
1770 "description": "Selection field options."
1771 },
1772 "textOptions": {
1773 "$ref": "GoogleAppsDriveLabelsV2betaFieldTextOptions",
1774 "description": "Text field options."
1775 },
1776 "updateTime": {
1777 "description": "Output only. The time this field was updated.",
1778 "format": "google-datetime",
1779 "readOnly": true,
1780 "type": "string"
1781 },
1782 "updater": {
1783 "$ref": "GoogleAppsDriveLabelsV2betaUserInfo",
1784 "description": "Output only. The user who modified this field.",
1785 "readOnly": true
1786 },
1787 "userOptions": {
1788 "$ref": "GoogleAppsDriveLabelsV2betaFieldUserOptions",
1789 "description": "User field options."
1790 }
1791 },
1792 "type": "object"
1793 },
1794 "GoogleAppsDriveLabelsV2betaFieldAppliedCapabilities": {
1795 "description": "The capabilities related to this field on applied metadata.",
1796 "id": "GoogleAppsDriveLabelsV2betaFieldAppliedCapabilities",
1797 "properties": {
1798 "canRead": {
1799 "description": "Whether the user can read related applied metadata on items.",
1800 "type": "boolean"
1801 },
1802 "canSearch": {
1803 "description": "Whether the user can search for Drive items referencing this field.",
1804 "type": "boolean"
1805 },
1806 "canWrite": {
1807 "description": "Whether the user can set this field on Drive items.",
1808 "type": "boolean"
1809 }
1810 },
1811 "type": "object"
1812 },
1813 "GoogleAppsDriveLabelsV2betaFieldDateOptions": {
1814 "description": "Options for the date field type.",
1815 "id": "GoogleAppsDriveLabelsV2betaFieldDateOptions",
1816 "properties": {
1817 "dateFormat": {
1818 "description": "Output only. ICU date format.",
1819 "readOnly": true,
1820 "type": "string"
1821 },
1822 "dateFormatType": {
1823 "description": "Localized date formatting option. Field values are rendered in this format according to their locale.",
1824 "enum": [
1825 "DATE_FORMAT_UNSPECIFIED",
1826 "LONG_DATE",
1827 "SHORT_DATE"
1828 ],
1829 "enumDescriptions": [
1830 "Date format unspecified.",
1831 "Includes full month name. For example, January 12, 1999 (MMMM d, y)",
1832 "Short, numeric, representation. For example, 12/13/99 (M/d/yy)"
1833 ],
1834 "type": "string"
1835 },
1836 "maxValue": {
1837 "$ref": "GoogleTypeDate",
1838 "description": "Output only. Maximum valid value (year, month, day).",
1839 "readOnly": true
1840 },
1841 "minValue": {
1842 "$ref": "GoogleTypeDate",
1843 "description": "Output only. Minimum valid value (year, month, day).",
1844 "readOnly": true
1845 }
1846 },
1847 "type": "object"
1848 },
1849 "GoogleAppsDriveLabelsV2betaFieldDisplayHints": {
1850 "description": "UI display hints for rendering a field.",
1851 "id": "GoogleAppsDriveLabelsV2betaFieldDisplayHints",
1852 "properties": {
1853 "disabled": {
1854 "description": "Whether the field should be shown in the UI as disabled.",
1855 "type": "boolean"
1856 },
1857 "hiddenInSearch": {
1858 "description": "This field should be hidden in the search menu when searching for Drive items.",
1859 "type": "boolean"
1860 },
1861 "required": {
1862 "description": "Whether the field should be shown as required in the UI.",
1863 "type": "boolean"
1864 },
1865 "shownInApply": {
1866 "description": "This field should be shown in the apply menu when applying values to a Drive item.",
1867 "type": "boolean"
1868 }
1869 },
1870 "type": "object"
1871 },
1872 "GoogleAppsDriveLabelsV2betaFieldIntegerOptions": {
1873 "description": "Options for the Integer field type.",
1874 "id": "GoogleAppsDriveLabelsV2betaFieldIntegerOptions",
1875 "properties": {
1876 "maxValue": {
1877 "description": "Output only. The maximum valid value for the integer field.",
1878 "format": "int64",
1879 "readOnly": true,
1880 "type": "string"
1881 },
1882 "minValue": {
1883 "description": "Output only. The minimum valid value for the integer field.",
1884 "format": "int64",
1885 "readOnly": true,
1886 "type": "string"
1887 }
1888 },
1889 "type": "object"
1890 },
1891 "GoogleAppsDriveLabelsV2betaFieldLimits": {
1892 "description": "Field constants governing the structure of a Field; such as, the maximum title length, minimum and maximum field values or length, etc.",
1893 "id": "GoogleAppsDriveLabelsV2betaFieldLimits",
1894 "properties": {
1895 "dateLimits": {
1896 "$ref": "GoogleAppsDriveLabelsV2betaDateLimits",
1897 "description": "Date Field limits."
1898 },
1899 "integerLimits": {
1900 "$ref": "GoogleAppsDriveLabelsV2betaIntegerLimits",
1901 "description": "Integer Field limits."
1902 },
1903 "longTextLimits": {
1904 "$ref": "GoogleAppsDriveLabelsV2betaLongTextLimits",
1905 "description": "Long text Field limits."
1906 },
1907 "maxDescriptionLength": {
1908 "description": "Limits for Field description, also called help text.",
1909 "format": "int32",
1910 "type": "integer"
1911 },
1912 "maxDisplayNameLength": {
1913 "description": "Limits for Field title.",
1914 "format": "int32",
1915 "type": "integer"
1916 },
1917 "maxIdLength": {
1918 "description": "Max length for the id.",
1919 "format": "int32",
1920 "type": "integer"
1921 },
1922 "selectionLimits": {
1923 "$ref": "GoogleAppsDriveLabelsV2betaSelectionLimits",
1924 "description": "Selection Field limits."
1925 },
1926 "textLimits": {
1927 "$ref": "GoogleAppsDriveLabelsV2betaTextLimits",
1928 "description": "The relevant limits for the specified Field.Type. Text Field limits."
1929 },
1930 "userLimits": {
1931 "$ref": "GoogleAppsDriveLabelsV2betaUserLimits",
1932 "description": "User Field limits."
1933 }
1934 },
1935 "type": "object"
1936 },
1937 "GoogleAppsDriveLabelsV2betaFieldListOptions": {
1938 "description": "Options for a multi-valued variant of an associated field type.",
1939 "id": "GoogleAppsDriveLabelsV2betaFieldListOptions",
1940 "properties": {
1941 "maxEntries": {
1942 "description": "Maximum number of entries permitted.",
1943 "format": "int32",
1944 "type": "integer"
1945 }
1946 },
1947 "type": "object"
1948 },
1949 "GoogleAppsDriveLabelsV2betaFieldProperties": {
1950 "description": "The basic properties of the field.",
1951 "id": "GoogleAppsDriveLabelsV2betaFieldProperties",
1952 "properties": {
1953 "displayName": {
1954 "description": "Required. The display text to show in the UI identifying this field.",
1955 "type": "string"
1956 },
1957 "insertBeforeField": {
1958 "description": "Input only. Insert or move this field before the indicated field. If empty, the field is placed at the end of the list.",
1959 "type": "string"
1960 },
1961 "required": {
1962 "description": "Whether the field should be marked as required.",
1963 "type": "boolean"
1964 }
1965 },
1966 "type": "object"
1967 },
1968 "GoogleAppsDriveLabelsV2betaFieldSchemaCapabilities": {
1969 "description": "The capabilities related to this field when editing the field.",
1970 "id": "GoogleAppsDriveLabelsV2betaFieldSchemaCapabilities",
1971 "properties": {
1972 "canDelete": {
1973 "description": "Whether the user can delete this field. The user must have permission and the field must be deprecated.",
1974 "type": "boolean"
1975 },
1976 "canDisable": {
1977 "description": "Whether the user can disable this field. The user must have permission and this field must not already be disabled.",
1978 "type": "boolean"
1979 },
1980 "canEnable": {
1981 "description": "Whether the user can enable this field. The user must have permission and this field must be disabled.",
1982 "type": "boolean"
1983 },
1984 "canUpdate": {
1985 "description": "Whether the user can change this field.",
1986 "type": "boolean"
1987 }
1988 },
1989 "type": "object"
1990 },
1991 "GoogleAppsDriveLabelsV2betaFieldSelectionOptions": {
1992 "description": "Options for the selection field type.",
1993 "id": "GoogleAppsDriveLabelsV2betaFieldSelectionOptions",
1994 "properties": {
1995 "choices": {
1996 "description": "The options available for this selection field. The list order is consistent, and modified with `insert_before_choice`.",
1997 "items": {
1998 "$ref": "GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoice"
1999 },
2000 "type": "array"
2001 },
2002 "listOptions": {
2003 "$ref": "GoogleAppsDriveLabelsV2betaFieldListOptions",
2004 "description": "When specified, indicates this field supports a list of values. Once the field is published, this cannot be changed."
2005 }
2006 },
2007 "type": "object"
2008 },
2009 "GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoice": {
2010 "description": "Selection field choice.",
2011 "id": "GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoice",
2012 "properties": {
2013 "appliedCapabilities": {
2014 "$ref": "GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceAppliedCapabilities",
2015 "description": "Output only. The capabilities related to this choice on applied metadata.",
2016 "readOnly": true
2017 },
2018 "createTime": {
2019 "description": "Output only. The time this choice was created.",
2020 "format": "google-datetime",
2021 "readOnly": true,
2022 "type": "string"
2023 },
2024 "creator": {
2025 "$ref": "GoogleAppsDriveLabelsV2betaUserInfo",
2026 "description": "Output only. The user who created this choice.",
2027 "readOnly": true
2028 },
2029 "disableTime": {
2030 "description": "Output only. The time this choice was disabled. This value has no meaning when the choice is not disabled.",
2031 "format": "google-datetime",
2032 "readOnly": true,
2033 "type": "string"
2034 },
2035 "disabler": {
2036 "$ref": "GoogleAppsDriveLabelsV2betaUserInfo",
2037 "description": "Output only. The user who disabled this choice. This value has no meaning when the option is not disabled.",
2038 "readOnly": true
2039 },
2040 "displayHints": {
2041 "$ref": "GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceDisplayHints",
2042 "description": "Output only. UI display hints for rendering a choice.",
2043 "readOnly": true
2044 },
2045 "id": {
2046 "description": "The unique value of the choice. This ID is autogenerated. Matches the regex: `([a-zA-Z0-9_])+`.",
2047 "type": "string"
2048 },
2049 "lifecycle": {
2050 "$ref": "GoogleAppsDriveLabelsV2betaLifecycle",
2051 "description": "Output only. Lifecycle of the choice.",
2052 "readOnly": true
2053 },
2054 "lockStatus": {
2055 "$ref": "GoogleAppsDriveLabelsV2betaLockStatus",
2056 "description": "Output only. The LockStatus of this choice.",
2057 "readOnly": true
2058 },
2059 "properties": {
2060 "$ref": "GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceProperties",
2061 "description": "Basic properties of the choice."
2062 },
2063 "publishTime": {
2064 "description": "Output only. The time this choice was published. This value has no meaning when the choice is not published.",
2065 "format": "google-datetime",
2066 "readOnly": true,
2067 "type": "string"
2068 },
2069 "publisher": {
2070 "$ref": "GoogleAppsDriveLabelsV2betaUserInfo",
2071 "description": "Output only. The user who published this choice. This value has no meaning when the choice is not published.",
2072 "readOnly": true
2073 },
2074 "schemaCapabilities": {
2075 "$ref": "GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceSchemaCapabilities",
2076 "description": "Output only. The capabilities related to this option when editing the option.",
2077 "readOnly": true
2078 },
2079 "updateTime": {
2080 "description": "Output only. The time this choice was updated last.",
2081 "format": "google-datetime",
2082 "readOnly": true,
2083 "type": "string"
2084 },
2085 "updater": {
2086 "$ref": "GoogleAppsDriveLabelsV2betaUserInfo",
2087 "description": "Output only. The user who updated this choice last.",
2088 "readOnly": true
2089 }
2090 },
2091 "type": "object"
2092 },
2093 "GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceAppliedCapabilities": {
2094 "description": "The capabilities related to this choice on applied metadata.",
2095 "id": "GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceAppliedCapabilities",
2096 "properties": {
2097 "canRead": {
2098 "description": "Whether the user can read related applied metadata on items.",
2099 "type": "boolean"
2100 },
2101 "canSearch": {
2102 "description": "Whether the user can use this choice in search queries.",
2103 "type": "boolean"
2104 },
2105 "canSelect": {
2106 "description": "Whether the user can select this choice on an item.",
2107 "type": "boolean"
2108 }
2109 },
2110 "type": "object"
2111 },
2112 "GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceDisplayHints": {
2113 "description": "UI display hints for rendering an option.",
2114 "id": "GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceDisplayHints",
2115 "properties": {
2116 "badgeColors": {
2117 "$ref": "GoogleAppsDriveLabelsV2betaBadgeColors",
2118 "description": "The colors to use for the badge. Changed to Google Material colors based on the chosen `properties.badge_config.color`."
2119 },
2120 "badgePriority": {
2121 "description": "The priority of this badge. Used to compare and sort between multiple badges. A lower number means the badge should be shown first. When a badging configuration is not present, this will be 0. Otherwise, this will be set to `BadgeConfig.priority_override` or the default heuristic which prefers creation date of the label, and field and option priority.",
2122 "format": "int64",
2123 "type": "string"
2124 },
2125 "darkBadgeColors": {
2126 "$ref": "GoogleAppsDriveLabelsV2betaBadgeColors",
2127 "description": "The dark-mode color to use for the badge. Changed to Google Material colors based on the chosen `properties.badge_config.color`."
2128 },
2129 "disabled": {
2130 "description": "Whether the option should be shown in the UI as disabled.",
2131 "type": "boolean"
2132 },
2133 "hiddenInSearch": {
2134 "description": "This option should be hidden in the search menu when searching for Drive items.",
2135 "type": "boolean"
2136 },
2137 "shownInApply": {
2138 "description": "This option should be shown in the apply menu when applying values to a Drive item.",
2139 "type": "boolean"
2140 }
2141 },
2142 "type": "object"
2143 },
2144 "GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceProperties": {
2145 "description": "Basic properties of the choice.",
2146 "id": "GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceProperties",
2147 "properties": {
2148 "badgeConfig": {
2149 "$ref": "GoogleAppsDriveLabelsV2betaBadgeConfig",
2150 "description": "The badge configuration for this choice. When set, the label that owns this choice is considered a \"badged label\"."
2151 },
2152 "description": {
2153 "description": "The description of this label.",
2154 "type": "string"
2155 },
2156 "displayName": {
2157 "description": "Required. The display text to show in the UI identifying this field.",
2158 "type": "string"
2159 },
2160 "insertBeforeChoice": {
2161 "description": "Input only. Insert or move this choice before the indicated choice. If empty, the choice is placed at the end of the list.",
2162 "type": "string"
2163 }
2164 },
2165 "type": "object"
2166 },
2167 "GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceSchemaCapabilities": {
2168 "description": "The capabilities related to this choice when editing the choice.",
2169 "id": "GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceSchemaCapabilities",
2170 "properties": {
2171 "canDelete": {
2172 "description": "Whether the user can delete this choice.",
2173 "type": "boolean"
2174 },
2175 "canDisable": {
2176 "description": "Whether the user can disable this choice.",
2177 "type": "boolean"
2178 },
2179 "canEnable": {
2180 "description": "Whether the user can enable this choice.",
2181 "type": "boolean"
2182 },
2183 "canUpdate": {
2184 "description": "Whether the user can update this choice.",
2185 "type": "boolean"
2186 }
2187 },
2188 "type": "object"
2189 },
2190 "GoogleAppsDriveLabelsV2betaFieldTextOptions": {
2191 "description": "Options for the Text field type.",
2192 "id": "GoogleAppsDriveLabelsV2betaFieldTextOptions",
2193 "properties": {
2194 "maxLength": {
2195 "description": "Output only. The maximum valid length of values for the text field.",
2196 "format": "int32",
2197 "readOnly": true,
2198 "type": "integer"
2199 },
2200 "minLength": {
2201 "description": "Output only. The minimum valid length of values for the text field.",
2202 "format": "int32",
2203 "readOnly": true,
2204 "type": "integer"
2205 }
2206 },
2207 "type": "object"
2208 },
2209 "GoogleAppsDriveLabelsV2betaFieldUserOptions": {
2210 "description": "Options for the user field type.",
2211 "id": "GoogleAppsDriveLabelsV2betaFieldUserOptions",
2212 "properties": {
2213 "listOptions": {
2214 "$ref": "GoogleAppsDriveLabelsV2betaFieldListOptions",
2215 "description": "When specified, indicates that this field supports a list of values. Once the field is published, this cannot be changed."
2216 }
2217 },
2218 "type": "object"
2219 },
2220 "GoogleAppsDriveLabelsV2betaIntegerLimits": {
2221 "description": "Limits for integer Field type.",
2222 "id": "GoogleAppsDriveLabelsV2betaIntegerLimits",
2223 "properties": {
2224 "maxValue": {
2225 "description": "Maximum value for an integer Field type.",
2226 "format": "int64",
2227 "type": "string"
2228 },
2229 "minValue": {
2230 "description": "Minimum value for an integer Field type.",
2231 "format": "int64",
2232 "type": "string"
2233 }
2234 },
2235 "type": "object"
2236 },
2237 "GoogleAppsDriveLabelsV2betaLabel": {
2238 "description": "A label defines a taxonomy that can be applied to Drive items in order to organize and search across items. Labels can be simple strings, or can contain fields that describe additional metadata that can be further used to organize and search Drive items.",
2239 "id": "GoogleAppsDriveLabelsV2betaLabel",
2240 "properties": {
2241 "appliedCapabilities": {
2242 "$ref": "GoogleAppsDriveLabelsV2betaLabelAppliedCapabilities",
2243 "description": "Output only. The capabilities related to this label on applied metadata.",
2244 "readOnly": true
2245 },
2246 "appliedLabelPolicy": {
2247 "$ref": "GoogleAppsDriveLabelsV2betaLabelAppliedLabelPolicy",
2248 "description": "Output only. Behavior of this label when it's applied to Drive items.",
2249 "readOnly": true
2250 },
2251 "createTime": {
2252 "description": "Output only. The time this label was created.",
2253 "format": "google-datetime",
2254 "readOnly": true,
2255 "type": "string"
2256 },
2257 "creator": {
2258 "$ref": "GoogleAppsDriveLabelsV2betaUserInfo",
2259 "description": "Output only. The user who created this label.",
2260 "readOnly": true
2261 },
2262 "customer": {
2263 "description": "Output only. The customer this label belongs to. For example: \"customers/123abc789.\"",
2264 "readOnly": true,
2265 "type": "string"
2266 },
2267 "disableTime": {
2268 "description": "Output only. The time this label was disabled. This value has no meaning when the label is not disabled.",
2269 "format": "google-datetime",
2270 "readOnly": true,
2271 "type": "string"
2272 },
2273 "disabler": {
2274 "$ref": "GoogleAppsDriveLabelsV2betaUserInfo",
2275 "description": "Output only. The user who disabled this label. This value has no meaning when the label is not disabled.",
2276 "readOnly": true
2277 },
2278 "displayHints": {
2279 "$ref": "GoogleAppsDriveLabelsV2betaLabelDisplayHints",
2280 "description": "Output only. UI display hints for rendering the label.",
2281 "readOnly": true
2282 },
2283 "fields": {
2284 "description": "List of fields in descending priority order.",
2285 "items": {
2286 "$ref": "GoogleAppsDriveLabelsV2betaField"
2287 },
2288 "type": "array"
2289 },
2290 "id": {
2291 "description": "Output only. Globally unique identifier of this label. ID makes up part of the label `name`, but unlike `name`, ID is consistent between revisions. Matches the regex: `([a-zA-Z0-9])+`",
2292 "readOnly": true,
2293 "type": "string"
2294 },
2295 "labelType": {
2296 "description": "Required. The type of label.",
2297 "enum": [
2298 "LABEL_TYPE_UNSPECIFIED",
2299 "SHARED",
2300 "ADMIN",
2301 "GOOGLE_APP"
2302 ],
2303 "enumDescriptions": [
2304 "Unknown label type.",
2305 "Shared labels may be shared with users to apply to Drive items.",
2306 "Admin-owned label. Only creatable and editable by admins. Supports some additional admin-only features.",
2307 "A label owned by an internal Google application rather than a customer. These labels are read-only."
2308 ],
2309 "type": "string"
2310 },
2311 "learnMoreUri": {
2312 "description": "Custom URL to present to users to allow them to learn more about this label and how it should be used.",
2313 "type": "string"
2314 },
2315 "lifecycle": {
2316 "$ref": "GoogleAppsDriveLabelsV2betaLifecycle",
2317 "description": "Output only. The lifecycle state of the label including whether it's published, deprecated, and has draft changes.",
2318 "readOnly": true
2319 },
2320 "lockStatus": {
2321 "$ref": "GoogleAppsDriveLabelsV2betaLockStatus",
2322 "description": "Output only. The LockStatus of this label.",
2323 "readOnly": true
2324 },
2325 "name": {
2326 "description": "Output only. Resource name of the label. Will be in the form of either: `labels/{id}` or `labels/{id}@{revision_id}` depending on the request. See `id` and `revision_id` below.",
2327 "readOnly": true,
2328 "type": "string"
2329 },
2330 "properties": {
2331 "$ref": "GoogleAppsDriveLabelsV2betaLabelProperties",
2332 "description": "Required. The basic properties of the label."
2333 },
2334 "publishTime": {
2335 "description": "Output only. The time this label was published. This value has no meaning when the label is not published.",
2336 "format": "google-datetime",
2337 "readOnly": true,
2338 "type": "string"
2339 },
2340 "publisher": {
2341 "$ref": "GoogleAppsDriveLabelsV2betaUserInfo",
2342 "description": "Output only. The user who published this label. This value has no meaning when the label is not published.",
2343 "readOnly": true
2344 },
2345 "revisionCreateTime": {
2346 "description": "Output only. The time this label revision was created.",
2347 "format": "google-datetime",
2348 "readOnly": true,
2349 "type": "string"
2350 },
2351 "revisionCreator": {
2352 "$ref": "GoogleAppsDriveLabelsV2betaUserInfo",
2353 "description": "Output only. The user who created this label revision.",
2354 "readOnly": true
2355 },
2356 "revisionId": {
2357 "description": "Output only. Revision ID of the label. Revision ID might be part of the label `name` depending on the request issued. A new revision is created whenever revisioned properties of a label are changed. Matches the regex: `([a-zA-Z0-9])+`",
2358 "readOnly": true,
2359 "type": "string"
2360 },
2361 "schemaCapabilities": {
2362 "$ref": "GoogleAppsDriveLabelsV2betaLabelSchemaCapabilities",
2363 "description": "Output only. The capabilities the user has on this label.",
2364 "readOnly": true
2365 }
2366 },
2367 "type": "object"
2368 },
2369 "GoogleAppsDriveLabelsV2betaLabelAppliedCapabilities": {
2370 "description": "The capabilities a user has on this label's applied metadata.",
2371 "id": "GoogleAppsDriveLabelsV2betaLabelAppliedCapabilities",
2372 "properties": {
2373 "canApply": {
2374 "description": "Whether the user can apply this label to items.",
2375 "type": "boolean"
2376 },
2377 "canRead": {
2378 "description": "Whether the user can read applied metadata related to this label.",
2379 "type": "boolean"
2380 },
2381 "canRemove": {
2382 "description": "Whether the user can remove this label from items.",
2383 "type": "boolean"
2384 }
2385 },
2386 "type": "object"
2387 },
2388 "GoogleAppsDriveLabelsV2betaLabelAppliedLabelPolicy": {
2389 "description": "Behavior of this label when it's applied to Drive items.",
2390 "id": "GoogleAppsDriveLabelsV2betaLabelAppliedLabelPolicy",
2391 "properties": {
2392 "copyMode": {
2393 "description": "Indicates how the applied label and field values should be copied when a Drive item is copied.",
2394 "enum": [
2395 "COPY_MODE_UNSPECIFIED",
2396 "DO_NOT_COPY",
2397 "ALWAYS_COPY",
2398 "COPY_APPLIABLE"
2399 ],
2400 "enumDescriptions": [
2401 "Copy mode unspecified.",
2402 "The applied label and field values are not copied by default when the Drive item it's applied to is copied.",
2403 "The applied label and field values are always copied when the Drive item it's applied to is copied. Only admins can use this mode.",
2404 "The applied label and field values are copied if the label is appliable by the user making the copy."
2405 ],
2406 "type": "string"
2407 }
2408 },
2409 "type": "object"
2410 },
2411 "GoogleAppsDriveLabelsV2betaLabelDisplayHints": {
2412 "description": "UI display hints for rendering the label.",
2413 "id": "GoogleAppsDriveLabelsV2betaLabelDisplayHints",
2414 "properties": {
2415 "disabled": {
2416 "description": "Whether the label should be shown in the UI as disabled.",
2417 "type": "boolean"
2418 },
2419 "hiddenInSearch": {
2420 "description": "This label should be hidden in the search menu when searching for Drive items.",
2421 "type": "boolean"
2422 },
2423 "priority": {
2424 "description": "Order to display label in a list.",
2425 "format": "int64",
2426 "type": "string"
2427 },
2428 "shownInApply": {
2429 "description": "This label should be shown in the apply menu when applying values to a Drive item.",
2430 "type": "boolean"
2431 }
2432 },
2433 "type": "object"
2434 },
2435 "GoogleAppsDriveLabelsV2betaLabelLimits": {
2436 "description": "Label constraints governing the structure of a Label; such as, the maximum number of Fields allowed and maximum length of the label title.",
2437 "id": "GoogleAppsDriveLabelsV2betaLabelLimits",
2438 "properties": {
2439 "fieldLimits": {
2440 "$ref": "GoogleAppsDriveLabelsV2betaFieldLimits",
2441 "description": "The limits for Fields."
2442 },
2443 "maxDeletedFields": {
2444 "description": "The maximum number of published Fields that can be deleted.",
2445 "format": "int32",
2446 "type": "integer"
2447 },
2448 "maxDescriptionLength": {
2449 "description": "The maximum number of characters allowed for the description.",
2450 "format": "int32",
2451 "type": "integer"
2452 },
2453 "maxDraftRevisions": {
2454 "description": "The maximum number of draft revisions that will be kept before deleting old drafts.",
2455 "format": "int32",
2456 "type": "integer"
2457 },
2458 "maxFields": {
2459 "description": "The maximum number of Fields allowed within the label.",
2460 "format": "int32",
2461 "type": "integer"
2462 },
2463 "maxTitleLength": {
2464 "description": "The maximum number of characters allowed for the title.",
2465 "format": "int32",
2466 "type": "integer"
2467 },
2468 "name": {
2469 "description": "Resource name.",
2470 "type": "string"
2471 }
2472 },
2473 "type": "object"
2474 },
2475 "GoogleAppsDriveLabelsV2betaLabelLock": {
2476 "description": "A Lock that can be applied to a Label, Field, or Choice.",
2477 "id": "GoogleAppsDriveLabelsV2betaLabelLock",
2478 "properties": {
2479 "capabilities": {
2480 "$ref": "GoogleAppsDriveLabelsV2betaLabelLockCapabilities",
2481 "description": "Output only. The user's capabilities on this LabelLock.",
2482 "readOnly": true
2483 },
2484 "choiceId": {
2485 "description": "The ID of the Selection Field Choice that should be locked. If present, `field_id` must also be present.",
2486 "type": "string"
2487 },
2488 "createTime": {
2489 "description": "Output only. The time this LabelLock was created.",
2490 "format": "google-datetime",
2491 "readOnly": true,
2492 "type": "string"
2493 },
2494 "creator": {
2495 "$ref": "GoogleAppsDriveLabelsV2betaUserInfo",
2496 "description": "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.",
2497 "readOnly": true
2498 },
2499 "deleteTime": {
2500 "description": "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.",
2501 "format": "google-datetime",
2502 "readOnly": true,
2503 "type": "string"
2504 },
2505 "fieldId": {
2506 "description": "The ID of the Field that should be locked. Empty if the whole Label should be locked.",
2507 "type": "string"
2508 },
2509 "name": {
2510 "description": "Output only. Resource name of this LabelLock.",
2511 "readOnly": true,
2512 "type": "string"
2513 },
2514 "state": {
2515 "description": "Output only. This LabelLock's state.",
2516 "enum": [
2517 "STATE_UNSPECIFIED",
2518 "ACTIVE",
2519 "DELETING"
2520 ],
2521 "enumDescriptions": [
2522 "Unknown state.",
2523 "The LabelLock is active and is being enforced by the server.",
2524 "The LabelLock is being deleted. The LabelLock will continue to be enforced by the server until it has been fully removed."
2525 ],
2526 "readOnly": true,
2527 "type": "string"
2528 }
2529 },
2530 "type": "object"
2531 },
2532 "GoogleAppsDriveLabelsV2betaLabelLockCapabilities": {
2533 "description": "A description of a user's capabilities on a LabelLock.",
2534 "id": "GoogleAppsDriveLabelsV2betaLabelLockCapabilities",
2535 "properties": {
2536 "canViewPolicy": {
2537 "description": "True if the user is authorized to view the policy.",
2538 "type": "boolean"
2539 }
2540 },
2541 "type": "object"
2542 },
2543 "GoogleAppsDriveLabelsV2betaLabelPermission": {
2544 "description": "The permission that applies to a principal (user, group, audience) on a label.",
2545 "id": "GoogleAppsDriveLabelsV2betaLabelPermission",
2546 "properties": {
2547 "audience": {
2548 "description": "Audience to grant a role to. The magic value of `audiences/default` may be used to apply the role to the default audience in the context of the organization that owns the Label.",
2549 "type": "string"
2550 },
2551 "email": {
2552 "description": "Specifies the email address for a user or group pricinpal. Not populated for audience principals. User and Group permissions may only be inserted using email address. On update requests, if email address is specified, no principal should be specified.",
2553 "type": "string"
2554 },
2555 "group": {
2556 "description": "Group resource name.",
2557 "type": "string"
2558 },
2559 "name": {
2560 "description": "Resource name of this permission.",
2561 "type": "string"
2562 },
2563 "person": {
2564 "description": "Person resource name.",
2565 "type": "string"
2566 },
2567 "role": {
2568 "description": "The role the principal should have.",
2569 "enum": [
2570 "LABEL_ROLE_UNSPECIFIED",
2571 "READER",
2572 "APPLIER",
2573 "ORGANIZER",
2574 "EDITOR"
2575 ],
2576 "enumDescriptions": [
2577 "Unknown role.",
2578 "A reader can read the label and associated metadata applied to Drive items.",
2579 "An applier can write associated metadata on Drive items in which they also have write access to. Implies `READER`.",
2580 "An organizer can pin this label in shared drives they manage and add new appliers to the label.",
2581 "Editors can make any update including deleting the label which also deletes the associated Drive item metadata. Implies `APPLIER`."
2582 ],
2583 "type": "string"
2584 }
2585 },
2586 "type": "object"
2587 },
2588 "GoogleAppsDriveLabelsV2betaLabelProperties": {
2589 "description": "Basic properties of the label.",
2590 "id": "GoogleAppsDriveLabelsV2betaLabelProperties",
2591 "properties": {
2592 "description": {
2593 "description": "The description of the label.",
2594 "type": "string"
2595 },
2596 "title": {
2597 "description": "Required. Title of the label.",
2598 "type": "string"
2599 }
2600 },
2601 "type": "object"
2602 },
2603 "GoogleAppsDriveLabelsV2betaLabelSchemaCapabilities": {
2604 "description": "The capabilities related to this label when editing the label.",
2605 "id": "GoogleAppsDriveLabelsV2betaLabelSchemaCapabilities",
2606 "properties": {
2607 "canDelete": {
2608 "description": "Whether the user can delete this label. The user must have permission and the label must be disabled.",
2609 "type": "boolean"
2610 },
2611 "canDisable": {
2612 "description": "Whether the user can disable this label. The user must have permission and this label must not already be disabled.",
2613 "type": "boolean"
2614 },
2615 "canEnable": {
2616 "description": "Whether the user can enable this label. The user must have permission and this label must be disabled.",
2617 "type": "boolean"
2618 },
2619 "canUpdate": {
2620 "description": "Whether the user can change this label.",
2621 "type": "boolean"
2622 }
2623 },
2624 "type": "object"
2625 },
2626 "GoogleAppsDriveLabelsV2betaLifecycle": {
2627 "description": "The lifecycle state of an object, such as label, field, or choice. The lifecycle enforces the following transitions: * `UNPUBLISHED_DRAFT` (starting state) * `UNPUBLISHED_DRAFT` -\u003e `PUBLISHED` * `UNPUBLISHED_DRAFT` -\u003e (Deleted) * `PUBLISHED` -\u003e `DISABLED` * `DISABLED` -\u003e `PUBLISHED` * `DISABLED` -\u003e (Deleted) The published and disabled states have some distinct characteristics: * Published—Some kinds of changes might be made to an object in this state, in which case `has_unpublished_changes` will be true. Also, some kinds of changes are not permitted. Generally, any change that would invalidate or cause new restrictions on existing metadata related to the label are rejected. * Disabled—When disabled, the configured `DisabledPolicy` takes effect.",
2628 "id": "GoogleAppsDriveLabelsV2betaLifecycle",
2629 "properties": {
2630 "disabledPolicy": {
2631 "$ref": "GoogleAppsDriveLabelsV2betaLifecycleDisabledPolicy",
2632 "description": "The policy that governs how to show a disabled label, field, or selection choice."
2633 },
2634 "hasUnpublishedChanges": {
2635 "description": "Output only. Whether the object associated with this lifecycle has unpublished changes.",
2636 "readOnly": true,
2637 "type": "boolean"
2638 },
2639 "state": {
2640 "description": "Output only. The state of the object associated with this lifecycle.",
2641 "enum": [
2642 "STATE_UNSPECIFIED",
2643 "UNPUBLISHED_DRAFT",
2644 "PUBLISHED",
2645 "DISABLED",
2646 "DELETED"
2647 ],
2648 "enumDescriptions": [
2649 "Unknown State.",
2650 "The initial state of an object. Once published, the object can never return to this state. Once an object is published, certain kinds of changes are no longer permitted.",
2651 "The object has been published. The object might have unpublished draft changes as indicated by `has_unpublished_changes`.",
2652 "The object has been published and has since been disabled. The object might have unpublished draft changes as indicated by `has_unpublished_changes`.",
2653 "The object has been deleted."
2654 ],
2655 "readOnly": true,
2656 "type": "string"
2657 }
2658 },
2659 "type": "object"
2660 },
2661 "GoogleAppsDriveLabelsV2betaLifecycleDisabledPolicy": {
2662 "description": "The policy that governs how to treat a disabled label, field, or selection choice in different contexts.",
2663 "id": "GoogleAppsDriveLabelsV2betaLifecycleDisabledPolicy",
2664 "properties": {
2665 "hideInSearch": {
2666 "description": "Whether to hide this disabled object in the search menu for Drive items. * When `false`, the object is generally shown in the UI as disabled but it appears in the search results when searching for Drive items. * When `true`, the object is generally hidden in the UI when searching for Drive items.",
2667 "type": "boolean"
2668 },
2669 "showInApply": {
2670 "description": "Whether to show this disabled object in the apply menu on Drive items. * When `true`, the object is generally shown in the UI as disabled and is unselectable. * When `false`, the object is generally hidden in the UI.",
2671 "type": "boolean"
2672 }
2673 },
2674 "type": "object"
2675 },
2676 "GoogleAppsDriveLabelsV2betaListLabelLocksResponse": {
2677 "description": "The response to a ListLabelLocksRequest.",
2678 "id": "GoogleAppsDriveLabelsV2betaListLabelLocksResponse",
2679 "properties": {
2680 "labelLocks": {
2681 "description": "LabelLocks.",
2682 "items": {
2683 "$ref": "GoogleAppsDriveLabelsV2betaLabelLock"
2684 },
2685 "type": "array"
2686 },
2687 "nextPageToken": {
2688 "description": "The token of the next page in the response.",
2689 "type": "string"
2690 }
2691 },
2692 "type": "object"
2693 },
2694 "GoogleAppsDriveLabelsV2betaListLabelPermissionsResponse": {
2695 "description": "Response for listing the permissions on a Label.",
2696 "id": "GoogleAppsDriveLabelsV2betaListLabelPermissionsResponse",
2697 "properties": {
2698 "labelPermissions": {
2699 "description": "Label permissions.",
2700 "items": {
2701 "$ref": "GoogleAppsDriveLabelsV2betaLabelPermission"
2702 },
2703 "type": "array"
2704 },
2705 "nextPageToken": {
2706 "description": "The token of the next page in the response.",
2707 "type": "string"
2708 }
2709 },
2710 "type": "object"
2711 },
2712 "GoogleAppsDriveLabelsV2betaListLabelsResponse": {
2713 "description": "Response for listing Labels.",
2714 "id": "GoogleAppsDriveLabelsV2betaListLabelsResponse",
2715 "properties": {
2716 "labels": {
2717 "description": "Labels.",
2718 "items": {
2719 "$ref": "GoogleAppsDriveLabelsV2betaLabel"
2720 },
2721 "type": "array"
2722 },
2723 "nextPageToken": {
2724 "description": "The token of the next page in the response.",
2725 "type": "string"
2726 }
2727 },
2728 "type": "object"
2729 },
2730 "GoogleAppsDriveLabelsV2betaListLimits": {
2731 "description": "Limits for list-variant of a Field type.",
2732 "id": "GoogleAppsDriveLabelsV2betaListLimits",
2733 "properties": {
2734 "maxEntries": {
2735 "description": "Maximum number of values allowed for the Field type.",
2736 "format": "int32",
2737 "type": "integer"
2738 }
2739 },
2740 "type": "object"
2741 },
2742 "GoogleAppsDriveLabelsV2betaLockStatus": {
2743 "description": "Contains information about whether a label component should be considered locked.",
2744 "id": "GoogleAppsDriveLabelsV2betaLockStatus",
2745 "properties": {
2746 "locked": {
2747 "description": "Output only. Indicates whether this label component is the (direct) target of a LabelLock. A label component can be implicitly locked even if it's not the direct target of a LabelLock, in which case this field is set to false.",
2748 "readOnly": true,
2749 "type": "boolean"
2750 }
2751 },
2752 "type": "object"
2753 },
2754 "GoogleAppsDriveLabelsV2betaLongTextLimits": {
2755 "description": "Limits for long text Field type.",
2756 "id": "GoogleAppsDriveLabelsV2betaLongTextLimits",
2757 "properties": {
2758 "maxLength": {
2759 "description": "Maximum length allowed for a long text Field type.",
2760 "format": "int32",
2761 "type": "integer"
2762 },
2763 "minLength": {
2764 "description": "Minimum length allowed for a long text Field type.",
2765 "format": "int32",
2766 "type": "integer"
2767 }
2768 },
2769 "type": "object"
2770 },
2771 "GoogleAppsDriveLabelsV2betaPublishLabelRequest": {
2772 "description": "Request to publish a label.",
2773 "id": "GoogleAppsDriveLabelsV2betaPublishLabelRequest",
2774 "properties": {
2775 "languageCode": {
2776 "description": "The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language will be used.",
2777 "type": "string"
2778 },
2779 "useAdminAccess": {
2780 "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.",
2781 "type": "boolean"
2782 },
2783 "writeControl": {
2784 "$ref": "GoogleAppsDriveLabelsV2betaWriteControl",
2785 "description": "Provides control over how write requests are executed. Defaults to unset, which means last write wins."
2786 }
2787 },
2788 "type": "object"
2789 },
2790 "GoogleAppsDriveLabelsV2betaSelectionLimits": {
2791 "description": "Limits for selection Field type.",
2792 "id": "GoogleAppsDriveLabelsV2betaSelectionLimits",
2793 "properties": {
2794 "listLimits": {
2795 "$ref": "GoogleAppsDriveLabelsV2betaListLimits",
2796 "description": "Limits for list-variant of a Field type."
2797 },
2798 "maxChoices": {
2799 "description": "The max number of choices.",
2800 "format": "int32",
2801 "type": "integer"
2802 },
2803 "maxDeletedChoices": {
2804 "description": "Maximum number of deleted choices.",
2805 "format": "int32",
2806 "type": "integer"
2807 },
2808 "maxDisplayNameLength": {
2809 "description": "Maximum length for display name.",
2810 "format": "int32",
2811 "type": "integer"
2812 },
2813 "maxIdLength": {
2814 "description": "Maximum ID length for a selection options.",
2815 "format": "int32",
2816 "type": "integer"
2817 }
2818 },
2819 "type": "object"
2820 },
2821 "GoogleAppsDriveLabelsV2betaTextLimits": {
2822 "description": "Limits for text Field type.",
2823 "id": "GoogleAppsDriveLabelsV2betaTextLimits",
2824 "properties": {
2825 "maxLength": {
2826 "description": "Maximum length allowed for a text Field type.",
2827 "format": "int32",
2828 "type": "integer"
2829 },
2830 "minLength": {
2831 "description": "Minimum length allowed for a text Field type.",
2832 "format": "int32",
2833 "type": "integer"
2834 }
2835 },
2836 "type": "object"
2837 },
2838 "GoogleAppsDriveLabelsV2betaUpdateLabelCopyModeRequest": {
2839 "description": "Request to update the `CopyMode` of the given Label. Changes to this policy are not revisioned, do not require publishing, and take effect immediately. \\",
2840 "id": "GoogleAppsDriveLabelsV2betaUpdateLabelCopyModeRequest",
2841 "properties": {
2842 "copyMode": {
2843 "description": "Required. Indicates how the applied Label, and Field values should be copied when a Drive item is copied.",
2844 "enum": [
2845 "COPY_MODE_UNSPECIFIED",
2846 "DO_NOT_COPY",
2847 "ALWAYS_COPY",
2848 "COPY_APPLIABLE"
2849 ],
2850 "enumDescriptions": [
2851 "Copy mode unspecified.",
2852 "The applied label and field values are not copied by default when the Drive item it's applied to is copied.",
2853 "The applied label and field values are always copied when the Drive item it's applied to is copied. Only admins can use this mode.",
2854 "The applied label and field values are copied if the label is appliable by the user making the copy."
2855 ],
2856 "type": "string"
2857 },
2858 "languageCode": {
2859 "description": "The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language will be used.",
2860 "type": "string"
2861 },
2862 "useAdminAccess": {
2863 "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.",
2864 "type": "boolean"
2865 },
2866 "view": {
2867 "description": "When specified, only certain fields belonging to the indicated view will be returned.",
2868 "enum": [
2869 "LABEL_VIEW_BASIC",
2870 "LABEL_VIEW_FULL"
2871 ],
2872 "enumDescriptions": [
2873 "Implies the field mask: `name,id,revision_id,label_type,properties.*`",
2874 "All possible fields."
2875 ],
2876 "type": "string"
2877 }
2878 },
2879 "type": "object"
2880 },
2881 "GoogleAppsDriveLabelsV2betaUpdateLabelPermissionRequest": {
2882 "description": "Updates a Label Permission. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.",
2883 "id": "GoogleAppsDriveLabelsV2betaUpdateLabelPermissionRequest",
2884 "properties": {
2885 "labelPermission": {
2886 "$ref": "GoogleAppsDriveLabelsV2betaLabelPermission",
2887 "description": "Required. The permission to create or update on the Label."
2888 },
2889 "parent": {
2890 "description": "Required. The parent Label resource name.",
2891 "type": "string"
2892 },
2893 "useAdminAccess": {
2894 "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.",
2895 "type": "boolean"
2896 }
2897 },
2898 "type": "object"
2899 },
2900 "GoogleAppsDriveLabelsV2betaUserCapabilities": {
2901 "description": "The capabilities of a user.",
2902 "id": "GoogleAppsDriveLabelsV2betaUserCapabilities",
2903 "properties": {
2904 "canAccessLabelManager": {
2905 "description": "Output only. Whether the user is allowed access to the label manager.",
2906 "readOnly": true,
2907 "type": "boolean"
2908 },
2909 "canAdministrateLabels": {
2910 "description": "Output only. Whether the user is an administrator for the shared labels feature.",
2911 "readOnly": true,
2912 "type": "boolean"
2913 },
2914 "canCreateAdminLabels": {
2915 "description": "Output only. Whether the user is allowed to create new admin labels.",
2916 "readOnly": true,
2917 "type": "boolean"
2918 },
2919 "canCreateSharedLabels": {
2920 "description": "Output only. Whether the user is allowed to create new shared labels.",
2921 "readOnly": true,
2922 "type": "boolean"
2923 },
2924 "name": {
2925 "description": "Output only. Resource name for the user capabilities.",
2926 "readOnly": true,
2927 "type": "string"
2928 }
2929 },
2930 "type": "object"
2931 },
2932 "GoogleAppsDriveLabelsV2betaUserInfo": {
2933 "description": "Information about a user.",
2934 "id": "GoogleAppsDriveLabelsV2betaUserInfo",
2935 "properties": {
2936 "person": {
2937 "description": "The identifier for this user that can be used with the People API to get more information. For example, people/12345678.",
2938 "type": "string"
2939 }
2940 },
2941 "type": "object"
2942 },
2943 "GoogleAppsDriveLabelsV2betaUserLimits": {
2944 "description": "Limits for Field.Type.USER.",
2945 "id": "GoogleAppsDriveLabelsV2betaUserLimits",
2946 "properties": {
2947 "listLimits": {
2948 "$ref": "GoogleAppsDriveLabelsV2betaListLimits",
2949 "description": "Limits for list-variant of a Field type."
2950 }
2951 },
2952 "type": "object"
2953 },
2954 "GoogleAppsDriveLabelsV2betaWriteControl": {
2955 "description": "Provides control over how write requests are executed. When not specified, the last write wins.",
2956 "id": "GoogleAppsDriveLabelsV2betaWriteControl",
2957 "properties": {
2958 "requiredRevisionId": {
2959 "description": "The revision_id of the label that the write request will be applied to. If this is not the latest revision of the label, the request will not be processed and will return a 400 Bad Request error.",
2960 "type": "string"
2961 }
2962 },
2963 "type": "object"
2964 },
2965 "GoogleProtobufEmpty": {
2966 "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }",
2967 "id": "GoogleProtobufEmpty",
2968 "properties": {},
2969 "type": "object"
2970 },
2971 "GoogleTypeColor": {
2972 "description": "Represents a color in the RGBA color space. This representation is designed for simplicity of conversion to and from color representations in various languages over compactness. For example, the fields of this representation can be trivially provided to the constructor of `java.awt.Color` in Java; it can also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha` method in iOS; and, with just a little work, it can be easily formatted into a CSS `rgba()` string in JavaScript. This reference page doesn't have information about the absolute color space that should be used to interpret the RGB value—for example, sRGB, Adobe RGB, DCI-P3, and BT.2020. By default, applications should assume the sRGB color space. When color equality needs to be decided, implementations, unless documented otherwise, treat two colors as equal if all their red, green, blue, and alpha values each differ by at most `1e-5`. Example (Java): import com.google.type.Color; // ... public static java.awt.Color fromProto(Color protocolor) { float alpha = protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); } public static Color toProto(java.awt.Color color) { float red = (float) color.getRed(); float green = (float) color.getGreen(); float blue = (float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255) { result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .build()); } return resultBuilder.build(); } // ... Example (iOS / Obj-C): // ... static UIColor* fromProto(Color* protocolor) { float red = [protocolor red]; float green = [protocolor green]; float blue = [protocolor blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper != nil) { alpha = [alpha_wrapper value]; } return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; } static Color* toProto(UIColor* color) { CGFloat red, green, blue, alpha; if (![color getRed:\u0026red green:\u0026green blue:\u0026blue alpha:\u0026alpha]) { return nil; } Color* result = [[Color alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha \u003c= 0.9999) { [result setAlpha:floatWrapperWithValue(alpha)]; } [result autorelease]; return result; } // ... Example (JavaScript): // ... var protoToCssColor = function(rgb_color) { var redFrac = rgb_color.red || 0.0; var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0; var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) { return rgbToCssColor(red, green, blue); } var alphaFrac = rgb_color.alpha.value || 0.0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); }; var rgbToCssColor = function(red, green, blue) { var rgbNumber = new Number((red \u003c\u003c 16) | (green \u003c\u003c 8) | blue); var hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var resultBuilder = ['#']; for (var i = 0; i \u003c missingZeros; i++) { resultBuilder.push('0'); } resultBuilder.push(hexString); return resultBuilder.join(''); }; // ...",
2973 "id": "GoogleTypeColor",
2974 "properties": {
2975 "alpha": {
2976 "description": "The fraction of this color that should be applied to the pixel. That is, the final pixel color is defined by the equation: `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)` This means that a value of 1.0 corresponds to a solid color, whereas a value of 0.0 corresponds to a completely transparent color. This uses a wrapper message rather than a simple float scalar so that it is possible to distinguish between a default value and the value being unset. If omitted, this color object is rendered as a solid color (as if the alpha value had been explicitly given a value of 1.0).",
2977 "format": "float",
2978 "type": "number"
2979 },
2980 "blue": {
2981 "description": "The amount of blue in the color as a value in the interval [0, 1].",
2982 "format": "float",
2983 "type": "number"
2984 },
2985 "green": {
2986 "description": "The amount of green in the color as a value in the interval [0, 1].",
2987 "format": "float",
2988 "type": "number"
2989 },
2990 "red": {
2991 "description": "The amount of red in the color as a value in the interval [0, 1].",
2992 "format": "float",
2993 "type": "number"
2994 }
2995 },
2996 "type": "object"
2997 },
2998 "GoogleTypeDate": {
2999 "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp",
3000 "id": "GoogleTypeDate",
3001 "properties": {
3002 "day": {
3003 "description": "Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.",
3004 "format": "int32",
3005 "type": "integer"
3006 },
3007 "month": {
3008 "description": "Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.",
3009 "format": "int32",
3010 "type": "integer"
3011 },
3012 "year": {
3013 "description": "Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.",
3014 "format": "int32",
3015 "type": "integer"
3016 }
3017 },
3018 "type": "object"
3019 }
3020 },
3021 "servicePath": "",
3022 "title": "Drive Labels API",
3023 "version": "v2beta",
3024 "version_module": true
3025}
View as plain text