google-apis-drive_v3 0.26.0 → 0.44.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +73 -0
- data/OVERVIEW.md +3 -3
- data/lib/google/apis/drive_v3/classes.rb +561 -457
- data/lib/google/apis/drive_v3/gem_version.rb +3 -3
- data/lib/google/apis/drive_v3/representations.rb +10 -0
- data/lib/google/apis/drive_v3/service.rb +293 -423
- data/lib/google/apis/drive_v3.rb +3 -4
- metadata +10 -10
@@ -38,7 +38,7 @@ module Google
|
|
38
38
|
attr_accessor :can_create_drives
|
39
39
|
alias_method :can_create_drives?, :can_create_drives
|
40
40
|
|
41
|
-
# Deprecated
|
41
|
+
# Deprecated: Use `canCreateDrives` instead.
|
42
42
|
# Corresponds to the JSON property `canCreateTeamDrives`
|
43
43
|
# @return [Boolean]
|
44
44
|
attr_accessor :can_create_team_drives
|
@@ -64,8 +64,8 @@ module Google
|
|
64
64
|
# @return [Hash<String,Array<String>>]
|
65
65
|
attr_accessor :import_formats
|
66
66
|
|
67
|
-
# Identifies what kind of resource this is. Value: the fixed string "drive#
|
68
|
-
#
|
67
|
+
# Identifies what kind of resource this is. Value: the fixed string `"drive#
|
68
|
+
# about"`.
|
69
69
|
# Corresponds to the JSON property `kind`
|
70
70
|
# @return [String]
|
71
71
|
attr_accessor :kind
|
@@ -85,7 +85,7 @@ module Google
|
|
85
85
|
# @return [Google::Apis::DriveV3::About::StorageQuota]
|
86
86
|
attr_accessor :storage_quota
|
87
87
|
|
88
|
-
# Deprecated
|
88
|
+
# Deprecated: Use `driveThemes` instead.
|
89
89
|
# Corresponds to the JSON property `teamDriveThemes`
|
90
90
|
# @return [Array<Google::Apis::DriveV3::About::TeamDriveTheme>]
|
91
91
|
attr_accessor :team_drive_themes
|
@@ -189,17 +189,17 @@ module Google
|
|
189
189
|
class TeamDriveTheme
|
190
190
|
include Google::Apis::Core::Hashable
|
191
191
|
|
192
|
-
# Deprecated
|
192
|
+
# Deprecated: Use `driveThemes/backgroundImageLink` instead.
|
193
193
|
# Corresponds to the JSON property `backgroundImageLink`
|
194
194
|
# @return [String]
|
195
195
|
attr_accessor :background_image_link
|
196
196
|
|
197
|
-
# Deprecated
|
197
|
+
# Deprecated: Use `driveThemes/colorRgb` instead.
|
198
198
|
# Corresponds to the JSON property `colorRgb`
|
199
199
|
# @return [String]
|
200
200
|
attr_accessor :color_rgb
|
201
201
|
|
202
|
-
# Deprecated
|
202
|
+
# Deprecated: Use `driveThemes/id` instead.
|
203
203
|
# Corresponds to the JSON property `id`
|
204
204
|
# @return [String]
|
205
205
|
attr_accessor :id
|
@@ -221,12 +221,14 @@ module Google
|
|
221
221
|
class Change
|
222
222
|
include Google::Apis::Core::Hashable
|
223
223
|
|
224
|
-
# The type of the change. Possible values are file and drive
|
224
|
+
# The type of the change. Possible values are `file` and `drive`.
|
225
225
|
# Corresponds to the JSON property `changeType`
|
226
226
|
# @return [String]
|
227
227
|
attr_accessor :change_type
|
228
228
|
|
229
|
-
# Representation of a shared drive.
|
229
|
+
# Representation of a shared drive. Some resource methods (such as `drives.
|
230
|
+
# update`) require a `driveId`. Use the `drives.list` method to retrieve the ID
|
231
|
+
# for a shared drive.
|
230
232
|
# Corresponds to the JSON property `drive`
|
231
233
|
# @return [Google::Apis::DriveV3::Drive]
|
232
234
|
attr_accessor :drive
|
@@ -236,7 +238,8 @@ module Google
|
|
236
238
|
# @return [String]
|
237
239
|
attr_accessor :drive_id
|
238
240
|
|
239
|
-
# The metadata for a file.
|
241
|
+
# The metadata for a file. Some resource methods (such as `files.update`)
|
242
|
+
# require a `fileId`. Use the `files.list` method to retrieve the ID for a file.
|
240
243
|
# Corresponds to the JSON property `file`
|
241
244
|
# @return [Google::Apis::DriveV3::File]
|
242
245
|
attr_accessor :file
|
@@ -246,8 +249,8 @@ module Google
|
|
246
249
|
# @return [String]
|
247
250
|
attr_accessor :file_id
|
248
251
|
|
249
|
-
# Identifies what kind of resource this is. Value: the fixed string "drive#
|
250
|
-
# change"
|
252
|
+
# Identifies what kind of resource this is. Value: the fixed string `"drive#
|
253
|
+
# change"`.
|
251
254
|
# Corresponds to the JSON property `kind`
|
252
255
|
# @return [String]
|
253
256
|
attr_accessor :kind
|
@@ -264,7 +267,7 @@ module Google
|
|
264
267
|
# @return [Google::Apis::DriveV3::TeamDrive]
|
265
268
|
attr_accessor :team_drive
|
266
269
|
|
267
|
-
# Deprecated
|
270
|
+
# Deprecated: Use `driveId` instead.
|
268
271
|
# Corresponds to the JSON property `teamDriveId`
|
269
272
|
# @return [String]
|
270
273
|
attr_accessor :team_drive_id
|
@@ -274,7 +277,7 @@ module Google
|
|
274
277
|
# @return [DateTime]
|
275
278
|
attr_accessor :time
|
276
279
|
|
277
|
-
# Deprecated
|
280
|
+
# Deprecated: Use `changeType` instead.
|
278
281
|
# Corresponds to the JSON property `type`
|
279
282
|
# @return [String]
|
280
283
|
attr_accessor :type
|
@@ -309,22 +312,21 @@ module Google
|
|
309
312
|
# @return [Array<Google::Apis::DriveV3::Change>]
|
310
313
|
attr_accessor :changes
|
311
314
|
|
312
|
-
# Identifies what kind of resource this is. Value: the fixed string "drive#
|
313
|
-
# changeList"
|
315
|
+
# Identifies what kind of resource this is. Value: the fixed string `"drive#
|
316
|
+
# changeList"`.
|
314
317
|
# Corresponds to the JSON property `kind`
|
315
318
|
# @return [String]
|
316
319
|
attr_accessor :kind
|
317
320
|
|
318
321
|
# The starting page token for future changes. This will be present only if the
|
319
|
-
# end of the current changes list has been reached.
|
322
|
+
# end of the current changes list has been reached. The page token doesn't
|
323
|
+
# expire.
|
320
324
|
# Corresponds to the JSON property `newStartPageToken`
|
321
325
|
# @return [String]
|
322
326
|
attr_accessor :new_start_page_token
|
323
327
|
|
324
328
|
# The page token for the next page of changes. This will be absent if the end of
|
325
|
-
# the changes list has been reached.
|
326
|
-
# should be discarded, and pagination should be restarted from the first page of
|
327
|
-
# results.
|
329
|
+
# the changes list has been reached. The page token doesn't expire.
|
328
330
|
# Corresponds to the JSON property `nextPageToken`
|
329
331
|
# @return [String]
|
330
332
|
attr_accessor :next_page_token
|
@@ -342,7 +344,7 @@ module Google
|
|
342
344
|
end
|
343
345
|
end
|
344
346
|
|
345
|
-
#
|
347
|
+
# A notification channel used to watch for resource changes.
|
346
348
|
class Channel
|
347
349
|
include Google::Apis::Core::Hashable
|
348
350
|
|
@@ -363,7 +365,7 @@ module Google
|
|
363
365
|
attr_accessor :id
|
364
366
|
|
365
367
|
# Identifies this as a notification channel used to watch for changes to a
|
366
|
-
# resource, which is
|
368
|
+
# resource, which is `api#channel`.
|
367
369
|
# Corresponds to the JSON property `kind`
|
368
370
|
# @return [String]
|
369
371
|
attr_accessor :kind
|
@@ -396,9 +398,7 @@ module Google
|
|
396
398
|
# @return [String]
|
397
399
|
attr_accessor :token
|
398
400
|
|
399
|
-
# The type of delivery mechanism used for this channel.
|
400
|
-
# web_hook" (or "webhook"). Both values refer to a channel where Http requests
|
401
|
-
# are used to deliver messages.
|
401
|
+
# The type of delivery mechanism used for this channel.
|
402
402
|
# Corresponds to the JSON property `type`
|
403
403
|
# @return [String]
|
404
404
|
attr_accessor :type
|
@@ -422,12 +422,15 @@ module Google
|
|
422
422
|
end
|
423
423
|
end
|
424
424
|
|
425
|
-
# A comment on a file.
|
425
|
+
# A comment on a file. Some resource methods (such as `comments.update`) require
|
426
|
+
# a `commentId`. Use the `comments.list` method to retrieve the ID for a comment
|
427
|
+
# in a file.
|
426
428
|
class Comment
|
427
429
|
include Google::Apis::Core::Hashable
|
428
430
|
|
429
431
|
# A region of the document represented as a JSON string. For details on defining
|
430
|
-
# anchor properties, refer to
|
432
|
+
# anchor properties, refer to [Manage comments and replies](https://developers.
|
433
|
+
# google.com/drive/api/v3/manage-comments).
|
431
434
|
# Corresponds to the JSON property `anchor`
|
432
435
|
# @return [String]
|
433
436
|
attr_accessor :anchor
|
@@ -438,7 +441,7 @@ module Google
|
|
438
441
|
attr_accessor :author
|
439
442
|
|
440
443
|
# The plain text content of the comment. This field is used for setting the
|
441
|
-
# content, while htmlContent should be displayed.
|
444
|
+
# content, while `htmlContent` should be displayed.
|
442
445
|
# Corresponds to the JSON property `content`
|
443
446
|
# @return [String]
|
444
447
|
attr_accessor :content
|
@@ -448,24 +451,25 @@ module Google
|
|
448
451
|
# @return [DateTime]
|
449
452
|
attr_accessor :created_time
|
450
453
|
|
451
|
-
# Whether the comment has been deleted. A deleted comment has no
|
454
|
+
# Output only. Whether the comment has been deleted. A deleted comment has no
|
455
|
+
# content.
|
452
456
|
# Corresponds to the JSON property `deleted`
|
453
457
|
# @return [Boolean]
|
454
458
|
attr_accessor :deleted
|
455
459
|
alias_method :deleted?, :deleted
|
456
460
|
|
457
|
-
# The content of the comment with HTML formatting.
|
461
|
+
# Output only. The content of the comment with HTML formatting.
|
458
462
|
# Corresponds to the JSON property `htmlContent`
|
459
463
|
# @return [String]
|
460
464
|
attr_accessor :html_content
|
461
465
|
|
462
|
-
# The ID of the comment.
|
466
|
+
# Output only. The ID of the comment.
|
463
467
|
# Corresponds to the JSON property `id`
|
464
468
|
# @return [String]
|
465
469
|
attr_accessor :id
|
466
470
|
|
467
|
-
# Identifies what kind of resource this is. Value: the fixed string
|
468
|
-
# comment"
|
471
|
+
# Output only. Identifies what kind of resource this is. Value: the fixed string
|
472
|
+
# `"drive#comment"`.
|
469
473
|
# Corresponds to the JSON property `kind`
|
470
474
|
# @return [String]
|
471
475
|
attr_accessor :kind
|
@@ -483,12 +487,12 @@ module Google
|
|
483
487
|
# @return [Google::Apis::DriveV3::Comment::QuotedFileContent]
|
484
488
|
attr_accessor :quoted_file_content
|
485
489
|
|
486
|
-
# The full list of replies to the comment in chronological order.
|
490
|
+
# Output only. The full list of replies to the comment in chronological order.
|
487
491
|
# Corresponds to the JSON property `replies`
|
488
492
|
# @return [Array<Google::Apis::DriveV3::Reply>]
|
489
493
|
attr_accessor :replies
|
490
494
|
|
491
|
-
# Whether the comment has been resolved by one of its replies.
|
495
|
+
# Output only. Whether the comment has been resolved by one of its replies.
|
492
496
|
# Corresponds to the JSON property `resolved`
|
493
497
|
# @return [Boolean]
|
494
498
|
attr_accessor :resolved
|
@@ -553,8 +557,8 @@ module Google
|
|
553
557
|
# @return [Array<Google::Apis::DriveV3::Comment>]
|
554
558
|
attr_accessor :comments
|
555
559
|
|
556
|
-
# Identifies what kind of resource this is. Value: the fixed string "drive#
|
557
|
-
# commentList"
|
560
|
+
# Identifies what kind of resource this is. Value: the fixed string `"drive#
|
561
|
+
# commentList"`.
|
558
562
|
# Corresponds to the JSON property `kind`
|
559
563
|
# @return [String]
|
560
564
|
attr_accessor :kind
|
@@ -562,7 +566,8 @@ module Google
|
|
562
566
|
# The page token for the next page of comments. This will be absent if the end
|
563
567
|
# of the comments list has been reached. If the token is rejected for any reason,
|
564
568
|
# it should be discarded, and pagination should be restarted from the first
|
565
|
-
# page of results.
|
569
|
+
# page of results. The page token is typically valid for several hours. However,
|
570
|
+
# if new items are added or removed, your expected results might differ.
|
566
571
|
# Corresponds to the JSON property `nextPageToken`
|
567
572
|
# @return [String]
|
568
573
|
attr_accessor :next_page_token
|
@@ -583,6 +588,14 @@ module Google
|
|
583
588
|
class ContentRestriction
|
584
589
|
include Google::Apis::Core::Hashable
|
585
590
|
|
591
|
+
# Whether the content restriction can only be modified or removed by a user who
|
592
|
+
# owns the file. For files in shared drives, any user with `organizer`
|
593
|
+
# capabilities can modify or remove this content restriction.
|
594
|
+
# Corresponds to the JSON property `ownerRestricted`
|
595
|
+
# @return [Boolean]
|
596
|
+
attr_accessor :owner_restricted
|
597
|
+
alias_method :owner_restricted?, :owner_restricted
|
598
|
+
|
586
599
|
# Whether the content of the file is read-only. If a file is read-only, a new
|
587
600
|
# revision of the file may not be added, comments may not be added or modified,
|
588
601
|
# and the title of the file may not be modified.
|
@@ -592,7 +605,7 @@ module Google
|
|
592
605
|
alias_method :read_only?, :read_only
|
593
606
|
|
594
607
|
# Reason for why the content of the file is restricted. This is only mutable on
|
595
|
-
# requests that also set readOnly=true
|
608
|
+
# requests that also set `readOnly=true`.
|
596
609
|
# Corresponds to the JSON property `reason`
|
597
610
|
# @return [String]
|
598
611
|
attr_accessor :reason
|
@@ -608,8 +621,8 @@ module Google
|
|
608
621
|
# @return [DateTime]
|
609
622
|
attr_accessor :restriction_time
|
610
623
|
|
611
|
-
# The type of the content restriction. Currently the only possible
|
612
|
-
# globalContentRestriction
|
624
|
+
# Output only. The type of the content restriction. Currently the only possible
|
625
|
+
# value is `globalContentRestriction`.
|
613
626
|
# Corresponds to the JSON property `type`
|
614
627
|
# @return [String]
|
615
628
|
attr_accessor :type
|
@@ -620,6 +633,7 @@ module Google
|
|
620
633
|
|
621
634
|
# Update properties of this object
|
622
635
|
def update!(**args)
|
636
|
+
@owner_restricted = args[:owner_restricted] if args.key?(:owner_restricted)
|
623
637
|
@read_only = args[:read_only] if args.key?(:read_only)
|
624
638
|
@reason = args[:reason] if args.key?(:reason)
|
625
639
|
@restricting_user = args[:restricting_user] if args.key?(:restricting_user)
|
@@ -628,30 +642,32 @@ module Google
|
|
628
642
|
end
|
629
643
|
end
|
630
644
|
|
631
|
-
# Representation of a shared drive.
|
645
|
+
# Representation of a shared drive. Some resource methods (such as `drives.
|
646
|
+
# update`) require a `driveId`. Use the `drives.list` method to retrieve the ID
|
647
|
+
# for a shared drive.
|
632
648
|
class Drive
|
633
649
|
include Google::Apis::Core::Hashable
|
634
650
|
|
635
651
|
# An image file and cropping parameters from which a background image for this
|
636
|
-
# shared drive is set. This is a write only field; it can only be set on drive.
|
637
|
-
# drives.update requests that don't set themeId
|
638
|
-
# the backgroundImageFile must be set.
|
652
|
+
# shared drive is set. This is a write only field; it can only be set on `drive.
|
653
|
+
# drives.update` requests that don't set `themeId`. When specified, all fields
|
654
|
+
# of the `backgroundImageFile` must be set.
|
639
655
|
# Corresponds to the JSON property `backgroundImageFile`
|
640
656
|
# @return [Google::Apis::DriveV3::Drive::BackgroundImageFile]
|
641
657
|
attr_accessor :background_image_file
|
642
658
|
|
643
|
-
# A short-lived link to this shared drive's background image.
|
659
|
+
# Output only. A short-lived link to this shared drive's background image.
|
644
660
|
# Corresponds to the JSON property `backgroundImageLink`
|
645
661
|
# @return [String]
|
646
662
|
attr_accessor :background_image_link
|
647
663
|
|
648
|
-
# Capabilities the current user has on this shared drive.
|
664
|
+
# Output only. Capabilities the current user has on this shared drive.
|
649
665
|
# Corresponds to the JSON property `capabilities`
|
650
666
|
# @return [Google::Apis::DriveV3::Drive::Capabilities]
|
651
667
|
attr_accessor :capabilities
|
652
668
|
|
653
|
-
# The color of this shared drive as an RGB hex string. It can only be set on a
|
654
|
-
# drive.drives.update request that does not set themeId
|
669
|
+
# The color of this shared drive as an RGB hex string. It can only be set on a `
|
670
|
+
# drive.drives.update` request that does not set `themeId`.
|
655
671
|
# Corresponds to the JSON property `colorRgb`
|
656
672
|
# @return [String]
|
657
673
|
attr_accessor :color_rgb
|
@@ -667,14 +683,14 @@ module Google
|
|
667
683
|
attr_accessor :hidden
|
668
684
|
alias_method :hidden?, :hidden
|
669
685
|
|
670
|
-
# The ID of this shared drive which is also the ID of the top level
|
671
|
-
# this shared drive.
|
686
|
+
# Output only. The ID of this shared drive which is also the ID of the top level
|
687
|
+
# folder of this shared drive.
|
672
688
|
# Corresponds to the JSON property `id`
|
673
689
|
# @return [String]
|
674
690
|
attr_accessor :id
|
675
691
|
|
676
|
-
# Identifies what kind of resource this is. Value: the fixed string
|
677
|
-
#
|
692
|
+
# Output only. Identifies what kind of resource this is. Value: the fixed string
|
693
|
+
# `"drive#drive"`.
|
678
694
|
# Corresponds to the JSON property `kind`
|
679
695
|
# @return [String]
|
680
696
|
attr_accessor :kind
|
@@ -684,8 +700,9 @@ module Google
|
|
684
700
|
# @return [String]
|
685
701
|
attr_accessor :name
|
686
702
|
|
687
|
-
# The organizational unit of this shared drive. This field is only
|
688
|
-
# drives.list responses when the useDomainAdminAccess parameter
|
703
|
+
# Output only. The organizational unit of this shared drive. This field is only
|
704
|
+
# populated on `drives.list` responses when the `useDomainAdminAccess` parameter
|
705
|
+
# is set to `true`.
|
689
706
|
# Corresponds to the JSON property `orgUnitId`
|
690
707
|
# @return [String]
|
691
708
|
attr_accessor :org_unit_id
|
@@ -697,10 +714,11 @@ module Google
|
|
697
714
|
attr_accessor :restrictions
|
698
715
|
|
699
716
|
# The ID of the theme from which the background image and color will be set. The
|
700
|
-
# set of possible driveThemes can be retrieved from a drive.about.get
|
701
|
-
# When not specified on a drive.drives.create request, a random
|
702
|
-
# from which the background image and color are set. This is a
|
703
|
-
# it can only be set on requests that don't set colorRgb or
|
717
|
+
# set of possible `driveThemes` can be retrieved from a `drive.about.get`
|
718
|
+
# response. When not specified on a `drive.drives.create` request, a random
|
719
|
+
# theme is chosen from which the background image and color are set. This is a
|
720
|
+
# write-only field; it can only be set on requests that don't set `colorRgb` or `
|
721
|
+
# backgroundImageFile`.
|
704
722
|
# Corresponds to the JSON property `themeId`
|
705
723
|
# @return [String]
|
706
724
|
attr_accessor :theme_id
|
@@ -726,9 +744,9 @@ module Google
|
|
726
744
|
end
|
727
745
|
|
728
746
|
# An image file and cropping parameters from which a background image for this
|
729
|
-
# shared drive is set. This is a write only field; it can only be set on drive.
|
730
|
-
# drives.update requests that don't set themeId
|
731
|
-
# the backgroundImageFile must be set.
|
747
|
+
# shared drive is set. This is a write only field; it can only be set on `drive.
|
748
|
+
# drives.update` requests that don't set `themeId`. When specified, all fields
|
749
|
+
# of the `backgroundImageFile` must be set.
|
732
750
|
class BackgroundImageFile
|
733
751
|
include Google::Apis::Core::Hashable
|
734
752
|
|
@@ -775,126 +793,142 @@ module Google
|
|
775
793
|
end
|
776
794
|
end
|
777
795
|
|
778
|
-
# Capabilities the current user has on this shared drive.
|
796
|
+
# Output only. Capabilities the current user has on this shared drive.
|
779
797
|
class Capabilities
|
780
798
|
include Google::Apis::Core::Hashable
|
781
799
|
|
782
|
-
# Whether the current user can add children to folders in this
|
800
|
+
# Output only. Whether the current user can add children to folders in this
|
801
|
+
# shared drive.
|
783
802
|
# Corresponds to the JSON property `canAddChildren`
|
784
803
|
# @return [Boolean]
|
785
804
|
attr_accessor :can_add_children
|
786
805
|
alias_method :can_add_children?, :can_add_children
|
787
806
|
|
788
|
-
# Whether the current user can change the
|
789
|
-
# restriction of this shared drive.
|
807
|
+
# Output only. Whether the current user can change the `
|
808
|
+
# copyRequiresWriterPermission` restriction of this shared drive.
|
790
809
|
# Corresponds to the JSON property `canChangeCopyRequiresWriterPermissionRestriction`
|
791
810
|
# @return [Boolean]
|
792
811
|
attr_accessor :can_change_copy_requires_writer_permission_restriction
|
793
812
|
alias_method :can_change_copy_requires_writer_permission_restriction?, :can_change_copy_requires_writer_permission_restriction
|
794
813
|
|
795
|
-
# Whether the current user can change the domainUsersOnly
|
796
|
-
# shared drive.
|
814
|
+
# Output only. Whether the current user can change the `domainUsersOnly`
|
815
|
+
# restriction of this shared drive.
|
797
816
|
# Corresponds to the JSON property `canChangeDomainUsersOnlyRestriction`
|
798
817
|
# @return [Boolean]
|
799
818
|
attr_accessor :can_change_domain_users_only_restriction
|
800
819
|
alias_method :can_change_domain_users_only_restriction?, :can_change_domain_users_only_restriction
|
801
820
|
|
802
|
-
# Whether the current user can change the background of this shared
|
821
|
+
# Output only. Whether the current user can change the background of this shared
|
822
|
+
# drive.
|
803
823
|
# Corresponds to the JSON property `canChangeDriveBackground`
|
804
824
|
# @return [Boolean]
|
805
825
|
attr_accessor :can_change_drive_background
|
806
826
|
alias_method :can_change_drive_background?, :can_change_drive_background
|
807
827
|
|
808
|
-
# Whether the current user can change the driveMembersOnly
|
809
|
-
# shared drive.
|
828
|
+
# Output only. Whether the current user can change the `driveMembersOnly`
|
829
|
+
# restriction of this shared drive.
|
810
830
|
# Corresponds to the JSON property `canChangeDriveMembersOnlyRestriction`
|
811
831
|
# @return [Boolean]
|
812
832
|
attr_accessor :can_change_drive_members_only_restriction
|
813
833
|
alias_method :can_change_drive_members_only_restriction?, :can_change_drive_members_only_restriction
|
814
834
|
|
815
|
-
# Whether the current user can
|
835
|
+
# Output only. Whether the current user can change the `
|
836
|
+
# sharingFoldersRequiresOrganizerPermission` restriction of this shared drive.
|
837
|
+
# Corresponds to the JSON property `canChangeSharingFoldersRequiresOrganizerPermissionRestriction`
|
838
|
+
# @return [Boolean]
|
839
|
+
attr_accessor :can_change_sharing_folders_requires_organizer_permission_restriction
|
840
|
+
alias_method :can_change_sharing_folders_requires_organizer_permission_restriction?, :can_change_sharing_folders_requires_organizer_permission_restriction
|
841
|
+
|
842
|
+
# Output only. Whether the current user can comment on files in this shared
|
843
|
+
# drive.
|
816
844
|
# Corresponds to the JSON property `canComment`
|
817
845
|
# @return [Boolean]
|
818
846
|
attr_accessor :can_comment
|
819
847
|
alias_method :can_comment?, :can_comment
|
820
848
|
|
821
|
-
# Whether the current user can copy files in this shared drive.
|
849
|
+
# Output only. Whether the current user can copy files in this shared drive.
|
822
850
|
# Corresponds to the JSON property `canCopy`
|
823
851
|
# @return [Boolean]
|
824
852
|
attr_accessor :can_copy
|
825
853
|
alias_method :can_copy?, :can_copy
|
826
854
|
|
827
|
-
# Whether the current user can delete children from folders in this
|
855
|
+
# Output only. Whether the current user can delete children from folders in this
|
856
|
+
# shared drive.
|
828
857
|
# Corresponds to the JSON property `canDeleteChildren`
|
829
858
|
# @return [Boolean]
|
830
859
|
attr_accessor :can_delete_children
|
831
860
|
alias_method :can_delete_children?, :can_delete_children
|
832
861
|
|
833
|
-
# Whether the current user can delete this shared drive. Attempting
|
834
|
-
# the shared drive may still fail if there are untrashed items inside
|
835
|
-
# drive.
|
862
|
+
# Output only. Whether the current user can delete this shared drive. Attempting
|
863
|
+
# to delete the shared drive may still fail if there are untrashed items inside
|
864
|
+
# the shared drive.
|
836
865
|
# Corresponds to the JSON property `canDeleteDrive`
|
837
866
|
# @return [Boolean]
|
838
867
|
attr_accessor :can_delete_drive
|
839
868
|
alias_method :can_delete_drive?, :can_delete_drive
|
840
869
|
|
841
|
-
# Whether the current user can download files in this shared drive.
|
870
|
+
# Output only. Whether the current user can download files in this shared drive.
|
842
871
|
# Corresponds to the JSON property `canDownload`
|
843
872
|
# @return [Boolean]
|
844
873
|
attr_accessor :can_download
|
845
874
|
alias_method :can_download?, :can_download
|
846
875
|
|
847
|
-
# Whether the current user can edit files in this shared drive
|
876
|
+
# Output only. Whether the current user can edit files in this shared drive
|
848
877
|
# Corresponds to the JSON property `canEdit`
|
849
878
|
# @return [Boolean]
|
850
879
|
attr_accessor :can_edit
|
851
880
|
alias_method :can_edit?, :can_edit
|
852
881
|
|
853
|
-
# Whether the current user can list the children of folders in this
|
882
|
+
# Output only. Whether the current user can list the children of folders in this
|
883
|
+
# shared drive.
|
854
884
|
# Corresponds to the JSON property `canListChildren`
|
855
885
|
# @return [Boolean]
|
856
886
|
attr_accessor :can_list_children
|
857
887
|
alias_method :can_list_children?, :can_list_children
|
858
888
|
|
859
|
-
# Whether the current user can add members to this shared drive or
|
860
|
-
# or change their role.
|
889
|
+
# Output only. Whether the current user can add members to this shared drive or
|
890
|
+
# remove them or change their role.
|
861
891
|
# Corresponds to the JSON property `canManageMembers`
|
862
892
|
# @return [Boolean]
|
863
893
|
attr_accessor :can_manage_members
|
864
894
|
alias_method :can_manage_members?, :can_manage_members
|
865
895
|
|
866
|
-
# Whether the current user can read the revisions resource of files
|
867
|
-
# shared drive.
|
896
|
+
# Output only. Whether the current user can read the revisions resource of files
|
897
|
+
# in this shared drive.
|
868
898
|
# Corresponds to the JSON property `canReadRevisions`
|
869
899
|
# @return [Boolean]
|
870
900
|
attr_accessor :can_read_revisions
|
871
901
|
alias_method :can_read_revisions?, :can_read_revisions
|
872
902
|
|
873
|
-
# Whether the current user can rename files or folders in this
|
903
|
+
# Output only. Whether the current user can rename files or folders in this
|
904
|
+
# shared drive.
|
874
905
|
# Corresponds to the JSON property `canRename`
|
875
906
|
# @return [Boolean]
|
876
907
|
attr_accessor :can_rename
|
877
908
|
alias_method :can_rename?, :can_rename
|
878
909
|
|
879
|
-
# Whether the current user can rename this shared drive.
|
910
|
+
# Output only. Whether the current user can rename this shared drive.
|
880
911
|
# Corresponds to the JSON property `canRenameDrive`
|
881
912
|
# @return [Boolean]
|
882
913
|
attr_accessor :can_rename_drive
|
883
914
|
alias_method :can_rename_drive?, :can_rename_drive
|
884
915
|
|
885
|
-
# Whether the current user can reset the shared drive restrictions
|
916
|
+
# Output only. Whether the current user can reset the shared drive restrictions
|
917
|
+
# to defaults.
|
886
918
|
# Corresponds to the JSON property `canResetDriveRestrictions`
|
887
919
|
# @return [Boolean]
|
888
920
|
attr_accessor :can_reset_drive_restrictions
|
889
921
|
alias_method :can_reset_drive_restrictions?, :can_reset_drive_restrictions
|
890
922
|
|
891
|
-
# Whether the current user can share files or folders in this
|
923
|
+
# Output only. Whether the current user can share files or folders in this
|
924
|
+
# shared drive.
|
892
925
|
# Corresponds to the JSON property `canShare`
|
893
926
|
# @return [Boolean]
|
894
927
|
attr_accessor :can_share
|
895
928
|
alias_method :can_share?, :can_share
|
896
929
|
|
897
|
-
# Whether the current user can trash children from folders in this
|
930
|
+
# Output only. Whether the current user can trash children from folders in this
|
931
|
+
# shared drive.
|
898
932
|
# Corresponds to the JSON property `canTrashChildren`
|
899
933
|
# @return [Boolean]
|
900
934
|
attr_accessor :can_trash_children
|
@@ -911,6 +945,7 @@ module Google
|
|
911
945
|
@can_change_domain_users_only_restriction = args[:can_change_domain_users_only_restriction] if args.key?(:can_change_domain_users_only_restriction)
|
912
946
|
@can_change_drive_background = args[:can_change_drive_background] if args.key?(:can_change_drive_background)
|
913
947
|
@can_change_drive_members_only_restriction = args[:can_change_drive_members_only_restriction] if args.key?(:can_change_drive_members_only_restriction)
|
948
|
+
@can_change_sharing_folders_requires_organizer_permission_restriction = args[:can_change_sharing_folders_requires_organizer_permission_restriction] if args.key?(:can_change_sharing_folders_requires_organizer_permission_restriction)
|
914
949
|
@can_comment = args[:can_comment] if args.key?(:can_comment)
|
915
950
|
@can_copy = args[:can_copy] if args.key?(:can_copy)
|
916
951
|
@can_delete_children = args[:can_delete_children] if args.key?(:can_delete_children)
|
@@ -942,7 +977,7 @@ module Google
|
|
942
977
|
|
943
978
|
# Whether the options to copy, print, or download files inside this shared drive,
|
944
979
|
# should be disabled for readers and commenters. When this restriction is set
|
945
|
-
# to true
|
980
|
+
# to `true`, it will override the similarly named field to `true` for any file
|
946
981
|
# inside this shared drive.
|
947
982
|
# Corresponds to the JSON property `copyRequiresWriterPermission`
|
948
983
|
# @return [Boolean]
|
@@ -964,6 +999,13 @@ module Google
|
|
964
999
|
attr_accessor :drive_members_only
|
965
1000
|
alias_method :drive_members_only?, :drive_members_only
|
966
1001
|
|
1002
|
+
# If true, only users with the organizer role can share folders. If false, users
|
1003
|
+
# with either the organizer role or the file organizer role can share folders.
|
1004
|
+
# Corresponds to the JSON property `sharingFoldersRequiresOrganizerPermission`
|
1005
|
+
# @return [Boolean]
|
1006
|
+
attr_accessor :sharing_folders_requires_organizer_permission
|
1007
|
+
alias_method :sharing_folders_requires_organizer_permission?, :sharing_folders_requires_organizer_permission
|
1008
|
+
|
967
1009
|
def initialize(**args)
|
968
1010
|
update!(**args)
|
969
1011
|
end
|
@@ -974,6 +1016,7 @@ module Google
|
|
974
1016
|
@copy_requires_writer_permission = args[:copy_requires_writer_permission] if args.key?(:copy_requires_writer_permission)
|
975
1017
|
@domain_users_only = args[:domain_users_only] if args.key?(:domain_users_only)
|
976
1018
|
@drive_members_only = args[:drive_members_only] if args.key?(:drive_members_only)
|
1019
|
+
@sharing_folders_requires_organizer_permission = args[:sharing_folders_requires_organizer_permission] if args.key?(:sharing_folders_requires_organizer_permission)
|
977
1020
|
end
|
978
1021
|
end
|
979
1022
|
end
|
@@ -988,8 +1031,8 @@ module Google
|
|
988
1031
|
# @return [Array<Google::Apis::DriveV3::Drive>]
|
989
1032
|
attr_accessor :drives
|
990
1033
|
|
991
|
-
# Identifies what kind of resource this is. Value: the fixed string "drive#
|
992
|
-
# driveList"
|
1034
|
+
# Identifies what kind of resource this is. Value: the fixed string `"drive#
|
1035
|
+
# driveList"`.
|
993
1036
|
# Corresponds to the JSON property `kind`
|
994
1037
|
# @return [String]
|
995
1038
|
attr_accessor :kind
|
@@ -997,7 +1040,8 @@ module Google
|
|
997
1040
|
# The page token for the next page of shared drives. This will be absent if the
|
998
1041
|
# end of the list has been reached. If the token is rejected for any reason, it
|
999
1042
|
# should be discarded, and pagination should be restarted from the first page of
|
1000
|
-
# results.
|
1043
|
+
# results. The page token is typically valid for several hours. However, if new
|
1044
|
+
# items are added or removed, your expected results might differ.
|
1001
1045
|
# Corresponds to the JSON property `nextPageToken`
|
1002
1046
|
# @return [String]
|
1003
1047
|
attr_accessor :next_page_token
|
@@ -1014,7 +1058,8 @@ module Google
|
|
1014
1058
|
end
|
1015
1059
|
end
|
1016
1060
|
|
1017
|
-
# The metadata for a file.
|
1061
|
+
# The metadata for a file. Some resource methods (such as `files.update`)
|
1062
|
+
# require a `fileId`. Use the `files.list` method to retrieve the ID for a file.
|
1018
1063
|
class File
|
1019
1064
|
include Google::Apis::Core::Hashable
|
1020
1065
|
|
@@ -1028,8 +1073,8 @@ module Google
|
|
1028
1073
|
# @return [Hash<String,String>]
|
1029
1074
|
attr_accessor :app_properties
|
1030
1075
|
|
1031
|
-
# Capabilities the current user has on this file. Each capability
|
1032
|
-
# a fine-grained action that a user may take.
|
1076
|
+
# Output only. Capabilities the current user has on this file. Each capability
|
1077
|
+
# corresponds to a fine-grained action that a user may take.
|
1033
1078
|
# Corresponds to the JSON property `capabilities`
|
1034
1079
|
# @return [Google::Apis::DriveV3::File::Capabilities]
|
1035
1080
|
attr_accessor :capabilities
|
@@ -1063,70 +1108,69 @@ module Google
|
|
1063
1108
|
# @return [String]
|
1064
1109
|
attr_accessor :description
|
1065
1110
|
|
1066
|
-
# ID of the shared drive the file resides in. Only populated for
|
1067
|
-
# drives.
|
1111
|
+
# Output only. ID of the shared drive the file resides in. Only populated for
|
1112
|
+
# items in shared drives.
|
1068
1113
|
# Corresponds to the JSON property `driveId`
|
1069
1114
|
# @return [String]
|
1070
1115
|
attr_accessor :drive_id
|
1071
1116
|
|
1072
|
-
# Whether the file has been explicitly trashed, as opposed to
|
1073
|
-
# trashed from a parent folder.
|
1117
|
+
# Output only. Whether the file has been explicitly trashed, as opposed to
|
1118
|
+
# recursively trashed from a parent folder.
|
1074
1119
|
# Corresponds to the JSON property `explicitlyTrashed`
|
1075
1120
|
# @return [Boolean]
|
1076
1121
|
attr_accessor :explicitly_trashed
|
1077
1122
|
alias_method :explicitly_trashed?, :explicitly_trashed
|
1078
1123
|
|
1079
|
-
# Links for exporting Docs Editors files to specific formats.
|
1124
|
+
# Output only. Links for exporting Docs Editors files to specific formats.
|
1080
1125
|
# Corresponds to the JSON property `exportLinks`
|
1081
1126
|
# @return [Hash<String,String>]
|
1082
1127
|
attr_accessor :export_links
|
1083
1128
|
|
1084
|
-
# The final component of fullFileExtension
|
1085
|
-
# with binary content in Google Drive.
|
1129
|
+
# Output only. The final component of `fullFileExtension`. This is only
|
1130
|
+
# available for files with binary content in Google Drive.
|
1086
1131
|
# Corresponds to the JSON property `fileExtension`
|
1087
1132
|
# @return [String]
|
1088
1133
|
attr_accessor :file_extension
|
1089
1134
|
|
1090
|
-
# The color for a folder or shortcut to a folder as an RGB hex string. The
|
1091
|
-
# supported colors are published in the folderColorPalette field of the About
|
1092
|
-
# resource.
|
1093
|
-
#
|
1094
|
-
# used instead.
|
1135
|
+
# The color for a folder or a shortcut to a folder as an RGB hex string. The
|
1136
|
+
# supported colors are published in the `folderColorPalette` field of the About
|
1137
|
+
# resource. If an unsupported color is specified, the closest color in the
|
1138
|
+
# palette is used instead.
|
1095
1139
|
# Corresponds to the JSON property `folderColorRgb`
|
1096
1140
|
# @return [String]
|
1097
1141
|
attr_accessor :folder_color_rgb
|
1098
1142
|
|
1099
|
-
# The full file extension extracted from the name field. May
|
1100
|
-
# concatenated extensions, such as "tar.gz". This is only
|
1101
|
-
# with binary content in Google Drive.
|
1102
|
-
#
|
1103
|
-
#
|
1143
|
+
# Output only. The full file extension extracted from the `name` field. May
|
1144
|
+
# contain multiple concatenated extensions, such as "tar.gz". This is only
|
1145
|
+
# available for files with binary content in Google Drive. This is automatically
|
1146
|
+
# updated when the `name` field changes, however it is not cleared if the new
|
1147
|
+
# name does not contain a valid extension.
|
1104
1148
|
# Corresponds to the JSON property `fullFileExtension`
|
1105
1149
|
# @return [String]
|
1106
1150
|
attr_accessor :full_file_extension
|
1107
1151
|
|
1108
|
-
# Whether there are permissions directly on this file. This field
|
1109
|
-
# populated for items in shared drives.
|
1152
|
+
# Output only. Whether there are permissions directly on this file. This field
|
1153
|
+
# is only populated for items in shared drives.
|
1110
1154
|
# Corresponds to the JSON property `hasAugmentedPermissions`
|
1111
1155
|
# @return [Boolean]
|
1112
1156
|
attr_accessor :has_augmented_permissions
|
1113
1157
|
alias_method :has_augmented_permissions?, :has_augmented_permissions
|
1114
1158
|
|
1115
|
-
# Whether this file has a thumbnail. This does not indicate whether
|
1116
|
-
# requesting app has access to the thumbnail. To check access, look for the
|
1159
|
+
# Output only. Whether this file has a thumbnail. This does not indicate whether
|
1160
|
+
# the requesting app has access to the thumbnail. To check access, look for the
|
1117
1161
|
# presence of the thumbnailLink field.
|
1118
1162
|
# Corresponds to the JSON property `hasThumbnail`
|
1119
1163
|
# @return [Boolean]
|
1120
1164
|
attr_accessor :has_thumbnail
|
1121
1165
|
alias_method :has_thumbnail?, :has_thumbnail
|
1122
1166
|
|
1123
|
-
# The ID of the file's head revision. This is currently only
|
1124
|
-
# with binary content in Google Drive.
|
1167
|
+
# Output only. The ID of the file's head revision. This is currently only
|
1168
|
+
# available for files with binary content in Google Drive.
|
1125
1169
|
# Corresponds to the JSON property `headRevisionId`
|
1126
1170
|
# @return [String]
|
1127
1171
|
attr_accessor :head_revision_id
|
1128
1172
|
|
1129
|
-
# A static, unauthenticated link to the file's icon.
|
1173
|
+
# Output only. A static, unauthenticated link to the file's icon.
|
1130
1174
|
# Corresponds to the JSON property `iconLink`
|
1131
1175
|
# @return [String]
|
1132
1176
|
attr_accessor :icon_link
|
@@ -1136,23 +1180,24 @@ module Google
|
|
1136
1180
|
# @return [String]
|
1137
1181
|
attr_accessor :id
|
1138
1182
|
|
1139
|
-
# Additional metadata about image media, if available.
|
1183
|
+
# Output only. Additional metadata about image media, if available.
|
1140
1184
|
# Corresponds to the JSON property `imageMediaMetadata`
|
1141
1185
|
# @return [Google::Apis::DriveV3::File::ImageMediaMetadata]
|
1142
1186
|
attr_accessor :image_media_metadata
|
1143
1187
|
|
1144
|
-
# Whether the file was created or opened by the requesting app.
|
1188
|
+
# Output only. Whether the file was created or opened by the requesting app.
|
1145
1189
|
# Corresponds to the JSON property `isAppAuthorized`
|
1146
1190
|
# @return [Boolean]
|
1147
1191
|
attr_accessor :is_app_authorized
|
1148
1192
|
alias_method :is_app_authorized?, :is_app_authorized
|
1149
1193
|
|
1150
|
-
# Identifies what kind of resource this is. Value: the fixed string
|
1194
|
+
# Output only. Identifies what kind of resource this is. Value: the fixed string
|
1195
|
+
# `"drive#file"`.
|
1151
1196
|
# Corresponds to the JSON property `kind`
|
1152
1197
|
# @return [String]
|
1153
1198
|
attr_accessor :kind
|
1154
1199
|
|
1155
|
-
# An overview of the labels on the file.
|
1200
|
+
# Output only. An overview of the labels on the file.
|
1156
1201
|
# Corresponds to the JSON property `labelInfo`
|
1157
1202
|
# @return [Google::Apis::DriveV3::File::LabelInfo]
|
1158
1203
|
attr_accessor :label_info
|
@@ -1168,24 +1213,22 @@ module Google
|
|
1168
1213
|
# @return [Google::Apis::DriveV3::File::LinkShareMetadata]
|
1169
1214
|
attr_accessor :link_share_metadata
|
1170
1215
|
|
1171
|
-
# The MD5 checksum for the content of the file. This is only
|
1172
|
-
# with binary content in Google Drive.
|
1216
|
+
# Output only. The MD5 checksum for the content of the file. This is only
|
1217
|
+
# applicable to files with binary content in Google Drive.
|
1173
1218
|
# Corresponds to the JSON property `md5Checksum`
|
1174
1219
|
# @return [String]
|
1175
1220
|
attr_accessor :md5_checksum
|
1176
1221
|
|
1177
|
-
# The MIME type of the file.
|
1178
|
-
#
|
1179
|
-
#
|
1180
|
-
#
|
1181
|
-
#
|
1182
|
-
# imported if possible. The supported import formats are published in the About
|
1183
|
-
# resource.
|
1222
|
+
# The MIME type of the file. Google Drive attempts to automatically detect an
|
1223
|
+
# appropriate value from uploaded content, if no value is provided. The value
|
1224
|
+
# cannot be changed unless a new revision is uploaded. If a file is created with
|
1225
|
+
# a Google Doc MIME type, the uploaded content is imported, if possible. The
|
1226
|
+
# supported import formats are published in the About resource.
|
1184
1227
|
# Corresponds to the JSON property `mimeType`
|
1185
1228
|
# @return [String]
|
1186
1229
|
attr_accessor :mime_type
|
1187
1230
|
|
1188
|
-
# Whether the file has been modified by this user.
|
1231
|
+
# Output only. Whether the file has been modified by this user.
|
1189
1232
|
# Corresponds to the JSON property `modifiedByMe`
|
1190
1233
|
# @return [Boolean]
|
1191
1234
|
attr_accessor :modified_by_me
|
@@ -1196,8 +1239,8 @@ module Google
|
|
1196
1239
|
# @return [DateTime]
|
1197
1240
|
attr_accessor :modified_by_me_time
|
1198
1241
|
|
1199
|
-
#
|
1200
|
-
#
|
1242
|
+
# he last time the file was modified by anyone (RFC 3339 date-time). Note that
|
1243
|
+
# setting modifiedTime will also update modifiedByMeTime for the user.
|
1201
1244
|
# Corresponds to the JSON property `modifiedTime`
|
1202
1245
|
# @return [DateTime]
|
1203
1246
|
attr_accessor :modified_time
|
@@ -1210,41 +1253,42 @@ module Google
|
|
1210
1253
|
attr_accessor :name
|
1211
1254
|
|
1212
1255
|
# The original filename of the uploaded content if available, or else the
|
1213
|
-
# original value of the name field. This is only available for files with
|
1214
|
-
# content in Google Drive.
|
1256
|
+
# original value of the `name` field. This is only available for files with
|
1257
|
+
# binary content in Google Drive.
|
1215
1258
|
# Corresponds to the JSON property `originalFilename`
|
1216
1259
|
# @return [String]
|
1217
1260
|
attr_accessor :original_filename
|
1218
1261
|
|
1219
|
-
# Whether the user owns the file. Not populated for items in shared
|
1262
|
+
# Output only. Whether the user owns the file. Not populated for items in shared
|
1263
|
+
# drives.
|
1220
1264
|
# Corresponds to the JSON property `ownedByMe`
|
1221
1265
|
# @return [Boolean]
|
1222
1266
|
attr_accessor :owned_by_me
|
1223
1267
|
alias_method :owned_by_me?, :owned_by_me
|
1224
1268
|
|
1225
|
-
# The owner of this file. Only certain legacy files may have more
|
1226
|
-
# This field isn't populated for items in shared drives.
|
1269
|
+
# Output only. The owner of this file. Only certain legacy files may have more
|
1270
|
+
# than one owner. This field isn't populated for items in shared drives.
|
1227
1271
|
# Corresponds to the JSON property `owners`
|
1228
1272
|
# @return [Array<Google::Apis::DriveV3::User>]
|
1229
1273
|
attr_accessor :owners
|
1230
1274
|
|
1231
|
-
# The IDs of the parent folders which contain the file.
|
1232
|
-
#
|
1233
|
-
#
|
1234
|
-
#
|
1235
|
-
#
|
1236
|
-
# list.
|
1275
|
+
# The IDs of the parent folders which contain the file. If not specified as part
|
1276
|
+
# of a create request, the file is placed directly in the user's My Drive folder.
|
1277
|
+
# If not specified as part of a copy request, the file inherits any
|
1278
|
+
# discoverable parents of the source file. Update requests must use the `
|
1279
|
+
# addParents` and `removeParents` parameters to modify the parents list.
|
1237
1280
|
# Corresponds to the JSON property `parents`
|
1238
1281
|
# @return [Array<String>]
|
1239
1282
|
attr_accessor :parents
|
1240
1283
|
|
1241
|
-
# List of permission IDs for users with access to this file.
|
1284
|
+
# Output only. List of permission IDs for users with access to this file.
|
1242
1285
|
# Corresponds to the JSON property `permissionIds`
|
1243
1286
|
# @return [Array<String>]
|
1244
1287
|
attr_accessor :permission_ids
|
1245
1288
|
|
1246
|
-
# The full list of permissions for the file. This is only available
|
1247
|
-
# requesting user can share the file. Not populated for items in shared
|
1289
|
+
# Output only. The full list of permissions for the file. This is only available
|
1290
|
+
# if the requesting user can share the file. Not populated for items in shared
|
1291
|
+
# drives.
|
1248
1292
|
# Corresponds to the JSON property `permissions`
|
1249
1293
|
# @return [Array<Google::Apis::DriveV3::Permission>]
|
1250
1294
|
attr_accessor :permissions
|
@@ -1255,18 +1299,33 @@ module Google
|
|
1255
1299
|
# @return [Hash<String,String>]
|
1256
1300
|
attr_accessor :properties
|
1257
1301
|
|
1258
|
-
# The number of storage quota bytes used by the file. This includes
|
1259
|
-
# revision as well as previous revisions with keepForever enabled.
|
1302
|
+
# Output only. The number of storage quota bytes used by the file. This includes
|
1303
|
+
# the head revision as well as previous revisions with `keepForever` enabled.
|
1260
1304
|
# Corresponds to the JSON property `quotaBytesUsed`
|
1261
1305
|
# @return [Fixnum]
|
1262
1306
|
attr_accessor :quota_bytes_used
|
1263
1307
|
|
1264
|
-
# A key needed to access the item via a shared link.
|
1308
|
+
# Output only. A key needed to access the item via a shared link.
|
1265
1309
|
# Corresponds to the JSON property `resourceKey`
|
1266
1310
|
# @return [String]
|
1267
1311
|
attr_accessor :resource_key
|
1268
1312
|
|
1269
|
-
#
|
1313
|
+
# Output only. The SHA1 checksum associated with this file, if available. This
|
1314
|
+
# field is only populated for files with content stored in Google Drive; it is
|
1315
|
+
# not populated for Docs Editors or shortcut files.
|
1316
|
+
# Corresponds to the JSON property `sha1Checksum`
|
1317
|
+
# @return [String]
|
1318
|
+
attr_accessor :sha1_checksum
|
1319
|
+
|
1320
|
+
# Output only. The SHA256 checksum associated with this file, if available. This
|
1321
|
+
# field is only populated for files with content stored in Google Drive; it is
|
1322
|
+
# not populated for Docs Editors or shortcut files.
|
1323
|
+
# Corresponds to the JSON property `sha256Checksum`
|
1324
|
+
# @return [String]
|
1325
|
+
attr_accessor :sha256_checksum
|
1326
|
+
|
1327
|
+
# Output only. Whether the file has been shared. Not populated for items in
|
1328
|
+
# shared drives.
|
1270
1329
|
# Corresponds to the JSON property `shared`
|
1271
1330
|
# @return [Boolean]
|
1272
1331
|
attr_accessor :shared
|
@@ -1284,19 +1343,19 @@ module Google
|
|
1284
1343
|
attr_accessor :sharing_user
|
1285
1344
|
|
1286
1345
|
# Shortcut file details. Only populated for shortcut files, which have the
|
1287
|
-
# mimeType field set to application/vnd.google-apps.shortcut
|
1346
|
+
# mimeType field set to `application/vnd.google-apps.shortcut`.
|
1288
1347
|
# Corresponds to the JSON property `shortcutDetails`
|
1289
1348
|
# @return [Google::Apis::DriveV3::File::ShortcutDetails]
|
1290
1349
|
attr_accessor :shortcut_details
|
1291
1350
|
|
1292
|
-
#
|
1293
|
-
#
|
1351
|
+
# Output only. Size in bytes of blobs and first party editor files. Won't be
|
1352
|
+
# populated for files that have no size, like shortcuts and folders.
|
1294
1353
|
# Corresponds to the JSON property `size`
|
1295
1354
|
# @return [Fixnum]
|
1296
1355
|
attr_accessor :size
|
1297
1356
|
|
1298
|
-
# The list of spaces which contain the file. The currently
|
1299
|
-
# drive', 'appDataFolder' and 'photos'.
|
1357
|
+
# Output only. The list of spaces which contain the file. The currently
|
1358
|
+
# supported values are 'drive', 'appDataFolder' and 'photos'.
|
1300
1359
|
# Corresponds to the JSON property `spaces`
|
1301
1360
|
# @return [Array<String>]
|
1302
1361
|
attr_accessor :spaces
|
@@ -1307,29 +1366,27 @@ module Google
|
|
1307
1366
|
attr_accessor :starred
|
1308
1367
|
alias_method :starred?, :starred
|
1309
1368
|
|
1310
|
-
# Deprecated
|
1369
|
+
# Deprecated: Output only. Use `driveId` instead.
|
1311
1370
|
# Corresponds to the JSON property `teamDriveId`
|
1312
1371
|
# @return [String]
|
1313
1372
|
attr_accessor :team_drive_id
|
1314
1373
|
|
1315
|
-
# A short-lived link to the file's thumbnail, if available.
|
1316
|
-
# the order of hours. Only populated when the requesting app
|
1317
|
-
# s content. If the file isn't shared publicly, the URL
|
1318
|
-
# thumbnailLink must be fetched using a credentialed request.
|
1374
|
+
# Output only. A short-lived link to the file's thumbnail, if available.
|
1375
|
+
# Typically lasts on the order of hours. Only populated when the requesting app
|
1376
|
+
# can access the file's content. If the file isn't shared publicly, the URL
|
1377
|
+
# returned in `Files.thumbnailLink` must be fetched using a credentialed request.
|
1319
1378
|
# Corresponds to the JSON property `thumbnailLink`
|
1320
1379
|
# @return [String]
|
1321
1380
|
attr_accessor :thumbnail_link
|
1322
1381
|
|
1323
|
-
# The thumbnail version for use in thumbnail cache invalidation.
|
1382
|
+
# Output only. The thumbnail version for use in thumbnail cache invalidation.
|
1324
1383
|
# Corresponds to the JSON property `thumbnailVersion`
|
1325
1384
|
# @return [Fixnum]
|
1326
1385
|
attr_accessor :thumbnail_version
|
1327
1386
|
|
1328
1387
|
# Whether the file has been trashed, either explicitly or from a trashed parent
|
1329
|
-
# folder. Only the owner may trash a file
|
1330
|
-
#
|
1331
|
-
# all users with access to the file can see the trashed item metadata in an API
|
1332
|
-
# response. All users with access can copy, download, export, and share the file.
|
1388
|
+
# folder. Only the owner may trash a file, and other users cannot see files in
|
1389
|
+
# the owner's trash.
|
1333
1390
|
# Corresponds to the JSON property `trashed`
|
1334
1391
|
# @return [Boolean]
|
1335
1392
|
attr_accessor :trashed
|
@@ -1346,19 +1403,20 @@ module Google
|
|
1346
1403
|
# @return [Google::Apis::DriveV3::User]
|
1347
1404
|
attr_accessor :trashing_user
|
1348
1405
|
|
1349
|
-
# A monotonically increasing version number for the file. This
|
1350
|
-
# change made to the file on the server, even those not visible
|
1406
|
+
# Output only. A monotonically increasing version number for the file. This
|
1407
|
+
# reflects every change made to the file on the server, even those not visible
|
1408
|
+
# to the user.
|
1351
1409
|
# Corresponds to the JSON property `version`
|
1352
1410
|
# @return [Fixnum]
|
1353
1411
|
attr_accessor :version
|
1354
1412
|
|
1355
|
-
# Additional metadata about video media. This may not be available
|
1356
|
-
# upon upload.
|
1413
|
+
# Output only. Additional metadata about video media. This may not be available
|
1414
|
+
# immediately upon upload.
|
1357
1415
|
# Corresponds to the JSON property `videoMediaMetadata`
|
1358
1416
|
# @return [Google::Apis::DriveV3::File::VideoMediaMetadata]
|
1359
1417
|
attr_accessor :video_media_metadata
|
1360
1418
|
|
1361
|
-
# Whether the file has been viewed by this user.
|
1419
|
+
# Output only. Whether the file has been viewed by this user.
|
1362
1420
|
# Corresponds to the JSON property `viewedByMe`
|
1363
1421
|
# @return [Boolean]
|
1364
1422
|
attr_accessor :viewed_by_me
|
@@ -1369,24 +1427,25 @@ module Google
|
|
1369
1427
|
# @return [DateTime]
|
1370
1428
|
attr_accessor :viewed_by_me_time
|
1371
1429
|
|
1372
|
-
# Deprecated
|
1430
|
+
# Deprecated: Use `copyRequiresWriterPermission` instead.
|
1373
1431
|
# Corresponds to the JSON property `viewersCanCopyContent`
|
1374
1432
|
# @return [Boolean]
|
1375
1433
|
attr_accessor :viewers_can_copy_content
|
1376
1434
|
alias_method :viewers_can_copy_content?, :viewers_can_copy_content
|
1377
1435
|
|
1378
|
-
# A link for downloading the content of the file in a browser. This
|
1379
|
-
# available for files with binary content in Google Drive.
|
1436
|
+
# Output only. A link for downloading the content of the file in a browser. This
|
1437
|
+
# is only available for files with binary content in Google Drive.
|
1380
1438
|
# Corresponds to the JSON property `webContentLink`
|
1381
1439
|
# @return [String]
|
1382
1440
|
attr_accessor :web_content_link
|
1383
1441
|
|
1384
|
-
# A link for opening the file in a relevant Google editor or viewer
|
1442
|
+
# Output only. A link for opening the file in a relevant Google editor or viewer
|
1443
|
+
# in a browser.
|
1385
1444
|
# Corresponds to the JSON property `webViewLink`
|
1386
1445
|
# @return [String]
|
1387
1446
|
attr_accessor :web_view_link
|
1388
1447
|
|
1389
|
-
# Whether users with only writer permission can modify the file's permissions.
|
1448
|
+
# Whether users with only `writer` permission can modify the file's permissions.
|
1390
1449
|
# Not populated for items in shared drives.
|
1391
1450
|
# Corresponds to the JSON property `writersCanShare`
|
1392
1451
|
# @return [Boolean]
|
@@ -1438,6 +1497,8 @@ module Google
|
|
1438
1497
|
@properties = args[:properties] if args.key?(:properties)
|
1439
1498
|
@quota_bytes_used = args[:quota_bytes_used] if args.key?(:quota_bytes_used)
|
1440
1499
|
@resource_key = args[:resource_key] if args.key?(:resource_key)
|
1500
|
+
@sha1_checksum = args[:sha1_checksum] if args.key?(:sha1_checksum)
|
1501
|
+
@sha256_checksum = args[:sha256_checksum] if args.key?(:sha256_checksum)
|
1441
1502
|
@shared = args[:shared] if args.key?(:shared)
|
1442
1503
|
@shared_with_me_time = args[:shared_with_me_time] if args.key?(:shared_with_me_time)
|
1443
1504
|
@sharing_user = args[:sharing_user] if args.key?(:sharing_user)
|
@@ -1461,263 +1522,291 @@ module Google
|
|
1461
1522
|
@writers_can_share = args[:writers_can_share] if args.key?(:writers_can_share)
|
1462
1523
|
end
|
1463
1524
|
|
1464
|
-
# Capabilities the current user has on this file. Each capability
|
1465
|
-
# a fine-grained action that a user may take.
|
1525
|
+
# Output only. Capabilities the current user has on this file. Each capability
|
1526
|
+
# corresponds to a fine-grained action that a user may take.
|
1466
1527
|
class Capabilities
|
1467
1528
|
include Google::Apis::Core::Hashable
|
1468
1529
|
|
1469
|
-
# Whether the current user is the pending owner of the file. Not
|
1470
|
-
# shared drive files.
|
1530
|
+
# Output only. Whether the current user is the pending owner of the file. Not
|
1531
|
+
# populated for shared drive files.
|
1471
1532
|
# Corresponds to the JSON property `canAcceptOwnership`
|
1472
1533
|
# @return [Boolean]
|
1473
1534
|
attr_accessor :can_accept_ownership
|
1474
1535
|
alias_method :can_accept_ownership?, :can_accept_ownership
|
1475
1536
|
|
1476
|
-
# Whether the current user can add children to this folder. This is
|
1477
|
-
# when the item is not a folder.
|
1537
|
+
# Output only. Whether the current user can add children to this folder. This is
|
1538
|
+
# always false when the item is not a folder.
|
1478
1539
|
# Corresponds to the JSON property `canAddChildren`
|
1479
1540
|
# @return [Boolean]
|
1480
1541
|
attr_accessor :can_add_children
|
1481
1542
|
alias_method :can_add_children?, :can_add_children
|
1482
1543
|
|
1483
|
-
# Whether the current user can add a folder from another drive (
|
1484
|
-
# drive or My Drive) to this folder. This is false when the
|
1485
|
-
# Only populated for items in shared drives.
|
1544
|
+
# Output only. Whether the current user can add a folder from another drive (
|
1545
|
+
# different shared drive or My Drive) to this folder. This is false when the
|
1546
|
+
# item is not a folder. Only populated for items in shared drives.
|
1486
1547
|
# Corresponds to the JSON property `canAddFolderFromAnotherDrive`
|
1487
1548
|
# @return [Boolean]
|
1488
1549
|
attr_accessor :can_add_folder_from_another_drive
|
1489
1550
|
alias_method :can_add_folder_from_another_drive?, :can_add_folder_from_another_drive
|
1490
1551
|
|
1491
|
-
# Whether the current user can add a parent for the item without
|
1492
|
-
# existing parent in the same request. Not populated for shared
|
1552
|
+
# Output only. Whether the current user can add a parent for the item without
|
1553
|
+
# removing an existing parent in the same request. Not populated for shared
|
1554
|
+
# drive files.
|
1493
1555
|
# Corresponds to the JSON property `canAddMyDriveParent`
|
1494
1556
|
# @return [Boolean]
|
1495
1557
|
attr_accessor :can_add_my_drive_parent
|
1496
1558
|
alias_method :can_add_my_drive_parent?, :can_add_my_drive_parent
|
1497
1559
|
|
1498
|
-
# Whether the current user can change the
|
1499
|
-
# restriction of this file.
|
1560
|
+
# Output only. Whether the current user can change the `
|
1561
|
+
# copyRequiresWriterPermission` restriction of this file.
|
1500
1562
|
# Corresponds to the JSON property `canChangeCopyRequiresWriterPermission`
|
1501
1563
|
# @return [Boolean]
|
1502
1564
|
attr_accessor :can_change_copy_requires_writer_permission
|
1503
1565
|
alias_method :can_change_copy_requires_writer_permission?, :can_change_copy_requires_writer_permission
|
1504
1566
|
|
1505
|
-
# Whether the current user can change the securityUpdateEnabled
|
1506
|
-
# share metadata.
|
1567
|
+
# Output only. Whether the current user can change the securityUpdateEnabled
|
1568
|
+
# field on link share metadata.
|
1507
1569
|
# Corresponds to the JSON property `canChangeSecurityUpdateEnabled`
|
1508
1570
|
# @return [Boolean]
|
1509
1571
|
attr_accessor :can_change_security_update_enabled
|
1510
1572
|
alias_method :can_change_security_update_enabled?, :can_change_security_update_enabled
|
1511
1573
|
|
1512
|
-
# Deprecated
|
1574
|
+
# Deprecated: Output only.
|
1513
1575
|
# Corresponds to the JSON property `canChangeViewersCanCopyContent`
|
1514
1576
|
# @return [Boolean]
|
1515
1577
|
attr_accessor :can_change_viewers_can_copy_content
|
1516
1578
|
alias_method :can_change_viewers_can_copy_content?, :can_change_viewers_can_copy_content
|
1517
1579
|
|
1518
|
-
# Whether the current user can comment on this file.
|
1580
|
+
# Output only. Whether the current user can comment on this file.
|
1519
1581
|
# Corresponds to the JSON property `canComment`
|
1520
1582
|
# @return [Boolean]
|
1521
1583
|
attr_accessor :can_comment
|
1522
1584
|
alias_method :can_comment?, :can_comment
|
1523
1585
|
|
1524
|
-
# Whether the current user can copy this file. For an item in a
|
1525
|
-
# whether the current user can copy non-folder descendants of this
|
1526
|
-
# item itself if it is not a folder.
|
1586
|
+
# Output only. Whether the current user can copy this file. For an item in a
|
1587
|
+
# shared drive, whether the current user can copy non-folder descendants of this
|
1588
|
+
# item, or this item itself if it is not a folder.
|
1527
1589
|
# Corresponds to the JSON property `canCopy`
|
1528
1590
|
# @return [Boolean]
|
1529
1591
|
attr_accessor :can_copy
|
1530
1592
|
alias_method :can_copy?, :can_copy
|
1531
1593
|
|
1532
|
-
# Whether the current user can delete this file.
|
1594
|
+
# Output only. Whether the current user can delete this file.
|
1533
1595
|
# Corresponds to the JSON property `canDelete`
|
1534
1596
|
# @return [Boolean]
|
1535
1597
|
attr_accessor :can_delete
|
1536
1598
|
alias_method :can_delete?, :can_delete
|
1537
1599
|
|
1538
|
-
# Whether the current user can delete children of this folder. This
|
1539
|
-
# when the item is not a folder. Only populated for items in shared
|
1600
|
+
# Output only. Whether the current user can delete children of this folder. This
|
1601
|
+
# is false when the item is not a folder. Only populated for items in shared
|
1602
|
+
# drives.
|
1540
1603
|
# Corresponds to the JSON property `canDeleteChildren`
|
1541
1604
|
# @return [Boolean]
|
1542
1605
|
attr_accessor :can_delete_children
|
1543
1606
|
alias_method :can_delete_children?, :can_delete_children
|
1544
1607
|
|
1545
|
-
# Whether the current user can download this file.
|
1608
|
+
# Output only. Whether the current user can download this file.
|
1546
1609
|
# Corresponds to the JSON property `canDownload`
|
1547
1610
|
# @return [Boolean]
|
1548
1611
|
attr_accessor :can_download
|
1549
1612
|
alias_method :can_download?, :can_download
|
1550
1613
|
|
1551
|
-
# Whether the current user can edit this file. Other factors may
|
1552
|
-
# of changes a user can make to a file. For example, see
|
1553
|
-
# canChangeCopyRequiresWriterPermission or canModifyContent
|
1614
|
+
# Output only. Whether the current user can edit this file. Other factors may
|
1615
|
+
# limit the type of changes a user can make to a file. For example, see `
|
1616
|
+
# canChangeCopyRequiresWriterPermission` or `canModifyContent`.
|
1554
1617
|
# Corresponds to the JSON property `canEdit`
|
1555
1618
|
# @return [Boolean]
|
1556
1619
|
attr_accessor :can_edit
|
1557
1620
|
alias_method :can_edit?, :can_edit
|
1558
1621
|
|
1559
|
-
# Whether the current user can list the children of this folder.
|
1560
|
-
# false when the item is not a folder.
|
1622
|
+
# Output only. Whether the current user can list the children of this folder.
|
1623
|
+
# This is always false when the item is not a folder.
|
1561
1624
|
# Corresponds to the JSON property `canListChildren`
|
1562
1625
|
# @return [Boolean]
|
1563
1626
|
attr_accessor :can_list_children
|
1564
1627
|
alias_method :can_list_children?, :can_list_children
|
1565
1628
|
|
1566
|
-
# Whether the current user can modify the content of this file.
|
1629
|
+
# Output only. Whether the current user can modify the content of this file.
|
1567
1630
|
# Corresponds to the JSON property `canModifyContent`
|
1568
1631
|
# @return [Boolean]
|
1569
1632
|
attr_accessor :can_modify_content
|
1570
1633
|
alias_method :can_modify_content?, :can_modify_content
|
1571
1634
|
|
1572
|
-
#
|
1635
|
+
# Deprecated: Output only. Use one of `canModifyEditorContentRestriction`, `
|
1636
|
+
# canModifyOwnerContentRestriction` or `canRemoveContentRestriction`.
|
1573
1637
|
# Corresponds to the JSON property `canModifyContentRestriction`
|
1574
1638
|
# @return [Boolean]
|
1575
1639
|
attr_accessor :can_modify_content_restriction
|
1576
1640
|
alias_method :can_modify_content_restriction?, :can_modify_content_restriction
|
1577
1641
|
|
1578
|
-
# Whether the current user can
|
1642
|
+
# Output only. Whether the current user can add or modify content restrictions
|
1643
|
+
# on the file which are editor restricted.
|
1644
|
+
# Corresponds to the JSON property `canModifyEditorContentRestriction`
|
1645
|
+
# @return [Boolean]
|
1646
|
+
attr_accessor :can_modify_editor_content_restriction
|
1647
|
+
alias_method :can_modify_editor_content_restriction?, :can_modify_editor_content_restriction
|
1648
|
+
|
1649
|
+
# Output only. Whether the current user can modify the labels on the file.
|
1579
1650
|
# Corresponds to the JSON property `canModifyLabels`
|
1580
1651
|
# @return [Boolean]
|
1581
1652
|
attr_accessor :can_modify_labels
|
1582
1653
|
alias_method :can_modify_labels?, :can_modify_labels
|
1583
1654
|
|
1584
|
-
# Whether the current user can
|
1585
|
-
#
|
1586
|
-
#
|
1655
|
+
# Output only. Whether the current user can add or modify content restrictions
|
1656
|
+
# which are owner restricted.
|
1657
|
+
# Corresponds to the JSON property `canModifyOwnerContentRestriction`
|
1658
|
+
# @return [Boolean]
|
1659
|
+
attr_accessor :can_modify_owner_content_restriction
|
1660
|
+
alias_method :can_modify_owner_content_restriction?, :can_modify_owner_content_restriction
|
1661
|
+
|
1662
|
+
# Output only. Whether the current user can move children of this folder outside
|
1663
|
+
# of the shared drive. This is false when the item is not a folder. Only
|
1664
|
+
# populated for items in shared drives.
|
1587
1665
|
# Corresponds to the JSON property `canMoveChildrenOutOfDrive`
|
1588
1666
|
# @return [Boolean]
|
1589
1667
|
attr_accessor :can_move_children_out_of_drive
|
1590
1668
|
alias_method :can_move_children_out_of_drive?, :can_move_children_out_of_drive
|
1591
1669
|
|
1592
|
-
# Deprecated
|
1670
|
+
# Deprecated: Output only. Use `canMoveChildrenOutOfDrive` instead.
|
1593
1671
|
# Corresponds to the JSON property `canMoveChildrenOutOfTeamDrive`
|
1594
1672
|
# @return [Boolean]
|
1595
1673
|
attr_accessor :can_move_children_out_of_team_drive
|
1596
1674
|
alias_method :can_move_children_out_of_team_drive?, :can_move_children_out_of_team_drive
|
1597
1675
|
|
1598
|
-
# Whether the current user can move children of this folder within
|
1599
|
-
# This is false when the item is not a folder. Note that a request
|
1600
|
-
# child may still fail depending on the current user's access to the
|
1601
|
-
# to the destination folder.
|
1676
|
+
# Output only. Whether the current user can move children of this folder within
|
1677
|
+
# this drive. This is false when the item is not a folder. Note that a request
|
1678
|
+
# to move the child may still fail depending on the current user's access to the
|
1679
|
+
# child and to the destination folder.
|
1602
1680
|
# Corresponds to the JSON property `canMoveChildrenWithinDrive`
|
1603
1681
|
# @return [Boolean]
|
1604
1682
|
attr_accessor :can_move_children_within_drive
|
1605
1683
|
alias_method :can_move_children_within_drive?, :can_move_children_within_drive
|
1606
1684
|
|
1607
|
-
# Deprecated
|
1685
|
+
# Deprecated: Output only. Use `canMoveChildrenWithinDrive` instead.
|
1608
1686
|
# Corresponds to the JSON property `canMoveChildrenWithinTeamDrive`
|
1609
1687
|
# @return [Boolean]
|
1610
1688
|
attr_accessor :can_move_children_within_team_drive
|
1611
1689
|
alias_method :can_move_children_within_team_drive?, :can_move_children_within_team_drive
|
1612
1690
|
|
1613
|
-
# Deprecated
|
1691
|
+
# Deprecated: Output only. Use `canMoveItemOutOfDrive` instead.
|
1614
1692
|
# Corresponds to the JSON property `canMoveItemIntoTeamDrive`
|
1615
1693
|
# @return [Boolean]
|
1616
1694
|
attr_accessor :can_move_item_into_team_drive
|
1617
1695
|
alias_method :can_move_item_into_team_drive?, :can_move_item_into_team_drive
|
1618
1696
|
|
1619
|
-
# Whether the current user can move this item outside of this drive
|
1620
|
-
# its parent. Note that a request to change the parent of the item
|
1621
|
-
# fail depending on the new parent that is being added.
|
1697
|
+
# Output only. Whether the current user can move this item outside of this drive
|
1698
|
+
# by changing its parent. Note that a request to change the parent of the item
|
1699
|
+
# may still fail depending on the new parent that is being added.
|
1622
1700
|
# Corresponds to the JSON property `canMoveItemOutOfDrive`
|
1623
1701
|
# @return [Boolean]
|
1624
1702
|
attr_accessor :can_move_item_out_of_drive
|
1625
1703
|
alias_method :can_move_item_out_of_drive?, :can_move_item_out_of_drive
|
1626
1704
|
|
1627
|
-
# Deprecated
|
1705
|
+
# Deprecated: Output only. Use `canMoveItemOutOfDrive` instead.
|
1628
1706
|
# Corresponds to the JSON property `canMoveItemOutOfTeamDrive`
|
1629
1707
|
# @return [Boolean]
|
1630
1708
|
attr_accessor :can_move_item_out_of_team_drive
|
1631
1709
|
alias_method :can_move_item_out_of_team_drive?, :can_move_item_out_of_team_drive
|
1632
1710
|
|
1633
|
-
# Whether the current user can move this item within this drive.
|
1634
|
-
# request to change the parent of the item may still fail depending
|
1635
|
-
# parent that is being added and the parent that is being removed.
|
1711
|
+
# Output only. Whether the current user can move this item within this drive.
|
1712
|
+
# Note that a request to change the parent of the item may still fail depending
|
1713
|
+
# on the new parent that is being added and the parent that is being removed.
|
1636
1714
|
# Corresponds to the JSON property `canMoveItemWithinDrive`
|
1637
1715
|
# @return [Boolean]
|
1638
1716
|
attr_accessor :can_move_item_within_drive
|
1639
1717
|
alias_method :can_move_item_within_drive?, :can_move_item_within_drive
|
1640
1718
|
|
1641
|
-
# Deprecated
|
1719
|
+
# Deprecated: Output only. Use `canMoveItemWithinDrive` instead.
|
1642
1720
|
# Corresponds to the JSON property `canMoveItemWithinTeamDrive`
|
1643
1721
|
# @return [Boolean]
|
1644
1722
|
attr_accessor :can_move_item_within_team_drive
|
1645
1723
|
alias_method :can_move_item_within_team_drive?, :can_move_item_within_team_drive
|
1646
1724
|
|
1647
|
-
# Deprecated
|
1725
|
+
# Deprecated: Output only. Use `canMoveItemWithinDrive` or `
|
1726
|
+
# canMoveItemOutOfDrive` instead.
|
1648
1727
|
# Corresponds to the JSON property `canMoveTeamDriveItem`
|
1649
1728
|
# @return [Boolean]
|
1650
1729
|
attr_accessor :can_move_team_drive_item
|
1651
1730
|
alias_method :can_move_team_drive_item?, :can_move_team_drive_item
|
1652
1731
|
|
1653
|
-
# Whether the current user can read the shared drive to which this
|
1654
|
-
# Only populated for items in shared drives.
|
1732
|
+
# Output only. Whether the current user can read the shared drive to which this
|
1733
|
+
# file belongs. Only populated for items in shared drives.
|
1655
1734
|
# Corresponds to the JSON property `canReadDrive`
|
1656
1735
|
# @return [Boolean]
|
1657
1736
|
attr_accessor :can_read_drive
|
1658
1737
|
alias_method :can_read_drive?, :can_read_drive
|
1659
1738
|
|
1660
|
-
# Whether the current user can read the labels on
|
1739
|
+
# Output only. Whether the current user can read the labels on the file.
|
1661
1740
|
# Corresponds to the JSON property `canReadLabels`
|
1662
1741
|
# @return [Boolean]
|
1663
1742
|
attr_accessor :can_read_labels
|
1664
1743
|
alias_method :can_read_labels?, :can_read_labels
|
1665
1744
|
|
1666
|
-
# Whether the current user can read the revisions resource of this
|
1667
|
-
# shared drive item, whether revisions of non-folder descendants of
|
1668
|
-
# or this item itself if it is not a folder, can be read.
|
1745
|
+
# Output only. Whether the current user can read the revisions resource of this
|
1746
|
+
# file. For a shared drive item, whether revisions of non-folder descendants of
|
1747
|
+
# this item, or this item itself if it is not a folder, can be read.
|
1669
1748
|
# Corresponds to the JSON property `canReadRevisions`
|
1670
1749
|
# @return [Boolean]
|
1671
1750
|
attr_accessor :can_read_revisions
|
1672
1751
|
alias_method :can_read_revisions?, :can_read_revisions
|
1673
1752
|
|
1674
|
-
# Deprecated
|
1753
|
+
# Deprecated: Output only. Use `canReadDrive` instead.
|
1675
1754
|
# Corresponds to the JSON property `canReadTeamDrive`
|
1676
1755
|
# @return [Boolean]
|
1677
1756
|
attr_accessor :can_read_team_drive
|
1678
1757
|
alias_method :can_read_team_drive?, :can_read_team_drive
|
1679
1758
|
|
1680
|
-
# Whether the current user can remove children from this folder.
|
1681
|
-
# false when the item is not a folder. For a folder in a shared
|
1682
|
-
# canDeleteChildren or canTrashChildren instead.
|
1759
|
+
# Output only. Whether the current user can remove children from this folder.
|
1760
|
+
# This is always false when the item is not a folder. For a folder in a shared
|
1761
|
+
# drive, use `canDeleteChildren` or `canTrashChildren` instead.
|
1683
1762
|
# Corresponds to the JSON property `canRemoveChildren`
|
1684
1763
|
# @return [Boolean]
|
1685
1764
|
attr_accessor :can_remove_children
|
1686
1765
|
alias_method :can_remove_children?, :can_remove_children
|
1687
1766
|
|
1688
|
-
#
|
1689
|
-
#
|
1767
|
+
# Output only. Whether there is a content restriction on the file that can be
|
1768
|
+
# removed by the current user.
|
1769
|
+
# Corresponds to the JSON property `canRemoveContentRestriction`
|
1770
|
+
# @return [Boolean]
|
1771
|
+
attr_accessor :can_remove_content_restriction
|
1772
|
+
alias_method :can_remove_content_restriction?, :can_remove_content_restriction
|
1773
|
+
|
1774
|
+
# Output only. Whether the current user can remove a parent from the item
|
1775
|
+
# without adding another parent in the same request. Not populated for shared
|
1776
|
+
# drive files.
|
1690
1777
|
# Corresponds to the JSON property `canRemoveMyDriveParent`
|
1691
1778
|
# @return [Boolean]
|
1692
1779
|
attr_accessor :can_remove_my_drive_parent
|
1693
1780
|
alias_method :can_remove_my_drive_parent?, :can_remove_my_drive_parent
|
1694
1781
|
|
1695
|
-
# Whether the current user can rename this file.
|
1782
|
+
# Output only. Whether the current user can rename this file.
|
1696
1783
|
# Corresponds to the JSON property `canRename`
|
1697
1784
|
# @return [Boolean]
|
1698
1785
|
attr_accessor :can_rename
|
1699
1786
|
alias_method :can_rename?, :can_rename
|
1700
1787
|
|
1701
|
-
# Whether the current user can modify the sharing settings for this
|
1788
|
+
# Output only. Whether the current user can modify the sharing settings for this
|
1789
|
+
# file.
|
1702
1790
|
# Corresponds to the JSON property `canShare`
|
1703
1791
|
# @return [Boolean]
|
1704
1792
|
attr_accessor :can_share
|
1705
1793
|
alias_method :can_share?, :can_share
|
1706
1794
|
|
1707
|
-
# Whether the current user can move this file to trash.
|
1795
|
+
# Output only. Whether the current user can move this file to trash.
|
1708
1796
|
# Corresponds to the JSON property `canTrash`
|
1709
1797
|
# @return [Boolean]
|
1710
1798
|
attr_accessor :can_trash
|
1711
1799
|
alias_method :can_trash?, :can_trash
|
1712
1800
|
|
1713
|
-
# Whether the current user can trash children of this folder. This
|
1714
|
-
# the item is not a folder. Only populated for items in shared
|
1801
|
+
# Output only. Whether the current user can trash children of this folder. This
|
1802
|
+
# is false when the item is not a folder. Only populated for items in shared
|
1803
|
+
# drives.
|
1715
1804
|
# Corresponds to the JSON property `canTrashChildren`
|
1716
1805
|
# @return [Boolean]
|
1717
1806
|
attr_accessor :can_trash_children
|
1718
1807
|
alias_method :can_trash_children?, :can_trash_children
|
1719
1808
|
|
1720
|
-
# Whether the current user can restore this file from trash.
|
1809
|
+
# Output only. Whether the current user can restore this file from trash.
|
1721
1810
|
# Corresponds to the JSON property `canUntrash`
|
1722
1811
|
# @return [Boolean]
|
1723
1812
|
attr_accessor :can_untrash
|
@@ -1745,7 +1834,9 @@ module Google
|
|
1745
1834
|
@can_list_children = args[:can_list_children] if args.key?(:can_list_children)
|
1746
1835
|
@can_modify_content = args[:can_modify_content] if args.key?(:can_modify_content)
|
1747
1836
|
@can_modify_content_restriction = args[:can_modify_content_restriction] if args.key?(:can_modify_content_restriction)
|
1837
|
+
@can_modify_editor_content_restriction = args[:can_modify_editor_content_restriction] if args.key?(:can_modify_editor_content_restriction)
|
1748
1838
|
@can_modify_labels = args[:can_modify_labels] if args.key?(:can_modify_labels)
|
1839
|
+
@can_modify_owner_content_restriction = args[:can_modify_owner_content_restriction] if args.key?(:can_modify_owner_content_restriction)
|
1749
1840
|
@can_move_children_out_of_drive = args[:can_move_children_out_of_drive] if args.key?(:can_move_children_out_of_drive)
|
1750
1841
|
@can_move_children_out_of_team_drive = args[:can_move_children_out_of_team_drive] if args.key?(:can_move_children_out_of_team_drive)
|
1751
1842
|
@can_move_children_within_drive = args[:can_move_children_within_drive] if args.key?(:can_move_children_within_drive)
|
@@ -1761,6 +1852,7 @@ module Google
|
|
1761
1852
|
@can_read_revisions = args[:can_read_revisions] if args.key?(:can_read_revisions)
|
1762
1853
|
@can_read_team_drive = args[:can_read_team_drive] if args.key?(:can_read_team_drive)
|
1763
1854
|
@can_remove_children = args[:can_remove_children] if args.key?(:can_remove_children)
|
1855
|
+
@can_remove_content_restriction = args[:can_remove_content_restriction] if args.key?(:can_remove_content_restriction)
|
1764
1856
|
@can_remove_my_drive_parent = args[:can_remove_my_drive_parent] if args.key?(:can_remove_my_drive_parent)
|
1765
1857
|
@can_rename = args[:can_rename] if args.key?(:can_rename)
|
1766
1858
|
@can_share = args[:can_share] if args.key?(:can_share)
|
@@ -1825,114 +1917,114 @@ module Google
|
|
1825
1917
|
end
|
1826
1918
|
end
|
1827
1919
|
|
1828
|
-
# Additional metadata about image media, if available.
|
1920
|
+
# Output only. Additional metadata about image media, if available.
|
1829
1921
|
class ImageMediaMetadata
|
1830
1922
|
include Google::Apis::Core::Hashable
|
1831
1923
|
|
1832
|
-
# The aperture used to create the photo (f-number).
|
1924
|
+
# Output only. The aperture used to create the photo (f-number).
|
1833
1925
|
# Corresponds to the JSON property `aperture`
|
1834
1926
|
# @return [Float]
|
1835
1927
|
attr_accessor :aperture
|
1836
1928
|
|
1837
|
-
# The make of the camera used to create the photo.
|
1929
|
+
# Output only. The make of the camera used to create the photo.
|
1838
1930
|
# Corresponds to the JSON property `cameraMake`
|
1839
1931
|
# @return [String]
|
1840
1932
|
attr_accessor :camera_make
|
1841
1933
|
|
1842
|
-
# The model of the camera used to create the photo.
|
1934
|
+
# Output only. The model of the camera used to create the photo.
|
1843
1935
|
# Corresponds to the JSON property `cameraModel`
|
1844
1936
|
# @return [String]
|
1845
1937
|
attr_accessor :camera_model
|
1846
1938
|
|
1847
|
-
# The color space of the photo.
|
1939
|
+
# Output only. The color space of the photo.
|
1848
1940
|
# Corresponds to the JSON property `colorSpace`
|
1849
1941
|
# @return [String]
|
1850
1942
|
attr_accessor :color_space
|
1851
1943
|
|
1852
|
-
# The exposure bias of the photo (APEX value).
|
1944
|
+
# Output only. The exposure bias of the photo (APEX value).
|
1853
1945
|
# Corresponds to the JSON property `exposureBias`
|
1854
1946
|
# @return [Float]
|
1855
1947
|
attr_accessor :exposure_bias
|
1856
1948
|
|
1857
|
-
# The exposure mode used to create the photo.
|
1949
|
+
# Output only. The exposure mode used to create the photo.
|
1858
1950
|
# Corresponds to the JSON property `exposureMode`
|
1859
1951
|
# @return [String]
|
1860
1952
|
attr_accessor :exposure_mode
|
1861
1953
|
|
1862
|
-
# The length of the exposure, in seconds.
|
1954
|
+
# Output only. The length of the exposure, in seconds.
|
1863
1955
|
# Corresponds to the JSON property `exposureTime`
|
1864
1956
|
# @return [Float]
|
1865
1957
|
attr_accessor :exposure_time
|
1866
1958
|
|
1867
|
-
# Whether a flash was used to create the photo.
|
1959
|
+
# Output only. Whether a flash was used to create the photo.
|
1868
1960
|
# Corresponds to the JSON property `flashUsed`
|
1869
1961
|
# @return [Boolean]
|
1870
1962
|
attr_accessor :flash_used
|
1871
1963
|
alias_method :flash_used?, :flash_used
|
1872
1964
|
|
1873
|
-
# The focal length used to create the photo, in millimeters.
|
1965
|
+
# Output only. The focal length used to create the photo, in millimeters.
|
1874
1966
|
# Corresponds to the JSON property `focalLength`
|
1875
1967
|
# @return [Float]
|
1876
1968
|
attr_accessor :focal_length
|
1877
1969
|
|
1878
|
-
# The height of the image in pixels.
|
1970
|
+
# Output only. The height of the image in pixels.
|
1879
1971
|
# Corresponds to the JSON property `height`
|
1880
1972
|
# @return [Fixnum]
|
1881
1973
|
attr_accessor :height
|
1882
1974
|
|
1883
|
-
# The ISO speed used to create the photo.
|
1975
|
+
# Output only. The ISO speed used to create the photo.
|
1884
1976
|
# Corresponds to the JSON property `isoSpeed`
|
1885
1977
|
# @return [Fixnum]
|
1886
1978
|
attr_accessor :iso_speed
|
1887
1979
|
|
1888
|
-
# The lens used to create the photo.
|
1980
|
+
# Output only. The lens used to create the photo.
|
1889
1981
|
# Corresponds to the JSON property `lens`
|
1890
1982
|
# @return [String]
|
1891
1983
|
attr_accessor :lens
|
1892
1984
|
|
1893
|
-
# Geographic location information stored in the image.
|
1985
|
+
# Output only. Geographic location information stored in the image.
|
1894
1986
|
# Corresponds to the JSON property `location`
|
1895
1987
|
# @return [Google::Apis::DriveV3::File::ImageMediaMetadata::Location]
|
1896
1988
|
attr_accessor :location
|
1897
1989
|
|
1898
|
-
# The smallest f-number of the lens at the focal length used to
|
1899
|
-
# (APEX value).
|
1990
|
+
# Output only. The smallest f-number of the lens at the focal length used to
|
1991
|
+
# create the photo (APEX value).
|
1900
1992
|
# Corresponds to the JSON property `maxApertureValue`
|
1901
1993
|
# @return [Float]
|
1902
1994
|
attr_accessor :max_aperture_value
|
1903
1995
|
|
1904
|
-
# The metering mode used to create the photo.
|
1996
|
+
# Output only. The metering mode used to create the photo.
|
1905
1997
|
# Corresponds to the JSON property `meteringMode`
|
1906
1998
|
# @return [String]
|
1907
1999
|
attr_accessor :metering_mode
|
1908
2000
|
|
1909
|
-
# The number of clockwise 90 degree rotations applied from the
|
1910
|
-
# orientation.
|
2001
|
+
# Output only. The number of clockwise 90 degree rotations applied from the
|
2002
|
+
# image's original orientation.
|
1911
2003
|
# Corresponds to the JSON property `rotation`
|
1912
2004
|
# @return [Fixnum]
|
1913
2005
|
attr_accessor :rotation
|
1914
2006
|
|
1915
|
-
# The type of sensor used to create the photo.
|
2007
|
+
# Output only. The type of sensor used to create the photo.
|
1916
2008
|
# Corresponds to the JSON property `sensor`
|
1917
2009
|
# @return [String]
|
1918
2010
|
attr_accessor :sensor
|
1919
2011
|
|
1920
|
-
# The distance to the subject of the photo, in meters.
|
2012
|
+
# Output only. The distance to the subject of the photo, in meters.
|
1921
2013
|
# Corresponds to the JSON property `subjectDistance`
|
1922
2014
|
# @return [Fixnum]
|
1923
2015
|
attr_accessor :subject_distance
|
1924
2016
|
|
1925
|
-
# The date and time the photo was taken (EXIF DateTime).
|
2017
|
+
# Output only. The date and time the photo was taken (EXIF DateTime).
|
1926
2018
|
# Corresponds to the JSON property `time`
|
1927
2019
|
# @return [String]
|
1928
2020
|
attr_accessor :time
|
1929
2021
|
|
1930
|
-
# The white balance mode used to create the photo.
|
2022
|
+
# Output only. The white balance mode used to create the photo.
|
1931
2023
|
# Corresponds to the JSON property `whiteBalance`
|
1932
2024
|
# @return [String]
|
1933
2025
|
attr_accessor :white_balance
|
1934
2026
|
|
1935
|
-
# The width of the image in pixels.
|
2027
|
+
# Output only. The width of the image in pixels.
|
1936
2028
|
# Corresponds to the JSON property `width`
|
1937
2029
|
# @return [Fixnum]
|
1938
2030
|
attr_accessor :width
|
@@ -1966,21 +2058,21 @@ module Google
|
|
1966
2058
|
@width = args[:width] if args.key?(:width)
|
1967
2059
|
end
|
1968
2060
|
|
1969
|
-
# Geographic location information stored in the image.
|
2061
|
+
# Output only. Geographic location information stored in the image.
|
1970
2062
|
class Location
|
1971
2063
|
include Google::Apis::Core::Hashable
|
1972
2064
|
|
1973
|
-
# The altitude stored in the image.
|
2065
|
+
# Output only. The altitude stored in the image.
|
1974
2066
|
# Corresponds to the JSON property `altitude`
|
1975
2067
|
# @return [Float]
|
1976
2068
|
attr_accessor :altitude
|
1977
2069
|
|
1978
|
-
# The latitude stored in the image.
|
2070
|
+
# Output only. The latitude stored in the image.
|
1979
2071
|
# Corresponds to the JSON property `latitude`
|
1980
2072
|
# @return [Float]
|
1981
2073
|
attr_accessor :latitude
|
1982
2074
|
|
1983
|
-
# The longitude stored in the image.
|
2075
|
+
# Output only. The longitude stored in the image.
|
1984
2076
|
# Corresponds to the JSON property `longitude`
|
1985
2077
|
# @return [Float]
|
1986
2078
|
attr_accessor :longitude
|
@@ -1998,12 +2090,12 @@ module Google
|
|
1998
2090
|
end
|
1999
2091
|
end
|
2000
2092
|
|
2001
|
-
# An overview of the labels on the file.
|
2093
|
+
# Output only. An overview of the labels on the file.
|
2002
2094
|
class LabelInfo
|
2003
2095
|
include Google::Apis::Core::Hashable
|
2004
2096
|
|
2005
|
-
# The set of labels on the file as requested by the label IDs in
|
2006
|
-
# includeLabels parameter. By default, no labels are returned.
|
2097
|
+
# Output only. The set of labels on the file as requested by the label IDs in
|
2098
|
+
# the `includeLabels` parameter. By default, no labels are returned.
|
2007
2099
|
# Corresponds to the JSON property `labels`
|
2008
2100
|
# @return [Array<Google::Apis::DriveV3::Label>]
|
2009
2101
|
attr_accessor :labels
|
@@ -2023,13 +2115,13 @@ module Google
|
|
2023
2115
|
class LinkShareMetadata
|
2024
2116
|
include Google::Apis::Core::Hashable
|
2025
2117
|
|
2026
|
-
# Whether the file is eligible for security update.
|
2118
|
+
# Output only. Whether the file is eligible for security update.
|
2027
2119
|
# Corresponds to the JSON property `securityUpdateEligible`
|
2028
2120
|
# @return [Boolean]
|
2029
2121
|
attr_accessor :security_update_eligible
|
2030
2122
|
alias_method :security_update_eligible?, :security_update_eligible
|
2031
2123
|
|
2032
|
-
# Whether the security update is enabled for this file.
|
2124
|
+
# Output only. Whether the security update is enabled for this file.
|
2033
2125
|
# Corresponds to the JSON property `securityUpdateEnabled`
|
2034
2126
|
# @return [Boolean]
|
2035
2127
|
attr_accessor :security_update_enabled
|
@@ -2047,7 +2139,7 @@ module Google
|
|
2047
2139
|
end
|
2048
2140
|
|
2049
2141
|
# Shortcut file details. Only populated for shortcut files, which have the
|
2050
|
-
# mimeType field set to application/vnd.google-apps.shortcut
|
2142
|
+
# mimeType field set to `application/vnd.google-apps.shortcut`.
|
2051
2143
|
class ShortcutDetails
|
2052
2144
|
include Google::Apis::Core::Hashable
|
2053
2145
|
|
@@ -2056,14 +2148,14 @@ module Google
|
|
2056
2148
|
# @return [String]
|
2057
2149
|
attr_accessor :target_id
|
2058
2150
|
|
2059
|
-
# The MIME type of the file that this shortcut points to. The value
|
2060
|
-
# field is a snapshot of the target's MIME type, captured when the
|
2061
|
-
# created.
|
2151
|
+
# Output only. The MIME type of the file that this shortcut points to. The value
|
2152
|
+
# of this field is a snapshot of the target's MIME type, captured when the
|
2153
|
+
# shortcut is created.
|
2062
2154
|
# Corresponds to the JSON property `targetMimeType`
|
2063
2155
|
# @return [String]
|
2064
2156
|
attr_accessor :target_mime_type
|
2065
2157
|
|
2066
|
-
# The ResourceKey for the target file.
|
2158
|
+
# Output only. The ResourceKey for the target file.
|
2067
2159
|
# Corresponds to the JSON property `targetResourceKey`
|
2068
2160
|
# @return [String]
|
2069
2161
|
attr_accessor :target_resource_key
|
@@ -2080,22 +2172,22 @@ module Google
|
|
2080
2172
|
end
|
2081
2173
|
end
|
2082
2174
|
|
2083
|
-
# Additional metadata about video media. This may not be available
|
2084
|
-
# upon upload.
|
2175
|
+
# Output only. Additional metadata about video media. This may not be available
|
2176
|
+
# immediately upon upload.
|
2085
2177
|
class VideoMediaMetadata
|
2086
2178
|
include Google::Apis::Core::Hashable
|
2087
2179
|
|
2088
|
-
# The duration of the video in milliseconds.
|
2180
|
+
# Output only. The duration of the video in milliseconds.
|
2089
2181
|
# Corresponds to the JSON property `durationMillis`
|
2090
2182
|
# @return [Fixnum]
|
2091
2183
|
attr_accessor :duration_millis
|
2092
2184
|
|
2093
|
-
# The height of the video in pixels.
|
2185
|
+
# Output only. The height of the video in pixels.
|
2094
2186
|
# Corresponds to the JSON property `height`
|
2095
2187
|
# @return [Fixnum]
|
2096
2188
|
attr_accessor :height
|
2097
2189
|
|
2098
|
-
# The width of the video in pixels.
|
2190
|
+
# Output only. The width of the video in pixels.
|
2099
2191
|
# Corresponds to the JSON property `width`
|
2100
2192
|
# @return [Fixnum]
|
2101
2193
|
attr_accessor :width
|
@@ -2124,17 +2216,17 @@ module Google
|
|
2124
2216
|
attr_accessor :files
|
2125
2217
|
|
2126
2218
|
# Whether the search process was incomplete. If true, then some search results
|
2127
|
-
#
|
2128
|
-
# searching multiple drives with the
|
2129
|
-
#
|
2130
|
-
# query by choosing a different corpus such as
|
2219
|
+
# might be missing, since all documents were not searched. This can occur when
|
2220
|
+
# searching multiple drives with the 'allDrives' corpora, but all corpora couldn'
|
2221
|
+
# t be searched. When this happens, it's suggested that clients narrow their
|
2222
|
+
# query by choosing a different corpus such as 'user' or 'drive'.
|
2131
2223
|
# Corresponds to the JSON property `incompleteSearch`
|
2132
2224
|
# @return [Boolean]
|
2133
2225
|
attr_accessor :incomplete_search
|
2134
2226
|
alias_method :incomplete_search?, :incomplete_search
|
2135
2227
|
|
2136
|
-
# Identifies what kind of resource this is. Value: the fixed string "drive#
|
2137
|
-
# fileList"
|
2228
|
+
# Identifies what kind of resource this is. Value: the fixed string `"drive#
|
2229
|
+
# fileList"`.
|
2138
2230
|
# Corresponds to the JSON property `kind`
|
2139
2231
|
# @return [String]
|
2140
2232
|
attr_accessor :kind
|
@@ -2142,7 +2234,8 @@ module Google
|
|
2142
2234
|
# The page token for the next page of files. This will be absent if the end of
|
2143
2235
|
# the files list has been reached. If the token is rejected for any reason, it
|
2144
2236
|
# should be discarded, and pagination should be restarted from the first page of
|
2145
|
-
# results.
|
2237
|
+
# results. The page token is typically valid for several hours. However, if new
|
2238
|
+
# items are added or removed, your expected results might differ.
|
2146
2239
|
# Corresponds to the JSON property `nextPageToken`
|
2147
2240
|
# @return [String]
|
2148
2241
|
attr_accessor :next_page_token
|
@@ -2169,8 +2262,8 @@ module Google
|
|
2169
2262
|
# @return [Array<String>]
|
2170
2263
|
attr_accessor :ids
|
2171
2264
|
|
2172
|
-
# Identifies what kind of resource this is. Value: the fixed string "drive#
|
2173
|
-
# generatedIds"
|
2265
|
+
# Identifies what kind of resource this is. Value: the fixed string `"drive#
|
2266
|
+
# generatedIds"`.
|
2174
2267
|
# Corresponds to the JSON property `kind`
|
2175
2268
|
# @return [String]
|
2176
2269
|
attr_accessor :kind
|
@@ -2192,11 +2285,11 @@ module Google
|
|
2192
2285
|
end
|
2193
2286
|
end
|
2194
2287
|
|
2195
|
-
# Representation of
|
2288
|
+
# Representation of label and label fields.
|
2196
2289
|
class Label
|
2197
2290
|
include Google::Apis::Core::Hashable
|
2198
2291
|
|
2199
|
-
# A map of the label
|
2292
|
+
# A map of the fields on the label, keyed by the field's ID.
|
2200
2293
|
# Corresponds to the JSON property `fields`
|
2201
2294
|
# @return [Hash<String,Google::Apis::DriveV3::LabelField>]
|
2202
2295
|
attr_accessor :fields
|
@@ -2229,7 +2322,7 @@ module Google
|
|
2229
2322
|
end
|
2230
2323
|
end
|
2231
2324
|
|
2232
|
-
# Representation of a
|
2325
|
+
# Representation of field, which is a typed key-value pair.
|
2233
2326
|
class LabelField
|
2234
2327
|
include Google::Apis::Core::Hashable
|
2235
2328
|
|
@@ -2238,12 +2331,12 @@ module Google
|
|
2238
2331
|
# @return [Array<Date>]
|
2239
2332
|
attr_accessor :date_string
|
2240
2333
|
|
2241
|
-
# The identifier of this field.
|
2334
|
+
# The identifier of this label field.
|
2242
2335
|
# Corresponds to the JSON property `id`
|
2243
2336
|
# @return [String]
|
2244
2337
|
attr_accessor :id
|
2245
2338
|
|
2246
|
-
# Only present if valueType is integer
|
2339
|
+
# Only present if `valueType` is `integer`.
|
2247
2340
|
# Corresponds to the JSON property `integer`
|
2248
2341
|
# @return [Array<Fixnum>]
|
2249
2342
|
attr_accessor :integer
|
@@ -2253,28 +2346,24 @@ module Google
|
|
2253
2346
|
# @return [String]
|
2254
2347
|
attr_accessor :kind
|
2255
2348
|
|
2256
|
-
# Only present if valueType is selection
|
2349
|
+
# Only present if `valueType` is `selection`
|
2257
2350
|
# Corresponds to the JSON property `selection`
|
2258
2351
|
# @return [Array<String>]
|
2259
2352
|
attr_accessor :selection
|
2260
2353
|
|
2261
|
-
# Only present if valueType is text
|
2354
|
+
# Only present if `valueType` is `text`.
|
2262
2355
|
# Corresponds to the JSON property `text`
|
2263
2356
|
# @return [Array<String>]
|
2264
2357
|
attr_accessor :text
|
2265
2358
|
|
2266
|
-
# Only present if valueType is user
|
2359
|
+
# Only present if `valueType` is `user`.
|
2267
2360
|
# Corresponds to the JSON property `user`
|
2268
2361
|
# @return [Array<Google::Apis::DriveV3::User>]
|
2269
2362
|
attr_accessor :user
|
2270
2363
|
|
2271
2364
|
# The field type. While new values may be supported in the future, the following
|
2272
|
-
# are currently allowed:
|
2273
|
-
#
|
2274
|
-
# - integer
|
2275
|
-
# - selection
|
2276
|
-
# - text
|
2277
|
-
# - user
|
2365
|
+
# are currently allowed: * `dateString` * `integer` * `selection` * `text` * `
|
2366
|
+
# user`
|
2278
2367
|
# Corresponds to the JSON property `valueType`
|
2279
2368
|
# @return [String]
|
2280
2369
|
attr_accessor :value_type
|
@@ -2300,7 +2389,7 @@ module Google
|
|
2300
2389
|
class LabelFieldModification
|
2301
2390
|
include Google::Apis::Core::Hashable
|
2302
2391
|
|
2303
|
-
# The ID of the
|
2392
|
+
# The ID of the field to be modified.
|
2304
2393
|
# Corresponds to the JSON property `fieldId`
|
2305
2394
|
# @return [String]
|
2306
2395
|
attr_accessor :field_id
|
@@ -2310,28 +2399,28 @@ module Google
|
|
2310
2399
|
# @return [String]
|
2311
2400
|
attr_accessor :kind
|
2312
2401
|
|
2313
|
-
# Replaces a dateString
|
2314
|
-
# in the RFC 3339 full-date format: YYYY-MM-DD.
|
2402
|
+
# Replaces the value of a dateString Field with these new values. The string
|
2403
|
+
# must be in the RFC 3339 full-date format: YYYY-MM-DD.
|
2315
2404
|
# Corresponds to the JSON property `setDateValues`
|
2316
2405
|
# @return [Array<Date>]
|
2317
2406
|
attr_accessor :set_date_values
|
2318
2407
|
|
2319
|
-
# Replaces an integer field with these new values.
|
2408
|
+
# Replaces the value of an `integer` field with these new values.
|
2320
2409
|
# Corresponds to the JSON property `setIntegerValues`
|
2321
2410
|
# @return [Array<Fixnum>]
|
2322
2411
|
attr_accessor :set_integer_values
|
2323
2412
|
|
2324
|
-
# Replaces a selection field with these new values.
|
2413
|
+
# Replaces a `selection` field with these new values.
|
2325
2414
|
# Corresponds to the JSON property `setSelectionValues`
|
2326
2415
|
# @return [Array<String>]
|
2327
2416
|
attr_accessor :set_selection_values
|
2328
2417
|
|
2329
|
-
#
|
2418
|
+
# Sets the value of a `text` field.
|
2330
2419
|
# Corresponds to the JSON property `setTextValues`
|
2331
2420
|
# @return [Array<String>]
|
2332
2421
|
attr_accessor :set_text_values
|
2333
2422
|
|
2334
|
-
# Replaces a user field with these new values. The values must be valid email
|
2423
|
+
# Replaces a `user` field with these new values. The values must be valid email
|
2335
2424
|
# addresses.
|
2336
2425
|
# Corresponds to the JSON property `setUserValues`
|
2337
2426
|
# @return [Array<String>]
|
@@ -2360,7 +2449,7 @@ module Google
|
|
2360
2449
|
end
|
2361
2450
|
end
|
2362
2451
|
|
2363
|
-
# A list of labels.
|
2452
|
+
# A list of labels applied to a file.
|
2364
2453
|
class LabelList
|
2365
2454
|
include Google::Apis::Core::Hashable
|
2366
2455
|
|
@@ -2377,7 +2466,8 @@ module Google
|
|
2377
2466
|
# The page token for the next page of labels. This field will be absent if the
|
2378
2467
|
# end of the list has been reached. If the token is rejected for any reason, it
|
2379
2468
|
# should be discarded, and pagination should be restarted from the first page of
|
2380
|
-
# results.
|
2469
|
+
# results. The page token is typically valid for several hours. However, if new
|
2470
|
+
# items are added or removed, your expected results might differ.
|
2381
2471
|
# Corresponds to the JSON property `nextPageToken`
|
2382
2472
|
# @return [String]
|
2383
2473
|
attr_accessor :next_page_token
|
@@ -2435,11 +2525,11 @@ module Google
|
|
2435
2525
|
end
|
2436
2526
|
|
2437
2527
|
# A request to modify the set of labels on a file. This request may contain many
|
2438
|
-
# modifications that will either all succeed or all fail
|
2528
|
+
# modifications that will either all succeed or all fail atomically.
|
2439
2529
|
class ModifyLabelsRequest
|
2440
2530
|
include Google::Apis::Core::Hashable
|
2441
2531
|
|
2442
|
-
# This is always drive#modifyLabelsRequest
|
2532
|
+
# This is always drive#modifyLabelsRequest.
|
2443
2533
|
# Corresponds to the JSON property `kind`
|
2444
2534
|
# @return [String]
|
2445
2535
|
attr_accessor :kind
|
@@ -2486,32 +2576,33 @@ module Google
|
|
2486
2576
|
end
|
2487
2577
|
end
|
2488
2578
|
|
2489
|
-
# A permission for a file. A permission grants a user, group, domain or the
|
2490
|
-
# world access to a file or a folder hierarchy.
|
2579
|
+
# A permission for a file. A permission grants a user, group, domain, or the
|
2580
|
+
# world access to a file or a folder hierarchy. Some resource methods (such as `
|
2581
|
+
# permissions.update`) require a `permissionId`. Use the `permissions.list`
|
2582
|
+
# method to retrieve the ID for a file, folder, or shared drive.
|
2491
2583
|
class Permission
|
2492
2584
|
include Google::Apis::Core::Hashable
|
2493
2585
|
|
2494
2586
|
# Whether the permission allows the file to be discovered through search. This
|
2495
|
-
# is only applicable for permissions of type domain or anyone
|
2587
|
+
# is only applicable for permissions of type `domain` or `anyone`.
|
2496
2588
|
# Corresponds to the JSON property `allowFileDiscovery`
|
2497
2589
|
# @return [Boolean]
|
2498
2590
|
attr_accessor :allow_file_discovery
|
2499
2591
|
alias_method :allow_file_discovery?, :allow_file_discovery
|
2500
2592
|
|
2501
|
-
# Whether the account associated with this permission has been
|
2502
|
-
# field only pertains to user and group permissions.
|
2593
|
+
# Output only. Whether the account associated with this permission has been
|
2594
|
+
# deleted. This field only pertains to user and group permissions.
|
2503
2595
|
# Corresponds to the JSON property `deleted`
|
2504
2596
|
# @return [Boolean]
|
2505
2597
|
attr_accessor :deleted
|
2506
2598
|
alias_method :deleted?, :deleted
|
2507
2599
|
|
2508
|
-
# The "pretty" name of the value of the permission. The following
|
2509
|
-
# examples for each type of permission:
|
2510
|
-
#
|
2511
|
-
#
|
2512
|
-
#
|
2513
|
-
#
|
2514
|
-
# - anyone - No displayName is present.
|
2600
|
+
# Output only. The "pretty" name of the value of the permission. The following
|
2601
|
+
# is a list of examples for each type of permission: * `user` - User's full name,
|
2602
|
+
# as defined for their Google account, such as "Joe Smith." * `group` - Name of
|
2603
|
+
# the Google Group, such as "The Company Administrators." * `domain` - String
|
2604
|
+
# domain name, such as "thecompany.com." * `anyone` - No `displayName` is
|
2605
|
+
# present.
|
2515
2606
|
# Corresponds to the JSON property `displayName`
|
2516
2607
|
# @return [String]
|
2517
2608
|
attr_accessor :display_name
|
@@ -2527,76 +2618,68 @@ module Google
|
|
2527
2618
|
attr_accessor :email_address
|
2528
2619
|
|
2529
2620
|
# The time at which this permission will expire (RFC 3339 date-time). Expiration
|
2530
|
-
# times have the following restrictions:
|
2531
|
-
# -
|
2532
|
-
#
|
2533
|
-
# - The time cannot be more than a year in the future
|
2621
|
+
# times have the following restrictions: - They can only be set on user and
|
2622
|
+
# group permissions - The time must be in the future - The time cannot be more
|
2623
|
+
# than a year in the future
|
2534
2624
|
# Corresponds to the JSON property `expirationTime`
|
2535
2625
|
# @return [DateTime]
|
2536
2626
|
attr_accessor :expiration_time
|
2537
2627
|
|
2538
|
-
# The ID of this permission. This is a unique identifier for the
|
2539
|
-
# published in User resources as permissionId
|
2540
|
-
# values.
|
2628
|
+
# Output only. The ID of this permission. This is a unique identifier for the
|
2629
|
+
# grantee, and is published in User resources as `permissionId`. IDs should be
|
2630
|
+
# treated as opaque values.
|
2541
2631
|
# Corresponds to the JSON property `id`
|
2542
2632
|
# @return [String]
|
2543
2633
|
attr_accessor :id
|
2544
2634
|
|
2545
|
-
# Identifies what kind of resource this is. Value: the fixed string
|
2546
|
-
# permission"
|
2635
|
+
# Output only. Identifies what kind of resource this is. Value: the fixed string
|
2636
|
+
# `"drive#permission"`.
|
2547
2637
|
# Corresponds to the JSON property `kind`
|
2548
2638
|
# @return [String]
|
2549
2639
|
attr_accessor :kind
|
2550
2640
|
|
2551
2641
|
# Whether the account associated with this permission is a pending owner. Only
|
2552
|
-
# populated for user type permissions for files that are not in a shared drive.
|
2642
|
+
# populated for `user` type permissions for files that are not in a shared drive.
|
2553
2643
|
# Corresponds to the JSON property `pendingOwner`
|
2554
2644
|
# @return [Boolean]
|
2555
2645
|
attr_accessor :pending_owner
|
2556
2646
|
alias_method :pending_owner?, :pending_owner
|
2557
2647
|
|
2558
|
-
# Details of whether the permissions on this shared drive item are
|
2559
|
-
# directly on this item. This is an output-only field which is
|
2560
|
-
# shared drive items.
|
2648
|
+
# Output only. Details of whether the permissions on this shared drive item are
|
2649
|
+
# inherited or directly on this item. This is an output-only field which is
|
2650
|
+
# present only for shared drive items.
|
2561
2651
|
# Corresponds to the JSON property `permissionDetails`
|
2562
2652
|
# @return [Array<Google::Apis::DriveV3::Permission::PermissionDetail>]
|
2563
2653
|
attr_accessor :permission_details
|
2564
2654
|
|
2565
|
-
# A link to the user's profile photo, if available.
|
2655
|
+
# Output only. A link to the user's profile photo, if available.
|
2566
2656
|
# Corresponds to the JSON property `photoLink`
|
2567
2657
|
# @return [String]
|
2568
2658
|
attr_accessor :photo_link
|
2569
2659
|
|
2570
2660
|
# The role granted by this permission. While new values may be supported in the
|
2571
|
-
# future, the following are currently allowed:
|
2572
|
-
#
|
2573
|
-
# - organizer
|
2574
|
-
# - fileOrganizer
|
2575
|
-
# - writer
|
2576
|
-
# - commenter
|
2577
|
-
# - reader
|
2661
|
+
# future, the following are currently allowed: * `owner` * `organizer` * `
|
2662
|
+
# fileOrganizer` * `writer` * `commenter` * `reader`
|
2578
2663
|
# Corresponds to the JSON property `role`
|
2579
2664
|
# @return [String]
|
2580
2665
|
attr_accessor :role
|
2581
2666
|
|
2582
|
-
# Deprecated
|
2667
|
+
# Output only. Deprecated: Output only. Use `permissionDetails` instead.
|
2583
2668
|
# Corresponds to the JSON property `teamDrivePermissionDetails`
|
2584
2669
|
# @return [Array<Google::Apis::DriveV3::Permission::TeamDrivePermissionDetail>]
|
2585
2670
|
attr_accessor :team_drive_permission_details
|
2586
2671
|
|
2587
|
-
# The type of the grantee. Valid values are:
|
2588
|
-
#
|
2589
|
-
#
|
2590
|
-
#
|
2591
|
-
#
|
2592
|
-
# provide an emailAddress for the user or group. When type is domain, you must
|
2593
|
-
# provide a domain. There isn't extra information required for a anyone type.
|
2672
|
+
# The type of the grantee. Valid values are: * `user` * `group` * `domain` * `
|
2673
|
+
# anyone` When creating a permission, if `type` is `user` or `group`, you must
|
2674
|
+
# provide an `emailAddress` for the user or group. When `type` is `domain`, you
|
2675
|
+
# must provide a `domain`. There isn't extra information required for an `anyone`
|
2676
|
+
# type.
|
2594
2677
|
# Corresponds to the JSON property `type`
|
2595
2678
|
# @return [String]
|
2596
2679
|
attr_accessor :type
|
2597
2680
|
|
2598
2681
|
# Indicates the view for this permission. Only populated for permissions that
|
2599
|
-
# belong to a view. published is the only supported value.
|
2682
|
+
# belong to a view. 'published' is the only supported value.
|
2600
2683
|
# Corresponds to the JSON property `view`
|
2601
2684
|
# @return [String]
|
2602
2685
|
attr_accessor :view
|
@@ -2628,34 +2711,28 @@ module Google
|
|
2628
2711
|
class PermissionDetail
|
2629
2712
|
include Google::Apis::Core::Hashable
|
2630
2713
|
|
2631
|
-
# Whether this permission is inherited. This field is always
|
2632
|
-
# an output-only field.
|
2714
|
+
# Output only. Whether this permission is inherited. This field is always
|
2715
|
+
# populated. This is an output-only field.
|
2633
2716
|
# Corresponds to the JSON property `inherited`
|
2634
2717
|
# @return [Boolean]
|
2635
2718
|
attr_accessor :inherited
|
2636
2719
|
alias_method :inherited?, :inherited
|
2637
2720
|
|
2638
|
-
# The ID of the item from which this permission is inherited. This
|
2639
|
-
# only field.
|
2721
|
+
# Output only. The ID of the item from which this permission is inherited. This
|
2722
|
+
# is an output-only field.
|
2640
2723
|
# Corresponds to the JSON property `inheritedFrom`
|
2641
2724
|
# @return [String]
|
2642
2725
|
attr_accessor :inherited_from
|
2643
2726
|
|
2644
|
-
# The permission type for this user. While new values may be added
|
2645
|
-
# the following are currently possible:
|
2646
|
-
# - file
|
2647
|
-
# - member
|
2727
|
+
# Output only. The permission type for this user. While new values may be added
|
2728
|
+
# in future, the following are currently possible: * `file` * `member`
|
2648
2729
|
# Corresponds to the JSON property `permissionType`
|
2649
2730
|
# @return [String]
|
2650
2731
|
attr_accessor :permission_type
|
2651
2732
|
|
2652
|
-
# The primary role for this user. While new values may be added in
|
2653
|
-
# the following are currently possible:
|
2654
|
-
#
|
2655
|
-
# - fileOrganizer
|
2656
|
-
# - writer
|
2657
|
-
# - commenter
|
2658
|
-
# - reader
|
2733
|
+
# Output only. The primary role for this user. While new values may be added in
|
2734
|
+
# the future, the following are currently possible: * `organizer` * `
|
2735
|
+
# fileOrganizer` * `writer` * `commenter` * `reader`
|
2659
2736
|
# Corresponds to the JSON property `role`
|
2660
2737
|
# @return [String]
|
2661
2738
|
attr_accessor :role
|
@@ -2677,23 +2754,23 @@ module Google
|
|
2677
2754
|
class TeamDrivePermissionDetail
|
2678
2755
|
include Google::Apis::Core::Hashable
|
2679
2756
|
|
2680
|
-
# Deprecated
|
2757
|
+
# Deprecated: Output only. Use `permissionDetails/inherited` instead.
|
2681
2758
|
# Corresponds to the JSON property `inherited`
|
2682
2759
|
# @return [Boolean]
|
2683
2760
|
attr_accessor :inherited
|
2684
2761
|
alias_method :inherited?, :inherited
|
2685
2762
|
|
2686
|
-
# Deprecated
|
2763
|
+
# Deprecated: Output only. Use `permissionDetails/inheritedFrom` instead.
|
2687
2764
|
# Corresponds to the JSON property `inheritedFrom`
|
2688
2765
|
# @return [String]
|
2689
2766
|
attr_accessor :inherited_from
|
2690
2767
|
|
2691
|
-
# Deprecated
|
2768
|
+
# Deprecated: Output only. Use `permissionDetails/role` instead.
|
2692
2769
|
# Corresponds to the JSON property `role`
|
2693
2770
|
# @return [String]
|
2694
2771
|
attr_accessor :role
|
2695
2772
|
|
2696
|
-
# Deprecated
|
2773
|
+
# Deprecated: Output only. Use `permissionDetails/permissionType` instead.
|
2697
2774
|
# Corresponds to the JSON property `teamDrivePermissionType`
|
2698
2775
|
# @return [String]
|
2699
2776
|
attr_accessor :team_drive_permission_type
|
@@ -2716,8 +2793,8 @@ module Google
|
|
2716
2793
|
class PermissionList
|
2717
2794
|
include Google::Apis::Core::Hashable
|
2718
2795
|
|
2719
|
-
# Identifies what kind of resource this is. Value: the fixed string "drive#
|
2720
|
-
# permissionList"
|
2796
|
+
# Identifies what kind of resource this is. Value: the fixed string `"drive#
|
2797
|
+
# permissionList"`.
|
2721
2798
|
# Corresponds to the JSON property `kind`
|
2722
2799
|
# @return [String]
|
2723
2800
|
attr_accessor :kind
|
@@ -2725,7 +2802,9 @@ module Google
|
|
2725
2802
|
# The page token for the next page of permissions. This field will be absent if
|
2726
2803
|
# the end of the permissions list has been reached. If the token is rejected for
|
2727
2804
|
# any reason, it should be discarded, and pagination should be restarted from
|
2728
|
-
# the first page of results.
|
2805
|
+
# the first page of results. The page token is typically valid for several hours.
|
2806
|
+
# However, if new items are added or removed, your expected results might
|
2807
|
+
# differ.
|
2729
2808
|
# Corresponds to the JSON property `nextPageToken`
|
2730
2809
|
# @return [String]
|
2731
2810
|
attr_accessor :next_page_token
|
@@ -2748,13 +2827,14 @@ module Google
|
|
2748
2827
|
end
|
2749
2828
|
end
|
2750
2829
|
|
2751
|
-
# A reply to a comment on a file.
|
2830
|
+
# A reply to a comment on a file. Some resource methods (such as `replies.update`
|
2831
|
+
# ) require a `replyId`. Use the `replies.list` method to retrieve the ID for a
|
2832
|
+
# reply.
|
2752
2833
|
class Reply
|
2753
2834
|
include Google::Apis::Core::Hashable
|
2754
2835
|
|
2755
|
-
# The action the reply performed to the parent comment. Valid values are:
|
2756
|
-
#
|
2757
|
-
# - reopen
|
2836
|
+
# The action the reply performed to the parent comment. Valid values are: * `
|
2837
|
+
# resolve` * `reopen`
|
2758
2838
|
# Corresponds to the JSON property `action`
|
2759
2839
|
# @return [String]
|
2760
2840
|
attr_accessor :action
|
@@ -2765,8 +2845,8 @@ module Google
|
|
2765
2845
|
attr_accessor :author
|
2766
2846
|
|
2767
2847
|
# The plain text content of the reply. This field is used for setting the
|
2768
|
-
# content, while htmlContent should be displayed. This is required on creates
|
2769
|
-
# no action is specified.
|
2848
|
+
# content, while `htmlContent` should be displayed. This is required on creates
|
2849
|
+
# if no `action` is specified.
|
2770
2850
|
# Corresponds to the JSON property `content`
|
2771
2851
|
# @return [String]
|
2772
2852
|
attr_accessor :content
|
@@ -2776,24 +2856,25 @@ module Google
|
|
2776
2856
|
# @return [DateTime]
|
2777
2857
|
attr_accessor :created_time
|
2778
2858
|
|
2779
|
-
# Whether the reply has been deleted. A deleted reply has no
|
2859
|
+
# Output only. Whether the reply has been deleted. A deleted reply has no
|
2860
|
+
# content.
|
2780
2861
|
# Corresponds to the JSON property `deleted`
|
2781
2862
|
# @return [Boolean]
|
2782
2863
|
attr_accessor :deleted
|
2783
2864
|
alias_method :deleted?, :deleted
|
2784
2865
|
|
2785
|
-
# The content of the reply with HTML formatting.
|
2866
|
+
# Output only. The content of the reply with HTML formatting.
|
2786
2867
|
# Corresponds to the JSON property `htmlContent`
|
2787
2868
|
# @return [String]
|
2788
2869
|
attr_accessor :html_content
|
2789
2870
|
|
2790
|
-
# The ID of the reply.
|
2871
|
+
# Output only. The ID of the reply.
|
2791
2872
|
# Corresponds to the JSON property `id`
|
2792
2873
|
# @return [String]
|
2793
2874
|
attr_accessor :id
|
2794
2875
|
|
2795
|
-
# Identifies what kind of resource this is. Value: the fixed string
|
2796
|
-
#
|
2876
|
+
# Output only. Identifies what kind of resource this is. Value: the fixed string
|
2877
|
+
# `"drive#reply"`.
|
2797
2878
|
# Corresponds to the JSON property `kind`
|
2798
2879
|
# @return [String]
|
2799
2880
|
attr_accessor :kind
|
@@ -2825,8 +2906,8 @@ module Google
|
|
2825
2906
|
class ReplyList
|
2826
2907
|
include Google::Apis::Core::Hashable
|
2827
2908
|
|
2828
|
-
# Identifies what kind of resource this is. Value: the fixed string "drive#
|
2829
|
-
# replyList"
|
2909
|
+
# Identifies what kind of resource this is. Value: the fixed string `"drive#
|
2910
|
+
# replyList"`.
|
2830
2911
|
# Corresponds to the JSON property `kind`
|
2831
2912
|
# @return [String]
|
2832
2913
|
attr_accessor :kind
|
@@ -2834,7 +2915,8 @@ module Google
|
|
2834
2915
|
# The page token for the next page of replies. This will be absent if the end of
|
2835
2916
|
# the replies list has been reached. If the token is rejected for any reason, it
|
2836
2917
|
# should be discarded, and pagination should be restarted from the first page of
|
2837
|
-
# results.
|
2918
|
+
# results. The page token is typically valid for several hours. However, if new
|
2919
|
+
# items are added or removed, your expected results might differ.
|
2838
2920
|
# Corresponds to the JSON property `nextPageToken`
|
2839
2921
|
# @return [String]
|
2840
2922
|
attr_accessor :next_page_token
|
@@ -2857,16 +2939,18 @@ module Google
|
|
2857
2939
|
end
|
2858
2940
|
end
|
2859
2941
|
|
2860
|
-
# The metadata for a revision to a file.
|
2942
|
+
# The metadata for a revision to a file. Some resource methods (such as `
|
2943
|
+
# revisions.update`) require a `revisionId`. Use the `revisions.list` method to
|
2944
|
+
# retrieve the ID for a revision.
|
2861
2945
|
class Revision
|
2862
2946
|
include Google::Apis::Core::Hashable
|
2863
2947
|
|
2864
|
-
# Links for exporting Docs Editors files to specific formats.
|
2948
|
+
# Output only. Links for exporting Docs Editors files to specific formats.
|
2865
2949
|
# Corresponds to the JSON property `exportLinks`
|
2866
2950
|
# @return [Hash<String,String>]
|
2867
2951
|
attr_accessor :export_links
|
2868
2952
|
|
2869
|
-
# The ID of the revision.
|
2953
|
+
# Output only. The ID of the revision.
|
2870
2954
|
# Corresponds to the JSON property `id`
|
2871
2955
|
# @return [String]
|
2872
2956
|
attr_accessor :id
|
@@ -2874,15 +2958,14 @@ module Google
|
|
2874
2958
|
# Whether to keep this revision forever, even if it is no longer the head
|
2875
2959
|
# revision. If not set, the revision will be automatically purged 30 days after
|
2876
2960
|
# newer content is uploaded. This can be set on a maximum of 200 revisions for a
|
2877
|
-
# file.
|
2878
|
-
# This field is only applicable to files with binary content in Drive.
|
2961
|
+
# file. This field is only applicable to files with binary content in Drive.
|
2879
2962
|
# Corresponds to the JSON property `keepForever`
|
2880
2963
|
# @return [Boolean]
|
2881
2964
|
attr_accessor :keep_forever
|
2882
2965
|
alias_method :keep_forever?, :keep_forever
|
2883
2966
|
|
2884
|
-
# Identifies what kind of resource this is. Value: the fixed string
|
2885
|
-
# revision"
|
2967
|
+
# Output only. Identifies what kind of resource this is. Value: the fixed string
|
2968
|
+
# `"drive#revision"`.
|
2886
2969
|
# Corresponds to the JSON property `kind`
|
2887
2970
|
# @return [String]
|
2888
2971
|
attr_accessor :kind
|
@@ -2892,13 +2975,13 @@ module Google
|
|
2892
2975
|
# @return [Google::Apis::DriveV3::User]
|
2893
2976
|
attr_accessor :last_modifying_user
|
2894
2977
|
|
2895
|
-
# The MD5 checksum of the revision's content. This is only
|
2896
|
-
# with binary content in Drive.
|
2978
|
+
# Output only. The MD5 checksum of the revision's content. This is only
|
2979
|
+
# applicable to files with binary content in Drive.
|
2897
2980
|
# Corresponds to the JSON property `md5Checksum`
|
2898
2981
|
# @return [String]
|
2899
2982
|
attr_accessor :md5_checksum
|
2900
2983
|
|
2901
|
-
# The MIME type of the revision.
|
2984
|
+
# Output only. The MIME type of the revision.
|
2902
2985
|
# Corresponds to the JSON property `mimeType`
|
2903
2986
|
# @return [String]
|
2904
2987
|
attr_accessor :mime_type
|
@@ -2908,8 +2991,8 @@ module Google
|
|
2908
2991
|
# @return [DateTime]
|
2909
2992
|
attr_accessor :modified_time
|
2910
2993
|
|
2911
|
-
# The original filename used to create this revision. This is only
|
2912
|
-
# files with binary content in Drive.
|
2994
|
+
# Output only. The original filename used to create this revision. This is only
|
2995
|
+
# applicable to files with binary content in Drive.
|
2913
2996
|
# Corresponds to the JSON property `originalFilename`
|
2914
2997
|
# @return [String]
|
2915
2998
|
attr_accessor :original_filename
|
@@ -2928,8 +3011,8 @@ module Google
|
|
2928
3011
|
attr_accessor :published
|
2929
3012
|
alias_method :published?, :published
|
2930
3013
|
|
2931
|
-
# A link to the published revision. This is only populated for
|
2932
|
-
# files.
|
3014
|
+
# Output only. A link to the published revision. This is only populated for
|
3015
|
+
# Google Sites files.
|
2933
3016
|
# Corresponds to the JSON property `publishedLink`
|
2934
3017
|
# @return [String]
|
2935
3018
|
attr_accessor :published_link
|
@@ -2941,8 +3024,8 @@ module Google
|
|
2941
3024
|
attr_accessor :published_outside_domain
|
2942
3025
|
alias_method :published_outside_domain?, :published_outside_domain
|
2943
3026
|
|
2944
|
-
# The size of the revision's content in bytes. This is only
|
2945
|
-
# with binary content in Drive.
|
3027
|
+
# Output only. The size of the revision's content in bytes. This is only
|
3028
|
+
# applicable to files with binary content in Drive.
|
2946
3029
|
# Corresponds to the JSON property `size`
|
2947
3030
|
# @return [Fixnum]
|
2948
3031
|
attr_accessor :size
|
@@ -2974,8 +3057,8 @@ module Google
|
|
2974
3057
|
class RevisionList
|
2975
3058
|
include Google::Apis::Core::Hashable
|
2976
3059
|
|
2977
|
-
# Identifies what kind of resource this is. Value: the fixed string "drive#
|
2978
|
-
# revisionList"
|
3060
|
+
# Identifies what kind of resource this is. Value: the fixed string `"drive#
|
3061
|
+
# revisionList"`.
|
2979
3062
|
# Corresponds to the JSON property `kind`
|
2980
3063
|
# @return [String]
|
2981
3064
|
attr_accessor :kind
|
@@ -2983,7 +3066,8 @@ module Google
|
|
2983
3066
|
# The page token for the next page of revisions. This will be absent if the end
|
2984
3067
|
# of the revisions list has been reached. If the token is rejected for any
|
2985
3068
|
# reason, it should be discarded, and pagination should be restarted from the
|
2986
|
-
# first page of results.
|
3069
|
+
# first page of results. The page token is typically valid for several hours.
|
3070
|
+
# However, if new items are added or removed, your expected results might differ.
|
2987
3071
|
# Corresponds to the JSON property `nextPageToken`
|
2988
3072
|
# @return [String]
|
2989
3073
|
attr_accessor :next_page_token
|
@@ -3010,13 +3094,14 @@ module Google
|
|
3010
3094
|
class StartPageToken
|
3011
3095
|
include Google::Apis::Core::Hashable
|
3012
3096
|
|
3013
|
-
# Identifies what kind of resource this is. Value: the fixed string "drive#
|
3014
|
-
# startPageToken"
|
3097
|
+
# Identifies what kind of resource this is. Value: the fixed string `"drive#
|
3098
|
+
# startPageToken"`.
|
3015
3099
|
# Corresponds to the JSON property `kind`
|
3016
3100
|
# @return [String]
|
3017
3101
|
attr_accessor :kind
|
3018
3102
|
|
3019
|
-
# The starting page token for listing changes.
|
3103
|
+
# The starting page token for listing future changes. The page token doesn't
|
3104
|
+
# expire.
|
3020
3105
|
# Corresponds to the JSON property `startPageToken`
|
3021
3106
|
# @return [String]
|
3022
3107
|
attr_accessor :start_page_token
|
@@ -3037,9 +3122,9 @@ module Google
|
|
3037
3122
|
include Google::Apis::Core::Hashable
|
3038
3123
|
|
3039
3124
|
# An image file and cropping parameters from which a background image for this
|
3040
|
-
# Team Drive is set. This is a write only field; it can only be set on drive.
|
3041
|
-
# teamdrives.update requests that don't set themeId
|
3042
|
-
# of the backgroundImageFile must be set.
|
3125
|
+
# Team Drive is set. This is a write only field; it can only be set on `drive.
|
3126
|
+
# teamdrives.update` requests that don't set `themeId`. When specified, all
|
3127
|
+
# fields of the `backgroundImageFile` must be set.
|
3043
3128
|
# Corresponds to the JSON property `backgroundImageFile`
|
3044
3129
|
# @return [Google::Apis::DriveV3::TeamDrive::BackgroundImageFile]
|
3045
3130
|
attr_accessor :background_image_file
|
@@ -3054,8 +3139,8 @@ module Google
|
|
3054
3139
|
# @return [Google::Apis::DriveV3::TeamDrive::Capabilities]
|
3055
3140
|
attr_accessor :capabilities
|
3056
3141
|
|
3057
|
-
# The color of this Team Drive as an RGB hex string. It can only be set on a
|
3058
|
-
# drive.teamdrives.update request that does not set themeId
|
3142
|
+
# The color of this Team Drive as an RGB hex string. It can only be set on a `
|
3143
|
+
# drive.teamdrives.update` request that does not set `themeId`.
|
3059
3144
|
# Corresponds to the JSON property `colorRgb`
|
3060
3145
|
# @return [String]
|
3061
3146
|
attr_accessor :color_rgb
|
@@ -3071,8 +3156,8 @@ module Google
|
|
3071
3156
|
# @return [String]
|
3072
3157
|
attr_accessor :id
|
3073
3158
|
|
3074
|
-
# Identifies what kind of resource this is. Value: the fixed string "drive#
|
3075
|
-
# teamDrive"
|
3159
|
+
# Identifies what kind of resource this is. Value: the fixed string `"drive#
|
3160
|
+
# teamDrive"`.
|
3076
3161
|
# Corresponds to the JSON property `kind`
|
3077
3162
|
# @return [String]
|
3078
3163
|
attr_accessor :kind
|
@@ -3082,8 +3167,9 @@ module Google
|
|
3082
3167
|
# @return [String]
|
3083
3168
|
attr_accessor :name
|
3084
3169
|
|
3085
|
-
# The organizational unit of this shared drive. This field is only populated on
|
3086
|
-
# drives.list responses when the useDomainAdminAccess parameter is set to
|
3170
|
+
# The organizational unit of this shared drive. This field is only populated on `
|
3171
|
+
# drives.list` responses when the `useDomainAdminAccess` parameter is set to `
|
3172
|
+
# true`.
|
3087
3173
|
# Corresponds to the JSON property `orgUnitId`
|
3088
3174
|
# @return [String]
|
3089
3175
|
attr_accessor :org_unit_id
|
@@ -3095,11 +3181,11 @@ module Google
|
|
3095
3181
|
attr_accessor :restrictions
|
3096
3182
|
|
3097
3183
|
# The ID of the theme from which the background image and color will be set. The
|
3098
|
-
# set of possible teamDriveThemes can be retrieved from a drive.about.get
|
3099
|
-
# response. When not specified on a drive.teamdrives.create request, a random
|
3184
|
+
# set of possible `teamDriveThemes` can be retrieved from a `drive.about.get`
|
3185
|
+
# response. When not specified on a `drive.teamdrives.create` request, a random
|
3100
3186
|
# theme is chosen from which the background image and color are set. This is a
|
3101
|
-
# write-only field; it can only be set on requests that don't set colorRgb or
|
3102
|
-
# backgroundImageFile
|
3187
|
+
# write-only field; it can only be set on requests that don't set `colorRgb` or `
|
3188
|
+
# backgroundImageFile`.
|
3103
3189
|
# Corresponds to the JSON property `themeId`
|
3104
3190
|
# @return [String]
|
3105
3191
|
attr_accessor :theme_id
|
@@ -3124,9 +3210,9 @@ module Google
|
|
3124
3210
|
end
|
3125
3211
|
|
3126
3212
|
# An image file and cropping parameters from which a background image for this
|
3127
|
-
# Team Drive is set. This is a write only field; it can only be set on drive.
|
3128
|
-
# teamdrives.update requests that don't set themeId
|
3129
|
-
# of the backgroundImageFile must be set.
|
3213
|
+
# Team Drive is set. This is a write only field; it can only be set on `drive.
|
3214
|
+
# teamdrives.update` requests that don't set `themeId`. When specified, all
|
3215
|
+
# fields of the `backgroundImageFile` must be set.
|
3130
3216
|
class BackgroundImageFile
|
3131
3217
|
include Google::Apis::Core::Hashable
|
3132
3218
|
|
@@ -3183,27 +3269,34 @@ module Google
|
|
3183
3269
|
attr_accessor :can_add_children
|
3184
3270
|
alias_method :can_add_children?, :can_add_children
|
3185
3271
|
|
3186
|
-
# Whether the current user can change the copyRequiresWriterPermission
|
3272
|
+
# Whether the current user can change the `copyRequiresWriterPermission`
|
3187
3273
|
# restriction of this Team Drive.
|
3188
3274
|
# Corresponds to the JSON property `canChangeCopyRequiresWriterPermissionRestriction`
|
3189
3275
|
# @return [Boolean]
|
3190
3276
|
attr_accessor :can_change_copy_requires_writer_permission_restriction
|
3191
3277
|
alias_method :can_change_copy_requires_writer_permission_restriction?, :can_change_copy_requires_writer_permission_restriction
|
3192
3278
|
|
3193
|
-
# Whether the current user can change the domainUsersOnly restriction of this
|
3279
|
+
# Whether the current user can change the `domainUsersOnly` restriction of this
|
3194
3280
|
# Team Drive.
|
3195
3281
|
# Corresponds to the JSON property `canChangeDomainUsersOnlyRestriction`
|
3196
3282
|
# @return [Boolean]
|
3197
3283
|
attr_accessor :can_change_domain_users_only_restriction
|
3198
3284
|
alias_method :can_change_domain_users_only_restriction?, :can_change_domain_users_only_restriction
|
3199
3285
|
|
3286
|
+
# Whether the current user can change the `
|
3287
|
+
# sharingFoldersRequiresOrganizerPermission` restriction of this Team Drive.
|
3288
|
+
# Corresponds to the JSON property `canChangeSharingFoldersRequiresOrganizerPermissionRestriction`
|
3289
|
+
# @return [Boolean]
|
3290
|
+
attr_accessor :can_change_sharing_folders_requires_organizer_permission_restriction
|
3291
|
+
alias_method :can_change_sharing_folders_requires_organizer_permission_restriction?, :can_change_sharing_folders_requires_organizer_permission_restriction
|
3292
|
+
|
3200
3293
|
# Whether the current user can change the background of this Team Drive.
|
3201
3294
|
# Corresponds to the JSON property `canChangeTeamDriveBackground`
|
3202
3295
|
# @return [Boolean]
|
3203
3296
|
attr_accessor :can_change_team_drive_background
|
3204
3297
|
alias_method :can_change_team_drive_background?, :can_change_team_drive_background
|
3205
3298
|
|
3206
|
-
# Whether the current user can change the teamMembersOnly restriction of this
|
3299
|
+
# Whether the current user can change the `teamMembersOnly` restriction of this
|
3207
3300
|
# Team Drive.
|
3208
3301
|
# Corresponds to the JSON property `canChangeTeamMembersOnlyRestriction`
|
3209
3302
|
# @return [Boolean]
|
@@ -3267,7 +3360,7 @@ module Google
|
|
3267
3360
|
attr_accessor :can_read_revisions
|
3268
3361
|
alias_method :can_read_revisions?, :can_read_revisions
|
3269
3362
|
|
3270
|
-
# Deprecated
|
3363
|
+
# Deprecated: Use `canDeleteChildren` or `canTrashChildren` instead.
|
3271
3364
|
# Corresponds to the JSON property `canRemoveChildren`
|
3272
3365
|
# @return [Boolean]
|
3273
3366
|
attr_accessor :can_remove_children
|
@@ -3312,6 +3405,7 @@ module Google
|
|
3312
3405
|
@can_add_children = args[:can_add_children] if args.key?(:can_add_children)
|
3313
3406
|
@can_change_copy_requires_writer_permission_restriction = args[:can_change_copy_requires_writer_permission_restriction] if args.key?(:can_change_copy_requires_writer_permission_restriction)
|
3314
3407
|
@can_change_domain_users_only_restriction = args[:can_change_domain_users_only_restriction] if args.key?(:can_change_domain_users_only_restriction)
|
3408
|
+
@can_change_sharing_folders_requires_organizer_permission_restriction = args[:can_change_sharing_folders_requires_organizer_permission_restriction] if args.key?(:can_change_sharing_folders_requires_organizer_permission_restriction)
|
3315
3409
|
@can_change_team_drive_background = args[:can_change_team_drive_background] if args.key?(:can_change_team_drive_background)
|
3316
3410
|
@can_change_team_members_only_restriction = args[:can_change_team_members_only_restriction] if args.key?(:can_change_team_members_only_restriction)
|
3317
3411
|
@can_comment = args[:can_comment] if args.key?(:can_comment)
|
@@ -3346,8 +3440,8 @@ module Google
|
|
3346
3440
|
|
3347
3441
|
# Whether the options to copy, print, or download files inside this Team Drive,
|
3348
3442
|
# should be disabled for readers and commenters. When this restriction is set to
|
3349
|
-
# true
|
3350
|
-
# this Team Drive.
|
3443
|
+
# `true`, it will override the similarly named field to `true` for any file
|
3444
|
+
# inside this Team Drive.
|
3351
3445
|
# Corresponds to the JSON property `copyRequiresWriterPermission`
|
3352
3446
|
# @return [Boolean]
|
3353
3447
|
attr_accessor :copy_requires_writer_permission
|
@@ -3362,6 +3456,13 @@ module Google
|
|
3362
3456
|
attr_accessor :domain_users_only
|
3363
3457
|
alias_method :domain_users_only?, :domain_users_only
|
3364
3458
|
|
3459
|
+
# If true, only users with the organizer role can share folders. If false, users
|
3460
|
+
# with either the organizer role or the file organizer role can share folders.
|
3461
|
+
# Corresponds to the JSON property `sharingFoldersRequiresOrganizerPermission`
|
3462
|
+
# @return [Boolean]
|
3463
|
+
attr_accessor :sharing_folders_requires_organizer_permission
|
3464
|
+
alias_method :sharing_folders_requires_organizer_permission?, :sharing_folders_requires_organizer_permission
|
3465
|
+
|
3365
3466
|
# Whether access to items inside this Team Drive is restricted to members of
|
3366
3467
|
# this Team Drive.
|
3367
3468
|
# Corresponds to the JSON property `teamMembersOnly`
|
@@ -3378,6 +3479,7 @@ module Google
|
|
3378
3479
|
@admin_managed_restrictions = args[:admin_managed_restrictions] if args.key?(:admin_managed_restrictions)
|
3379
3480
|
@copy_requires_writer_permission = args[:copy_requires_writer_permission] if args.key?(:copy_requires_writer_permission)
|
3380
3481
|
@domain_users_only = args[:domain_users_only] if args.key?(:domain_users_only)
|
3482
|
+
@sharing_folders_requires_organizer_permission = args[:sharing_folders_requires_organizer_permission] if args.key?(:sharing_folders_requires_organizer_permission)
|
3381
3483
|
@team_members_only = args[:team_members_only] if args.key?(:team_members_only)
|
3382
3484
|
end
|
3383
3485
|
end
|
@@ -3387,8 +3489,8 @@ module Google
|
|
3387
3489
|
class TeamDriveList
|
3388
3490
|
include Google::Apis::Core::Hashable
|
3389
3491
|
|
3390
|
-
# Identifies what kind of resource this is. Value: the fixed string "drive#
|
3391
|
-
# teamDriveList"
|
3492
|
+
# Identifies what kind of resource this is. Value: the fixed string `"drive#
|
3493
|
+
# teamDriveList"`.
|
3392
3494
|
# Corresponds to the JSON property `kind`
|
3393
3495
|
# @return [String]
|
3394
3496
|
attr_accessor :kind
|
@@ -3396,7 +3498,8 @@ module Google
|
|
3396
3498
|
# The page token for the next page of Team Drives. This will be absent if the
|
3397
3499
|
# end of the Team Drives list has been reached. If the token is rejected for any
|
3398
3500
|
# reason, it should be discarded, and pagination should be restarted from the
|
3399
|
-
# first page of results.
|
3501
|
+
# first page of results. The page token is typically valid for several hours.
|
3502
|
+
# However, if new items are added or removed, your expected results might differ.
|
3400
3503
|
# Corresponds to the JSON property `nextPageToken`
|
3401
3504
|
# @return [String]
|
3402
3505
|
attr_accessor :next_page_token
|
@@ -3423,34 +3526,35 @@ module Google
|
|
3423
3526
|
class User
|
3424
3527
|
include Google::Apis::Core::Hashable
|
3425
3528
|
|
3426
|
-
# A plain text displayable name for this user.
|
3529
|
+
# Output only. A plain text displayable name for this user.
|
3427
3530
|
# Corresponds to the JSON property `displayName`
|
3428
3531
|
# @return [String]
|
3429
3532
|
attr_accessor :display_name
|
3430
3533
|
|
3431
|
-
# The email address of the user. This may not be present in certain
|
3432
|
-
# the user has not made their email address visible to the requester.
|
3534
|
+
# Output only. The email address of the user. This may not be present in certain
|
3535
|
+
# contexts if the user has not made their email address visible to the requester.
|
3433
3536
|
# Corresponds to the JSON property `emailAddress`
|
3434
3537
|
# @return [String]
|
3435
3538
|
attr_accessor :email_address
|
3436
3539
|
|
3437
|
-
# Identifies what kind of resource this is. Value: the fixed string
|
3540
|
+
# Output only. Identifies what kind of resource this is. Value: the fixed string
|
3541
|
+
# `"drive#user"`.
|
3438
3542
|
# Corresponds to the JSON property `kind`
|
3439
3543
|
# @return [String]
|
3440
3544
|
attr_accessor :kind
|
3441
3545
|
|
3442
|
-
# Whether this user is the requesting user.
|
3546
|
+
# Output only. Whether this user is the requesting user.
|
3443
3547
|
# Corresponds to the JSON property `me`
|
3444
3548
|
# @return [Boolean]
|
3445
3549
|
attr_accessor :me
|
3446
3550
|
alias_method :me?, :me
|
3447
3551
|
|
3448
|
-
# The user's ID as visible in Permission resources.
|
3552
|
+
# Output only. The user's ID as visible in Permission resources.
|
3449
3553
|
# Corresponds to the JSON property `permissionId`
|
3450
3554
|
# @return [String]
|
3451
3555
|
attr_accessor :permission_id
|
3452
3556
|
|
3453
|
-
# A link to the user's profile photo, if available.
|
3557
|
+
# Output only. A link to the user's profile photo, if available.
|
3454
3558
|
# Corresponds to the JSON property `photoLink`
|
3455
3559
|
# @return [String]
|
3456
3560
|
attr_accessor :photo_link
|