google-apis-drive_v3 0.71.0 → 0.75.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: f50c4bbb21b7d3fffee4a9d33ae65217db09abecf37ceb9f8032cc76100840d5
4
- data.tar.gz: cc220f450b65c597806fd98cc1daf774ce06bdc1951dc55164bee1f61189433f
3
+ metadata.gz: 71a60038259310c65f637a49fcbb678b0a0efc64a8f905a7b502c91e47e7f258
4
+ data.tar.gz: 6e401c83cfe0b79e8d2f1bb270eeb86de4870a123b6481b007efa112b2e93e79
5
5
  SHA512:
6
- metadata.gz: f425b7ae19279904245a205a16d73530fb5883ccdfe3a97b78dd02bbf1ffb44e992fc908fd7a04a54b7fbd7b37ff9d338f016f471212c77ef6639feed9ec3e01
7
- data.tar.gz: 23fe66999ef8724df649c6edb3bec613f953fa5f0a9715108943eda92e763e2e67bf1068fd8035e494bf29afdc2c4bef49cf2617fae4c9b019060e8530c9448e
6
+ metadata.gz: 415f513e80cb536af4d5c45ef7f87db85d54f92c943dab0b7f458856730da9dd955eac44d5a1483f0bdc3d233defa3f7dace90d7cc7753451cae579d99820fee
7
+ data.tar.gz: 21c09a71bfa49d70b0be4f3900d7ad140f6c6beefa2628d0e8d9740a613f0e0b5960d7acf449978be401a9660b7261c98530036831447fa71785e0074fecc7ce
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-drive_v3
2
2
 
3
+ ### v0.75.0 (2025-12-07)
4
+
5
+ * Regenerated from discovery document revision 20251201
6
+
7
+ ### v0.74.0 (2025-11-23)
8
+
9
+ * Regenerated from discovery document revision 20251114
10
+
11
+ ### v0.73.0 (2025-10-26)
12
+
13
+ * Regenerated from discovery document revision 20251019
14
+
15
+ ### v0.72.0 (2025-10-19)
16
+
17
+ * Regenerated from discovery document revision 20251013
18
+
3
19
  ### v0.71.0 (2025-09-21)
4
20
 
5
21
  * Regenerated from discovery document revision 20250910
@@ -561,6 +561,116 @@ module Google
561
561
  end
562
562
  end
563
563
 
564
+ # Metadata for an approval. An approval is a review/approve process for a Drive
565
+ # item.
566
+ class Approval
567
+ include Google::Apis::Core::Hashable
568
+
569
+ # The Approval ID.
570
+ # Corresponds to the JSON property `approvalId`
571
+ # @return [String]
572
+ attr_accessor :approval_id
573
+
574
+ # Output only. The time time the approval was completed.
575
+ # Corresponds to the JSON property `completeTime`
576
+ # @return [String]
577
+ attr_accessor :complete_time
578
+
579
+ # Output only. The time the approval was created.
580
+ # Corresponds to the JSON property `createTime`
581
+ # @return [String]
582
+ attr_accessor :create_time
583
+
584
+ # The time that the approval is due.
585
+ # Corresponds to the JSON property `dueTime`
586
+ # @return [String]
587
+ attr_accessor :due_time
588
+
589
+ # Information about a Drive user.
590
+ # Corresponds to the JSON property `initiator`
591
+ # @return [Google::Apis::DriveV3::User]
592
+ attr_accessor :initiator
593
+
594
+ # This is always drive#approval.
595
+ # Corresponds to the JSON property `kind`
596
+ # @return [String]
597
+ attr_accessor :kind
598
+
599
+ # Output only. The most recent time the approval was modified.
600
+ # Corresponds to the JSON property `modifyTime`
601
+ # @return [String]
602
+ attr_accessor :modify_time
603
+
604
+ # The responses made on the Approval by reviewers.
605
+ # Corresponds to the JSON property `reviewerResponses`
606
+ # @return [Array<Google::Apis::DriveV3::ReviewerResponse>]
607
+ attr_accessor :reviewer_responses
608
+
609
+ # Output only. The status of the approval at the time this resource was
610
+ # requested.
611
+ # Corresponds to the JSON property `status`
612
+ # @return [String]
613
+ attr_accessor :status
614
+
615
+ # Target file id of the approval.
616
+ # Corresponds to the JSON property `targetFileId`
617
+ # @return [String]
618
+ attr_accessor :target_file_id
619
+
620
+ def initialize(**args)
621
+ update!(**args)
622
+ end
623
+
624
+ # Update properties of this object
625
+ def update!(**args)
626
+ @approval_id = args[:approval_id] if args.key?(:approval_id)
627
+ @complete_time = args[:complete_time] if args.key?(:complete_time)
628
+ @create_time = args[:create_time] if args.key?(:create_time)
629
+ @due_time = args[:due_time] if args.key?(:due_time)
630
+ @initiator = args[:initiator] if args.key?(:initiator)
631
+ @kind = args[:kind] if args.key?(:kind)
632
+ @modify_time = args[:modify_time] if args.key?(:modify_time)
633
+ @reviewer_responses = args[:reviewer_responses] if args.key?(:reviewer_responses)
634
+ @status = args[:status] if args.key?(:status)
635
+ @target_file_id = args[:target_file_id] if args.key?(:target_file_id)
636
+ end
637
+ end
638
+
639
+ # The response of an Approvals list request.
640
+ class ApprovalList
641
+ include Google::Apis::Core::Hashable
642
+
643
+ # The list of Approvals. If nextPageToken is populated, then this list may be
644
+ # incomplete and an additional page of results should be fetched.
645
+ # Corresponds to the JSON property `items`
646
+ # @return [Array<Google::Apis::DriveV3::Approval>]
647
+ attr_accessor :items
648
+
649
+ # This is always drive#approvalList
650
+ # Corresponds to the JSON property `kind`
651
+ # @return [String]
652
+ attr_accessor :kind
653
+
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.
658
+ # Corresponds to the JSON property `nextPageToken`
659
+ # @return [String]
660
+ attr_accessor :next_page_token
661
+
662
+ def initialize(**args)
663
+ update!(**args)
664
+ end
665
+
666
+ # Update properties of this object
667
+ def update!(**args)
668
+ @items = args[:items] if args.key?(:items)
669
+ @kind = args[:kind] if args.key?(:kind)
670
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
671
+ end
672
+ end
673
+
564
674
  # A change to a file or shared drive.
