google-apis-drive_v3 0.80.0 → 0.81.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f798d5b4f60448d6e92835b5191857e832d12a26c751ff98425ffc998264cfc6
4
- data.tar.gz: 4f1c1d77573574cae644b13a45d1d0ea050422f8ca673e67d0f14120f050ac35
3
+ metadata.gz: 66d84858aaff8c9d3344e73f81cfd4f29b965544218b29966ad0804596904a2b
4
+ data.tar.gz: 5734bfff848cf0962d46d512feb791336452fb552c86ebb9b204c16e68d0b3bf
5
5
  SHA512:
6
- metadata.gz: 1820d96a19fba8d4172996315552edd4d877c00ed65e7fb1a870b3a2f46d35a716c525789175444c02b884bf3c06f63c442963f97d77f1b047d7c57a3911ce71
7
- data.tar.gz: f55857d89af330def5bfbae93c5c852e457f934fc5ce132720f92ba646db61ef4dd253668c8b78224492ef667d6435a5867058bc321f465ef131fdbb23d519a2
6
+ metadata.gz: f34618563f687a8fbb5e12b1d353e2d3f7c7e8490d0a81471110c5eab2c9ae5fdd761f813dfa49bb1935fe9d507a712975efa7837892b3c0a7fab1c4a9b09ca6
7
+ data.tar.gz: 980db95fe5af8925293161168d1cfcc38e3f3125264f8c5c1b6b1623ae32cf0234c1ffe17dbf3fd4a85cf43602da79d8192a8728e7292ddd214f4a2bbc72cffe
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-drive_v3
2
2
 
3
+ ### v0.81.0 (2026-05-03)
4
+
5
+ * Regenerated from discovery document revision 20260428
6
+
3
7
  ### v0.80.0 (2026-04-19)
4
8
 
5
9
  * Regenerated from discovery document revision 20260405
@@ -313,6 +313,25 @@ module Google
313
313
  end
314
314
  end
315
315
 
316
+ # Representation of a reviewer addition.
317
+ class AddReviewer
318
+ include Google::Apis::Core::Hashable
319
+
320
+ # Required. The email of the reviewer to add.
321
+ # Corresponds to the JSON property `addedReviewerEmail`
322
+ # @return [String]
323
+ attr_accessor :added_reviewer_email
324
+
325
+ def initialize(**args)
326
+ update!(**args)
327
+ end
328
+
329
+ # Update properties of this object
330
+ def update!(**args)
331
+ @added_reviewer_email = args[:added_reviewer_email] if args.key?(:added_reviewer_email)
332
+ end
333
+ end
334
+
316
335
  # The `apps` resource provides a list of apps that a user has installed, with
317
336
  # information about each app's supported MIME types, file extensions, and other
318
337
  # details. Some resource methods (such as `apps.get`) require an `appId`. Use
@@ -561,12 +580,12 @@ module Google
561
580
  end
562
581
  end
563
582
 
564
- # Metadata for an approval. An approval is a review/approve process for a Drive
565
- # item.
583
+ # Metadata for an approval. An approval is a review or approve process for a
584
+ # Drive item.
566
585
  class Approval
567
586
  include Google::Apis::Core::Hashable
568
587
 
569
- # The Approval ID.
588
+ # The approval ID.
570
589
  # Corresponds to the JSON property `approvalId`
571
590
  # @return [String]
572
591
  attr_accessor :approval_id
@@ -601,7 +620,7 @@ module Google
601
620
  # @return [String]
602
621
  attr_accessor :modify_time
603
622
 
604
- # The responses made on the Approval by reviewers.
623
+ # The responses made on the approval by reviewers.
605
624
  # Corresponds to the JSON property `reviewerResponses`
606
625
  # @return [Array<Google::Apis::DriveV3::ReviewerResponse>]
607
626
  attr_accessor :reviewer_responses
@@ -636,11 +655,11 @@ module Google
636
655
  end
637
656
  end
638
657
 
639
- # The response of an Approvals list request.
658
+ # The response of an approvals list request.
640
659
  class ApprovalList
641
660
  include Google::Apis::Core::Hashable
642
661
 
643
- # The list of Approvals. If nextPageToken is populated, then this list may be
662
+ # The list of approvals. If `nextPageToken` is populated, then this list may be
644
663
  # incomplete and an additional page of results should be fetched.
645
664
  # Corresponds to the JSON property `items`
646
665
  # @return [Array<Google::Apis::DriveV3::Approval>]
@@ -651,10 +670,10 @@ module Google
651
670
  # @return [String]
652
671
  attr_accessor :kind
653
672
 
654
- # The page token for the next page of Approvals. This will be absent if the end
655
- # of the Approvals list has been reached. If the token is rejected for any
656
- # reason, it should be discarded, and pagination should be restarted from the
657
- # first page of results.
673
+ # The page token for the next page of approvals. This is absent if the end of
674
+ # the approvals list has been reached. If the token is rejected for any reason,
675
+ # it should be discarded, and pagination should be restarted from the first page
676
+ # of results.
658
677
  # Corresponds to the JSON property `nextPageToken`
659
678
  # @return [String]
660
679
  attr_accessor :next_page_token
@@ -671,6 +690,48 @@ module Google
671
690
  end
672
691
  end
673
692
 
