akeyless 3.3.5 → 3.3.7

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,326 @@
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 SignDataWithClassicKey
18
+ # Data
19
+ attr_accessor :data
20
+
21
+ # The name of the key to use in the sign data process
22
+ attr_accessor :display_id
23
+
24
+ # Defines whether the data should be hashed as part of the signing. If true, the data will not be hashed
25
+ attr_accessor :hashed
26
+
27
+ # HashingMethod
28
+ attr_accessor :hashing_method
29
+
30
+ # Set output format to JSON
31
+ attr_accessor :json
32
+
33
+ # ClassicKey name
34
+ attr_accessor :name
35
+
36
+ # Authentication token (see `/auth` and `/configure`)
37
+ attr_accessor :token
38
+
39
+ # The universal identity token, Required only for universal_identity authentication
40
+ attr_accessor :uid_token
41
+
42
+ # classic key version
43
+ attr_accessor :version
44
+
45
+ # Attribute mapping from ruby-style variable name to JSON key.
46
+ def self.attribute_map
47
+ {
48
+ :'data' => :'data',
49
+ :'display_id' => :'display-id',
50
+ :'hashed' => :'hashed',
51
+ :'hashing_method' => :'hashing-method',
52
+ :'json' => :'json',
53
+ :'name' => :'name',
54
+ :'token' => :'token',
55
+ :'uid_token' => :'uid-token',
56
+ :'version' => :'version'
57
+ }
58
+ end
59
+
60
+ # Returns all the JSON keys this model knows about
61
+ def self.acceptable_attributes
62
+ attribute_map.values
63
+ end
64
+
65
+ # Attribute type mapping.
66
+ def self.openapi_types
67
+ {
68
+ :'data' => :'String',
69
+ :'display_id' => :'String',
70
+ :'hashed' => :'Boolean',
71
+ :'hashing_method' => :'String',
72
+ :'json' => :'Boolean',
73
+ :'name' => :'String',
74
+ :'token' => :'String',
75
+ :'uid_token' => :'String',
76
+ :'version' => :'Integer'
77
+ }
78
+ end
79
+
80
+ # List of attributes with nullable: true
81
+ def self.openapi_nullable
82
+ Set.new([
83
+ ])
84
+ end
85
+
86
+ # Initializes the object
87
+ # @param [Hash] attributes Model attributes in the form of hash
88
+ def initialize(attributes = {})
89
+ if (!attributes.is_a?(Hash))
90
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::SignDataWithClassicKey` initialize method"
91
+ end
92
+
93
+ # check to see if the attribute exists and convert string to symbol for hash key
94
+ attributes = attributes.each_with_object({}) { |(k, v), h|
95
+ if (!self.class.attribute_map.key?(k.to_sym))
96
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::SignDataWithClassicKey`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
97
+ end
98
+ h[k.to_sym] = v
99
+ }
100
+
101
+ if attributes.key?(:'data')
102
+ self.data = attributes[:'data']
103
+ end
104
+
105
+ if attributes.key?(:'display_id')
106
+ self.display_id = attributes[:'display_id']
107
+ end
108
+
109
+ if attributes.key?(:'hashed')
110
+ self.hashed = attributes[:'hashed']
111
+ else
112
+ self.hashed = false
113
+ end
114
+
115
+ if attributes.key?(:'hashing_method')
116
+ self.hashing_method = attributes[:'hashing_method']
117
+ else
118
+ self.hashing_method = 'SHA256'
119
+ end
120
+
121
+ if attributes.key?(:'json')
122
+ self.json = attributes[:'json']
123
+ else
124
+ self.json = false
125
+ end
126
+
127
+ if attributes.key?(:'name')
128
+ self.name = attributes[:'name']
129
+ end
130
+
131
+ if attributes.key?(:'token')
132
+ self.token = attributes[:'token']
133
+ end
134
+
135
+ if attributes.key?(:'uid_token')
136
+ self.uid_token = attributes[:'uid_token']
137
+ end
138
+
139
+ if attributes.key?(:'version')
140
+ self.version = attributes[:'version']
141
+ end
142
+ end
143
+
144
+ # Show invalid properties with the reasons. Usually used together with valid?
145
+ # @return Array for valid properties with the reasons
146
+ def list_invalid_properties
147
+ invalid_properties = Array.new
148
+ if @data.nil?
149
+ invalid_properties.push('invalid value for "data", data cannot be nil.')
150
+ end
151
+
152
+ if @display_id.nil?
153
+ invalid_properties.push('invalid value for "display_id", display_id cannot be nil.')
154
+ end
155
+
156
+ if @name.nil?
157
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
158
+ end
159
+
160
+ if @version.nil?
161
+ invalid_properties.push('invalid value for "version", version cannot be nil.')
162
+ end
163
+
164
+ invalid_properties
165
+ end
166
+
167
+ # Check to see if the all the properties in the model are valid
168
+ # @return true if the model is valid
169
+ def valid?
170
+ return false if @data.nil?
171
+ return false if @display_id.nil?
172
+ return false if @name.nil?
173
+ return false if @version.nil?
174
+ true
175
+ end
176
+
177
+ # Checks equality by comparing each attribute.
178
+ # @param [Object] Object to be compared
179
+ def ==(o)
180
+ return true if self.equal?(o)
181
+ self.class == o.class &&
182
+ data == o.data &&
183
+ display_id == o.display_id &&
184
+ hashed == o.hashed &&
185
+ hashing_method == o.hashing_method &&
186
+ json == o.json &&
187
+ name == o.name &&
188
+ token == o.token &&
189
+ uid_token == o.uid_token &&
190
+ version == o.version
191
+ end
192
+
193
+ # @see the `==` method
194
+ # @param [Object] Object to be compared
195
+ def eql?(o)
196
+ self == o
197
+ end
198
+
199
+ # Calculates hash code according to all attributes.
200
+ # @return [Integer] Hash code
201
+ def hash
202
+ [data, display_id, hashed, hashing_method, json, name, token, uid_token, version].hash
203
+ end
204
+
205
+ # Builds the object from hash
206
+ # @param [Hash] attributes Model attributes in the form of hash
207
+ # @return [Object] Returns the model itself
208
+ def self.build_from_hash(attributes)
209
+ new.build_from_hash(attributes)
210
+ end
211
+
212
+ # Builds the object from hash
213
+ # @param [Hash] attributes Model attributes in the form of hash
214
+ # @return [Object] Returns the model itself
215
+ def build_from_hash(attributes)
216
+ return nil unless attributes.is_a?(Hash)
217
+ attributes = attributes.transform_keys(&:to_sym)
218
+ self.class.openapi_types.each_pair do |key, type|
219
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
220
+ self.send("#{key}=", nil)
221
+ elsif type =~ /\AArray<(.*)>/i
222
+ # check to ensure the input is an array given that the attribute
223
+ # is documented as an array but the input is not
224
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
225
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
226
+ end
227
+ elsif !attributes[self.class.attribute_map[key]].nil?
228
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
229
+ end
230
+ end
231
+
232
+ self
233
+ end
234
+
235
+ # Deserializes the data based on type
236
+ # @param string type Data type
237
+ # @param string value Value to be deserialized
238
+ # @return [Object] Deserialized data
239
+ def _deserialize(type, value)
240
+ case type.to_sym
241
+ when :Time
242
+ Time.parse(value)
243
+ when :Date
244
+ Date.parse(value)
245
+ when :String
246
+ value.to_s
247
+ when :Integer
248
+ value.to_i
249
+ when :Float
250
+ value.to_f
251
+ when :Boolean
252
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
253
+ true
254
+ else
255
+ false
256
+ end
257
+ when :Object
258
+ # generic object (usually a Hash), return directly
259
+ value
260
+ when /\AArray<(?<inner_type>.+)>\z/
261
+ inner_type = Regexp.last_match[:inner_type]
262
+ value.map { |v| _deserialize(inner_type, v) }
263
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
264
+ k_type = Regexp.last_match[:k_type]
265
+ v_type = Regexp.last_match[:v_type]
266
+ {}.tap do |hash|
267
+ value.each do |k, v|
268
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
269
+ end
270
+ end
271
+ else # model
272
+ # models (e.g. Pet) or oneOf
273
+ klass = Akeyless.const_get(type)
274
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
275
+ end
276
+ end
277
+
278
+ # Returns the string representation of the object
279
+ # @return [String] String presentation of the object
280
+ def to_s
281
+ to_hash.to_s
282
+ end
283
+
284
+ # to_body is an alias to to_hash (backward compatibility)
285
+ # @return [Hash] Returns the object in the form of hash
286
+ def to_body
287
+ to_hash
288
+ end
289
+
290
+ # Returns the object in the form of hash
291
+ # @return [Hash] Returns the object in the form of hash
292
+ def to_hash
293
+ hash = {}
294
+ self.class.attribute_map.each_pair do |attr, param|
295
+ value = self.send(attr)
296
+ if value.nil?
297
+ is_nullable = self.class.openapi_nullable.include?(attr)
298
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
299
+ end
300
+
301
+ hash[param] = _to_hash(value)
302
+ end
303
+ hash
304
+ end
305
+
306
+ # Outputs non-array value in the form of hash
307
+ # For object, use to_hash. Otherwise, just return the value
308
+ # @param [Object] value Any valid value
309
+ # @return [Hash] Returns the value in the form of hash
310
+ def _to_hash(value)
311
+ if value.is_a?(Array)
312
+ value.compact.map { |v| _to_hash(v) }
313
+ elsif value.is_a?(Hash)
314
+ {}.tap do |hash|
315
+ value.each { |k, v| hash[k] = _to_hash(v) }
316
+ end
317
+ elsif value.respond_to? :to_hash
318
+ value.to_hash
319
+ else
320
+ value
321
+ end
322
+ end
323
+
324
+ end
325
+
326
+ end
@@ -0,0 +1,219 @@
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 SignOutput
18
+ attr_accessor :result
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'result' => :'result'
24
+ }
25
+ end
26
+
27
+ # Returns all the JSON keys this model knows about
28
+ def self.acceptable_attributes
29
+ attribute_map.values
30
+ end
31
+
32
+ # Attribute type mapping.
33
+ def self.openapi_types
34
+ {
35
+ :'result' => :'String'
36
+ }
37
+ end
38
+
39
+ # List of attributes with nullable: true
40
+ def self.openapi_nullable
41
+ Set.new([
42
+ ])
43
+ end
44
+
45
+ # Initializes the object
46
+ # @param [Hash] attributes Model attributes in the form of hash
47
+ def initialize(attributes = {})
48
+ if (!attributes.is_a?(Hash))
49
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::SignOutput` initialize method"
50
+ end
51
+
52
+ # check to see if the attribute exists and convert string to symbol for hash key
53
+ attributes = attributes.each_with_object({}) { |(k, v), h|
54
+ if (!self.class.attribute_map.key?(k.to_sym))
55
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::SignOutput`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
+ end
57
+ h[k.to_sym] = v
58
+ }
59
+
60
+ if attributes.key?(:'result')
61
+ self.result = attributes[:'result']
62
+ end
63
+ end
64
+
65
+ # Show invalid properties with the reasons. Usually used together with valid?
66
+ # @return Array for valid properties with the reasons
67
+ def list_invalid_properties
68
+ invalid_properties = Array.new
69
+ invalid_properties
70
+ end
71
+
72
+ # Check to see if the all the properties in the model are valid
73
+ # @return true if the model is valid
74
+ def valid?
75
+ true
76
+ end
77
+
78
+ # Checks equality by comparing each attribute.
79
+ # @param [Object] Object to be compared
80
+ def ==(o)
81
+ return true if self.equal?(o)
82
+ self.class == o.class &&
83
+ result == o.result
84
+ end
85
+
86
+ # @see the `==` method
87
+ # @param [Object] Object to be compared
88
+ def eql?(o)
89
+ self == o
90
+ end
91
+
92
+ # Calculates hash code according to all attributes.
93
+ # @return [Integer] Hash code
94
+ def hash
95
+ [result].hash
96
+ end
97
+
98
+ # Builds the object from hash
99
+ # @param [Hash] attributes Model attributes in the form of hash
100
+ # @return [Object] Returns the model itself
101
+ def self.build_from_hash(attributes)
102
+ new.build_from_hash(attributes)
103
+ end
104
+
105
+ # Builds the object from hash
106
+ # @param [Hash] attributes Model attributes in the form of hash
107
+ # @return [Object] Returns the model itself
108
+ def build_from_hash(attributes)
109
+ return nil unless attributes.is_a?(Hash)
110
+ attributes = attributes.transform_keys(&:to_sym)
111
+ self.class.openapi_types.each_pair do |key, type|
112
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
113
+ self.send("#{key}=", nil)
114
+ elsif type =~ /\AArray<(.*)>/i
115
+ # check to ensure the input is an array given that the attribute
116
+ # is documented as an array but the input is not
117
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
118
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
119
+ end
120
+ elsif !attributes[self.class.attribute_map[key]].nil?
121
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
122
+ end
123
+ end
124
+
125
+ self
126
+ end
127
+
128
+ # Deserializes the data based on type
129
+ # @param string type Data type
130
+ # @param string value Value to be deserialized
131
+ # @return [Object] Deserialized data
132
+ def _deserialize(type, value)
133
+ case type.to_sym
134
+ when :Time
135
+ Time.parse(value)
136
+ when :Date
137
+ Date.parse(value)
138
+ when :String
139
+ value.to_s
140
+ when :Integer
141
+ value.to_i
142
+ when :Float
143
+ value.to_f
144
+ when :Boolean
145
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
146
+ true
147
+ else
148
+ false
149
+ end
150
+ when :Object
151
+ # generic object (usually a Hash), return directly
152
+ value
153
+ when /\AArray<(?<inner_type>.+)>\z/
154
+ inner_type = Regexp.last_match[:inner_type]
155
+ value.map { |v| _deserialize(inner_type, v) }
156
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
157
+ k_type = Regexp.last_match[:k_type]
158
+ v_type = Regexp.last_match[:v_type]
159
+ {}.tap do |hash|
160
+ value.each do |k, v|
161
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
162
+ end
163
+ end
164
+ else # model
165
+ # models (e.g. Pet) or oneOf
166
+ klass = Akeyless.const_get(type)
167
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
168
+ end
169
+ end
170
+
171
+ # Returns the string representation of the object
172
+ # @return [String] String presentation of the object
173
+ def to_s
174
+ to_hash.to_s
175
+ end
176
+
177
+ # to_body is an alias to to_hash (backward compatibility)
178
+ # @return [Hash] Returns the object in the form of hash
179
+ def to_body
180
+ to_hash
181
+ end
182
+
183
+ # Returns the object in the form of hash
184
+ # @return [Hash] Returns the object in the form of hash
185
+ def to_hash
186
+ hash = {}
187
+ self.class.attribute_map.each_pair do |attr, param|
188
+ value = self.send(attr)
189
+ if value.nil?
190
+ is_nullable = self.class.openapi_nullable.include?(attr)
191
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
192
+ end
193
+
194
+ hash[param] = _to_hash(value)
195
+ end
196
+ hash
197
+ end
198
+
199
+ # Outputs non-array value in the form of hash
200
+ # For object, use to_hash. Otherwise, just return the value
201
+ # @param [Object] value Any valid value
202
+ # @return [Hash] Returns the value in the form of hash
203
+ def _to_hash(value)
204
+ if value.is_a?(Array)
205
+ value.compact.map { |v| _to_hash(v) }
206
+ elsif value.is_a?(Hash)
207
+ {}.tap do |hash|
208
+ value.each { |k, v| hash[k] = _to_hash(v) }
209
+ end
210
+ elsif value.respond_to? :to_hash
211
+ value.to_hash
212
+ else
213
+ value
214
+ end
215
+ end
216
+
217
+ end
218
+
219
+ end
@@ -46,6 +46,8 @@ module Akeyless
46
46
 
