akeyless 3.3.4 → 3.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -1
- data/docs/CertificateTemplateInfo.md +32 -0
- data/docs/CreateClassicKey.md +16 -0
- data/docs/CreateDFCKey.md +16 -0
- data/docs/CreateKey.md +16 -0
- data/docs/DSProducerDetails.md +8 -2
- data/docs/DeriveKey.md +40 -0
- data/docs/DeriveKeyOutput.md +20 -0
- data/docs/EventAction.md +26 -0
- data/docs/GatewayCreateProducerCertificateAutomation.md +6 -4
- data/docs/GatewayUpdateProducerCertificateAutomation.md +6 -4
- data/docs/ItemGeneralInfo.md +2 -0
- data/docs/SignDataWithClassicKey.md +34 -0
- data/docs/SignOutput.md +18 -0
- data/docs/TargetTypeDetailsInput.md +8 -2
- data/docs/V2Api.md +252 -0
- data/docs/VerifyDataWithClassicKey.md +36 -0
- data/lib/akeyless/api/v2_api.rb +256 -0
- data/lib/akeyless/models/certificate_template_info.rb +282 -0
- data/lib/akeyless/models/create_classic_key.rb +81 -1
- data/lib/akeyless/models/create_dfc_key.rb +81 -1
- data/lib/akeyless/models/create_key.rb +81 -1
- data/lib/akeyless/models/derive_key.rb +362 -0
- data/lib/akeyless/models/derive_key_output.rb +228 -0
- data/lib/akeyless/models/ds_producer_details.rb +30 -1
- data/lib/akeyless/models/event_action.rb +272 -0
- data/lib/akeyless/models/gateway_create_producer_certificate_automation.rb +30 -18
- data/lib/akeyless/models/gateway_update_producer_certificate_automation.rb +30 -18
- data/lib/akeyless/models/item_general_info.rb +10 -1
- data/lib/akeyless/models/sign_data_with_classic_key.rb +326 -0
- data/lib/akeyless/models/sign_output.rb +219 -0
- data/lib/akeyless/models/target_type_details_input.rb +30 -1
- data/lib/akeyless/models/verify_data_with_classic_key.rb +336 -0
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +7 -0
- data/spec/models/certificate_template_info_spec.rb +76 -0
- data/spec/models/derive_key_output_spec.rb +40 -0
- data/spec/models/derive_key_spec.rb +100 -0
- data/spec/models/event_action_spec.rb +58 -0
- data/spec/models/sign_data_with_classic_key_spec.rb +82 -0
- data/spec/models/sign_output_spec.rb +34 -0
- data/spec/models/verify_data_with_classic_key_spec.rb +88 -0
- metadata +30 -2
@@ -0,0 +1,282 @@
|
|
1
|
+
=begin
|
2
|
+
#Akeyless API
|
3
|
+
|
4
|
+
#The purpose of this application is to provide access to Akeyless API.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 2.0
|
7
|
+
Contact: support@akeyless.io
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 7.0.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Akeyless
|
17
|
+
class CertificateTemplateInfo
|
18
|
+
attr_accessor :common_name
|
19
|
+
|
20
|
+
attr_accessor :country
|
21
|
+
|
22
|
+
attr_accessor :digest_algo
|
23
|
+
|
24
|
+
attr_accessor :locality
|
25
|
+
|
26
|
+
attr_accessor :organization
|
27
|
+
|
28
|
+
attr_accessor :province
|
29
|
+
|
30
|
+
attr_accessor :self_signed_enabled
|
31
|
+
|
32
|
+
attr_accessor :ttl
|
33
|
+
|
34
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
35
|
+
def self.attribute_map
|
36
|
+
{
|
37
|
+
:'common_name' => :'common_name',
|
38
|
+
:'country' => :'country',
|
39
|
+
:'digest_algo' => :'digest_algo',
|
40
|
+
:'locality' => :'locality',
|
41
|
+
:'organization' => :'organization',
|
42
|
+
:'province' => :'province',
|
43
|
+
:'self_signed_enabled' => :'self_signed_enabled',
|
44
|
+
:'ttl' => :'ttl'
|
45
|
+
}
|
46
|
+
end
|
47
|
+
|
48
|
+
# Returns all the JSON keys this model knows about
|
49
|
+
def self.acceptable_attributes
|
50
|
+
attribute_map.values
|
51
|
+
end
|
52
|
+
|
53
|
+
# Attribute type mapping.
|
54
|
+
def self.openapi_types
|
55
|
+
{
|
56
|
+
:'common_name' => :'String',
|
57
|
+
:'country' => :'String',
|
58
|
+
:'digest_algo' => :'String',
|
59
|
+
:'locality' => :'String',
|
60
|
+
:'organization' => :'String',
|
61
|
+
:'province' => :'String',
|
62
|
+
:'self_signed_enabled' => :'Boolean',
|
63
|
+
:'ttl' => :'Integer'
|
64
|
+
}
|
65
|
+
end
|
66
|
+
|
67
|
+
# List of attributes with nullable: true
|
68
|
+
def self.openapi_nullable
|
69
|
+
Set.new([
|
70
|
+
])
|
71
|
+
end
|
72
|
+
|
73
|
+
# Initializes the object
|
74
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
75
|
+
def initialize(attributes = {})
|
76
|
+
if (!attributes.is_a?(Hash))
|
77
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::CertificateTemplateInfo` initialize method"
|
78
|
+
end
|
79
|
+
|
80
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
81
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
82
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
83
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::CertificateTemplateInfo`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
84
|
+
end
|
85
|
+
h[k.to_sym] = v
|
86
|
+
}
|
87
|
+
|
88
|
+
if attributes.key?(:'common_name')
|
89
|
+
self.common_name = attributes[:'common_name']
|
90
|
+
end
|
91
|
+
|
92
|
+
if attributes.key?(:'country')
|
93
|
+
self.country = attributes[:'country']
|
94
|
+
end
|
95
|
+
|
96
|
+
if attributes.key?(:'digest_algo')
|
97
|
+
self.digest_algo = attributes[:'digest_algo']
|
98
|
+
end
|
99
|
+
|
100
|
+
if attributes.key?(:'locality')
|
101
|
+
self.locality = attributes[:'locality']
|
102
|
+
end
|
103
|
+
|
104
|
+
if attributes.key?(:'organization')
|
105
|
+
self.organization = attributes[:'organization']
|
106
|
+
end
|
107
|
+
|
108
|
+
if attributes.key?(:'province')
|
109
|
+
self.province = attributes[:'province']
|
110
|
+
end
|
111
|
+
|
112
|
+
if attributes.key?(:'self_signed_enabled')
|
113
|
+
self.self_signed_enabled = attributes[:'self_signed_enabled']
|
114
|
+
end
|
115
|
+
|
116
|
+
if attributes.key?(:'ttl')
|
117
|
+
self.ttl = attributes[:'ttl']
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
121
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
122
|
+
# @return Array for valid properties with the reasons
|
123
|
+
def list_invalid_properties
|
124
|
+
invalid_properties = Array.new
|
125
|
+
invalid_properties
|
126
|
+
end
|
127
|
+
|
128
|
+
# Check to see if the all the properties in the model are valid
|
129
|
+
# @return true if the model is valid
|
130
|
+
def valid?
|
131
|
+
true
|
132
|
+
end
|
133
|
+
|
134
|
+
# Checks equality by comparing each attribute.
|
135
|
+
# @param [Object] Object to be compared
|
136
|
+
def ==(o)
|
137
|
+
return true if self.equal?(o)
|
138
|
+
self.class == o.class &&
|
139
|
+
common_name == o.common_name &&
|
140
|
+
country == o.country &&
|
141
|
+
digest_algo == o.digest_algo &&
|
142
|
+
locality == o.locality &&
|
143
|
+
organization == o.organization &&
|
144
|
+
province == o.province &&
|
145
|
+
self_signed_enabled == o.self_signed_enabled &&
|
146
|
+
ttl == o.ttl
|
147
|
+
end
|
148
|
+
|
149
|
+
# @see the `==` method
|
150
|
+
# @param [Object] Object to be compared
|
151
|
+
def eql?(o)
|
152
|
+
self == o
|
153
|
+
end
|
154
|
+
|
155
|
+
# Calculates hash code according to all attributes.
|
156
|
+
# @return [Integer] Hash code
|
157
|
+
def hash
|
158
|
+
[common_name, country, digest_algo, locality, organization, province, self_signed_enabled, ttl].hash
|
159
|
+
end
|
160
|
+
|
161
|
+
# Builds the object from hash
|
162
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
163
|
+
# @return [Object] Returns the model itself
|
164
|
+
def self.build_from_hash(attributes)
|
165
|
+
new.build_from_hash(attributes)
|
166
|
+
end
|
167
|
+
|
168
|
+
# Builds the object from hash
|
169
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
170
|
+
# @return [Object] Returns the model itself
|
171
|
+
def build_from_hash(attributes)
|
172
|
+
return nil unless attributes.is_a?(Hash)
|
173
|
+
attributes = attributes.transform_keys(&:to_sym)
|
174
|
+
self.class.openapi_types.each_pair do |key, type|
|
175
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
176
|
+
self.send("#{key}=", nil)
|
177
|
+
elsif type =~ /\AArray<(.*)>/i
|
178
|
+
# check to ensure the input is an array given that the attribute
|
179
|
+
# is documented as an array but the input is not
|
180
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
181
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
182
|
+
end
|
183
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
184
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
185
|
+
end
|
186
|
+
end
|
187
|
+
|
188
|
+
self
|
189
|
+
end
|
190
|
+
|
191
|
+
# Deserializes the data based on type
|
192
|
+
# @param string type Data type
|
193
|
+
# @param string value Value to be deserialized
|
194
|
+
# @return [Object] Deserialized data
|
195
|
+
def _deserialize(type, value)
|
196
|
+
case type.to_sym
|
197
|
+
when :Time
|
198
|
+
Time.parse(value)
|
199
|
+
when :Date
|
200
|
+
Date.parse(value)
|
201
|
+
when :String
|
202
|
+
value.to_s
|
203
|
+
when :Integer
|
204
|
+
value.to_i
|
205
|
+
when :Float
|
206
|
+
value.to_f
|
207
|
+
when :Boolean
|
208
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
209
|
+
true
|
210
|
+
else
|
211
|
+
false
|
212
|
+
end
|
213
|
+
when :Object
|
214
|
+
# generic object (usually a Hash), return directly
|
215
|
+
value
|
216
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
217
|
+
inner_type = Regexp.last_match[:inner_type]
|
218
|
+
value.map { |v| _deserialize(inner_type, v) }
|
219
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
220
|
+
k_type = Regexp.last_match[:k_type]
|
221
|
+
v_type = Regexp.last_match[:v_type]
|
222
|
+
{}.tap do |hash|
|
223
|
+
value.each do |k, v|
|
224
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
225
|
+
end
|
226
|
+
end
|
227
|
+
else # model
|
228
|
+
# models (e.g. Pet) or oneOf
|
229
|
+
klass = Akeyless.const_get(type)
|
230
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
231
|
+
end
|
232
|
+
end
|
233
|
+
|
234
|
+
# Returns the string representation of the object
|
235
|
+
# @return [String] String presentation of the object
|
236
|
+
def to_s
|
237
|
+
to_hash.to_s
|
238
|
+
end
|
239
|
+
|
240
|
+
# to_body is an alias to to_hash (backward compatibility)
|
241
|
+
# @return [Hash] Returns the object in the form of hash
|
242
|
+
def to_body
|
243
|
+
to_hash
|
244
|
+
end
|
245
|
+
|
246
|
+
# Returns the object in the form of hash
|
247
|
+
# @return [Hash] Returns the object in the form of hash
|
248
|
+
def to_hash
|
249
|
+
hash = {}
|
250
|
+
self.class.attribute_map.each_pair do |attr, param|
|
251
|
+
value = self.send(attr)
|
252
|
+
if value.nil?
|
253
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
254
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
255
|
+
end
|
256
|
+
|
257
|
+
hash[param] = _to_hash(value)
|
258
|
+
end
|
259
|
+
hash
|
260
|
+
end
|
261
|
+
|
262
|
+
# Outputs non-array value in the form of hash
|
263
|
+
# For object, use to_hash. Otherwise, just return the value
|
264
|
+
# @param [Object] value Any valid value
|
265
|
+
# @return [Hash] Returns the value in the form of hash
|
266
|
+
def _to_hash(value)
|
267
|
+
if value.is_a?(Array)
|
268
|
+
value.compact.map { |v| _to_hash(v) }
|
269
|
+
elsif value.is_a?(Hash)
|
270
|
+
{}.tap do |hash|
|
271
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
272
|
+
end
|
273
|
+
elsif value.respond_to? :to_hash
|
274
|
+
value.to_hash
|
275
|
+
else
|
276
|
+
value
|
277
|
+
end
|
278
|
+
end
|
279
|
+
|
280
|
+
end
|
281
|
+
|
282
|
+
end
|
@@ -22,12 +22,36 @@ module Akeyless
|
|
22
22
|
# Certificate in a PEM format.
|
23
23
|
attr_accessor :cert_file_data
|
24
24
|
|
25
|
+
# Common name for the generated certificate. Relevant only for generate-self-signed-certificate.
|
26
|
+
attr_accessor :certificate_common_name
|
27
|
+
|
28
|
+
# Country name for the generated certificate. Relevant only for generate-self-signed-certificate.
|
29
|
+
attr_accessor :certificate_country
|
30
|
+
|
31
|
+
# Digest algorithm to be used for the certificate key signing. Currently, we support only \"sha256\" so we hide this option for CLI.
|
32
|
+
attr_accessor :certificate_digest_algo
|
33
|
+
|
34
|
+
# Locality for the generated certificate. Relevant only for generate-self-signed-certificate.
|
35
|
+
attr_accessor :certificate_locality
|
36
|
+
|
37
|
+
# Organization name for the generated certificate. Relevant only for generate-self-signed-certificate.
|
38
|
+
attr_accessor :certificate_organization
|
39
|
+
|
40
|
+
# Province name for the generated certificate. Relevant only for generate-self-signed-certificate.
|
41
|
+
attr_accessor :certificate_province
|
42
|
+
|
43
|
+
# TTL in days for the generated certificate. Required only for generate-self-signed-certificate.
|
44
|
+
attr_accessor :certificate_ttl
|
45
|
+
|
25
46
|
# Protection from accidental deletion of this item [true/false]
|
26
47
|
attr_accessor :delete_protection
|
27
48
|
|
28
49
|
# Description of the object
|
29
50
|
attr_accessor :description
|
30
51
|
|
52
|
+
# Whether to generate a self signed certificate with the key. If set, --certificate-ttl must be provided.
|
53
|
+
attr_accessor :generate_self_signed_certificate
|
54
|
+
|
31
55
|
# gpg alg: Relevant only if GPG key type selected; options: [RSA1024, RSA2048, RSA3072, RSA4096, Ed25519]
|
32
56
|
attr_accessor :gpg_alg
|
33
57
|
|
@@ -60,8 +84,16 @@ module Akeyless
|
|
60
84
|
{
|
61
85
|
:'alg' => :'alg',
|
62
86
|
:'cert_file_data' => :'cert-file-data',
|
87
|
+
:'certificate_common_name' => :'certificate-common-name',
|
88
|
+
:'certificate_country' => :'certificate-country',
|
89
|
+
:'certificate_digest_algo' => :'certificate-digest-algo',
|
90
|
+
:'certificate_locality' => :'certificate-locality',
|
91
|
+
:'certificate_organization' => :'certificate-organization',
|
92
|
+
:'certificate_province' => :'certificate-province',
|
93
|
+
:'certificate_ttl' => :'certificate-ttl',
|
63
94
|
:'delete_protection' => :'delete_protection',
|
64
95
|
:'description' => :'description',
|
96
|
+
:'generate_self_signed_certificate' => :'generate-self-signed-certificate',
|
65
97
|
:'gpg_alg' => :'gpg-alg',
|
66
98
|
:'json' => :'json',
|
67
99
|
:'key_data' => :'key-data',
|
@@ -84,8 +116,16 @@ module Akeyless
|
|
84
116
|
{
|
85
117
|
:'alg' => :'String',
|
86
118
|
:'cert_file_data' => :'String',
|
119
|
+
:'certificate_common_name' => :'String',
|
120
|
+
:'certificate_country' => :'String',
|
121
|
+
:'certificate_digest_algo' => :'String',
|
122
|
+
:'certificate_locality' => :'String',
|
123
|
+
:'certificate_organization' => :'String',
|
124
|
+
:'certificate_province' => :'String',
|
125
|
+
:'certificate_ttl' => :'Integer',
|
87
126
|
:'delete_protection' => :'String',
|
88
127
|
:'description' => :'String',
|
128
|
+
:'generate_self_signed_certificate' => :'Boolean',
|
89
129
|
:'gpg_alg' => :'String',
|
90
130
|
:'json' => :'Boolean',
|
91
131
|
:'key_data' => :'String',
|
@@ -127,6 +167,34 @@ module Akeyless
|
|
127
167
|
self.cert_file_data = attributes[:'cert_file_data']
|
128
168
|
end
|
129
169
|
|
170
|
+
if attributes.key?(:'certificate_common_name')
|
171
|
+
self.certificate_common_name = attributes[:'certificate_common_name']
|
172
|
+
end
|
173
|
+
|
174
|
+
if attributes.key?(:'certificate_country')
|
175
|
+
self.certificate_country = attributes[:'certificate_country']
|
176
|
+
end
|
177
|
+
|
178
|
+
if attributes.key?(:'certificate_digest_algo')
|
179
|
+
self.certificate_digest_algo = attributes[:'certificate_digest_algo']
|
180
|
+
end
|
181
|
+
|
182
|
+
if attributes.key?(:'certificate_locality')
|
183
|
+
self.certificate_locality = attributes[:'certificate_locality']
|
184
|
+
end
|
185
|
+
|
186
|
+
if attributes.key?(:'certificate_organization')
|
187
|
+
self.certificate_organization = attributes[:'certificate_organization']
|
188
|
+
end
|
189
|
+
|
190
|
+
if attributes.key?(:'certificate_province')
|
191
|
+
self.certificate_province = attributes[:'certificate_province']
|
192
|
+
end
|
193
|
+
|
194
|
+
if attributes.key?(:'certificate_ttl')
|
195
|
+
self.certificate_ttl = attributes[:'certificate_ttl']
|
196
|
+
end
|
197
|
+
|
130
198
|
if attributes.key?(:'delete_protection')
|
131
199
|
self.delete_protection = attributes[:'delete_protection']
|
132
200
|
end
|
@@ -135,6 +203,10 @@ module Akeyless
|
|
135
203
|
self.description = attributes[:'description']
|
136
204
|
end
|
137
205
|
|
206
|
+
if attributes.key?(:'generate_self_signed_certificate')
|
207
|
+
self.generate_self_signed_certificate = attributes[:'generate_self_signed_certificate']
|
208
|
+
end
|
209
|
+
|
138
210
|
if attributes.key?(:'gpg_alg')
|
139
211
|
self.gpg_alg = attributes[:'gpg_alg']
|
140
212
|
end
|
@@ -206,8 +278,16 @@ module Akeyless
|
|
206
278
|
self.class == o.class &&
|
207
279
|
alg == o.alg &&
|
208
280
|
cert_file_data == o.cert_file_data &&
|
281
|
+
certificate_common_name == o.certificate_common_name &&
|
282
|
+
certificate_country == o.certificate_country &&
|
283
|
+
certificate_digest_algo == o.certificate_digest_algo &&
|
284
|
+
certificate_locality == o.certificate_locality &&
|
285
|
+
certificate_organization == o.certificate_organization &&
|
286
|
+
certificate_province == o.certificate_province &&
|
287
|
+
certificate_ttl == o.certificate_ttl &&
|
209
288
|
delete_protection == o.delete_protection &&
|
210
289
|
description == o.description &&
|
290
|
+
generate_self_signed_certificate == o.generate_self_signed_certificate &&
|
211
291
|
gpg_alg == o.gpg_alg &&
|
212
292
|
json == o.json &&
|
213
293
|
key_data == o.key_data &&
|
@@ -228,7 +308,7 @@ module Akeyless
|
|
228
308
|
# Calculates hash code according to all attributes.
|
229
309
|
# @return [Integer] Hash code
|
230
310
|
def hash
|
231
|
-
[alg, cert_file_data, delete_protection, description, gpg_alg, json, key_data, metadata, name, protection_key_name, tags, token, uid_token].hash
|
311
|
+
[alg, cert_file_data, certificate_common_name, certificate_country, certificate_digest_algo, certificate_locality, certificate_organization, certificate_province, certificate_ttl, delete_protection, description, generate_self_signed_certificate, gpg_alg, json, key_data, metadata, name, protection_key_name, tags, token, uid_token].hash
|
232
312
|
end
|
233
313
|
|
234
314
|
# Builds the object from hash
|
@@ -18,6 +18,27 @@ module Akeyless
|
|
18
18
|
# DFCKey type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, AES128CBC, AES256CBC, RSA1024, RSA2048, RSA3072, RSA4096]
|
19
19
|
attr_accessor :alg
|
20
20
|
|
21
|
+
# Common name for the generated certificate. Relevant only for generate-self-signed-certificate.
|
22
|
+
attr_accessor :certificate_common_name
|
23
|
+
|
24
|
+
# Country name for the generated certificate. Relevant only for generate-self-signed-certificate.
|
25
|
+
attr_accessor :certificate_country
|
26
|
+
|
27
|
+
# Digest algorithm to be used for the certificate key signing. Currently, we support only \"sha256\" so we hide this option for CLI.
|
28
|
+
attr_accessor :certificate_digest_algo
|
29
|
+
|
30
|
+
# Locality for the generated certificate. Relevant only for generate-self-signed-certificate.
|
31
|
+
attr_accessor :certificate_locality
|
32
|
+
|
33
|
+
# Organization name for the generated certificate. Relevant only for generate-self-signed-certificate.
|
34
|
+
attr_accessor :certificate_organization
|
35
|
+
|
36
|
+
# Province name for the generated certificate. Relevant only for generate-self-signed-certificate.
|
37
|
+
attr_accessor :certificate_province
|
38
|
+
|
39
|
+
# TTL in days for the generated certificate. Required only for generate-self-signed-certificate.
|
40
|
+
attr_accessor :certificate_ttl
|
41
|
+
|
21
42
|
# The customer fragment ID that will be used to create the DFC key (if empty, the key will be created independently of a customer fragment)
|
22
43
|
attr_accessor :customer_frg_id
|
23
44
|
|
@@ -27,6 +48,9 @@ module Akeyless
|
|
27
48
|
# Description of the object
|
28
49
|
attr_accessor :description
|
29
50
|
|
51
|
+
# Whether to generate a self signed certificate with the key. If set, --certificate-ttl must be provided.
|
52
|
+
attr_accessor :generate_self_signed_certificate
|
53
|
+
|
30
54
|
# Set output format to JSON
|
31
55
|
attr_accessor :json
|
32
56
|
|
@@ -52,9 +76,17 @@ module Akeyless
|
|
52
76
|
def self.attribute_map
|
53
77
|
{
|
54
78
|
:'alg' => :'alg',
|
79
|
+
:'certificate_common_name' => :'certificate-common-name',
|
80
|
+
:'certificate_country' => :'certificate-country',
|
81
|
+
:'certificate_digest_algo' => :'certificate-digest-algo',
|
82
|
+
:'certificate_locality' => :'certificate-locality',
|
83
|
+
:'certificate_organization' => :'certificate-organization',
|
84
|
+
:'certificate_province' => :'certificate-province',
|
85
|
+
:'certificate_ttl' => :'certificate-ttl',
|
55
86
|
:'customer_frg_id' => :'customer-frg-id',
|
56
87
|
:'delete_protection' => :'delete_protection',
|
57
88
|
:'description' => :'description',
|
89
|
+
:'generate_self_signed_certificate' => :'generate-self-signed-certificate',
|
58
90
|
:'json' => :'json',
|
59
91
|
:'metadata' => :'metadata',
|
60
92
|
:'name' => :'name',
|
@@ -74,9 +106,17 @@ module Akeyless
|
|
74
106
|
def self.openapi_types
|
75
107
|
{
|
76
108
|
:'alg' => :'String',
|
109
|
+
:'certificate_common_name' => :'String',
|
110
|
+
:'certificate_country' => :'String',
|
111
|
+
:'certificate_digest_algo' => :'String',
|
112
|
+
:'certificate_locality' => :'String',
|
113
|
+
:'certificate_organization' => :'String',
|
114
|
+
:'certificate_province' => :'String',
|
115
|
+
:'certificate_ttl' => :'Integer',
|
77
116
|
:'customer_frg_id' => :'String',
|
78
117
|
:'delete_protection' => :'String',
|
79
118
|
:'description' => :'String',
|
119
|
+
:'generate_self_signed_certificate' => :'Boolean',
|
80
120
|
:'json' => :'Boolean',
|
81
121
|
:'metadata' => :'String',
|
82
122
|
:'name' => :'String',
|
@@ -112,6 +152,34 @@ module Akeyless
|
|
112
152
|
self.alg = attributes[:'alg']
|
113
153
|
end
|
114
154
|
|
155
|
+
if attributes.key?(:'certificate_common_name')
|
156
|
+
self.certificate_common_name = attributes[:'certificate_common_name']
|
157
|
+
end
|
158
|
+
|
159
|
+
if attributes.key?(:'certificate_country')
|
160
|
+
self.certificate_country = attributes[:'certificate_country']
|
161
|
+
end
|
162
|
+
|
163
|
+
if attributes.key?(:'certificate_digest_algo')
|
164
|
+
self.certificate_digest_algo = attributes[:'certificate_digest_algo']
|
165
|
+
end
|
166
|
+
|
167
|
+
if attributes.key?(:'certificate_locality')
|
168
|
+
self.certificate_locality = attributes[:'certificate_locality']
|
169
|
+
end
|
170
|
+
|
171
|
+
if attributes.key?(:'certificate_organization')
|
172
|
+
self.certificate_organization = attributes[:'certificate_organization']
|
173
|
+
end
|
174
|
+
|
175
|
+
if attributes.key?(:'certificate_province')
|
176
|
+
self.certificate_province = attributes[:'certificate_province']
|
177
|
+
end
|
178
|
+
|
179
|
+
if attributes.key?(:'certificate_ttl')
|
180
|
+
self.certificate_ttl = attributes[:'certificate_ttl']
|
181
|
+
end
|
182
|
+
|
115
183
|
if attributes.key?(:'customer_frg_id')
|
116
184
|
self.customer_frg_id = attributes[:'customer_frg_id']
|
117
185
|
end
|
@@ -124,6 +192,10 @@ module Akeyless
|
|
124
192
|
self.description = attributes[:'description']
|
125
193
|
end
|
126
194
|
|
195
|
+
if attributes.key?(:'generate_self_signed_certificate')
|
196
|
+
self.generate_self_signed_certificate = attributes[:'generate_self_signed_certificate']
|
197
|
+
end
|
198
|
+
|
127
199
|
if attributes.key?(:'json')
|
128
200
|
self.json = attributes[:'json']
|
129
201
|
else
|
@@ -188,9 +260,17 @@ module Akeyless
|
|
188
260
|
return true if self.equal?(o)
|
189
261
|
self.class == o.class &&
|
190
262
|
alg == o.alg &&
|
263
|
+
certificate_common_name == o.certificate_common_name &&
|
264
|
+
certificate_country == o.certificate_country &&
|
265
|
+
certificate_digest_algo == o.certificate_digest_algo &&
|
266
|
+
certificate_locality == o.certificate_locality &&
|
267
|
+
certificate_organization == o.certificate_organization &&
|
268
|
+
certificate_province == o.certificate_province &&
|
269
|
+
certificate_ttl == o.certificate_ttl &&
|
191
270
|
customer_frg_id == o.customer_frg_id &&
|
192
271
|
delete_protection == o.delete_protection &&
|
193
272
|
description == o.description &&
|
273
|
+
generate_self_signed_certificate == o.generate_self_signed_certificate &&
|
194
274
|
json == o.json &&
|
195
275
|
metadata == o.metadata &&
|
196
276
|
name == o.name &&
|
@@ -209,7 +289,7 @@ module Akeyless
|
|
209
289
|
# Calculates hash code according to all attributes.
|
210
290
|
# @return [Integer] Hash code
|
211
291
|
def hash
|
212
|
-
[alg, customer_frg_id, delete_protection, description, json, metadata, name, split_level, tag, token, uid_token].hash
|
292
|
+
[alg, certificate_common_name, certificate_country, certificate_digest_algo, certificate_locality, certificate_organization, certificate_province, certificate_ttl, customer_frg_id, delete_protection, description, generate_self_signed_certificate, json, metadata, name, split_level, tag, token, uid_token].hash
|
213
293
|
end
|
214
294
|
|
215
295
|
# Builds the object from hash
|