akeyless 2.16.4 → 2.16.5

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.
Files changed (106) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +20 -1
  3. data/docs/AwsS3LogForwardingConfig.md +2 -0
  4. data/docs/CreateAuthMethod.md +1 -1
  5. data/docs/CreateAuthMethodAWSIAM.md +1 -1
  6. data/docs/CreateAuthMethodAzureAD.md +1 -1
  7. data/docs/CreateAuthMethodCert.md +1 -1
  8. data/docs/CreateAuthMethodGCP.md +1 -1
  9. data/docs/CreateAuthMethodHuawei.md +1 -1
  10. data/docs/CreateAuthMethodK8S.md +1 -1
  11. data/docs/CreateAuthMethodLDAP.md +1 -1
  12. data/docs/CreateAuthMethodOAuth2.md +1 -1
  13. data/docs/CreateAuthMethodOIDC.md +1 -1
  14. data/docs/CreateAuthMethodSAML.md +1 -1
  15. data/docs/CreateAuthMethodUniversalIdentity.md +1 -1
  16. data/docs/CreateClassicKey.md +12 -0
  17. data/docs/CreateRotatedSecret.md +28 -0
  18. data/docs/CreateSalesforceTarget.md +42 -0
  19. data/docs/CreateSalesforceTargetOutput.md +18 -0
  20. data/docs/GatewayCreateMigration.md +50 -0
  21. data/docs/GatewayDeleteMigration.md +22 -0
  22. data/docs/GatewayGetMigration.md +22 -0
  23. data/docs/GatewayMigrationCreateOutput.md +18 -0
  24. data/docs/GatewayMigrationDeleteOutput.md +18 -0
  25. data/docs/GatewayMigrationGetOutput.md +18 -0
  26. data/docs/GatewayMigrationUpdateOutput.md +18 -0
  27. data/docs/GatewayUpdateMigration.md +52 -0
  28. data/docs/GetSecretValue.md +2 -0
  29. data/docs/HashiPayload.md +2 -0
  30. data/docs/Item.md +2 -0
  31. data/docs/TargetTypeDetailsInput.md +12 -0
  32. data/docs/UpdateAuthMethod.md +1 -1
  33. data/docs/UpdateAuthMethodAWSIAM.md +1 -1
  34. data/docs/UpdateAuthMethodAzureAD.md +1 -1
  35. data/docs/UpdateAuthMethodCert.md +1 -1
  36. data/docs/UpdateAuthMethodGCP.md +1 -1
  37. data/docs/UpdateAuthMethodK8S.md +1 -1
  38. data/docs/UpdateAuthMethodLDAP.md +1 -1
  39. data/docs/UpdateAuthMethodOAuth2.md +1 -1
  40. data/docs/UpdateAuthMethodOIDC.md +1 -1
  41. data/docs/UpdateAuthMethodSAML.md +1 -1
  42. data/docs/UpdateAuthMethodUniversalIdentity.md +1 -1
  43. data/docs/UpdateRotatedSecret.md +28 -0
  44. data/docs/UpdateSalesforceTarget.md +48 -0
  45. data/docs/UpdateSalesforceTargetOutput.md +18 -0
  46. data/docs/V2Api.md +441 -0
  47. data/lib/akeyless/api/v2_api.rb +448 -0
  48. data/lib/akeyless/models/aws_s3_log_forwarding_config.rb +10 -1
  49. data/lib/akeyless/models/create_auth_method.rb +0 -2
  50. data/lib/akeyless/models/create_auth_method_awsiam.rb +0 -2
  51. data/lib/akeyless/models/create_auth_method_azure_ad.rb +0 -2
  52. data/lib/akeyless/models/create_auth_method_cert.rb +0 -2
  53. data/lib/akeyless/models/create_auth_method_gcp.rb +0 -2
  54. data/lib/akeyless/models/create_auth_method_huawei.rb +0 -2
  55. data/lib/akeyless/models/create_auth_method_k8_s.rb +0 -2
  56. data/lib/akeyless/models/create_auth_method_ldap.rb +0 -2
  57. data/lib/akeyless/models/create_auth_method_o_auth2.rb +0 -2
  58. data/lib/akeyless/models/create_auth_method_oidc.rb +0 -2
  59. data/lib/akeyless/models/create_auth_method_saml.rb +0 -2
  60. data/lib/akeyless/models/create_auth_method_universal_identity.rb +0 -2
  61. data/lib/akeyless/models/create_classic_key.rb +61 -1
  62. data/lib/akeyless/models/create_rotated_secret.rb +153 -1
  63. data/lib/akeyless/models/create_salesforce_target.rb +375 -0
  64. data/lib/akeyless/models/create_salesforce_target_output.rb +219 -0
  65. data/lib/akeyless/models/gateway_create_migration.rb +374 -0
  66. data/lib/akeyless/models/gateway_delete_migration.rb +246 -0
  67. data/lib/akeyless/models/gateway_get_migration.rb +240 -0
  68. data/lib/akeyless/models/gateway_migration_create_output.rb +219 -0
  69. data/lib/akeyless/models/gateway_migration_delete_output.rb +219 -0
  70. data/lib/akeyless/models/gateway_migration_get_output.rb +219 -0
  71. data/lib/akeyless/models/gateway_migration_update_output.rb +219 -0
  72. data/lib/akeyless/models/gateway_update_migration.rb +383 -0
  73. data/lib/akeyless/models/gateway_update_producer_hana_db.rb +1 -1
  74. data/lib/akeyless/models/get_secret_value.rb +10 -1
  75. data/lib/akeyless/models/hashi_payload.rb +10 -1
  76. data/lib/akeyless/models/item.rb +10 -1
  77. data/lib/akeyless/models/target_type_details_input.rb +59 -1
  78. data/lib/akeyless/models/update_auth_method.rb +0 -2
  79. data/lib/akeyless/models/update_auth_method_awsiam.rb +0 -2
  80. data/lib/akeyless/models/update_auth_method_azure_ad.rb +0 -2
  81. data/lib/akeyless/models/update_auth_method_cert.rb +0 -2
  82. data/lib/akeyless/models/update_auth_method_gcp.rb +0 -2
  83. data/lib/akeyless/models/update_auth_method_k8_s.rb +0 -2
  84. data/lib/akeyless/models/update_auth_method_ldap.rb +0 -2
  85. data/lib/akeyless/models/update_auth_method_o_auth2.rb +0 -2
  86. data/lib/akeyless/models/update_auth_method_oidc.rb +0 -2
  87. data/lib/akeyless/models/update_auth_method_saml.rb +0 -2
  88. data/lib/akeyless/models/update_auth_method_universal_identity.rb +0 -2
  89. data/lib/akeyless/models/update_rotated_secret.rb +153 -1
  90. data/lib/akeyless/models/update_salesforce_target.rb +404 -0
  91. data/lib/akeyless/models/update_salesforce_target_output.rb +219 -0
  92. data/lib/akeyless/version.rb +1 -1
  93. data/lib/akeyless.rb +12 -0
  94. data/spec/models/create_salesforce_target_output_spec.rb +34 -0
  95. data/spec/models/create_salesforce_target_spec.rb +106 -0
  96. data/spec/models/gateway_create_migration_spec.rb +130 -0
  97. data/spec/models/gateway_delete_migration_spec.rb +46 -0
  98. data/spec/models/gateway_get_migration_spec.rb +46 -0
  99. data/spec/models/gateway_migration_create_output_spec.rb +34 -0
  100. data/spec/models/gateway_migration_delete_output_spec.rb +34 -0
  101. data/spec/models/gateway_migration_get_output_spec.rb +34 -0
  102. data/spec/models/gateway_migration_update_output_spec.rb +34 -0
  103. data/spec/models/gateway_update_migration_spec.rb +136 -0
  104. data/spec/models/update_salesforce_target_output_spec.rb +34 -0
  105. data/spec/models/update_salesforce_target_spec.rb +124 -0
  106. metadata +512 -464
