google-apis-drivelabels_v2 0.18.0 → 0.20.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,7 +256,7 @@ module Google
256
256
  end
257
257
  end
258
258
 
259
- # Deletes one of more Label Permissions.
259
+ # Deletes one or more label permissions.
260
260
  class GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest
261
261
  include Google::Apis::Core::Hashable
262
262
 
@@ -266,9 +266,9 @@ module Google
266
266
  attr_accessor :requests
267
267
 
268
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.
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`
271
+ # messages must either be empty or match this field.
272
272
  # Corresponds to the JSON property `useAdminAccess`
273
273
  # @return [Boolean]
274
274
  attr_accessor :use_admin_access
@@ -285,7 +285,7 @@ module Google
285
285
  end
286
286
  end
287
287
 
288
- # Updates one or more Label Permissions.
288
+ # Updates one or more label permissions.
289
289
  class GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest
290
290
  include Google::Apis::Core::Hashable
291
291
 
@@ -295,9 +295,9 @@ module Google
295
295
  attr_accessor :requests
296
296
 
297
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.
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`
300
+ # messages must either be empty or match this field.
301
301
  # Corresponds to the JSON property `useAdminAccess`
302
302
  # @return [Boolean]
303
303
  attr_accessor :use_admin_access
@@ -314,7 +314,7 @@ module Google
314
314
  end
315
315
  end
316
316
 
317
- # Response for updating one or more Label Permissions.
317
+ # Response for updating one or more label permissions.
318
318
  class GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse
319
319
  include Google::Apis::Core::Hashable
320
320
 
@@ -333,7 +333,7 @@ module Google
333
333
  end
334
334
  end
335
335
 
336
- # Limits for date Field type.
336
+ # Limits for date field type.
337
337
  class GoogleAppsDriveLabelsV2DateLimits
338
338
  include Google::Apis::Core::Hashable
339
339
 
@@ -372,18 +372,18 @@ module Google
372
372
  end
373
373
  end
374
374
 
375
- # Deletes a Label Permission. Permissions affect the Label resource as a whole,
376
- # are not revisioned, and do not require publishing.
375
+ # Deletes a label permission. Permissions affect the label resource as a whole,
376
+ # aren't revisioned, and don't require publishing.
377
377
  class GoogleAppsDriveLabelsV2DeleteLabelPermissionRequest
378
378
  include Google::Apis::Core::Hashable
379
379
 
380
- # Required. Label Permission resource name.
380
+ # Required. Label permission resource name.
381
381
  # Corresponds to the JSON property `name`
382
382
  # @return [String]
383
383
  attr_accessor :name
384
384
 
385
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.
386
+ # verify the user is an admin for the label before allowing access.
387
387
  # Corresponds to the JSON property `useAdminAccess`
388
388
  # @return [Boolean]
389
389
  attr_accessor :use_admin_access
@@ -400,25 +400,25 @@ module Google
400
400
  end
401
401
  end
402
402
 
403
- # The set of requests for updating aspects of a Label. If any request is not
403
+ # The set of requests for updating aspects of a label. If any request isn't
404
404
  # valid, no requests will be applied.
405
405
  class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequest
406
406
  include Google::Apis::Core::Hashable
407
407
 
408
- # The BCP-47 language code to use for evaluating localized Field labels when `
408
+ # The BCP-47 language code to use for evaluating localized field labels when `
409
409
  # include_label_in_response` is `true`.
410
410
  # Corresponds to the JSON property `languageCode`
411
411
  # @return [String]
412
412
  attr_accessor :language_code
413
413
 
414
- # A list of updates to apply to the Label. Requests will be applied in the order
414
+ # A list of updates to apply to the label. Requests will be applied in the order
415
415
  # they are specified.
416
416
  # Corresponds to the JSON property `requests`
417
417
  # @return [Array<Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestRequest>]
418
418
  attr_accessor :requests
419
419
 
420
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.
421
+ # verify the user is an admin for the label before allowing access.
422
422
  # Corresponds to the JSON property `useAdminAccess`
423
423
  # @return [Boolean]
424
424
  attr_accessor :use_admin_access
@@ -450,7 +450,7 @@ module Google
450
450
  end
451
451
  end
452
452
 
453
- # Request to create a Field within a Label.
453
+ # Request to create a field within a label.
454
454
  class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateFieldRequest
455
455
  include Google::Apis::Core::Hashable
456
456
 
@@ -471,7 +471,7 @@ module Google
471
471
  end
472
472
  end
473
473
 
474
- # Request to create a Selection Choice.
474
+ # Request to create a selection choice.
475
475
  class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateSelectionChoiceRequest
476
476
  include Google::Apis::Core::Hashable
477
477
 
@@ -480,7 +480,7 @@ module Google
480
480
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice]
481
481
  attr_accessor :choice
482
482
 
483
- # Required. The Selection Field in which a Choice will be created.
483
+ # Required. The selection field in which a choice will be created.
484
484
  # Corresponds to the JSON property `fieldId`
485
485
  # @return [String]
486
486
  attr_accessor :field_id
@@ -496,11 +496,11 @@ module Google
496
496
  end
497
497
  end
498
498
 
499
- # Request to delete the Field.
499
+ # Request to delete the field.
500
500
  class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteFieldRequest
501
501
  include Google::Apis::Core::Hashable
502
502
 
503
- # Required. ID of the Field to delete.
503
+ # Required. ID of the field to delete.
504
504
  # Corresponds to the JSON property `id`
505
505
  # @return [String]
506
506
  attr_accessor :id
@@ -515,11 +515,11 @@ module Google
515
515
  end
516
516
  end
517
517
 
518
- # Request to delete a Choice.
518
+ # Request to delete a choice.
519
519
  class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteSelectionChoiceRequest
520
520
  include Google::Apis::Core::Hashable
521
521
 
522
- # Required. The Selection Field from which a Choice will be deleted.
522
+ # Required. The selection field from which a choice will be deleted.
523
523
  # Corresponds to the JSON property `fieldId`
524
524
  # @return [String]
525
525
  attr_accessor :field_id
@@ -540,7 +540,7 @@ module Google
540
540
  end
541
541
  end
542
542
 
543
- # Request to disable the Field.
543
+ # Request to disable the field.
544
544
  class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableFieldRequest
545
545
  include Google::Apis::Core::Hashable
546
546
 
@@ -550,14 +550,14 @@ module Google
550
550
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2LifecycleDisabledPolicy]
551
551
  attr_accessor :disabled_policy
552
552
 
553
- # Required. Key of the Field to disable.
553
+ # Required. Key of the field to disable.
554
554
  # Corresponds to the JSON property `id`
555
555
  # @return [String]
556
556
  attr_accessor :id
557
557
 
558
558
  # The fields that should be updated. At least one field must be specified. The
559
559
  # root `disabled_policy` is implied and should not be specified. A single `*`
560
- # can be used as short-hand for updating every field.
560
+ # can be used as a short-hand for updating every field.
561
561
  # Corresponds to the JSON property `updateMask`
562
562
  # @return [String]
563
563
  attr_accessor :update_mask
@@ -574,7 +574,7 @@ module Google
574
574
  end
575
575
  end
576
576
 
577
- # Request to disable a Choice.
577
+ # Request to disable a choice.
578
578
  class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableSelectionChoiceRequest
579
579
  include Google::Apis::Core::Hashable
580
580
 
@@ -584,7 +584,7 @@ module Google
584
584
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2LifecycleDisabledPolicy]
585
585
  attr_accessor :disabled_policy
586
586
 
587
- # Required. The Selection Field in which a Choice will be disabled.
587
+ # Required. The selection field in which a choice will be disabled.
588
588
  # Corresponds to the JSON property `fieldId`
589
589
  # @return [String]
590
590
  attr_accessor :field_id
@@ -596,7 +596,7 @@ module Google
596
596
 
597
597
  # The fields that should be updated. At least one field must be specified. The
598
598
  # root `disabled_policy` is implied and should not be specified. A single `*`
