google-apis-accessapproval_v1 0.16.0 → 0.19.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: 45af9cc5d51f457ea44562a2a82e4efffcd3e17d2f588563bb4a72828ffca67f
4
- data.tar.gz: 34e02c072b1691eb2e81974d4d45ccd5b5c010230a8ec6b5a02d95e5b8d4a3f4
3
+ metadata.gz: e6616e385b20c04b7050f5d294dd54bed812eb6e941accaa266eabf3e58f1cdf
4
+ data.tar.gz: 6a763042038f8a299af5a654a036a9bc87f3daf2b002b088d4776065f8a87c11
5
5
  SHA512:
6
- metadata.gz: fbc0c349939ac8a3e0908527cda62cf9c65eb81b71ec298a6e975a2efeee95b55e33e652aaa39e06a6555d4a998ef3de6e6e1035e1700d9375e9c11420aaae3d
7
- data.tar.gz: 7504c75abc62b19bcba6ea93c73ef8895c63d00177de81dae7b37968d88c945ec467f3ecc253b041f61dd7d03291fe540ff9289b09258afb2e3e2359cefab851
6
+ metadata.gz: 36e2fd028481fed8858283267f89a817704681033a258b7b2ffcef89e0909a050f5ddf8b9e3a56259e2d7d744310b2710a2c5f5a07bba2aa5e1c3710e6447b95
7
+ data.tar.gz: 18cb6636f52f25347edc9d7e946acea916fca3de51b9ef17e343fa58a55849b8c9203c25f021a7b532f967ebdfea4454fd2f9be478e7786ee2a8cb5c623f16c0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-accessapproval_v1
2
2
 
3
+ ### v0.19.0 (2022-06-04)
4
+
5
+ * Regenerated using generator version 0.5.0
6
+
7
+ ### v0.18.0 (2022-05-25)
8
+
9
+ * Regenerated from discovery document revision 20220519
10
+
11
+ ### v0.17.0 (2022-03-22)
12
+
13
+ * Regenerated from discovery document revision 20220317
14
+
3
15
  ### v0.16.0 (2022-03-08)
4
16
 
5
17
  * Regenerated from discovery document revision 20220304
@@ -309,6 +309,11 @@ module Google
309
309
  # @return [String]
310
310
  attr_accessor :expire_time
311
311
 
312
+ # If set, denotes the timestamp at which the approval is invalidated.
313
+ # Corresponds to the JSON property `invalidateTime`
314
+ # @return [String]
315
+ attr_accessor :invalidate_time
316
+
312
317
  # Information about the digital signature of the resource.
313
318
  # Corresponds to the JSON property `signatureInfo`
314
319
  # @return [Google::Apis::AccessapprovalV1::SignatureInfo]
@@ -323,6 +328,7 @@ module Google
323
328
  @approve_time = args[:approve_time] if args.key?(:approve_time)
324
329
  @auto_approved = args[:auto_approved] if args.key?(:auto_approved)
325
330
  @expire_time = args[:expire_time] if args.key?(:expire_time)
331
+ @invalidate_time = args[:invalidate_time] if args.key?(:invalidate_time)
326
332
  @signature_info = args[:signature_info] if args.key?(:signature_info)
327
333
  end
328
334
  end
@@ -371,8 +377,7 @@ module Google
371
377
  # A generic empty message that you can re-use to avoid defining duplicated empty
372
378
  # messages in your APIs. A typical example is to use it as the request or the
373
379
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
374
- # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
375
- # `Empty` is empty JSON object ````.
380
+ # protobuf.Empty) returns (google.protobuf.Empty); `
376
381
  class Empty
377
382
  include Google::Apis::Core::Hashable
378
383
 
@@ -428,6 +433,19 @@ module Google
428
433
  end
429
434
  end
430
435
 
436
+ # Request to invalidate an existing approval.
437
+ class InvalidateApprovalRequestMessage
438
+ include Google::Apis::Core::Hashable
439
+
440
+ def initialize(**args)
441
+ update!(**args)
442
+ end
443
+
444
+ # Update properties of this object
445
+ def update!(**args)
446
+ end
447
+ end
448
+
431
449
  # Response to listing of ApprovalRequest objects.
432
450
  class ListApprovalRequestsResponse
433
451
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module AccessapprovalV1
18
18
  # Version of the google-apis-accessapproval_v1 gem