693
+ # Request for approving an approval as a reviewer.
694
+ class ApproveApprovalRequest
695
+ include Google::Apis::Core::Hashable
696
+
697
+ # Optional. A message to accompany the reviewer response on the approval. This
698
+ # message is included in notifications for the action and in the approval
699
+ # activity log.
700
+ # Corresponds to the JSON property `message`
701
+ # @return [String]
702
+ attr_accessor :message
703
+
704
+ def initialize(**args)
705
+ update!(**args)
706
+ end
707
+
708
+ # Update properties of this object
709
+ def update!(**args)
710
+ @message = args[:message] if args.key?(:message)
711
+ end
712
+ end
713
+
714
+ # Request for cancelling an approval as an initiator.
715
+ class CancelApprovalRequest
716
+ include Google::Apis::Core::Hashable
717
+
718
+ # Optional. A message to accompany the cancellation of the approval. This
719
+ # message is included in notifications for the action and in the approval
720
+ # activity log.
721
+ # Corresponds to the JSON property `message`
722
+ # @return [String]
723
+ attr_accessor :message
724
+
725
+ def initialize(**args)
726
+ update!(**args)
727
+ end
728
+
729
+ # Update properties of this object
730
+ def update!(**args)
731
+ @message = args[:message] if args.key?(:message)
732
+ end
733
+ end
734
+
674
735
  # A change to a file or shared drive.
675
736
  class Change
676
737
  include Google::Apis::Core::Hashable
@@ -716,7 +777,7 @@ module Google
716
777
  attr_accessor :removed
717
778
  alias_method :removed?, :removed
718
779
 
719
- # Deprecated: use the drive collection instead.
780
+ # Deprecated: use the drive collection instead. Next ID: 33
720
781
  # Corresponds to the JSON property `teamDrive`
721
782
  # @return [Google::Apis::DriveV3::TeamDrive]
722
783
  attr_accessor :team_drive
@@ -1042,6 +1103,26 @@ module Google
1042
1103
  end
1043
1104
  end
1044
1105
 
1106
+ # Request for commenting on an approval.
1107
+ class CommentApprovalRequest
1108
+ include Google::Apis::Core::Hashable
1109
+
1110
+ # Required. A message to comment on the approval. This message is included in
1111
+ # notifications for the action and in the approval activity log.
1112
+ # Corresponds to the JSON property `message`
1113
+ # @return [String]
1114
+ attr_accessor :message
1115
+
1116
+ def initialize(**args)
1117
+ update!(**args)
1118
+ end
1119
+
1120
+ # Update properties of this object
1121
+ def update!(**args)
1122
+ @message = args[:message] if args.key?(:message)
1123
+ end
1124
+ end
1125
+
1045
1126
  # A list of comments on a file.
1046
1127
  class CommentList
1047
1128
  include Google::Apis::Core::Hashable
@@ -1146,6 +1227,27 @@ module Google
1146
1227
  end
1147
1228
  end
1148
1229
 
1230
+ # Request for declining an approval as a reviewer.
1231
+ class DeclineApprovalRequest
1232
+ include Google::Apis::Core::Hashable
1233
+
1234
+ # Optional. A message to accompany the reviewer response on the approval. This
1235
+ # message is included in notifications for the action and in the approval
1236
+ # activity log.
1237
+ # Corresponds to the JSON property `message`
1238
+ # @return [String]
1239
+ attr_accessor :message
1240
+
1241
+ def initialize(**args)
1242
+ update!(**args)
1243
+ end
1244
+
1245
+ # Update properties of this object
1246
+ def update!(**args)
1247
+ @message = args[:message] if args.key?(:message)
1248
+ end
1249
+ end
1250
+
1149
1251
  # Representation of the CSE DecryptionMetadata.
1150
1252
  class DecryptionMetadata
1151
1253
  include Google::Apis::Core::Hashable
@@ -1217,8 +1319,8 @@ module Google
1217
1319
  attr_accessor :restricted_for_readers
1218
1320
  alias_method :restricted_for_readers?, :restricted_for_readers
1219
1321
 
1220
- # Whether download and copy is restricted for writers. If `true`, download is
1221
- # also restricted for readers.
1322
+ # Whether download and copy is restricted for writers. If true, download is also
1323
+ # restricted for readers.
1222
1324
  # Corresponds to the JSON property `restrictedForWriters`
1223
1325
  # @return [Boolean]
1224
1326
  attr_accessor :restricted_for_writers
@@ -1853,7 +1955,7 @@ module Google
1853
1955
  # @return [String]
1854
1956
  attr_accessor :kind
1855
1957
 
1856
- # Output only. An overview of the labels on the file.
1958
+ # Label information on the file.
1857
1959
  # Corresponds to the JSON property `labelInfo`
1858
1960
  # @return [Google::Apis::DriveV3::File::LabelInfo]
1859
1961
  attr_accessor :label_info
@@ -2000,9 +2102,7 @@ module Google
2000
2102
  # @return [Google::Apis::DriveV3::User]
2001
2103
  attr_accessor :sharing_user
2002
2104
 
2003
- # Shortcut file details. Only populated for shortcut files, which have the
2004
- # mimeType field set to `application/vnd.google-apps.shortcut`. Can only be set
2005
- # on `files.create` requests.
2105
+ # Information about a shortcut file.
2006
2106
  # Corresponds to the JSON property `shortcutDetails`
2007
2107
  # @return [Google::Apis::DriveV3::File::ShortcutDetails]
2008
2108
  attr_accessor :shortcut_details
@@ -2478,6 +2578,12 @@ module Google
2478
2578
  attr_accessor :can_share
2479
2579
  alias_method :can_share?, :can_share
2480
2580
 
2581
+ # Whether the current user can start an approval on the file.
2582
+ # Corresponds to the JSON property `canStartApproval`
2583
+ # @return [Boolean]
2584
+ attr_accessor :can_start_approval
2585
+ alias_method :can_start_approval?, :can_start_approval
2586
+
2481
2587
  # Output only. Whether the current user can move this file to trash.