599
- # can be used as short-hand for updating every field.
599
+ # can be used as a short-hand for updating every field.
600
600
  # Corresponds to the JSON property `updateMask`
601
601
  # @return [String]
602
602
  attr_accessor :update_mask
@@ -614,11 +614,11 @@ module Google
614
614
  end
615
615
  end
616
616
 
617
- # Request to enable the Field.
617
+ # Request to enable the field.
618
618
  class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableFieldRequest
619
619
  include Google::Apis::Core::Hashable
620
620
 
621
- # Required. ID of the Field to enable.
621
+ # Required. ID of the field to enable.
622
622
  # Corresponds to the JSON property `id`
623
623
  # @return [String]
624
624
  attr_accessor :id
@@ -633,11 +633,11 @@ module Google
633
633
  end
634
634
  end
635
635
 
636
- # Request to enable a Choice.
636
+ # Request to enable a choice.
637
637
  class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableSelectionChoiceRequest
638
638
  include Google::Apis::Core::Hashable
639
639
 
640
- # Required. The Selection Field in which a Choice will be enabled.
640
+ # Required. The selection field in which a choice will be enabled.
641
641
  # Corresponds to the JSON property `fieldId`
642
642
  # @return [String]
643
643
  attr_accessor :field_id
@@ -658,66 +658,66 @@ module Google
658
658
  end
659
659
  end
660
660
 
661
- # A single kind of update to apply to a Label.
661
+ # A single kind of update to apply to a label.
662
662
  class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestRequest
663
663
  include Google::Apis::Core::Hashable
664
664
 
665
- # Request to create a Field within a Label.
665
+ # Request to create a field within a label.
666
666
  # Corresponds to the JSON property `createField`
667
667
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateFieldRequest]
668
668
  attr_accessor :create_field
669
669
 
670
- # Request to create a Selection Choice.
670
+ # Request to create a selection choice.
671
671
  # Corresponds to the JSON property `createSelectionChoice`
672
672
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateSelectionChoiceRequest]
673
673
  attr_accessor :create_selection_choice
674
674
 
675
- # Request to delete the Field.
675
+ # Request to delete the field.
676
676
  # Corresponds to the JSON property `deleteField`
677
677
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteFieldRequest]
678
678
  attr_accessor :delete_field
679
679
 
680
- # Request to delete a Choice.
680
+ # Request to delete a choice.
681
681
  # Corresponds to the JSON property `deleteSelectionChoice`
682
682
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteSelectionChoiceRequest]
683
683
  attr_accessor :delete_selection_choice
684
684
 
685
- # Request to disable the Field.
685
+ # Request to disable the field.
686
686
  # Corresponds to the JSON property `disableField`
687
687
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableFieldRequest]
688
688
  attr_accessor :disable_field
689
689
 
690
- # Request to disable a Choice.
690
+ # Request to disable a choice.
691
691
  # Corresponds to the JSON property `disableSelectionChoice`
692
692
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableSelectionChoiceRequest]
693
693
  attr_accessor :disable_selection_choice
694
694
 
695
- # Request to enable the Field.
695
+ # Request to enable the field.
696
696
  # Corresponds to the JSON property `enableField`
697
697
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableFieldRequest]
698
698
  attr_accessor :enable_field
699
699
 
700
- # Request to enable a Choice.
700
+ # Request to enable a choice.
701
701
  # Corresponds to the JSON property `enableSelectionChoice`
702
702
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableSelectionChoiceRequest]
703
703
  attr_accessor :enable_selection_choice
704
704
 
705
- # Request to update Field properties.
705
+ # Request to update field properties.
706
706
  # Corresponds to the JSON property `updateField`
707
707
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldPropertiesRequest]
708
708
  attr_accessor :update_field
709
709
 
710
- # Request to change the type of a Field.
710
+ # Request to change the type of a field.
711
711
  # Corresponds to the JSON property `updateFieldType`
712
712
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldTypeRequest]
713
713
  attr_accessor :update_field_type
714
714
 
715
- # Updates basic properties of a Label.
715
+ # Updates basic properties of a label.
716
716
  # Corresponds to the JSON property `updateLabel`
717
717
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateLabelPropertiesRequest]
718
718
  attr_accessor :update_label
719
719
 
720
- # Request to update a Choice properties.
720
+ # Request to update a choice property.
721
721
  # Corresponds to the JSON property `updateSelectionChoiceProperties`
722
722
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest]
723
723
  attr_accessor :update_selection_choice_properties
@@ -743,11 +743,11 @@ module Google
743
743
  end
744
744
  end
745
745
 
746
- # Request to update Field properties.
746
+ # Request to update field properties.
747
747
  class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldPropertiesRequest
748
748
  include Google::Apis::Core::Hashable
749
749
 
750
- # Required. The Field to update.
750
+ # Required. The field to update.
751
751
  # Corresponds to the JSON property `id`
752
752
  # @return [String]
753
753
  attr_accessor :id
@@ -759,7 +759,7 @@ module Google
759
759
 
760
760
  # The fields that should be updated. At least one field must be specified. The
761
761
  # root `properties` is implied and should not be specified. A single `*` can be
762
- # used as short-hand for updating every field.
762
+ # used as a short-hand for updating every field.
763
763
  # Corresponds to the JSON property `updateMask`
764
764
  # @return [String]
765
765
  attr_accessor :update_mask
@@ -776,7 +776,7 @@ module Google
776
776
  end
777
777
  end
778
778
 
779
- # Request to change the type of a Field.
779
+ # Request to change the type of a field.
780
780
  class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldTypeRequest
781
781
  include Google::Apis::Core::Hashable
782
782
 
@@ -785,7 +785,7 @@ module Google
785
785
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2FieldDateOptions]
786
786
  attr_accessor :date_options
787
787
 
788
- # Required. The Field to update.
788
+ # Required. The field to update.
789
789
  # Corresponds to the JSON property `id`
790
790
  # @return [String]
791
791
  attr_accessor :id
@@ -807,7 +807,7 @@ module Google
807
807
 
808
808
  # The fields that should be updated. At least one field must be specified. The
809
809
  # root of `type_options` is implied and should not be specified. A single `*`
810
- # can be used as short-hand for updating every field.
810
+ # can be used as a short-hand for updating every field.
811
811
  # Corresponds to the JSON property `updateMask`
812
812
  # @return [String]
813
813
  attr_accessor :update_mask
@@ -833,7 +833,7 @@ module Google
833
833
  end
834
834
  end
835
835
 
836
- # Updates basic properties of a Label.
836
+ # Updates basic properties of a label.
837
837
  class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateLabelPropertiesRequest
838
838
  include Google::Apis::Core::Hashable
839
839
 
@@ -844,7 +844,7 @@ module Google
844
844
 
845
845
  # The fields that should be updated. At least one field must be specified. The
846
846
  # root `label_properties` is implied and should not be specified. A single `*`
847
- # can be used as short-hand for updating every field.
847
+ # can be used as a short-hand for updating every field.
848
848
  # Corresponds to the JSON property `updateMask`
849
849
  # @return [String]
850
850
  attr_accessor :update_mask
@@ -860,16 +860,16 @@ module Google
860
860
  end
861
861
  end
862
862
 
863
- # Request to update a Choice properties.
863
+ # Request to update a choice property.
864
864
  class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest
865
865
  include Google::Apis::Core::Hashable
866
866
 
867
- # Required. The Selection Field to update.
867
+ # Required. The selection field to update.
868
868
  # Corresponds to the JSON property `fieldId`
869
869
  # @return [String]
870
870
  attr_accessor :field_id
871
871
 
872
- # Required. The Choice to update.
872
+ # Required. The choice to update.
873
873
  # Corresponds to the JSON property `id`
874
874
  # @return [String]
875
875
  attr_accessor :id
@@ -881,7 +881,7 @@ module Google
881
881
 
882
882
  # The fields that should be updated. At least one field must be specified. The
883
883
  # root `properties` is implied and should not be specified. A single `*` can be