47
47
  attr_accessor :target_name
48
48
 
49
+ attr_accessor :target_sub_type
50
+
49
51
  attr_accessor :target_type
50
52
 
51
53
  attr_accessor :target_versions
@@ -70,6 +72,7 @@ module Akeyless
70
72
  :'target_id' => :'target_id',
71
73
  :'target_items_assoc' => :'target_items_assoc',
72
74
  :'target_name' => :'target_name',
75
+ :'target_sub_type' => :'target_sub_type',
73
76
  :'target_type' => :'target_type',
74
77
  :'target_versions' => :'target_versions',
75
78
  :'with_customer_fragment' => :'with_customer_fragment'
@@ -99,6 +102,7 @@ module Akeyless
99
102
  :'target_id' => :'Integer',
100
103
  :'target_items_assoc' => :'Array<TargetItemAssociation>',
101
104
  :'target_name' => :'String',
105
+ :'target_sub_type' => :'String',
102
106
  :'target_type' => :'String',
103
107
  :'target_versions' => :'Array<ItemVersion>',
104
108
  :'with_customer_fragment' => :'Boolean'
@@ -192,6 +196,10 @@ module Akeyless
192
196
  self.target_name = attributes[:'target_name']
193
197
  end
194
198
 
199
+ if attributes.key?(:'target_sub_type')
200
+ self.target_sub_type = attributes[:'target_sub_type']
201
+ end
202
+
195
203
  if attributes.key?(:'target_type')