@@ -0,0 +1,383 @@
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: 6.0.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Akeyless
17
+ # gatewayUpdateMigration is a command that update migration
18
+ class GatewayUpdateMigration
19
+ attr_accessor :aws_key
20
+
21
+ attr_accessor :aws_key_id
22
+
23
+ attr_accessor :aws_region
24
+
25
+ attr_accessor :azure_client_id
26
+
27
+ attr_accessor :azure_kv_name
28
+
29
+ attr_accessor :azure_secret
30
+
31
+ attr_accessor :azure_tenant_id
32
+
33
+ attr_accessor :hashi_json
34
+
35
+ attr_accessor :hashi_ns
36
+
37
+ attr_accessor :hashi_token
38
+
39
+ attr_accessor :hashi_url
40
+
41
+ attr_accessor :id
42
+
43
+ # Migration name
44
+ attr_accessor :name
45
+
46
+ attr_accessor :protection_key
47
+
48
+ attr_accessor :target_location
49
+
50
+ # Authentication token (see `/auth` and `/configure`)
51
+ attr_accessor :token
52
+
53
+ attr_accessor :type
54
+
55
+ # The universal identity token, Required only for universal_identity authentication
56
+ attr_accessor :uid_token
57
+
58
+ # Attribute mapping from ruby-style variable name to JSON key.
59
+ def self.attribute_map
60
+ {
61
+ :'aws_key' => :'aws-key',
62
+ :'aws_key_id' => :'aws-key-id',
63
+ :'aws_region' => :'aws-region',
64
+ :'azure_client_id' => :'azure-client-id',
65
+ :'azure_kv_name' => :'azure-kv-name',
66
+ :'azure_secret' => :'azure-secret',
67
+ :'azure_tenant_id' => :'azure-tenant-id',
68
+ :'hashi_json' => :'hashi-json',
69
+ :'hashi_ns' => :'hashi-ns',
70
+ :'hashi_token' => :'hashi-token',
71
+ :'hashi_url' => :'hashi-url',
72
+ :'id' => :'id',
73
+ :'name' => :'name',
74
+ :'protection_key' => :'protection-key',
75
+ :'target_location' => :'target-location',
76
+ :'token' => :'token',
77
+ :'type' => :'type',
78
+ :'uid_token' => :'uid-token'
79
+ }
80
+ end
81
+
82
+ # Returns all the JSON keys this model knows about
83
+ def self.acceptable_attributes
84
+ attribute_map.values
85
+ end
86
+
87
+ # Attribute type mapping.
88
+ def self.openapi_types
89
+ {
90
+ :'aws_key' => :'String',
91
+ :'aws_key_id' => :'String',
92
+ :'aws_region' => :'String',
93
+ :'azure_client_id' => :'String',
94
+ :'azure_kv_name' => :'String',
95
+ :'azure_secret' => :'String',
96
+ :'azure_tenant_id' => :'String',
97
+ :'hashi_json' => :'String',
98
+ :'hashi_ns' => :'Array<String>',
99
+ :'hashi_token' => :'String',
100
+ :'hashi_url' => :'String',
101
+ :'id' => :'String',
102
+ :'name' => :'String',
103
+ :'protection_key' => :'String',
104
+ :'target_location' => :'String',
105
+ :'token' => :'String',
106
+ :'type' => :'String',
107
+ :'uid_token' => :'String'
108
+ }
109
+ end
110
+
111
+ # List of attributes with nullable: true
112
+ def self.openapi_nullable
113
+ Set.new([
114
+ ])
115
+ end
116
+
117
+ # Initializes the object
118
+ # @param [Hash] attributes Model attributes in the form of hash
119
+ def initialize(attributes = {})
120
+ if (!attributes.is_a?(Hash))
121
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::GatewayUpdateMigration` initialize method"
122
+ end
123
+
124
+ # check to see if the attribute exists and convert string to symbol for hash key
125
+ attributes = attributes.each_with_object({}) { |(k, v), h|
126
+ if (!self.class.attribute_map.key?(k.to_sym))
127
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::GatewayUpdateMigration`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
128
+ end
129
+ h[k.to_sym] = v
130
+ }
131
+
132
+ if attributes.key?(:'aws_key')
133
+ self.aws_key = attributes[:'aws_key']
134
+ end
135
+
136
+ if attributes.key?(:'aws_key_id')
137
+ self.aws_key_id = attributes[:'aws_key_id']
138
+ end
139
+
140
+ if attributes.key?(:'aws_region')
141
+ self.aws_region = attributes[:'aws_region']
142
+ end
143
+
144
+ if attributes.key?(:'azure_client_id')
145
+ self.azure_client_id = attributes[:'azure_client_id']
146
+ end
147
+
148
+ if attributes.key?(:'azure_kv_name')
149
+ self.azure_kv_name = attributes[:'azure_kv_name']
150
+ end
151
+
152
+ if attributes.key?(:'azure_secret')
153
+ self.azure_secret = attributes[:'azure_secret']
154
+ end
155
+
156
+ if attributes.key?(:'azure_tenant_id')
157
+ self.azure_tenant_id = attributes[:'azure_tenant_id']
158
+ end
159
+
160
+ if attributes.key?(:'hashi_json')
161
+ self.hashi_json = attributes[:'hashi_json']
162
+ end
163
+
164
+ if attributes.key?(:'hashi_ns')
165
+ if (value = attributes[:'hashi_ns']).is_a?(Array)
166
+ self.hashi_ns = value
167
+ end
168
+ end
169
+
170
+ if attributes.key?(:'hashi_token')
171
+ self.hashi_token = attributes[:'hashi_token']
172
+ end
173
+
174
+ if attributes.key?(:'hashi_url')
175
+ self.hashi_url = attributes[:'hashi_url']
176
+ end
177
+
178
+ if attributes.key?(:'id')
179
+ self.id = attributes[:'id']
180
+ end
181
+
182
+ if attributes.key?(:'name')
183
+ self.name = attributes[:'name']
184
+ end
185
+
186
+ if attributes.key?(:'protection_key')
187
+ self.protection_key = attributes[:'protection_key']
188
+ end
189
+
190
+ if attributes.key?(:'target_location')
191
+ self.target_location = attributes[:'target_location']
192
+ end
193
+
194
+ if attributes.key?(:'token')
195
+ self.token = attributes[:'token']
196
+ end
197
+
198
+ if attributes.key?(:'type')
199
+ self.type = attributes[:'type']
200
+ end
201
+
202
+ if attributes.key?(:'uid_token')
203
+ self.uid_token = attributes[:'uid_token']
204
+ end
205
+ end
206
+
207
+ # Show invalid properties with the reasons. Usually used together with valid?
208
+ # @return Array for valid properties with the reasons
209
+ def list_invalid_properties
210
+ invalid_properties = Array.new
211
+ if @name.nil?
212
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
213
+ end
214
+
215
+ invalid_properties
216
+ end
217
+
218
+ # Check to see if the all the properties in the model are valid
219
+ # @return true if the model is valid
220
+ def valid?
221
+ return false if @name.nil?
222
+ true
223
+ end
224
+
225
+ # Checks equality by comparing each attribute.
226
+ # @param [Object] Object to be compared
227
+ def ==(o)
228
+ return true if self.equal?(o)
229
+ self.class == o.class &&
230
+ aws_key == o.aws_key &&
231
+ aws_key_id == o.aws_key_id &&
232
+ aws_region == o.aws_region &&
233
+ azure_client_id == o.azure_client_id &&
234
+ azure_kv_name == o.azure_kv_name &&
235
+ azure_secret == o.azure_secret &&
236
+ azure_tenant_id == o.azure_tenant_id &&
237
+ hashi_json == o.hashi_json &&
238
+ hashi_ns == o.hashi_ns &&
239
+ hashi_token == o.hashi_token &&
240
+ hashi_url == o.hashi_url &&
241
+ id == o.id &&
242
+ name == o.name &&
243
+ protection_key == o.protection_key &&
244
+ target_location == o.target_location &&
245
+ token == o.token &&
246
+ type == o.type &&
247
+ uid_token == o.uid_token
248
+ end
249
+
250
+ # @see the `==` method
251
+ # @param [Object] Object to be compared
252
+ def eql?(o)
253
+ self == o
254
+ end
255
+
256
+ # Calculates hash code according to all attributes.
257
+ # @return [Integer] Hash code
258
+ def hash
259
+ [aws_key, aws_key_id, aws_region, azure_client_id, azure_kv_name, azure_secret, azure_tenant_id, hashi_json, hashi_ns, hashi_token, hashi_url, id, name, protection_key, target_location, token, type, uid_token].hash
260
+ end
261
+
262
+ # Builds the object from hash
263
+ # @param [Hash] attributes Model attributes in the form of hash
264
+ # @return [Object] Returns the model itself
265
+ def self.build_from_hash(attributes)
266
+ new.build_from_hash(attributes)
267
+ end
268
+
269
+ # Builds the object from hash
270
+ # @param [Hash] attributes Model attributes in the form of hash
271
+ # @return [Object] Returns the model itself
272
+ def build_from_hash(attributes)
273
+ return nil unless attributes.is_a?(Hash)
274
+ attributes = attributes.transform_keys(&:to_sym)
275
+ self.class.openapi_types.each_pair do |key, type|
276
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
277
+ self.send("#{key}=", nil)
278
+ elsif type =~ /\AArray<(.*)>/i
279
+ # check to ensure the input is an array given that the attribute
280
+ # is documented as an array but the input is not
281
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
282
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
283
+ end
284
+ elsif !attributes[self.class.attribute_map[key]].nil?
285
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
286
+ end
287
+ end
288
+
289
+ self
290
+ end
291
+
292
+ # Deserializes the data based on type
293
+ # @param string type Data type
294
+ # @param string value Value to be deserialized
295
+ # @return [Object] Deserialized data
296
+ def _deserialize(type, value)
297
+ case type.to_sym
298
+ when :Time
299
+ Time.parse(value)
300
+ when :Date
301
+ Date.parse(value)
302
+ when :String
303
+ value.to_s
304
+ when :Integer
305
+ value.to_i
306
+ when :Float
307
+ value.to_f
308
+ when :Boolean
309
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
310
+ true
311
+ else
312
+ false
313
+ end
314
+ when :Object
315
+ # generic object (usually a Hash), return directly
316
+ value
317
+ when /\AArray<(?<inner_type>.+)>\z/
318
+ inner_type = Regexp.last_match[:inner_type]
319
+ value.map { |v| _deserialize(inner_type, v) }
320
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
321
+ k_type = Regexp.last_match[:k_type]
322
+ v_type = Regexp.last_match[:v_type]
323
+ {}.tap do |hash|
324
+ value.each do |k, v|
325
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
326
+ end
327
+ end
328
+ else # model
329
+ # models (e.g. Pet) or oneOf
330
+ klass = Akeyless.const_get(type)
331
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
332
+ end
333
+ end
334
+
335
+ # Returns the string representation of the object
336
+ # @return [String] String presentation of the object
337
+ def to_s
338
+ to_hash.to_s
339
+ end
340
+
341
+ # to_body is an alias to to_hash (backward compatibility)
342
+ # @return [Hash] Returns the object in the form of hash
343
+ def to_body
344
+ to_hash
345
+ end
346
+
347
+ # Returns the object in the form of hash
348
+ # @return [Hash] Returns the object in the form of hash
349
+ def to_hash
350
+ hash = {}
351
+ self.class.attribute_map.each_pair do |attr, param|
352
+ value = self.send(attr)
353
+ if value.nil?
354
+ is_nullable = self.class.openapi_nullable.include?(attr)
355
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
356
+ end
357
+
358
+ hash[param] = _to_hash(value)
359
+ end
360
+ hash
361
+ end
362
+
363
+ # Outputs non-array value in the form of hash
364
+ # For object, use to_hash. Otherwise, just return the value
365
+ # @param [Object] value Any valid value
366
+ # @return [Hash] Returns the value in the form of hash
367
+ def _to_hash(value)
368
+ if value.is_a?(Array)
369
+ value.compact.map { |v| _to_hash(v) }
370
+ elsif value.is_a?(Hash)
371
+ {}.tap do |hash|
372
+ value.each { |k, v| hash[k] = _to_hash(v) }
373
+ end
374
+ elsif value.respond_to? :to_hash
375
+ value.to_hash
376
+ else
377
+ value
378
+ end
379
+ end
380
+
381
+ end
382
+
383
+ end
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Akeyless
17
- # gatewayUpdateProducerHanaDb is a command that updates mssql producer
17
+ # gatewayUpdateProducerHanaDb is a command that updates hanadb producer
18
18
  class GatewayUpdateProducerHanaDb
