akeyless 4.2.1 → 4.2.2

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.
@@ -0,0 +1,243 @@
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
+ Generator version: 7.8.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Akeyless
17
+ class BatchEncryptionRequestLine
18
+ attr_accessor :context
19
+
20
+ attr_accessor :data
21
+
22
+ attr_accessor :item_id
23
+
24
+ attr_accessor :item_version
25
+
26
+ # Attribute mapping from ruby-style variable name to JSON key.
27
+ def self.attribute_map
28
+ {
29
+ :'context' => :'context',
30
+ :'data' => :'data',
31
+ :'item_id' => :'item_id',
32
+ :'item_version' => :'item_version'
33
+ }
34
+ end
35
+
36
+ # Returns all the JSON keys this model knows about
37
+ def self.acceptable_attributes
38
+ attribute_map.values
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ def self.openapi_types
43
+ {
44
+ :'context' => :'Hash<String, String>',
45
+ :'data' => :'String',
46
+ :'item_id' => :'Integer',
47
+ :'item_version' => :'Integer'
48
+ }
49
+ end
50
+
51
+ # List of attributes with nullable: true
52
+ def self.openapi_nullable
53
+ Set.new([
54
+ ])
55
+ end
56
+
57
+ # Initializes the object
58
+ # @param [Hash] attributes Model attributes in the form of hash
59
+ def initialize(attributes = {})
60
+ if (!attributes.is_a?(Hash))
61
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::BatchEncryptionRequestLine` initialize method"
62
+ end
63
+
64
+ # check to see if the attribute exists and convert string to symbol for hash key
65
+ attributes = attributes.each_with_object({}) { |(k, v), h|
66
+ if (!self.class.attribute_map.key?(k.to_sym))
67
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::BatchEncryptionRequestLine`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
68
+ end
69
+ h[k.to_sym] = v
70
+ }
71
+
72
+ if attributes.key?(:'context')
73
+ if (value = attributes[:'context']).is_a?(Hash)
74
+ self.context = value
75
+ end
76
+ end
77
+
78
+ if attributes.key?(:'data')
79
+ self.data = attributes[:'data']
80
+ end
81
+
82
+ if attributes.key?(:'item_id')
83
+ self.item_id = attributes[:'item_id']
84
+ end
85
+
86
+ if attributes.key?(:'item_version')
87
+ self.item_version = attributes[:'item_version']
88
+ end
89
+ end
90
+
91
+ # Show invalid properties with the reasons. Usually used together with valid?
92
+ # @return Array for valid properties with the reasons
93
+ def list_invalid_properties
94
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
95
+ invalid_properties = Array.new
96
+ invalid_properties
97
+ end
98
+
99
+ # Check to see if the all the properties in the model are valid
100
+ # @return true if the model is valid
101
+ def valid?
102
+ warn '[DEPRECATED] the `valid?` method is obsolete'
103
+ true
104
+ end
105
+
106
+ # Checks equality by comparing each attribute.
107
+ # @param [Object] Object to be compared
108
+ def ==(o)
109
+ return true if self.equal?(o)
110
+ self.class == o.class &&
111
+ context == o.context &&
112
+ data == o.data &&
113
+ item_id == o.item_id &&
114
+ item_version == o.item_version
115
+ end
116
+
117
+ # @see the `==` method
118
+ # @param [Object] Object to be compared
119
+ def eql?(o)
120
+ self == o
121
+ end
122
+
123
+ # Calculates hash code according to all attributes.
124
+ # @return [Integer] Hash code
125
+ def hash
126
+ [context, data, item_id, item_version].hash
127
+ end
128
+
129
+ # Builds the object from hash
130
+ # @param [Hash] attributes Model attributes in the form of hash
131
+ # @return [Object] Returns the model itself
132
+ def self.build_from_hash(attributes)
133
+ return nil unless attributes.is_a?(Hash)
134
+ attributes = attributes.transform_keys(&:to_sym)
135
+ transformed_hash = {}
136
+ openapi_types.each_pair do |key, type|
137
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
138
+ transformed_hash["#{key}"] = nil
139
+ elsif type =~ /\AArray<(.*)>/i
140
+ # check to ensure the input is an array given that the attribute
141
+ # is documented as an array but the input is not
142
+ if attributes[attribute_map[key]].is_a?(Array)
143
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
144
+ end
145
+ elsif !attributes[attribute_map[key]].nil?
146
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
147
+ end
148
+ end
149
+ new(transformed_hash)
150
+ end
151
+
152
+ # Deserializes the data based on type
153
+ # @param string type Data type
154
+ # @param string value Value to be deserialized
155
+ # @return [Object] Deserialized data
156
+ def self._deserialize(type, value)
157
+ case type.to_sym
158
+ when :Time
159
+ Time.parse(value)
160
+ when :Date
161
+ Date.parse(value)
162
+ when :String
163
+ value.to_s
164
+ when :Integer
165
+ value.to_i
166
+ when :Float
167
+ value.to_f
168
+ when :Boolean
169
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
170
+ true
171
+ else
172
+ false
173
+ end
174
+ when :Object
175
+ # generic object (usually a Hash), return directly
176
+ value
177
+ when /\AArray<(?<inner_type>.+)>\z/
178
+ inner_type = Regexp.last_match[:inner_type]
179
+ value.map { |v| _deserialize(inner_type, v) }
180
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
181
+ k_type = Regexp.last_match[:k_type]
182
+ v_type = Regexp.last_match[:v_type]
183
+ {}.tap do |hash|
184
+ value.each do |k, v|
185
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
186
+ end
187
+ end
188
+ else # model
189
+ # models (e.g. Pet) or oneOf
190
+ klass = Akeyless.const_get(type)
191
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
192
+ end
193
+ end
194
+
195
+ # Returns the string representation of the object
196
+ # @return [String] String presentation of the object
197
+ def to_s
198
+ to_hash.to_s
199
+ end
200
+
201
+ # to_body is an alias to to_hash (backward compatibility)
202
+ # @return [Hash] Returns the object in the form of hash
203
+ def to_body
204
+ to_hash
205
+ end
206
+
207
+ # Returns the object in the form of hash
208
+ # @return [Hash] Returns the object in the form of hash
209
+ def to_hash
210
+ hash = {}
211
+ self.class.attribute_map.each_pair do |attr, param|
212
+ value = self.send(attr)
213
+ if value.nil?
214
+ is_nullable = self.class.openapi_nullable.include?(attr)
215
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
216
+ end
217
+
218
+ hash[param] = _to_hash(value)
219
+ end
220
+ hash
221
+ end
222
+
223
+ # Outputs non-array value in the form of hash
224
+ # For object, use to_hash. Otherwise, just return the value
225
+ # @param [Object] value Any valid value
226
+ # @return [Hash] Returns the value in the form of hash
227
+ def _to_hash(value)
228
+ if value.is_a?(Array)
229
+ value.compact.map { |v| _to_hash(v) }
230
+ elsif value.is_a?(Hash)
231
+ {}.tap do |hash|
232
+ value.each { |k, v| hash[k] = _to_hash(v) }
233
+ end
234
+ elsif value.respond_to? :to_hash
235
+ value.to_hash
236
+ else
237
+ value
238
+ end
239
+ end
240
+
241
+ end
242
+
243
+ end
@@ -0,0 +1,223 @@
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
+ Generator version: 7.8.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Akeyless
17
+ class BatchEncryptionResponseLine
18
+ attr_accessor :data
19
+
20
+ attr_accessor :error
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'data' => :'data',
26
+ :'error' => :'error'
27
+ }
28
+ end
29
+
30
+ # Returns all the JSON keys this model knows about
31
+ def self.acceptable_attributes
32
+ attribute_map.values
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ def self.openapi_types
37
+ {
38
+ :'data' => :'String',
39
+ :'error' => :'String'
40
+ }
41
+ end
42
+
43
+ # List of attributes with nullable: true
44
+ def self.openapi_nullable
45
+ Set.new([
46
+ ])
47
+ end
48
+
49
+ # Initializes the object
50
+ # @param [Hash] attributes Model attributes in the form of hash
51
+ def initialize(attributes = {})
52
+ if (!attributes.is_a?(Hash))
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::BatchEncryptionResponseLine` initialize method"
54
+ end
55
+
56
+ # check to see if the attribute exists and convert string to symbol for hash key
57
+ attributes = attributes.each_with_object({}) { |(k, v), h|
58
+ if (!self.class.attribute_map.key?(k.to_sym))
59
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::BatchEncryptionResponseLine`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
+ end
61
+ h[k.to_sym] = v
62
+ }
63
+
64
+ if attributes.key?(:'data')
65
+ self.data = attributes[:'data']
66
+ end
67
+
68
+ if attributes.key?(:'error')
69
+ self.error = attributes[:'error']
70
+ end
71
+ end
72
+
73
+ # Show invalid properties with the reasons. Usually used together with valid?
74
+ # @return Array for valid properties with the reasons
75
+ def list_invalid_properties
76
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
77
+ invalid_properties = Array.new
78
+ invalid_properties
79
+ end
80
+
81
+ # Check to see if the all the properties in the model are valid
82
+ # @return true if the model is valid
83
+ def valid?
84
+ warn '[DEPRECATED] the `valid?` method is obsolete'
85
+ true
86
+ end
87
+
88
+ # Checks equality by comparing each attribute.
89
+ # @param [Object] Object to be compared
90
+ def ==(o)
91
+ return true if self.equal?(o)
92
+ self.class == o.class &&
93
+ data == o.data &&
94
+ error == o.error
95
+ end
96
+
97
+ # @see the `==` method
98
+ # @param [Object] Object to be compared
99
+ def eql?(o)
100
+ self == o
101
+ end
102
+
103
+ # Calculates hash code according to all attributes.
104
+ # @return [Integer] Hash code
105
+ def hash
106
+ [data, error].hash
107
+ end
108
+
109
+ # Builds the object from hash
110
+ # @param [Hash] attributes Model attributes in the form of hash
111
+ # @return [Object] Returns the model itself
112
+ def self.build_from_hash(attributes)
113
+ return nil unless attributes.is_a?(Hash)
114
+ attributes = attributes.transform_keys(&:to_sym)
115
+ transformed_hash = {}
116
+ openapi_types.each_pair do |key, type|
117
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
118
+ transformed_hash["#{key}"] = nil
119
+ elsif type =~ /\AArray<(.*)>/i
120
+ # check to ensure the input is an array given that the attribute
121
+ # is documented as an array but the input is not
122
+ if attributes[attribute_map[key]].is_a?(Array)
123
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
124
+ end
125
+ elsif !attributes[attribute_map[key]].nil?
126
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
127
+ end
128
+ end
129
+ new(transformed_hash)
130
+ end
131
+
132
+ # Deserializes the data based on type
133
+ # @param string type Data type
134
+ # @param string value Value to be deserialized
135
+ # @return [Object] Deserialized data
136
+ def self._deserialize(type, value)
137
+ case type.to_sym
138
+ when :Time
139
+ Time.parse(value)
140
+ when :Date
141
+ Date.parse(value)
142
+ when :String
143
+ value.to_s
144
+ when :Integer
145
+ value.to_i
146
+ when :Float
147
+ value.to_f
148
+ when :Boolean
149
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
150
+ true
151
+ else
152
+ false
153
+ end
154
+ when :Object
155
+ # generic object (usually a Hash), return directly
156
+ value
157
+ when /\AArray<(?<inner_type>.+)>\z/
158
+ inner_type = Regexp.last_match[:inner_type]
159
+ value.map { |v| _deserialize(inner_type, v) }
160
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
161
+ k_type = Regexp.last_match[:k_type]
162
+ v_type = Regexp.last_match[:v_type]
163
+ {}.tap do |hash|
164
+ value.each do |k, v|
165
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
166
+ end
167
+ end
168
+ else # model
169
+ # models (e.g. Pet) or oneOf
170
+ klass = Akeyless.const_get(type)
171
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
172
+ end
173
+ end
174
+
175
+ # Returns the string representation of the object
176
+ # @return [String] String presentation of the object
177
+ def to_s
178
+ to_hash.to_s
179
+ end
180
+
181
+ # to_body is an alias to to_hash (backward compatibility)
182
+ # @return [Hash] Returns the object in the form of hash
183
+ def to_body
184
+ to_hash
185
+ end
186
+
187
+ # Returns the object in the form of hash
188
+ # @return [Hash] Returns the object in the form of hash
189
+ def to_hash
190
+ hash = {}
191
+ self.class.attribute_map.each_pair do |attr, param|
192
+ value = self.send(attr)
193
+ if value.nil?
194
+ is_nullable = self.class.openapi_nullable.include?(attr)
195
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
196
+ end
197
+
198
+ hash[param] = _to_hash(value)
199
+ end
200
+ hash
201
+ end
202
+
203
+ # Outputs non-array value in the form of hash
204
+ # For object, use to_hash. Otherwise, just return the value
205
+ # @param [Object] value Any valid value
206
+ # @return [Hash] Returns the value in the form of hash
207
+ def _to_hash(value)
208
+ if value.is_a?(Array)
209
+ value.compact.map { |v| _to_hash(v) }
210
+ elsif value.is_a?(Hash)
211
+ {}.tap do |hash|
212
+ value.each { |k, v| hash[k] = _to_hash(v) }
213
+ end
214
+ elsif value.respond_to? :to_hash
215
+ value.to_hash
216
+ else
217
+ value
218
+ end
219
+ end
220
+
221
+ end
222
+
223
+ end
@@ -16,6 +16,9 @@ require 'time'
16
16
  module Akeyless