196
204
  self.target_type = attributes[:'target_type']
197
205
  end
@@ -240,6 +248,7 @@ module Akeyless
240
248
  target_id == o.target_id &&
241
249
  target_items_assoc == o.target_items_assoc &&
242
250
  target_name == o.target_name &&
251
+ target_sub_type == o.target_sub_type &&
243
252
  target_type == o.target_type &&
244
253
  target_versions == o.target_versions &&
245
254
  with_customer_fragment == o.with_customer_fragment
@@ -254,7 +263,7 @@ module Akeyless
254
263
  # Calculates hash code according to all attributes.
255
264
  # @return [Integer] Hash code
256
265
  def hash
257
- [access_date, access_request_status, attributes, client_permissions, comment, creation_date, credentials_less, is_access_request_enabled, last_version, modification_date, protection_key_name, target_details, target_id, target_items_assoc, target_name, target_type, target_versions, with_customer_fragment].hash
266
+ [access_date, access_request_status, attributes, client_permissions, comment, creation_date, credentials_less, is_access_request_enabled, last_version, modification_date, protection_key_name, target_details, target_id, target_items_assoc, target_name, target_sub_type, target_type, target_versions, with_customer_fragment].hash
258
267
  end
259
268
 
260
269
  # Builds the object from hash
@@ -36,9 +36,12 @@ module Akeyless
36
36
  # If set, certificates will be flagged for code signing use
