google-apis-accessapproval_v1 0.15.0 → 0.16.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: 45af9cc5d51f457ea44562a2a82e4efffcd3e17d2f588563bb4a72828ffca67f
4
+ data.tar.gz: 34e02c072b1691eb2e81974d4d45ccd5b5c010230a8ec6b5a02d95e5b8d4a3f4
5
5
  SHA512:
6
- metadata.gz: 3cd61f18d41047e3f47ad15949366beb20249679eef354c97ff1dab04b43d558c57431a3d693603dafb0fbd9b8374cf2cfebc2cbabf46ea77d0403f7be868199
7
- data.tar.gz: 563cb48a3d48da26b412efc90c27bdf5a67c27fca11b9f959c81a7f6af1cd30b7b063b12439f00a418d2e6b481a49f23f8537f49e7904a8e3d6415d8597be768
6
+ metadata.gz: fbc0c349939ac8a3e0908527cda62cf9c65eb81b71ec298a6e975a2efeee95b55e33e652aaa39e06a6555d4a998ef3de6e6e1035e1700d9375e9c11420aaae3d
7
+ data.tar.gz: 7504c75abc62b19bcba6ea93c73ef8895c63d00177de81dae7b37968d88c945ec467f3ecc253b041f61dd7d03291fe540ff9289b09258afb2e3e2359cefab851
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-accessapproval_v1
2
2
 
3
+ ### v0.16.0 (2022-03-08)
4
+
5
+ * Regenerated from discovery document revision 20220304
6
+
3
7
  ### v0.15.0 (2022-02-15)
4
8
 
5
9
  * 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,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
 
@@ -400,6 +473,40 @@ module Google
400
473
  @excludes_descendants = args[:excludes_descendants] if args.key?(:excludes_descendants)
401
474
  end
402
475
  end
476
+
477
+ # Information about the digital signature of the resource.
478
+ class SignatureInfo
479
+ include Google::Apis::Core::Hashable
480
+
481
+ # The resource name of the customer CryptoKeyVersion used for signing.
482
+ # Corresponds to the JSON property `customerKmsKeyVersion`
483
+ # @return [String]
484
+ attr_accessor :customer_kms_key_version
485
+
486
+ # The public key for the Google default signing, encoded in PEM format. The
487
+ # signature was created using a private key which may be verified using this
488
+ # public key.
489
+ # Corresponds to the JSON property `googlePublicKeyPem`
490
+ # @return [String]
491
+ attr_accessor :google_public_key_pem
492
+
493
+ # The digital signature.
494
+ # Corresponds to the JSON property `signature`
495
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
496
+ # @return [String]
497
+ attr_accessor :signature
498
+
499
+ def initialize(**args)
500
+ update!(**args)
501
+ end
502
+
503
+ # Update properties of this object
504
+ def update!(**args)
505
+ @customer_kms_key_version = args[:customer_kms_key_version] if args.key?(:customer_kms_key_version)
506
+ @google_public_key_pem = args[:google_public_key_pem] if args.key?(:google_public_key_pem)
507
+ @signature = args[:signature] if args.key?(:signature)
508
+ end
509
+ end
403
510
  end
404
511
  end
405
512
  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.16.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 = "20220304"
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.15.0
4
+ version: 0.16.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-03-14 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.16.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: []