google-api-client 0.10.0 → 0.10.1
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/api_names.yaml +37747 -36512
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1016 -114
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +426 -22
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +481 -95
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +27 -10
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1 -0
- data/generated/google/apis/admin_reports_v1.rb +2 -2
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4.rb +4 -4
- data/generated/google/apis/analyticsreporting_v4/classes.rb +428 -428
- data/generated/google/apis/analyticsreporting_v4/representations.rb +108 -108
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +60 -66
- data/generated/google/apis/androidenterprise_v1/service.rb +12 -11
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +7 -0
- data/generated/google/apis/androidpublisher_v2/representations.rb +1 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +1 -1
- data/generated/google/apis/appsactivity_v1.rb +3 -3
- data/generated/google/apis/appsactivity_v1/service.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +34 -8
- data/generated/google/apis/bigquery_v2/representations.rb +15 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +3 -5
- data/generated/google/apis/classroom_v1.rb +25 -22
- data/generated/google/apis/classroom_v1/classes.rb +910 -1001
- data/generated/google/apis/classroom_v1/representations.rb +240 -240
- data/generated/google/apis/classroom_v1/service.rb +1064 -1272
- data/generated/google/apis/cloudbilling_v1.rb +3 -3
- data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
- data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
- data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +238 -238
- data/generated/google/apis/cloudbuild_v1/representations.rb +48 -48
- data/generated/google/apis/cloudbuild_v1/service.rb +176 -176
- data/generated/google/apis/clouddebugger_v2.rb +4 -4
- data/generated/google/apis/clouddebugger_v2/classes.rb +315 -315
- data/generated/google/apis/clouddebugger_v2/representations.rb +90 -90
- data/generated/google/apis/clouddebugger_v2/service.rb +152 -152
- data/generated/google/apis/cloudkms_v1.rb +35 -0
- data/generated/google/apis/cloudkms_v1/classes.rb +1039 -0
- data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1/service.rb +933 -0
- data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +645 -605
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +136 -136
- data/generated/google/apis/cloudkms_v1beta1/service.rb +258 -264
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +677 -456
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +154 -89
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +380 -279
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +247 -114
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +72 -40
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +202 -208
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +39 -39
- data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
- data/generated/google/apis/cloudtrace_v1/service.rb +18 -18
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +813 -82
- data/generated/google/apis/compute_beta/representations.rb +305 -0
- data/generated/google/apis/compute_beta/service.rb +971 -180
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +147 -21
- data/generated/google/apis/compute_v1/representations.rb +38 -0
- data/generated/google/apis/compute_v1/service.rb +347 -65
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +2 -1
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +3352 -3110
- data/generated/google/apis/dataflow_v1b3/representations.rb +812 -730
- data/generated/google/apis/dataflow_v1b3/service.rb +264 -183
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1200 -1164
- data/generated/google/apis/dataproc_v1/representations.rb +220 -204
- data/generated/google/apis/dataproc_v1/service.rb +299 -299
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +688 -688
- data/generated/google/apis/datastore_v1/representations.rb +167 -167
- data/generated/google/apis/datastore_v1/service.rb +68 -68
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +13 -3
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +487 -15
- data/generated/google/apis/drive_v2/representations.rb +120 -0
- data/generated/google/apis/drive_v2/service.rb +355 -38
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +416 -14
- data/generated/google/apis/drive_v3/representations.rb +99 -0
- data/generated/google/apis/drive_v3/service.rb +315 -28
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +7 -7
- data/generated/google/apis/genomics_v1/classes.rb +2301 -2301
- data/generated/google/apis/genomics_v1/representations.rb +239 -239
- data/generated/google/apis/genomics_v1/service.rb +599 -599
- data/generated/google/apis/gmail_v1.rb +2 -2
- data/generated/google/apis/gmail_v1/service.rb +18 -1
- data/generated/google/apis/groupssettings_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +440 -440
- data/generated/google/apis/iam_v1/representations.rb +96 -96
- data/generated/google/apis/iam_v1/service.rb +150 -150
- data/generated/google/apis/kgsearch_v1/service.rb +13 -13
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +235 -235
- data/generated/google/apis/language_v1beta1/representations.rb +73 -73
- data/generated/google/apis/language_v1beta1/service.rb +49 -49
- data/generated/google/apis/licensing_v1.rb +1 -1
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +888 -879
- data/generated/google/apis/logging_v2beta1/representations.rb +129 -129
- data/generated/google/apis/logging_v2beta1/service.rb +315 -316
- data/generated/google/apis/manufacturers_v1/classes.rb +139 -139
- data/generated/google/apis/manufacturers_v1/representations.rb +30 -30
- data/generated/google/apis/manufacturers_v1/service.rb +32 -32
- data/generated/google/apis/monitoring_v3.rb +4 -4
- data/generated/google/apis/monitoring_v3/classes.rb +229 -229
- data/generated/google/apis/monitoring_v3/representations.rb +45 -45
- data/generated/google/apis/monitoring_v3/service.rb +141 -141
- data/generated/google/apis/partners_v2.rb +3 -3
- data/generated/google/apis/partners_v2/classes.rb +1837 -483
- data/generated/google/apis/partners_v2/representations.rb +614 -157
- data/generated/google/apis/partners_v2/service.rb +881 -150
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +517 -465
- data/generated/google/apis/people_v1/representations.rb +138 -107
- data/generated/google/apis/people_v1/service.rb +56 -49
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +529 -458
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +98 -97
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +494 -370
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +203 -203
- data/generated/google/apis/pubsub_v1/representations.rb +65 -65
- data/generated/google/apis/pubsub_v1/service.rb +226 -217
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +213 -61
- data/generated/google/apis/reseller_v1/representations.rb +27 -0
- data/generated/google/apis/reseller_v1/service.rb +240 -47
- data/generated/google/apis/script_v1.rb +14 -14
- data/generated/google/apis/script_v1/classes.rb +95 -95
- data/generated/google/apis/script_v1/representations.rb +25 -25
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +4346 -4300
- data/generated/google/apis/sheets_v4/representations.rb +853 -837
- data/generated/google/apis/sheets_v4/service.rb +32 -32
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +804 -748
- data/generated/google/apis/slides_v1/representations.rb +204 -187
- data/generated/google/apis/slides_v1/service.rb +16 -16
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +57 -57
- data/generated/google/apis/speech_v1beta1/representations.rb +19 -19
- data/generated/google/apis/speech_v1beta1/service.rb +66 -66
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -7
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +16 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +9 -2
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/service.rb +10 -7
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1393 -865
- data/generated/google/apis/vision_v1/representations.rb +367 -102
- data/generated/google/apis/vision_v1/service.rb +4 -4
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +93 -93
- data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
- data/generated/google/apis/youtubereporting_v1/service.rb +108 -108
- data/lib/google/apis/version.rb +1 -1
- metadata +34 -30
|
@@ -129,7 +129,7 @@ module Google
|
|
|
129
129
|
end
|
|
130
130
|
end
|
|
131
131
|
|
|
132
|
-
# A change to a file.
|
|
132
|
+
# A change to a file or Team Drive.
|
|
133
133
|
class Change
|
|
134
134
|
include Google::Apis::Core::Hashable
|
|
135
135
|
|
|
@@ -149,18 +149,33 @@ module Google
|
|
|
149
149
|
# @return [String]
|
|
150
150
|
attr_accessor :kind
|
|
151
151
|
|
|
152
|
-
# Whether the file has been removed from
|
|
153
|
-
# example by deletion or
|
|
152
|
+
# Whether the file or Team Drive has been removed from this list of changes, for
|
|
153
|
+
# example by deletion or loss of access.
|
|
154
154
|
# Corresponds to the JSON property `removed`
|
|
155
155
|
# @return [Boolean]
|
|
156
156
|
attr_accessor :removed
|
|
157
157
|
alias_method :removed?, :removed
|
|
158
158
|
|
|
159
|
+
# Representation of a Team Drive.
|
|
160
|
+
# Corresponds to the JSON property `teamDrive`
|
|
161
|
+
# @return [Google::Apis::DriveV3::TeamDrive]
|
|
162
|
+
attr_accessor :team_drive
|
|
163
|
+
|
|
164
|
+
# The ID of the Team Drive associated with this change.
|
|
165
|
+
# Corresponds to the JSON property `teamDriveId`
|
|
166
|
+
# @return [String]
|
|
167
|
+
attr_accessor :team_drive_id
|
|
168
|
+
|
|
159
169
|
# The time of this change (RFC 3339 date-time).
|
|
160
170
|
# Corresponds to the JSON property `time`
|
|
161
171
|
# @return [DateTime]
|
|
162
172
|
attr_accessor :time
|
|
163
173
|
|
|
174
|
+
# The type of the change. Possible values are file and teamDrive.
|
|
175
|
+
# Corresponds to the JSON property `type`
|
|
176
|
+
# @return [String]
|
|
177
|
+
attr_accessor :type
|
|
178
|
+
|
|
164
179
|
def initialize(**args)
|
|
165
180
|
update!(**args)
|
|
166
181
|
end
|
|
@@ -171,7 +186,10 @@ module Google
|
|
|
171
186
|
@file_id = args[:file_id] if args.key?(:file_id)
|
|
172
187
|
@kind = args[:kind] if args.key?(:kind)
|
|
173
188
|
@removed = args[:removed] if args.key?(:removed)
|
|
189
|
+
@team_drive = args[:team_drive] if args.key?(:team_drive)
|
|
190
|
+
@team_drive_id = args[:team_drive_id] if args.key?(:team_drive_id)
|
|
174
191
|
@time = args[:time] if args.key?(:time)
|
|
192
|
+
@type = args[:type] if args.key?(:type)
|
|
175
193
|
end
|
|
176
194
|
end
|
|
177
195
|
|
|
@@ -464,7 +482,8 @@ module Google
|
|
|
464
482
|
# @return [Hash<String,String>]
|
|
465
483
|
attr_accessor :app_properties
|
|
466
484
|
|
|
467
|
-
# Capabilities the current user has on the file.
|
|
485
|
+
# Capabilities the current user has on the file. Each capability corresponds to
|
|
486
|
+
# a fine-grained action that a user may take.
|
|
468
487
|
# Corresponds to the JSON property `capabilities`
|
|
469
488
|
# @return [Google::Apis::DriveV3::File::Capabilities]
|
|
470
489
|
attr_accessor :capabilities
|
|
@@ -515,6 +534,13 @@ module Google
|
|
|
515
534
|
# @return [String]
|
|
516
535
|
attr_accessor :full_file_extension
|
|
517
536
|
|
|
537
|
+
# Whether any users are granted file access directly on this file. This field is
|
|
538
|
+
# only populated for Team Drive files.
|
|
539
|
+
# Corresponds to the JSON property `hasAugmentedPermissions`
|
|
540
|
+
# @return [Boolean]
|
|
541
|
+
attr_accessor :has_augmented_permissions
|
|
542
|
+
alias_method :has_augmented_permissions?, :has_augmented_permissions
|
|
543
|
+
|
|
518
544
|
# Whether this file has a thumbnail.
|
|
519
545
|
# Corresponds to the JSON property `hasThumbnail`
|
|
520
546
|
# @return [Boolean]
|
|
@@ -604,14 +630,14 @@ module Google
|
|
|
604
630
|
# @return [String]
|
|
605
631
|
attr_accessor :original_filename
|
|
606
632
|
|
|
607
|
-
# Whether the user owns the file.
|
|
633
|
+
# Whether the user owns the file. Not populated for Team Drive files.
|
|
608
634
|
# Corresponds to the JSON property `ownedByMe`
|
|
609
635
|
# @return [Boolean]
|
|
610
636
|
attr_accessor :owned_by_me
|
|
611
637
|
alias_method :owned_by_me?, :owned_by_me
|
|
612
638
|
|
|
613
639
|
# The owners of the file. Currently, only certain legacy files may have more
|
|
614
|
-
# than one owner.
|
|
640
|
+
# than one owner. Not populated for Team Drive files.
|
|
615
641
|
# Corresponds to the JSON property `owners`
|
|
616
642
|
# @return [Array<Google::Apis::DriveV3::User>]
|
|
617
643
|
attr_accessor :owners
|
|
@@ -625,7 +651,7 @@ module Google
|
|
|
625
651
|
attr_accessor :parents
|
|
626
652
|
|
|
627
653
|
# The full list of permissions for the file. This is only available if the
|
|
628
|
-
# requesting user can share the file.
|
|
654
|
+
# requesting user can share the file. Not populated for Team Drive files.
|
|
629
655
|
# Corresponds to the JSON property `permissions`
|
|
630
656
|
# @return [Array<Google::Apis::DriveV3::Permission>]
|
|
631
657
|
attr_accessor :permissions
|
|
@@ -642,7 +668,7 @@ module Google
|
|
|
642
668
|
# @return [String]
|
|
643
669
|
attr_accessor :quota_bytes_used
|
|
644
670
|
|
|
645
|
-
# Whether the file has been shared.
|
|
671
|
+
# Whether the file has been shared. Not populated for Team Drive files.
|
|
646
672
|
# Corresponds to the JSON property `shared`
|
|
647
673
|
# @return [Boolean]
|
|
648
674
|
attr_accessor :shared
|
|
@@ -677,6 +703,11 @@ module Google
|
|
|
677
703
|
attr_accessor :starred
|
|
678
704
|
alias_method :starred?, :starred
|
|
679
705
|
|
|
706
|
+
# ID of the Team Drive the file resides in.
|
|
707
|
+
# Corresponds to the JSON property `teamDriveId`
|
|
708
|
+
# @return [String]
|
|
709
|
+
attr_accessor :team_drive_id
|
|
710
|
+
|
|
680
711
|
# A short-lived link to the file's thumbnail, if available. Typically lasts on
|
|
681
712
|
# the order of hours. Only populated when the requesting app can access the file'
|
|
682
713
|
# s content.
|
|
@@ -697,6 +728,17 @@ module Google
|
|
|
697
728
|
attr_accessor :trashed
|
|
698
729
|
alias_method :trashed?, :trashed
|
|
699
730
|
|
|
731
|
+
# The time that the item was trashed (RFC 3339 date-time). Only populated for
|
|
732
|
+
# Team Drive files.
|
|
733
|
+
# Corresponds to the JSON property `trashedTime`
|
|
734
|
+
# @return [DateTime]
|
|
735
|
+
attr_accessor :trashed_time
|
|
736
|
+
|
|
737
|
+
# Information about a Drive user.
|
|
738
|
+
# Corresponds to the JSON property `trashingUser`
|
|
739
|
+
# @return [Google::Apis::DriveV3::User]
|
|
740
|
+
attr_accessor :trashing_user
|
|
741
|
+
|
|
700
742
|
# A monotonically increasing version number for the file. This reflects every
|
|
701
743
|
# change made to the file on the server, even those not visible to the user.
|
|
702
744
|
# Corresponds to the JSON property `version`
|
|
@@ -739,6 +781,7 @@ module Google
|
|
|
739
781
|
attr_accessor :web_view_link
|
|
740
782
|
|
|
741
783
|
# Whether users with only writer permission can modify the file's permissions.
|
|
784
|
+
# Not populated for Team Drive files.
|
|
742
785
|
# Corresponds to the JSON property `writersCanShare`
|
|
743
786
|
# @return [Boolean]
|
|
744
787
|
attr_accessor :writers_can_share
|
|
@@ -759,6 +802,7 @@ module Google
|
|
|
759
802
|
@file_extension = args[:file_extension] if args.key?(:file_extension)
|
|
760
803
|
@folder_color_rgb = args[:folder_color_rgb] if args.key?(:folder_color_rgb)
|
|
761
804
|
@full_file_extension = args[:full_file_extension] if args.key?(:full_file_extension)
|
|
805
|
+
@has_augmented_permissions = args[:has_augmented_permissions] if args.key?(:has_augmented_permissions)
|
|
762
806
|
@has_thumbnail = args[:has_thumbnail] if args.key?(:has_thumbnail)
|
|
763
807
|
@head_revision_id = args[:head_revision_id] if args.key?(:head_revision_id)
|
|
764
808
|
@icon_link = args[:icon_link] if args.key?(:icon_link)
|
|
@@ -786,9 +830,12 @@ module Google
|
|
|
786
830
|
@size = args[:size] if args.key?(:size)
|
|
787
831
|
@spaces = args[:spaces] if args.key?(:spaces)
|
|
788
832
|
@starred = args[:starred] if args.key?(:starred)
|
|
833
|
+
@team_drive_id = args[:team_drive_id] if args.key?(:team_drive_id)
|
|
789
834
|
@thumbnail_link = args[:thumbnail_link] if args.key?(:thumbnail_link)
|
|
790
835
|
@thumbnail_version = args[:thumbnail_version] if args.key?(:thumbnail_version)
|
|
791
836
|
@trashed = args[:trashed] if args.key?(:trashed)
|
|
837
|
+
@trashed_time = args[:trashed_time] if args.key?(:trashed_time)
|
|
838
|
+
@trashing_user = args[:trashing_user] if args.key?(:trashing_user)
|
|
792
839
|
@version = args[:version] if args.key?(:version)
|
|
793
840
|
@video_media_metadata = args[:video_media_metadata] if args.key?(:video_media_metadata)
|
|
794
841
|
@viewed_by_me = args[:viewed_by_me] if args.key?(:viewed_by_me)
|
|
@@ -799,51 +846,140 @@ module Google
|
|
|
799
846
|
@writers_can_share = args[:writers_can_share] if args.key?(:writers_can_share)
|
|
800
847
|
end
|
|
801
848
|
|
|
802
|
-
# Capabilities the current user has on the file.
|
|
849
|
+
# Capabilities the current user has on the file. Each capability corresponds to
|
|
850
|
+
# a fine-grained action that a user may take.
|
|
803
851
|
class Capabilities
|
|
804
852
|
include Google::Apis::Core::Hashable
|
|
805
853
|
|
|
854
|
+
# Whether the user can add children to this folder. This is always false when
|
|
855
|
+
# the item is not a folder.
|
|
856
|
+
# Corresponds to the JSON property `canAddChildren`
|
|
857
|
+
# @return [Boolean]
|
|
858
|
+
attr_accessor :can_add_children
|
|
859
|
+
alias_method :can_add_children?, :can_add_children
|
|
860
|
+
|
|
806
861
|
# Whether the user can comment on the file.
|
|
807
862
|
# Corresponds to the JSON property `canComment`
|
|
808
863
|
# @return [Boolean]
|
|
809
864
|
attr_accessor :can_comment
|
|
810
865
|
alias_method :can_comment?, :can_comment
|
|
811
866
|
|
|
812
|
-
# Whether the user can copy the file.
|
|
867
|
+
# Whether the user can copy the file. For a Team Drive item, whether non-folder
|
|
868
|
+
# descendants of this item, or this item itself if it is not a folder, can be
|
|
869
|
+
# copied.
|
|
813
870
|
# Corresponds to the JSON property `canCopy`
|
|
814
871
|
# @return [Boolean]
|
|
815
872
|
attr_accessor :can_copy
|
|
816
873
|
alias_method :can_copy?, :can_copy
|
|
817
874
|
|
|
875
|
+
# Whether the file can be deleted by the user.
|
|
876
|
+
# Corresponds to the JSON property `canDelete`
|
|
877
|
+
# @return [Boolean]
|
|
878
|
+
attr_accessor :can_delete
|
|
879
|
+
alias_method :can_delete?, :can_delete
|
|
880
|
+
|
|
881
|
+
# Whether the file can be downloaded by the user.
|
|
882
|
+
# Corresponds to the JSON property `canDownload`
|
|
883
|
+
# @return [Boolean]
|
|
884
|
+
attr_accessor :can_download
|
|
885
|
+
alias_method :can_download?, :can_download
|
|
886
|
+
|
|
818
887
|
# Whether the user can edit the file's content.
|
|
819
888
|
# Corresponds to the JSON property `canEdit`
|
|
820
889
|
# @return [Boolean]
|
|
821
890
|
attr_accessor :can_edit
|
|
822
891
|
alias_method :can_edit?, :can_edit
|
|
823
892
|
|
|
824
|
-
# Whether the
|
|
893
|
+
# Whether the user can list the children of this folder. This is always false
|
|
894
|
+
# when the item is not a folder.
|
|
895
|
+
# Corresponds to the JSON property `canListChildren`
|
|
896
|
+
# @return [Boolean]
|
|
897
|
+
attr_accessor :can_list_children
|
|
898
|
+
alias_method :can_list_children?, :can_list_children
|
|
899
|
+
|
|
900
|
+
# Whether the current user can move this item into a Team Drive. If the item is
|
|
901
|
+
# in a Team Drive, this field is equivalent to canMoveTeamDriveItem.
|
|
902
|
+
# Corresponds to the JSON property `canMoveItemIntoTeamDrive`
|
|
903
|
+
# @return [Boolean]
|
|
904
|
+
attr_accessor :can_move_item_into_team_drive
|
|
905
|
+
alias_method :can_move_item_into_team_drive?, :can_move_item_into_team_drive
|
|
906
|
+
|
|
907
|
+
# Whether the user can move this Team Drive item by changing its parent. Note
|
|
908
|
+
# that a request to change the parent for this item may still fail depending on
|
|
909
|
+
# the new parent that is being added. Only populated for Team Drive files.
|
|
910
|
+
# Corresponds to the JSON property `canMoveTeamDriveItem`
|
|
911
|
+
# @return [Boolean]
|
|
912
|
+
attr_accessor :can_move_team_drive_item
|
|
913
|
+
alias_method :can_move_team_drive_item?, :can_move_team_drive_item
|
|
914
|
+
|
|
915
|
+
# Whether the user has read access to the Revisions resource of the file. For a
|
|
916
|
+
# Team Drive item, whether revisions of non-folder descendants of this item, or
|
|
917
|
+
# this item itself if it is not a folder, can be read.
|
|
825
918
|
# Corresponds to the JSON property `canReadRevisions`
|
|
826
919
|
# @return [Boolean]
|
|
827
920
|
attr_accessor :can_read_revisions
|
|
828
921
|
alias_method :can_read_revisions?, :can_read_revisions
|
|
829
922
|
|
|
923
|
+
# Whether the user has read access to the Team Drive to which this file belongs.
|
|
924
|
+
# Only populated for Team Drive files.
|
|
925
|
+
# Corresponds to the JSON property `canReadTeamDrive`
|
|
926
|
+
# @return [Boolean]
|
|
927
|
+
attr_accessor :can_read_team_drive
|
|
928
|
+
alias_method :can_read_team_drive?, :can_read_team_drive
|
|
929
|
+
|
|
930
|
+
# Whether the user can remove children from this folder. This is always false
|
|
931
|
+
# when the item is not a folder.
|
|
932
|
+
# Corresponds to the JSON property `canRemoveChildren`
|
|
933
|
+
# @return [Boolean]
|
|
934
|
+
attr_accessor :can_remove_children
|
|
935
|
+
alias_method :can_remove_children?, :can_remove_children
|
|
936
|
+
|
|
937
|
+
# Whether the file can be renamed by the user.
|
|
938
|
+
# Corresponds to the JSON property `canRename`
|
|
939
|
+
# @return [Boolean]
|
|
940
|
+
attr_accessor :can_rename
|
|
941
|
+
alias_method :can_rename?, :can_rename
|
|
942
|
+
|
|
830
943
|
# Whether the user can modify the file's permissions and sharing settings.
|
|
831
944
|
# Corresponds to the JSON property `canShare`
|
|
832
945
|
# @return [Boolean]
|
|
833
946
|
attr_accessor :can_share
|
|
834
947
|
alias_method :can_share?, :can_share
|
|
835
948
|
|
|
949
|
+
# Whether the file can be trashed by the user.
|
|
950
|
+
# Corresponds to the JSON property `canTrash`
|
|
951
|
+
# @return [Boolean]
|
|
952
|
+
attr_accessor :can_trash
|
|
953
|
+
alias_method :can_trash?, :can_trash
|
|
954
|
+
|
|
955
|
+
# Whether the file can be restored from the trash by the current user.
|
|
956
|
+
# Corresponds to the JSON property `canUntrash`
|
|
957
|
+
# @return [Boolean]
|
|
958
|
+
attr_accessor :can_untrash
|
|
959
|
+
alias_method :can_untrash?, :can_untrash
|
|
960
|
+
|
|
836
961
|
def initialize(**args)
|
|
837
962
|
update!(**args)
|
|
838
963
|
end
|
|
839
964
|
|
|
840
965
|
# Update properties of this object
|
|
841
966
|
def update!(**args)
|
|
967
|
+
@can_add_children = args[:can_add_children] if args.key?(:can_add_children)
|
|
842
968
|
@can_comment = args[:can_comment] if args.key?(:can_comment)
|
|
843
969
|
@can_copy = args[:can_copy] if args.key?(:can_copy)
|
|
970
|
+
@can_delete = args[:can_delete] if args.key?(:can_delete)
|
|
971
|
+
@can_download = args[:can_download] if args.key?(:can_download)
|
|
844
972
|
@can_edit = args[:can_edit] if args.key?(:can_edit)
|
|
973
|
+
@can_list_children = args[:can_list_children] if args.key?(:can_list_children)
|
|
974
|
+
@can_move_item_into_team_drive = args[:can_move_item_into_team_drive] if args.key?(:can_move_item_into_team_drive)
|
|
975
|
+
@can_move_team_drive_item = args[:can_move_team_drive_item] if args.key?(:can_move_team_drive_item)
|
|
845
976
|
@can_read_revisions = args[:can_read_revisions] if args.key?(:can_read_revisions)
|
|
977
|
+
@can_read_team_drive = args[:can_read_team_drive] if args.key?(:can_read_team_drive)
|
|
978
|
+
@can_remove_children = args[:can_remove_children] if args.key?(:can_remove_children)
|
|
979
|
+
@can_rename = args[:can_rename] if args.key?(:can_rename)
|
|
846
980
|
@can_share = args[:can_share] if args.key?(:can_share)
|
|
981
|
+
@can_trash = args[:can_trash] if args.key?(:can_trash)
|
|
982
|
+
@can_untrash = args[:can_untrash] if args.key?(:can_untrash)
|
|
847
983
|
end
|
|
848
984
|
end
|
|
849
985
|
|
|
@@ -1116,6 +1252,17 @@ module Google
|
|
|
1116
1252
|
# @return [Array<Google::Apis::DriveV3::File>]
|
|
1117
1253
|
attr_accessor :files
|
|
1118
1254
|
|
|
1255
|
+
# Whether the search process was incomplete. If true, then some search results
|
|
1256
|
+
# may be missing, since all documents were not searched. This may occur when
|
|
1257
|
+
# searching multiple Team Drives with the "user,allTeamDrives" corpora, but all
|
|
1258
|
+
# corpora could not be searched. When this happens, it is suggested that clients
|
|
1259
|
+
# narrow their query by choosing a different corpus such as "user" or "teamDrive"
|
|
1260
|
+
# .
|
|
1261
|
+
# Corresponds to the JSON property `incompleteSearch`
|
|
1262
|
+
# @return [Boolean]
|
|
1263
|
+
attr_accessor :incomplete_search
|
|
1264
|
+
alias_method :incomplete_search?, :incomplete_search
|
|
1265
|
+
|
|
1119
1266
|
# Identifies what kind of resource this is. Value: the fixed string "drive#
|
|
1120
1267
|
# fileList".
|
|
1121
1268
|
# Corresponds to the JSON property `kind`
|
|
@@ -1137,6 +1284,7 @@ module Google
|
|
|
1137
1284
|
# Update properties of this object
|
|
1138
1285
|
def update!(**args)
|
|
1139
1286
|
@files = args[:files] if args.key?(:files)
|
|
1287
|
+
@incomplete_search = args[:incomplete_search] if args.key?(:incomplete_search)
|
|
1140
1288
|
@kind = args[:kind] if args.key?(:kind)
|
|
1141
1289
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
1142
1290
|
end
|
|
@@ -1201,7 +1349,11 @@ module Google
|
|
|
1201
1349
|
# @return [String]
|
|
1202
1350
|
attr_accessor :email_address
|
|
1203
1351
|
|
|
1204
|
-
# The time at which this permission will expire (RFC 3339 date-time).
|
|
1352
|
+
# The time at which this permission will expire (RFC 3339 date-time). Expiration
|
|
1353
|
+
# times have the following restrictions:
|
|
1354
|
+
# - They can only be set on user and group permissions
|
|
1355
|
+
# - The time must be in the future
|
|
1356
|
+
# - The time cannot be more than a year in the future
|
|
1205
1357
|
# Corresponds to the JSON property `expirationTime`
|
|
1206
1358
|
# @return [DateTime]
|
|
1207
1359
|
attr_accessor :expiration_time
|
|
@@ -1223,7 +1375,9 @@ module Google
|
|
|
1223
1375
|
# @return [String]
|
|
1224
1376
|
attr_accessor :photo_link
|
|
1225
1377
|
|
|
1226
|
-
# The role granted by this permission.
|
|
1378
|
+
# The role granted by this permission. While new values may be supported in the
|
|
1379
|
+
# future, the following are currently allowed:
|
|
1380
|
+
# - organizer
|
|
1227
1381
|
# - owner
|
|
1228
1382
|
# - writer
|
|
1229
1383
|
# - commenter
|
|
@@ -1232,6 +1386,13 @@ module Google
|
|
|
1232
1386
|
# @return [String]
|
|
1233
1387
|
attr_accessor :role
|
|
1234
1388
|
|
|
1389
|
+
# Details of whether the Permissions on this Team Drive item are inherited or
|
|
1390
|
+
# directly on this item. This is an output-only field which is present only for
|
|
1391
|
+
# Team Drive items.
|
|
1392
|
+
# Corresponds to the JSON property `teamDrivePermissionDetails`
|
|
1393
|
+
# @return [Array<Google::Apis::DriveV3::Permission::TeamDrivePermissionDetail>]
|
|
1394
|
+
attr_accessor :team_drive_permission_details
|
|
1395
|
+
|
|
1235
1396
|
# The type of the grantee. Valid values are:
|
|
1236
1397
|
# - user
|
|
1237
1398
|
# - group
|
|
@@ -1256,8 +1417,58 @@ module Google
|
|
|
1256
1417
|
@kind = args[:kind] if args.key?(:kind)
|
|
1257
1418
|
@photo_link = args[:photo_link] if args.key?(:photo_link)
|
|
1258
1419
|
@role = args[:role] if args.key?(:role)
|
|
1420
|
+
@team_drive_permission_details = args[:team_drive_permission_details] if args.key?(:team_drive_permission_details)
|
|
1259
1421
|
@type = args[:type] if args.key?(:type)
|
|
1260
1422
|
end
|
|
1423
|
+
|
|
1424
|
+
#
|
|
1425
|
+
class TeamDrivePermissionDetail
|
|
1426
|
+
include Google::Apis::Core::Hashable
|
|
1427
|
+
|
|
1428
|
+
# Whether this permission is inherited. This field is always populated. This is
|
|
1429
|
+
# an output-only field.
|
|
1430
|
+
# Corresponds to the JSON property `inherited`
|
|
1431
|
+
# @return [Boolean]
|
|
1432
|
+
attr_accessor :inherited
|
|
1433
|
+
alias_method :inherited?, :inherited
|
|
1434
|
+
|
|
1435
|
+
# The ID of the item from which this permission is inherited. This is an output-
|
|
1436
|
+
# only field and is only populated for members of the Team Drive.
|
|
1437
|
+
# Corresponds to the JSON property `inheritedFrom`
|
|
1438
|
+
# @return [String]
|
|
1439
|
+
attr_accessor :inherited_from
|
|
1440
|
+
|
|
1441
|
+
# The primary role for this user. While new values may be added in the future,
|
|
1442
|
+
# the following are currently possible:
|
|
1443
|
+
# - organizer
|
|
1444
|
+
# - writer
|
|
1445
|
+
# - commenter
|
|
1446
|
+
# - reader
|
|
1447
|
+
# Corresponds to the JSON property `role`
|
|
1448
|
+
# @return [String]
|
|
1449
|
+
attr_accessor :role
|
|
1450
|
+
|
|
1451
|
+
# The Team Drive permission type for this user. While new values may be added in
|
|
1452
|
+
# future, the following are currently possible:
|
|
1453
|
+
# - file
|
|
1454
|
+
# -
|
|
1455
|
+
# - member
|
|
1456
|
+
# Corresponds to the JSON property `teamDrivePermissionType`
|
|
1457
|
+
# @return [String]
|
|
1458
|
+
attr_accessor :team_drive_permission_type
|
|
1459
|
+
|
|
1460
|
+
def initialize(**args)
|
|
1461
|
+
update!(**args)
|
|
1462
|
+
end
|
|
1463
|
+
|
|
1464
|
+
# Update properties of this object
|
|
1465
|
+
def update!(**args)
|
|
1466
|
+
@inherited = args[:inherited] if args.key?(:inherited)
|
|
1467
|
+
@inherited_from = args[:inherited_from] if args.key?(:inherited_from)
|
|
1468
|
+
@role = args[:role] if args.key?(:role)
|
|
1469
|
+
@team_drive_permission_type = args[:team_drive_permission_type] if args.key?(:team_drive_permission_type)
|
|
1470
|
+
end
|
|
1471
|
+
end
|
|
1261
1472
|
end
|
|
1262
1473
|
|
|
1263
1474
|
# A list of permissions for a file.
|
|
@@ -1270,7 +1481,16 @@ module Google
|
|
|
1270
1481
|
# @return [String]
|
|
1271
1482
|
attr_accessor :kind
|
|
1272
1483
|
|
|
1273
|
-
# The
|
|
1484
|
+
# The page token for the next page of permissions. This field will be absent if
|
|
1485
|
+
# the end of the permissions list has been reached. If the token is rejected for
|
|
1486
|
+
# any reason, it should be discarded, and pagination should be restarted from
|
|
1487
|
+
# the first page of results.
|
|
1488
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
1489
|
+
# @return [String]
|
|
1490
|
+
attr_accessor :next_page_token
|
|
1491
|
+
|
|
1492
|
+
# The list of permissions. If nextPageToken is populated, then this list may be
|
|
1493
|
+
# incomplete and an additional page of results should be fetched.
|
|
1274
1494
|
# Corresponds to the JSON property `permissions`
|
|
1275
1495
|
# @return [Array<Google::Apis::DriveV3::Permission>]
|
|
1276
1496
|
attr_accessor :permissions
|
|
@@ -1282,6 +1502,7 @@ module Google
|
|
|
1282
1502
|
# Update properties of this object
|
|
1283
1503
|
def update!(**args)
|
|
1284
1504
|
@kind = args[:kind] if args.key?(:kind)
|
|
1505
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
1285
1506
|
@permissions = args[:permissions] if args.key?(:permissions)
|
|
1286
1507
|
end
|
|
1287
1508
|
end
|
|
@@ -1556,6 +1777,187 @@ module Google
|
|
|
1556
1777
|
end
|
|
1557
1778
|
end
|
|
1558
1779
|
|
|
1780
|
+
# Representation of a Team Drive.
|
|
1781
|
+
class TeamDrive
|
|
1782
|
+
include Google::Apis::Core::Hashable
|
|
1783
|
+
|
|
1784
|
+
# Capabilities the current user has on this Team Drive.
|
|
1785
|
+
# Corresponds to the JSON property `capabilities`
|
|
1786
|
+
# @return [Google::Apis::DriveV3::TeamDrive::Capabilities]
|
|
1787
|
+
attr_accessor :capabilities
|
|
1788
|
+
|
|
1789
|
+
# The ID of this Team Drive which is also the ID of the top level folder for
|
|
1790
|
+
# this Team Drive.
|
|
1791
|
+
# Corresponds to the JSON property `id`
|
|
1792
|
+
# @return [String]
|
|
1793
|
+
attr_accessor :id
|
|
1794
|
+
|
|
1795
|
+
# Identifies what kind of resource this is. Value: the fixed string "drive#
|
|
1796
|
+
# teamDrive".
|
|
1797
|
+
# Corresponds to the JSON property `kind`
|
|
1798
|
+
# @return [String]
|
|
1799
|
+
attr_accessor :kind
|
|
1800
|
+
|
|
1801
|
+
# The name of this Team Drive.
|
|
1802
|
+
# Corresponds to the JSON property `name`
|
|
1803
|
+
# @return [String]
|
|
1804
|
+
attr_accessor :name
|
|
1805
|
+
|
|
1806
|
+
def initialize(**args)
|
|
1807
|
+
update!(**args)
|
|
1808
|
+
end
|
|
1809
|
+
|
|
1810
|
+
# Update properties of this object
|
|
1811
|
+
def update!(**args)
|
|
1812
|
+
@capabilities = args[:capabilities] if args.key?(:capabilities)
|
|
1813
|
+
@id = args[:id] if args.key?(:id)
|
|
1814
|
+
@kind = args[:kind] if args.key?(:kind)
|
|
1815
|
+
@name = args[:name] if args.key?(:name)
|
|
1816
|
+
end
|
|
1817
|
+
|
|
1818
|
+
# Capabilities the current user has on this Team Drive.
|
|
1819
|
+
class Capabilities
|
|
1820
|
+
include Google::Apis::Core::Hashable
|
|
1821
|
+
|
|
1822
|
+
# Whether the current user can add children to folders in this Team Drive.
|
|
1823
|
+
# Corresponds to the JSON property `canAddChildren`
|
|
1824
|
+
# @return [Boolean]
|
|
1825
|
+
attr_accessor :can_add_children
|
|
1826
|
+
alias_method :can_add_children?, :can_add_children
|
|
1827
|
+
|
|
1828
|
+
# Whether the current user can comment on files in this Team Drive.
|
|
1829
|
+
# Corresponds to the JSON property `canComment`
|
|
1830
|
+
# @return [Boolean]
|
|
1831
|
+
attr_accessor :can_comment
|
|
1832
|
+
alias_method :can_comment?, :can_comment
|
|
1833
|
+
|
|
1834
|
+
# Whether files in this Team Drive can be copied by the current user.
|
|
1835
|
+
# Corresponds to the JSON property `canCopy`
|
|
1836
|
+
# @return [Boolean]
|
|
1837
|
+
attr_accessor :can_copy
|
|
1838
|
+
alias_method :can_copy?, :can_copy
|
|
1839
|
+
|
|
1840
|
+
# Whether this Team Drive can be deleted by the current user.
|
|
1841
|
+
# Corresponds to the JSON property `canDeleteTeamDrive`
|
|
1842
|
+
# @return [Boolean]
|
|
1843
|
+
attr_accessor :can_delete_team_drive
|
|
1844
|
+
alias_method :can_delete_team_drive?, :can_delete_team_drive
|
|
1845
|
+
|
|
1846
|
+
# Whether files in this Team Drive can be downloaded by the current user.
|
|
1847
|
+
# Corresponds to the JSON property `canDownload`
|
|
1848
|
+
# @return [Boolean]
|
|
1849
|
+
attr_accessor :can_download
|
|
1850
|
+
alias_method :can_download?, :can_download
|
|
1851
|
+
|
|
1852
|
+
# Whether files in this Team Drive can be edited by the current user.
|
|
1853
|
+
# Corresponds to the JSON property `canEdit`
|
|
1854
|
+
# @return [Boolean]
|
|
1855
|
+
attr_accessor :can_edit
|
|
1856
|
+
alias_method :can_edit?, :can_edit
|
|
1857
|
+
|
|
1858
|
+
# Whether the current user can list the children of folders in this Team Drive.
|
|
1859
|
+
# Corresponds to the JSON property `canListChildren`
|
|
1860
|
+
# @return [Boolean]
|
|
1861
|
+
attr_accessor :can_list_children
|
|
1862
|
+
alias_method :can_list_children?, :can_list_children
|
|
1863
|
+
|
|
1864
|
+
# Whether the current user can add members to this Team Drive or remove them or
|
|
1865
|
+
# change their role.
|
|
1866
|
+
# Corresponds to the JSON property `canManageMembers`
|
|
1867
|
+
# @return [Boolean]
|
|
1868
|
+
attr_accessor :can_manage_members
|
|
1869
|
+
alias_method :can_manage_members?, :can_manage_members
|
|
1870
|
+
|
|
1871
|
+
# Whether the current user has read access to the Revisions resource of files in
|
|
1872
|
+
# this Team Drive.
|
|
1873
|
+
# Corresponds to the JSON property `canReadRevisions`
|
|
1874
|
+
# @return [Boolean]
|
|
1875
|
+
attr_accessor :can_read_revisions
|
|
1876
|
+
alias_method :can_read_revisions?, :can_read_revisions
|
|
1877
|
+
|
|
1878
|
+
# Whether the current user can remove children from folders in this Team Drive.
|
|
1879
|
+
# Corresponds to the JSON property `canRemoveChildren`
|
|
1880
|
+
# @return [Boolean]
|
|
1881
|
+
attr_accessor :can_remove_children
|
|
1882
|
+
alias_method :can_remove_children?, :can_remove_children
|
|
1883
|
+
|
|
1884
|
+
# Whether files or folders in this Team Drive can be renamed by the current user.
|
|
1885
|
+
# Corresponds to the JSON property `canRename`
|
|
1886
|
+
# @return [Boolean]
|
|
1887
|
+
attr_accessor :can_rename
|
|
1888
|
+
alias_method :can_rename?, :can_rename
|
|
1889
|
+
|
|
1890
|
+
# Whether this Team Drive can be renamed by the current user.
|
|
1891
|
+
# Corresponds to the JSON property `canRenameTeamDrive`
|
|
1892
|
+
# @return [Boolean]
|
|
1893
|
+
attr_accessor :can_rename_team_drive
|
|
1894
|
+
alias_method :can_rename_team_drive?, :can_rename_team_drive
|
|
1895
|
+
|
|
1896
|
+
# Whether the current user can share files or folders in this Team Drive.
|
|
1897
|
+
# Corresponds to the JSON property `canShare`
|
|
1898
|
+
# @return [Boolean]
|
|
1899
|
+
attr_accessor :can_share
|
|
1900
|
+
alias_method :can_share?, :can_share
|
|
1901
|
+
|
|
1902
|
+
def initialize(**args)
|
|
1903
|
+
update!(**args)
|
|
1904
|
+
end
|
|
1905
|
+
|
|
1906
|
+
# Update properties of this object
|
|
1907
|
+
def update!(**args)
|
|
1908
|
+
@can_add_children = args[:can_add_children] if args.key?(:can_add_children)
|
|
1909
|
+
@can_comment = args[:can_comment] if args.key?(:can_comment)
|
|
1910
|
+
@can_copy = args[:can_copy] if args.key?(:can_copy)
|
|
1911
|
+
@can_delete_team_drive = args[:can_delete_team_drive] if args.key?(:can_delete_team_drive)
|
|
1912
|
+
@can_download = args[:can_download] if args.key?(:can_download)
|
|
1913
|
+
@can_edit = args[:can_edit] if args.key?(:can_edit)
|
|
1914
|
+
@can_list_children = args[:can_list_children] if args.key?(:can_list_children)
|
|
1915
|
+
@can_manage_members = args[:can_manage_members] if args.key?(:can_manage_members)
|
|
1916
|
+
@can_read_revisions = args[:can_read_revisions] if args.key?(:can_read_revisions)
|
|
1917
|
+
@can_remove_children = args[:can_remove_children] if args.key?(:can_remove_children)
|
|
1918
|
+
@can_rename = args[:can_rename] if args.key?(:can_rename)
|
|
1919
|
+
@can_rename_team_drive = args[:can_rename_team_drive] if args.key?(:can_rename_team_drive)
|
|
1920
|
+
@can_share = args[:can_share] if args.key?(:can_share)
|
|
1921
|
+
end
|
|
1922
|
+
end
|
|
1923
|
+
end
|
|
1924
|
+
|
|
1925
|
+
# A list of Team Drives.
|
|
1926
|
+
class TeamDriveList
|
|
1927
|
+
include Google::Apis::Core::Hashable
|
|
1928
|
+
|
|
1929
|
+
# Identifies what kind of resource this is. Value: the fixed string "drive#
|
|
1930
|
+
# teamDriveList".
|
|
1931
|
+
# Corresponds to the JSON property `kind`
|
|
1932
|
+
# @return [String]
|
|
1933
|
+
attr_accessor :kind
|
|
1934
|
+
|
|
1935
|
+
# The page token for the next page of Team Drives. This will be absent if the
|
|
1936
|
+
# end of the Team Drives list has been reached. If the token is rejected for any
|
|
1937
|
+
# reason, it should be discarded, and pagination should be restarted from the
|
|
1938
|
+
# first page of results.
|
|
1939
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
1940
|
+
# @return [String]
|
|
1941
|
+
attr_accessor :next_page_token
|
|
1942
|
+
|
|
1943
|
+
# The list of Team Drives. If nextPageToken is populated, then this list may be
|
|
1944
|
+
# incomplete and an additional page of results should be fetched.
|
|
1945
|
+
# Corresponds to the JSON property `teamDrives`
|
|
1946
|
+
# @return [Array<Google::Apis::DriveV3::TeamDrive>]
|
|
1947
|
+
attr_accessor :team_drives
|
|
1948
|
+
|
|
1949
|
+
def initialize(**args)
|
|
1950
|
+
update!(**args)
|
|
1951
|
+
end
|
|
1952
|
+
|
|
1953
|
+
# Update properties of this object
|
|
1954
|
+
def update!(**args)
|
|
1955
|
+
@kind = args[:kind] if args.key?(:kind)
|
|
1956
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
1957
|
+
@team_drives = args[:team_drives] if args.key?(:team_drives)
|
|
1958
|
+
end
|
|
1959
|
+
end
|
|
1960
|
+
|
|
1559
1961
|
# Information about a Drive user.
|
|
1560
1962
|
class User
|
|
1561
1963
|
include Google::Apis::Core::Hashable
|