2482
2588
  # Corresponds to the JSON property `canTrash`
2483
2589
  # @return [Boolean]
@@ -2545,6 +2651,7 @@ module Google
2545
2651
  @can_remove_my_drive_parent = args[:can_remove_my_drive_parent] if args.key?(:can_remove_my_drive_parent)
2546
2652
  @can_rename = args[:can_rename] if args.key?(:can_rename)
2547
2653
  @can_share = args[:can_share] if args.key?(:can_share)
2654
+ @can_start_approval = args[:can_start_approval] if args.key?(:can_start_approval)
2548
2655
  @can_trash = args[:can_trash] if args.key?(:can_trash)
2549
2656
  @can_trash_children = args[:can_trash_children] if args.key?(:can_trash_children)
2550
2657
  @can_untrash = args[:can_untrash] if args.key?(:can_untrash)
@@ -2780,7 +2887,7 @@ module Google
2780
2887
  end
2781
2888
  end
2782
2889
 
2783
- # Output only. An overview of the labels on the file.
2890
+ # Label information on the file.
2784
2891
  class LabelInfo
2785
2892
  include Google::Apis::Core::Hashable
2786
2893
 
@@ -2828,9 +2935,7 @@ module Google
2828
2935
  end
2829
2936
  end
2830
2937
 
2831
- # Shortcut file details. Only populated for shortcut files, which have the
2832
- # mimeType field set to `application/vnd.google-apps.shortcut`. Can only be set
2833
- # on `files.create` requests.
2938
+ # Information about a shortcut file.
2834
2939
  class ShortcutDetails
2835
2940
  include Google::Apis::Core::Hashable
2836
2941
 
@@ -3438,12 +3543,13 @@ module Google
3438
3543
  # @return [String]
3439
3544
  attr_accessor :display_name
3440
3545
 
3441
- # The domain to which this permission refers.
3546
+ # Output only. The domain to which this permission refers.
3442
3547
  # Corresponds to the JSON property `domain`
3443
3548
  # @return [String]
3444
3549
  attr_accessor :domain
3445
3550
 
3446
- # The email address of the user or group to which this permission refers.
3551
+ # Output only. The email address of the user or group to which this permission
3552
+ # refers.
3447
3553
  # Corresponds to the JSON property `emailAddress`
3448
3554
  # @return [String]
3449
3555
  attr_accessor :email_address
@@ -3674,6 +3780,64 @@ module Google
3674
3780
  end
3675
3781
  end
3676
3782
 
3783
+ # Request for reassigning an approval. Reviewers can be added or replaced, but
3784
+ # not removed.
3785
+ class ReassignApprovalRequest
3786
+ include Google::Apis::Core::Hashable
3787
+
3788
+ # Optional. The list of reviewers to add.
3789
+ # Corresponds to the JSON property `addReviewers`
3790
+ # @return [Array<Google::Apis::DriveV3::AddReviewer>]
3791
+ attr_accessor :add_reviewers
3792
+
3793
+ # Optional. A message to send to the new reviewers. This message is included in
3794
+ # notifications for the action and in the approval activity log.
3795
+ # Corresponds to the JSON property `message`
3796
+ # @return [String]
3797
+ attr_accessor :message
3798
+
3799
+ # Optional. The list of reviewer replacements.
3800
+ # Corresponds to the JSON property `replaceReviewers`
3801
+ # @return [Array<Google::Apis::DriveV3::ReplaceReviewer>]
3802
+ attr_accessor :replace_reviewers
3803
+
3804
+ def initialize(**args)
3805
+ update!(**args)
3806
+ end
3807
+
3808
+ # Update properties of this object
3809
+ def update!(**args)
3810
+ @add_reviewers = args[:add_reviewers] if args.key?(:add_reviewers)
3811
+ @message = args[:message] if args.key?(:message)
3812
+ @replace_reviewers = args[:replace_reviewers] if args.key?(:replace_reviewers)
3813
+ end
3814
+ end
3815
+
3816
+ # Representation of a reviewer replacement.
3817
+ class ReplaceReviewer
3818
+ include Google::Apis::Core::Hashable
3819
+
3820
+ # Required. The email of the reviewer to add.
3821
+ # Corresponds to the JSON property `addedReviewerEmail`
3822
+ # @return [String]
3823
+ attr_accessor :added_reviewer_email
3824
+
3825
+ # Required. The email of the reviewer to remove.
3826
+ # Corresponds to the JSON property `removedReviewerEmail`
3827
+ # @return [String]
3828
+ attr_accessor :removed_reviewer_email
3829
+
3830
+ def initialize(**args)
3831
+ update!(**args)
3832
+ end
3833
+
3834
+ # Update properties of this object
3835
+ def update!(**args)
3836
+ @added_reviewer_email = args[:added_reviewer_email] if args.key?(:added_reviewer_email)
3837
+ @removed_reviewer_email = args[:removed_reviewer_email] if args.key?(:removed_reviewer_email)
3838
+ end
3839
+ end
3840
+
3677
3841
  # A reply to a comment on a file. Some resource methods (such as `replies.update`
3678
3842
  # ) require a `replyId`. Use the `replies.list` method to retrieve the ID for a
3679
3843
  # reply.
@@ -3843,7 +4007,7 @@ module Google
3843
4007
  end
3844
4008
  end
3845
4009
 
3846
- # A response on an Approval made by a specific Reviewer.
4010
+ # A response on an approval made by a specific reviewer.
3847
4011
  class ReviewerResponse
3848
4012
  include Google::Apis::Core::Hashable
3849
4013
 
