akeyless 2.16.3 → 2.16.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (160) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +39 -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/CreateTokenizer.md +42 -0
  21. data/docs/CreateTokenizerOutput.md +18 -0
  22. data/docs/Detokenize.md +26 -0
  23. data/docs/DetokenizeOutput.md +18 -0
  24. data/docs/DynamicSecretProducerInfo.md +2 -0
  25. data/docs/EmailTokenizerInfo.md +22 -0
  26. data/docs/GatewayCreateMigration.md +50 -0
  27. data/docs/GatewayDeleteMigration.md +22 -0
  28. data/docs/GatewayGetMigration.md +22 -0
  29. data/docs/GatewayMigrationCreateOutput.md +18 -0
  30. data/docs/GatewayMigrationDeleteOutput.md +18 -0
  31. data/docs/GatewayMigrationGetOutput.md +18 -0
  32. data/docs/GatewayMigrationUpdateOutput.md +18 -0
  33. data/docs/GatewayUpdateMigration.md +52 -0
  34. data/docs/GetSecretValue.md +2 -0
  35. data/docs/HashiPayload.md +2 -0
  36. data/docs/Item.md +2 -0
  37. data/docs/ItemGeneralInfo.md +5 -1
  38. data/docs/ListTargets.md +2 -0
  39. data/docs/LogForwardingConfigPart.md +0 -2
  40. data/docs/Producer.md +2 -0
  41. data/docs/RegexpTokenizerInfo.md +24 -0
  42. data/docs/RotateSecret.md +22 -0
  43. data/docs/RotatedSecretOutput.md +18 -0
  44. data/docs/SystemAccessCredentialsReplyObj.md +2 -0
  45. data/docs/TargetTypeDetailsInput.md +12 -0
  46. data/docs/Tokenize.md +26 -0
  47. data/docs/TokenizeOutput.md +20 -0
  48. data/docs/TokenizerInfo.md +18 -0
  49. data/docs/UpdateAuthMethod.md +1 -1
  50. data/docs/UpdateAuthMethodAWSIAM.md +1 -1
  51. data/docs/UpdateAuthMethodAzureAD.md +1 -1
  52. data/docs/UpdateAuthMethodCert.md +1 -1
  53. data/docs/UpdateAuthMethodGCP.md +1 -1
  54. data/docs/UpdateAuthMethodK8S.md +1 -1
  55. data/docs/UpdateAuthMethodLDAP.md +1 -1
  56. data/docs/UpdateAuthMethodOAuth2.md +1 -1
  57. data/docs/UpdateAuthMethodOIDC.md +1 -1
  58. data/docs/UpdateAuthMethodSAML.md +1 -1
  59. data/docs/UpdateAuthMethodUniversalIdentity.md +1 -1
  60. data/docs/UpdateRotatedSecret.md +28 -0
  61. data/docs/UpdateSalesforceTarget.md +48 -0
  62. data/docs/UpdateSalesforceTargetOutput.md +18 -0
  63. data/docs/UpdateTokenizer.md +46 -0
  64. data/docs/UpdateTokenizerOutput.md +18 -0
  65. data/docs/V2Api.md +762 -6
  66. data/docs/VaultlessTokenizerInfo.md +28 -0
  67. data/lib/akeyless/api/v2_api.rb +769 -1
  68. data/lib/akeyless/models/aws_s3_log_forwarding_config.rb +10 -1
  69. data/lib/akeyless/models/create_auth_method.rb +0 -2
  70. data/lib/akeyless/models/create_auth_method_awsiam.rb +0 -2
  71. data/lib/akeyless/models/create_auth_method_azure_ad.rb +0 -2
  72. data/lib/akeyless/models/create_auth_method_cert.rb +0 -2
  73. data/lib/akeyless/models/create_auth_method_gcp.rb +0 -2
  74. data/lib/akeyless/models/create_auth_method_huawei.rb +0 -2
  75. data/lib/akeyless/models/create_auth_method_k8_s.rb +0 -2
  76. data/lib/akeyless/models/create_auth_method_ldap.rb +0 -2
  77. data/lib/akeyless/models/create_auth_method_o_auth2.rb +0 -2
  78. data/lib/akeyless/models/create_auth_method_oidc.rb +0 -2
  79. data/lib/akeyless/models/create_auth_method_saml.rb +0 -2
  80. data/lib/akeyless/models/create_auth_method_universal_identity.rb +0 -2
  81. data/lib/akeyless/models/create_classic_key.rb +61 -1
  82. data/lib/akeyless/models/create_rotated_secret.rb +153 -1
  83. data/lib/akeyless/models/create_salesforce_target.rb +375 -0
  84. data/lib/akeyless/models/create_salesforce_target_output.rb +219 -0
  85. data/lib/akeyless/models/create_tokenizer.rb +358 -0
  86. data/lib/akeyless/models/create_tokenizer_output.rb +219 -0
  87. data/lib/akeyless/models/detokenize.rb +271 -0
  88. data/lib/akeyless/models/detokenize_output.rb +219 -0
  89. data/lib/akeyless/models/dynamic_secret_producer_info.rb +10 -1
  90. data/lib/akeyless/models/email_tokenizer_info.rb +241 -0
  91. data/lib/akeyless/models/gateway_create_migration.rb +374 -0
  92. data/lib/akeyless/models/gateway_delete_migration.rb +246 -0
  93. data/lib/akeyless/models/gateway_get_migration.rb +240 -0
  94. data/lib/akeyless/models/gateway_migration_create_output.rb +219 -0
  95. data/lib/akeyless/models/gateway_migration_delete_output.rb +219 -0
  96. data/lib/akeyless/models/gateway_migration_get_output.rb +219 -0
  97. data/lib/akeyless/models/gateway_migration_update_output.rb +219 -0
  98. data/lib/akeyless/models/gateway_update_migration.rb +383 -0
  99. data/lib/akeyless/models/gateway_update_producer_hana_db.rb +1 -1
  100. data/lib/akeyless/models/get_secret_value.rb +10 -1
  101. data/lib/akeyless/models/hashi_payload.rb +10 -1
  102. data/lib/akeyless/models/item.rb +10 -1
  103. data/lib/akeyless/models/item_general_info.rb +22 -4
  104. data/lib/akeyless/models/list_targets.rb +13 -1
  105. data/lib/akeyless/models/log_forwarding_config_part.rb +1 -10
  106. data/lib/akeyless/models/producer.rb +10 -1
  107. data/lib/akeyless/models/regexp_tokenizer_info.rb +251 -0
  108. data/lib/akeyless/models/rotate_secret.rb +245 -0
  109. data/lib/akeyless/models/rotated_secret_output.rb +219 -0
  110. data/lib/akeyless/models/system_access_credentials_reply_obj.rb +11 -1
  111. data/lib/akeyless/models/target_type_details_input.rb +59 -1
  112. data/lib/akeyless/models/tokenize.rb +271 -0
  113. data/lib/akeyless/models/tokenize_output.rb +228 -0
  114. data/lib/akeyless/models/tokenizer_info.rb +219 -0
  115. data/lib/akeyless/models/update_auth_method.rb +0 -2
  116. data/lib/akeyless/models/update_auth_method_awsiam.rb +0 -2
  117. data/lib/akeyless/models/update_auth_method_azure_ad.rb +0 -2
  118. data/lib/akeyless/models/update_auth_method_cert.rb +0 -2
  119. data/lib/akeyless/models/update_auth_method_gcp.rb +0 -2
  120. data/lib/akeyless/models/update_auth_method_k8_s.rb +0 -2
  121. data/lib/akeyless/models/update_auth_method_ldap.rb +0 -2
  122. data/lib/akeyless/models/update_auth_method_o_auth2.rb +0 -2
  123. data/lib/akeyless/models/update_auth_method_oidc.rb +0 -2
  124. data/lib/akeyless/models/update_auth_method_saml.rb +0 -2
  125. data/lib/akeyless/models/update_auth_method_universal_identity.rb +0 -2
  126. data/lib/akeyless/models/update_rotated_secret.rb +153 -1
  127. data/lib/akeyless/models/update_salesforce_target.rb +404 -0
  128. data/lib/akeyless/models/update_salesforce_target_output.rb +219 -0
  129. data/lib/akeyless/models/update_tokenizer.rb +382 -0
  130. data/lib/akeyless/models/update_tokenizer_output.rb +219 -0
  131. data/lib/akeyless/models/vaultless_tokenizer_info.rb +267 -0
  132. data/lib/akeyless/version.rb +1 -1
  133. data/lib/akeyless.rb +26 -0
  134. data/spec/models/create_salesforce_target_output_spec.rb +34 -0
  135. data/spec/models/create_salesforce_target_spec.rb +106 -0
  136. data/spec/models/create_tokenizer_output_spec.rb +34 -0
  137. data/spec/models/create_tokenizer_spec.rb +106 -0
  138. data/spec/models/detokenize_output_spec.rb +34 -0
  139. data/spec/models/detokenize_spec.rb +58 -0
  140. data/spec/models/email_tokenizer_info_spec.rb +46 -0
  141. data/spec/models/gateway_create_migration_spec.rb +130 -0
  142. data/spec/models/gateway_delete_migration_spec.rb +46 -0
  143. data/spec/models/gateway_get_migration_spec.rb +46 -0
  144. data/spec/models/gateway_migration_create_output_spec.rb +34 -0
  145. data/spec/models/gateway_migration_delete_output_spec.rb +34 -0
  146. data/spec/models/gateway_migration_get_output_spec.rb +34 -0
  147. data/spec/models/gateway_migration_update_output_spec.rb +34 -0
  148. data/spec/models/gateway_update_migration_spec.rb +136 -0
  149. data/spec/models/regexp_tokenizer_info_spec.rb +52 -0
  150. data/spec/models/rotate_secret_spec.rb +46 -0
  151. data/spec/models/rotated_secret_output_spec.rb +34 -0
  152. data/spec/models/tokenize_output_spec.rb +40 -0
  153. data/spec/models/tokenize_spec.rb +58 -0
  154. data/spec/models/tokenizer_info_spec.rb +34 -0
  155. data/spec/models/update_salesforce_target_output_spec.rb +34 -0
  156. data/spec/models/update_salesforce_target_spec.rb +124 -0
  157. data/spec/models/update_tokenizer_output_spec.rb +34 -0
  158. data/spec/models/update_tokenizer_spec.rb +118 -0
  159. data/spec/models/vaultless_tokenizer_info_spec.rb +64 -0
  160. metadata +563 -459
