google-apis-accessapproval_v1 0.17.0 → 0.18.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ec64882e165737b960230c1123744cecb68060a468b6596f34fb019ff8f398a
|
4
|
+
data.tar.gz: 91eb88dda28d5ba562710c0e3dec7baf120a644887d244543ba1ce7b87270b2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1829fed197215f01960431dfff48286648bd3829db8e9a2ba7f7ac777aee5814e2a77ee047fcb1b83ff03edeec70c08b8820812b76a8b7559cf8c6d935c4eeb8
|
7
|
+
data.tar.gz: fb44a45655ce2c072d0dbc39dad553fd3d7f547cb0d9bb8cac74677b4ed673260243f77f66718e1fb4fc608ece5df1f1cc62b384c5681069e3129c135a4730d0
|
data/CHANGELOG.md
CHANGED
@@ -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
|
@@ -427,6 +433,19 @@ module Google
|
|
427
433
|
end
|
428
434
|
end
|
429
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
|
+
|
430
449
|
# Response to listing of ApprovalRequest objects.
|
431
450
|
class ListApprovalRequestsResponse
|
432
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.
|
19
|
+
GEM_VERSION = "0.18.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
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.
|
4
|
+
version: 0.18.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-
|
11
|
+
date: 2022-05-30 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-accessapproval_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-accessapproval_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-accessapproval_v1/v0.18.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.
|
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
|