google-apis-drive_v3 0.56.0 → 0.58.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: 9f2bff3b0ee31c6db343289f04ccbcf2653969066382b6be8bd045c5d6a29fdf
|
4
|
+
data.tar.gz: b2d869d93a11bf9abb4416105db55f6246f10b1ec5972459d7965592f7557009
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a786650363c69c7179930db9590ab071a152dec7e807cde44d82e293bb21360972aa707d6b3529c2d59de68224f5ad1e2b03bd0a289ddf0863ce845977427c2f
|
7
|
+
data.tar.gz: e068edb0a65da1658fa46a772d9e17846278af96b5f4165558777cb45c6ee19a4d6afbf2136bd3dc90271202873602b5336a752b9e67a4b3dd22a9db1eab9ce9
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-drive_v3
|
2
2
|
|
3
|
+
### v0.58.0 (2024-10-13)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20241008
|
6
|
+
|
7
|
+
### v0.57.0 (2024-09-22)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20240914
|
10
|
+
|
3
11
|
### v0.56.0 (2024-09-08)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20240903
|
@@ -227,6 +227,89 @@ module Google
|
|
227
227
|
end
|
228
228
|
end
|
229
229
|
|
230
|
+
# The Access Proposal resource for outstanding access proposals on a file
|
231
|
+
class AccessProposal
|
232
|
+
include Google::Apis::Core::Hashable
|
233
|
+
|
234
|
+
# The creation time
|
235
|
+
# Corresponds to the JSON property `createTime`
|
236
|
+
# @return [String]
|
237
|
+
attr_accessor :create_time
|
238
|
+
|
239
|
+
# The file id that the proposal for access is on
|
240
|
+
# Corresponds to the JSON property `fileId`
|
241
|
+
# @return [String]
|
242
|
+
attr_accessor :file_id
|
243
|
+
|
244
|
+
# The id of the access proposal
|
245
|
+
# Corresponds to the JSON property `proposalId`
|
246
|
+
# @return [String]
|
247
|
+
attr_accessor :proposal_id
|
248
|
+
|
249
|
+
# The email address of the user that will receive permissions if accepted
|
250
|
+
# Corresponds to the JSON property `recipientEmailAddress`
|
251
|
+
# @return [String]
|
252
|
+
attr_accessor :recipient_email_address
|
253
|
+
|
254
|
+
# The message that the requester added to the proposal
|
255
|
+
# Corresponds to the JSON property `requestMessage`
|
256
|
+
# @return [String]
|
257
|
+
attr_accessor :request_message
|
258
|
+
|
259
|
+
# The email address of the requesting user
|
260
|
+
# Corresponds to the JSON property `requesterEmailAddress`
|
261
|
+
# @return [String]
|
262
|
+
attr_accessor :requester_email_address
|
263
|
+
|
264
|
+
# A wrapper for the role and view of an access proposal.
|
265
|
+
# Corresponds to the JSON property `rolesAndViews`
|
266
|
+
# @return [Array<Google::Apis::DriveV3::AccessProposalRoleAndView>]
|
267
|
+
attr_accessor :roles_and_views
|
268
|
+
|
269
|
+
def initialize(**args)
|
270
|
+
update!(**args)
|
271
|
+
end
|
272
|
+
|
273
|
+
# Update properties of this object
|
274
|
+
def update!(**args)
|
275
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
276
|
+
@file_id = args[:file_id] if args.key?(:file_id)
|
277
|
+
@proposal_id = args[:proposal_id] if args.key?(:proposal_id)
|
278
|
+
@recipient_email_address = args[:recipient_email_address] if args.key?(:recipient_email_address)
|
279
|
+
@request_message = args[:request_message] if args.key?(:request_message)
|
280
|
+
@requester_email_address = args[:requester_email_address] if args.key?(:requester_email_address)
|
281
|
+
@roles_and_views = args[:roles_and_views] if args.key?(:roles_and_views)
|
282
|
+
end
|
283
|
+
end
|
284
|
+
|
285
|
+
# A wrapper for the role and view of an access proposal.
|
286
|
+
class AccessProposalRoleAndView
|
287
|
+
include Google::Apis::Core::Hashable
|
288
|
+
|
289
|
+
# The role that was proposed by the requester New values may be added in the
|
290
|
+
# future, but the following are currently possible: * `writer` * `commenter` * `
|
291
|
+
# reader`
|
292
|
+
# Corresponds to the JSON property `role`
|
293
|
+
# @return [String]
|
294
|
+
attr_accessor :role
|
295
|
+
|
296
|
+
# Indicates the view for this access proposal. Only populated for proposals that
|
297
|
+
# belong to a view. `published` is the only supported value.
|
298
|
+
# Corresponds to the JSON property `view`
|
299
|
+
# @return [String]
|
300
|
+
attr_accessor :view
|
301
|
+
|
302
|
+
def initialize(**args)
|
303
|
+
update!(**args)
|
304
|
+
end
|
305
|
+
|
306
|
+
# Update properties of this object
|
307
|
+
def update!(**args)
|
308
|
+
@role = args[:role] if args.key?(:role)
|
309
|
+
@view = args[:view] if args.key?(:view)
|
310
|
+
end
|
311
|
+
end
|
312
|
+
|
230
313
|
# The `apps` resource provides a list of apps that a user has installed, with
|
231
314
|
# information about each app's supported MIME types, file extensions, and other
|
232
315
|
# details. Some resource methods (such as `apps.get`) require an `appId`. Use
|
@@ -2803,6 +2886,34 @@ module Google
|
|
2803
2886
|
end
|
2804
2887
|
end
|
2805
2888
|
|
2889
|
+
# The response to an Access Proposal list request.
|
2890
|
+
class ListAccessProposalsResponse
|
2891
|
+
include Google::Apis::Core::Hashable
|
2892
|
+
|
2893
|
+
# The list of Access Proposals. This field is only populated in v3 and v3beta.
|
2894
|
+
# Corresponds to the JSON property `accessProposals`
|
2895
|
+
# @return [Array<Google::Apis::DriveV3::AccessProposal>]
|
2896
|
+
attr_accessor :access_proposals
|
2897
|
+
|
2898
|
+
# The continuation token for the next page of results. This will be absent if
|
2899
|
+
# the end of the results list has been reached. If the token is rejected for any
|
2900
|
+
# reason, it should be discarded, and pagination should be restarted from the
|
2901
|
+
# first page of results.
|
2902
|
+
# Corresponds to the JSON property `nextPageToken`
|
2903
|
+
# @return [String]
|
2904
|
+
attr_accessor :next_page_token
|
2905
|
+
|
2906
|
+
def initialize(**args)
|
2907
|
+
update!(**args)
|
2908
|
+
end
|
2909
|
+
|
2910
|
+
# Update properties of this object
|
2911
|
+
def update!(**args)
|
2912
|
+
@access_proposals = args[:access_proposals] if args.key?(:access_proposals)
|
2913
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
2914
|
+
end
|
2915
|
+
end
|
2916
|
+
|
2806
2917
|
# The response message for Operations.ListOperations.
|
2807
2918
|
class ListOperationsResponse
|
2808
2919
|
include Google::Apis::Core::Hashable
|
@@ -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.58.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 = "20241008"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -46,6 +46,18 @@ module Google
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
47
47
|
end
|
48
48
|
|
49
|
+
class AccessProposal
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class AccessProposalRoleAndView
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
49
61
|
class App
|
50
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
63
|
|
@@ -238,6 +250,12 @@ module Google
|
|
238
250
|
include Google::Apis::Core::JsonObjectSupport
|
239
251
|
end
|
240
252
|
|
253
|
+
class ListAccessProposalsResponse
|
254
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
255
|
+
|
256
|
+
include Google::Apis::Core::JsonObjectSupport
|
257
|
+
end
|
258
|
+
|
241
259
|
class ListOperationsResponse
|
242
260
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
243
261
|
|
@@ -417,6 +435,28 @@ module Google
|
|
417
435
|
end
|
418
436
|
end
|
419
437
|
|
438
|
+
class AccessProposal
|
439
|
+
# @private
|
440
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
441
|
+
property :create_time, as: 'createTime'
|
442
|
+
property :file_id, as: 'fileId'
|
443
|
+
property :proposal_id, as: 'proposalId'
|
444
|
+
property :recipient_email_address, as: 'recipientEmailAddress'
|
445
|
+
property :request_message, as: 'requestMessage'
|
446
|
+
property :requester_email_address, as: 'requesterEmailAddress'
|
447
|
+
collection :roles_and_views, as: 'rolesAndViews', class: Google::Apis::DriveV3::AccessProposalRoleAndView, decorator: Google::Apis::DriveV3::AccessProposalRoleAndView::Representation
|
448
|
+
|
449
|
+
end
|
450
|
+
end
|
451
|
+
|
452
|
+
class AccessProposalRoleAndView
|
453
|
+
# @private
|
454
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
455
|
+
property :role, as: 'role'
|
456
|
+
property :view, as: 'view'
|
457
|
+
end
|
458
|
+
end
|
459
|
+
|
420
460
|
class App
|
421
461
|
# @private
|
422
462
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -956,6 +996,15 @@ module Google
|
|
956
996
|
end
|
957
997
|
end
|
958
998
|
|
999
|
+
class ListAccessProposalsResponse
|
1000
|
+
# @private
|
1001
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1002
|
+
collection :access_proposals, as: 'accessProposals', class: Google::Apis::DriveV3::AccessProposal, decorator: Google::Apis::DriveV3::AccessProposal::Representation
|
1003
|
+
|
1004
|
+
property :next_page_token, as: 'nextPageToken'
|
1005
|
+
end
|
1006
|
+
end
|
1007
|
+
|
959
1008
|
class ListOperationsResponse
|
960
1009
|
# @private
|
961
1010
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1260,11 +1260,20 @@ module Google
|
|
1260
1260
|
# @param [Boolean] include_team_drive_items
|
1261
1261
|
# Deprecated: Use `includeItemsFromAllDrives` instead.
|
1262
1262
|
# @param [String] order_by
|
1263
|
-
# A comma-separated list of sort keys. Valid keys are
|
1264
|
-
#
|
1265
|
-
#
|
1266
|
-
#
|
1267
|
-
#
|
1263
|
+
# A comma-separated list of sort keys. Valid keys are: * `createdTime`: When the
|
1264
|
+
# file was created. * `folder`: The folder ID. This field is sorted using
|
1265
|
+
# alphabetical ordering. * `modifiedByMeTime`: The last time the file was
|
1266
|
+
# modified by the user. * `modifiedTime`: The last time the file was modified by
|
1267
|
+
# anyone. * `name`: The name of the file. This field is sorted using
|
1268
|
+
# alphabetical ordering, so 1, 12, 2, 22. * `name_natural`: The name of the file.
|
1269
|
+
# This field is sorted using natural sort ordering, so 1, 2, 12, 22. * `
|
1270
|
+
# quotaBytesUsed`: The number of storage quota bytes used by the file. * `
|
1271
|
+
# recency`: The most recent timestamp from the file's date-time fields. * `
|
1272
|
+
# sharedWithMeTime`: When the file was shared with the user, if applicable. * `
|
1273
|
+
# starred`: Whether the user has starred the file. * `viewedByMeTime`: The last
|
1274
|
+
# time the file was viewed by the user. Each key sorts ascending by default, but
|
1275
|
+
# can be reversed with the 'desc' modifier. Example usage: `?orderBy=folder,
|
1276
|
+
# modifiedTime desc,name`.
|
1268
1277
|
# @param [Fixnum] page_size
|
1269
1278
|
# The maximum number of files to return per page. Partial or empty result pages
|
1270
1279
|
# are possible even before the end of the files list has been reached.
|
@@ -1535,6 +1544,88 @@ module Google
|
|
1535
1544
|
execute_or_queue_command(command, &block)
|
1536
1545
|
end
|
1537
1546
|
|
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.
|
1593
|
+
# @param [Boolean] send_notification
|
1594
|
+
# Optional. Whether to send an email to the requester when the AccessProposal is
|
1595
|
+
# denied or accepted.
|
1596
|
+
# @param [String] view
|
1597
|
+
# Optional. Indicates the view for this access proposal. This should only be set
|
1598
|
+
# when the proposal belongs to a view. `published` is the only supported value.
|
1599
|
+
# @param [String] fields
|
1600
|
+
# Selector specifying which fields to include in a partial response.
|
1601
|
+
# @param [String] quota_user
|
1602
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1603
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1604
|
+
# @param [Google::Apis::RequestOptions] options
|
1605
|
+
# Request-specific options
|
1606
|
+
#
|
1607
|
+
# @yield [result, err] Result & error if block supplied
|
1608
|
+
# @yieldparam result [NilClass] No result returned for this method
|
1609
|
+
# @yieldparam err [StandardError] error object if request failed
|
1610
|
+
#
|
1611
|
+
# @return [void]
|
1612
|
+
#
|
1613
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1614
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1615
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1616
|
+
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)
|
1617
|
+
command = make_simple_command(:post, 'files/{fileId}/accessproposals/{proposalId}:resolve', options)
|
1618
|
+
command.params['fileId'] = file_id unless file_id.nil?
|
1619
|
+
command.params['proposalId'] = proposal_id unless proposal_id.nil?
|
1620
|
+
command.query['action'] = action unless action.nil?
|
1621
|
+
command.query['role'] = role unless role.nil?
|
1622
|
+
command.query['sendNotification'] = send_notification unless send_notification.nil?
|
1623
|
+
command.query['view'] = view unless view.nil?
|
1624
|
+
command.query['fields'] = fields unless fields.nil?
|
1625
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1626
|
+
execute_or_queue_command(command, &block)
|
1627
|
+
end
|
1628
|
+
|
1538
1629
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
1539
1630
|
# a best effort to cancel the operation, but success is not guaranteed. If the
|
1540
1631
|
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
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.58.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-10-13 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.58.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.21
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Google Drive API V3
|