google-apis-drive_v3 0.74.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 71a60038259310c65f637a49fcbb678b0a0efc64a8f905a7b502c91e47e7f258
|
|
4
|
+
data.tar.gz: 6e401c83cfe0b79e8d2f1bb270eeb86de4870a123b6481b007efa112b2e93e79
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 415f513e80cb536af4d5c45ef7f87db85d54f92c943dab0b7f458856730da9dd955eac44d5a1483f0bdc3d233defa3f7dace90d7cc7753451cae579d99820fee
|
|
7
|
+
data.tar.gz: 21c09a71bfa49d70b0be4f3900d7ad140f6c6beefa2628d0e8d9740a613f0e0b5960d7acf449978be401a9660b7261c98530036831447fa71785e0074fecc7ce
|
data/CHANGELOG.md
CHANGED
|
@@ -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
|
|
@@ -3596,6 +3706,37 @@ module Google
|
|
|
3596
3706
|
end
|
|
3597
3707
|
end
|
|
3598
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
|
+
|
|
3599
3740
|
# The metadata for a revision to a file. Some resource methods (such as `
|
|
3600
3741
|
# revisions.update`) require a `revisionId`. Use the `revisions.list` method to
|
|
3601
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.
|
|
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 = "
|
|
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
|
|
@@ -1171,6 +1217,16 @@ module Google
|
|
|
1171
1217
|
end
|
|
1172
1218
|
end
|
|
1173
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
|
+
|
|
1174
1230
|
class Revision
|
|
1175
1231
|
# @private
|
|
1176
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
|
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.
|
|
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.
|
|
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:
|