@@ -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
@@ -19,6 +19,8 @@ module Akeyless
19
19
 
20
20
  attr_accessor :classic_key_details
21
21
 
22
+ attr_accessor :display_metadata
23
+
22
24
  attr_accessor :dynamic_secret_producer_details
23
25
 
24
26
  attr_accessor :password_policy
@@ -29,16 +31,20 @@ module Akeyless
29
31
 
30
32
  attr_accessor :static_secret_info
31
33
 
34
+ attr_accessor :tokenizer_info
35
+
32
36
  # Attribute mapping from ruby-style variable name to JSON key.
33
37
  def self.attribute_map
34
38
  {
35
39
  :'cert_issue_details' => :'cert_issue_details',
36
40
  :'classic_key_details' => :'classic_key_details',
41
+ :'display_metadata' => :'display_metadata',
37
42
  :'dynamic_secret_producer_details' => :'dynamic_secret_producer_details',
38
43
  :'password_policy' => :'password_policy',
39
44
  :'rotated_secret_details' => :'rotated_secret_details',
40
45
  :'secure_remote_access_details' => :'secure_remote_access_details',
41
- :'static_secret_info' => :'static_secret_info'
46
+ :'static_secret_info' => :'static_secret_info',
47
+ :'tokenizer_info' => :'tokenizer_info'
42
48
  }