@@ -3852,7 +4016,7 @@ module Google
3852
4016
  # @return [String]
3853
4017
  attr_accessor :kind
3854
4018
 
3855
- # A Reviewer’s Response for the Approval.
4019
+ # A reviewer’s response for the approval.
3856
4020
  # Corresponds to the JSON property `response`
3857
4021
  # @return [String]
3858
4022
  attr_accessor :response
@@ -4025,6 +4189,45 @@ module Google
4025
4189
  end
4026
4190
  end
4027
4191
 
4192
+ # Allows creating an approval on a file.
4193
+ class StartApprovalRequest
4194
+ include Google::Apis::Core::Hashable
4195
+
4196
+ # Optional. The time that the approval is due.
4197
+ # Corresponds to the JSON property `dueTime`
4198
+ # @return [String]
4199
+ attr_accessor :due_time
4200
+
4201
+ # Optional. Whether to lock the file when starting the approval.
4202
+ # Corresponds to the JSON property `lockFile`
4203
+ # @return [Boolean]
4204
+ attr_accessor :lock_file
4205
+ alias_method :lock_file?, :lock_file
4206
+
4207
+ # Optional. A message to send to reviewers when notifying them of the approval
4208
+ # request.
4209
+ # Corresponds to the JSON property `message`
4210
+ # @return [String]
4211
+ attr_accessor :message
4212
+
4213
+ # Required. The emails of the users who are set to review the approval.
4214
+ # Corresponds to the JSON property `reviewerEmails`
4215
+ # @return [Array<String>]
4216
+ attr_accessor :reviewer_emails
4217
+
4218
+ def initialize(**args)
4219
+ update!(**args)
4220
+ end
4221
+
4222
+ # Update properties of this object
4223
+ def update!(**args)
4224
+ @due_time = args[:due_time] if args.key?(:due_time)
4225
+ @lock_file = args[:lock_file] if args.key?(:lock_file)
4226
+ @message = args[:message] if args.key?(:message)
4227
+ @reviewer_emails = args[:reviewer_emails] if args.key?(:reviewer_emails)
4228
+ end
4229
+ end
4230
+
4028
4231
  #
4029
4232
  class StartPageToken
4030
4233
  include Google::Apis::Core::Hashable
@@ -4091,14 +4294,11 @@ module Google
4091
4294
  end
4092
4295
  end
4093
4296
 
4094
- # Deprecated: use the drive collection instead.
4297
+ # Deprecated: use the drive collection instead. Next ID: 33
4095
4298
  class TeamDrive
4096
4299
  include Google::Apis::Core::Hashable
4097
4300
 
4098
- # An image file and cropping parameters from which a background image for this
4099
- # Team Drive is set. This is a write only field; it can only be set on `drive.
4100
- # teamdrives.update` requests that don't set `themeId`. When specified, all
4101
- # fields of the `backgroundImageFile` must be set.
4301
+ # The background image file for a Team Drive.
4102
4302
  # Corresponds to the JSON property `backgroundImageFile`
4103
4303
  # @return [Google::Apis::DriveV3::TeamDrive::BackgroundImageFile]
4104
4304
  attr_accessor :background_image_file
@@ -4183,10 +4383,7 @@ module Google
4183
4383
  @theme_id = args[:theme_id] if args.key?(:theme_id)
4184
4384
  end
4185
4385
 
4186
- # An image file and cropping parameters from which a background image for this
4187
- # Team Drive is set. This is a write only field; it can only be set on `drive.
4188
- # teamdrives.update` requests that don't set `themeId`. When specified, all
4189
- # fields of the `backgroundImageFile` must be set.
4386
+ # The background image file for a Team Drive.
4190
4387
  class BackgroundImageFile
4191
4388
  include Google::Apis::Core::Hashable
4192
4389
 
@@ -4257,8 +4454,8 @@ module Google
4257
4454
  attr_accessor :can_change_domain_users_only_restriction
4258
4455
  alias_method :can_change_domain_users_only_restriction?, :can_change_domain_users_only_restriction
4259
4456
 
4260
- # Whether the current user can change organizer-applied download restrictions of
4261
- # this shared drive.
4457
+ # Output only. Whether the current user can change organizer-applied download
4458
+ # restrictions of this shared drive.
4262
4459
  # Corresponds to the JSON property `canChangeDownloadRestriction`
4263
4460
  # @return [Boolean]
4264
4461
  attr_accessor :can_change_download_restriction
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DriveV3
18
18
  # Version of the google-apis-drive_v3 gem
19
- GEM_VERSION = "0.80.0"
19
+ GEM_VERSION = "0.81.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20260405"
25
+ REVISION = "20260428"
26
26
  end
27
27
  end
28
28
  end
@@ -58,6 +58,12 @@ module Google
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
+ class AddReviewer
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
61
67
  class App
62
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
69
 
@@ -88,6 +94,18 @@ module Google
88
94
  include Google::Apis::Core::JsonObjectSupport
89
95
  end
90
96
 
97
+ class ApproveApprovalRequest
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class CancelApprovalRequest
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
91
109
  class Change
92
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
111
 
@@ -124,6 +142,12 @@ module Google
124
142
  include Google::Apis::Core::JsonObjectSupport
125
143
  end
126
144
 
145
+ class CommentApprovalRequest
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
127
151
  class CommentList
128
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
153
 
@@ -136,6 +160,12 @@ module Google
136
160
  include Google::Apis::Core::JsonObjectSupport
137
161
  end
138
162
 
163
+ class DeclineApprovalRequest
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
139
169
  class DecryptionMetadata
140
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
171
 
@@ -340,6 +370,18 @@ module Google
340
370
  include Google::Apis::Core::JsonObjectSupport
341
371
  end
342
372
 
373
+ class ReassignApprovalRequest
374
+ class Representation < Google::Apis::Core::JsonRepresentation; end
375
+
376
+ include Google::Apis::Core::JsonObjectSupport
377
+ end
378
+
379
+ class ReplaceReviewer
380
+ class Representation < Google::Apis::Core::JsonRepresentation; end
381
+
382
+ include Google::Apis::Core::JsonObjectSupport
383
+ end
384
+
343
385
  class Reply
344
386
  class Representation < Google::Apis::Core::JsonRepresentation; end
345
387
 
@@ -376,6 +418,12 @@ module Google
376
418
  include Google::Apis::Core::JsonObjectSupport
377
419
  end
378
420
 
421
+ class StartApprovalRequest
422
+ class Representation < Google::Apis::Core::JsonRepresentation; end
423
+
424
+ include Google::Apis::Core::JsonObjectSupport
425
+ end
426
+
379
427
  class StartPageToken
380
428
  class Representation < Google::Apis::Core::JsonRepresentation; end
381
429
 
@@ -505,6 +553,13 @@ module Google
505
553
  end
506
554
  end
507
555
 
556
+ class AddReviewer
557
+ # @private
558
+ class Representation < Google::Apis::Core::JsonRepresentation
559
+ property :added_reviewer_email, as: 'addedReviewerEmail'
560
+ end
561
+ end
562
+
508
563
  class App
509
564
  # @private
510
565
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -584,6 +639,20 @@ module Google
584
639
  end
585
640
  end
586
641
 
642
+ class ApproveApprovalRequest
643
+ # @private
644
+ class Representation < Google::Apis::Core::JsonRepresentation
645
+ property :message, as: 'message'
646
+ end
647
+ end
648
+
649
+ class CancelApprovalRequest
650
+ # @private
651
+ class Representation < Google::Apis::Core::JsonRepresentation
652
+ property :message, as: 'message'
653
+ end
654
+ end
655
+
587
656
  class Change
588
657
  # @private
589
658
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -674,6 +743,13 @@ module Google
674
743
  end
675
744
  end
676
745
 
746
+ class CommentApprovalRequest
747
+ # @private
748
+ class Representation < Google::Apis::Core::JsonRepresentation
749
+ property :message, as: 'message'
750
+ end
751
+ end
752
+
677
753
  class CommentList
678
754
  # @private
679
755
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -699,6 +775,13 @@ module Google
699
775
  end
700
776
  end
701
777
 
778
+ class DeclineApprovalRequest
779
+ # @private
780
+ class Representation < Google::Apis::Core::JsonRepresentation
781
+ property :message, as: 'message'
782
+ end
783
+ end
784
+
702
785
  class DecryptionMetadata
703
786
  # @private
704
787
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -947,6 +1030,7 @@ module Google
947
1030
  property :can_remove_my_drive_parent, as: 'canRemoveMyDriveParent'
948
1031
  property :can_rename, as: 'canRename'
949
1032
  property :can_share, as: 'canShare'
1033
+ property :can_start_approval, as: 'canStartApproval'
950
1034
  property :can_trash, as: 'canTrash'
951
1035
  property :can_trash_children, as: 'canTrashChildren'
952
1036
  property :can_untrash, as: 'canUntrash'
@@ -1230,6 +1314,25 @@ module Google
1230
1314
  end
1231
1315
  end
1232
1316
 
1317
+ class ReassignApprovalRequest
1318
+ # @private
1319
+ class Representation < Google::Apis::Core::JsonRepresentation
1320
+ collection :add_reviewers, as: 'addReviewers', class: Google::Apis::DriveV3::AddReviewer, decorator: Google::Apis::DriveV3::AddReviewer::Representation
1321
+
1322
+ property :message, as: 'message'
1323
+ collection :replace_reviewers, as: 'replaceReviewers', class: Google::Apis::DriveV3::ReplaceReviewer, decorator: Google::Apis::DriveV3::ReplaceReviewer::Representation
1324
+
1325
+ end
1326
+ end
1327
+
1328
+ class ReplaceReviewer
1329
+ # @private
1330
+ class Representation < Google::Apis::Core::JsonRepresentation
1331
+ property :added_reviewer_email, as: 'addedReviewerEmail'
1332
+ property :removed_reviewer_email, as: 'removedReviewerEmail'
1333
+ end
1334
+ end
1335
+
1233
1336
  class Reply
1234
1337
  # @private
1235
1338
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1312,6 +1415,16 @@ module Google
1312
1415
  end
1313
1416
  end
1314
1417
 
1418
+ class StartApprovalRequest
1419
+ # @private
1420
+ class Representation < Google::Apis::Core::JsonRepresentation
1421
+ property :due_time, as: 'dueTime'
1422
+ property :lock_file, as: 'lockFile'
1423
+ property :message, as: 'message'
1424
+ collection :reviewer_emails, as: 'reviewerEmails'
1425
+ end
1426
+ end
1427
+
1315
1428
  class StartPageToken
1316
1429
  # @private
1317
1430
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -192,11 +192,170 @@ module Google
192
192
  execute_or_queue_command(command, &block)
193
193
  end
194
194
 
195
- # Gets an Approval by ID.
195
+ # Approves an approval. For more information, see [Manage approvals](https://
196
+ # developers.google.com/workspace/drive/api/guides/approvals). This is used to
197
+ # update the ReviewerResponse of the requesting user with a Response of `
198
+ # APPROVED`. If this is the last required reviewer response, this also completes
199
+ # the approval and sets the approval Status to `APPROVED`.
196
200
  # @param [String] file_id
