google-apis-accessapproval_v1 0.15.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: 714933bdf09d4b08679d573010c94e8eeed7f6d5db73d6b09df602fdd0743fd1
4
- data.tar.gz: afd215212eab96dba47bfbbbfff716adbc8afba9391d0043923a6ac1b74904d4
3
+ metadata.gz: 6ec64882e165737b960230c1123744cecb68060a468b6596f34fb019ff8f398a
4
+ data.tar.gz: 91eb88dda28d5ba562710c0e3dec7baf120a644887d244543ba1ce7b87270b2e
5
5
  SHA512:
6
- metadata.gz: 3cd61f18d41047e3f47ad15949366beb20249679eef354c97ff1dab04b43d558c57431a3d693603dafb0fbd9b8374cf2cfebc2cbabf46ea77d0403f7be868199
7
- data.tar.gz: 563cb48a3d48da26b412efc90c27bdf5a67c27fca11b9f959c81a7f6af1cd30b7b063b12439f00a418d2e6b481a49f23f8537f49e7904a8e3d6415d8597be768
6
+ metadata.gz: 1829fed197215f01960431dfff48286648bd3829db8e9a2ba7f7ac777aee5814e2a77ee047fcb1b83ff03edeec70c08b8820812b76a8b7559cf8c6d935c4eeb8
7
+ data.tar.gz: fb44a45655ce2c072d0dbc39dad553fd3d7f547cb0d9bb8cac74677b4ed673260243f77f66718e1fb4fc608ece5df1f1cc62b384c5681069e3129c135a4730d0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-accessapproval_v1
2
2
 
3
+ ### v0.18.0 (2022-05-25)
4
+
5
+ * Regenerated from discovery document revision 20220519
6
+
7
+ ### v0.17.0 (2022-03-22)
8
+
9
+ * Regenerated from discovery document revision 20220317
10
+
11
+ ### v0.16.0 (2022-03-08)
12
+
13
+ * Regenerated from discovery document revision 20220304
14
+
3
15
  ### v0.15.0 (2022-02-15)
4
16
 
5
17
  * Regenerated from discovery document revision 20220212
@@ -22,10 +22,55 @@ module Google
22
22
  module Apis
23
23
  module AccessapprovalV1
24
24
 
25
+ # Access Approval service account related to a project/folder/organization.
26
+ class AccessApprovalServiceAccount
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Email address of the service account.
30
+ # Corresponds to the JSON property `accountEmail`
31
+ # @return [String]
32
+ attr_accessor :account_email
33
+
34
+ # The resource name of the Access Approval service account. Format is one of: * "
35
+ # projects/`project`/serviceAccount" * "folders/`folder`/serviceAccount" * "
36
+ # organizations/`organization`/serviceAccount"
37
+ # Corresponds to the JSON property `name`
38
+ # @return [String]
39
+ attr_accessor :name
40
+
41
+ def initialize(**args)
42
+ update!(**args)
43
+ end
44
+
45
+ # Update properties of this object
46
+ def update!(**args)
47
+ @account_email = args[:account_email] if args.key?(:account_email)
48
+ @name = args[:name] if args.key?(:name)
49
+ end
50
+ end
51
+
25
52
  # Settings on a Project/Folder/Organization related to Access Approval.
26
53
  class AccessApprovalSettings
27
54
  include Google::Apis::Core::Hashable
28
55
 
56
+ # The asymmetric crypto key version to use for signing approval requests. Empty
57
+ # active_key_version indicates that a Google-managed key should be used for
58
+ # signing. This property will be ignored if set by an ancestor of this resource,
59
+ # and new non-empty values may not be set.
60
+ # Corresponds to the JSON property `activeKeyVersion`
61
+ # @return [String]
62
+ attr_accessor :active_key_version
63
+
64
+ # Output only. This field is read only (not settable via
65
+ # UpdateAccessApprovalSettings method). If the field is true, that indicates
66
+ # that an ancestor of this Project or Folder has set active_key_version (this
67
+ # field will always be unset for the organization since organizations do not
68
+ # have ancestors).
69
+ # Corresponds to the JSON property `ancestorHasActiveKeyVersion`
70
+ # @return [Boolean]
71
+ attr_accessor :ancestor_has_active_key_version
72
+ alias_method :ancestor_has_active_key_version?, :ancestor_has_active_key_version
73
+
29
74
  # Output only. This field is read only (not settable via
