google-apis-accessapproval_v1 0.14.0 → 0.17.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: f2b7ba67ddf1276951cd59cf8a09daca04123a2cf534f64345c44c9fce22a2b7
4
- data.tar.gz: 8af48a061d5cec2d42b49ae93af60ed5276bd461338c5882d71c56e470f0e347
3
+ metadata.gz: ddc72f67ed591a1cec72b3cc464455d9c15e28daa7d2339c024d0e915278ab2c
4
+ data.tar.gz: 17b7ec214b531b1058943c09fee594438c2949930355c7b0aa0391fad1f3a893
5
5
  SHA512:
6
- metadata.gz: caa0ea024fac474f4639e93fec9c650cb2926fa63b49597c081967144dfabe6255c9f09a5dc588d977e001eb3dbc57885cf3187ae9823bfe9cf84e618e9273cb
7
- data.tar.gz: 12c1ea05bca935b73aa148c894f26f7d4744a0eaece705d692152a6f7b7eba9d0500a040c8eedeab1515e1ba43b187daece964a87f058f5e95f8c8e1b6d3122d
6
+ metadata.gz: eaf304f2adb4f3b40b88afcb18cb46a38fe97a5a2881c707517107de89fbb231cba2118dde3e8378f2fcf225d5981aabc7788fbeee2c4fb3be28393fb571ebf7
7
+ data.tar.gz: 2bac56b74f0a8bcb3fdf2351f74cff663f6d9ec94eb523752ef875761a4d385a189ae86186fcfa90505551746cd43a2fcfa7a4dc02677313dd124590fea2d46a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-accessapproval_v1
2
2
 
3
+ ### v0.17.0 (2022-03-22)
4
+
5
+ * Regenerated from discovery document revision 20220317
6
+
7
+ ### v0.16.0 (2022-03-08)
8
+
9
+ * Regenerated from discovery document revision 20220304
10
+
11
+ ### v0.15.0 (2022-02-15)
12
+
13
+ * Regenerated from discovery document revision 20220212
14
+ * Regenerated using generator version 0.4.1
15
+
3
16
  ### v0.14.0 (2021-12-14)
4
17
 
5
18
  * Unspecified changes
@@ -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,22 @@ 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
+ # Information about the digital signature of the resource.
313
+ # Corresponds to the JSON property `signatureInfo`
314
+ # @return [Google::Apis::AccessapprovalV1::SignatureInfo]
315
+ attr_accessor :signature_info
316
+
246
317
  def initialize(**args)
247
318
  update!(**args)
248
319
  end
@@ -250,7 +321,9 @@ module Google
250
321
  # Update properties of this object
251
322
  def update!(**args)
252
323
  @approve_time = args[:approve_time] if args.key?(:approve_time)
324
+ @auto_approved = args[:auto_approved] if args.key?(:auto_approved)
253
325
  @expire_time = args[:expire_time] if args.key?(:expire_time)
326
+ @signature_info = args[:signature_info] if args.key?(:signature_info)
254
327
  end
255
328
  end
256
329
 
@@ -276,7 +349,7 @@ module Google
276
349
  # @return [String]
277
350
  attr_accessor :dismiss_time
278
351
 
279
- # This field will be true if the ApprovalRequest was implcitly dismissed due to
352
+ # This field will be true if the ApprovalRequest was implicitly dismissed due to
280
353
  # inaction by the access approval approvers (the request is not acted on by the
281
354
  # approvers before the exiration time).
282
355
  # Corresponds to the JSON property `implicit`
@@ -298,8 +371,7 @@ module Google
298
371
  # A generic empty message that you can re-use to avoid defining duplicated empty
299
372
  # messages in your APIs. A typical example is to use it as the request or the
300
373
  # 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 ````.
374
+ # protobuf.Empty) returns (google.protobuf.Empty); `
303
375
  class Empty
304
376
  include Google::Apis::Core::Hashable
305
377
 