884
- # used as short-hand for updating every field.
884
+ # used as a short-hand for updating every field.
885
885
  # Corresponds to the JSON property `updateMask`
886
886
  # @return [String]
887
887
  attr_accessor :update_mask
@@ -899,7 +899,7 @@ module Google
899
899
  end
900
900
  end
901
901
 
902
- # Response for Label update.
902
+ # Response for label update.
903
903
  class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponse
904
904
  include Google::Apis::Core::Hashable
905
905
 
@@ -928,7 +928,7 @@ module Google
928
928
  end
929
929
  end
930
930
 
931
- # Response following Field create.
931
+ # Response following field create.
932
932
  class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateFieldResponse
933
933
  include Google::Apis::Core::Hashable
934
934
 
@@ -955,16 +955,16 @@ module Google
955
955
  end
956
956
  end
957
957
 
958
- # Response following Selection Choice create.
958
+ # Response following selection choice create.
959
959
  class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateSelectionChoiceResponse
960
960
  include Google::Apis::Core::Hashable
961
961
 
962
- # The server-generated id of the field.
962
+ # The server-generated ID of the field.
963
963
  # Corresponds to the JSON property `fieldId`
964
964
  # @return [String]
965
965
  attr_accessor :field_id
966
966
 
967
- # The server-generated ID of the created choice within the Field
967
+ # The server-generated ID of the created choice within the field.
968
968
  # Corresponds to the JSON property `id`
969
969
  # @return [String]
970
970
  attr_accessor :id
@@ -980,7 +980,7 @@ module Google
980
980
  end
981
981
  end
982
982
 
983
- # Response following Field delete.
983
+ # Response following field delete.
984
984
  class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteFieldResponse
985
985
  include Google::Apis::Core::Hashable
986
986
 
@@ -993,7 +993,7 @@ module Google
993
993
  end
994
994
  end
995
995
 
996
- # Response following Choice delete.
996
+ # Response following choice delete.
997
997
  class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteSelectionChoiceResponse
998
998
  include Google::Apis::Core::Hashable
999
999
 
@@ -1006,7 +1006,7 @@ module Google
1006
1006
  end
1007
1007
  end
1008
1008
 
1009
- # Response following Field disable.
1009
+ # Response following field disable.
1010
1010
  class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableFieldResponse
1011
1011
  include Google::Apis::Core::Hashable
1012
1012
 
@@ -1019,7 +1019,7 @@ module Google
1019
1019
  end
1020
1020
  end
1021
1021
 
1022
- # Response following Choice disable.
1022
+ # Response following choice disable.
1023
1023
  class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableSelectionChoiceResponse
1024
1024
  include Google::Apis::Core::Hashable
1025
1025
 
@@ -1032,7 +1032,7 @@ module Google
1032
1032
  end
1033
1033
  end
1034
1034
 
1035
- # Response following Field enable.
1035
+ # Response following field enable.
1036
1036
  class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableFieldResponse
1037
1037
  include Google::Apis::Core::Hashable
1038
1038
 
@@ -1045,7 +1045,7 @@ module Google
1045
1045
  end
1046
1046
  end
1047
1047
 
1048
- # Response following Choice enable.
1048
+ # Response following choice enable.
1049
1049
  class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableSelectionChoiceResponse
1050
1050
  include Google::Apis::Core::Hashable
1051
1051
 
@@ -1062,62 +1062,62 @@ module Google
1062
1062
  class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseResponse
1063
1063
  include Google::Apis::Core::Hashable
1064
1064
 
1065
- # Response following Field create.
1065
+ # Response following field create.
1066
1066
  # Corresponds to the JSON property `createField`
1067
1067
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateFieldResponse]
1068
1068
  attr_accessor :create_field
1069
1069
 
1070
- # Response following Selection Choice create.
1070
+ # Response following selection choice create.
1071
1071
  # Corresponds to the JSON property `createSelectionChoice`
1072
1072
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateSelectionChoiceResponse]
1073
1073
  attr_accessor :create_selection_choice
1074
1074
 
1075
- # Response following Field delete.
1075
+ # Response following field delete.
1076
1076
  # Corresponds to the JSON property `deleteField`
1077
1077
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteFieldResponse]
1078
1078
  attr_accessor :delete_field
1079
1079
 
1080
- # Response following Choice delete.
1080
+ # Response following choice delete.
1081
1081
  # Corresponds to the JSON property `deleteSelectionChoice`
1082
1082
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteSelectionChoiceResponse]
1083
1083
  attr_accessor :delete_selection_choice
1084
1084
 
1085
- # Response following Field disable.
1085
+ # Response following field disable.
1086
1086
  # Corresponds to the JSON property `disableField`
1087
1087
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableFieldResponse]
1088
1088
  attr_accessor :disable_field
1089
1089
 
1090
- # Response following Choice disable.
1090
+ # Response following choice disable.
1091
1091
  # Corresponds to the JSON property `disableSelectionChoice`
1092
1092
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableSelectionChoiceResponse]
1093
1093
  attr_accessor :disable_selection_choice
1094
1094
 
1095
- # Response following Field enable.
1095
+ # Response following field enable.
1096
1096
  # Corresponds to the JSON property `enableField`
1097
1097
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableFieldResponse]
1098
1098
  attr_accessor :enable_field
1099
1099
 
1100
- # Response following Choice enable.
1100
+ # Response following choice enable.
1101
1101
  # Corresponds to the JSON property `enableSelectionChoice`
1102
1102
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableSelectionChoiceResponse]
1103
1103
  attr_accessor :enable_selection_choice
1104
1104
 
1105
- # Response following update to Field properties.
1105
+ # Response following update to field properties.
1106
1106
  # Corresponds to the JSON property `updateField`
1107
1107
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldPropertiesResponse]
1108
1108
  attr_accessor :update_field
1109
1109
 
1110
- # Response following update to Field type.
1110
+ # Response following update to field type.
1111
1111
  # Corresponds to the JSON property `updateFieldType`
1112
1112
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldTypeResponse]
1113
1113
  attr_accessor :update_field_type
1114
1114
 
1115
- # Response following update to Label properties.
1115
+ # Response following update to label properties.
1116
1116
  # Corresponds to the JSON property `updateLabel`
1117
1117
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateLabelPropertiesResponse]
1118
1118
  attr_accessor :update_label
1119
1119
 
1120
- # Response following update to Selection Choice properties.
1120
+ # Response following update to selection choice properties.
1121
1121
  # Corresponds to the JSON property `updateSelectionChoiceProperties`
1122
1122
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse]
1123
1123
  attr_accessor :update_selection_choice_properties
@@ -1143,7 +1143,7 @@ module Google
1143
1143
  end
1144
1144
  end
1145
1145
 
1146
- # Response following update to Field properties.
1146
+ # Response following update to field properties.
1147
1147
  class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldPropertiesResponse
1148
1148
  include Google::Apis::Core::Hashable
1149
1149
 
@@ -1163,7 +1163,7 @@ module Google
1163
1163
  end
1164
1164
  end
1165
1165
 
1166
- # Response following update to Field type.
1166
+ # Response following update to field type.
1167
1167
  class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldTypeResponse
1168
1168
  include Google::Apis::Core::Hashable
1169
1169
 
@@ -1176,7 +1176,7 @@ module Google
1176
1176
  end
1177
1177
  end
1178
1178
 
1179
- # Response following update to Label properties.
1179
+ # Response following update to label properties.
1180
1180
  class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateLabelPropertiesResponse
1181
1181
  include Google::Apis::Core::Hashable
1182
1182
 
@@ -1189,7 +1189,7 @@ module Google
1189
1189
  end
1190
1190
  end
1191
1191
 
1192
- # Response following update to Selection Choice properties.
1192
+ # Response following update to selection choice properties.
1193
1193
  class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse
1194
1194
  include Google::Apis::Core::Hashable
1195
1195
 
@@ -1209,7 +1209,7 @@ module Google
1209
1209
  end
1210
1210
  end
1211
1211
 
1212
- # Request to deprecate a published Label.
1212
+ # Request to deprecate a published label.
1213
1213
  class GoogleAppsDriveLabelsV2DisableLabelRequest
1214
1214
  include Google::Apis::Core::Hashable
1215
1215
 
@@ -1227,13 +1227,13 @@ module Google
1227
1227
 
1228
1228
  # The fields that should be updated. At least one field must be specified. The
1229
1229
  # root `disabled_policy` is implied and should not be specified. A single `*`
1230
- # can be used as short-hand for updating every field.
1230
+ # can be used as a short-hand for updating every field.
1231
1231
  # Corresponds to the JSON property `updateMask`
1232
1232
  # @return [String]
1233
1233
  attr_accessor :update_mask
1234
1234
 
1235
1235
  # Set to `true` in order to use the user's admin credentials. The server will
1236
- # verify the user is an admin for the Label before allowing access.
1236
+ # verify the user is an admin for the label before allowing access.
1237
1237
  # Corresponds to the JSON property `useAdminAccess`
1238
1238
  # @return [Boolean]
1239
1239
  attr_accessor :use_admin_access
@@ -1270,7 +1270,7 @@ module Google
1270
1270
  attr_accessor :language_code
1271
1271
 
1272
1272
  # Set to `true` in order to use the user's admin credentials. The server will
1273
- # verify the user is an admin for the Label before allowing access.
1273
+ # verify the user is an admin for the label before allowing access.
1274
1274
  # Corresponds to the JSON property `useAdminAccess`
1275
1275
  # @return [Boolean]
1276
1276
  attr_accessor :use_admin_access
@@ -1337,7 +1337,7 @@ module Google
1337
1337
  attr_accessor :display_hints
1338
1338
 
1339
1339
  # Output only. The key of a field, unique within a label or library. This value
1340
- # is autogenerated. Matches the regex: `([a-zA-Z0-9])+`
1340
+ # is autogenerated. Matches the regex: `([a-zA-Z0-9])+`.
1341
1341
  # Corresponds to the JSON property `id`
1342
1342
  # @return [String]
1343
1343
  attr_accessor :id
@@ -1347,16 +1347,18 @@ module Google
1347
1347
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2FieldIntegerOptions]
1348
1348
  attr_accessor :integer_options
1349
1349
 
1350
- # The lifecycle state of an object, such as label, field, or choice. The
1351
- # lifecycle enforces the following transitions: * `UNPUBLISHED_DRAFT` (starting
1352
- # state) * `UNPUBLISHED_DRAFT` -> `PUBLISHED` * `UNPUBLISHED_DRAFT` -> (Deleted)
1353
- # * `PUBLISHED` -> `DISABLED` * `DISABLED` -> `PUBLISHED` * `DISABLED` -> (
1354
- # Deleted) The published and disabled states have some distinct characteristics:
1355
- # * Published—Some kinds of changes might be made to an object in this state, in
1356
- # which case `has_unpublished_changes` will be true. Also, some kinds of changes
1357
- # are not permitted. Generally, any change that would invalidate or cause new
1358
- # restrictions on existing metadata related to the label are rejected. *
1359
- # Disabled—When disabled, the configured `DisabledPolicy` takes effect.
1350
+ # The lifecycle state of an object, such as label, field, or choice. For more
1351
+ # information, see [Label lifecycle](https://developers.google.com/workspace/
1352
+ # drive/labels/guides/label-lifecycle). The lifecycle enforces the following
1353
+ # transitions: * `UNPUBLISHED_DRAFT` (starting state) * `UNPUBLISHED_DRAFT` -> `
1354
+ # PUBLISHED` * `UNPUBLISHED_DRAFT` -> (Deleted) * `PUBLISHED` -> `DISABLED` * `
1355
+ # DISABLED` -> `PUBLISHED` * `DISABLED` -> (Deleted) The published and disabled
1356
+ # states have some distinct characteristics: * `Published`: Some kinds of
1357
+ # changes might be made to an object in this state, in which case `
1358
+ # has_unpublished_changes` will be true. Also, some kinds of changes aren't
1359
+ # permitted. Generally, any change that would invalidate or cause new
1360
+ # restrictions on existing metadata related to the label are rejected. * `
1361
+ # Disabled`: When disabled, the configured `DisabledPolicy` takes effect.
1360
1362
  # Corresponds to the JSON property `lifecycle`
1361
1363
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2Lifecycle]
1362
1364
  attr_accessor :lifecycle
@@ -1596,47 +1598,47 @@ module Google
1596
1598
  end
1597
1599
  end
1598
1600
 
1599
- # Field constants governing the structure of a Field; such as, the maximum title
1601
+ # Field constants governing the structure of a field; such as, the maximum title
1600
1602
  # length, minimum and maximum field values or length, etc.
1601
1603
  class GoogleAppsDriveLabelsV2FieldLimits
1602
1604
  include Google::Apis::Core::Hashable
1603
1605
 
1604
- # Limits for date Field type.
1606
+ # Limits for date field type.
1605
1607
  # Corresponds to the JSON property `dateLimits`
1606
1608
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DateLimits]
1607
1609
  attr_accessor :date_limits
1608
1610
 
1609
- # Limits for integer Field type.
1611
+ # Limits for integer field type.
1610
1612
  # Corresponds to the JSON property `integerLimits`
1611
1613
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2IntegerLimits]
1612
1614
  attr_accessor :integer_limits
1613
1615
 
1614
- # Limits for long text Field type.
1616
+ # Limits for long text field type.
1615
1617
  # Corresponds to the JSON property `longTextLimits`
1616
1618
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2LongTextLimits]
1617
1619
  attr_accessor :long_text_limits
1618
1620
 
1619
- # Limits for Field description, also called help text.
1621
+ # Limits for field description, also called help text.
1620
1622
  # Corresponds to the JSON property `maxDescriptionLength`
1621
1623
  # @return [Fixnum]
1622
1624
  attr_accessor :max_description_length
1623
1625
 
1624
- # Limits for Field title.
1626
+ # Limits for field title.
1625
1627
  # Corresponds to the JSON property `maxDisplayNameLength`
1626
1628
  # @return [Fixnum]
1627
1629
  attr_accessor :max_display_name_length
1628
1630
 
1629
- # Max length for the id.
1631
+ # Maximum length for the id.
1630
1632
  # Corresponds to the JSON property `maxIdLength`
1631
1633
  # @return [Fixnum]
1632
1634
  attr_accessor :max_id_length
1633
1635
 
1634
- # Limits for selection Field type.
1636
+ # Limits for selection field type.
1635
1637
  # Corresponds to the JSON property `selectionLimits`
1636
1638
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2SelectionLimits]
1637
1639
  attr_accessor :selection_limits
1638
1640
 
1639
- # Limits for text Field type.
1641
+ # Limits for text field type.
1640
1642
  # Corresponds to the JSON property `textLimits`
1641
1643
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2TextLimits]
1642
1644
  attr_accessor :text_limits
@@ -1827,16 +1829,18 @@ module Google
1827
1829
  # @return [String]
1828
1830
  attr_accessor :id
1829
1831
 