565
675
  class Change
566
676
  include Google::Apis::Core::Hashable
@@ -780,6 +890,12 @@ module Google
780
890
  # @return [String]
781
891
  attr_accessor :anchor
782
892
 
893
+ # Output only. The email address of the user assigned to this comment. If no
894
+ # user is assigned, the field is unset.
895
+ # Corresponds to the JSON property `assigneeEmailAddress`
896
+ # @return [String]
897
+ attr_accessor :assignee_email_address
898
+
783
899
  # Information about a Drive user.
784
900
  # Corresponds to the JSON property `author`
785
901
  # @return [Google::Apis::DriveV3::User]
@@ -819,6 +935,12 @@ module Google
819
935
  # @return [String]
820
936
  attr_accessor :kind
821
937
 
938
+ # Output only. A list of email addresses for users mentioned in this comment. If
939
+ # no users are mentioned, the list is empty.
940
+ # Corresponds to the JSON property `mentionedEmailAddresses`
941
+ # @return [Array<String>]
942
+ attr_accessor :mentioned_email_addresses
943
+
822
944
  # The last time the comment or any of its replies was modified (RFC 3339 date-
823
945
  # time).
824
946
  # Corresponds to the JSON property `modifiedTime`
@@ -850,6 +972,7 @@ module Google
850
972
  # Update properties of this object
851
973
  def update!(**args)
852
974
  @anchor = args[:anchor] if args.key?(:anchor)
975
+ @assignee_email_address = args[:assignee_email_address] if args.key?(:assignee_email_address)
853
976
  @author = args[:author] if args.key?(:author)
854
977
  @content = args[:content] if args.key?(:content)
855
978
  @created_time = args[:created_time] if args.key?(:created_time)
@@ -857,6 +980,7 @@ module Google
857
980
  @html_content = args[:html_content] if args.key?(:html_content)
858
981
  @id = args[:id] if args.key?(:id)
859
982
  @kind = args[:kind] if args.key?(:kind)
983
+ @mentioned_email_addresses = args[:mentioned_email_addresses] if args.key?(:mentioned_email_addresses)
860
984
  @modified_time = args[:modified_time] if args.key?(:modified_time)
861
985
  @quoted_file_content = args[:quoted_file_content] if args.key?(:quoted_file_content)
862
986
  @replies = args[:replies] if args.key?(:replies)
@@ -3142,12 +3266,14 @@ module Google
3142
3266
  end
3143
3267
 
3144
3268
  # A permission for a file. A permission grants a user, group, domain, or the
3145
- # world access to a file or a folder hierarchy. By default, permissions requests
3146
- # only return a subset of fields. Permission kind, ID, type, and role are always
3147
- # returned. To retrieve specific fields, see https://developers.google.com/
3148
- # workspace/drive/api/guides/fields-parameter. Some resource methods (such as `
3149
- # permissions.update`) require a `permissionId`. Use the `permissions.list`
3150
- # method to retrieve the ID for a file, folder, or shared drive.
3269
+ # world access to a file or a folder hierarchy. For more information, see [Share
3270
+ # files, folders, and drives](https://developers.google.com/workspace/drive/api/
3271
+ # guides/manage-sharing). By default, permission requests only return a subset
3272
+ # of fields. Permission `kind`, `ID`, `type`, and `role` are always returned. To
3273
+ # retrieve specific fields, see [Return specific fields](https://developers.
3274
+ # google.com/workspace/drive/api/guides/fields-parameter). Some resource methods
3275
+ # (such as `permissions.update`) require a `permissionId`. Use the `permissions.
3276
+ # list` method to retrieve the ID for a file, folder, or shared drive.
3151
3277
  class Permission
3152
3278
  include Google::Apis::Core::Hashable
3153
3279
 
@@ -3159,7 +3285,7 @@ module Google
3159
3285
  alias_method :allow_file_discovery?, :allow_file_discovery
3160
3286
 
3161
3287
  # Output only. Whether the account associated with this permission has been
3162
- # deleted. This field only pertains to user and group permissions.
3288
+ # deleted. This field only pertains to permissions of type `user` or `group`.
3163
3289
  # Corresponds to the JSON property `deleted`
3164
3290
  # @return [Boolean]
