google-apis-drivelabels_v2 0.6.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -256,6 +256,1050 @@ module Google
|
|
256
256
|
end
|
257
257
|
end
|
258
258
|
|
259
|
+
# Deletes one of more Label Permissions.
|
260
|
+
class GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest
|
261
|
+
include Google::Apis::Core::Hashable
|
262
|
+
|
263
|
+
# Required. The request message specifying the resources to update.
|
264
|
+
# Corresponds to the JSON property `requests`
|
265
|
+
# @return [Array<Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeleteLabelPermissionRequest>]
|
266
|
+
attr_accessor :requests
|
267
|
+
|
268
|
+
# Set to `true` in order to use the user's admin credentials. The server will
|
269
|
+
# verify the user is an admin for the Label before allowing access. If this is
|
270
|
+
# set, the use_admin_access field in the DeleteLabelPermissionRequest messages
|
271
|
+
# must either be empty or match this field.
|
272
|
+
# Corresponds to the JSON property `useAdminAccess`
|
273
|
+
# @return [Boolean]
|
274
|
+
attr_accessor :use_admin_access
|
275
|
+
alias_method :use_admin_access?, :use_admin_access
|
276
|
+
|
277
|
+
def initialize(**args)
|
278
|
+
update!(**args)
|
279
|
+
end
|
280
|
+
|
281
|
+
# Update properties of this object
|
282
|
+
def update!(**args)
|
283
|
+
@requests = args[:requests] if args.key?(:requests)
|
284
|
+
@use_admin_access = args[:use_admin_access] if args.key?(:use_admin_access)
|
285
|
+
end
|
286
|
+
end
|
287
|
+
|
288
|
+
# Updates one or more Label Permissions.
|
289
|
+
class GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest
|
290
|
+
include Google::Apis::Core::Hashable
|
291
|
+
|
292
|
+
# Required. The request message specifying the resources to update.
|
293
|
+
# Corresponds to the JSON property `requests`
|
294
|
+
# @return [Array<Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2UpdateLabelPermissionRequest>]
|
295
|
+
attr_accessor :requests
|
296
|
+
|
297
|
+
# Set to `true` in order to use the user's admin credentials. The server will
|
298
|
+
# verify the user is an admin for the Label before allowing access. If this is
|
299
|
+
# set, the use_admin_access field in the UpdateLabelPermissionRequest messages
|
300
|
+
# must either be empty or match this field.
|
301
|
+
# Corresponds to the JSON property `useAdminAccess`
|
302
|
+
# @return [Boolean]
|
303
|
+
attr_accessor :use_admin_access
|
304
|
+
alias_method :use_admin_access?, :use_admin_access
|
305
|
+
|
306
|
+
def initialize(**args)
|
307
|
+
update!(**args)
|
308
|
+
end
|
309
|
+
|
310
|
+
# Update properties of this object
|
311
|
+
def update!(**args)
|
312
|
+
@requests = args[:requests] if args.key?(:requests)
|
313
|
+
@use_admin_access = args[:use_admin_access] if args.key?(:use_admin_access)
|
314
|
+
end
|
315
|
+
end
|
316
|
+
|
317
|
+
# Response for updating one or more Label Permissions.
|
318
|
+
class GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse
|
319
|
+
include Google::Apis::Core::Hashable
|
320
|
+
|
321
|
+
# Required. Permissions updated.
|
322
|
+
# Corresponds to the JSON property `permissions`
|
323
|
+
# @return [Array<Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2LabelPermission>]
|
324
|
+
attr_accessor :permissions
|
325
|
+
|
326
|
+
def initialize(**args)
|
327
|
+
update!(**args)
|
328
|
+
end
|
329
|
+
|
330
|
+
# Update properties of this object
|
331
|
+
def update!(**args)
|
332
|
+
@permissions = args[:permissions] if args.key?(:permissions)
|
333
|
+
end
|
334
|
+
end
|
335
|
+
|
336
|
+
# Limits for date Field type.
|
337
|
+
class GoogleAppsDriveLabelsV2DateLimits
|
338
|
+
include Google::Apis::Core::Hashable
|
339
|
+
|
340
|
+
# Represents a whole or partial calendar date, such as a birthday. The time of
|
341
|
+
# day and time zone are either specified elsewhere or are insignificant. The
|
342
|
+
# date is relative to the Gregorian Calendar. This can represent one of the
|
343
|
+
# following: * A full date, with non-zero year, month, and day values. * A month
|
344
|
+
# and day, with a zero year (for example, an anniversary). * A year on its own,
|
345
|
+
# with a zero month and a zero day. * A year and month, with a zero day (for
|
346
|
+
# example, a credit card expiration date). Related types: * google.type.
|
347
|
+
# TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
|
348
|
+
# Corresponds to the JSON property `maxValue`
|
349
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleTypeDate]
|
350
|
+
attr_accessor :max_value
|
351
|
+
|
352
|
+
# Represents a whole or partial calendar date, such as a birthday. The time of
|
353
|
+
# day and time zone are either specified elsewhere or are insignificant. The
|
354
|
+
# date is relative to the Gregorian Calendar. This can represent one of the
|
355
|
+
# following: * A full date, with non-zero year, month, and day values. * A month
|
356
|
+
# and day, with a zero year (for example, an anniversary). * A year on its own,
|
357
|
+
# with a zero month and a zero day. * A year and month, with a zero day (for
|
358
|
+
# example, a credit card expiration date). Related types: * google.type.
|
359
|
+
# TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
|
360
|
+
# Corresponds to the JSON property `minValue`
|
361
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleTypeDate]
|
362
|
+
attr_accessor :min_value
|
363
|
+
|
364
|
+
def initialize(**args)
|
365
|
+
update!(**args)
|
366
|
+
end
|
367
|
+
|
368
|
+
# Update properties of this object
|
369
|
+
def update!(**args)
|
370
|
+
@max_value = args[:max_value] if args.key?(:max_value)
|
371
|
+
@min_value = args[:min_value] if args.key?(:min_value)
|
372
|
+
end
|
373
|
+
end
|
374
|
+
|
375
|
+
# Deletes a Label Permission. Permissions affect the Label resource as a whole,
|
376
|
+
# are not revisioned, and do not require publishing.
|
377
|
+
class GoogleAppsDriveLabelsV2DeleteLabelPermissionRequest
|
378
|
+
include Google::Apis::Core::Hashable
|
379
|
+
|
380
|
+
# Required. Label Permission resource name.
|
381
|
+
# Corresponds to the JSON property `name`
|
382
|
+
# @return [String]
|
383
|
+
attr_accessor :name
|
384
|
+
|
385
|
+
# Set to `true` in order to use the user's admin credentials. The server will
|
386
|
+
# verify the user is an admin for the Label before allowing access.
|
387
|
+
# Corresponds to the JSON property `useAdminAccess`
|
388
|
+
# @return [Boolean]
|
389
|
+
attr_accessor :use_admin_access
|
390
|
+
alias_method :use_admin_access?, :use_admin_access
|
391
|
+
|
392
|
+
def initialize(**args)
|
393
|
+
update!(**args)
|
394
|
+
end
|
395
|
+
|
396
|
+
# Update properties of this object
|
397
|
+
def update!(**args)
|
398
|
+
@name = args[:name] if args.key?(:name)
|
399
|
+
@use_admin_access = args[:use_admin_access] if args.key?(:use_admin_access)
|
400
|
+
end
|
401
|
+
end
|
402
|
+
|
403
|
+
# The set of requests for updating aspects of a Label. If any request is not
|
404
|
+
# valid, no requests will be applied.
|
405
|
+
class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequest
|
406
|
+
include Google::Apis::Core::Hashable
|
407
|
+
|
408
|
+
# The BCP-47 language code to use for evaluating localized Field labels when `
|
409
|
+
# include_label_in_response` is `true`.
|
410
|
+
# Corresponds to the JSON property `languageCode`
|
411
|
+
# @return [String]
|
412
|
+
attr_accessor :language_code
|
413
|
+
|
414
|
+
# A list of updates to apply to the Label. Requests will be applied in the order
|
415
|
+
# they are specified.
|
416
|
+
# Corresponds to the JSON property `requests`
|
417
|
+
# @return [Array<Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestRequest>]
|
418
|
+
attr_accessor :requests
|
419
|
+
|
420
|
+
# Set to `true` in order to use the user's admin credentials. The server will
|
421
|
+
# verify the user is an admin for the Label before allowing access.
|
422
|
+
# Corresponds to the JSON property `useAdminAccess`
|
423
|
+
# @return [Boolean]
|
424
|
+
attr_accessor :use_admin_access
|
425
|
+
alias_method :use_admin_access?, :use_admin_access
|
426
|
+
|
427
|
+
# When specified, only certain fields belonging to the indicated view will be
|
428
|
+
# returned.
|
429
|
+
# Corresponds to the JSON property `view`
|
430
|
+
# @return [String]
|
431
|
+
attr_accessor :view
|
432
|
+
|
433
|
+
# Provides control over how write requests are executed. When not specified, the
|
434
|
+
# last write wins.
|
435
|
+
# Corresponds to the JSON property `writeControl`
|
436
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2WriteControl]
|
437
|
+
attr_accessor :write_control
|
438
|
+
|
439
|
+
def initialize(**args)
|
440
|
+
update!(**args)
|
441
|
+
end
|
442
|
+
|
443
|
+
# Update properties of this object
|
444
|
+
def update!(**args)
|
445
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
446
|
+
@requests = args[:requests] if args.key?(:requests)
|
447
|
+
@use_admin_access = args[:use_admin_access] if args.key?(:use_admin_access)
|
448
|
+
@view = args[:view] if args.key?(:view)
|
449
|
+
@write_control = args[:write_control] if args.key?(:write_control)
|
450
|
+
end
|
451
|
+
end
|
452
|
+
|
453
|
+
# Request to create a Field within a Label.
|
454
|
+
class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateFieldRequest
|
455
|
+
include Google::Apis::Core::Hashable
|
456
|
+
|
457
|
+
# Defines a field that has a display name, data type, and other configuration
|
458
|
+
# options. This field defines the kind of metadata that may be set on a Drive
|
459
|
+
# item.
|
460
|
+
# Corresponds to the JSON property `field`
|
461
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2Field]
|
462
|
+
attr_accessor :field
|
463
|
+
|
464
|
+
def initialize(**args)
|
465
|
+
update!(**args)
|
466
|
+
end
|
467
|
+
|
468
|
+
# Update properties of this object
|
469
|
+
def update!(**args)
|
470
|
+
@field = args[:field] if args.key?(:field)
|
471
|
+
end
|
472
|
+
end
|
473
|
+
|
474
|
+
# Request to create a Selection Choice.
|
475
|
+
class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateSelectionChoiceRequest
|
476
|
+
include Google::Apis::Core::Hashable
|
477
|
+
|
478
|
+
# Selection field choice.
|
479
|
+
# Corresponds to the JSON property `choice`
|
480
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice]
|
481
|
+
attr_accessor :choice
|
482
|
+
|
483
|
+
# Required. The Selection Field in which a Choice will be created.
|
484
|
+
# Corresponds to the JSON property `fieldId`
|
485
|
+
# @return [String]
|
486
|
+
attr_accessor :field_id
|
487
|
+
|
488
|
+
def initialize(**args)
|
489
|
+
update!(**args)
|
490
|
+
end
|
491
|
+
|
492
|
+
# Update properties of this object
|
493
|
+
def update!(**args)
|
494
|
+
@choice = args[:choice] if args.key?(:choice)
|
495
|
+
@field_id = args[:field_id] if args.key?(:field_id)
|
496
|
+
end
|
497
|
+
end
|
498
|
+
|
499
|
+
# Request to delete the Field.
|
500
|
+
class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteFieldRequest
|
501
|
+
include Google::Apis::Core::Hashable
|
502
|
+
|
503
|
+
# Required. ID of the Field to delete.
|
504
|
+
# Corresponds to the JSON property `id`
|
505
|
+
# @return [String]
|
506
|
+
attr_accessor :id
|
507
|
+
|
508
|
+
def initialize(**args)
|
509
|
+
update!(**args)
|
510
|
+
end
|
511
|
+
|
512
|
+
# Update properties of this object
|
513
|
+
def update!(**args)
|
514
|
+
@id = args[:id] if args.key?(:id)
|
515
|
+
end
|
516
|
+
end
|
517
|
+
|
518
|
+
# Request to delete a Choice.
|
519
|
+
class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteSelectionChoiceRequest
|
520
|
+
include Google::Apis::Core::Hashable
|
521
|
+
|
522
|
+
# Required. The Selection Field from which a Choice will be deleted.
|
523
|
+
# Corresponds to the JSON property `fieldId`
|
524
|
+
# @return [String]
|
525
|
+
attr_accessor :field_id
|
526
|
+
|
527
|
+
# Required. Choice to delete.
|
528
|
+
# Corresponds to the JSON property `id`
|
529
|
+
# @return [String]
|
530
|
+
attr_accessor :id
|
531
|
+
|
532
|
+
def initialize(**args)
|
533
|
+
update!(**args)
|
534
|
+
end
|
535
|
+
|
536
|
+
# Update properties of this object
|
537
|
+
def update!(**args)
|
538
|
+
@field_id = args[:field_id] if args.key?(:field_id)
|
539
|
+
@id = args[:id] if args.key?(:id)
|
540
|
+
end
|
541
|
+
end
|
542
|
+
|
543
|
+
# Request to disable the Field.
|
544
|
+
class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableFieldRequest
|
545
|
+
include Google::Apis::Core::Hashable
|
546
|
+
|
547
|
+
# The policy that governs how to treat a disabled label, field, or selection
|
548
|
+
# choice in different contexts.
|
549
|
+
# Corresponds to the JSON property `disabledPolicy`
|
550
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2LifecycleDisabledPolicy]
|
551
|
+
attr_accessor :disabled_policy
|
552
|
+
|
553
|
+
# Required. Key of the Field to disable.
|
554
|
+
# Corresponds to the JSON property `id`
|
555
|
+
# @return [String]
|
556
|
+
attr_accessor :id
|
557
|
+
|
558
|
+
# The fields that should be updated. At least one field must be specified. The
|
559
|
+
# root `disabled_policy` is implied and should not be specified. A single `*`
|
560
|
+
# can be used as short-hand for updating every field.
|
561
|
+
# Corresponds to the JSON property `updateMask`
|
562
|
+
# @return [String]
|
563
|
+
attr_accessor :update_mask
|
564
|
+
|
565
|
+
def initialize(**args)
|
566
|
+
update!(**args)
|
567
|
+
end
|
568
|
+
|
569
|
+
# Update properties of this object
|
570
|
+
def update!(**args)
|
571
|
+
@disabled_policy = args[:disabled_policy] if args.key?(:disabled_policy)
|
572
|
+
@id = args[:id] if args.key?(:id)
|
573
|
+
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
574
|
+
end
|
575
|
+
end
|
576
|
+
|
577
|
+
# Request to disable a Choice.
|
578
|
+
class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableSelectionChoiceRequest
|
579
|
+
include Google::Apis::Core::Hashable
|
580
|
+
|
581
|
+
# The policy that governs how to treat a disabled label, field, or selection
|
582
|
+
# choice in different contexts.
|
583
|
+
# Corresponds to the JSON property `disabledPolicy`
|
584
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2LifecycleDisabledPolicy]
|
585
|
+
attr_accessor :disabled_policy
|
586
|
+
|
587
|
+
# Required. The Selection Field in which a Choice will be disabled.
|
588
|
+
# Corresponds to the JSON property `fieldId`
|
589
|
+
# @return [String]
|
590
|
+
attr_accessor :field_id
|
591
|
+
|
592
|
+
# Required. Choice to disable.
|
593
|
+
# Corresponds to the JSON property `id`
|
594
|
+
# @return [String]
|
595
|
+
attr_accessor :id
|
596
|
+
|
597
|
+
# The fields that should be updated. At least one field must be specified. The
|
598
|
+
# root `disabled_policy` is implied and should not be specified. A single `*`
|
599
|
+
# can be used as short-hand for updating every field.
|
600
|
+
# Corresponds to the JSON property `updateMask`
|
601
|
+
# @return [String]
|
602
|
+
attr_accessor :update_mask
|
603
|
+
|
604
|
+
def initialize(**args)
|
605
|
+
update!(**args)
|
606
|
+
end
|
607
|
+
|
608
|
+
# Update properties of this object
|
609
|
+
def update!(**args)
|
610
|
+
@disabled_policy = args[:disabled_policy] if args.key?(:disabled_policy)
|
611
|
+
@field_id = args[:field_id] if args.key?(:field_id)
|
612
|
+
@id = args[:id] if args.key?(:id)
|
613
|
+
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
614
|
+
end
|
615
|
+
end
|
616
|
+
|
617
|
+
# Request to enable the Field.
|
618
|
+
class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableFieldRequest
|
619
|
+
include Google::Apis::Core::Hashable
|
620
|
+
|
621
|
+
# Required. ID of the Field to enable.
|
622
|
+
# Corresponds to the JSON property `id`
|
623
|
+
# @return [String]
|
624
|
+
attr_accessor :id
|
625
|
+
|
626
|
+
def initialize(**args)
|
627
|
+
update!(**args)
|
628
|
+
end
|
629
|
+
|
630
|
+
# Update properties of this object
|
631
|
+
def update!(**args)
|
632
|
+
@id = args[:id] if args.key?(:id)
|
633
|
+
end
|
634
|
+
end
|
635
|
+
|
636
|
+
# Request to enable a Choice.
|
637
|
+
class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableSelectionChoiceRequest
|
638
|
+
include Google::Apis::Core::Hashable
|
639
|
+
|
640
|
+
# Required. The Selection Field in which a Choice will be enabled.
|
641
|
+
# Corresponds to the JSON property `fieldId`
|
642
|
+
# @return [String]
|
643
|
+
attr_accessor :field_id
|
644
|
+
|
645
|
+
# Required. Choice to enable.
|
646
|
+
# Corresponds to the JSON property `id`
|
647
|
+
# @return [String]
|
648
|
+
attr_accessor :id
|
649
|
+
|
650
|
+
def initialize(**args)
|
651
|
+
update!(**args)
|
652
|
+
end
|
653
|
+
|
654
|
+
# Update properties of this object
|
655
|
+
def update!(**args)
|
656
|
+
@field_id = args[:field_id] if args.key?(:field_id)
|
657
|
+
@id = args[:id] if args.key?(:id)
|
658
|
+
end
|
659
|
+
end
|
660
|
+
|
661
|
+
# A single kind of update to apply to a Label.
|
662
|
+
class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestRequest
|
663
|
+
include Google::Apis::Core::Hashable
|
664
|
+
|
665
|
+
# Request to create a Field within a Label.
|
666
|
+
# Corresponds to the JSON property `createField`
|
667
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateFieldRequest]
|
668
|
+
attr_accessor :create_field
|
669
|
+
|
670
|
+
# Request to create a Selection Choice.
|
671
|
+
# Corresponds to the JSON property `createSelectionChoice`
|
672
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateSelectionChoiceRequest]
|
673
|
+
attr_accessor :create_selection_choice
|
674
|
+
|
675
|
+
# Request to delete the Field.
|
676
|
+
# Corresponds to the JSON property `deleteField`
|
677
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteFieldRequest]
|
678
|
+
attr_accessor :delete_field
|
679
|
+
|
680
|
+
# Request to delete a Choice.
|
681
|
+
# Corresponds to the JSON property `deleteSelectionChoice`
|
682
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteSelectionChoiceRequest]
|
683
|
+
attr_accessor :delete_selection_choice
|
684
|
+
|
685
|
+
# Request to disable the Field.
|
686
|
+
# Corresponds to the JSON property `disableField`
|
687
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableFieldRequest]
|
688
|
+
attr_accessor :disable_field
|
689
|
+
|
690
|
+
# Request to disable a Choice.
|
691
|
+
# Corresponds to the JSON property `disableSelectionChoice`
|
692
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableSelectionChoiceRequest]
|
693
|
+
attr_accessor :disable_selection_choice
|
694
|
+
|
695
|
+
# Request to enable the Field.
|
696
|
+
# Corresponds to the JSON property `enableField`
|
697
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableFieldRequest]
|
698
|
+
attr_accessor :enable_field
|
699
|
+
|
700
|
+
# Request to enable a Choice.
|
701
|
+
# Corresponds to the JSON property `enableSelectionChoice`
|
702
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableSelectionChoiceRequest]
|
703
|
+
attr_accessor :enable_selection_choice
|
704
|
+
|
705
|
+
# Request to update Field properties.
|
706
|
+
# Corresponds to the JSON property `updateField`
|
707
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldPropertiesRequest]
|
708
|
+
attr_accessor :update_field
|
709
|
+
|
710
|
+
# Request to change the type of a Field.
|
711
|
+
# Corresponds to the JSON property `updateFieldType`
|
712
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldTypeRequest]
|
713
|
+
attr_accessor :update_field_type
|
714
|
+
|
715
|
+
# Updates basic properties of a Label.
|
716
|
+
# Corresponds to the JSON property `updateLabel`
|
717
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateLabelPropertiesRequest]
|
718
|
+
attr_accessor :update_label
|
719
|
+
|
720
|
+
# Request to update a Choice properties.
|
721
|
+
# Corresponds to the JSON property `updateSelectionChoiceProperties`
|
722
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest]
|
723
|
+
attr_accessor :update_selection_choice_properties
|
724
|
+
|
725
|
+
def initialize(**args)
|
726
|
+
update!(**args)
|
727
|
+
end
|
728
|
+
|
729
|
+
# Update properties of this object
|
730
|
+
def update!(**args)
|
731
|
+
@create_field = args[:create_field] if args.key?(:create_field)
|
732
|
+
@create_selection_choice = args[:create_selection_choice] if args.key?(:create_selection_choice)
|
733
|
+
@delete_field = args[:delete_field] if args.key?(:delete_field)
|
734
|
+
@delete_selection_choice = args[:delete_selection_choice] if args.key?(:delete_selection_choice)
|
735
|
+
@disable_field = args[:disable_field] if args.key?(:disable_field)
|
736
|
+
@disable_selection_choice = args[:disable_selection_choice] if args.key?(:disable_selection_choice)
|
737
|
+
@enable_field = args[:enable_field] if args.key?(:enable_field)
|
738
|
+
@enable_selection_choice = args[:enable_selection_choice] if args.key?(:enable_selection_choice)
|
739
|
+
@update_field = args[:update_field] if args.key?(:update_field)
|
740
|
+
@update_field_type = args[:update_field_type] if args.key?(:update_field_type)
|
741
|
+
@update_label = args[:update_label] if args.key?(:update_label)
|
742
|
+
@update_selection_choice_properties = args[:update_selection_choice_properties] if args.key?(:update_selection_choice_properties)
|
743
|
+
end
|
744
|
+
end
|
745
|
+
|
746
|
+
# Request to update Field properties.
|
747
|
+
class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldPropertiesRequest
|
748
|
+
include Google::Apis::Core::Hashable
|
749
|
+
|
750
|
+
# Required. The Field to update.
|
751
|
+
# Corresponds to the JSON property `id`
|
752
|
+
# @return [String]
|
753
|
+
attr_accessor :id
|
754
|
+
|
755
|
+
# The basic properties of the field.
|
756
|
+
# Corresponds to the JSON property `properties`
|
757
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2FieldProperties]
|
758
|
+
attr_accessor :properties
|
759
|
+
|
760
|
+
# The fields that should be updated. At least one field must be specified. The
|
761
|
+
# root `properties` is implied and should not be specified. A single `*` can be
|
762
|
+
# used as short-hand for updating every field.
|
763
|
+
# Corresponds to the JSON property `updateMask`
|
764
|
+
# @return [String]
|
765
|
+
attr_accessor :update_mask
|
766
|
+
|
767
|
+
def initialize(**args)
|
768
|
+
update!(**args)
|
769
|
+
end
|
770
|
+
|
771
|
+
# Update properties of this object
|
772
|
+
def update!(**args)
|
773
|
+
@id = args[:id] if args.key?(:id)
|
774
|
+
@properties = args[:properties] if args.key?(:properties)
|
775
|
+
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
776
|
+
end
|
777
|
+
end
|
778
|
+
|
779
|
+
# Request to change the type of a Field.
|
780
|
+
class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldTypeRequest
|
781
|
+
include Google::Apis::Core::Hashable
|
782
|
+
|
783
|
+
# Options for the date field type.
|
784
|
+
# Corresponds to the JSON property `dateOptions`
|
785
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2FieldDateOptions]
|
786
|
+
attr_accessor :date_options
|
787
|
+
|
788
|
+
# Required. The Field to update.
|
789
|
+
# Corresponds to the JSON property `id`
|
790
|
+
# @return [String]
|
791
|
+
attr_accessor :id
|
792
|
+
|
793
|
+
# Options for the Integer field type.
|
794
|
+
# Corresponds to the JSON property `integerOptions`
|
795
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2FieldIntegerOptions]
|
796
|
+
attr_accessor :integer_options
|
797
|
+
|
798
|
+
# Options the Long Text field type.
|
799
|
+
# Corresponds to the JSON property `longTextOptions`
|
800
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2FieldLongTextOptions]
|
801
|
+
attr_accessor :long_text_options
|
802
|
+
|
803
|
+
# Options for the selection field type.
|
804
|
+
# Corresponds to the JSON property `selectionOptions`
|
805
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2FieldSelectionOptions]
|
806
|
+
attr_accessor :selection_options
|
807
|
+
|
808
|
+
# Options for the Text field type.
|
809
|
+
# Corresponds to the JSON property `textOptions`
|
810
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2FieldTextOptions]
|
811
|
+
attr_accessor :text_options
|
812
|
+
|
813
|
+
# The fields that should be updated. At least one field must be specified. The
|
814
|
+
# root of `type_options` is implied and should not be specified. A single `*`
|
815
|
+
# can be used as short-hand for updating every field.
|
816
|
+
# Corresponds to the JSON property `updateMask`
|
817
|
+
# @return [String]
|
818
|
+
attr_accessor :update_mask
|
819
|
+
|
820
|
+
# Options for the user field type.
|
821
|
+
# Corresponds to the JSON property `userOptions`
|
822
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2FieldUserOptions]
|
823
|
+
attr_accessor :user_options
|
824
|
+
|
825
|
+
def initialize(**args)
|
826
|
+
update!(**args)
|
827
|
+
end
|
828
|
+
|
829
|
+
# Update properties of this object
|
830
|
+
def update!(**args)
|
831
|
+
@date_options = args[:date_options] if args.key?(:date_options)
|
832
|
+
@id = args[:id] if args.key?(:id)
|
833
|
+
@integer_options = args[:integer_options] if args.key?(:integer_options)
|
834
|
+
@long_text_options = args[:long_text_options] if args.key?(:long_text_options)
|
835
|
+
@selection_options = args[:selection_options] if args.key?(:selection_options)
|
836
|
+
@text_options = args[:text_options] if args.key?(:text_options)
|
837
|
+
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
838
|
+
@user_options = args[:user_options] if args.key?(:user_options)
|
839
|
+
end
|
840
|
+
end
|
841
|
+
|
842
|
+
# Updates basic properties of a Label.
|
843
|
+
class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateLabelPropertiesRequest
|
844
|
+
include Google::Apis::Core::Hashable
|
845
|
+
|
846
|
+
# Basic properties of the label.
|
847
|
+
# Corresponds to the JSON property `properties`
|
848
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2LabelProperties]
|
849
|
+
attr_accessor :properties
|
850
|
+
|
851
|
+
# The fields that should be updated. At least one field must be specified. The
|
852
|
+
# root `label_properties` is implied and should not be specified. A single `*`
|
853
|
+
# can be used as short-hand for updating every field.
|
854
|
+
# Corresponds to the JSON property `updateMask`
|
855
|
+
# @return [String]
|
856
|
+
attr_accessor :update_mask
|
857
|
+
|
858
|
+
def initialize(**args)
|
859
|
+
update!(**args)
|
860
|
+
end
|
861
|
+
|
862
|
+
# Update properties of this object
|
863
|
+
def update!(**args)
|
864
|
+
@properties = args[:properties] if args.key?(:properties)
|
865
|
+
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
866
|
+
end
|
867
|
+
end
|
868
|
+
|
869
|
+
# Request to update a Choice properties.
|
870
|
+
class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest
|
871
|
+
include Google::Apis::Core::Hashable
|
872
|
+
|
873
|
+
# Required. The Selection Field to update.
|
874
|
+
# Corresponds to the JSON property `fieldId`
|
875
|
+
# @return [String]
|
876
|
+
attr_accessor :field_id
|
877
|
+
|
878
|
+
# Required. The Choice to update.
|
879
|
+
# Corresponds to the JSON property `id`
|
880
|
+
# @return [String]
|
881
|
+
attr_accessor :id
|
882
|
+
|
883
|
+
# Basic properties of the choice.
|
884
|
+
# Corresponds to the JSON property `properties`
|
885
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties]
|
886
|
+
attr_accessor :properties
|
887
|
+
|
888
|
+
# The fields that should be updated. At least one field must be specified. The
|
889
|
+
# root `properties` is implied and should not be specified. A single `*` can be
|
890
|
+
# used as short-hand for updating every field.
|
891
|
+
# Corresponds to the JSON property `updateMask`
|
892
|
+
# @return [String]
|
893
|
+
attr_accessor :update_mask
|
894
|
+
|
895
|
+
def initialize(**args)
|
896
|
+
update!(**args)
|
897
|
+
end
|
898
|
+
|
899
|
+
# Update properties of this object
|
900
|
+
def update!(**args)
|
901
|
+
@field_id = args[:field_id] if args.key?(:field_id)
|
902
|
+
@id = args[:id] if args.key?(:id)
|
903
|
+
@properties = args[:properties] if args.key?(:properties)
|
904
|
+
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
905
|
+
end
|
906
|
+
end
|
907
|
+
|
908
|
+
# Response for Label update.
|
909
|
+
class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponse
|
910
|
+
include Google::Apis::Core::Hashable
|
911
|
+
|
912
|
+
# The reply of the updates. This maps 1:1 with the updates, although responses
|
913
|
+
# to some requests may be empty.
|
914
|
+
# Corresponds to the JSON property `responses`
|
915
|
+
# @return [Array<Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseResponse>]
|
916
|
+
attr_accessor :responses
|
917
|
+
|
918
|
+
# A label defines a taxonomy that can be applied to Drive items in order to
|
919
|
+
# organize and search across items. Labels can be simple strings, or can contain
|
920
|
+
# fields that describe additional metadata that can be further used to organize
|
921
|
+
# and search Drive items.
|
922
|
+
# Corresponds to the JSON property `updatedLabel`
|
923
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2Label]
|
924
|
+
attr_accessor :updated_label
|
925
|
+
|
926
|
+
def initialize(**args)
|
927
|
+
update!(**args)
|
928
|
+
end
|
929
|
+
|
930
|
+
# Update properties of this object
|
931
|
+
def update!(**args)
|
932
|
+
@responses = args[:responses] if args.key?(:responses)
|
933
|
+
@updated_label = args[:updated_label] if args.key?(:updated_label)
|
934
|
+
end
|
935
|
+
end
|
936
|
+
|
937
|
+
# Response following Field create.
|
938
|
+
class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateFieldResponse
|
939
|
+
include Google::Apis::Core::Hashable
|
940
|
+
|
941
|
+
# The field of the created field. When left blank in a create request, a key
|
942
|
+
# will be autogenerated and can be identified here.
|
943
|
+
# Corresponds to the JSON property `id`
|
944
|
+
# @return [String]
|
945
|
+
attr_accessor :id
|
946
|
+
|
947
|
+
# The priority of the created field. The priority may change from what was
|
948
|
+
# specified to assure contiguous priorities between fields (1-n).
|
949
|
+
# Corresponds to the JSON property `priority`
|
950
|
+
# @return [Fixnum]
|
951
|
+
attr_accessor :priority
|
952
|
+
|
953
|
+
def initialize(**args)
|
954
|
+
update!(**args)
|
955
|
+
end
|
956
|
+
|
957
|
+
# Update properties of this object
|
958
|
+
def update!(**args)
|
959
|
+
@id = args[:id] if args.key?(:id)
|
960
|
+
@priority = args[:priority] if args.key?(:priority)
|
961
|
+
end
|
962
|
+
end
|
963
|
+
|
964
|
+
# Response following Selection Choice create.
|
965
|
+
class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateSelectionChoiceResponse
|
966
|
+
include Google::Apis::Core::Hashable
|
967
|
+
|
968
|
+
# The server-generated id of the field.
|
969
|
+
# Corresponds to the JSON property `fieldId`
|
970
|
+
# @return [String]
|
971
|
+
attr_accessor :field_id
|
972
|
+
|
973
|
+
# The server-generated ID of the created choice within the Field
|
974
|
+
# Corresponds to the JSON property `id`
|
975
|
+
# @return [String]
|
976
|
+
attr_accessor :id
|
977
|
+
|
978
|
+
def initialize(**args)
|
979
|
+
update!(**args)
|
980
|
+
end
|
981
|
+
|
982
|
+
# Update properties of this object
|
983
|
+
def update!(**args)
|
984
|
+
@field_id = args[:field_id] if args.key?(:field_id)
|
985
|
+
@id = args[:id] if args.key?(:id)
|
986
|
+
end
|
987
|
+
end
|
988
|
+
|
989
|
+
# Response following Field delete.
|
990
|
+
class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteFieldResponse
|
991
|
+
include Google::Apis::Core::Hashable
|
992
|
+
|
993
|
+
def initialize(**args)
|
994
|
+
update!(**args)
|
995
|
+
end
|
996
|
+
|
997
|
+
# Update properties of this object
|
998
|
+
def update!(**args)
|
999
|
+
end
|
1000
|
+
end
|
1001
|
+
|
1002
|
+
# Response following Choice delete.
|
1003
|
+
class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteSelectionChoiceResponse
|
1004
|
+
include Google::Apis::Core::Hashable
|
1005
|
+
|
1006
|
+
def initialize(**args)
|
1007
|
+
update!(**args)
|
1008
|
+
end
|
1009
|
+
|
1010
|
+
# Update properties of this object
|
1011
|
+
def update!(**args)
|
1012
|
+
end
|
1013
|
+
end
|
1014
|
+
|
1015
|
+
# Response following Field disable.
|
1016
|
+
class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableFieldResponse
|
1017
|
+
include Google::Apis::Core::Hashable
|
1018
|
+
|
1019
|
+
def initialize(**args)
|
1020
|
+
update!(**args)
|
1021
|
+
end
|
1022
|
+
|
1023
|
+
# Update properties of this object
|
1024
|
+
def update!(**args)
|
1025
|
+
end
|
1026
|
+
end
|
1027
|
+
|
1028
|
+
# Response following Choice disable.
|
1029
|
+
class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableSelectionChoiceResponse
|
1030
|
+
include Google::Apis::Core::Hashable
|
1031
|
+
|
1032
|
+
def initialize(**args)
|
1033
|
+
update!(**args)
|
1034
|
+
end
|
1035
|
+
|
1036
|
+
# Update properties of this object
|
1037
|
+
def update!(**args)
|
1038
|
+
end
|
1039
|
+
end
|
1040
|
+
|
1041
|
+
# Response following Field enable.
|
1042
|
+
class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableFieldResponse
|
1043
|
+
include Google::Apis::Core::Hashable
|
1044
|
+
|
1045
|
+
def initialize(**args)
|
1046
|
+
update!(**args)
|
1047
|
+
end
|
1048
|
+
|
1049
|
+
# Update properties of this object
|
1050
|
+
def update!(**args)
|
1051
|
+
end
|
1052
|
+
end
|
1053
|
+
|
1054
|
+
# Response following Choice enable.
|
1055
|
+
class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableSelectionChoiceResponse
|
1056
|
+
include Google::Apis::Core::Hashable
|
1057
|
+
|
1058
|
+
def initialize(**args)
|
1059
|
+
update!(**args)
|
1060
|
+
end
|
1061
|
+
|
1062
|
+
# Update properties of this object
|
1063
|
+
def update!(**args)
|
1064
|
+
end
|
1065
|
+
end
|
1066
|
+
|
1067
|
+
# A single response from an update.
|
1068
|
+
class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseResponse
|
1069
|
+
include Google::Apis::Core::Hashable
|
1070
|
+
|
1071
|
+
# Response following Field create.
|
1072
|
+
# Corresponds to the JSON property `createField`
|
1073
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateFieldResponse]
|
1074
|
+
attr_accessor :create_field
|
1075
|
+
|
1076
|
+
# Response following Selection Choice create.
|
1077
|
+
# Corresponds to the JSON property `createSelectionChoice`
|
1078
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateSelectionChoiceResponse]
|
1079
|
+
attr_accessor :create_selection_choice
|
1080
|
+
|
1081
|
+
# Response following Field delete.
|
1082
|
+
# Corresponds to the JSON property `deleteField`
|
1083
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteFieldResponse]
|
1084
|
+
attr_accessor :delete_field
|
1085
|
+
|
1086
|
+
# Response following Choice delete.
|
1087
|
+
# Corresponds to the JSON property `deleteSelectionChoice`
|
1088
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteSelectionChoiceResponse]
|
1089
|
+
attr_accessor :delete_selection_choice
|
1090
|
+
|
1091
|
+
# Response following Field disable.
|
1092
|
+
# Corresponds to the JSON property `disableField`
|
1093
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableFieldResponse]
|
1094
|
+
attr_accessor :disable_field
|
1095
|
+
|
1096
|
+
# Response following Choice disable.
|
1097
|
+
# Corresponds to the JSON property `disableSelectionChoice`
|
1098
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableSelectionChoiceResponse]
|
1099
|
+
attr_accessor :disable_selection_choice
|
1100
|
+
|
1101
|
+
# Response following Field enable.
|
1102
|
+
# Corresponds to the JSON property `enableField`
|
1103
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableFieldResponse]
|
1104
|
+
attr_accessor :enable_field
|
1105
|
+
|
1106
|
+
# Response following Choice enable.
|
1107
|
+
# Corresponds to the JSON property `enableSelectionChoice`
|
1108
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableSelectionChoiceResponse]
|
1109
|
+
attr_accessor :enable_selection_choice
|
1110
|
+
|
1111
|
+
# Response following update to Field properties.
|
1112
|
+
# Corresponds to the JSON property `updateField`
|
1113
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldPropertiesResponse]
|
1114
|
+
attr_accessor :update_field
|
1115
|
+
|
1116
|
+
# Response following update to Field type.
|
1117
|
+
# Corresponds to the JSON property `updateFieldType`
|
1118
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldTypeResponse]
|
1119
|
+
attr_accessor :update_field_type
|
1120
|
+
|
1121
|
+
# Response following update to Label properties.
|
1122
|
+
# Corresponds to the JSON property `updateLabel`
|
1123
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateLabelPropertiesResponse]
|
1124
|
+
attr_accessor :update_label
|
1125
|
+
|
1126
|
+
# Response following update to Selection Choice properties.
|
1127
|
+
# Corresponds to the JSON property `updateSelectionChoiceProperties`
|
1128
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse]
|
1129
|
+
attr_accessor :update_selection_choice_properties
|
1130
|
+
|
1131
|
+
def initialize(**args)
|
1132
|
+
update!(**args)
|
1133
|
+
end
|
1134
|
+
|
1135
|
+
# Update properties of this object
|
1136
|
+
def update!(**args)
|
1137
|
+
@create_field = args[:create_field] if args.key?(:create_field)
|
1138
|
+
@create_selection_choice = args[:create_selection_choice] if args.key?(:create_selection_choice)
|
1139
|
+
@delete_field = args[:delete_field] if args.key?(:delete_field)
|
1140
|
+
@delete_selection_choice = args[:delete_selection_choice] if args.key?(:delete_selection_choice)
|
1141
|
+
@disable_field = args[:disable_field] if args.key?(:disable_field)
|
1142
|
+
@disable_selection_choice = args[:disable_selection_choice] if args.key?(:disable_selection_choice)
|
1143
|
+
@enable_field = args[:enable_field] if args.key?(:enable_field)
|
1144
|
+
@enable_selection_choice = args[:enable_selection_choice] if args.key?(:enable_selection_choice)
|
1145
|
+
@update_field = args[:update_field] if args.key?(:update_field)
|
1146
|
+
@update_field_type = args[:update_field_type] if args.key?(:update_field_type)
|
1147
|
+
@update_label = args[:update_label] if args.key?(:update_label)
|
1148
|
+
@update_selection_choice_properties = args[:update_selection_choice_properties] if args.key?(:update_selection_choice_properties)
|
1149
|
+
end
|
1150
|
+
end
|
1151
|
+
|
1152
|
+
# Response following update to Field properties.
|
1153
|
+
class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldPropertiesResponse
|
1154
|
+
include Google::Apis::Core::Hashable
|
1155
|
+
|
1156
|
+
# The priority of the updated field. The priority may change from what was
|
1157
|
+
# specified to assure contiguous priorities between fields (1-n).
|
1158
|
+
# Corresponds to the JSON property `priority`
|
1159
|
+
# @return [Fixnum]
|
1160
|
+
attr_accessor :priority
|
1161
|
+
|
1162
|
+
def initialize(**args)
|
1163
|
+
update!(**args)
|
1164
|
+
end
|
1165
|
+
|
1166
|
+
# Update properties of this object
|
1167
|
+
def update!(**args)
|
1168
|
+
@priority = args[:priority] if args.key?(:priority)
|
1169
|
+
end
|
1170
|
+
end
|
1171
|
+
|
1172
|
+
# Response following update to Field type.
|
1173
|
+
class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldTypeResponse
|
1174
|
+
include Google::Apis::Core::Hashable
|
1175
|
+
|
1176
|
+
def initialize(**args)
|
1177
|
+
update!(**args)
|
1178
|
+
end
|
1179
|
+
|
1180
|
+
# Update properties of this object
|
1181
|
+
def update!(**args)
|
1182
|
+
end
|
1183
|
+
end
|
1184
|
+
|
1185
|
+
# Response following update to Label properties.
|
1186
|
+
class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateLabelPropertiesResponse
|
1187
|
+
include Google::Apis::Core::Hashable
|
1188
|
+
|
1189
|
+
def initialize(**args)
|
1190
|
+
update!(**args)
|
1191
|
+
end
|
1192
|
+
|
1193
|
+
# Update properties of this object
|
1194
|
+
def update!(**args)
|
1195
|
+
end
|
1196
|
+
end
|
1197
|
+
|
1198
|
+
# Response following update to Selection Choice properties.
|
1199
|
+
class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse
|
1200
|
+
include Google::Apis::Core::Hashable
|
1201
|
+
|
1202
|
+
# The priority of the updated choice. The priority may change from what was
|
1203
|
+
# specified to assure contiguous priorities between choices (1-n).
|
1204
|
+
# Corresponds to the JSON property `priority`
|
1205
|
+
# @return [Fixnum]
|
1206
|
+
attr_accessor :priority
|
1207
|
+
|
1208
|
+
def initialize(**args)
|
1209
|
+
update!(**args)
|
1210
|
+
end
|
1211
|
+
|
1212
|
+
# Update properties of this object
|
1213
|
+
def update!(**args)
|
1214
|
+
@priority = args[:priority] if args.key?(:priority)
|
1215
|
+
end
|
1216
|
+
end
|
1217
|
+
|
1218
|
+
# Request to deprecate a published Label.
|
1219
|
+
class GoogleAppsDriveLabelsV2DisableLabelRequest
|
1220
|
+
include Google::Apis::Core::Hashable
|
1221
|
+
|
1222
|
+
# The policy that governs how to treat a disabled label, field, or selection
|
1223
|
+
# choice in different contexts.
|
1224
|
+
# Corresponds to the JSON property `disabledPolicy`
|
1225
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2LifecycleDisabledPolicy]
|
1226
|
+
attr_accessor :disabled_policy
|
1227
|
+
|
1228
|
+
# The BCP-47 language code to use for evaluating localized field labels. When
|
1229
|
+
# not specified, values in the default configured language will be used.
|
1230
|
+
# Corresponds to the JSON property `languageCode`
|
1231
|
+
# @return [String]
|
1232
|
+
attr_accessor :language_code
|
1233
|
+
|
1234
|
+
# The fields that should be updated. At least one field must be specified. The
|
1235
|
+
# root `disabled_policy` is implied and should not be specified. A single `*`
|
1236
|
+
# can be used as short-hand for updating every field.
|
1237
|
+
# Corresponds to the JSON property `updateMask`
|
1238
|
+
# @return [String]
|
1239
|
+
attr_accessor :update_mask
|
1240
|
+
|
1241
|
+
# Set to `true` in order to use the user's admin credentials. The server will
|
1242
|
+
# verify the user is an admin for the Label before allowing access.
|
1243
|
+
# Corresponds to the JSON property `useAdminAccess`
|
1244
|
+
# @return [Boolean]
|
1245
|
+
attr_accessor :use_admin_access
|
1246
|
+
alias_method :use_admin_access?, :use_admin_access
|
1247
|
+
|
1248
|
+
# Provides control over how write requests are executed. When not specified, the
|
1249
|
+
# last write wins.
|
1250
|
+
# Corresponds to the JSON property `writeControl`
|
1251
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2WriteControl]
|
1252
|
+
attr_accessor :write_control
|
1253
|
+
|
1254
|
+
def initialize(**args)
|
1255
|
+
update!(**args)
|
1256
|
+
end
|
1257
|
+
|
1258
|
+
# Update properties of this object
|
1259
|
+
def update!(**args)
|
1260
|
+
@disabled_policy = args[:disabled_policy] if args.key?(:disabled_policy)
|
1261
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
1262
|
+
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
1263
|
+
@use_admin_access = args[:use_admin_access] if args.key?(:use_admin_access)
|
1264
|
+
@write_control = args[:write_control] if args.key?(:write_control)
|
1265
|
+
end
|
1266
|
+
end
|
1267
|
+
|
1268
|
+
# Request to enable a label.
|
1269
|
+
class GoogleAppsDriveLabelsV2EnableLabelRequest
|
1270
|
+
include Google::Apis::Core::Hashable
|
1271
|
+
|
1272
|
+
# The BCP-47 language code to use for evaluating localized field labels. When
|
1273
|
+
# not specified, values in the default configured language will be used.
|
1274
|
+
# Corresponds to the JSON property `languageCode`
|
1275
|
+
# @return [String]
|
1276
|
+
attr_accessor :language_code
|
1277
|
+
|
1278
|
+
# Set to `true` in order to use the user's admin credentials. The server will
|
1279
|
+
# verify the user is an admin for the Label before allowing access.
|
1280
|
+
# Corresponds to the JSON property `useAdminAccess`
|
1281
|
+
# @return [Boolean]
|
1282
|
+
attr_accessor :use_admin_access
|
1283
|
+
alias_method :use_admin_access?, :use_admin_access
|
1284
|
+
|
1285
|
+
# Provides control over how write requests are executed. When not specified, the
|
1286
|
+
# last write wins.
|
1287
|
+
# Corresponds to the JSON property `writeControl`
|
1288
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2WriteControl]
|
1289
|
+
attr_accessor :write_control
|
1290
|
+
|
1291
|
+
def initialize(**args)
|
1292
|
+
update!(**args)
|
1293
|
+
end
|
1294
|
+
|
1295
|
+
# Update properties of this object
|
1296
|
+
def update!(**args)
|
1297
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
1298
|
+
@use_admin_access = args[:use_admin_access] if args.key?(:use_admin_access)
|
1299
|
+
@write_control = args[:write_control] if args.key?(:write_control)
|
1300
|
+
end
|
1301
|
+
end
|
1302
|
+
|
259
1303
|
# Defines a field that has a display name, data type, and other configuration
|
260
1304
|
# options. This field defines the kind of metadata that may be set on a Drive
|
261
1305
|
# item.
|
@@ -558,6 +1602,74 @@ module Google
|
|
558
1602
|
end
|
559
1603
|
end
|
560
1604
|
|
1605
|
+
# Field constants governing the structure of a Field; such as, the maximum title
|
1606
|
+
# length, minimum and maximum field values or length, etc.
|
1607
|
+
class GoogleAppsDriveLabelsV2FieldLimits
|
1608
|
+
include Google::Apis::Core::Hashable
|
1609
|
+
|
1610
|
+
# Limits for date Field type.
|
1611
|
+
# Corresponds to the JSON property `dateLimits`
|
1612
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DateLimits]
|
1613
|
+
attr_accessor :date_limits
|
1614
|
+
|
1615
|
+
# Limits for integer Field type.
|
1616
|
+
# Corresponds to the JSON property `integerLimits`
|
1617
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2IntegerLimits]
|
1618
|
+
attr_accessor :integer_limits
|
1619
|
+
|
1620
|
+
# Limits for long text Field type.
|
1621
|
+
# Corresponds to the JSON property `longTextLimits`
|
1622
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2LongTextLimits]
|
1623
|
+
attr_accessor :long_text_limits
|
1624
|
+
|
1625
|
+
# Limits for Field description, also called help text.
|
1626
|
+
# Corresponds to the JSON property `maxDescriptionLength`
|
1627
|
+
# @return [Fixnum]
|
1628
|
+
attr_accessor :max_description_length
|
1629
|
+
|
1630
|
+
# Limits for Field title.
|
1631
|
+
# Corresponds to the JSON property `maxDisplayNameLength`
|
1632
|
+
# @return [Fixnum]
|
1633
|
+
attr_accessor :max_display_name_length
|
1634
|
+
|
1635
|
+
# Max length for the id.
|
1636
|
+
# Corresponds to the JSON property `maxIdLength`
|
1637
|
+
# @return [Fixnum]
|
1638
|
+
attr_accessor :max_id_length
|
1639
|
+
|
1640
|
+
# Limits for selection Field type.
|
1641
|
+
# Corresponds to the JSON property `selectionLimits`
|
1642
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2SelectionLimits]
|
1643
|
+
attr_accessor :selection_limits
|
1644
|
+
|
1645
|
+
# Limits for text Field type.
|
1646
|
+
# Corresponds to the JSON property `textLimits`
|
1647
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2TextLimits]
|
1648
|
+
attr_accessor :text_limits
|
1649
|
+
|
1650
|
+
# Limits for Field.Type.USER.
|
1651
|
+
# Corresponds to the JSON property `userLimits`
|
1652
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2UserLimits]
|
1653
|
+
attr_accessor :user_limits
|
1654
|
+
|
1655
|
+
def initialize(**args)
|
1656
|
+
update!(**args)
|
1657
|
+
end
|
1658
|
+
|
1659
|
+
# Update properties of this object
|
1660
|
+
def update!(**args)
|
1661
|
+
@date_limits = args[:date_limits] if args.key?(:date_limits)
|
1662
|
+
@integer_limits = args[:integer_limits] if args.key?(:integer_limits)
|
1663
|
+
@long_text_limits = args[:long_text_limits] if args.key?(:long_text_limits)
|
1664
|
+
@max_description_length = args[:max_description_length] if args.key?(:max_description_length)
|
1665
|
+
@max_display_name_length = args[:max_display_name_length] if args.key?(:max_display_name_length)
|
1666
|
+
@max_id_length = args[:max_id_length] if args.key?(:max_id_length)
|
1667
|
+
@selection_limits = args[:selection_limits] if args.key?(:selection_limits)
|
1668
|
+
@text_limits = args[:text_limits] if args.key?(:text_limits)
|
1669
|
+
@user_limits = args[:user_limits] if args.key?(:user_limits)
|
1670
|
+
end
|
1671
|
+
end
|
1672
|
+
|
561
1673
|
# Options for a multi-valued variant of an associated field type.
|
562
1674
|
class GoogleAppsDriveLabelsV2FieldListOptions
|
563
1675
|
include Google::Apis::Core::Hashable
|
@@ -577,6 +1689,31 @@ module Google
|
|
577
1689
|
end
|
578
1690
|
end
|
579
1691
|
|
1692
|
+
# Options the Long Text field type.
|
1693
|
+
class GoogleAppsDriveLabelsV2FieldLongTextOptions
|
1694
|
+
include Google::Apis::Core::Hashable
|
1695
|
+
|
1696
|
+
# Output only. The maximum valid length of values for the text field.
|
1697
|
+
# Corresponds to the JSON property `maxLength`
|
1698
|
+
# @return [Fixnum]
|
1699
|
+
attr_accessor :max_length
|
1700
|
+
|
1701
|
+
# Output only. The minimum valid length of values for the text field.
|
1702
|
+
# Corresponds to the JSON property `minLength`
|
1703
|
+
# @return [Fixnum]
|
1704
|
+
attr_accessor :min_length
|
1705
|
+
|
1706
|
+
def initialize(**args)
|
1707
|
+
update!(**args)
|
1708
|
+
end
|
1709
|
+
|
1710
|
+
# Update properties of this object
|
1711
|
+
def update!(**args)
|
1712
|
+
@max_length = args[:max_length] if args.key?(:max_length)
|
1713
|
+
@min_length = args[:min_length] if args.key?(:min_length)
|
1714
|
+
end
|
1715
|
+
end
|
1716
|
+
|
580
1717
|
# The basic properties of the field.
|
581
1718
|
class GoogleAppsDriveLabelsV2FieldProperties
|
582
1719
|
include Google::Apis::Core::Hashable
|
@@ -1012,6 +2149,31 @@ module Google
|
|
1012
2149
|
end
|
1013
2150
|
end
|
1014
2151
|
|
2152
|
+
# Limits for integer Field type.
|
2153
|
+
class GoogleAppsDriveLabelsV2IntegerLimits
|
2154
|
+
include Google::Apis::Core::Hashable
|
2155
|
+
|
2156
|
+
# Maximum value for an integer Field type.
|
2157
|
+
# Corresponds to the JSON property `maxValue`
|
2158
|
+
# @return [Fixnum]
|
2159
|
+
attr_accessor :max_value
|
2160
|
+
|
2161
|
+
# Minimum value for an integer Field type.
|
2162
|
+
# Corresponds to the JSON property `minValue`
|
2163
|
+
# @return [Fixnum]
|
2164
|
+
attr_accessor :min_value
|
2165
|
+
|
2166
|
+
def initialize(**args)
|
2167
|
+
update!(**args)
|
2168
|
+
end
|
2169
|
+
|
2170
|
+
# Update properties of this object
|
2171
|
+
def update!(**args)
|
2172
|
+
@max_value = args[:max_value] if args.key?(:max_value)
|
2173
|
+
@min_value = args[:min_value] if args.key?(:min_value)
|
2174
|
+
end
|
2175
|
+
end
|
2176
|
+
|
1015
2177
|
# A label defines a taxonomy that can be applied to Drive items in order to
|
1016
2178
|
# organize and search across items. Labels can be simple strings, or can contain
|
1017
2179
|
# fields that describe additional metadata that can be further used to organize
|
@@ -1238,23 +2400,217 @@ module Google
|
|
1238
2400
|
attr_accessor :disabled
|
1239
2401
|
alias_method :disabled?, :disabled
|
1240
2402
|
|
1241
|
-
# This label should be hidden in the search menu when searching for Drive items.
|
1242
|
-
# Corresponds to the JSON property `hiddenInSearch`
|
1243
|
-
# @return [Boolean]
|
1244
|
-
attr_accessor :hidden_in_search
|
1245
|
-
alias_method :hidden_in_search?, :hidden_in_search
|
2403
|
+
# This label should be hidden in the search menu when searching for Drive items.
|
2404
|
+
# Corresponds to the JSON property `hiddenInSearch`
|
2405
|
+
# @return [Boolean]
|
2406
|
+
attr_accessor :hidden_in_search
|
2407
|
+
alias_method :hidden_in_search?, :hidden_in_search
|
2408
|
+
|
2409
|
+
# Order to display label in a list.
|
2410
|
+
# Corresponds to the JSON property `priority`
|
2411
|
+
# @return [Fixnum]
|
2412
|
+
attr_accessor :priority
|
2413
|
+
|
2414
|
+
# This label should be shown in the apply menu when applying values to a Drive
|
2415
|
+
# item.
|
2416
|
+
# Corresponds to the JSON property `shownInApply`
|
2417
|
+
# @return [Boolean]
|
2418
|
+
attr_accessor :shown_in_apply
|
2419
|
+
alias_method :shown_in_apply?, :shown_in_apply
|
2420
|
+
|
2421
|
+
def initialize(**args)
|
2422
|
+
update!(**args)
|
2423
|
+
end
|
2424
|
+
|
2425
|
+
# Update properties of this object
|
2426
|
+
def update!(**args)
|
2427
|
+
@disabled = args[:disabled] if args.key?(:disabled)
|
2428
|
+
@hidden_in_search = args[:hidden_in_search] if args.key?(:hidden_in_search)
|
2429
|
+
@priority = args[:priority] if args.key?(:priority)
|
2430
|
+
@shown_in_apply = args[:shown_in_apply] if args.key?(:shown_in_apply)
|
2431
|
+
end
|
2432
|
+
end
|
2433
|
+
|
2434
|
+
# Label constraints governing the structure of a Label; such as, the maximum
|
2435
|
+
# number of Fields allowed and maximum length of the label title.
|
2436
|
+
class GoogleAppsDriveLabelsV2LabelLimits
|
2437
|
+
include Google::Apis::Core::Hashable
|
2438
|
+
|
2439
|
+
# Field constants governing the structure of a Field; such as, the maximum title
|
2440
|
+
# length, minimum and maximum field values or length, etc.
|
2441
|
+
# Corresponds to the JSON property `fieldLimits`
|
2442
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2FieldLimits]
|
2443
|
+
attr_accessor :field_limits
|
2444
|
+
|
2445
|
+
# The maximum number of published Fields that can be deleted.
|
2446
|
+
# Corresponds to the JSON property `maxDeletedFields`
|
2447
|
+
# @return [Fixnum]
|
2448
|
+
attr_accessor :max_deleted_fields
|
2449
|
+
|
2450
|
+
# The maximum number of characters allowed for the description.
|
2451
|
+
# Corresponds to the JSON property `maxDescriptionLength`
|
2452
|
+
# @return [Fixnum]
|
2453
|
+
attr_accessor :max_description_length
|
2454
|
+
|
2455
|
+
# The maximum number of draft revisions that will be kept before deleting old
|
2456
|
+
# drafts.
|
2457
|
+
# Corresponds to the JSON property `maxDraftRevisions`
|
2458
|
+
# @return [Fixnum]
|
2459
|
+
attr_accessor :max_draft_revisions
|
2460
|
+
|
2461
|
+
# The maximum number of Fields allowed within the label.
|
2462
|
+
# Corresponds to the JSON property `maxFields`
|
2463
|
+
# @return [Fixnum]
|
2464
|
+
attr_accessor :max_fields
|
2465
|
+
|
2466
|
+
# The maximum number of characters allowed for the title.
|
2467
|
+
# Corresponds to the JSON property `maxTitleLength`
|
2468
|
+
# @return [Fixnum]
|
2469
|
+
attr_accessor :max_title_length
|
2470
|
+
|
2471
|
+
# Resource name.
|
2472
|
+
# Corresponds to the JSON property `name`
|
2473
|
+
# @return [String]
|
2474
|
+
attr_accessor :name
|
2475
|
+
|
2476
|
+
def initialize(**args)
|
2477
|
+
update!(**args)
|
2478
|
+
end
|
2479
|
+
|
2480
|
+
# Update properties of this object
|
2481
|
+
def update!(**args)
|
2482
|
+
@field_limits = args[:field_limits] if args.key?(:field_limits)
|
2483
|
+
@max_deleted_fields = args[:max_deleted_fields] if args.key?(:max_deleted_fields)
|
2484
|
+
@max_description_length = args[:max_description_length] if args.key?(:max_description_length)
|
2485
|
+
@max_draft_revisions = args[:max_draft_revisions] if args.key?(:max_draft_revisions)
|
2486
|
+
@max_fields = args[:max_fields] if args.key?(:max_fields)
|
2487
|
+
@max_title_length = args[:max_title_length] if args.key?(:max_title_length)
|
2488
|
+
@name = args[:name] if args.key?(:name)
|
2489
|
+
end
|
2490
|
+
end
|
2491
|
+
|
2492
|
+
# A Lock that can be applied to a Label, Field, or Choice.
|
2493
|
+
class GoogleAppsDriveLabelsV2LabelLock
|
2494
|
+
include Google::Apis::Core::Hashable
|
2495
|
+
|
2496
|
+
# A description of a user's capabilities on a LabelLock.
|
2497
|
+
# Corresponds to the JSON property `capabilities`
|
2498
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2LabelLockCapabilities]
|
2499
|
+
attr_accessor :capabilities
|
2500
|
+
|
2501
|
+
# The ID of the Selection Field Choice that should be locked. If present, `
|
2502
|
+
# field_id` must also be present.
|
2503
|
+
# Corresponds to the JSON property `choiceId`
|
2504
|
+
# @return [String]
|
2505
|
+
attr_accessor :choice_id
|
2506
|
+
|
2507
|
+
# Output only. The time this LabelLock was created.
|
2508
|
+
# Corresponds to the JSON property `createTime`
|
2509
|
+
# @return [String]
|
2510
|
+
attr_accessor :create_time
|
2511
|
+
|
2512
|
+
# Information about a user.
|
2513
|
+
# Corresponds to the JSON property `creator`
|
2514
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2UserInfo]
|
2515
|
+
attr_accessor :creator
|
2516
|
+
|
2517
|
+
# Output only. A timestamp indicating when this LabelLock was scheduled for
|
2518
|
+
# deletion. This will be present only if this LabelLock is in the DELETING state.
|
2519
|
+
# Corresponds to the JSON property `deleteTime`
|
2520
|
+
# @return [String]
|
2521
|
+
attr_accessor :delete_time
|
2522
|
+
|
2523
|
+
# The ID of the Field that should be locked. Empty if the whole Label should be
|
2524
|
+
# locked.
|
2525
|
+
# Corresponds to the JSON property `fieldId`
|
2526
|
+
# @return [String]
|
2527
|
+
attr_accessor :field_id
|
2528
|
+
|
2529
|
+
# Output only. Resource name of this LabelLock.
|
2530
|
+
# Corresponds to the JSON property `name`
|
2531
|
+
# @return [String]
|
2532
|
+
attr_accessor :name
|
2533
|
+
|
2534
|
+
# Output only. This LabelLock's state.
|
2535
|
+
# Corresponds to the JSON property `state`
|
2536
|
+
# @return [String]
|
2537
|
+
attr_accessor :state
|
2538
|
+
|
2539
|
+
def initialize(**args)
|
2540
|
+
update!(**args)
|
2541
|
+
end
|
2542
|
+
|
2543
|
+
# Update properties of this object
|
2544
|
+
def update!(**args)
|
2545
|
+
@capabilities = args[:capabilities] if args.key?(:capabilities)
|
2546
|
+
@choice_id = args[:choice_id] if args.key?(:choice_id)
|
2547
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
2548
|
+
@creator = args[:creator] if args.key?(:creator)
|
2549
|
+
@delete_time = args[:delete_time] if args.key?(:delete_time)
|
2550
|
+
@field_id = args[:field_id] if args.key?(:field_id)
|
2551
|
+
@name = args[:name] if args.key?(:name)
|
2552
|
+
@state = args[:state] if args.key?(:state)
|
2553
|
+
end
|
2554
|
+
end
|
2555
|
+
|
2556
|
+
# A description of a user's capabilities on a LabelLock.
|
2557
|
+
class GoogleAppsDriveLabelsV2LabelLockCapabilities
|
2558
|
+
include Google::Apis::Core::Hashable
|
2559
|
+
|
2560
|
+
# True if the user is authorized to view the policy.
|
2561
|
+
# Corresponds to the JSON property `canViewPolicy`
|
2562
|
+
# @return [Boolean]
|
2563
|
+
attr_accessor :can_view_policy
|
2564
|
+
alias_method :can_view_policy?, :can_view_policy
|
2565
|
+
|
2566
|
+
def initialize(**args)
|
2567
|
+
update!(**args)
|
2568
|
+
end
|
2569
|
+
|
2570
|
+
# Update properties of this object
|
2571
|
+
def update!(**args)
|
2572
|
+
@can_view_policy = args[:can_view_policy] if args.key?(:can_view_policy)
|
2573
|
+
end
|
2574
|
+
end
|
2575
|
+
|
2576
|
+
# The permission that applies to a principal (user, group, audience) on a label.
|
2577
|
+
class GoogleAppsDriveLabelsV2LabelPermission
|
2578
|
+
include Google::Apis::Core::Hashable
|
2579
|
+
|
2580
|
+
# Audience to grant a role to. The magic value of `audiences/default` may be
|
2581
|
+
# used to apply the role to the default audience in the context of the
|
2582
|
+
# organization that owns the Label.
|
2583
|
+
# Corresponds to the JSON property `audience`
|
2584
|
+
# @return [String]
|
2585
|
+
attr_accessor :audience
|
2586
|
+
|
2587
|
+
# Specifies the email address for a user or group pricinpal. Not populated for
|
2588
|
+
# audience principals. User and Group permissions may only be inserted using
|
2589
|
+
# email address. On update requests, if email address is specified, no principal
|
2590
|
+
# should be specified.
|
2591
|
+
# Corresponds to the JSON property `email`
|
2592
|
+
# @return [String]
|
2593
|
+
attr_accessor :email
|
2594
|
+
|
2595
|
+
# Group resource name.
|
2596
|
+
# Corresponds to the JSON property `group`
|
2597
|
+
# @return [String]
|
2598
|
+
attr_accessor :group
|
2599
|
+
|
2600
|
+
# Resource name of this permission.
|
2601
|
+
# Corresponds to the JSON property `name`
|
2602
|
+
# @return [String]
|
2603
|
+
attr_accessor :name
|
1246
2604
|
|
1247
|
-
#
|
1248
|
-
# Corresponds to the JSON property `
|
1249
|
-
# @return [
|
1250
|
-
attr_accessor :
|
2605
|
+
# Person resource name.
|
2606
|
+
# Corresponds to the JSON property `person`
|
2607
|
+
# @return [String]
|
2608
|
+
attr_accessor :person
|
1251
2609
|
|
1252
|
-
#
|
1253
|
-
#
|
1254
|
-
#
|
1255
|
-
|
1256
|
-
attr_accessor :shown_in_apply
|
1257
|
-
alias_method :shown_in_apply?, :shown_in_apply
|
2610
|
+
# The role the principal should have.
|
2611
|
+
# Corresponds to the JSON property `role`
|
2612
|
+
# @return [String]
|
2613
|
+
attr_accessor :role
|
1258
2614
|
|
1259
2615
|
def initialize(**args)
|
1260
2616
|
update!(**args)
|
@@ -1262,10 +2618,12 @@ module Google
|
|
1262
2618
|
|
1263
2619
|
# Update properties of this object
|
1264
2620
|
def update!(**args)
|
1265
|
-
@
|
1266
|
-
@
|
1267
|
-
@
|
1268
|
-
@
|
2621
|
+
@audience = args[:audience] if args.key?(:audience)
|
2622
|
+
@email = args[:email] if args.key?(:email)
|
2623
|
+
@group = args[:group] if args.key?(:group)
|
2624
|
+
@name = args[:name] if args.key?(:name)
|
2625
|
+
@person = args[:person] if args.key?(:person)
|
2626
|
+
@role = args[:role] if args.key?(:role)
|
1269
2627
|
end
|
1270
2628
|
end
|
1271
2629
|
|
@@ -1414,6 +2772,56 @@ module Google
|
|
1414
2772
|
end
|
1415
2773
|
end
|
1416
2774
|
|
2775
|
+
# The response to a ListLabelLocksRequest.
|
2776
|
+
class GoogleAppsDriveLabelsV2ListLabelLocksResponse
|
2777
|
+
include Google::Apis::Core::Hashable
|
2778
|
+
|
2779
|
+
# LabelLocks.
|
2780
|
+
# Corresponds to the JSON property `labelLocks`
|
2781
|
+
# @return [Array<Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2LabelLock>]
|
2782
|
+
attr_accessor :label_locks
|
2783
|
+
|
2784
|
+
# The token of the next page in the response.
|
2785
|
+
# Corresponds to the JSON property `nextPageToken`
|
2786
|
+
# @return [String]
|
2787
|
+
attr_accessor :next_page_token
|
2788
|
+
|
2789
|
+
def initialize(**args)
|
2790
|
+
update!(**args)
|
2791
|
+
end
|
2792
|
+
|
2793
|
+
# Update properties of this object
|
2794
|
+
def update!(**args)
|
2795
|
+
@label_locks = args[:label_locks] if args.key?(:label_locks)
|
2796
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
2797
|
+
end
|
2798
|
+
end
|
2799
|
+
|
2800
|
+
# Response for listing the permissions on a Label.
|
2801
|
+
class GoogleAppsDriveLabelsV2ListLabelPermissionsResponse
|
2802
|
+
include Google::Apis::Core::Hashable
|
2803
|
+
|
2804
|
+
# Label permissions.
|
2805
|
+
# Corresponds to the JSON property `labelPermissions`
|
2806
|
+
# @return [Array<Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2LabelPermission>]
|
2807
|
+
attr_accessor :label_permissions
|
2808
|
+
|
2809
|
+
# The token of the next page in the response.
|
2810
|
+
# Corresponds to the JSON property `nextPageToken`
|
2811
|
+
# @return [String]
|
2812
|
+
attr_accessor :next_page_token
|
2813
|
+
|
2814
|
+
def initialize(**args)
|
2815
|
+
update!(**args)
|
2816
|
+
end
|
2817
|
+
|
2818
|
+
# Update properties of this object
|
2819
|
+
def update!(**args)
|
2820
|
+
@label_permissions = args[:label_permissions] if args.key?(:label_permissions)
|
2821
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
2822
|
+
end
|
2823
|
+
end
|
2824
|
+
|
1417
2825
|
# Response for listing Labels.
|
1418
2826
|
class GoogleAppsDriveLabelsV2ListLabelsResponse
|
1419
2827
|
include Google::Apis::Core::Hashable
|
@@ -1439,6 +2847,25 @@ module Google
|
|
1439
2847
|
end
|
1440
2848
|
end
|
1441
2849
|
|
2850
|
+
# Limits for list-variant of a Field type.
|
2851
|
+
class GoogleAppsDriveLabelsV2ListLimits
|
2852
|
+
include Google::Apis::Core::Hashable
|
2853
|
+
|
2854
|
+
# Maximum number of values allowed for the Field type.
|
2855
|
+
# Corresponds to the JSON property `maxEntries`
|
2856
|
+
# @return [Fixnum]
|
2857
|
+
attr_accessor :max_entries
|
2858
|
+
|
2859
|
+
def initialize(**args)
|
2860
|
+
update!(**args)
|
2861
|
+
end
|
2862
|
+
|
2863
|
+
# Update properties of this object
|
2864
|
+
def update!(**args)
|
2865
|
+
@max_entries = args[:max_entries] if args.key?(:max_entries)
|
2866
|
+
end
|
2867
|
+
end
|
2868
|
+
|
1442
2869
|
# Contains information about whether a label component should be considered
|
1443
2870
|
# locked.
|
1444
2871
|
class GoogleAppsDriveLabelsV2LockStatus
|
@@ -1462,6 +2889,259 @@ module Google
|
|
1462
2889
|
end
|
1463
2890
|
end
|
1464
2891
|
|
2892
|
+
# Limits for long text Field type.
|
2893
|
+
class GoogleAppsDriveLabelsV2LongTextLimits
|
2894
|
+
include Google::Apis::Core::Hashable
|
2895
|
+
|
2896
|
+
# Maximum length allowed for a long text Field type.
|
2897
|
+
# Corresponds to the JSON property `maxLength`
|
2898
|
+
# @return [Fixnum]
|
2899
|
+
attr_accessor :max_length
|
2900
|
+
|
2901
|
+
# Minimum length allowed for a long text Field type.
|
2902
|
+
# Corresponds to the JSON property `minLength`
|
2903
|
+
# @return [Fixnum]
|
2904
|
+
attr_accessor :min_length
|
2905
|
+
|
2906
|
+
def initialize(**args)
|
2907
|
+
update!(**args)
|
2908
|
+
end
|
2909
|
+
|
2910
|
+
# Update properties of this object
|
2911
|
+
def update!(**args)
|
2912
|
+
@max_length = args[:max_length] if args.key?(:max_length)
|
2913
|
+
@min_length = args[:min_length] if args.key?(:min_length)
|
2914
|
+
end
|
2915
|
+
end
|
2916
|
+
|
2917
|
+
# Request to publish a label.
|
2918
|
+
class GoogleAppsDriveLabelsV2PublishLabelRequest
|
2919
|
+
include Google::Apis::Core::Hashable
|
2920
|
+
|
2921
|
+
# The BCP-47 language code to use for evaluating localized field labels. When
|
2922
|
+
# not specified, values in the default configured language will be used.
|
2923
|
+
# Corresponds to the JSON property `languageCode`
|
2924
|
+
# @return [String]
|
2925
|
+
attr_accessor :language_code
|
2926
|
+
|
2927
|
+
# Set to `true` in order to use the user's admin credentials. The server will
|
2928
|
+
# verify the user is an admin for the Label before allowing access.
|
2929
|
+
# Corresponds to the JSON property `useAdminAccess`
|
2930
|
+
# @return [Boolean]
|
2931
|
+
attr_accessor :use_admin_access
|
2932
|
+
alias_method :use_admin_access?, :use_admin_access
|
2933
|
+
|
2934
|
+
# Provides control over how write requests are executed. When not specified, the
|
2935
|
+
# last write wins.
|
2936
|
+
# Corresponds to the JSON property `writeControl`
|
2937
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2WriteControl]
|
2938
|
+
attr_accessor :write_control
|
2939
|
+
|
2940
|
+
def initialize(**args)
|
2941
|
+
update!(**args)
|
2942
|
+
end
|
2943
|
+
|
2944
|
+
# Update properties of this object
|
2945
|
+
def update!(**args)
|
2946
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
2947
|
+
@use_admin_access = args[:use_admin_access] if args.key?(:use_admin_access)
|
2948
|
+
@write_control = args[:write_control] if args.key?(:write_control)
|
2949
|
+
end
|
2950
|
+
end
|
2951
|
+
|
2952
|
+
# Limits for selection Field type.
|
2953
|
+
class GoogleAppsDriveLabelsV2SelectionLimits
|
2954
|
+
include Google::Apis::Core::Hashable
|
2955
|
+
|
2956
|
+
# Limits for list-variant of a Field type.
|
2957
|
+
# Corresponds to the JSON property `listLimits`
|
2958
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2ListLimits]
|
2959
|
+
attr_accessor :list_limits
|
2960
|
+
|
2961
|
+
# The max number of choices.
|
2962
|
+
# Corresponds to the JSON property `maxChoices`
|
2963
|
+
# @return [Fixnum]
|
2964
|
+
attr_accessor :max_choices
|
2965
|
+
|
2966
|
+
# Maximum number of deleted choices.
|
2967
|
+
# Corresponds to the JSON property `maxDeletedChoices`
|
2968
|
+
# @return [Fixnum]
|
2969
|
+
attr_accessor :max_deleted_choices
|
2970
|
+
|
2971
|
+
# Maximum length for display name.
|
2972
|
+
# Corresponds to the JSON property `maxDisplayNameLength`
|
2973
|
+
# @return [Fixnum]
|
2974
|
+
attr_accessor :max_display_name_length
|
2975
|
+
|
2976
|
+
# Maximum ID length for a selection options.
|
2977
|
+
# Corresponds to the JSON property `maxIdLength`
|
2978
|
+
# @return [Fixnum]
|
2979
|
+
attr_accessor :max_id_length
|
2980
|
+
|
2981
|
+
def initialize(**args)
|
2982
|
+
update!(**args)
|
2983
|
+
end
|
2984
|
+
|
2985
|
+
# Update properties of this object
|
2986
|
+
def update!(**args)
|
2987
|
+
@list_limits = args[:list_limits] if args.key?(:list_limits)
|
2988
|
+
@max_choices = args[:max_choices] if args.key?(:max_choices)
|
2989
|
+
@max_deleted_choices = args[:max_deleted_choices] if args.key?(:max_deleted_choices)
|
2990
|
+
@max_display_name_length = args[:max_display_name_length] if args.key?(:max_display_name_length)
|
2991
|
+
@max_id_length = args[:max_id_length] if args.key?(:max_id_length)
|
2992
|
+
end
|
2993
|
+
end
|
2994
|
+
|
2995
|
+
# Limits for text Field type.
|
2996
|
+
class GoogleAppsDriveLabelsV2TextLimits
|
2997
|
+
include Google::Apis::Core::Hashable
|
2998
|
+
|
2999
|
+
# Maximum length allowed for a text Field type.
|
3000
|
+
# Corresponds to the JSON property `maxLength`
|
3001
|
+
# @return [Fixnum]
|
3002
|
+
attr_accessor :max_length
|
3003
|
+
|
3004
|
+
# Minimum length allowed for a text Field type.
|
3005
|
+
# Corresponds to the JSON property `minLength`
|
3006
|
+
# @return [Fixnum]
|
3007
|
+
attr_accessor :min_length
|
3008
|
+
|
3009
|
+
def initialize(**args)
|
3010
|
+
update!(**args)
|
3011
|
+
end
|
3012
|
+
|
3013
|
+
# Update properties of this object
|
3014
|
+
def update!(**args)
|
3015
|
+
@max_length = args[:max_length] if args.key?(:max_length)
|
3016
|
+
@min_length = args[:min_length] if args.key?(:min_length)
|
3017
|
+
end
|
3018
|
+
end
|
3019
|
+
|
3020
|
+
# Request to update the `CopyMode` of the given Label. Changes to this policy
|
3021
|
+
# are not revisioned, do not require publishing, and take effect immediately. \
|
3022
|
+
class GoogleAppsDriveLabelsV2UpdateLabelCopyModeRequest
|
3023
|
+
include Google::Apis::Core::Hashable
|
3024
|
+
|
3025
|
+
# Required. Indicates how the applied Label, and Field values should be copied
|
3026
|
+
# when a Drive item is copied.
|
3027
|
+
# Corresponds to the JSON property `copyMode`
|
3028
|
+
# @return [String]
|
3029
|
+
attr_accessor :copy_mode
|
3030
|
+
|
3031
|
+
# The BCP-47 language code to use for evaluating localized field labels. When
|
3032
|
+
# not specified, values in the default configured language will be used.
|
3033
|
+
# Corresponds to the JSON property `languageCode`
|
3034
|
+
# @return [String]
|
3035
|
+
attr_accessor :language_code
|
3036
|
+
|
3037
|
+
# Set to `true` in order to use the user's admin credentials. The server will
|
3038
|
+
# verify the user is an admin for the Label before allowing access.
|
3039
|
+
# Corresponds to the JSON property `useAdminAccess`
|
3040
|
+
# @return [Boolean]
|
3041
|
+
attr_accessor :use_admin_access
|
3042
|
+
alias_method :use_admin_access?, :use_admin_access
|
3043
|
+
|
3044
|
+
# When specified, only certain fields belonging to the indicated view will be
|
3045
|
+
# returned.
|
3046
|
+
# Corresponds to the JSON property `view`
|
3047
|
+
# @return [String]
|
3048
|
+
attr_accessor :view
|
3049
|
+
|
3050
|
+
def initialize(**args)
|
3051
|
+
update!(**args)
|
3052
|
+
end
|
3053
|
+
|
3054
|
+
# Update properties of this object
|
3055
|
+
def update!(**args)
|
3056
|
+
@copy_mode = args[:copy_mode] if args.key?(:copy_mode)
|
3057
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
3058
|
+
@use_admin_access = args[:use_admin_access] if args.key?(:use_admin_access)
|
3059
|
+
@view = args[:view] if args.key?(:view)
|
3060
|
+
end
|
3061
|
+
end
|
3062
|
+
|
3063
|
+
# Updates a Label Permission. Permissions affect the Label resource as a whole,
|
3064
|
+
# are not revisioned, and do not require publishing.
|
3065
|
+
class GoogleAppsDriveLabelsV2UpdateLabelPermissionRequest
|
3066
|
+
include Google::Apis::Core::Hashable
|
3067
|
+
|
3068
|
+
# The permission that applies to a principal (user, group, audience) on a label.
|
3069
|
+
# Corresponds to the JSON property `labelPermission`
|
3070
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2LabelPermission]
|
3071
|
+
attr_accessor :label_permission
|
3072
|
+
|
3073
|
+
# Required. The parent Label resource name.
|
3074
|
+
# Corresponds to the JSON property `parent`
|
3075
|
+
# @return [String]
|
3076
|
+
attr_accessor :parent
|
3077
|
+
|
3078
|
+
# Set to `true` in order to use the user's admin credentials. The server will
|
3079
|
+
# verify the user is an admin for the Label before allowing access.
|
3080
|
+
# Corresponds to the JSON property `useAdminAccess`
|
3081
|
+
# @return [Boolean]
|
3082
|
+
attr_accessor :use_admin_access
|
3083
|
+
alias_method :use_admin_access?, :use_admin_access
|
3084
|
+
|
3085
|
+
def initialize(**args)
|
3086
|
+
update!(**args)
|
3087
|
+
end
|
3088
|
+
|
3089
|
+
# Update properties of this object
|
3090
|
+
def update!(**args)
|
3091
|
+
@label_permission = args[:label_permission] if args.key?(:label_permission)
|
3092
|
+
@parent = args[:parent] if args.key?(:parent)
|
3093
|
+
@use_admin_access = args[:use_admin_access] if args.key?(:use_admin_access)
|
3094
|
+
end
|
3095
|
+
end
|
3096
|
+
|
3097
|
+
# The capabilities of a user.
|
3098
|
+
class GoogleAppsDriveLabelsV2UserCapabilities
|
3099
|
+
include Google::Apis::Core::Hashable
|
3100
|
+
|
3101
|
+
# Output only. Whether the user is allowed access to the label manager.
|
3102
|
+
# Corresponds to the JSON property `canAccessLabelManager`
|
3103
|
+
# @return [Boolean]
|
3104
|
+
attr_accessor :can_access_label_manager
|
3105
|
+
alias_method :can_access_label_manager?, :can_access_label_manager
|
3106
|
+
|
3107
|
+
# Output only. Whether the user is an administrator for the shared labels
|
3108
|
+
# feature.
|
3109
|
+
# Corresponds to the JSON property `canAdministrateLabels`
|
3110
|
+
# @return [Boolean]
|
3111
|
+
attr_accessor :can_administrate_labels
|
3112
|
+
alias_method :can_administrate_labels?, :can_administrate_labels
|
3113
|
+
|
3114
|
+
# Output only. Whether the user is allowed to create new admin labels.
|
3115
|
+
# Corresponds to the JSON property `canCreateAdminLabels`
|
3116
|
+
# @return [Boolean]
|
3117
|
+
attr_accessor :can_create_admin_labels
|
3118
|
+
alias_method :can_create_admin_labels?, :can_create_admin_labels
|
3119
|
+
|
3120
|
+
# Output only. Whether the user is allowed to create new shared labels.
|
3121
|
+
# Corresponds to the JSON property `canCreateSharedLabels`
|
3122
|
+
# @return [Boolean]
|
3123
|
+
attr_accessor :can_create_shared_labels
|
3124
|
+
alias_method :can_create_shared_labels?, :can_create_shared_labels
|
3125
|
+
|
3126
|
+
# Output only. Resource name for the user capabilities.
|
3127
|
+
# Corresponds to the JSON property `name`
|
3128
|
+
# @return [String]
|
3129
|
+
attr_accessor :name
|
3130
|
+
|
3131
|
+
def initialize(**args)
|
3132
|
+
update!(**args)
|
3133
|
+
end
|
3134
|
+
|
3135
|
+
# Update properties of this object
|
3136
|
+
def update!(**args)
|
3137
|
+
@can_access_label_manager = args[:can_access_label_manager] if args.key?(:can_access_label_manager)
|
3138
|
+
@can_administrate_labels = args[:can_administrate_labels] if args.key?(:can_administrate_labels)
|
3139
|
+
@can_create_admin_labels = args[:can_create_admin_labels] if args.key?(:can_create_admin_labels)
|
3140
|
+
@can_create_shared_labels = args[:can_create_shared_labels] if args.key?(:can_create_shared_labels)
|
3141
|
+
@name = args[:name] if args.key?(:name)
|
3142
|
+
end
|
3143
|
+
end
|
3144
|
+
|
1465
3145
|
# Information about a user.
|
1466
3146
|
class GoogleAppsDriveLabelsV2UserInfo
|
1467
3147
|
include Google::Apis::Core::Hashable
|
@@ -1482,6 +3162,63 @@ module Google
|
|
1482
3162
|
end
|
1483
3163
|
end
|
1484
3164
|
|
3165
|
+
# Limits for Field.Type.USER.
|
3166
|
+
class GoogleAppsDriveLabelsV2UserLimits
|
3167
|
+
include Google::Apis::Core::Hashable
|
3168
|
+
|
3169
|
+
# Limits for list-variant of a Field type.
|
3170
|
+
# Corresponds to the JSON property `listLimits`
|
3171
|
+
# @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2ListLimits]
|
3172
|
+
attr_accessor :list_limits
|
3173
|
+
|
3174
|
+
def initialize(**args)
|
3175
|
+
update!(**args)
|
3176
|
+
end
|
3177
|
+
|
3178
|
+
# Update properties of this object
|
3179
|
+
def update!(**args)
|
3180
|
+
@list_limits = args[:list_limits] if args.key?(:list_limits)
|
3181
|
+
end
|
3182
|
+
end
|
3183
|
+
|
3184
|
+
# Provides control over how write requests are executed. When not specified, the
|
3185
|
+
# last write wins.
|
3186
|
+
class GoogleAppsDriveLabelsV2WriteControl
|
3187
|
+
include Google::Apis::Core::Hashable
|
3188
|
+
|
3189
|
+
# The revision_id of the label that the write request will be applied to. If
|
3190
|
+
# this is not the latest revision of the label, the request will not be
|
3191
|
+
# processed and will return a 400 Bad Request error.
|
3192
|
+
# Corresponds to the JSON property `requiredRevisionId`
|
3193
|
+
# @return [String]
|
3194
|
+
attr_accessor :required_revision_id
|
3195
|
+
|
3196
|
+
def initialize(**args)
|
3197
|
+
update!(**args)
|
3198
|
+
end
|
3199
|
+
|
3200
|
+
# Update properties of this object
|
3201
|
+
def update!(**args)
|
3202
|
+
@required_revision_id = args[:required_revision_id] if args.key?(:required_revision_id)
|
3203
|
+
end
|
3204
|
+
end
|
3205
|
+
|
3206
|
+
# A generic empty message that you can re-use to avoid defining duplicated empty
|
3207
|
+
# messages in your APIs. A typical example is to use it as the request or the
|
3208
|
+
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
3209
|
+
# protobuf.Empty) returns (google.protobuf.Empty); `
|
3210
|
+
class GoogleProtobufEmpty
|
3211
|
+
include Google::Apis::Core::Hashable
|
3212
|
+
|
3213
|
+
def initialize(**args)
|
3214
|
+
update!(**args)
|
3215
|
+
end
|
3216
|
+
|
3217
|
+
# Update properties of this object
|
3218
|
+
def update!(**args)
|
3219
|
+
end
|
3220
|
+
end
|
3221
|
+
|
1485
3222
|
# Represents a color in the RGBA color space. This representation is designed
|
1486
3223
|
# for simplicity of conversion to/from color representations in various
|
1487
3224
|
# languages over compactness. For example, the fields of this representation can
|