37
37
  attr_accessor :code_signing_flag
38
38
 
39
- # A comma-separated list of the country that will be set in the issued certificate
39
+ # A comma-separated list of countries that will be set in the issued certificate
40
40
  attr_accessor :country
41
41
 
42
+ # Protection from accidental deletion of this item [true/false]
43
+ attr_accessor :delete_protection
44
+
42
45
  # Description of the object
43
46
  attr_accessor :description
44
47
 
@@ -57,7 +60,7 @@ module Akeyless
57
60
  # key-usage
58
61
  attr_accessor :key_usage
59
62
 
60
- # A comma-separated list of the locality that will be set in the issued certificate
63
+ # A comma-separated list of localities that will be set in the issued certificate
61
64
  attr_accessor :locality
62
65
 
63
66
  # Deprecated - use description
@@ -81,13 +84,13 @@ module Akeyless
81
84
  # A comma-separated list of organizations (O) that will be set in the issued certificate
82
85
  attr_accessor :organizations
83
86
 
84
- # A comma-separated list of the postal code that will be set in the issued certificate
87
+ # A comma-separated list of postal codes that will be set in the issued certificate
85
88
  attr_accessor :postal_code
86
89
 
87
90
  # Whether to protect generated certificates from deletion
88
91
  attr_accessor :protect_certificates
89
92
 
90
- # A comma-separated list of the province that will be set in the issued certificate
93
+ # A comma-separated list of provinces that will be set in the issued certificate
91
94
  attr_accessor :province
92
95
 
93
96
  # List of the existent tags that will be removed from this item
@@ -99,13 +102,13 @@ module Akeyless
99
102
  # A key to sign the certificate with, required in Private CA mode
100
103
  attr_accessor :signer_key_name
101
104
 
102
- # A comma-separated list of the street address that will be set in the issued certificate
105
+ # A comma-separated list of street addresses that will be set in the issued certificate
103
106
  attr_accessor :street_address
104
107
 
105
108
  # Authentication token (see `/auth` and `/configure`)
106
109
  attr_accessor :token
107
110
 
108
- # he requested Time To Live for the certificate, in seconds
111
+ # The maximum requested Time To Live for issued certificates, in seconds. In case of Public CA, this is based on the CA target's supported maximum TTLs
109
112
  attr_accessor :ttl
110
113
 
111
114
  # The universal identity token, Required only for universal_identity authentication
@@ -122,6 +125,7 @@ module Akeyless
122
125
  :'client_flag' => :'client-flag',
123
126
  :'code_signing_flag' => :'code-signing-flag',
124
127
  :'country' => :'country',