3165
3291
  attr_accessor :deleted
@@ -3167,9 +3293,9 @@ module Google
3167
3293
 
3168
3294
  # Output only. The "pretty" name of the value of the permission. The following
3169
3295
  # is a list of examples for each type of permission: * `user` - User's full name,
3170
- # as defined for their Google account, such as "Joe Smith." * `group` - Name of
3296
+ # as defined for their Google Account, such as "Dana A." * `group` - Name of
3171
3297
  # the Google Group, such as "The Company Administrators." * `domain` - String
3172
- # domain name, such as "thecompany.com." * `anyone` - No `displayName` is
3298
+ # domain name, such as "cymbalgroup.com." * `anyone` - No `displayName` is
3173
3299
  # present.
3174
3300
  # Corresponds to the JSON property `displayName`
3175
3301
  # @return [String]
@@ -3194,14 +3320,15 @@ module Google
3194
3320
  attr_accessor :expiration_time
3195
3321
 
3196
3322
  # Output only. The ID of this permission. This is a unique identifier for the
3197
- # grantee, and is published in User resources as `permissionId`. IDs should be
3323
+ # grantee, and is published in the [User resource](https://developers.google.com/
3324
+ # workspace/drive/api/reference/rest/v3/User) as `permissionId`. IDs should be
3198
3325
  # treated as opaque values.
3199
3326
  # Corresponds to the JSON property `id`
3200
3327
  # @return [String]
3201
3328
  attr_accessor :id
3202
3329
 
3203
- # When true, only organizers, owners, and users with permissions added directly
3204
- # on the item can access it.
3330
+ # When `true`, only organizers, owners, and users with permissions added
3331
+ # directly on the item can access it.
3205
3332
  # Corresponds to the JSON property `inheritedPermissionsDisabled`
3206
3333
  # @return [Boolean]
3207
3334
  attr_accessor :inherited_permissions_disabled
@@ -3214,14 +3341,15 @@ module Google
3214
3341
  attr_accessor :kind
3215
3342
 
3216
3343
  # Whether the account associated with this permission is a pending owner. Only
3217
- # populated for `user` type permissions for files that are not in a shared drive.
3344
+ # populated for permissions of type `user` for files that aren't in a shared
3345
+ # drive.
3218
3346
  # Corresponds to the JSON property `pendingOwner`
3219
3347
  # @return [Boolean]
3220
3348
  attr_accessor :pending_owner
3221
3349
  alias_method :pending_owner?, :pending_owner
3222
3350
 
3223
3351
  # Output only. Details of whether the permissions on this item are inherited or
3224
- # directly on this item.
3352
+ # are directly on this item.
3225
3353
  # Corresponds to the JSON property `permissionDetails`
3226
3354
  # @return [Array<Google::Apis::DriveV3::Permission::PermissionDetail>]
3227
3355
  attr_accessor :permission_details
@@ -3231,9 +3359,10 @@ module Google
3231
3359
  # @return [String]
3232
3360
  attr_accessor :photo_link
3233
3361
 
3234
- # The role granted by this permission. While new values may be supported in the
3235
- # future, the following are currently allowed: * `owner` * `organizer` * `
3236
- # fileOrganizer` * `writer` * `commenter` * `reader`
3362
+ # The role granted by this permission. Supported values include: * `owner` * `
3363
+ # organizer` * `fileOrganizer` * `writer` * `commenter` * `reader` For more
3364
+ # information, see [Roles and permissions](https://developers.google.com/
3365
+ # workspace/drive/api/guides/ref-roles).
3237
3366
  # Corresponds to the JSON property `role`
3238
3367
  # @return [String]
3239
3368
  attr_accessor :role
@@ -3243,21 +3372,22 @@ module Google
3243
3372
  # @return [Array<Google::Apis::DriveV3::Permission::TeamDrivePermissionDetail>]
3244
3373
  attr_accessor :team_drive_permission_details
3245
3374
 
3246
- # The type of the grantee. Valid values are: * `user` * `group` * `domain` * `
3247
- # anyone` When creating a permission, if `type` is `user` or `group`, you must
3248
- # provide an `emailAddress` for the user or group. When `type` is `domain`, you
3249
- # must provide a `domain`. There isn't extra information required for an `anyone`
3250
- # type.
3375
+ # The type of the grantee. Supported values include: * `user` * `group` * `
3376
+ # domain` * `anyone` When creating a permission, if `type` is `user` or `group`,
3377
+ # you must provide an `emailAddress` for the user or group. If `type` is `domain`
3378
+ # , you must provide a `domain`. If `type` is `anyone`, no extra information is
3379
+ # required.
3251
3380
  # Corresponds to the JSON property `type`
3252
3381
  # @return [String]
3253
3382
  attr_accessor :type
3254
3383
 
3255
3384
  # Indicates the view for this permission. Only populated for permissions that
3256
- # belong to a view. published and metadata are the only supported values. -
3257
- # published: The permission's role is published_reader. - metadata: The item is
3258
- # only visible to the metadata view because the item has limited access and the
3259
- # scope has at least read access to the parent. Note: The metadata view is
3260
- # currently only supported on folders.
3385
+ # belong to a view. The only supported values are `published` and `metadata`: * `
3386
+ # published`: The permission's role is `publishedReader`. * `metadata`: The item
3387
+ # is only visible to the `metadata` view because the item has limited access and
3388
+ # the scope has at least read access to the parent. The `metadata` view is only
3389
+ # supported on folders. For more information, see [Views](https://developers.
3390
+ # google.com/workspace/drive/api/guides/ref-roles#views).
3261
3391
  # Corresponds to the JSON property `view`
