google-apis-drive_v3 0.57.0 → 0.58.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eba6c7f45f2dca3ece3274c4fde067743ec6ee59fbc20a5d123ad2d1fdff9a2f
4
- data.tar.gz: 3c96a6d537ab15574b4b96ceda7f0b218a8c3c6452d009c8f95c0f009c57045e
3
+ metadata.gz: 9f2bff3b0ee31c6db343289f04ccbcf2653969066382b6be8bd045c5d6a29fdf
4
+ data.tar.gz: b2d869d93a11bf9abb4416105db55f6246f10b1ec5972459d7965592f7557009
5
5
  SHA512:
6
- metadata.gz: 25cea60fe5a24d4c3519b9bdf2c47a0792c9abfeba6b7660482fa6b9c0ccd53ebe10a5b5344f0cc9934226ee4802121eb529379b57a5eddfd42f6431246ff59f
7
- data.tar.gz: fea5f017c0cfc0a93aef5e2f9cdef3f0fe0f6444dc4d3a9450a5b01e9cb434fff4ddb5a9b8a2892beab2692faef466e5ed129070cfc086de33215a77bf20a81b
6
+ metadata.gz: a786650363c69c7179930db9590ab071a152dec7e807cde44d82e293bb21360972aa707d6b3529c2d59de68224f5ad1e2b03bd0a289ddf0863ce845977427c2f
7
+ data.tar.gz: e068edb0a65da1658fa46a772d9e17846278af96b5f4165558777cb45c6ee19a4d6afbf2136bd3dc90271202873602b5336a752b9e67a4b3dd22a9db1eab9ce9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
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
+
3
7
  ### v0.57.0 (2024-09-22)
4
8
 
5
9
  * Regenerated from discovery document revision 20240914
@@ -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.57.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 = "20240914"
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
@@ -1544,6 +1544,88 @@ module Google
1544
1544
  execute_or_queue_command(command, &block)
1545
1545
  end
1546
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
+
1547
1629
  # Starts asynchronous cancellation on a long-running operation. The server makes
1548
1630
  # a best effort to cancel the operation, but success is not guaranteed. If the
1549
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.57.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-09-22 00:00:00.000000000 Z
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.57.0
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.6
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