google-apis-drive_v3 0.59.0 → 0.61.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/drive_v3/classes.rb +47 -3
- data/lib/google/apis/drive_v3/gem_version.rb +2 -2
- data/lib/google/apis/drive_v3/representations.rb +16 -0
- data/lib/google/apis/drive_v3/service.rb +150 -96
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d592e7aac3b45c349709aaba088197aa2c497c4f88779b75b793c5a75b24219a
|
4
|
+
data.tar.gz: c351468b6394b84217c4b1324a0cc5e68fd7b977f93d266f86672acfee887fd5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9a1366a99c35bea59cc2912fc18906eeb02de4245be5e37af101efaba7a4dfb3896eb354ee864d61272c9df276722fc85e5fd0f6b252e2bf45adbf5c82e532f
|
7
|
+
data.tar.gz: 4fb9a1d9f4fdeb55e74f01d90e5478c7e8bbe126f201ca459a7020be9f5a9306d8344eaec9847d4e47c5776111519b916a3ae0760a92843e25e309f8212b620f
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-drive_v3
|
2
2
|
|
3
|
+
### v0.61.0 (2024-12-15)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20241206
|
6
|
+
|
7
|
+
### v0.60.0 (2024-11-24)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20241117
|
10
|
+
|
3
11
|
### v0.59.0 (2024-10-20)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20241014
|
@@ -3054,9 +3054,12 @@ module Google
|
|
3054
3054
|
end
|
3055
3055
|
|
3056
3056
|
# A permission for a file. A permission grants a user, group, domain, or the
|
3057
|
-
# world access to a file or a folder hierarchy.
|
3058
|
-
#
|
3059
|
-
#
|
3057
|
+
# world access to a file or a folder hierarchy. By default, permissions requests
|
3058
|
+
# only return a subset of fields. Permission kind, ID, type, and role are always
|
3059
|
+
# returned. To retrieve specific fields, see https://developers.google.com/drive/
|
3060
|
+
# api/guides/fields-parameter. Some resource methods (such as `permissions.
|
3061
|
+
# update`) require a `permissionId`. Use the `permissions.list` method to
|
3062
|
+
# retrieve the ID for a file, folder, or shared drive.
|
3060
3063
|
class Permission
|
3061
3064
|
include Google::Apis::Core::Hashable
|
3062
3065
|
|
@@ -3416,6 +3419,47 @@ module Google
|
|
3416
3419
|
end
|
3417
3420
|
end
|
3418
3421
|
|
3422
|
+
# Request message for resolving an AccessProposal on a file.
|
3423
|
+
class ResolveAccessProposalRequest
|
3424
|
+
include Google::Apis::Core::Hashable
|
3425
|
+
|
3426
|
+
# Required. The action to take on the AccessProposal.
|
3427
|
+
# Corresponds to the JSON property `action`
|
3428
|
+
# @return [String]
|
3429
|
+
attr_accessor :action
|
3430
|
+
|
3431
|
+
# Optional. The roles the approver has allowed, if any. Note: This field is
|
3432
|
+
# required for the `ACCEPT` action.
|
3433
|
+
# Corresponds to the JSON property `role`
|
3434
|
+
# @return [Array<String>]
|
3435
|
+
attr_accessor :role
|
3436
|
+
|
3437
|
+
# Optional. Whether to send an email to the requester when the AccessProposal is
|
3438
|
+
# denied or accepted.
|
3439
|
+
# Corresponds to the JSON property `sendNotification`
|
3440
|
+
# @return [Boolean]
|
3441
|
+
attr_accessor :send_notification
|
3442
|
+
alias_method :send_notification?, :send_notification
|
3443
|
+
|
3444
|
+
# Optional. Indicates the view for this access proposal. This should only be set
|
3445
|
+
# when the proposal belongs to a view. `published` is the only supported value.
|
3446
|
+
# Corresponds to the JSON property `view`
|
3447
|
+
# @return [String]
|
3448
|
+
attr_accessor :view
|
3449
|
+
|
3450
|
+
def initialize(**args)
|
3451
|
+
update!(**args)
|
3452
|
+
end
|
3453
|
+
|
3454
|
+
# Update properties of this object
|
3455
|
+
def update!(**args)
|
3456
|
+
@action = args[:action] if args.key?(:action)
|
3457
|
+
@role = args[:role] if args.key?(:role)
|
3458
|
+
@send_notification = args[:send_notification] if args.key?(:send_notification)
|
3459
|
+
@view = args[:view] if args.key?(:view)
|
3460
|
+
end
|
3461
|
+
end
|
3462
|
+
|
3419
3463
|
# The metadata for a revision to a file. Some resource methods (such as `
|
3420
3464
|
# revisions.update`) require a `revisionId`. Use the `revisions.list` method to
|
3421
3465
|
# 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.61.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.15.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20241206"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -316,6 +316,12 @@ module Google
|
|
316
316
|
include Google::Apis::Core::JsonObjectSupport
|
317
317
|
end
|
318
318
|
|
319
|
+
class ResolveAccessProposalRequest
|
320
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
321
|
+
|
322
|
+
include Google::Apis::Core::JsonObjectSupport
|
323
|
+
end
|
324
|
+
|
319
325
|
class Revision
|
320
326
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
321
327
|
|
@@ -1126,6 +1132,16 @@ module Google
|
|
1126
1132
|
end
|
1127
1133
|
end
|
1128
1134
|
|
1135
|
+
class ResolveAccessProposalRequest
|
1136
|
+
# @private
|
1137
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1138
|
+
property :action, as: 'action'
|
1139
|
+
collection :role, as: 'role'
|
1140
|
+
property :send_notification, as: 'sendNotification'
|
1141
|
+
property :view, as: 'view'
|
1142
|
+
end
|
1143
|
+
end
|
1144
|
+
|
1129
1145
|
class Revision
|
1130
1146
|
# @private
|
1131
1147
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -52,6 +52,10 @@ module Google
|
|
52
52
|
end
|
53
53
|
|
54
54
|
# Gets information about the user, the user's Drive, and system capabilities.
|
55
|
+
# For more information, see [Return user info](https://developers.google.com/
|
56
|
+
# drive/api/guides/user-info). Required: The `fields` parameter must be set. To
|
57
|
+
# return the exact fields you need, see [Return specific fields](https://
|
58
|
+
# developers.google.com/drive/api/guides/fields-parameter).
|
55
59
|
# @param [String] fields
|
56
60
|
# Selector specifying which fields to include in a partial response.
|
57
61
|
# @param [String] quota_user
|
@@ -78,7 +82,112 @@ module Google
|
|
78
82
|
execute_or_queue_command(command, &block)
|
79
83
|
end
|
80
84
|
|
81
|
-
#
|
85
|
+
# Retrieves an AccessProposal by ID.
|
86
|
+
# @param [String] file_id
|
87
|
+
# Required. The id of the item the request is on.
|
88
|
+
# @param [String] proposal_id
|
89
|
+
# Required. The id of the access proposal to resolve.
|
90
|
+
# @param [String] fields
|
91
|
+
# Selector specifying which fields to include in a partial response.
|
92
|
+
# @param [String] quota_user
|
93
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
94
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
95
|
+
# @param [Google::Apis::RequestOptions] options
|
96
|
+
# Request-specific options
|
97
|
+
#
|
98
|
+
# @yield [result, err] Result & error if block supplied
|
99
|
+
# @yieldparam result [Google::Apis::DriveV3::AccessProposal] parsed result object
|
100
|
+
# @yieldparam err [StandardError] error object if request failed
|
101
|
+
#
|
102
|
+
# @return [Google::Apis::DriveV3::AccessProposal]
|
103
|
+
#
|
104
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
105
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
106
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
107
|
+
def get_accessproposal(file_id, proposal_id, fields: nil, quota_user: nil, options: nil, &block)
|
108
|
+
command = make_simple_command(:get, 'files/{fileId}/accessproposals/{proposalId}', options)
|
109
|
+
command.response_representation = Google::Apis::DriveV3::AccessProposal::Representation
|
110
|
+
command.response_class = Google::Apis::DriveV3::AccessProposal
|
111
|
+
command.params['fileId'] = file_id unless file_id.nil?
|
112
|
+
command.params['proposalId'] = proposal_id unless proposal_id.nil?
|
113
|
+
command.query['fields'] = fields unless fields.nil?
|
114
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
115
|
+
execute_or_queue_command(command, &block)
|
116
|
+
end
|
117
|
+
|
118
|
+
# List the AccessProposals on a file. Note: Only approvers are able to list
|
119
|
+
# AccessProposals on a file. If the user is not an approver, returns a 403.
|
120
|
+
# @param [String] file_id
|
121
|
+
# Required. The id of the item the request is on.
|
122
|
+
# @param [Fixnum] page_size
|
123
|
+
# Optional. The number of results per page
|
124
|
+
# @param [String] page_token
|
125
|
+
# Optional. The continuation token on the list of access requests.
|
126
|
+
# @param [String] fields
|
127
|
+
# Selector specifying which fields to include in a partial response.
|
128
|
+
# @param [String] quota_user
|
129
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
130
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
131
|
+
# @param [Google::Apis::RequestOptions] options
|
132
|
+
# Request-specific options
|
133
|
+
#
|
134
|
+
# @yield [result, err] Result & error if block supplied
|
135
|
+
# @yieldparam result [Google::Apis::DriveV3::ListAccessProposalsResponse] parsed result object
|
136
|
+
# @yieldparam err [StandardError] error object if request failed
|
137
|
+
#
|
138
|
+
# @return [Google::Apis::DriveV3::ListAccessProposalsResponse]
|
139
|
+
#
|
140
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
141
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
142
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
143
|
+
def list_accessproposals(file_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
144
|
+
command = make_simple_command(:get, 'files/{fileId}/accessproposals', options)
|
145
|
+
command.response_representation = Google::Apis::DriveV3::ListAccessProposalsResponse::Representation
|
146
|
+
command.response_class = Google::Apis::DriveV3::ListAccessProposalsResponse
|
147
|
+
command.params['fileId'] = file_id unless file_id.nil?
|
148
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
149
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
150
|
+
command.query['fields'] = fields unless fields.nil?
|
151
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
152
|
+
execute_or_queue_command(command, &block)
|
153
|
+
end
|
154
|
+
|
155
|
+
# Used to approve or deny an Access Proposal.
|
156
|
+
# @param [String] file_id
|
157
|
+
# Required. The id of the item the request is on.
|
158
|
+
# @param [String] proposal_id
|
159
|
+
# Required. The id of the access proposal to resolve.
|
160
|
+
# @param [Google::Apis::DriveV3::ResolveAccessProposalRequest] resolve_access_proposal_request_object
|
161
|
+
# @param [String] fields
|
162
|
+
# Selector specifying which fields to include in a partial response.
|
163
|
+
# @param [String] quota_user
|
164
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
165
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
166
|
+
# @param [Google::Apis::RequestOptions] options
|
167
|
+
# Request-specific options
|
168
|
+
#
|
169
|
+
# @yield [result, err] Result & error if block supplied
|
170
|
+
# @yieldparam result [NilClass] No result returned for this method
|
171
|
+
# @yieldparam err [StandardError] error object if request failed
|
172
|
+
#
|
173
|
+
# @return [void]
|
174
|
+
#
|
175
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
176
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
177
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
178
|
+
def resolve_accessproposal_access_proposal(file_id, proposal_id, resolve_access_proposal_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
179
|
+
command = make_simple_command(:post, 'files/{fileId}/accessproposals/{proposalId}:resolve', options)
|
180
|
+
command.request_representation = Google::Apis::DriveV3::ResolveAccessProposalRequest::Representation
|
181
|
+
command.request_object = resolve_access_proposal_request_object
|
182
|
+
command.params['fileId'] = file_id unless file_id.nil?
|
183
|
+
command.params['proposalId'] = proposal_id unless proposal_id.nil?
|
184
|
+
command.query['fields'] = fields unless fields.nil?
|
185
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
186
|
+
execute_or_queue_command(command, &block)
|
187
|
+
end
|
188
|
+
|
189
|
+
# Gets a specific app. For more information, see [Return user info](https://
|
190
|
+
# developers.google.com/drive/api/guides/user-info).
|
82
191
|
# @param [String] app_id
|
83
192
|
# The ID of the app.
|
84
193
|
# @param [String] fields
|
@@ -108,7 +217,8 @@ module Google
|
|
108
217
|
execute_or_queue_command(command, &block)
|
109
218
|
end
|
110
219
|
|
111
|
-
# Lists a user's installed apps.
|
220
|
+
# Lists a user's installed apps. For more information, see [Return user info](
|
221
|
+
# https://developers.google.com/drive/api/guides/user-info).
|
112
222
|
# @param [String] app_filter_extensions
|
113
223
|
# A comma-separated list of file extensions to limit returned results. All
|
114
224
|
# results within the given app query scope which can open any of the given file
|
@@ -151,7 +261,9 @@ module Google
|
|
151
261
|
execute_or_queue_command(command, &block)
|
152
262
|
end
|
153
263
|
|
154
|
-
# Gets the starting pageToken for listing future changes.
|
264
|
+
# Gets the starting pageToken for listing future changes. For more information,
|
265
|
+
# see [Retrieve changes](https://developers.google.com/drive/api/guides/manage-
|
266
|
+
# changes).
|
155
267
|
# @param [String] drive_id
|
156
268
|
# The ID of the shared drive for which the starting pageToken for listing future
|
157
269
|
# changes from that shared drive will be returned.
|
@@ -191,7 +303,9 @@ module Google
|
|
191
303
|
execute_or_queue_command(command, &block)
|
192
304
|
end
|
193
305
|
|
194
|
-
# Lists the changes for a user or shared drive.
|
306
|
+
# Lists the changes for a user or shared drive. For more information, see [
|
307
|
+
# Retrieve changes](https://developers.google.com/drive/api/guides/manage-
|
308
|
+
# changes).
|
195
309
|
# @param [String] page_token
|
196
310
|
# The token for continuing a previous list request on the next page. This should
|
197
311
|
# be set to the value of 'nextPageToken' from the previous response or to the
|
@@ -273,7 +387,8 @@ module Google
|
|
273
387
|
execute_or_queue_command(command, &block)
|
274
388
|
end
|
275
389
|
|
276
|
-
# Subscribes to changes for a user.
|
390
|
+
# Subscribes to changes for a user. For more information, see [Notifications for
|
391
|
+
# resource changes](https://developers.google.com/drive/api/guides/push).
|
277
392
|
# @param [String] page_token
|
278
393
|
# The token for continuing a previous list request on the next page. This should
|
279
394
|
# be set to the value of 'nextPageToken' from the previous response or to the
|
@@ -358,7 +473,9 @@ module Google
|
|
358
473
|
execute_or_queue_command(command, &block)
|
359
474
|
end
|
360
475
|
|
361
|
-
# Stops watching resources through this channel.
|
476
|
+
# Stops watching resources through this channel. For more information, see [
|
477
|
+
# Notifications for resource changes](https://developers.google.com/drive/api/
|
478
|
+
# guides/push).
|
362
479
|
# @param [Google::Apis::DriveV3::Channel] channel_object
|
363
480
|
# @param [String] fields
|
364
481
|
# Selector specifying which fields to include in a partial response.
|
@@ -386,7 +503,11 @@ module Google
|
|
386
503
|
execute_or_queue_command(command, &block)
|
387
504
|
end
|
388
505
|
|
389
|
-
# Creates a comment on a file.
|
506
|
+
# Creates a comment on a file. For more information, see [Manage comments and
|
507
|
+
# replies](https://developers.google.com/drive/api/guides/manage-comments).
|
508
|
+
# Required: The `fields` parameter must be set. To return the exact fields you
|
509
|
+
# need, see [Return specific fields](https://developers.google.com/drive/api/
|
510
|
+
# guides/fields-parameter).
|
390
511
|
# @param [String] file_id
|
391
512
|
# The ID of the file.
|
392
513
|
# @param [Google::Apis::DriveV3::Comment] comment_object
|
@@ -419,7 +540,11 @@ module Google
|
|
419
540
|
execute_or_queue_command(command, &block)
|
420
541
|
end
|
421
542
|
|
422
|
-
# Deletes a comment.
|
543
|
+
# Deletes a comment. For more information, see [Manage comments and replies](
|
544
|
+
# https://developers.google.com/drive/api/guides/manage-comments). Required: The
|
545
|
+
# `fields` parameter must be set. To return the exact fields you need, see [
|
546
|
+
# Return specific fields](https://developers.google.com/drive/api/guides/fields-
|
547
|
+
# parameter).
|
423
548
|
# @param [String] file_id
|
424
549
|
# The ID of the file.
|
425
550
|
# @param [String] comment_id
|
@@ -450,7 +575,11 @@ module Google
|
|
450
575
|
execute_or_queue_command(command, &block)
|
451
576
|
end
|
452
577
|
|
453
|
-
# Gets a comment by ID.
|
578
|
+
# Gets a comment by ID. For more information, see [Manage comments and replies](
|
579
|
+
# https://developers.google.com/drive/api/guides/manage-comments). Required: The
|
580
|
+
# `fields` parameter must be set. To return the exact fields you need, see [
|
581
|
+
# Return specific fields](https://developers.google.com/drive/api/guides/fields-
|
582
|
+
# parameter).
|
454
583
|
# @param [String] file_id
|
455
584
|
# The ID of the file.
|
456
585
|
# @param [String] comment_id
|
@@ -487,7 +616,11 @@ module Google
|
|
487
616
|
execute_or_queue_command(command, &block)
|
488
617
|
end
|
489
618
|
|
490
|
-
# Lists a file's comments.
|
619
|
+
# Lists a file's comments. For more information, see [Manage comments and
|
620
|
+
# replies](https://developers.google.com/drive/api/guides/manage-comments).
|
621
|
+
# Required: The `fields` parameter must be set. To return the exact fields you
|
622
|
+
# need, see [Return specific fields](https://developers.google.com/drive/api/
|
623
|
+
# guides/fields-parameter).
|
491
624
|
# @param [String] file_id
|
492
625
|
# The ID of the file.
|
493
626
|
# @param [Boolean] include_deleted
|
@@ -532,7 +665,11 @@ module Google
|
|
532
665
|
execute_or_queue_command(command, &block)
|
533
666
|
end
|
534
667
|
|
535
|
-
# Updates a comment with patch semantics.
|
668
|
+
# Updates a comment with patch semantics. For more information, see [Manage
|
669
|
+
# comments and replies](https://developers.google.com/drive/api/guides/manage-
|
670
|
+
# comments). Required: The `fields` parameter must be set. To return the exact
|
671
|
+
# fields you need, see [Return specific fields](https://developers.google.com/
|
672
|
+
# drive/api/guides/fields-parameter).
|
536
673
|
# @param [String] file_id
|
537
674
|
# The ID of the file.
|
538
675
|
# @param [String] comment_id
|
@@ -1544,97 +1681,14 @@ module Google
|
|
1544
1681
|
execute_or_queue_command(command, &block)
|
1545
1682
|
end
|
1546
1683
|
|
1547
|
-
# List the AccessProposals on a file. Note: Only approvers are able to list
|
1548
|
-
# AccessProposals on a file. If the user is not an approver, returns a 403.
|
1549
|
-
# @param [String] file_id
|
1550
|
-
# Required. The id of the item the request is on.
|
1551
|
-
# @param [Fixnum] page_size
|
1552
|
-
# Optional. The number of results per page
|
1553
|
-
# @param [String] page_token
|
1554
|
-
# Optional. The continuation token on the list of access requests.
|
1555
|
-
# @param [String] fields
|
1556
|
-
# Selector specifying which fields to include in a partial response.
|
1557
|
-
# @param [String] quota_user
|
1558
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1559
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1560
|
-
# @param [Google::Apis::RequestOptions] options
|
1561
|
-
# Request-specific options
|
1562
|
-
#
|
1563
|
-
# @yield [result, err] Result & error if block supplied
|
1564
|
-
# @yieldparam result [Google::Apis::DriveV3::ListAccessProposalsResponse] parsed result object
|
1565
|
-
# @yieldparam err [StandardError] error object if request failed
|
1566
|
-
#
|
1567
|
-
# @return [Google::Apis::DriveV3::ListAccessProposalsResponse]
|
1568
|
-
#
|
1569
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1570
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1571
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1572
|
-
def list_file_accessproposals(file_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1573
|
-
command = make_simple_command(:get, 'files/{fileId}/accessproposals', options)
|
1574
|
-
command.response_representation = Google::Apis::DriveV3::ListAccessProposalsResponse::Representation
|
1575
|
-
command.response_class = Google::Apis::DriveV3::ListAccessProposalsResponse
|
1576
|
-
command.params['fileId'] = file_id unless file_id.nil?
|
1577
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
1578
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
1579
|
-
command.query['fields'] = fields unless fields.nil?
|
1580
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1581
|
-
execute_or_queue_command(command, &block)
|
1582
|
-
end
|
1583
|
-
|
1584
|
-
# Used to approve or deny an Access Proposal.
|
1585
|
-
# @param [String] file_id
|
1586
|
-
# Required. The id of the item the request is on.
|
1587
|
-
# @param [String] proposal_id
|
1588
|
-
# Required. The id of the access proposal to resolve.
|
1589
|
-
# @param [String] action
|
1590
|
-
# Required. The action to take on the AccessProposal.
|
1591
|
-
# @param [Array<String>, String] role
|
1592
|
-
# Optional. The roles the approver has allowed, if any. Note: This field is
|
1593
|
-
# required for the `ACCEPT` action.
|
1594
|
-
# @param [Boolean] send_notification
|
1595
|
-
# Optional. Whether to send an email to the requester when the AccessProposal is
|
1596
|
-
# denied or accepted.
|
1597
|
-
# @param [String] view
|
1598
|
-
# Optional. Indicates the view for this access proposal. This should only be set
|
1599
|
-
# when the proposal belongs to a view. `published` is the only supported value.
|
1600
|
-
# @param [String] fields
|
1601
|
-
# Selector specifying which fields to include in a partial response.
|
1602
|
-
# @param [String] quota_user
|
1603
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1604
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1605
|
-
# @param [Google::Apis::RequestOptions] options
|
1606
|
-
# Request-specific options
|
1607
|
-
#
|
1608
|
-
# @yield [result, err] Result & error if block supplied
|
1609
|
-
# @yieldparam result [NilClass] No result returned for this method
|
1610
|
-
# @yieldparam err [StandardError] error object if request failed
|
1611
|
-
#
|
1612
|
-
# @return [void]
|
1613
|
-
#
|
1614
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1615
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1616
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1617
|
-
def resolve_file_accessproposal(file_id, proposal_id, action: nil, role: nil, send_notification: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1618
|
-
command = make_simple_command(:post, 'files/{fileId}/accessproposals/{proposalId}:resolve', options)
|
1619
|
-
command.params['fileId'] = file_id unless file_id.nil?
|
1620
|
-
command.params['proposalId'] = proposal_id unless proposal_id.nil?
|
1621
|
-
command.query['action'] = action unless action.nil?
|
1622
|
-
command.query['role'] = role unless role.nil?
|
1623
|
-
command.query['sendNotification'] = send_notification unless send_notification.nil?
|
1624
|
-
command.query['view'] = view unless view.nil?
|
1625
|
-
command.query['fields'] = fields unless fields.nil?
|
1626
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1627
|
-
execute_or_queue_command(command, &block)
|
1628
|
-
end
|
1629
|
-
|
1630
1684
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
1631
1685
|
# a best effort to cancel the operation, but success is not guaranteed. If the
|
1632
1686
|
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
1633
1687
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
1634
1688
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
1635
1689
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
1636
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
1637
|
-
# corresponding to `Code.CANCELLED`.
|
1690
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
1691
|
+
# , corresponding to `Code.CANCELLED`.
|
1638
1692
|
# @param [String] name
|
1639
1693
|
# The name of the operation resource to be cancelled.
|
1640
1694
|
# @param [String] fields
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.61.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-drive_v3/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v3/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v3/v0.61.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-drive_v3
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.5.
|
78
|
+
rubygems_version: 3.5.23
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Google Drive API V3
|