3262
3392
  # @return [String]
3263
3393
  attr_accessor :view
@@ -3303,15 +3433,16 @@ module Google
3303
3433
  # @return [String]
3304
3434
  attr_accessor :inherited_from
3305
3435
 
3306
- # Output only. The permission type for this user. While new values may be added
3307
- # in future, the following are currently possible: * `file` * `member`
3436
+ # Output only. The permission type for this user. Supported values include: * `
3437
+ # file` * `member`
3308
3438
  # Corresponds to the JSON property `permissionType`
3309
3439
  # @return [String]
3310
3440
  attr_accessor :permission_type
3311
3441
 
3312
- # Output only. The primary role for this user. While new values may be added in
3313
- # the future, the following are currently possible: * `owner` * `organizer` * `
3314
- # fileOrganizer` * `writer` * `commenter` * `reader`
3442
+ # Output only. The primary role for this user. Supported values include: * `
3443
+ # owner` * `organizer` * `fileOrganizer` * `writer` * `commenter` * `reader` For
3444
+ # more information, see [Roles and permissions](https://developers.google.com/
3445
+ # workspace/drive/api/guides/ref-roles).
3315
3446
  # Corresponds to the JSON property `role`
3316
3447
  # @return [String]
3317
3448
  attr_accessor :role
@@ -3388,8 +3519,8 @@ module Google
3388
3519
  # @return [String]
3389
3520
  attr_accessor :next_page_token
3390
3521
 
3391
- # The list of permissions. If nextPageToken is populated, then this list may be
3392
- # incomplete and an additional page of results should be fetched.
3522
+ # The list of permissions. If `nextPageToken` is populated, then this list may
3523
+ # be incomplete and an additional page of results should be fetched.
3393
3524
  # Corresponds to the JSON property `permissions`
3394
3525
  # @return [Array<Google::Apis::DriveV3::Permission>]
3395
3526
  attr_accessor :permissions
@@ -3418,6 +3549,12 @@ module Google
3418
3549
  # @return [String]
3419
3550
  attr_accessor :action
3420
3551
 
3552
+ # Output only. The email address of the user assigned to this comment. If no
3553
+ # user is assigned, the field is unset.
3554
+ # Corresponds to the JSON property `assigneeEmailAddress`
3555
+ # @return [String]
3556
+ attr_accessor :assignee_email_address
3557
+
3421
3558
  # Information about a Drive user.
3422
3559
  # Corresponds to the JSON property `author`
3423
3560
  # @return [Google::Apis::DriveV3::User]
@@ -3458,6 +3595,12 @@ module Google
3458
3595
  # @return [String]
3459
3596
  attr_accessor :kind
3460
3597
 
3598
+ # Output only. A list of email addresses for users mentioned in this comment. If
3599
+ # no users are mentioned, the list is empty.
3600
+ # Corresponds to the JSON property `mentionedEmailAddresses`
3601
+ # @return [Array<String>]
3602
+ attr_accessor :mentioned_email_addresses
3603
+
3461
3604
  # The last time the reply was modified (RFC 3339 date-time).
3462
3605
  # Corresponds to the JSON property `modifiedTime`
3463
3606
  # @return [DateTime]
@@ -3470,6 +3613,7 @@ module Google
3470
3613
  # Update properties of this object
3471
3614
  def update!(**args)
3472
3615
  @action = args[:action] if args.key?(:action)
3616
+ @assignee_email_address = args[:assignee_email_address] if args.key?(:assignee_email_address)
3473
3617
  @author = args[:author] if args.key?(:author)
3474
3618
  @content = args[:content] if args.key?(:content)
3475
3619
  @created_time = args[:created_time] if args.key?(:created_time)
@@ -3477,6 +3621,7 @@ module Google
3477
3621
  @html_content = args[:html_content] if args.key?(:html_content)
3478
3622
  @id = args[:id] if args.key?(:id)
3479
3623
  @kind = args[:kind] if args.key?(:kind)
3624
+ @mentioned_email_addresses = args[:mentioned_email_addresses] if args.key?(:mentioned_email_addresses)
3480
3625
  @modified_time = args[:modified_time] if args.key?(:modified_time)
3481
3626
  end
3482
3627
  end
@@ -3561,6 +3706,37 @@ module Google
3561
3706
  end
3562
3707
  end
3563
3708
 
3709
+ # A response on an Approval made by a specific Reviewer.
3710
+ class ReviewerResponse
3711
+ include Google::Apis::Core::Hashable
3712
+
3713
+ # This is always drive#reviewerResponse.
3714
+ # Corresponds to the JSON property `kind`
3715
+ # @return [String]
3716
+ attr_accessor :kind
3717
+
3718
+ # A Reviewer’s Response for the Approval.
3719
+ # Corresponds to the JSON property `response`
3720
+ # @return [String]
3721
+ attr_accessor :response
3722
+
3723
+ # Information about a Drive user.
3724
+ # Corresponds to the JSON property `reviewer`
3725
+ # @return [Google::Apis::DriveV3::User]
3726
+ attr_accessor :reviewer
3727
+
3728
+ def initialize(**args)
3729
+ update!(**args)
3730
+ end
3731
+
3732
+ # Update properties of this object
3733
+ def update!(**args)
3734
+ @kind = args[:kind] if args.key?(:kind)
3735
+ @response = args[:response] if args.key?(:response)
3736
+ @reviewer = args[:reviewer] if args.key?(:reviewer)
3737
+ end
3738
+ end
3739
+
3564
3740
  # The metadata for a revision to a file. Some resource methods (such as `
3565
3741
  # revisions.update`) require a `revisionId`. Use the `revisions.list` method to
3566
3742
  # retrieve the ID for a revision.
@@ -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.71.0"
19
+ GEM_VERSION = "0.75.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 = "20250910"
25
+ REVISION = "20251201"
26
26
  end
27
27
  end
28
28
  end
@@ -76,6 +76,18 @@ module Google
76
76
  include Google::Apis::Core::JsonObjectSupport
77
77
  end
78
78
 
79
+ class Approval
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class ApprovalList
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
79
91
  class Change
80
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
93
 
@@ -328,6 +340,12 @@ module Google
328
340
  include Google::Apis::Core::JsonObjectSupport
329
341
  end
330
342
 
343
+ class ReviewerResponse
344
+ class Representation < Google::Apis::Core::JsonRepresentation; end
345
+
346
+ include Google::Apis::Core::JsonObjectSupport
347
+ end
348
+
331
349
  class Revision
332
350
  class Representation < Google::Apis::Core::JsonRepresentation; end
333
351
 
@@ -520,6 +538,34 @@ module Google
520
538
  end
521
539
  end
522
540
 
541
+ class Approval
542
+ # @private
543
+ class Representation < Google::Apis::Core::JsonRepresentation
544
+ property :approval_id, as: 'approvalId'
545
+ property :complete_time, as: 'completeTime'
546
+ property :create_time, as: 'createTime'
547
+ property :due_time, as: 'dueTime'
548
+ property :initiator, as: 'initiator', class: Google::Apis::DriveV3::User, decorator: Google::Apis::DriveV3::User::Representation
549
+
550
+ property :kind, as: 'kind'
551
+ property :modify_time, as: 'modifyTime'
552
+ collection :reviewer_responses, as: 'reviewerResponses', class: Google::Apis::DriveV3::ReviewerResponse, decorator: Google::Apis::DriveV3::ReviewerResponse::Representation
553
+
554
+ property :status, as: 'status'
555
+ property :target_file_id, as: 'targetFileId'
556
+ end
557
+ end
558
+
559
+ class ApprovalList
560
+ # @private
561
+ class Representation < Google::Apis::Core::JsonRepresentation
562
+ collection :items, as: 'items', class: Google::Apis::DriveV3::Approval, decorator: Google::Apis::DriveV3::Approval::Representation
563
+
564
+ property :kind, as: 'kind'
565
+ property :next_page_token, as: 'nextPageToken'
566
+ end
567
+ end
568
+
523
569
  class Change
524
570
  # @private
525
571
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -572,6 +618,7 @@ module Google
572
618
  # @private
573
619
  class Representation < Google::Apis::Core::JsonRepresentation
574
620
  property :anchor, as: 'anchor'
621
+ property :assignee_email_address, as: 'assigneeEmailAddress'
575
622
  property :author, as: 'author', class: Google::Apis::DriveV3::User, decorator: Google::Apis::DriveV3::User::Representation
576
623
 
577
624
  property :content, as: 'content'
@@ -581,6 +628,7 @@ module Google
581
628
  property :html_content, as: 'htmlContent'
582
629
  property :id, as: 'id'
583
630
  property :kind, as: 'kind'
631
+ collection :mentioned_email_addresses, as: 'mentionedEmailAddresses'
584
632
  property :modified_time, as: 'modifiedTime', type: DateTime
585
633
 
586
634
  property :quoted_file_content, as: 'quotedFileContent', class: Google::Apis::DriveV3::Comment::QuotedFileContent, decorator: Google::Apis::DriveV3::Comment::QuotedFileContent::Representation
@@ -1133,6 +1181,7 @@ module Google
1133
1181
  # @private
1134
1182
  class Representation < Google::Apis::Core::JsonRepresentation
1135
1183
  property :action, as: 'action'
1184
+ property :assignee_email_address, as: 'assigneeEmailAddress'
1136
1185
  property :author, as: 'author', class: Google::Apis::DriveV3::User, decorator: Google::Apis::DriveV3::User::Representation
1137
1186
 
1138
1187
  property :content, as: 'content'
@@ -1142,6 +1191,7 @@ module Google
1142
1191
  property :html_content, as: 'htmlContent'
1143
1192
  property :id, as: 'id'
1144
1193
  property :kind, as: 'kind'
1194
+ collection :mentioned_email_addresses, as: 'mentionedEmailAddresses'
1145
1195
  property :modified_time, as: 'modifiedTime', type: DateTime
1146
1196
 
1147
1197
  end
@@ -1167,6 +1217,16 @@ module Google
1167
1217
  end
1168
1218
  end
1169
1219
 
1220
+ class ReviewerResponse
1221
+ # @private
1222
+ class Representation < Google::Apis::Core::JsonRepresentation
1223
+ property :kind, as: 'kind'
1224
+ property :response, as: 'response'
1225
+ property :reviewer, as: 'reviewer', class: Google::Apis::DriveV3::User, decorator: Google::Apis::DriveV3::User::Representation
1226
+
1227
+ end
1228
+ end
1229
+
1170
1230
  class Revision
1171
1231
  # @private
1172
1232
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -192,6 +192,77 @@ module Google
192
192
  execute_or_queue_command(command, &block)
193
193
  end
194
194
 
195
+ # Gets an Approval by ID.
196
+ # @param [String] file_id
197
+ # Required. The ID of the file the Approval is on.
198
+ # @param [String] approval_id
199
+ # Required. The ID of the Approval.
200
+ # @param [String] fields
201
+ # Selector specifying which fields to include in a partial response.
202
+ # @param [String] quota_user
203
+ # Available to use for quota purposes for server-side applications. Can be any
204
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
205
+ # @param [Google::Apis::RequestOptions] options
206
+ # Request-specific options
207
+ #
208
+ # @yield [result, err] Result & error if block supplied
209
+ # @yieldparam result [Google::Apis::DriveV3::Approval] parsed result object
210
+ # @yieldparam err [StandardError] error object if request failed
211
+ #
212
+ # @return [Google::Apis::DriveV3::Approval]
213
+ #
214
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
215
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
216
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
217
+ def get_approval(file_id, approval_id, fields: nil, quota_user: nil, options: nil, &block)
218
+ command = make_simple_command(:get, 'files/{fileId}/approvals/{approvalId}', options)
219
+ command.response_representation = Google::Apis::DriveV3::Approval::Representation
220
+ command.response_class = Google::Apis::DriveV3::Approval
221
+ command.params['fileId'] = file_id unless file_id.nil?
222
+ command.params['approvalId'] = approval_id unless approval_id.nil?
223
+ command.query['fields'] = fields unless fields.nil?
224
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
225
+ execute_or_queue_command(command, &block)
226
+ end
227
+
228
+ # Lists the Approvals on a file.
229
+ # @param [String] file_id
230
+ # Required. The ID of the file the Approval is on.
231
+ # @param [Fixnum] page_size
232
+ # The maximum number of Approvals to return. When not set, at most 100 Approvals
233
+ # will be returned.
234
+ # @param [String] page_token
235
+ # 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.
237
+ # @param [String] fields
238
+ # Selector specifying which fields to include in a partial response.
239
+ # @param [String] quota_user
240
+ # Available to use for quota purposes for server-side applications. Can be any
241
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
242
+ # @param [Google::Apis::RequestOptions] options
243
+ # Request-specific options
244
+ #
245
+ # @yield [result, err] Result & error if block supplied
246
+ # @yieldparam result [Google::Apis::DriveV3::ApprovalList] parsed result object
247
+ # @yieldparam err [StandardError] error object if request failed
248
+ #
249
+ # @return [Google::Apis::DriveV3::ApprovalList]
250
+ #
251
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
252
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
253
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
254
+ def list_approvals(file_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
255
+ command = make_simple_command(:get, 'files/{fileId}/approvals', options)
256
+ command.response_representation = Google::Apis::DriveV3::ApprovalList::Representation
257
+ command.response_class = Google::Apis::DriveV3::ApprovalList
258
+ command.params['fileId'] = file_id unless file_id.nil?
259
+ command.query['pageSize'] = page_size unless page_size.nil?
260
+ command.query['pageToken'] = page_token unless page_token.nil?
261
+ command.query['fields'] = fields unless fields.nil?
262
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
263
+ execute_or_queue_command(command, &block)
264
+ end
265
+
195
266
  # Gets a specific app. For more information, see [Return user info](https://
196
267
  # developers.google.com/workspace/drive/api/guides/user-info).
197
268
  # @param [String] app_id
@@ -1757,9 +1828,10 @@ module Google
1757
1828
  execute_or_queue_command(command, &block)
1758
1829
  end
1759
1830
 
1760
- # Creates a permission for a file or shared drive. **Warning:** Concurrent
1761
- # permissions operations on the same file are not supported; only the last
1762
- # update is applied.
1831
+ # Creates a permission for a file or shared drive. For more information, see [
1832
+ # Share files, folders, and drives](https://developers.google.com/workspace/
1833
+ # drive/api/guides/manage-sharing). **Warning:** Concurrent permissions
1834
+ # operations on the same file aren't supported; only the last update is applied.
1763
1835
  # @param [String] file_id
1764
1836
  # The ID of the file or shared drive.
1765
1837
  # @param [Google::Apis::DriveV3::Permission] permission_object
@@ -1770,10 +1842,10 @@ module Google
1770
1842
  # @param [Boolean] enforce_single_parent
1771
1843
  # Deprecated: See `moveToNewOwnersRoot` for details.
1772
1844
  # @param [Boolean] move_to_new_owners_root
1773
- # This parameter will only take effect if the item is not in a shared drive and
1774
- # the request is attempting to transfer the ownership of the item. If set to `
1775
- # true`, the item will be moved to the new owner's My Drive root folder and all
1776
- # prior parents removed. If set to `false`, parents are not changed.
1845
+ # This parameter only takes effect if the item isn't in a shared drive and the
1846
+ # request is attempting to transfer the ownership of the item. If set to `true`,
1847
+ # the item is moved to the new owner's My Drive root folder and all prior
1848
+ # parents removed. If set to `false`, parents aren't changed.
1777
1849
  # @param [Boolean] send_notification_email
1778
1850
  # Whether to send a notification email when sharing to users or groups. This
1779
1851
  # defaults to `true` for users and groups, and is not allowed for other requests.
@@ -1785,12 +1857,16 @@ module Google
1785
1857
  # @param [Boolean] transfer_ownership
1786
1858
  # Whether to transfer ownership to the specified user and downgrade the current
1787
1859
  # owner to a writer. This parameter is required as an acknowledgement of the
1788
- # side effect.
1860
+ # side effect. For more information, see [Transfer file ownership](https://
1861
+ # developers.google.com/workspace/drive/api/guides/transfer-file).
1789
1862
  # @param [Boolean] use_domain_admin_access
1790
- # Issue the request as a domain administrator; if set to true, then the
1791
- # requester will be granted access if the file ID parameter refers to a shared
1792
- # drive and the requester is an administrator of the domain to which the shared
1793
- # drive belongs.
1863
+ # Issue the request as a domain administrator. If set to `true`, and if the
1864
+ # following additional conditions are met, the requester is granted access: 1.
1865
+ # The file ID parameter refers to a shared drive. 2. The requester is an
1866
+ # administrator of the domain to which the shared drive belongs. For more
1867
+ # information, see [Manage shared drives as domain administrators](https://
1868
+ # developers.google.com/workspace/drive/api/guides/manage-shareddrives#manage-
1869
+ # administrators).
1794
1870
  # @param [String] fields
1795
1871
  # Selector specifying which fields to include in a partial response.
1796
1872
  # @param [String] quota_user
@@ -1829,8 +1905,10 @@ module Google
1829
1905
  execute_or_queue_command(command, &block)
1830
1906
  end
1831
1907
 
1832
- # Deletes a permission. **Warning:** Concurrent permissions operations on the
1833
- # same file are not supported; only the last update is applied.
1908
+ # Deletes a permission. For more information, see [Share files, folders, and
1909
+ # drives](https://developers.google.com/workspace/drive/api/guides/manage-
1910
+ # sharing). **Warning:** Concurrent permissions operations on the same file aren'
1911
+ # t supported; only the last update is applied.
1834
1912
  # @param [String] file_id
1835
1913
  # The ID of the file or shared drive.
1836
1914
  # @param [String] permission_id
@@ -1842,10 +1920,13 @@ module Google
1842
1920
  # @param [Boolean] supports_team_drives
1843
1921
  # Deprecated: Use `supportsAllDrives` instead.
1844
1922
  # @param [Boolean] use_domain_admin_access
1845
- # Issue the request as a domain administrator; if set to true, then the
1846
- # requester will be granted access if the file ID parameter refers to a shared
1847
- # drive and the requester is an administrator of the domain to which the shared
1848
- # drive belongs.
1923
+ # Issue the request as a domain administrator. If set to `true`, and if the
1924
+ # following additional conditions are met, the requester is granted access: 1.
1925
+ # The file ID parameter refers to a shared drive. 2. The requester is an
1926
+ # administrator of the domain to which the shared drive belongs. For more
1927
+ # information, see [Manage shared drives as domain administrators](https://
1928
+ # developers.google.com/workspace/drive/api/guides/manage-shareddrives#manage-
1929
+ # administrators).
1849
1930
  # @param [String] fields
1850
1931
  # Selector specifying which fields to include in a partial response.
1851
1932
  # @param [String] quota_user
@@ -1876,7 +1957,9 @@ module Google
1876
1957
  execute_or_queue_command(command, &block)
1877
1958
  end
1878
1959
 
1879
- # Gets a permission by ID.
1960
+ # Gets a permission by ID. For more information, see [Share files, folders, and
1961
+ # drives](https://developers.google.com/workspace/drive/api/guides/manage-
1962
+ # sharing).
1880
1963
  # @param [String] file_id
1881
1964
  # The ID of the file.
1882
1965
  # @param [String] permission_id
@@ -1886,10 +1969,13 @@ module Google
1886
1969
  # @param [Boolean] supports_team_drives
1887
1970
  # Deprecated: Use `supportsAllDrives` instead.
1888
1971
  # @param [Boolean] use_domain_admin_access
1889
- # Issue the request as a domain administrator; if set to true, then the
1890
- # requester will be granted access if the file ID parameter refers to a shared
1891
- # drive and the requester is an administrator of the domain to which the shared
1892
- # drive belongs.
1972
+ # Issue the request as a domain administrator. If set to `true`, and if the
1973
+ # following additional conditions are met, the requester is granted access: 1.
1974
+ # The file ID parameter refers to a shared drive. 2. The requester is an
1975
+ # administrator of the domain to which the shared drive belongs. For more
1976
+ # information, see [Manage shared drives as domain administrators](https://
1977
+ # developers.google.com/workspace/drive/api/guides/manage-shareddrives#manage-
1978
+ # administrators).
1893
1979
  # @param [String] fields
1894
1980
  # Selector specifying which fields to include in a partial response.
1895
1981
  # @param [String] quota_user
@@ -1921,28 +2007,33 @@ module Google
1921
2007
  execute_or_queue_command(command, &block)
1922
2008
  end
1923
2009
 
1924
- # Lists a file's or shared drive's permissions.
2010
+ # Lists a file's or shared drive's permissions. For more information, see [Share
2011
+ # files, folders, and drives](https://developers.google.com/workspace/drive/api/
2012
+ # guides/manage-sharing).
1925
2013
  # @param [String] file_id
1926
2014
  # The ID of the file or shared drive.
1927
2015
  # @param [String] include_permissions_for_view
1928
2016
  # Specifies which additional view's permissions to include in the response. Only
1929
- # 'published' is supported.
2017
+ # `published` is supported.
1930
2018
  # @param [Fixnum] page_size
1931
2019
  # The maximum number of permissions to return per page. When not set for files
1932
2020
  # in a shared drive, at most 100 results will be returned. When not set for
1933
2021
  # files that are not in a shared drive, the entire list will be returned.
1934
2022
  # @param [String] page_token
1935
2023
  # The token for continuing a previous list request on the next page. This should
1936
- # be set to the value of 'nextPageToken' from the previous response.
2024
+ # be set to the value of `nextPageToken` from the previous response.
1937
2025
  # @param [Boolean] supports_all_drives
1938
2026
  # Whether the requesting application supports both My Drives and shared drives.
1939
2027
  # @param [Boolean] supports_team_drives
1940
2028
  # Deprecated: Use `supportsAllDrives` instead.
1941
2029
  # @param [Boolean] use_domain_admin_access
1942
- # Issue the request as a domain administrator; if set to true, then the
1943
- # requester will be granted access if the file ID parameter refers to a shared
1944
- # drive and the requester is an administrator of the domain to which the shared
1945
- # drive belongs.
2030
+ # Issue the request as a domain administrator. If set to `true`, and if the
2031
+ # following additional conditions are met, the requester is granted access: 1.
2032
+ # The file ID parameter refers to a shared drive. 2. The requester is an
2033
+ # administrator of the domain to which the shared drive belongs. For more
2034
+ # information, see [Manage shared drives as domain administrators](https://
2035
+ # developers.google.com/workspace/drive/api/guides/manage-shareddrives#manage-
2036
+ # administrators).
1946
2037
  # @param [String] fields
1947
2038
  # Selector specifying which fields to include in a partial response.
1948
2039
  # @param [String] quota_user
@@ -1976,8 +2067,10 @@ module Google
1976
2067
  execute_or_queue_command(command, &block)
1977
2068
  end
1978
2069
 
1979
- # Updates a permission with patch semantics. **Warning:** Concurrent permissions
1980
- # operations on the same file are not supported; only the last update is applied.
2070
+ # Updates a permission with patch semantics. For more information, see [Share
2071
+ # files, folders, and drives](https://developers.google.com/workspace/drive/api/
2072
+ # guides/manage-sharing). **Warning:** Concurrent permissions operations on the
2073
+ # same file aren't supported; only the last update is applied.
1981
2074
  # @param [String] file_id
1982
2075
  # The ID of the file or shared drive.
1983
2076
  # @param [String] permission_id
@@ -1994,12 +2087,16 @@ module Google
1994
2087
  # @param [Boolean] transfer_ownership
1995
2088
  # Whether to transfer ownership to the specified user and downgrade the current
1996
2089
  # owner to a writer. This parameter is required as an acknowledgement of the
1997
- # side effect.
2090
+ # side effect. For more information, see [Transfer file ownership](https://
2091
+ # developers.google.com//workspace/drive/api/guides/transfer-file).
1998
2092
  # @param [Boolean] use_domain_admin_access
1999
- # Issue the request as a domain administrator; if set to true, then the
2000
- # requester will be granted access if the file ID parameter refers to a shared
2001
- # drive and the requester is an administrator of the domain to which the shared
2002
- # drive belongs.
2093
+ # Issue the request as a domain administrator. If set to `true`, and if the
2094
+ # following additional conditions are met, the requester is granted access: 1.
2095
+ # The file ID parameter refers to a shared drive. 2. The requester is an
2096
+ # administrator of the domain to which the shared drive belongs. For more
2097
+ # information, see [Manage shared drives as domain administrators](https://
2098
+ # developers.google.com/workspace/drive/api/guides/manage-shareddrives#manage-
2099
+ # administrators).
2003
2100
  # @param [String] fields
2004
2101
  # Selector specifying which fields to include in a partial response.
2005
2102
  # @param [String] quota_user
@@ -2313,7 +2410,13 @@ module Google
2313
2410
  end
2314
2411
 
2315
2412
  # Lists a file's revisions. For more information, see [Manage file revisions](
2316
- # https://developers.google.com/workspace/drive/api/guides/manage-revisions).
2413
+ # https://developers.google.com/workspace/drive/api/guides/manage-revisions). **
2414
+ # Important:** The list of revisions returned by this method might be incomplete
2415
+ # for files with a large revision history, including frequently edited Google
2416
+ # Docs, Sheets, and Slides. Older revisions might be omitted from the response,
2417
+ # meaning the first revision returned may not be the oldest existing revision.
2418
+ # The revision history visible in the Workspace editor user interface might be
2419
+ # more complete than the list returned by the API.
2317
2420
  # @param [String] file_id
2318
2421
  # The ID of the file.
2319
2422
  # @param [Fixnum] page_size
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.71.0
4
+ version: 0.75.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.71.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v3/v0.75.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: