google-apis-cloudkms_v1 0.35.0 → 0.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a64c71a80217f3fdd283fadc26bae56563e494a55a8a3f615a30a5465a1ca56c
|
4
|
+
data.tar.gz: 5a4232c6efd7353b7f3d841f888cf59a70538668051bd5f339f065c49902712b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98f9226cf7de6df63d2268e5c7ab967dcd0e3aa89540b46071d3093067f0c88e82cb8f8c6c74d422febebbc573cf633577545935601caa3e38c7cc862939ae3c
|
7
|
+
data.tar.gz: 6fcfebc733ba69a59fd7231d6edda698cf940a438db9f28b0395224c6e4fe03c5d63ea89a4fac994f6f1b00fe135d021b610b0234380c185c1e479b8f56d9a6a
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-cloudkms_v1
|
2
2
|
|
3
|
+
### v0.37.0 (2023-03-12)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230307
|
6
|
+
|
7
|
+
### v0.36.0 (2023-02-19)
|
8
|
+
|
9
|
+
* Regenerated using generator version 0.12.0
|
10
|
+
|
3
11
|
### v0.35.0 (2023-02-12)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230127
|
@@ -649,6 +649,12 @@ module Google
|
|
649
649
|
# @return [String]
|
650
650
|
attr_accessor :destroy_time
|
651
651
|
|
652
|
+
# Output only. The root cause of the most recent external destruction failure.
|
653
|
+
# Only present if state is EXTERNAL_DESTRUCTION_FAILED.
|
654
|
+
# Corresponds to the JSON property `externalDestructionFailureReason`
|
655
|
+
# @return [String]
|
656
|
+
attr_accessor :external_destruction_failure_reason
|
657
|
+
|
652
658
|
# ExternalProtectionLevelOptions stores a group of additional fields for
|
653
659
|
# configuring a CryptoKeyVersion that are specific to the EXTERNAL protection
|
654
660
|
# level and EXTERNAL_VPC protection levels.
|
@@ -661,6 +667,12 @@ module Google
|
|
661
667
|
# @return [String]
|
662
668
|
attr_accessor :generate_time
|
663
669
|
|
670
|
+
# Output only. The root cause of the most recent generation failure. Only
|
671
|
+
# present if state is GENERATION_FAILED.
|
672
|
+
# Corresponds to the JSON property `generationFailureReason`
|
673
|
+
# @return [String]
|
674
|
+
attr_accessor :generation_failure_reason
|
675
|
+
|
664
676
|
# Output only. The root cause of the most recent import failure. Only present if
|
665
677
|
# state is IMPORT_FAILED.
|
666
678
|
# Corresponds to the JSON property `importFailureReason`
|
@@ -715,8 +727,10 @@ module Google
|
|
715
727
|
@create_time = args[:create_time] if args.key?(:create_time)
|
716
728
|
@destroy_event_time = args[:destroy_event_time] if args.key?(:destroy_event_time)
|
717
729
|
@destroy_time = args[:destroy_time] if args.key?(:destroy_time)
|
730
|
+
@external_destruction_failure_reason = args[:external_destruction_failure_reason] if args.key?(:external_destruction_failure_reason)
|
718
731
|
@external_protection_level_options = args[:external_protection_level_options] if args.key?(:external_protection_level_options)
|
719
732
|
@generate_time = args[:generate_time] if args.key?(:generate_time)
|
733
|
+
@generation_failure_reason = args[:generation_failure_reason] if args.key?(:generation_failure_reason)
|
720
734
|
@import_failure_reason = args[:import_failure_reason] if args.key?(:import_failure_reason)
|
721
735
|
@import_job = args[:import_job] if args.key?(:import_job)
|
722
736
|
@import_time = args[:import_time] if args.key?(:import_time)
|
@@ -915,6 +929,35 @@ module Google
|
|
915
929
|
end
|
916
930
|
end
|
917
931
|
|
932
|
+
# An EkmConfig is a singleton resource that represents configuration parameters
|
933
|
+
# that apply to all CryptoKeys and CryptoKeyVersions with a ProtectionLevel of
|
934
|
+
# EXTERNAL_VPC in a given project and location.
|
935
|
+
class EkmConfig
|
936
|
+
include Google::Apis::Core::Hashable
|
937
|
+
|
938
|
+
# Optional. Resource name of the default EkmConnection. Setting this field to
|
939
|
+
# the empty string removes the default.
|
940
|
+
# Corresponds to the JSON property `defaultEkmConnection`
|
941
|
+
# @return [String]
|
942
|
+
attr_accessor :default_ekm_connection
|
943
|
+
|
944
|
+
# Output only. The resource name for the EkmConfig in the format `projects/*/
|
945
|
+
# locations/*/ekmConfig`.
|
946
|
+
# Corresponds to the JSON property `name`
|
947
|
+
# @return [String]
|
948
|
+
attr_accessor :name
|
949
|
+
|
950
|
+
def initialize(**args)
|
951
|
+
update!(**args)
|
952
|
+
end
|
953
|
+
|
954
|
+
# Update properties of this object
|
955
|
+
def update!(**args)
|
956
|
+
@default_ekm_connection = args[:default_ekm_connection] if args.key?(:default_ekm_connection)
|
957
|
+
@name = args[:name] if args.key?(:name)
|
958
|
+
end
|
959
|
+
end
|
960
|
+
|
918
961
|
# An EkmConnection represents an individual EKM connection. It can be used for
|
919
962
|
# creating CryptoKeys and CryptoKeyVersions with a ProtectionLevel of
|
920
963
|
# EXTERNAL_VPC, as well as performing cryptographic operations using keys
|
@@ -927,11 +970,23 @@ module Google
|
|
927
970
|
# @return [String]
|
928
971
|
attr_accessor :create_time
|
929
972
|
|
973
|
+
# Optional. Identifies the EKM Crypto Space that this EkmConnection maps to.
|
974
|
+
# Note: This field is required if KeyManagementMode is CLOUD_KMS.
|
975
|
+
# Corresponds to the JSON property `cryptoSpacePath`
|
976
|
+
# @return [String]
|
977
|
+
attr_accessor :crypto_space_path
|
978
|
+
|
930
979
|
# Optional. Etag of the currently stored EkmConnection.
|
931
980
|
# Corresponds to the JSON property `etag`
|
932
981
|
# @return [String]
|
933
982
|
attr_accessor :etag
|
934
983
|
|
984
|
+
# Optional. Describes who can perform control plane operations on the EKM. If
|
985
|
+
# unset, this defaults to MANUAL.
|
986
|
+
# Corresponds to the JSON property `keyManagementMode`
|
987
|
+
# @return [String]
|
988
|
+
attr_accessor :key_management_mode
|
989
|
+
|
935
990
|
# Output only. The resource name for the EkmConnection in the format `projects/*/
|
936
991
|
# locations/*/ekmConnections/*`.
|
937
992
|
# Corresponds to the JSON property `name`
|
@@ -952,7 +1007,9 @@ module Google
|
|
952
1007
|
# Update properties of this object
|
953
1008
|
def update!(**args)
|
954
1009
|
@create_time = args[:create_time] if args.key?(:create_time)
|
1010
|
+
@crypto_space_path = args[:crypto_space_path] if args.key?(:crypto_space_path)
|
955
1011
|
@etag = args[:etag] if args.key?(:etag)
|
1012
|
+
@key_management_mode = args[:key_management_mode] if args.key?(:key_management_mode)
|
956
1013
|
@name = args[:name] if args.key?(:name)
|
957
1014
|
@service_resolvers = args[:service_resolvers] if args.key?(:service_resolvers)
|
958
1015
|
end
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module CloudkmsV1
|
18
18
|
# Version of the google-apis-cloudkms_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.37.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230307"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -118,6 +118,12 @@ module Google
|
|
118
118
|
include Google::Apis::Core::JsonObjectSupport
|
119
119
|
end
|
120
120
|
|
121
|
+
class EkmConfig
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
121
127
|
class EkmConnection
|
122
128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
129
|
|
@@ -430,9 +436,11 @@ module Google
|
|
430
436
|
property :create_time, as: 'createTime'
|
431
437
|
property :destroy_event_time, as: 'destroyEventTime'
|
432
438
|
property :destroy_time, as: 'destroyTime'
|
439
|
+
property :external_destruction_failure_reason, as: 'externalDestructionFailureReason'
|
433
440
|
property :external_protection_level_options, as: 'externalProtectionLevelOptions', class: Google::Apis::CloudkmsV1::ExternalProtectionLevelOptions, decorator: Google::Apis::CloudkmsV1::ExternalProtectionLevelOptions::Representation
|
434
441
|
|
435
442
|
property :generate_time, as: 'generateTime'
|
443
|
+
property :generation_failure_reason, as: 'generationFailureReason'
|
436
444
|
property :import_failure_reason, as: 'importFailureReason'
|
437
445
|
property :import_job, as: 'importJob'
|
438
446
|
property :import_time, as: 'importTime'
|
@@ -486,11 +494,21 @@ module Google
|
|
486
494
|
end
|
487
495
|
end
|
488
496
|
|
497
|
+
class EkmConfig
|
498
|
+
# @private
|
499
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
500
|
+
property :default_ekm_connection, as: 'defaultEkmConnection'
|
501
|
+
property :name, as: 'name'
|
502
|
+
end
|
503
|
+
end
|
504
|
+
|
489
505
|
class EkmConnection
|
490
506
|
# @private
|
491
507
|
class Representation < Google::Apis::Core::JsonRepresentation
|
492
508
|
property :create_time, as: 'createTime'
|
509
|
+
property :crypto_space_path, as: 'cryptoSpacePath'
|
493
510
|
property :etag, as: 'etag'
|
511
|
+
property :key_management_mode, as: 'keyManagementMode'
|
494
512
|
property :name, as: 'name'
|
495
513
|
collection :service_resolvers, as: 'serviceResolvers', class: Google::Apis::CloudkmsV1::ServiceResolver, decorator: Google::Apis::CloudkmsV1::ServiceResolver::Representation
|
496
514
|
|
@@ -115,6 +115,36 @@ module Google
|
|
115
115
|
execute_or_queue_command(command, &block)
|
116
116
|
end
|
117
117
|
|
118
|
+
# Returns the EkmConfig singleton resource for a given project and location.
|
119
|
+
# @param [String] name
|
120
|
+
# Required. The name of the EkmConfig to get.
|
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::CloudkmsV1::EkmConfig] parsed result object
|
131
|
+
# @yieldparam err [StandardError] error object if request failed
|
132
|
+
#
|
133
|
+
# @return [Google::Apis::CloudkmsV1::EkmConfig]
|
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_project_location_ekm_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
139
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
140
|
+
command.response_representation = Google::Apis::CloudkmsV1::EkmConfig::Representation
|
141
|
+
command.response_class = Google::Apis::CloudkmsV1::EkmConfig
|
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
|
+
|
118
148
|
# Lists information about the supported locations for this service.
|
119
149
|
# @param [String] name
|
120
150
|
# The resource that owns the locations collection, if applicable.
|
@@ -158,6 +188,43 @@ module Google
|
|
158
188
|
execute_or_queue_command(command, &block)
|
159
189
|
end
|
160
190
|
|
191
|
+
# Updates the EkmConfig singleton resource for a given project and location.
|
192
|
+
# @param [String] name
|
193
|
+
# Output only. The resource name for the EkmConfig in the format `projects/*/
|
194
|
+
# locations/*/ekmConfig`.
|
195
|
+
# @param [Google::Apis::CloudkmsV1::EkmConfig] ekm_config_object
|
196
|
+
# @param [String] update_mask
|
197
|
+
# Required. List of fields to be updated in this request.
|
198
|
+
# @param [String] fields
|
199
|
+
# Selector specifying which fields to include in a partial response.
|
200
|
+
# @param [String] quota_user
|
201
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
202
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
203
|
+
# @param [Google::Apis::RequestOptions] options
|
204
|
+
# Request-specific options
|
205
|
+
#
|
206
|
+
# @yield [result, err] Result & error if block supplied
|
207
|
+
# @yieldparam result [Google::Apis::CloudkmsV1::EkmConfig] parsed result object
|
208
|
+
# @yieldparam err [StandardError] error object if request failed
|
209
|
+
#
|
210
|
+
# @return [Google::Apis::CloudkmsV1::EkmConfig]
|
211
|
+
#
|
212
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
213
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
214
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
215
|
+
def update_project_location_ekm_config(name, ekm_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
216
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
217
|
+
command.request_representation = Google::Apis::CloudkmsV1::EkmConfig::Representation
|
218
|
+
command.request_object = ekm_config_object
|
219
|
+
command.response_representation = Google::Apis::CloudkmsV1::EkmConfig::Representation
|
220
|
+
command.response_class = Google::Apis::CloudkmsV1::EkmConfig
|
221
|
+
command.params['name'] = name unless name.nil?
|
222
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
223
|
+
command.query['fields'] = fields unless fields.nil?
|
224
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
225
|
+
execute_or_queue_command(command, &block)
|
226
|
+
end
|
227
|
+
|
161
228
|
# Gets the access control policy for a resource. Returns an empty policy if the
|
162
229
|
# resource exists and does not have a policy set.
|
163
230
|
# @param [String] resource
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-cloudkms_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.37.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: 2023-
|
11
|
+
date: 2023-03-12 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.
|
19
|
+
version: 0.11.0
|
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.
|
29
|
+
version: 0.11.0
|
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-cloudkms_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudkms_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudkms_v1/v0.37.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudkms_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|