197
- # Required. The ID of the file the Approval is on.
201
+ # Required. The ID of the file that the approval is on.
198
202
  # @param [String] approval_id
199
- # Required. The ID of the Approval.
203
+ # Required. The ID of the approval to approve.
204
+ # @param [Google::Apis::DriveV3::ApproveApprovalRequest] approve_approval_request_object
205
+ # @param [String] fields
206
+ # Selector specifying which fields to include in a partial response.
207
+ # @param [String] quota_user
208
+ # Available to use for quota purposes for server-side applications. Can be any
209
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
210
+ # @param [Google::Apis::RequestOptions] options
211
+ # Request-specific options
212
+ #
213
+ # @yield [result, err] Result & error if block supplied
214
+ # @yieldparam result [Google::Apis::DriveV3::Approval] parsed result object
215
+ # @yieldparam err [StandardError] error object if request failed
216
+ #
217
+ # @return [Google::Apis::DriveV3::Approval]
218
+ #
219
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
220
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
221
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
222
+ def approve_approval(file_id, approval_id, approve_approval_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
223
+ command = make_simple_command(:post, 'files/{fileId}/approvals/{approvalId}:approve', options)
224
+ command.request_representation = Google::Apis::DriveV3::ApproveApprovalRequest::Representation
225
+ command.request_object = approve_approval_request_object
226
+ command.response_representation = Google::Apis::DriveV3::Approval::Representation
227
+ command.response_class = Google::Apis::DriveV3::Approval
228
+ command.params['fileId'] = file_id unless file_id.nil?
229
+ command.params['approvalId'] = approval_id unless approval_id.nil?
230
+ command.query['fields'] = fields unless fields.nil?
231
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
232
+ execute_or_queue_command(command, &block)
233
+ end
234
+
235
+ # Cancels an approval. For more information, see [Manage approvals](https://
236
+ # developers.google.com/workspace/drive/api/guides/approvals). Updates the
237
+ # approval Status to `CANCELLED`. This can be called by any user with the `
238
+ # writer` permission on the file while the approval Status is `IN_PROGRESS`.
239
+ # @param [String] file_id
240
+ # Required. The ID of the file that the approval is on.
241
+ # @param [String] approval_id
242
+ # Required. The ID of the approval to cancel.
243
+ # @param [Google::Apis::DriveV3::CancelApprovalRequest] cancel_approval_request_object
244
+ # @param [String] fields
245
+ # Selector specifying which fields to include in a partial response.
246
+ # @param [String] quota_user
247
+ # Available to use for quota purposes for server-side applications. Can be any
248
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
249
+ # @param [Google::Apis::RequestOptions] options
250
+ # Request-specific options
251
+ #
252
+ # @yield [result, err] Result & error if block supplied
253
+ # @yieldparam result [Google::Apis::DriveV3::Approval] parsed result object
254
+ # @yieldparam err [StandardError] error object if request failed
255
+ #
256
+ # @return [Google::Apis::DriveV3::Approval]
257
+ #
258
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
259
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
260
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
261
+ def cancel_approval(file_id, approval_id, cancel_approval_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
262
+ command = make_simple_command(:post, 'files/{fileId}/approvals/{approvalId}:cancel', options)
263
+ command.request_representation = Google::Apis::DriveV3::CancelApprovalRequest::Representation
264
+ command.request_object = cancel_approval_request_object
265
+ command.response_representation = Google::Apis::DriveV3::Approval::Representation
266
+ command.response_class = Google::Apis::DriveV3::Approval
267
+ command.params['fileId'] = file_id unless file_id.nil?
268
+ command.params['approvalId'] = approval_id unless approval_id.nil?
269
+ command.query['fields'] = fields unless fields.nil?
270
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
271
+ execute_or_queue_command(command, &block)
272
+ end
273
+
274
+ # Comments on an approval. For more information, see [Manage approvals](https://
275
+ # developers.google.com/workspace/drive/api/guides/approvals). This sends a
276
+ # notification to both the initiator and the reviewers. Additionally, a message
277
+ # is also added to the approval activity log.
278
+ # @param [String] file_id
279
+ # Required. The ID of the file that the approval is on.
280
+ # @param [String] approval_id
281
+ # Required. The ID of the approval to comment on.
282
+ # @param [Google::Apis::DriveV3::CommentApprovalRequest] comment_approval_request_object
283
+ # @param [String] fields
284
+ # Selector specifying which fields to include in a partial response.
285
+ # @param [String] quota_user
286
+ # Available to use for quota purposes for server-side applications. Can be any
287
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
288
+ # @param [Google::Apis::RequestOptions] options
289
+ # Request-specific options
290
+ #
291
+ # @yield [result, err] Result & error if block supplied
292
+ # @yieldparam result [Google::Apis::DriveV3::Approval] parsed result object
293
+ # @yieldparam err [StandardError] error object if request failed
294
+ #
295
+ # @return [Google::Apis::DriveV3::Approval]
296
+ #
297
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
298
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
299
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
300
+ def comment_approval(file_id, approval_id, comment_approval_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
301
+ command = make_simple_command(:post, 'files/{fileId}/approvals/{approvalId}:comment', options)
302
+ command.request_representation = Google::Apis::DriveV3::CommentApprovalRequest::Representation
303
+ command.request_object = comment_approval_request_object
304
+ command.response_representation = Google::Apis::DriveV3::Approval::Representation
305
+ command.response_class = Google::Apis::DriveV3::Approval
306
+ command.params['fileId'] = file_id unless file_id.nil?
307
+ command.params['approvalId'] = approval_id unless approval_id.nil?
308
+ command.query['fields'] = fields unless fields.nil?
309
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
310
+ execute_or_queue_command(command, &block)
311
+ end
312
+
313
+ # Declines an approval. For more information, see [Manage approvals](https://
314
+ # developers.google.com/workspace/drive/api/guides/approvals). This is used to
315
+ # update the ReviewerResponse of the requesting user with a Response of `
316
+ # DECLINED`. This also completes the approval and sets the approval Status to `
317
+ # DECLINED`.
318
+ # @param [String] file_id
319
+ # Required. The ID of the file that the approval is on.
320
+ # @param [String] approval_id
321
+ # Required. The ID of the approval to decline.
322
+ # @param [Google::Apis::DriveV3::DeclineApprovalRequest] decline_approval_request_object
323
+ # @param [String] fields
324
+ # Selector specifying which fields to include in a partial response.
325
+ # @param [String] quota_user
326
+ # Available to use for quota purposes for server-side applications. Can be any
327
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
328
+ # @param [Google::Apis::RequestOptions] options
329
+ # Request-specific options
330
+ #
331
+ # @yield [result, err] Result & error if block supplied
332
+ # @yieldparam result [Google::Apis::DriveV3::Approval] parsed result object
333
+ # @yieldparam err [StandardError] error object if request failed
334
+ #
335
+ # @return [Google::Apis::DriveV3::Approval]
336
+ #
337
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
338
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
339
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
340
+ def decline_approval(file_id, approval_id, decline_approval_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
341
+ command = make_simple_command(:post, 'files/{fileId}/approvals/{approvalId}:decline', options)
342
+ command.request_representation = Google::Apis::DriveV3::DeclineApprovalRequest::Representation
343
+ command.request_object = decline_approval_request_object
344
+ command.response_representation = Google::Apis::DriveV3::Approval::Representation
345
+ command.response_class = Google::Apis::DriveV3::Approval
346
+ command.params['fileId'] = file_id unless file_id.nil?
347
+ command.params['approvalId'] = approval_id unless approval_id.nil?
348
+ command.query['fields'] = fields unless fields.nil?
349
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
350
+ execute_or_queue_command(command, &block)
351
+ end
352
+
353
+ # Gets an approval by ID. For more information, see [Manage approvals](https://
354
+ # developers.google.com/workspace/drive/api/guides/approvals).
355
+ # @param [String] file_id
356
+ # Required. The ID of the file that the approval is on.
357
+ # @param [String] approval_id
358
+ # Required. The ID of the approval.
200
359
  # @param [String] fields
201
360
  # Selector specifying which fields to include in a partial response.
202
361
  # @param [String] quota_user
@@ -225,15 +384,16 @@ module Google
225
384
  execute_or_queue_command(command, &block)
226
385
  end
227
386
 
228
- # Lists the Approvals on a file.
387
+ # Lists the approvals on a file. For more information, see [Manage approvals](
388
+ # https://developers.google.com/workspace/drive/api/guides/approvals).
229
389
  # @param [String] file_id
230
- # Required. The ID of the file the Approval is on.
390
+ # Required. The ID of the file that the approval is on.
231
391
  # @param [Fixnum] page_size
232
- # The maximum number of Approvals to return. When not set, at most 100 Approvals
233
- # will be returned.
392
+ # The maximum number of approvals to return. When not set, at most 100 approvals
393
+ # are returned.
234
394
  # @param [String] page_token
235
395
  # The token for continuing a previous list request on the next page. This should
236
- # be set to the value of nextPageToken from a previous response.
396
+ # be set to the value of `nextPageToken` from a previous response.
237
397
  # @param [String] fields
238
398
  # Selector specifying which fields to include in a partial response.
239
399
  # @param [String] quota_user
@@ -263,6 +423,83 @@ module Google
263
423
  execute_or_queue_command(command, &block)
264
424
  end
265
425
 
426
+ # Reassigns the reviewers on an approval. For more information, see [Manage
427
+ # approvals](https://developers.google.com/workspace/drive/api/guides/approvals).
428
+ # Adds or replaces reviewers in the ReviewerResponse of the approval. This can
429
+ # be called by any user with the `writer` permission on the file while the
430
+ # approval Status is `IN_PROGRESS` and the Response for the reviewer being
431
+ # reassigned is `NO_RESPONSE`. A user with the `reader` permission can only
432
+ # reassign an approval that's assigned to themselves. Removing a reviewer isn't
433
+ # allowed.
434
+ # @param [String] file_id
435
+ # Required. The ID of the file that the approval is on.
436
+ # @param [String] approval_id
437
+ # Required. The ID of the approval to reassign.
438
+ # @param [Google::Apis::DriveV3::ReassignApprovalRequest] reassign_approval_request_object
439
+ # @param [String] fields
440
+ # Selector specifying which fields to include in a partial response.
441
+ # @param [String] quota_user
442
+ # Available to use for quota purposes for server-side applications. Can be any
443
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
444
+ # @param [Google::Apis::RequestOptions] options
445
+ # Request-specific options
446
+ #
447
+ # @yield [result, err] Result & error if block supplied
448
+ # @yieldparam result [Google::Apis::DriveV3::Approval] parsed result object
449
+ # @yieldparam err [StandardError] error object if request failed
450
+ #
451
+ # @return [Google::Apis::DriveV3::Approval]
452
+ #
453
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
454
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
455
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
456
+ def reassign_approval(file_id, approval_id, reassign_approval_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
457
+ command = make_simple_command(:post, 'files/{fileId}/approvals/{approvalId}:reassign', options)
458
+ command.request_representation = Google::Apis::DriveV3::ReassignApprovalRequest::Representation
459
+ command.request_object = reassign_approval_request_object
460
+ command.response_representation = Google::Apis::DriveV3::Approval::Representation
461
+ command.response_class = Google::Apis::DriveV3::Approval
462
+ command.params['fileId'] = file_id unless file_id.nil?
463
+ command.params['approvalId'] = approval_id unless approval_id.nil?
464
+ command.query['fields'] = fields unless fields.nil?
465
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
466
+ execute_or_queue_command(command, &block)
467
+ end
468
+
469
+ # Starts an approval on a file. For more information, see [Manage approvals](
470
+ # https://developers.google.com/workspace/drive/api/guides/approvals).
471
+ # @param [String] file_id
472
+ # Required. The ID of the file that the approval is created on.
473
+ # @param [Google::Apis::DriveV3::StartApprovalRequest] start_approval_request_object
474
+ # @param [String] fields
475
+ # Selector specifying which fields to include in a partial response.
476
+ # @param [String] quota_user
477
+ # Available to use for quota purposes for server-side applications. Can be any
478
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
479
+ # @param [Google::Apis::RequestOptions] options
480
+ # Request-specific options
481
+ #
482
+ # @yield [result, err] Result & error if block supplied
483
+ # @yieldparam result [Google::Apis::DriveV3::Approval] parsed result object
484
+ # @yieldparam err [StandardError] error object if request failed
485
+ #
486
+ # @return [Google::Apis::DriveV3::Approval]
487
+ #
488
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
489
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
490
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
491
+ def start_approval(file_id, start_approval_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
492
+ command = make_simple_command(:post, 'files/{fileId}/approvals:start', options)
493
+ command.request_representation = Google::Apis::DriveV3::StartApprovalRequest::Representation
494
+ command.request_object = start_approval_request_object
495
+ command.response_representation = Google::Apis::DriveV3::Approval::Representation
496
+ command.response_class = Google::Apis::DriveV3::Approval
497
+ command.params['fileId'] = file_id unless file_id.nil?
498
+ command.query['fields'] = fields unless fields.nil?
499
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
500
+ execute_or_queue_command(command, &block)
501
+ end
502
+
266
503
  # Gets a specific app. For more information, see [Return user info](https://
267
504
  # developers.google.com/workspace/drive/api/guides/user-info).
268
505
  # @param [String] app_id
@@ -1550,22 +1787,24 @@ module Google
1550
1787
  # A comma-separated list of sort keys. Valid keys are: * `createdTime`: When the
1551
1788
  # file was created. Avoid using this key for queries on large item collections
1552
1789
  # as it might result in timeouts or other issues. For time-related sorting on
1553
- # large item collections, use `modifiedTime` instead. * `folder`: The folder ID.
1554
- # This field is sorted using alphabetical ordering. * `modifiedByMeTime`: The
1555
- # last time the file was modified by the user. * `modifiedTime`: The last time
1556
- # the file was modified by anyone. * `name`: The name of the file. This field is
1557
- # sorted using alphabetical ordering, so 1, 12, 2, 22. * `name_natural`: The
1558
- # name of the file. This field is sorted using natural sort ordering, so 1, 2,
1559
- # 12, 22. * `quotaBytesUsed`: The number of storage quota bytes used by the file.
1560
- # * `recency`: The most recent timestamp from the file's date-time fields. * `
1561
- # sharedWithMeTime`: When the file was shared with the user, if applicable. * `
1562
- # starred`: Whether the user has starred the file. * `viewedByMeTime`: The last
1563
- # time the file was viewed by the user. Each key sorts ascending by default, but
1564
- # can be reversed with the `desc` modifier. Example usage: `?orderBy=folder,
1565
- # modifiedTime desc,name`.
1790
+ # large item collections, use `modifiedTime desc` instead. * `folder`: The
1791
+ # folder ID. This field is sorted using alphabetical ordering. * `
1792
+ # modifiedByMeTime`: The last time the file was modified by the user. * `
1793
+ # modifiedTime`: The last time the file was modified by anyone. * `name`: The
1794
+ # name of the file. This field is sorted using alphabetical ordering, so 1, 12,
1795
+ # 2, 22. * `name_natural`: The name of the file. This field is sorted using
1796
+ # natural sort ordering, so 1, 2, 12, 22. * `quotaBytesUsed`: The number of
1797
+ # storage quota bytes used by the file. * `recency`: The most recent timestamp
1798
+ # from the file's date-time fields. * `sharedWithMeTime`: When the file was
1799
+ # shared with the user, if applicable. * `starred`: Whether the user has starred
1800
+ # the file. * `viewedByMeTime`: The last time the file was viewed by the user.
1801
+ # Each key sorts ascending by default, but can be reversed with the `desc`
1802
+ # modifier. Example usage: `?orderBy=folder,modifiedTime desc,name`.
1566
1803
  # @param [Fixnum] page_size
1567
- # The maximum number of files to return per page. Partial or empty result pages
1568
- # are possible even before the end of the files list has been reached.
1804
+ # The maximum number of files to return per page. Pages may be partial or empty
1805
+ # even before reaching the end of the file list. If unspecified, at most 100
1806
+ # files are returned for shared drives, and the entire list of files for non-
1807
+ # shared drives. The maximum value is 100; values above 100 are changed to 100.
1569
1808
  # @param [String] page_token
1570
1809
  # The token for continuing a previous list request on the next page. This should
1571
1810
  # be set to the value of `nextPageToken` from the previous response.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-drive_v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.80.0
4
+ version: 0.81.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-drive_v3/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v3/v0.80.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v3/v0.81.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-drive_v3
62
62
  rdoc_options: []
63
63
  require_paths: