google-apis-drive_v3 0.58.0 → 0.60.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: 9f2bff3b0ee31c6db343289f04ccbcf2653969066382b6be8bd045c5d6a29fdf
4
- data.tar.gz: b2d869d93a11bf9abb4416105db55f6246f10b1ec5972459d7965592f7557009
3
+ metadata.gz: a496e6676ea477fbb2aa2b3748b75c453ffabfbc7d4bf848f62d16598eb05c49
4
+ data.tar.gz: 023f16d3140927fa75aa7f199990ac0292b69364f8f9aaeff0d1164e8da1df45
5
5
  SHA512:
6
- metadata.gz: a786650363c69c7179930db9590ab071a152dec7e807cde44d82e293bb21360972aa707d6b3529c2d59de68224f5ad1e2b03bd0a289ddf0863ce845977427c2f
7
- data.tar.gz: e068edb0a65da1658fa46a772d9e17846278af96b5f4165558777cb45c6ee19a4d6afbf2136bd3dc90271202873602b5336a752b9e67a4b3dd22a9db1eab9ce9
6
+ metadata.gz: c7b44ad08860826b30edbe7bd4da62cef31f686b87396737062eb3a64ef4484b9addca9d5be040c07182c31976a0daf051e3325341c58d2cb68a7f3bd03d08c1
7
+ data.tar.gz: fb652f5edfb900eedb509c1ed100892aa041d58c224d6dcac9f7dde8d528ffcebf110b5fca1ba06d918de0522a7f0ed0a8c038bf5689a793e77db262ee1c61ac
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-drive_v3
2
2
 
3
+ ### v0.60.0 (2024-11-24)
4
+
5
+ * Regenerated from discovery document revision 20241117
6
+
7
+ ### v0.59.0 (2024-10-20)
8
+
9
+ * Regenerated from discovery document revision 20241014
10
+
3
11
  ### v0.58.0 (2024-10-13)
4
12
 
5
13
  * Regenerated from discovery document revision 20241008
@@ -3416,6 +3416,47 @@ module Google
3416
3416
  end
3417
3417
  end
3418
3418
 
3419
+ # Request message for resolving an AccessProposal on a file.
3420
+ class ResolveAccessProposalRequest
3421
+ include Google::Apis::Core::Hashable
3422
+
3423
+ # Required. The action to take on the AccessProposal.
3424
+ # Corresponds to the JSON property `action`
3425
+ # @return [String]
3426
+ attr_accessor :action
3427
+
3428
+ # Optional. The roles the approver has allowed, if any. Note: This field is
3429
+ # required for the `ACCEPT` action.
3430
+ # Corresponds to the JSON property `role`
3431
+ # @return [Array<String>]
3432
+ attr_accessor :role
3433
+
3434
+ # Optional. Whether to send an email to the requester when the AccessProposal is
3435
+ # denied or accepted.
3436
+ # Corresponds to the JSON property `sendNotification`
3437
+ # @return [Boolean]
3438
+ attr_accessor :send_notification
3439
+ alias_method :send_notification?, :send_notification
3440
+
3441
+ # Optional. Indicates the view for this access proposal. This should only be set
3442
+ # when the proposal belongs to a view. `published` is the only supported value.
3443
+ # Corresponds to the JSON property `view`
3444
+ # @return [String]
3445
+ attr_accessor :view
3446
+
3447
+ def initialize(**args)
3448
+ update!(**args)
3449
+ end
3450
+
3451
+ # Update properties of this object
3452
+ def update!(**args)
3453
+ @action = args[:action] if args.key?(:action)
3454
+ @role = args[:role] if args.key?(:role)
3455
+ @send_notification = args[:send_notification] if args.key?(:send_notification)
3456
+ @view = args[:view] if args.key?(:view)
3457
+ end
3458
+ end
3459
+
3419
3460
  # The metadata for a revision to a file. Some resource methods (such as `
3420
3461
  # revisions.update`) require a `revisionId`. Use the `revisions.list` method to
3421
3462
  # 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.58.0"
19
+ GEM_VERSION = "0.60.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 = "20241008"
25
+ REVISION = "20241117"
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
@@ -78,6 +78,110 @@ module Google
78
78
  execute_or_queue_command(command, &block)
79
79
  end
80
80
 