19
- GEM_VERSION = "0.16.0"
19
+ GEM_VERSION = "0.19.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.1"
22
+ GENERATOR_VERSION = "0.5.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220304"
25
+ REVISION = "20220519"
26
26
  end
27
27
  end
28
28
  end
@@ -88,6 +88,12 @@ module Google
88
88
  include Google::Apis::Core::JsonObjectSupport
89
89
  end
90
90
 
91
+ class InvalidateApprovalRequestMessage
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
91
97
  class ListApprovalRequestsResponse
92
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
99
 
@@ -177,6 +183,7 @@ module Google
177
183
  property :approve_time, as: 'approveTime'
178
184
  property :auto_approved, as: 'autoApproved'
179
185
  property :expire_time, as: 'expireTime'
186
+ property :invalidate_time, as: 'invalidateTime'
180
187
  property :signature_info, as: 'signatureInfo', class: Google::Apis::AccessapprovalV1::SignatureInfo, decorator: Google::Apis::AccessapprovalV1::SignatureInfo::Representation
181
188
 
182
189
  end
@@ -210,6 +217,12 @@ module Google
210
217
  end
211
218
  end
212
219
 
220
+ class InvalidateApprovalRequestMessage
221
+ # @private
222
+ class Representation < Google::Apis::Core::JsonRepresentation
223
+ end
224
+ end
225
+
213
226
  class ListApprovalRequestsResponse
214
227
  # @private
215
228
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -293,6 +293,42 @@ module Google
293
293
  execute_or_queue_command(command, &block)
294
294
  end
295
295
 
296
+ # Invalidates an existing ApprovalRequest. Returns the updated ApprovalRequest.
297
+ # NOTE: This does not deny access to the resource if another request has been
298
+ # made and approved. It only invalidates a single approval. Returns
299
+ # FAILED_PRECONDITION if the request exists but is not in an approved state.
300
+ # @param [String] name
301
+ # Name of the ApprovalRequest to invalidate.
302
+ # @param [Google::Apis::AccessapprovalV1::InvalidateApprovalRequestMessage] invalidate_approval_request_message_object
303
+ # @param [String] fields
304
+ # Selector specifying which fields to include in a partial response.
305
+ # @param [String] quota_user
306
+ # Available to use for quota purposes for server-side applications. Can be any
307
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
308
+ # @param [Google::Apis::RequestOptions] options
309
+ # Request-specific options
310
+ #
311
+ # @yield [result, err] Result & error if block supplied
312
+ # @yieldparam result [Google::Apis::AccessapprovalV1::ApprovalRequest] parsed result object
313
+ # @yieldparam err [StandardError] error object if request failed
314
+ #
315
+ # @return [Google::Apis::AccessapprovalV1::ApprovalRequest]
316
+ #
317
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
318
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
319
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
320
+ def invalidate_folder_approval_request(name, invalidate_approval_request_message_object = nil, fields: nil, quota_user: nil, options: nil, &block)
321
+ command = make_simple_command(:post, 'v1/{+name}:invalidate', options)
322
+ command.request_representation = Google::Apis::AccessapprovalV1::InvalidateApprovalRequestMessage::Representation
323
+ command.request_object = invalidate_approval_request_message_object
324
+ command.response_representation = Google::Apis::AccessapprovalV1::ApprovalRequest::Representation
325
+ command.response_class = Google::Apis::AccessapprovalV1::ApprovalRequest
326
+ command.params['name'] = name unless name.nil?
327
+ command.query['fields'] = fields unless fields.nil?
328
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
329
+ execute_or_queue_command(command, &block)
330
+ end
331
+
296
332
  # Lists approval requests associated with a project, folder, or organization.
297
333
  # Approval requests can be filtered by state (pending, active, dismissed). The
298
334
  # order is reverse chronological.
@@ -585,6 +621,42 @@ module Google
585
621
  execute_or_queue_command(command, &block)
586
622
  end
587
623
 