30
75
  # UpdateAccessApprovalSettings method). If the field is true, that indicates
31
76
  # that at least one service is enrolled for Access Approval in one or more
@@ -49,6 +94,18 @@ module Google
49
94
  # @return [Array<Google::Apis::AccessapprovalV1::EnrolledService>]
50
95
  attr_accessor :enrolled_services
51
96
 
97
+ # Output only. This field is read only (not settable via
98
+ # UpdateAccessApprovalSettings method). If the field is true, that indicates
99
+ # that there is some configuration issue with the active_key_version configured
100
+ # at this level in the resource hierarchy (e.g. it doesn't exist or the Access
101
+ # Approval service account doesn't have the correct permissions on it, etc.)
102
+ # This key version is not necessarily the effective key version at this level,
103
+ # as key versions are inherited top-down.
104
+ # Corresponds to the JSON property `invalidKeyVersion`
105
+ # @return [Boolean]
106
+ attr_accessor :invalid_key_version
107
+ alias_method :invalid_key_version?, :invalid_key_version
108
+
52
109
  # The resource name of the settings. Format is one of: * "projects/`project`/
53
110
  # accessApprovalSettings" * "folders/`folder`/accessApprovalSettings" * "
54
111
  # organizations/`organization`/accessApprovalSettings"
@@ -70,8 +127,11 @@ module Google
70
127
 
71
128
  # Update properties of this object
72
129
  def update!(**args)
130
+ @active_key_version = args[:active_key_version] if args.key?(:active_key_version)
131
+ @ancestor_has_active_key_version = args[:ancestor_has_active_key_version] if args.key?(:ancestor_has_active_key_version)
73
132
  @enrolled_ancestor = args[:enrolled_ancestor] if args.key?(:enrolled_ancestor)
74
133
  @enrolled_services = args[:enrolled_services] if args.key?(:enrolled_services)
134
+ @invalid_key_version = args[:invalid_key_version] if args.key?(:invalid_key_version)
75
135
  @name = args[:name] if args.key?(:name)
76
136
  @notification_emails = args[:notification_emails] if args.key?(:notification_emails)
77
137
  end
@@ -238,11 +298,27 @@ module Google
238
298
  # @return [String]
239
299
  attr_accessor :approve_time
240
300
 
301
+ # True when the request has been auto-approved.
302
+ # Corresponds to the JSON property `autoApproved`
303
+ # @return [Boolean]
304
+ attr_accessor :auto_approved
305
+ alias_method :auto_approved?, :auto_approved
306
+
241
307
  # The time at which the approval expires.
242
308
  # Corresponds to the JSON property `expireTime`
243
309
  # @return [String]
244
310
  attr_accessor :expire_time
245
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
+
317
+ # Information about the digital signature of the resource.
318
+ # Corresponds to the JSON property `signatureInfo`
319
+ # @return [Google::Apis::AccessapprovalV1::SignatureInfo]
320
+ attr_accessor :signature_info
321
+
246
322
  def initialize(**args)
247
323
  update!(**args)
248
324
  end
@@ -250,7 +326,10 @@ module Google
250
326
  # Update properties of this object
251
327
  def update!(**args)
252
328
  @approve_time = args[:approve_time] if args.key?(:approve_time)
329
+ @auto_approved = args[:auto_approved] if args.key?(:auto_approved)
253
330
  @expire_time = args[:expire_time] if args.key?(:expire_time)
331
+ @invalidate_time = args[:invalidate_time] if args.key?(:invalidate_time)
332
+ @signature_info = args[:signature_info] if args.key?(:signature_info)
254
333
  end
255
334
  end
256
335
 
@@ -298,8 +377,7 @@ module Google
298
377
  # A generic empty message that you can re-use to avoid defining duplicated empty