43
49
  end
44
50
 
@@ -52,11 +58,13 @@ module Akeyless
52
58
  {
53
59
  :'cert_issue_details' => :'CertificateIssueInfo',
54
60
  :'classic_key_details' => :'ClassicKeyDetailsInfo',
61
+ :'display_metadata' => :'String',
55
62
  :'dynamic_secret_producer_details' => :'DynamicSecretProducerInfo',
56
63
  :'password_policy' => :'PasswordPolicyInfo',
57
64
  :'rotated_secret_details' => :'RotatedSecretDetailsInfo',
58
65
  :'secure_remote_access_details' => :'SecureRemoteAccess',
59
- :'static_secret_info' => :'StaticSecretDetailsInfo'
66
+ :'static_secret_info' => :'StaticSecretDetailsInfo',
67
+ :'tokenizer_info' => :'TokenizerInfo'
60
68
  }
61
69
  end
62
70
 
@@ -89,6 +97,10 @@ module Akeyless
89
97
  self.classic_key_details = attributes[:'classic_key_details']
90
98
  end
91
99
 
100
+ if attributes.key?(:'display_metadata')
101
+ self.display_metadata = attributes[:'display_metadata']
102
+ end
103
+
92
104
  if attributes.key?(:'dynamic_secret_producer_details')
93
105
  self.dynamic_secret_producer_details = attributes[:'dynamic_secret_producer_details']
94
106
  end
@@ -108,6 +120,10 @@ module Akeyless
108
120
  if attributes.key?(:'static_secret_info')
109
121
  self.static_secret_info = attributes[:'static_secret_info']
110
122
  end
123
+
124
+ if attributes.key?(:'tokenizer_info')
125
+ self.tokenizer_info = attributes[:'tokenizer_info']
126
+ end
111
127
  end
112
128
 
113
129
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -130,11 +146,13 @@ module Akeyless
130
146
  self.class == o.class &&
131
147
  cert_issue_details == o.cert_issue_details &&
132
148
  classic_key_details == o.classic_key_details &&
149
+ display_metadata == o.display_metadata &&
133
150
  dynamic_secret_producer_details == o.dynamic_secret_producer_details &&
134
151
  password_policy == o.password_policy &&
135
152
  rotated_secret_details == o.rotated_secret_details &&
136
153
  secure_remote_access_details == o.secure_remote_access_details &&
137
- static_secret_info == o.static_secret_info
154
+ static_secret_info == o.static_secret_info &&
155
+ tokenizer_info == o.tokenizer_info
138
156
  end
139
157
 
140
158
  # @see the `==` method
@@ -146,7 +164,7 @@ module Akeyless
146
164
  # Calculates hash code according to all attributes.
147
165
  # @return [Integer] Hash code
148
166
  def hash
149
- [cert_issue_details, classic_key_details, dynamic_secret_producer_details, password_policy, rotated_secret_details, secure_remote_access_details, static_secret_info].hash
167
+ [cert_issue_details, classic_key_details, display_metadata, dynamic_secret_producer_details, password_policy, rotated_secret_details, secure_remote_access_details, static_secret_info, tokenizer_info].hash
150
168
  end
151
169
 
152
170
  # Builds the object from hash
@@ -24,6 +24,9 @@ module Akeyless
24
24
  # Authentication token (see `/auth` and `/configure`)
25
25
  attr_accessor :token
26
26
 
27
+ # The target types list . In case it is empty, all types of targets will be returned. options: [hanadb cassandra aws ssh gke eks mysql mongodb snowflake mssql redshift artifactory azure rabbitmq k8s venafi gcp oracle dockerhub ldap github chef web salesforce postgres]
28
+ attr_accessor :type
29
+
27
30
  # The universal identity token, Required only for universal_identity authentication
28
31
  attr_accessor :uid_token
29
32
 
@@ -33,6 +36,7 @@ module Akeyless
33
36
  :'filter' => :'filter',
34
37
  :'pagination_token' => :'pagination-token',
35
38
  :'token' => :'token',
39
+ :'type' => :'type',
36
40
  :'uid_token' => :'uid-token'
37
41
  }
38
42
  end
@@ -48,6 +52,7 @@ module Akeyless
48
52
  :'filter' => :'String',
49
53
  :'pagination_token' => :'String',
50
54
  :'token' => :'String',
55
+ :'type' => :'Array<String>',
51
56
  :'uid_token' => :'String'
52
57
  }
53
58
  end
@@ -85,6 +90,12 @@ module Akeyless
85
90
  self.token = attributes[:'token']
86
91
  end
87
92
 
93
+ if attributes.key?(:'type')
94
+ if (value = attributes[:'type']).is_a?(Array)
95
+ self.type = value
96
+ end
97
+ end
98
+
88
99
  if attributes.key?(:'uid_token')
89
100
  self.uid_token = attributes[:'uid_token']
90
101
  end
@@ -111,6 +122,7 @@ module Akeyless
111
122
  filter == o.filter &&
112
123
  pagination_token == o.pagination_token &&
113
124
  token == o.token &&
125
+ type == o.type &&
114
126
  uid_token == o.uid_token
115
127
  end
116
128
 
@@ -123,7 +135,7 @@ module Akeyless
123
135
  # Calculates hash code according to all attributes.
124
136
  # @return [Integer] Hash code
125
137
  def hash
126
- [filter, pagination_token, token, uid_token].hash
138
+ [filter, pagination_token, token, type, uid_token].hash
127
139
  end
128
140
 
129
141
  # Builds the object from hash