81
+ # Retrieves an AccessProposal by ID.
82
+ # @param [String] file_id
83
+ # Required. The id of the item the request is on.
84
+ # @param [String] proposal_id
85
+ # Required. The id of the access proposal to resolve.
86
+ # @param [String] fields
87
+ # Selector specifying which fields to include in a partial response.
88
+ # @param [String] quota_user
89
+ # Available to use for quota purposes for server-side applications. Can be any
90
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
91
+ # @param [Google::Apis::RequestOptions] options
92
+ # Request-specific options
93
+ #
94
+ # @yield [result, err] Result & error if block supplied
95
+ # @yieldparam result [Google::Apis::DriveV3::AccessProposal] parsed result object
96
+ # @yieldparam err [StandardError] error object if request failed
97
+ #
98
+ # @return [Google::Apis::DriveV3::AccessProposal]
99
+ #
100
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
101
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
102
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
103
+ def get_accessproposal(file_id, proposal_id, fields: nil, quota_user: nil, options: nil, &block)
104
+ command = make_simple_command(:get, 'files/{fileId}/accessproposals/{proposalId}', options)
105
+ command.response_representation = Google::Apis::DriveV3::AccessProposal::Representation
106
+ command.response_class = Google::Apis::DriveV3::AccessProposal
107
+ command.params['fileId'] = file_id unless file_id.nil?
108
+ command.params['proposalId'] = proposal_id unless proposal_id.nil?
109
+ command.query['fields'] = fields unless fields.nil?
110
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
111
+ execute_or_queue_command(command, &block)
112
+ end
113
+
114
+ # List the AccessProposals on a file. Note: Only approvers are able to list
115
+ # AccessProposals on a file. If the user is not an approver, returns a 403.
116
+ # @param [String] file_id
117
+ # Required. The id of the item the request is on.
118
+ # @param [Fixnum] page_size
119
+ # Optional. The number of results per page
120
+ # @param [String] page_token
121
+ # Optional. The continuation token on the list of access requests.
122
+ # @param [String] fields
123
+ # Selector specifying which fields to include in a partial response.
124
+ # @param [String] quota_user
125
+ # Available to use for quota purposes for server-side applications. Can be any
126
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
127
+ # @param [Google::Apis::RequestOptions] options
128
+ # Request-specific options
129
+ #
130
+ # @yield [result, err] Result & error if block supplied
131
+ # @yieldparam result [Google::Apis::DriveV3::ListAccessProposalsResponse] parsed result object
132
+ # @yieldparam err [StandardError] error object if request failed
133
+ #
134
+ # @return [Google::Apis::DriveV3::ListAccessProposalsResponse]
135
+ #
136
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
137
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
138
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
139
+ def list_accessproposals(file_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
140
+ command = make_simple_command(:get, 'files/{fileId}/accessproposals', options)
141
+ command.response_representation = Google::Apis::DriveV3::ListAccessProposalsResponse::Representation
142
+ command.response_class = Google::Apis::DriveV3::ListAccessProposalsResponse
143
+ command.params['fileId'] = file_id unless file_id.nil?
144
+ command.query['pageSize'] = page_size unless page_size.nil?
145
+ command.query['pageToken'] = page_token unless page_token.nil?
146
+ command.query['fields'] = fields unless fields.nil?
147
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
148
+ execute_or_queue_command(command, &block)
149
+ end
150
+
151
+ # Used to approve or deny an Access Proposal.
152
+ # @param [String] file_id
153
+ # Required. The id of the item the request is on.
154
+ # @param [String] proposal_id
155
+ # Required. The id of the access proposal to resolve.
156
+ # @param [Google::Apis::DriveV3::ResolveAccessProposalRequest] resolve_access_proposal_request_object
157
+ # @param [String] fields
158
+ # Selector specifying which fields to include in a partial response.
159
+ # @param [String] quota_user
160
+ # Available to use for quota purposes for server-side applications. Can be any
161
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
162
+ # @param [Google::Apis::RequestOptions] options
163
+ # Request-specific options
164
+ #
165
+ # @yield [result, err] Result & error if block supplied
166
+ # @yieldparam result [NilClass] No result returned for this method
167
+ # @yieldparam err [StandardError] error object if request failed
168
+ #
169
+ # @return [void]
170
+ #
171
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
172
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
173
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
174
+ def resolve_accessproposal_access_proposal(file_id, proposal_id, resolve_access_proposal_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
175
+ command = make_simple_command(:post, 'files/{fileId}/accessproposals/{proposalId}:resolve', options)
176
+ command.request_representation = Google::Apis::DriveV3::ResolveAccessProposalRequest::Representation
177
+ command.request_object = resolve_access_proposal_request_object
178
+ command.params['fileId'] = file_id unless file_id.nil?
179
+ command.params['proposalId'] = proposal_id unless proposal_id.nil?
180
+ command.query['fields'] = fields unless fields.nil?
181
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
182
+ execute_or_queue_command(command, &block)
183
+ end
184
+
81
185
  # Gets a specific app.
82
186
  # @param [String] app_id
83
187
  # The ID of the app.
@@ -1544,96 +1648,14 @@ module Google
1544
1648
  execute_or_queue_command(command, &block)
1545
1649
  end
1546
1650
 
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
-
1629
1651
  # Starts asynchronous cancellation on a long-running operation. The server makes
1630
1652
  # a best effort to cancel the operation, but success is not guaranteed. If the
1631
1653
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
1632
1654
  # Clients can use Operations.GetOperation or other methods to check whether the
1633
1655
  # cancellation succeeded or whether the operation completed despite cancellation.
1634
1656
  # On successful cancellation, the operation is not deleted; instead, it becomes
1635
- # an operation with an Operation.error value with a google.rpc.Status.code of 1,
1636
- # corresponding to `Code.CANCELLED`.
1657
+ # an operation with an Operation.error value with a google.rpc.Status.code of `1`
1658
+ # , corresponding to `Code.CANCELLED`.
1637
1659
  # @param [String] name
1638
1660
  # The name of the operation resource to be cancelled.
1639
1661
  # @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.58.0
4
+ version: 0.60.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-10-13 00:00:00.000000000 Z
11
+ date: 2024-12-04 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.58.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v3/v0.60.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.21
78
+ rubygems_version: 3.5.22
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Google Drive API V3