17
17
  # Connect is a command that performs secure remote access
18
18
  class Connect
19
+ # todo - enable when gw-sra unification is done The Gateway URL (configuration management) address, e.g. http://localhost:8000
20
+ attr_accessor :bastion_gateway_url
21
+
19
22
  attr_accessor :helper
20
23
 
21
24
  # used to override .akeyless-connect.rc in tests
@@ -74,6 +77,7 @@ module Akeyless
74
77
  # Attribute mapping from ruby-style variable name to JSON key.
75
78
  def self.attribute_map
76
79
  {
80
+ :'bastion_gateway_url' => :'BastionGatewayUrl',
77
81
  :'helper' => :'Helper',
78
82
  :'rc_file_override' => :'RcFileOverride',
79
83
  :'bastion_ctrl_path' => :'bastion-ctrl-path',
@@ -104,6 +108,7 @@ module Akeyless
104
108
  # Attribute type mapping.
105
109
  def self.openapi_types
106
110
  {
111
+ :'bastion_gateway_url' => :'String',
107
112
  :'helper' => :'Object',
108
113
  :'rc_file_override' => :'String',
109
114
  :'bastion_ctrl_path' => :'String',
@@ -147,6 +152,10 @@ module Akeyless
147
152
  h[k.to_sym] = v
148
153
  }
149
154
 
155
+ if attributes.key?(:'bastion_gateway_url')
156
+ self.bastion_gateway_url = attributes[:'bastion_gateway_url']
157
+ end
158
+
150
159
  if attributes.key?(:'helper')
151
160
  self.helper = attributes[:'helper']
152
161
  end
@@ -252,6 +261,7 @@ module Akeyless
252
261
  def ==(o)
253
262
  return true if self.equal?(o)
254
263
  self.class == o.class &&
264
+ bastion_gateway_url == o.bastion_gateway_url &&
255
265
  helper == o.helper &&
256
266
  rc_file_override == o.rc_file_override &&
257
267
  bastion_ctrl_path == o.bastion_ctrl_path &&
@@ -282,7 +292,7 @@ module Akeyless
282
292
  # Calculates hash code according to all attributes.
283
293
  # @return [Integer] Hash code
284
294
  def hash
285
- [helper, rc_file_override, bastion_ctrl_path, bastion_ctrl_port, bastion_ctrl_proto, bastion_ctrl_subdomain, cert_issuer_name, identity_file, json, justification, name, ssh_command, ssh_extra_args, ssh_legacy_signing_alg, target, token, uid_token, use_ssh_agent, via_bastion].hash
295
+ [bastion_gateway_url, helper, rc_file_override, bastion_ctrl_path, bastion_ctrl_port, bastion_ctrl_proto, bastion_ctrl_subdomain, cert_issuer_name, identity_file, json, justification, name, ssh_command, ssh_extra_args, ssh_legacy_signing_alg, target, token, uid_token, use_ssh_agent, via_bastion].hash
286
296
  end
287
297
 
288
298
  # Builds the object from hash
@@ -31,6 +31,8 @@ module Akeyless
31
31
  # Digest algorithm to be used for the certificate key signing. Currently, we support only \"sha256\" so we hide this option for CLI.
32
32
  attr_accessor :certificate_digest_algo
33
33
 
34
+ attr_accessor :certificate_format
35
+
34
36
  # Locality for the generated certificate. Relevant only for generate-self-signed-certificate.
35
37
  attr_accessor :certificate_locality
36
38
 
@@ -90,6 +92,7 @@ module Akeyless
90
92
  :'certificate_common_name' => :'certificate-common-name',
91
93
  :'certificate_country' => :'certificate-country',
92
94
  :'certificate_digest_algo' => :'certificate-digest-algo',
95
+ :'certificate_format' => :'certificate-format',
93
96
  :'certificate_locality' => :'certificate-locality',
94
97
  :'certificate_organization' => :'certificate-organization',
95
98
  :'certificate_province' => :'certificate-province',
@@ -123,6 +126,7 @@ module Akeyless
123
126
  :'certificate_common_name' => :'String',
124
127
  :'certificate_country' => :'String',
125
128
  :'certificate_digest_algo' => :'String',
129
+ :'certificate_format' => :'String',
126
130
  :'certificate_locality' => :'String',
127
131
  :'certificate_organization' => :'String',
128
132
  :'certificate_province' => :'String',
@@ -186,6 +190,10 @@ module Akeyless
186
190
  self.certificate_digest_algo = attributes[:'certificate_digest_algo']
187
191
  end
188
192
 
193
+ if attributes.key?(:'certificate_format')
194
+ self.certificate_format = attributes[:'certificate_format']
195
+ end
196
+
189
197
  if attributes.key?(:'certificate_locality')
190
198
  self.certificate_locality = attributes[:'certificate_locality']
191
199
  end
@@ -296,6 +304,7 @@ module Akeyless
296
304
  certificate_common_name == o.certificate_common_name &&
297
305
  certificate_country == o.certificate_country &&
298
306
  certificate_digest_algo == o.certificate_digest_algo &&
307
+ certificate_format == o.certificate_format &&
299
308
  certificate_locality == o.certificate_locality &&
300
309
  certificate_organization == o.certificate_organization &&
301
310
  certificate_province == o.certificate_province &&
@@ -324,7 +333,7 @@ module Akeyless
324
333
  # Calculates hash code according to all attributes.
325
334
  # @return [Integer] Hash code
326
335
  def hash
327
- [alg, cert_file_data, certificate_common_name, certificate_country, certificate_digest_algo, certificate_locality, certificate_organization, certificate_province, certificate_ttl, conf_file_data, delete_protection, description, generate_self_signed_certificate, gpg_alg, json, key_data, metadata, name, protection_key_name, tags, token, uid_token].hash
336
+ [alg, cert_file_data, certificate_common_name, certificate_country, certificate_digest_algo, certificate_format, certificate_locality, certificate_organization, certificate_province, certificate_ttl, conf_file_data, delete_protection, description, generate_self_signed_certificate, gpg_alg, json, key_data, metadata, name, protection_key_name, tags, token, uid_token].hash
328
337
  end
329
338
 
330
339
  # Builds the object from hash
@@ -27,6 +27,8 @@ module Akeyless
27
27
  # Digest algorithm to be used for the certificate key signing. Currently, we support only \"sha256\" so we hide this option for CLI.
28
28
  attr_accessor :certificate_digest_algo
29
29
 
30
+ attr_accessor :certificate_format
31
+
30
32
  # Locality for the generated certificate. Relevant only for generate-self-signed-certificate.
31
33
  attr_accessor :certificate_locality
32
34
 
@@ -82,6 +84,7 @@ module Akeyless
82
84
  :'certificate_common_name' => :'certificate-common-name',
83
85
  :'certificate_country' => :'certificate-country',
84
86
  :'certificate_digest_algo' => :'certificate-digest-algo',
87
+ :'certificate_format' => :'certificate-format',
85
88
  :'certificate_locality' => :'certificate-locality',
86
89
  :'certificate_organization' => :'certificate-organization',
87
90
  :'certificate_province' => :'certificate-province',
@@ -113,6 +116,7 @@ module Akeyless
113
116
  :'certificate_common_name' => :'String',
114
117
  :'certificate_country' => :'String',
115
118
  :'certificate_digest_algo' => :'String',
119
+ :'certificate_format' => :'String',
116
120
  :'certificate_locality' => :'String',
117
121
  :'certificate_organization' => :'String',
118
122
  :'certificate_province' => :'String',
@@ -171,6 +175,10 @@ module Akeyless
171
175
  self.certificate_digest_algo = attributes[:'certificate_digest_algo']
172
176
  end
173
177
 
178
+ if attributes.key?(:'certificate_format')
179
+ self.certificate_format = attributes[:'certificate_format']
180
+ end
181
+
174
182
  if attributes.key?(:'certificate_locality')
175
183
  self.certificate_locality = attributes[:'certificate_locality']
176
184
  end
@@ -278,6 +286,7 @@ module Akeyless
278
286
  certificate_common_name == o.certificate_common_name &&
279
287
  certificate_country == o.certificate_country &&
280
288
  certificate_digest_algo == o.certificate_digest_algo &&
289
+ certificate_format == o.certificate_format &&
281
290
  certificate_locality == o.certificate_locality &&
282
291
  certificate_organization == o.certificate_organization &&
283
292
  certificate_province == o.certificate_province &&
@@ -305,7 +314,7 @@ module Akeyless
305
314
  # Calculates hash code according to all attributes.
306
315
  # @return [Integer] Hash code
307
316
  def hash
308
- [alg, certificate_common_name, certificate_country, certificate_digest_algo, certificate_locality, certificate_organization, certificate_province, certificate_ttl, conf_file_data, customer_frg_id, delete_protection, description, generate_self_signed_certificate, json, metadata, name, split_level, tag, token, uid_token].hash
317
+ [alg, certificate_common_name, certificate_country, certificate_digest_algo, certificate_format, certificate_locality, certificate_organization, certificate_province, certificate_ttl, conf_file_data, customer_frg_id, delete_protection, description, generate_self_signed_certificate, json, metadata, name, split_level, tag, token, uid_token].hash
309
318
  end
310
319
 
311
320
  # Builds the object from hash
@@ -21,6 +21,9 @@ module Akeyless
21
21
  # Indicate if the item should return with ztb cluster details (url, etc)
22
22
  attr_accessor :bastion_details
23
23
 
24
+ # The certificate will be displayed in DER format
25
+ attr_accessor :der_certificate_format
26
+
24
27
  # The display id of the item
25
28
  attr_accessor :display_id
26
29
 
@@ -53,6 +56,7 @@ module Akeyless
53
56
  {
54
57
  :'accessibility' => :'accessibility',
55
58
  :'bastion_details' => :'bastion-details',
59
+ :'der_certificate_format' => :'der-certificate-format',
56
60
  :'display_id' => :'display-id',
57
61
  :'gateway_details' => :'gateway-details',
58
62
  :'item_id' => :'item-id',
@@ -75,6 +79,7 @@ module Akeyless
75
79
  {
76
80
  :'accessibility' => :'String',
77
81
  :'bastion_details' => :'Boolean',
82
+ :'der_certificate_format' => :'Boolean',
78
83
  :'display_id' => :'String',
79
84
  :'gateway_details' => :'Boolean',
80
85
  :'item_id' => :'Integer',
@@ -120,6 +125,12 @@ module Akeyless
120
125
  self.bastion_details = false
121
126
  end
122
127
 
128
+ if attributes.key?(:'der_certificate_format')
129
+ self.der_certificate_format = attributes[:'der_certificate_format']
130
+ else
131
+ self.der_certificate_format = false
132
+ end
133
+
123
134
  if attributes.key?(:'display_id')
124
135
  self.display_id = attributes[:'display_id']
125
136
  end
@@ -194,6 +205,7 @@ module Akeyless
194
205
  self.class == o.class &&
195
206
  accessibility == o.accessibility &&
196
207
  bastion_details == o.bastion_details &&
208
+ der_certificate_format == o.der_certificate_format &&
197
209
  display_id == o.display_id &&
198
210
  gateway_details == o.gateway_details &&
199
211
  item_id == o.item_id &&
@@ -214,7 +226,7 @@ module Akeyless
214
226
  # Calculates hash code according to all attributes.
215
227
  # @return [Integer] Hash code
216
228
  def hash
217
- [accessibility, bastion_details, display_id, gateway_details, item_id, json, name, services_details, show_versions, token, uid_token].hash
229
+ [accessibility, bastion_details, der_certificate_format, display_id, gateway_details, item_id, json, name, services_details, show_versions, token, uid_token].hash
218
230
  end
219
231
 
220
232
  # Builds the object from hash