1830
- # The lifecycle state of an object, such as label, field, or choice. The
1831
- # lifecycle enforces the following transitions: * `UNPUBLISHED_DRAFT` (starting
1832
- # state) * `UNPUBLISHED_DRAFT` -> `PUBLISHED` * `UNPUBLISHED_DRAFT` -> (Deleted)
1833
- # * `PUBLISHED` -> `DISABLED` * `DISABLED` -> `PUBLISHED` * `DISABLED` -> (
1834
- # Deleted) The published and disabled states have some distinct characteristics:
1835
- # * Published—Some kinds of changes might be made to an object in this state, in
1836
- # which case `has_unpublished_changes` will be true. Also, some kinds of changes
1837
- # are not permitted. Generally, any change that would invalidate or cause new
1838
- # restrictions on existing metadata related to the label are rejected. *
1839
- # Disabled—When disabled, the configured `DisabledPolicy` takes effect.
1832
+ # The lifecycle state of an object, such as label, field, or choice. For more
1833
+ # information, see [Label lifecycle](https://developers.google.com/workspace/
1834
+ # drive/labels/guides/label-lifecycle). The lifecycle enforces the following
1835
+ # transitions: * `UNPUBLISHED_DRAFT` (starting state) * `UNPUBLISHED_DRAFT` -> `
1836
+ # PUBLISHED` * `UNPUBLISHED_DRAFT` -> (Deleted) * `PUBLISHED` -> `DISABLED` * `
1837
+ # DISABLED` -> `PUBLISHED` * `DISABLED` -> (Deleted) The published and disabled
1838
+ # states have some distinct characteristics: * `Published`: Some kinds of
1839
+ # changes might be made to an object in this state, in which case `
1840
+ # has_unpublished_changes` will be true. Also, some kinds of changes aren't
1841
+ # permitted. Generally, any change that would invalidate or cause new
1842
+ # restrictions on existing metadata related to the label are rejected. * `
1843
+ # Disabled`: When disabled, the configured `DisabledPolicy` takes effect.
1840
1844
  # Corresponds to the JSON property `lifecycle`
1841
1845
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2Lifecycle]
1842
1846
  attr_accessor :lifecycle
@@ -2118,16 +2122,16 @@ module Google
2118
2122
  end
2119
2123
  end
2120
2124
 
2121
- # Limits for integer Field type.
2125
+ # Limits for integer field type.
2122
2126
  class GoogleAppsDriveLabelsV2IntegerLimits
2123
2127
  include Google::Apis::Core::Hashable
2124
2128
 
2125
- # Maximum value for an integer Field type.
2129
+ # Maximum value for an integer field type.
2126
2130
  # Corresponds to the JSON property `maxValue`
2127
2131
  # @return [Fixnum]
2128
2132
  attr_accessor :max_value
2129
2133
 
2130
- # Minimum value for an integer Field type.
2134
+ # Minimum value for an integer field type.
2131
2135
  # Corresponds to the JSON property `minValue`
2132
2136
  # @return [Fixnum]
2133
2137
  attr_accessor :min_value
@@ -2170,14 +2174,14 @@ module Google
2170
2174
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2UserInfo]
2171
2175
  attr_accessor :creator
2172
2176
 
2173
- # Output only. The customer this label belongs to. For example: "customers/
2174
- # 123abc789."
2177
+ # Output only. The customer this label belongs to. For example: `customers/
2178
+ # 123abc789`.
2175
2179
  # Corresponds to the JSON property `customer`
2176
2180
  # @return [String]
2177
2181
  attr_accessor :customer
2178
2182
 
2179
2183
  # Output only. The time this label was disabled. This value has no meaning when
2180
- # the label is not disabled.
2184
+ # the label isn't disabled.
2181
2185
  # Corresponds to the JSON property `disableTime`
2182
2186
  # @return [String]
2183
2187
  attr_accessor :disable_time
@@ -2187,11 +2191,16 @@ module Google
2187
2191
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2UserInfo]
2188
2192
  attr_accessor :disabler
2189
2193
 
2190
- # UI display hints for rendering the label.
2194
+ # The UI display hints for rendering the label.
2191
2195
  # Corresponds to the JSON property `displayHints`
2192
2196
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2LabelDisplayHints]
2193
2197
  attr_accessor :display_hints
2194
2198
 
2199
+ # Describes the Google Workspace apps in which the label can be used.
2200
+ # Corresponds to the JSON property `enabledAppSettings`
2201
+ # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2LabelEnabledAppSettings]
2202
+ attr_accessor :enabled_app_settings
2203
+
2195
2204
  # List of fields in descending priority order.
2196
2205
  # Corresponds to the JSON property `fields`
2197
2206
  # @return [Array<Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2Field>]
@@ -2199,7 +2208,7 @@ module Google
2199
2208
 
2200
2209
  # Output only. Globally unique identifier of this label. ID makes up part of the
2201
2210
  # label `name`, but unlike `name`, ID is consistent between revisions. Matches
2202
- # the regex: `([a-zA-Z0-9])+`
2211
+ # the regex: `([a-zA-Z0-9])+`.
2203
2212
  # Corresponds to the JSON property `id`
2204
2213
  # @return [String]
2205
2214
  attr_accessor :id
@@ -2215,16 +2224,18 @@ module Google
2215
2224
  # @return [String]
2216
2225
  attr_accessor :learn_more_uri
2217
2226
 
2218
- # The lifecycle state of an object, such as label, field, or choice. The
2219
- # lifecycle enforces the following transitions: * `UNPUBLISHED_DRAFT` (starting
2220
- # state) * `UNPUBLISHED_DRAFT` -> `PUBLISHED` * `UNPUBLISHED_DRAFT` -> (Deleted)
2221
- # * `PUBLISHED` -> `DISABLED` * `DISABLED` -> `PUBLISHED` * `DISABLED` -> (
2222
- # Deleted) The published and disabled states have some distinct characteristics:
2223
- # * Published—Some kinds of changes might be made to an object in this state, in
2224
- # which case `has_unpublished_changes` will be true. Also, some kinds of changes
2225
- # are not permitted. Generally, any change that would invalidate or cause new
2226
- # restrictions on existing metadata related to the label are rejected. *
2227
- # Disabled—When disabled, the configured `DisabledPolicy` takes effect.
2227
+ # The lifecycle state of an object, such as label, field, or choice. For more
2228
+ # information, see [Label lifecycle](https://developers.google.com/workspace/
2229
+ # drive/labels/guides/label-lifecycle). The lifecycle enforces the following
2230
+ # transitions: * `UNPUBLISHED_DRAFT` (starting state) * `UNPUBLISHED_DRAFT` -> `
2231
+ # PUBLISHED` * `UNPUBLISHED_DRAFT` -> (Deleted) * `PUBLISHED` -> `DISABLED` * `
2232
+ # DISABLED` -> `PUBLISHED` * `DISABLED` -> (Deleted) The published and disabled
2233
+ # states have some distinct characteristics: * `Published`: Some kinds of
2234
+ # changes might be made to an object in this state, in which case `
2235
+ # has_unpublished_changes` will be true. Also, some kinds of changes aren't
2236
+ # permitted. Generally, any change that would invalidate or cause new
2237
+ # restrictions on existing metadata related to the label are rejected. * `
2238
+ # Disabled`: When disabled, the configured `DisabledPolicy` takes effect.
2228
2239
  # Corresponds to the JSON property `lifecycle`
2229
2240
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2Lifecycle]
2230
2241
  attr_accessor :lifecycle
@@ -2248,7 +2259,7 @@ module Google
2248
2259
  attr_accessor :properties
2249
2260
 
2250
2261
  # Output only. The time this label was published. This value has no meaning when
2251
- # the label is not published.
2262
+ # the label isn't published.
2252
2263
  # Corresponds to the JSON property `publishTime`
2253
2264
  # @return [String]
2254
2265
  attr_accessor :publish_time
@@ -2271,7 +2282,7 @@ module Google
2271
2282
  # Output only. Revision ID of the label. Revision ID might be part of the label `
2272
2283
  # name` depending on the request issued. A new revision is created whenever
2273
2284
  # revisioned properties of a label are changed. Matches the regex: `([a-zA-Z0-9])
2274
- # +`
2285
+ # +`.
2275
2286
  # Corresponds to the JSON property `revisionId`
2276
2287
  # @return [String]
2277
2288
  attr_accessor :revision_id
@@ -2295,6 +2306,7 @@ module Google
2295
2306
  @disable_time = args[:disable_time] if args.key?(:disable_time)
2296
2307
  @disabler = args[:disabler] if args.key?(:disabler)
2297
2308
  @display_hints = args[:display_hints] if args.key?(:display_hints)
2309
+ @enabled_app_settings = args[:enabled_app_settings] if args.key?(:enabled_app_settings)
2298
2310
  @fields = args[:fields] if args.key?(:fields)