299
378
  # messages in your APIs. A typical example is to use it as the request or the
300
379
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
301
- # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
302
- # `Empty` is empty JSON object ````.
380
+ # protobuf.Empty) returns (google.protobuf.Empty); `
303
381
  class Empty
304
382
  include Google::Apis::Core::Hashable
305
383
 
@@ -355,6 +433,19 @@ module Google
355
433
  end
356
434
  end
357
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
+
358
449
  # Response to listing of ApprovalRequest objects.
359
450
  class ListApprovalRequestsResponse
360
451
  include Google::Apis::Core::Hashable
@@ -400,6 +491,40 @@ module Google
400
491
  @excludes_descendants = args[:excludes_descendants] if args.key?(:excludes_descendants)
401
492
  end
402
493
  end
494
+
495
+ # Information about the digital signature of the resource.
496
+ class SignatureInfo
497
+ include Google::Apis::Core::Hashable
498
+
499
+ # The resource name of the customer CryptoKeyVersion used for signing.
500
+ # Corresponds to the JSON property `customerKmsKeyVersion`
501
+ # @return [String]
502
+ attr_accessor :customer_kms_key_version
503
+
504
+ # The public key for the Google default signing, encoded in PEM format. The
505
+ # signature was created using a private key which may be verified using this
506
+ # public key.
507
+ # Corresponds to the JSON property `googlePublicKeyPem`
508
+ # @return [String]
509
+ attr_accessor :google_public_key_pem
510
+
511
+ # The digital signature.
512
+ # Corresponds to the JSON property `signature`
513
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
514
+ # @return [String]
515
+ attr_accessor :signature
516
+
517
+ def initialize(**args)
518
+ update!(**args)
519
+ end
520
+
521
+ # Update properties of this object
522
+ def update!(**args)
523
+ @customer_kms_key_version = args[:customer_kms_key_version] if args.key?(:customer_kms_key_version)
524
+ @google_public_key_pem = args[:google_public_key_pem] if args.key?(:google_public_key_pem)
525
+ @signature = args[:signature] if args.key?(:signature)
526
+ end
527
+ end
403
528
  end
404
529
  end
405
530
  end
@@ -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.15.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 = "20220212"
25
+ REVISION = "20220519"
26
26
  end
27
27
  end
28
28
  end
@@ -22,6 +22,12 @@ module Google
22
22
  module Apis
23
23
  module AccessapprovalV1
24
24
 
25
+ class AccessApprovalServiceAccount
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
25
31
  class AccessApprovalSettings
26
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
33
 
@@ -82,6 +88,12 @@ module Google
82
88
  include Google::Apis::Core::JsonObjectSupport
83
89
  end
84
90
 
91
+ class InvalidateApprovalRequestMessage
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
85
97
  class ListApprovalRequestsResponse
86
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
99
 
@@ -94,12 +106,29 @@ module Google
94
106
  include Google::Apis::Core::JsonObjectSupport
95
107
  end
96
108
 
109
+ class SignatureInfo
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class AccessApprovalServiceAccount
116
+ # @private
117
+ class Representation < Google::Apis::Core::JsonRepresentation
118
+ property :account_email, as: 'accountEmail'
119
+ property :name, as: 'name'
120
+ end
121
+ end
122
+
97
123
  class AccessApprovalSettings
98
124
  # @private
99
125
  class Representation < Google::Apis::Core::JsonRepresentation
126
+ property :active_key_version, as: 'activeKeyVersion'
127
+ property :ancestor_has_active_key_version, as: 'ancestorHasActiveKeyVersion'
100
128
  property :enrolled_ancestor, as: 'enrolledAncestor'
101
129
  collection :enrolled_services, as: 'enrolledServices', class: Google::Apis::AccessapprovalV1::EnrolledService, decorator: Google::Apis::AccessapprovalV1::EnrolledService::Representation
102
130
 
131
+ property :invalid_key_version, as: 'invalidKeyVersion'
103
132
  property :name, as: 'name'
104
133
  collection :notification_emails, as: 'notificationEmails'