624
+ # Invalidates an existing ApprovalRequest. Returns the updated ApprovalRequest.
625
+ # NOTE: This does not deny access to the resource if another request has been
626
+ # made and approved. It only invalidates a single approval. Returns
627
+ # FAILED_PRECONDITION if the request exists but is not in an approved state.
628
+ # @param [String] name
629
+ # Name of the ApprovalRequest to invalidate.
630
+ # @param [Google::Apis::AccessapprovalV1::InvalidateApprovalRequestMessage] invalidate_approval_request_message_object
631
+ # @param [String] fields
632
+ # Selector specifying which fields to include in a partial response.
633
+ # @param [String] quota_user
634
+ # Available to use for quota purposes for server-side applications. Can be any
635
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
636
+ # @param [Google::Apis::RequestOptions] options
637
+ # Request-specific options
638
+ #
639
+ # @yield [result, err] Result & error if block supplied
640
+ # @yieldparam result [Google::Apis::AccessapprovalV1::ApprovalRequest] parsed result object
641
+ # @yieldparam err [StandardError] error object if request failed
642
+ #
643
+ # @return [Google::Apis::AccessapprovalV1::ApprovalRequest]
644
+ #
645
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
646
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
647
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
648
+ def invalidate_organization_approval_request(name, invalidate_approval_request_message_object = nil, fields: nil, quota_user: nil, options: nil, &block)
649
+ command = make_simple_command(:post, 'v1/{+name}:invalidate', options)
650
+ command.request_representation = Google::Apis::AccessapprovalV1::InvalidateApprovalRequestMessage::Representation
651
+ command.request_object = invalidate_approval_request_message_object
652
+ command.response_representation = Google::Apis::AccessapprovalV1::ApprovalRequest::Representation
653
+ command.response_class = Google::Apis::AccessapprovalV1::ApprovalRequest
654
+ command.params['name'] = name unless name.nil?
655
+ command.query['fields'] = fields unless fields.nil?
656
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
657
+ execute_or_queue_command(command, &block)
658
+ end
659
+
588
660
  # Lists approval requests associated with a project, folder, or organization.
589
661
  # Approval requests can be filtered by state (pending, active, dismissed). The
590
662
  # order is reverse chronological.
@@ -877,6 +949,42 @@ module Google
877
949
  execute_or_queue_command(command, &block)
878
950
  end
879
951
 
952
+ # Invalidates an existing ApprovalRequest. Returns the updated ApprovalRequest.
953
+ # NOTE: This does not deny access to the resource if another request has been
954
+ # made and approved. It only invalidates a single approval. Returns
955
+ # FAILED_PRECONDITION if the request exists but is not in an approved state.
956
+ # @param [String] name
957
+ # Name of the ApprovalRequest to invalidate.
958
+ # @param [Google::Apis::AccessapprovalV1::InvalidateApprovalRequestMessage] invalidate_approval_request_message_object
959
+ # @param [String] fields
960
+ # Selector specifying which fields to include in a partial response.
961
+ # @param [String] quota_user
962
+ # Available to use for quota purposes for server-side applications. Can be any
963
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
964
+ # @param [Google::Apis::RequestOptions] options
965
+ # Request-specific options
966
+ #
967
+ # @yield [result, err] Result & error if block supplied
968
+ # @yieldparam result [Google::Apis::AccessapprovalV1::ApprovalRequest] parsed result object
969
+ # @yieldparam err [StandardError] error object if request failed
970
+ #
971
+ # @return [Google::Apis::AccessapprovalV1::ApprovalRequest]
972
+ #
973
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
974
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
975
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
976
+ def invalidate_project_approval_request(name, invalidate_approval_request_message_object = nil, fields: nil, quota_user: nil, options: nil, &block)
977
+ command = make_simple_command(:post, 'v1/{+name}:invalidate', options)
978
+ command.request_representation = Google::Apis::AccessapprovalV1::InvalidateApprovalRequestMessage::Representation
979
+ command.request_object = invalidate_approval_request_message_object
980
+ command.response_representation = Google::Apis::AccessapprovalV1::ApprovalRequest::Representation
981
+ command.response_class = Google::Apis::AccessapprovalV1::ApprovalRequest
982
+ command.params['name'] = name unless name.nil?
983
+ command.query['fields'] = fields unless fields.nil?
984
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
985
+ execute_or_queue_command(command, &block)
986
+ end
987
+
880
988
  # Lists approval requests associated with a project, folder, or organization.
881
989
  # Approval requests can be filtered by state (pending, active, dismissed). The
882
990
  # order is reverse chronological.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-accessapproval_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.19.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: 2022-03-14 00:00:00.000000000 Z
11
+ date: 2022-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.4'
19
+ version: '0.5'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.4'
29
+ version: '0.5'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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-accessapproval_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-accessapproval_v1/v0.16.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-accessapproval_v1/v0.19.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-accessapproval_v1
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.3.5
78
+ rubygems_version: 3.3.14
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Access Approval API V1