2299
2311
  @id = args[:id] if args.key?(:id)
2300
2312
  @label_type = args[:label_type] if args.key?(:label_type)
@@ -2366,7 +2378,7 @@ module Google
2366
2378
  end
2367
2379
  end
2368
2380
 
2369
- # UI display hints for rendering the label.
2381
+ # The UI display hints for rendering the label.
2370
2382
  class GoogleAppsDriveLabelsV2LabelDisplayHints
2371
2383
  include Google::Apis::Core::Hashable
2372
2384
 
@@ -2382,7 +2394,7 @@ module Google
2382
2394
  attr_accessor :hidden_in_search
2383
2395
  alias_method :hidden_in_search?, :hidden_in_search
2384
2396
 
2385
- # Order to display label in a list.
2397
+ # The order to display labels in a list.
2386
2398
  # Corresponds to the JSON property `priority`
2387
2399
  # @return [Fixnum]
2388
2400
  attr_accessor :priority
@@ -2407,18 +2419,56 @@ module Google
2407
2419
  end
2408
2420
  end
2409
2421
 
2410
- # Label constraints governing the structure of a Label; such as, the maximum
2411
- # number of Fields allowed and maximum length of the label title.
2422
+ # Describes the Google Workspace apps in which the label can be used.
2423
+ class GoogleAppsDriveLabelsV2LabelEnabledAppSettings
2424
+ include Google::Apis::Core::Hashable
2425
+
2426
+ # Optional. The list of apps where the label can be used.
2427
+ # Corresponds to the JSON property `enabledApps`
2428
+ # @return [Array<Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2LabelEnabledAppSettingsEnabledApp>]
2429
+ attr_accessor :enabled_apps
2430
+
2431
+ def initialize(**args)
2432
+ update!(**args)
2433
+ end
2434
+
2435
+ # Update properties of this object
2436
+ def update!(**args)
2437
+ @enabled_apps = args[:enabled_apps] if args.key?(:enabled_apps)
2438
+ end
2439
+ end
2440
+
2441
+ # An app where the label can be used.
2442
+ class GoogleAppsDriveLabelsV2LabelEnabledAppSettingsEnabledApp
2443
+ include Google::Apis::Core::Hashable
2444
+
2445
+ # Optional. The name of the app.
2446
+ # Corresponds to the JSON property `app`
2447
+ # @return [String]
2448
+ attr_accessor :app
2449
+
2450
+ def initialize(**args)
2451
+ update!(**args)
2452
+ end
2453
+
2454
+ # Update properties of this object
2455
+ def update!(**args)
2456
+ @app = args[:app] if args.key?(:app)
2457
+ end
2458
+ end
2459
+
2460
+ # Label constraints governing the structure of a label; such as, the maximum
2461
+ # number of fields allowed and maximum length of the label title.
2412
2462
  class GoogleAppsDriveLabelsV2LabelLimits
2413
2463
  include Google::Apis::Core::Hashable
2414
2464
 
2415
- # Field constants governing the structure of a Field; such as, the maximum title
2465
+ # Field constants governing the structure of a field; such as, the maximum title
2416
2466
  # length, minimum and maximum field values or length, etc.
2417
2467
  # Corresponds to the JSON property `fieldLimits`
2418
2468
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2FieldLimits]
2419
2469
  attr_accessor :field_limits
2420
2470
 
2421
- # The maximum number of published Fields that can be deleted.
2471
+ # The maximum number of published fields that can be deleted.
2422
2472
  # Corresponds to the JSON property `maxDeletedFields`
2423
2473
  # @return [Fixnum]
2424
2474
  attr_accessor :max_deleted_fields
@@ -2434,7 +2484,7 @@ module Google
2434
2484
  # @return [Fixnum]
2435
2485
  attr_accessor :max_draft_revisions
2436
2486
 
2437
- # The maximum number of Fields allowed within the label.
2487
+ # The maximum number of fields allowed within the label.
2438
2488
  # Corresponds to the JSON property `maxFields`
2439
2489
  # @return [Fixnum]
2440
2490
  attr_accessor :max_fields
@@ -2465,22 +2515,22 @@ module Google
2465
2515
  end
2466
2516
  end
2467
2517
 
2468
- # A Lock that can be applied to a Label, Field, or Choice.
2518
+ # A lock that can be applied to a label, field, or choice.
2469
2519
  class GoogleAppsDriveLabelsV2LabelLock
2470
2520
  include Google::Apis::Core::Hashable
2471
2521
 
2472
- # A description of a user's capabilities on a LabelLock.
2522
+ # A description of a user's capabilities on a label lock.
2473
2523
  # Corresponds to the JSON property `capabilities`
2474
2524
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2LabelLockCapabilities]
2475
2525
  attr_accessor :capabilities
2476
2526
 
2477
- # The ID of the Selection Field Choice that should be locked. If present, `
2527
+ # The ID of the selection field choice that should be locked. If present, `
2478
2528
  # field_id` must also be present.
2479
2529
  # Corresponds to the JSON property `choiceId`
2480
2530
  # @return [String]
2481
2531
  attr_accessor :choice_id
2482
2532
 
2483
- # Output only. The time this LabelLock was created.
2533
+ # Output only. The time this label lock was created.
2484
2534
  # Corresponds to the JSON property `createTime`
2485
2535
  # @return [String]
2486
2536
  attr_accessor :create_time
@@ -2490,24 +2540,24 @@ module Google
2490
2540
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2UserInfo]
2491
2541
  attr_accessor :creator
2492
2542
 
2493
- # Output only. A timestamp indicating when this LabelLock was scheduled for
2494
- # deletion. This will be present only if this LabelLock is in the DELETING state.
2543
+ # Output only. A timestamp indicating when this label lock was scheduled for
2544
+ # deletion. Present only if this label lock is in the `DELETING` state.
2495
2545
  # Corresponds to the JSON property `deleteTime`
2496
2546
  # @return [String]
2497
2547
  attr_accessor :delete_time
2498
2548
 
2499
- # The ID of the Field that should be locked. Empty if the whole Label should be
2549
+ # The ID of the field that should be locked. Empty if the whole label should be
2500
2550
  # locked.
2501
2551
  # Corresponds to the JSON property `fieldId`
2502
2552
  # @return [String]
2503
2553
  attr_accessor :field_id
2504
2554
 
2505
- # Output only. Resource name of this LabelLock.
2555
+ # Output only. Resource name of this label lock.
2506
2556
  # Corresponds to the JSON property `name`
2507
2557
  # @return [String]
2508
2558
  attr_accessor :name
2509
2559
 
2510
- # Output only. This LabelLock's state.
2560
+ # Output only. This label lock's state.
2511
2561
  # Corresponds to the JSON property `state`
2512
2562
  # @return [String]
2513
2563
  attr_accessor :state
@@ -2529,7 +2579,7 @@ module Google
2529
2579
  end
2530
2580
  end
2531
2581
 
2532
- # A description of a user's capabilities on a LabelLock.
2582
+ # A description of a user's capabilities on a label lock.
2533
2583
  class GoogleAppsDriveLabelsV2LabelLockCapabilities
2534
2584
  include Google::Apis::Core::Hashable
2535
2585
 
@@ -2555,13 +2605,13 @@ module Google
2555
2605
 
2556
2606
  # Audience to grant a role to. The magic value of `audiences/default` may be
2557
2607
  # used to apply the role to the default audience in the context of the
2558
- # organization that owns the Label.
2608
+ # organization that owns the label.
2559
2609
  # Corresponds to the JSON property `audience`
2560
2610
  # @return [String]
2561
2611
  attr_accessor :audience
2562
2612
 
2563
- # Specifies the email address for a user or group pricinpal. Not populated for
2564
- # audience principals. User and Group permissions may only be inserted using
2613
+ # Specifies the email address for a user or group principal. Not populated for
2614
+ # audience principals. User and group permissions may only be inserted using an
2565
2615
  # email address. On update requests, if email address is specified, no principal
2566
2616
  # should be specified.