@@ -400,6 +472,40 @@ module Google
400
472
  @excludes_descendants = args[:excludes_descendants] if args.key?(:excludes_descendants)
401
473
  end
402
474
  end
475
+
476
+ # Information about the digital signature of the resource.
477
+ class SignatureInfo
478
+ include Google::Apis::Core::Hashable
479
+
480
+ # The resource name of the customer CryptoKeyVersion used for signing.
481
+ # Corresponds to the JSON property `customerKmsKeyVersion`
482
+ # @return [String]
483
+ attr_accessor :customer_kms_key_version
484
+
485
+ # The public key for the Google default signing, encoded in PEM format. The
486
+ # signature was created using a private key which may be verified using this
487
+ # public key.
488
+ # Corresponds to the JSON property `googlePublicKeyPem`
489
+ # @return [String]
490
+ attr_accessor :google_public_key_pem
491
+
492
+ # The digital signature.
493
+ # Corresponds to the JSON property `signature`
494
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
495
+ # @return [String]
496
+ attr_accessor :signature
497
+
498
+ def initialize(**args)
499
+ update!(**args)
500
+ end
501
+
502
+ # Update properties of this object
503
+ def update!(**args)
504
+ @customer_kms_key_version = args[:customer_kms_key_version] if args.key?(:customer_kms_key_version)
505
+ @google_public_key_pem = args[:google_public_key_pem] if args.key?(:google_public_key_pem)
506
+ @signature = args[:signature] if args.key?(:signature)
507
+ end
508
+ end
403
509
  end
404
510
  end
405
511
  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.14.0"
19
+ GEM_VERSION = "0.17.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.0"
22
+ GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211130"
25
+ REVISION = "20220317"
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
 
@@ -94,12 +100,29 @@ module Google
94
100
  include Google::Apis::Core::JsonObjectSupport
95
101
  end
96
102
 
103
+ class SignatureInfo
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class AccessApprovalServiceAccount
110
+ # @private
111
+ class Representation < Google::Apis::Core::JsonRepresentation
112
+ property :account_email, as: 'accountEmail'
113
+ property :name, as: 'name'
114
+ end
115
+ end
116
+
97
117
  class AccessApprovalSettings
98
118
  # @private
99
119
  class Representation < Google::Apis::Core::JsonRepresentation
120
+ property :active_key_version, as: 'activeKeyVersion'
121
+ property :ancestor_has_active_key_version, as: 'ancestorHasActiveKeyVersion'
100
122
  property :enrolled_ancestor, as: 'enrolledAncestor'
101
123
  collection :enrolled_services, as: 'enrolledServices', class: Google::Apis::AccessapprovalV1::EnrolledService, decorator: Google::Apis::AccessapprovalV1::EnrolledService::Representation
102
124
 
125
+ property :invalid_key_version, as: 'invalidKeyVersion'
103
126
  property :name, as: 'name'
104
127
  collection :notification_emails, as: 'notificationEmails'
105
128
  end
@@ -152,7 +175,10 @@ module Google
152
175
  # @private
153
176
  class Representation < Google::Apis::Core::JsonRepresentation
154
177
  property :approve_time, as: 'approveTime'
178
+ property :auto_approved, as: 'autoApproved'
155
179
  property :expire_time, as: 'expireTime'
180
+ property :signature_info, as: 'signatureInfo', class: Google::Apis::AccessapprovalV1::SignatureInfo, decorator: Google::Apis::AccessapprovalV1::SignatureInfo::Representation
181
+
156
182
  end
157
183
  end
158
184
 
@@ -199,6 +225,15 @@ module Google
199
225
  property :excludes_descendants, as: 'excludesDescendants'
200
226
  end
201
227
  end
228
+
229
+ class SignatureInfo
230
+ # @private
231
+ class Representation < Google::Apis::Core::JsonRepresentation
232
+ property :customer_kms_key_version, as: 'customerKmsKeyVersion'
233
+ property :google_public_key_pem, as: 'googlePublicKeyPem'
234
+ property :signature, :base64 => true, as: 'signature'
235
+ end
236
+ end
202
237
  end