105
134
  end
@@ -152,7 +181,11 @@ module Google
152
181
  # @private
153
182
  class Representation < Google::Apis::Core::JsonRepresentation
154
183
  property :approve_time, as: 'approveTime'
184
+ property :auto_approved, as: 'autoApproved'
155
185
  property :expire_time, as: 'expireTime'
186
+ property :invalidate_time, as: 'invalidateTime'
187
+ property :signature_info, as: 'signatureInfo', class: Google::Apis::AccessapprovalV1::SignatureInfo, decorator: Google::Apis::AccessapprovalV1::SignatureInfo::Representation
188
+
156
189
  end
157
190
  end
158
191
 
@@ -184,6 +217,12 @@ module Google
184
217
  end
185
218
  end
186
219
 
220
+ class InvalidateApprovalRequestMessage
221
+ # @private
222
+ class Representation < Google::Apis::Core::JsonRepresentation
223
+ end
224
+ end
225
+
187
226
  class ListApprovalRequestsResponse
188
227
  # @private
189
228
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -199,6 +238,15 @@ module Google
199
238
  property :excludes_descendants, as: 'excludesDescendants'
200
239
  end
201
240
  end
241
+
242
+ class SignatureInfo
243
+ # @private
244
+ class Representation < Google::Apis::Core::JsonRepresentation
245
+ property :customer_kms_key_version, as: 'customerKmsKeyVersion'
246
+ property :google_public_key_pem, as: 'googlePublicKeyPem'
247
+ property :signature, :base64 => true, as: 'signature'
248
+ end
249
+ end
202
250
  end
203
251
  end
204
252
  end
@@ -114,6 +114,37 @@ module Google
114
114
  execute_or_queue_command(command, &block)
115
115
  end
116
116
 
117
+ # Retrieves the service account that is used by Access Approval to access KMS
118
+ # keys for signing approved approval requests.
119
+ # @param [String] name
120
+ # Name of the AccessApprovalServiceAccount to retrieve.
121
+ # @param [String] fields
122
+ # Selector specifying which fields to include in a partial response.
123
+ # @param [String] quota_user
124
+ # Available to use for quota purposes for server-side applications. Can be any
125
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
126
+ # @param [Google::Apis::RequestOptions] options
127
+ # Request-specific options
128
+ #
129
+ # @yield [result, err] Result & error if block supplied
130
+ # @yieldparam result [Google::Apis::AccessapprovalV1::AccessApprovalServiceAccount] parsed result object
131
+ # @yieldparam err [StandardError] error object if request failed
132
+ #
133
+ # @return [Google::Apis::AccessapprovalV1::AccessApprovalServiceAccount]
134
+ #
135
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
136
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
137
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
138
+ def get_folder_service_account(name, fields: nil, quota_user: nil, options: nil, &block)
139
+ command = make_simple_command(:get, 'v1/{+name}', options)
140
+ command.response_representation = Google::Apis::AccessapprovalV1::AccessApprovalServiceAccount::Representation
141
+ command.response_class = Google::Apis::AccessapprovalV1::AccessApprovalServiceAccount
142
+ command.params['name'] = name unless name.nil?
143
+ command.query['fields'] = fields unless fields.nil?
144
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
145
+ execute_or_queue_command(command, &block)
146
+ end
147
+
117
148
  # Updates the settings associated with a project, folder, or organization.
118
149
  # Settings to update are determined by the value of field_mask.
119
150
  # @param [String] name
@@ -262,6 +293,42 @@ module Google
262
293
  execute_or_queue_command(command, &block)
263
294
  end
264
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
+
265
332
  # Lists approval requests associated with a project, folder, or organization.
266
333
  # Approval requests can be filtered by state (pending, active, dismissed). The
267
334
  # order is reverse chronological.
@@ -375,6 +442,37 @@ module Google
375
442
  execute_or_queue_command(command, &block)
376
443
  end
377
444
 