2567
2617
  # Corresponds to the JSON property `email`
@@ -2672,16 +2722,18 @@ module Google
2672
2722
  end
2673
2723
  end
2674
2724
 
2675
- # The lifecycle state of an object, such as label, field, or choice. The
2676
- # lifecycle enforces the following transitions: * `UNPUBLISHED_DRAFT` (starting
2677
- # state) * `UNPUBLISHED_DRAFT` -> `PUBLISHED` * `UNPUBLISHED_DRAFT` -> (Deleted)
2678
- # * `PUBLISHED` -> `DISABLED` * `DISABLED` -> `PUBLISHED` * `DISABLED` -> (
2679
- # Deleted) The published and disabled states have some distinct characteristics:
2680
- # * Published—Some kinds of changes might be made to an object in this state, in
2681
- # which case `has_unpublished_changes` will be true. Also, some kinds of changes
2682
- # are not permitted. Generally, any change that would invalidate or cause new
2683
- # restrictions on existing metadata related to the label are rejected. *
2684
- # Disabled—When disabled, the configured `DisabledPolicy` takes effect.
2725
+ # The lifecycle state of an object, such as label, field, or choice. For more
2726
+ # information, see [Label lifecycle](https://developers.google.com/workspace/
2727
+ # drive/labels/guides/label-lifecycle). The lifecycle enforces the following
2728
+ # transitions: * `UNPUBLISHED_DRAFT` (starting state) * `UNPUBLISHED_DRAFT` -> `
2729
+ # PUBLISHED` * `UNPUBLISHED_DRAFT` -> (Deleted) * `PUBLISHED` -> `DISABLED` * `
2730
+ # DISABLED` -> `PUBLISHED` * `DISABLED` -> (Deleted) The published and disabled
2731
+ # states have some distinct characteristics: * `Published`: Some kinds of
2732
+ # changes might be made to an object in this state, in which case `
2733
+ # has_unpublished_changes` will be true. Also, some kinds of changes aren't
2734
+ # permitted. Generally, any change that would invalidate or cause new
2735
+ # restrictions on existing metadata related to the label are rejected. * `
2736
+ # Disabled`: When disabled, the configured `DisabledPolicy` takes effect.
2685
2737
  class GoogleAppsDriveLabelsV2Lifecycle
2686
2738
  include Google::Apis::Core::Hashable
2687
2739
 
@@ -2748,11 +2800,11 @@ module Google
2748
2800
  end
2749
2801
  end
2750
2802
 
2751
- # The response to a ListLabelLocksRequest.
2803
+ # The response to a `ListLabelLocksRequest`.
2752
2804
  class GoogleAppsDriveLabelsV2ListLabelLocksResponse
2753
2805
  include Google::Apis::Core::Hashable
2754
2806
 
2755
- # LabelLocks.
2807
+ # Label locks.
2756
2808
  # Corresponds to the JSON property `labelLocks`
2757
2809
  # @return [Array<Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2LabelLock>]
2758
2810
  attr_accessor :label_locks
@@ -2773,7 +2825,7 @@ module Google
2773
2825
  end
2774
2826
  end
2775
2827
 
2776
- # Response for listing the permissions on a Label.
2828
+ # Response for listing the permissions on a label.
2777
2829
  class GoogleAppsDriveLabelsV2ListLabelPermissionsResponse
2778
2830
  include Google::Apis::Core::Hashable
2779
2831
 
@@ -2798,7 +2850,7 @@ module Google
2798
2850
  end
2799
2851
  end
2800
2852
 
2801
- # Response for listing Labels.
2853
+ # Response for listing labels.
2802
2854
  class GoogleAppsDriveLabelsV2ListLabelsResponse
2803
2855
  include Google::Apis::Core::Hashable
2804
2856
 
@@ -2823,11 +2875,11 @@ module Google
2823
2875
  end
2824
2876
  end
2825
2877
 
2826
- # Limits for list-variant of a Field type.
2878
+ # Limits for list-variant of a field type.
2827
2879
  class GoogleAppsDriveLabelsV2ListLimits
2828
2880
  include Google::Apis::Core::Hashable
2829
2881
 
2830
- # Maximum number of values allowed for the Field type.
2882
+ # Maximum number of values allowed for the field type.
2831
2883
  # Corresponds to the JSON property `maxEntries`
2832
2884
  # @return [Fixnum]
2833
2885
  attr_accessor :max_entries
@@ -2848,8 +2900,8 @@ module Google
2848
2900
  include Google::Apis::Core::Hashable
2849
2901
 
2850
2902
  # Output only. Indicates whether this label component is the (direct) target of
2851
- # a LabelLock. A label component can be implicitly locked even if it's not the
2852
- # direct target of a LabelLock, in which case this field is set to false.
2903
+ # a label lock. A label component can be implicitly locked even if it's not the
2904
+ # direct target of a label lock, in which case this field is set to false.
2853
2905
  # Corresponds to the JSON property `locked`
2854
2906
  # @return [Boolean]
2855
2907
  attr_accessor :locked
@@ -2865,16 +2917,16 @@ module Google
2865
2917
  end
2866
2918
  end
2867
2919
 
2868
- # Limits for long text Field type.
2920
+ # Limits for long text field type.
2869
2921
  class GoogleAppsDriveLabelsV2LongTextLimits
2870
2922
  include Google::Apis::Core::Hashable
2871
2923
 
2872
- # Maximum length allowed for a long text Field type.
2924
+ # Maximum length allowed for a long text field type.
2873
2925
  # Corresponds to the JSON property `maxLength`
2874
2926
  # @return [Fixnum]
2875
2927
  attr_accessor :max_length
2876
2928
 
2877
- # Minimum length allowed for a long text Field type.
2929
+ # Minimum length allowed for a long text field type.
2878
2930
  # Corresponds to the JSON property `minLength`
2879
2931
  # @return [Fixnum]
2880
2932
  attr_accessor :min_length
@@ -2901,7 +2953,7 @@ module Google
2901
2953
  attr_accessor :language_code
2902
2954
 
2903
2955
  # Set to `true` in order to use the user's admin credentials. The server will
2904
- # verify the user is an admin for the Label before allowing access.
2956
+ # verify the user is an admin for the label before allowing access.
2905
2957
  # Corresponds to the JSON property `useAdminAccess`
2906
2958
  # @return [Boolean]
2907
2959
  attr_accessor :use_admin_access
@@ -2925,16 +2977,16 @@ module Google
2925
2977
  end
2926
2978
  end
2927
2979
 
2928
- # Limits for selection Field type.
2980
+ # Limits for selection field type.
2929
2981
  class GoogleAppsDriveLabelsV2SelectionLimits
2930
2982
  include Google::Apis::Core::Hashable
2931
2983
 
2932
- # Limits for list-variant of a Field type.
2984
+ # Limits for list-variant of a field type.
2933
2985
  # Corresponds to the JSON property `listLimits`
2934
2986
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2ListLimits]
2935
2987
  attr_accessor :list_limits
2936
2988
 
2937
- # The max number of choices.
2989
+ # Maximum number of choices.
2938
2990
  # Corresponds to the JSON property `maxChoices`
2939
2991
  # @return [Fixnum]
2940
2992
  attr_accessor :max_choices
@@ -2949,7 +3001,7 @@ module Google
2949
3001
  # @return [Fixnum]
2950
3002
  attr_accessor :max_display_name_length
2951
3003
 
2952
- # Maximum ID length for a selection options.
3004
+ # Maximum ID length for a selection option.
2953
3005
  # Corresponds to the JSON property `maxIdLength`
2954
3006
  # @return [Fixnum]
2955
3007
  attr_accessor :max_id_length
@@ -2968,16 +3020,16 @@ module Google
2968
3020
  end
2969
3021
  end
2970
3022
 
2971
- # Limits for text Field type.
3023
+ # Limits for text field type.
2972
3024
  class GoogleAppsDriveLabelsV2TextLimits
2973
3025
  include Google::Apis::Core::Hashable
2974
3026
 