203
238
  end
204
239
  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
@@ -375,6 +406,37 @@ module Google
375
406
  execute_or_queue_command(command, &block)
376
407
  end
377
408
 
409
+ # Retrieves the service account that is used by Access Approval to access KMS
410
+ # keys for signing approved approval requests.
411
+ # @param [String] name
412
+ # Name of the AccessApprovalServiceAccount to retrieve.
413
+ # @param [String] fields
414
+ # Selector specifying which fields to include in a partial response.
415
+ # @param [String] quota_user
416
+ # Available to use for quota purposes for server-side applications. Can be any
417
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
418
+ # @param [Google::Apis::RequestOptions] options
419
+ # Request-specific options
420
+ #
421
+ # @yield [result, err] Result & error if block supplied
422
+ # @yieldparam result [Google::Apis::AccessapprovalV1::AccessApprovalServiceAccount] parsed result object
423
+ # @yieldparam err [StandardError] error object if request failed
424
+ #
425
+ # @return [Google::Apis::AccessapprovalV1::AccessApprovalServiceAccount]
426
+ #
427
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
428
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
429
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
430
+ def get_organization_service_account(name, fields: nil, quota_user: nil, options: nil, &block)
431
+ command = make_simple_command(:get, 'v1/{+name}', options)
432
+ command.response_representation = Google::Apis::AccessapprovalV1::AccessApprovalServiceAccount::Representation
433
+ command.response_class = Google::Apis::AccessapprovalV1::AccessApprovalServiceAccount
434
+ command.params['name'] = name unless name.nil?
435
+ command.query['fields'] = fields unless fields.nil?
436
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
437
+ execute_or_queue_command(command, &block)
438
+ end
439
+
378
440
  # Updates the settings associated with a project, folder, or organization.
379
441
  # Settings to update are determined by the value of field_mask.
380
442
  # @param [String] name
@@ -636,6 +698,37 @@ module Google
636
698
  execute_or_queue_command(command, &block)
637
699
  end
638
700
 
701
+ # Retrieves the service account that is used by Access Approval to access KMS
702
+ # keys for signing approved approval requests.
703
+ # @param [String] name
704
+ # Name of the AccessApprovalServiceAccount to retrieve.
705
+ # @param [String] fields
706
+ # Selector specifying which fields to include in a partial response.
707
+ # @param [String] quota_user
708
+ # Available to use for quota purposes for server-side applications. Can be any
709
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
710
+ # @param [Google::Apis::RequestOptions] options
711
+ # Request-specific options
712
+ #
713
+ # @yield [result, err] Result & error if block supplied
714
+ # @yieldparam result [Google::Apis::AccessapprovalV1::AccessApprovalServiceAccount] parsed result object
715
+ # @yieldparam err [StandardError] error object if request failed
716
+ #
717
+ # @return [Google::Apis::AccessapprovalV1::AccessApprovalServiceAccount]
718
+ #
719
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
720
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
721
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
722
+ def get_project_service_account(name, fields: nil, quota_user: nil, options: nil, &block)
723
+ command = make_simple_command(:get, 'v1/{+name}', options)
724
+ command.response_representation = Google::Apis::AccessapprovalV1::AccessApprovalServiceAccount::Representation
725
+ command.response_class = Google::Apis::AccessapprovalV1::AccessApprovalServiceAccount
726
+ command.params['name'] = name unless name.nil?
727
+ command.query['fields'] = fields unless fields.nil?
728
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
729
+ execute_or_queue_command(command, &block)
730
+ end
731
+
639
732
  # Updates the settings associated with a project, folder, or organization.
640
733
  # Settings to update are determined by the value of field_mask.
641
734
  # @param [String] name
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.14.0
4
+ version: 0.17.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-01-10 00:00:00.000000000 Z
11
+ date: 2022-03-28 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.14.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-accessapproval_v1/v0.17.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.4
78
+ rubygems_version: 3.3.5
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Access Approval API V1