128
+ :'delete_protection' => :'delete_protection',
125
129
  :'description' => :'description',
126
130
  :'destination_path' => :'destination-path',
127
131
  :'expiration_event_in' => :'expiration-event-in',
@@ -165,6 +169,7 @@ module Akeyless
165
169
  :'client_flag' => :'Boolean',
166
170
  :'code_signing_flag' => :'Boolean',
167
171
  :'country' => :'String',
172
+ :'delete_protection' => :'String',
168
173
  :'description' => :'String',
169
174
  :'destination_path' => :'String',
170
175
  :'expiration_event_in' => :'Array<String>',
@@ -247,6 +252,10 @@ module Akeyless
247
252
  self.country = attributes[:'country']
248
253
  end
249
254
 
255
+ if attributes.key?(:'delete_protection')
256
+ self.delete_protection = attributes[:'delete_protection']
257
+ end
258
+
250
259
  if attributes.key?(:'description')
251
260
  self.description = attributes[:'description']
252
261
  end
@@ -395,6 +404,7 @@ module Akeyless
395
404
  client_flag == o.client_flag &&
396
405
  code_signing_flag == o.code_signing_flag &&
397
406
  country == o.country &&
407
+ delete_protection == o.delete_protection &&
398
408
  description == o.description &&
399
409
  destination_path == o.destination_path &&
400
410
  expiration_event_in == o.expiration_event_in &&
@@ -430,7 +440,7 @@ module Akeyless
430
440
  # Calculates hash code according to all attributes.
431
441
  # @return [Integer] Hash code
432
442
  def hash
433
- [add_tag, allow_any_name, allow_subdomains, allowed_domains, allowed_uri_sans, client_flag, code_signing_flag, country, description, destination_path, expiration_event_in, gw_cluster_url, json, key_usage, locality, metadata, name, new_name, not_enforce_hostnames, not_require_cn, organizational_units, organizations, postal_code, protect_certificates, province, rm_tag, server_flag, signer_key_name, street_address, token, ttl, uid_token].hash
443
+ [add_tag, allow_any_name, allow_subdomains, allowed_domains, allowed_uri_sans, client_flag, code_signing_flag, country, delete_protection, description, destination_path, expiration_event_in, gw_cluster_url, json, key_usage, locality, metadata, name, new_name, not_enforce_hostnames, not_require_cn, organizational_units, organizations, postal_code, protect_certificates, province, rm_tag, server_flag, signer_key_name, street_address, token, ttl, uid_token].hash
434
444
  end
435
445
 
436
446
  # Builds the object from hash