2975
- # Maximum length allowed for a text Field type.
3027
+ # Maximum length allowed for a text field type.
2976
3028
  # Corresponds to the JSON property `maxLength`
2977
3029
  # @return [Fixnum]
2978
3030
  attr_accessor :max_length
2979
3031
 
2980
- # Minimum length allowed for a text Field type.
3032
+ # Minimum length allowed for a text field type.
2981
3033
  # Corresponds to the JSON property `minLength`
2982
3034
  # @return [Fixnum]
2983
3035
  attr_accessor :min_length
@@ -2993,12 +3045,12 @@ module Google
2993
3045
  end
2994
3046
  end
2995
3047
 
2996
- # Request to update the `CopyMode` of the given Label. Changes to this policy
2997
- # are not revisioned, do not require publishing, and take effect immediately. \
3048
+ # Request to update the `CopyMode` of the given label. Changes to this policy
3049
+ # aren't revisioned, don't require publishing, and take effect immediately. \
2998
3050
  class GoogleAppsDriveLabelsV2UpdateLabelCopyModeRequest
2999
3051
  include Google::Apis::Core::Hashable
3000
3052
 
3001
- # Required. Indicates how the applied Label, and Field values should be copied
3053
+ # Required. Indicates how the applied label and field values should be copied
3002
3054
  # when a Drive item is copied.
3003
3055
  # Corresponds to the JSON property `copyMode`
3004
3056
  # @return [String]
@@ -3011,7 +3063,7 @@ module Google
3011
3063
  attr_accessor :language_code
3012
3064
 
3013
3065
  # Set to `true` in order to use the user's admin credentials. The server will
3014
- # verify the user is an admin for the Label before allowing access.
3066
+ # verify the user is an admin for the label before allowing access.
3015
3067
  # Corresponds to the JSON property `useAdminAccess`
3016
3068
  # @return [Boolean]
3017
3069
  attr_accessor :use_admin_access
@@ -3036,8 +3088,51 @@ module Google
3036
3088
  end
3037
3089
  end
3038
3090
 
3039
- # Updates a Label Permission. Permissions affect the Label resource as a whole,
3040
- # are not revisioned, and do not require publishing.
3091
+ # Request to update the `EnabledAppSettings` of the given label. This change is
3092
+ # not revisioned, doesn't require publishing, and takes effect immediately. \
3093
+ class GoogleAppsDriveLabelsV2UpdateLabelEnabledAppSettingsRequest
3094
+ include Google::Apis::Core::Hashable
3095
+
3096
+ # Describes the Google Workspace apps in which the label can be used.
3097
+ # Corresponds to the JSON property `enabledAppSettings`
3098
+ # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2LabelEnabledAppSettings]
3099
+ attr_accessor :enabled_app_settings
3100
+
3101
+ # Optional. The BCP-47 language code to use for evaluating localized field
3102
+ # labels. When not specified, values in the default configured language will be
3103
+ # used.
3104
+ # Corresponds to the JSON property `languageCode`
3105
+ # @return [String]
3106
+ attr_accessor :language_code
3107
+
3108
+ # Optional. Set to `true` in order to use the user's admin credentials. The
3109
+ # server will verify the user is an admin for the label before allowing access.
3110
+ # Corresponds to the JSON property `useAdminAccess`
3111
+ # @return [Boolean]
3112
+ attr_accessor :use_admin_access
3113
+ alias_method :use_admin_access?, :use_admin_access
3114
+
3115
+ # Optional. When specified, only certain fields belonging to the indicated view
3116
+ # will be returned.
3117
+ # Corresponds to the JSON property `view`
3118
+ # @return [String]
3119
+ attr_accessor :view
3120
+
3121
+ def initialize(**args)
3122
+ update!(**args)
3123
+ end
3124
+
3125
+ # Update properties of this object
3126
+ def update!(**args)
3127
+ @enabled_app_settings = args[:enabled_app_settings] if args.key?(:enabled_app_settings)
3128
+ @language_code = args[:language_code] if args.key?(:language_code)
3129
+ @use_admin_access = args[:use_admin_access] if args.key?(:use_admin_access)
3130
+ @view = args[:view] if args.key?(:view)
3131
+ end
3132
+ end
3133
+
3134
+ # Updates a label permission. Permissions affect the label resource as a whole,
3135
+ # aren't revisioned, and don't require publishing.
3041
3136
  class GoogleAppsDriveLabelsV2UpdateLabelPermissionRequest
3042
3137
  include Google::Apis::Core::Hashable
3043
3138
 
@@ -3046,13 +3141,13 @@ module Google
3046
3141
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2LabelPermission]
3047
3142
  attr_accessor :label_permission
3048
3143
 
3049
- # Required. The parent Label resource name.
3144
+ # Required. The parent label resource name.
3050
3145
  # Corresponds to the JSON property `parent`
3051
3146
  # @return [String]
3052
3147
  attr_accessor :parent
3053
3148
 
3054
3149
  # Set to `true` in order to use the user's admin credentials. The server will
3055
- # verify the user is an admin for the Label before allowing access.
3150
+ # verify the user is an admin for the label before allowing access.
3056
3151
  # Corresponds to the JSON property `useAdminAccess`
3057
3152
  # @return [Boolean]
3058
3153
  attr_accessor :use_admin_access
@@ -3087,13 +3182,13 @@ module Google
3087
3182
  attr_accessor :can_administrate_labels
3088
3183
  alias_method :can_administrate_labels?, :can_administrate_labels
3089
3184
 
3090
- # Output only. Whether the user is allowed to create new admin labels.
3185
+ # Output only. Whether the user is allowed to create admin labels.
3091
3186
  # Corresponds to the JSON property `canCreateAdminLabels`
3092
3187
  # @return [Boolean]
3093
3188
  attr_accessor :can_create_admin_labels
3094
3189
  alias_method :can_create_admin_labels?, :can_create_admin_labels
3095
3190
 
3096
- # Output only. Whether the user is allowed to create new shared labels.
3191
+ # Output only. Whether the user is allowed to create shared labels.
3097
3192
  # Corresponds to the JSON property `canCreateSharedLabels`
3098
3193
  # @return [Boolean]
3099
3194
  attr_accessor :can_create_shared_labels
@@ -3122,8 +3217,9 @@ module Google
3122
3217
  class GoogleAppsDriveLabelsV2UserInfo
3123
3218
  include Google::Apis::Core::Hashable
3124
3219
 
3125
- # The identifier for this user that can be used with the People API to get more
3126
- # information. For example, people/12345678.
3220
+ # The identifier for this user that can be used with the [People API](https://
3221
+ # developers.google.com/people) to get more information. For example, `people/
3222
+ # 12345678`.
3127
3223
  # Corresponds to the JSON property `person`
3128
3224
  # @return [String]
3129
3225
  attr_accessor :person
@@ -3142,7 +3238,7 @@ module Google
3142
3238
  class GoogleAppsDriveLabelsV2UserLimits
3143
3239
  include Google::Apis::Core::Hashable
3144
3240
 
3145
- # Limits for list-variant of a Field type.
3241
+ # Limits for list-variant of a field type.
3146
3242
  # Corresponds to the JSON property `listLimits`
3147
3243
  # @return [Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2ListLimits]
3148
3244
  attr_accessor :list_limits
@@ -3162,9 +3258,9 @@ module Google
3162
3258
  class GoogleAppsDriveLabelsV2WriteControl
3163
3259
  include Google::Apis::Core::Hashable
3164
3260
 
3165
- # The revision_id of the label that the write request will be applied to. If
3166
- # this is not the latest revision of the label, the request will not be
3167
- # processed and will return a 400 Bad Request error.
3261
+ # The revision ID of the label that the write request will be applied to. If
3262
+ # this isn't the latest revision of the label, the request will not be processed
3263
+ # and will return a 400 Bad Request error.
3168
3264
  # Corresponds to the JSON property `requiredRevisionId`
3169
3265
  # @return [String]
3170
3266
  attr_accessor :required_revision_id