19
19
  # HanaDb Name
20
20
  attr_accessor :hana_dbname
@@ -18,6 +18,8 @@ module Akeyless
18
18
  # Secret name
19
19
  attr_accessor :names
20
20
 
21
+ attr_accessor :pretty_print
22
+
21
23
  # Authentication token (see `/auth` and `/configure`)
22
24
  attr_accessor :token
23
25
 
@@ -31,6 +33,7 @@ module Akeyless
31
33
  def self.attribute_map
32
34
  {
33
35
  :'names' => :'names',
36
+ :'pretty_print' => :'pretty-print',
34
37
  :'token' => :'token',
35
38
  :'uid_token' => :'uid-token',
36
39
  :'version' => :'version'
@@ -46,6 +49,7 @@ module Akeyless
46
49
  def self.openapi_types
47
50
  {
48
51
  :'names' => :'Array<String>',
52
+ :'pretty_print' => :'Boolean',
49
53
  :'token' => :'String',
50
54
  :'uid_token' => :'String',
51
55
  :'version' => :'Integer'
@@ -79,6 +83,10 @@ module Akeyless
79
83
  end
80
84
  end
81
85
 
86
+ if attributes.key?(:'pretty_print')
87
+ self.pretty_print = attributes[:'pretty_print']
88
+ end
89
+
82
90
  if attributes.key?(:'token')
83
91
  self.token = attributes[:'token']
84
92
  end
@@ -116,6 +124,7 @@ module Akeyless
116
124
  return true if self.equal?(o)
117
125
  self.class == o.class &&
118
126
  names == o.names &&
127
+ pretty_print == o.pretty_print &&
119
128
  token == o.token &&
120
129
  uid_token == o.uid_token &&
121
130
  version == o.version
@@ -130,7 +139,7 @@ module Akeyless
130
139
  # Calculates hash code according to all attributes.
131
140
  # @return [Integer] Hash code
132
141
  def hash
133
- [names, token, uid_token, version].hash
142
+ [names, pretty_print, token, uid_token, version].hash
134
143
  end
135
144
 
136
145
  # Builds the object from hash
@@ -15,6 +15,8 @@ require 'time'
15
15
 
16
16
  module Akeyless
17
17
  class HashiPayload
18
+ attr_accessor :import_as_json
19
+
18
20
  attr_accessor :namespaces
19
21
 
20
22
  attr_accessor :token
@@ -24,6 +26,7 @@ module Akeyless
24
26
  # Attribute mapping from ruby-style variable name to JSON key.
25
27
  def self.attribute_map
26
28
  {
29
+ :'import_as_json' => :'import_as_json',
27
30
  :'namespaces' => :'namespaces',
28
31
  :'token' => :'token',
29
32
  :'url' => :'url'
@@ -38,6 +41,7 @@ module Akeyless
38
41
  # Attribute type mapping.
39
42
  def self.openapi_types
40
43
  {
44
+ :'import_as_json' => :'Boolean',
41
45
  :'namespaces' => :'Array<String>',
42
46
  :'token' => :'String',
43
47
  :'url' => :'String'
@@ -65,6 +69,10 @@ module Akeyless
65
69
  h[k.to_sym] = v
66
70
  }
67
71
 
72
+ if attributes.key?(:'import_as_json')
73
+ self.import_as_json = attributes[:'import_as_json']
74
+ end
75
+
68
76
  if attributes.key?(:'namespaces')
69
77
  if (value = attributes[:'namespaces']).is_a?(Array)
70
78
  self.namespaces = value
@@ -98,6 +106,7 @@ module Akeyless
98
106
  def ==(o)
99
107
  return true if self.equal?(o)
100
108
  self.class == o.class &&
109
+ import_as_json == o.import_as_json &&
101
110
  namespaces == o.namespaces &&
102
111
  token == o.token &&
103
112
  url == o.url
@@ -112,7 +121,7 @@ module Akeyless
112
121
  # Calculates hash code according to all attributes.
113
122
  # @return [Integer] Hash code
114
123
  def hash
115
- [namespaces, token, url].hash
124
+ [import_as_json, namespaces, token, url].hash
116
125
  end
117
126
 
118
127
  # Builds the object from hash
@@ -33,6 +33,8 @@ module Akeyless
33
33
 
34
34
  attr_accessor :is_enabled
35
35
 
36
+ attr_accessor :item_accessibility
37
+
36
38
  attr_accessor :item_general_info
37
39
 
38
40
  attr_accessor :item_id
@@ -82,6 +84,7 @@ module Akeyless
82
84
  :'deletion_date' => :'deletion_date',
83
85
  :'display_id' => :'display_id',
84
86
  :'is_enabled' => :'is_enabled',
87
+ :'item_accessibility' => :'item_accessibility',
85
88
  :'item_general_info' => :'item_general_info',
86
89
  :'item_id' => :'item_id',
87
90
  :'item_metadata' => :'item_metadata',
@@ -120,6 +123,7 @@ module Akeyless
120
123
  :'deletion_date' => :'Time',
121
124
  :'display_id' => :'String',
122
125
  :'is_enabled' => :'Boolean',
126
+ :'item_accessibility' => :'Integer',
123
127
  :'item_general_info' => :'ItemGeneralInfo',
124
128
  :'item_id' => :'Integer',
125
129
  :'item_metadata' => :'String',
@@ -200,6 +204,10 @@ module Akeyless
200
204
  self.is_enabled = attributes[:'is_enabled']
201
205
  end
202
206
 
207
+ if attributes.key?(:'item_accessibility')
208
+ self.item_accessibility = attributes[:'item_accessibility']
209
+ end
210
+
203
211
  if attributes.key?(:'item_general_info')
204
212
  self.item_general_info = attributes[:'item_general_info']
205
213
  end
@@ -308,6 +316,7 @@ module Akeyless
308
316
  deletion_date == o.deletion_date &&
309
317
  display_id == o.display_id &&
310
318
  is_enabled == o.is_enabled &&
319
+ item_accessibility == o.item_accessibility &&
311
320
  item_general_info == o.item_general_info &&
312
321
  item_id == o.item_id &&
313
322
  item_metadata == o.item_metadata &&
@@ -337,7 +346,7 @@ module Akeyless
337
346
  # Calculates hash code according to all attributes.
338
347
  # @return [Integer] Hash code
339
348
  def hash
340
- [auto_rotate, cert_issuer_signer_key_name, certificate_issue_details, certificates, client_permissions, customer_fragment_id, deletion_date, display_id, is_enabled, item_general_info, item_id, item_metadata, item_name, item_size, item_state, item_sub_type, item_tags, item_targets_assoc, item_type, item_versions, last_version, next_rotation_date, protection_key_name, public_value, rotation_interval, target_versions, with_customer_fragment].hash
349
+ [auto_rotate, cert_issuer_signer_key_name, certificate_issue_details, certificates, client_permissions, customer_fragment_id, deletion_date, display_id, is_enabled, item_accessibility, item_general_info, item_id, item_metadata, item_name, item_size, item_state, item_sub_type, item_tags, item_targets_assoc, item_type, item_versions, last_version, next_rotation_date, protection_key_name, public_value, rotation_interval, target_versions, with_customer_fragment].hash
341
350
  end
342
351
 
343
352
  # Builds the object from hash