445
+ # Retrieves the service account that is used by Access Approval to access KMS
446
+ # keys for signing approved approval requests.
447
+ # @param [String] name
448
+ # Name of the AccessApprovalServiceAccount to retrieve.
449
+ # @param [String] fields
450
+ # Selector specifying which fields to include in a partial response.
451
+ # @param [String] quota_user
452
+ # Available to use for quota purposes for server-side applications. Can be any
453
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
454
+ # @param [Google::Apis::RequestOptions] options
455
+ # Request-specific options
456
+ #
457
+ # @yield [result, err] Result & error if block supplied
458
+ # @yieldparam result [Google::Apis::AccessapprovalV1::AccessApprovalServiceAccount] parsed result object
459
+ # @yieldparam err [StandardError] error object if request failed
460
+ #
461
+ # @return [Google::Apis::AccessapprovalV1::AccessApprovalServiceAccount]
462
+ #
463
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
464
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
465
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
466
+ def get_organization_service_account(name, fields: nil, quota_user: nil, options: nil, &block)
467
+ command = make_simple_command(:get, 'v1/{+name}', options)
468
+ command.response_representation = Google::Apis::AccessapprovalV1::AccessApprovalServiceAccount::Representation
469
+ command.response_class = Google::Apis::AccessapprovalV1::AccessApprovalServiceAccount
470
+ command.params['name'] = name unless name.nil?
471
+ command.query['fields'] = fields unless fields.nil?
472
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
473
+ execute_or_queue_command(command, &block)
474
+ end
475
+
378
476
  # Updates the settings associated with a project, folder, or organization.
379
477
  # Settings to update are determined by the value of field_mask.
380
478
  # @param [String] name
@@ -523,6 +621,42 @@ module Google
523
621
  execute_or_queue_command(command, &block)
524
622
  end
525
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
+
526
660
  # Lists approval requests associated with a project, folder, or organization.
527
661
  # Approval requests can be filtered by state (pending, active, dismissed). The
528
662
  # order is reverse chronological.
@@ -636,6 +770,37 @@ module Google
636
770
  execute_or_queue_command(command, &block)
637
771
  end
638
772
 
773
+ # Retrieves the service account that is used by Access Approval to access KMS
774
+ # keys for signing approved approval requests.
775
+ # @param [String] name
776
+ # Name of the AccessApprovalServiceAccount to retrieve.
777
+ # @param [String] fields
778
+ # Selector specifying which fields to include in a partial response.
779
+ # @param [String] quota_user
780
+ # Available to use for quota purposes for server-side applications. Can be any
781
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
782
+ # @param [Google::Apis::RequestOptions] options
783
+ # Request-specific options
784
+ #
785
+ # @yield [result, err] Result & error if block supplied
786
+ # @yieldparam result [Google::Apis::AccessapprovalV1::AccessApprovalServiceAccount] parsed result object
787
+ # @yieldparam err [StandardError] error object if request failed
788
+ #
789
+ # @return [Google::Apis::AccessapprovalV1::AccessApprovalServiceAccount]
790
+ #
791
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
792
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
793
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
794
+ def get_project_service_account(name, fields: nil, quota_user: nil, options: nil, &block)
795
+ command = make_simple_command(:get, 'v1/{+name}', options)
796
+ command.response_representation = Google::Apis::AccessapprovalV1::AccessApprovalServiceAccount::Representation
797
+ command.response_class = Google::Apis::AccessapprovalV1::AccessApprovalServiceAccount
798
+ command.params['name'] = name unless name.nil?
799
+ command.query['fields'] = fields unless fields.nil?
800
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
801
+ execute_or_queue_command(command, &block)
802
+ end
803
+
639
804
  # Updates the settings associated with a project, folder, or organization.
640
805
  # Settings to update are determined by the value of field_mask.
641
806
  # @param [String] name
@@ -784,6 +949,42 @@ module Google
784
949
  execute_or_queue_command(command, &block)
785
950
  end
786
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
+
787
988
  # Lists approval requests associated with a project, folder, or organization.
788
989
  # Approval requests can be filtered by state (pending, active, dismissed). The
789
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.15.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-02-21 00:00:00.000000000 Z
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.15.0
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.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