akeyless 3.1.2 → 3.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (125) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +13 -1
  3. data/docs/CreateAWSTarget.md +3 -1
  4. data/docs/CreateArtifactoryTarget.md +3 -1
  5. data/docs/CreateAzureTarget.md +3 -1
  6. data/docs/CreateDBTarget.md +3 -1
  7. data/docs/CreateDockerhubTarget.md +3 -1
  8. data/docs/CreateEKSTarget.md +3 -1
  9. data/docs/CreateEventForwarder.md +3 -1
  10. data/docs/CreateGKETarget.md +3 -1
  11. data/docs/CreateGcpTarget.md +3 -1
  12. data/docs/CreateGithubTarget.md +3 -1
  13. data/docs/CreateLdapTarget.md +3 -1
  14. data/docs/CreateNativeK8STarget.md +3 -1
  15. data/docs/CreatePingTarget.md +40 -0
  16. data/docs/CreatePingTargetOutput.md +18 -0
  17. data/docs/CreateRabbitMQTarget.md +3 -1
  18. data/docs/CreateRole.md +3 -1
  19. data/docs/CreateRotatedSecret.md +2 -0
  20. data/docs/CreateSSHTarget.md +3 -1
  21. data/docs/CreateSalesforceTarget.md +3 -1
  22. data/docs/CreateWebTarget.md +3 -1
  23. data/docs/DSProducerDetails.md +40 -0
  24. data/docs/GatewayCreateProducerEks.md +1 -1
  25. data/docs/GatewayCreateProducerPing.md +66 -0
  26. data/docs/GatewayCreateProducerPingOutput.md +18 -0
  27. data/docs/GatewayUpdateProducerEks.md +1 -1
  28. data/docs/GatewayUpdateProducerPing.md +68 -0
  29. data/docs/GatewayUpdateProducerPingOutput.md +18 -0
  30. data/docs/GetKubeExecCreds.md +5 -3
  31. data/docs/GetPKICertificate.md +5 -3
  32. data/docs/ImporterInfo.md +20 -0
  33. data/docs/ItemGeneralInfo.md +2 -0
  34. data/docs/RequestAccess.md +3 -1
  35. data/docs/SecureRemoteAccess.md +2 -0
  36. data/docs/TargetTypeDetailsInput.md +10 -0
  37. data/docs/UidCreateChildToken.md +3 -1
  38. data/docs/UpdateAWSTarget.md +3 -1
  39. data/docs/UpdateArtifactoryTarget.md +3 -1
  40. data/docs/UpdateAzureTarget.md +3 -1
  41. data/docs/UpdateDBTarget.md +3 -1
  42. data/docs/UpdateDockerhubTarget.md +3 -1
  43. data/docs/UpdateEKSTarget.md +3 -1
  44. data/docs/UpdateEventForwarder.md +3 -1
  45. data/docs/UpdateGKETarget.md +3 -1
  46. data/docs/UpdateGcpTarget.md +3 -1
  47. data/docs/UpdateGithubTarget.md +3 -1
  48. data/docs/UpdateLdapTarget.md +3 -1
  49. data/docs/UpdateNativeK8STarget.md +3 -1
  50. data/docs/UpdatePingTarget.md +46 -0
  51. data/docs/UpdateRabbitMQTarget.md +3 -1
  52. data/docs/UpdateRole.md +3 -1
  53. data/docs/UpdateRotatedSecret.md +2 -0
  54. data/docs/UpdateSSHTarget.md +3 -1
  55. data/docs/UpdateSalesforceTarget.md +3 -1
  56. data/docs/UpdateTarget.md +3 -1
  57. data/docs/UpdateWebTarget.md +3 -1
  58. data/docs/V2Api.md +252 -0
  59. data/lib/akeyless/api/v2_api.rb +256 -0
  60. data/lib/akeyless/models/create_artifactory_target.rb +12 -2
  61. data/lib/akeyless/models/create_aws_target.rb +12 -2
  62. data/lib/akeyless/models/create_azure_target.rb +12 -2
  63. data/lib/akeyless/models/create_db_target.rb +12 -2
  64. data/lib/akeyless/models/create_dockerhub_target.rb +12 -2
  65. data/lib/akeyless/models/create_eks_target.rb +12 -2
  66. data/lib/akeyless/models/create_event_forwarder.rb +12 -2
  67. data/lib/akeyless/models/create_gcp_target.rb +12 -2
  68. data/lib/akeyless/models/create_github_target.rb +12 -2
  69. data/lib/akeyless/models/create_gke_target.rb +12 -2
  70. data/lib/akeyless/models/create_ldap_target.rb +12 -2
  71. data/lib/akeyless/models/create_native_k8_s_target.rb +12 -2
  72. data/lib/akeyless/models/create_ping_target.rb +339 -0
  73. data/lib/akeyless/models/create_ping_target_output.rb +219 -0
  74. data/lib/akeyless/models/create_rabbit_mq_target.rb +12 -2
  75. data/lib/akeyless/models/create_role.rb +12 -2
  76. data/lib/akeyless/models/create_rotated_secret.rb +13 -1
  77. data/lib/akeyless/models/create_salesforce_target.rb +12 -2
  78. data/lib/akeyless/models/create_ssh_target.rb +12 -2
  79. data/lib/akeyless/models/create_web_target.rb +12 -2
  80. data/lib/akeyless/models/ds_producer_details.rb +196 -1
  81. data/lib/akeyless/models/gateway_create_producer_eks.rb +1 -1
  82. data/lib/akeyless/models/gateway_create_producer_ping.rb +482 -0
  83. data/lib/akeyless/models/gateway_create_producer_ping_output.rb +219 -0
  84. data/lib/akeyless/models/gateway_update_producer_eks.rb +1 -1
  85. data/lib/akeyless/models/gateway_update_producer_ping.rb +492 -0
  86. data/lib/akeyless/models/gateway_update_producer_ping_output.rb +219 -0
  87. data/lib/akeyless/models/get_kube_exec_creds.rb +14 -4
  88. data/lib/akeyless/models/get_pki_certificate.rb +14 -4
  89. data/lib/akeyless/models/importer_info.rb +228 -0
  90. data/lib/akeyless/models/item_general_info.rb +10 -1
  91. data/lib/akeyless/models/request_access.rb +12 -2
  92. data/lib/akeyless/models/secure_remote_access.rb +10 -1
  93. data/lib/akeyless/models/target_type_details_input.rb +46 -1
  94. data/lib/akeyless/models/uid_create_child_token.rb +12 -2
  95. data/lib/akeyless/models/update_artifactory_target.rb +12 -2
  96. data/lib/akeyless/models/update_aws_target.rb +12 -2
  97. data/lib/akeyless/models/update_azure_target.rb +12 -2
  98. data/lib/akeyless/models/update_db_target.rb +12 -2
  99. data/lib/akeyless/models/update_dockerhub_target.rb +12 -2
  100. data/lib/akeyless/models/update_eks_target.rb +12 -2
  101. data/lib/akeyless/models/update_event_forwarder.rb +14 -2
  102. data/lib/akeyless/models/update_gcp_target.rb +12 -2
  103. data/lib/akeyless/models/update_github_target.rb +12 -2
  104. data/lib/akeyless/models/update_gke_target.rb +12 -2
  105. data/lib/akeyless/models/update_ldap_target.rb +12 -2
  106. data/lib/akeyless/models/update_native_k8_s_target.rb +12 -2
  107. data/lib/akeyless/models/update_ping_target.rb +368 -0
  108. data/lib/akeyless/models/update_rabbit_mq_target.rb +12 -2
  109. data/lib/akeyless/models/update_role.rb +14 -2
  110. data/lib/akeyless/models/update_rotated_secret.rb +13 -1
  111. data/lib/akeyless/models/update_salesforce_target.rb +12 -2
  112. data/lib/akeyless/models/update_ssh_target.rb +12 -2
  113. data/lib/akeyless/models/update_target.rb +14 -2
  114. data/lib/akeyless/models/update_web_target.rb +12 -2
  115. data/lib/akeyless/version.rb +1 -1
  116. data/lib/akeyless.rb +8 -0
  117. data/spec/models/create_ping_target_output_spec.rb +34 -0
  118. data/spec/models/create_ping_target_spec.rb +94 -0
  119. data/spec/models/gateway_create_producer_ping_output_spec.rb +34 -0
  120. data/spec/models/gateway_create_producer_ping_spec.rb +178 -0
  121. data/spec/models/gateway_update_producer_ping_output_spec.rb +34 -0
  122. data/spec/models/gateway_update_producer_ping_spec.rb +184 -0
  123. data/spec/models/importer_info_spec.rb +40 -0
  124. data/spec/models/update_ping_target_spec.rb +112 -0
  125. metadata +594 -562
@@ -0,0 +1,368 @@
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.3.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Akeyless
17
+ class UpdatePingTarget
18
+ # Ping Federate administrative port
19
+ attr_accessor :administrative_port
20
+
21
+ # Ping Federate authorization port
22
+ attr_accessor :authorization_port
23
+
24
+ # Deprecated - use description
25
+ attr_accessor :comment
26
+
27
+ # Description of the object
28
+ attr_accessor :description
29
+
30
+ # Set output format to JSON
31
+ attr_accessor :json
32
+
33
+ attr_accessor :keep_prev_version
34
+
35
+ # The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
36
+ attr_accessor :key
37
+
38
+ # Target name
39
+ attr_accessor :name
40
+
41
+ # New target name
42
+ attr_accessor :new_name
43
+
44
+ # Ping Federate privileged user password
45
+ attr_accessor :password
46
+
47
+ # Ping URL
48
+ attr_accessor :ping_url
49
+
50
+ # Ping Federate privileged user
51
+ attr_accessor :privileged_user
52
+
53
+ # Authentication token (see `/auth` and `/configure`)
54
+ attr_accessor :token
55
+
56
+ # The universal identity token, Required only for universal_identity authentication
57
+ attr_accessor :uid_token
58
+
59
+ # Deprecated
60
+ attr_accessor :update_version
61
+
62
+ # Attribute mapping from ruby-style variable name to JSON key.
63
+ def self.attribute_map
64
+ {
65
+ :'administrative_port' => :'administrative-port',
66
+ :'authorization_port' => :'authorization-port',
67
+ :'comment' => :'comment',
68
+ :'description' => :'description',
69
+ :'json' => :'json',
70
+ :'keep_prev_version' => :'keep-prev-version',
71
+ :'key' => :'key',
72
+ :'name' => :'name',
73
+ :'new_name' => :'new-name',
74
+ :'password' => :'password',
75
+ :'ping_url' => :'ping-url',
76
+ :'privileged_user' => :'privileged-user',
77
+ :'token' => :'token',
78
+ :'uid_token' => :'uid-token',
79
+ :'update_version' => :'update-version'
80
+ }
81
+ end
82
+
83
+ # Returns all the JSON keys this model knows about
84
+ def self.acceptable_attributes
85
+ attribute_map.values
86
+ end
87
+
88
+ # Attribute type mapping.
89
+ def self.openapi_types
90
+ {
91
+ :'administrative_port' => :'String',
92
+ :'authorization_port' => :'String',
93
+ :'comment' => :'String',
94
+ :'description' => :'String',
95
+ :'json' => :'Boolean',
96
+ :'keep_prev_version' => :'String',
97
+ :'key' => :'String',
98
+ :'name' => :'String',
99
+ :'new_name' => :'String',
100
+ :'password' => :'String',
101
+ :'ping_url' => :'String',
102
+ :'privileged_user' => :'String',
103
+ :'token' => :'String',
104
+ :'uid_token' => :'String',
105
+ :'update_version' => :'Boolean'
106
+ }
107
+ end
108
+
109
+ # List of attributes with nullable: true
110
+ def self.openapi_nullable
111
+ Set.new([
112
+ ])
113
+ end
114
+
115
+ # Initializes the object
116
+ # @param [Hash] attributes Model attributes in the form of hash
117
+ def initialize(attributes = {})
118
+ if (!attributes.is_a?(Hash))
119
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::UpdatePingTarget` initialize method"
120
+ end
121
+
122
+ # check to see if the attribute exists and convert string to symbol for hash key
123
+ attributes = attributes.each_with_object({}) { |(k, v), h|
124
+ if (!self.class.attribute_map.key?(k.to_sym))
125
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::UpdatePingTarget`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
126
+ end
127
+ h[k.to_sym] = v
128
+ }
129
+
130
+ if attributes.key?(:'administrative_port')
131
+ self.administrative_port = attributes[:'administrative_port']
132
+ else
133
+ self.administrative_port = '9999'
134
+ end
135
+
136
+ if attributes.key?(:'authorization_port')
137
+ self.authorization_port = attributes[:'authorization_port']
138
+ else
139
+ self.authorization_port = '9031'
140
+ end
141
+
142
+ if attributes.key?(:'comment')
143
+ self.comment = attributes[:'comment']
144
+ end
145
+
146
+ if attributes.key?(:'description')
147
+ self.description = attributes[:'description']
148
+ end
149
+
150
+ if attributes.key?(:'json')
151
+ self.json = attributes[:'json']
152
+ end
153
+
154
+ if attributes.key?(:'keep_prev_version')
155
+ self.keep_prev_version = attributes[:'keep_prev_version']
156
+ end
157
+
158
+ if attributes.key?(:'key')
159
+ self.key = attributes[:'key']
160
+ end
161
+
162
+ if attributes.key?(:'name')
163
+ self.name = attributes[:'name']
164
+ end
165
+
166
+ if attributes.key?(:'new_name')
167
+ self.new_name = attributes[:'new_name']
168
+ end
169
+
170
+ if attributes.key?(:'password')
171
+ self.password = attributes[:'password']
172
+ end
173
+
174
+ if attributes.key?(:'ping_url')
175
+ self.ping_url = attributes[:'ping_url']
176
+ end
177
+
178
+ if attributes.key?(:'privileged_user')
179
+ self.privileged_user = attributes[:'privileged_user']
180
+ end
181
+
182
+ if attributes.key?(:'token')
183
+ self.token = attributes[:'token']
184
+ end
185
+
186
+ if attributes.key?(:'uid_token')
187
+ self.uid_token = attributes[:'uid_token']
188
+ end
189
+
190
+ if attributes.key?(:'update_version')
191
+ self.update_version = attributes[:'update_version']
192
+ end
193
+ end
194
+
195
+ # Show invalid properties with the reasons. Usually used together with valid?
196
+ # @return Array for valid properties with the reasons
197
+ def list_invalid_properties
198
+ invalid_properties = Array.new
199
+ if @name.nil?
200
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
201
+ end
202
+
203
+ invalid_properties
204
+ end
205
+
206
+ # Check to see if the all the properties in the model are valid
207
+ # @return true if the model is valid
208
+ def valid?
209
+ return false if @name.nil?
210
+ true
211
+ end
212
+
213
+ # Checks equality by comparing each attribute.
214
+ # @param [Object] Object to be compared
215
+ def ==(o)
216
+ return true if self.equal?(o)
217
+ self.class == o.class &&
218
+ administrative_port == o.administrative_port &&
219
+ authorization_port == o.authorization_port &&
220
+ comment == o.comment &&
221
+ description == o.description &&
222
+ json == o.json &&
223
+ keep_prev_version == o.keep_prev_version &&
224
+ key == o.key &&
225
+ name == o.name &&
226
+ new_name == o.new_name &&
227
+ password == o.password &&
228
+ ping_url == o.ping_url &&
229
+ privileged_user == o.privileged_user &&
230
+ token == o.token &&
231
+ uid_token == o.uid_token &&
232
+ update_version == o.update_version
233
+ end
234
+
235
+ # @see the `==` method
236
+ # @param [Object] Object to be compared
237
+ def eql?(o)
238
+ self == o
239
+ end
240
+
241
+ # Calculates hash code according to all attributes.
242
+ # @return [Integer] Hash code
243
+ def hash
244
+ [administrative_port, authorization_port, comment, description, json, keep_prev_version, key, name, new_name, password, ping_url, privileged_user, token, uid_token, update_version].hash
245
+ end
246
+
247
+ # Builds the object from hash
248
+ # @param [Hash] attributes Model attributes in the form of hash
249
+ # @return [Object] Returns the model itself
250
+ def self.build_from_hash(attributes)
251
+ new.build_from_hash(attributes)
252
+ end
253
+
254
+ # Builds the object from hash
255
+ # @param [Hash] attributes Model attributes in the form of hash
256
+ # @return [Object] Returns the model itself
257
+ def build_from_hash(attributes)
258
+ return nil unless attributes.is_a?(Hash)
259
+ attributes = attributes.transform_keys(&:to_sym)
260
+ self.class.openapi_types.each_pair do |key, type|
261
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
262
+ self.send("#{key}=", nil)
263
+ elsif type =~ /\AArray<(.*)>/i
264
+ # check to ensure the input is an array given that the attribute
265
+ # is documented as an array but the input is not
266
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
267
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
268
+ end
269
+ elsif !attributes[self.class.attribute_map[key]].nil?
270
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
271
+ end
272
+ end
273
+
274
+ self
275
+ end
276
+
277
+ # Deserializes the data based on type
278
+ # @param string type Data type
279
+ # @param string value Value to be deserialized
280
+ # @return [Object] Deserialized data
281
+ def _deserialize(type, value)
282
+ case type.to_sym
283
+ when :Time
284
+ Time.parse(value)
285
+ when :Date
286
+ Date.parse(value)
287
+ when :String
288
+ value.to_s
289
+ when :Integer
290
+ value.to_i
291
+ when :Float
292
+ value.to_f
293
+ when :Boolean
294
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
295
+ true
296
+ else
297
+ false
298
+ end
299
+ when :Object
300
+ # generic object (usually a Hash), return directly
301
+ value
302
+ when /\AArray<(?<inner_type>.+)>\z/
303
+ inner_type = Regexp.last_match[:inner_type]
304
+ value.map { |v| _deserialize(inner_type, v) }
305
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
306
+ k_type = Regexp.last_match[:k_type]
307
+ v_type = Regexp.last_match[:v_type]
308
+ {}.tap do |hash|
309
+ value.each do |k, v|
310
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
311
+ end
312
+ end
313
+ else # model
314
+ # models (e.g. Pet) or oneOf
315
+ klass = Akeyless.const_get(type)
316
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
317
+ end
318
+ end
319
+
320
+ # Returns the string representation of the object
321
+ # @return [String] String presentation of the object
322
+ def to_s
323
+ to_hash.to_s
324
+ end
325
+
326
+ # to_body is an alias to to_hash (backward compatibility)
327
+ # @return [Hash] Returns the object in the form of hash
328
+ def to_body
329
+ to_hash
330
+ end
331
+
332
+ # Returns the object in the form of hash
333
+ # @return [Hash] Returns the object in the form of hash
334
+ def to_hash
335
+ hash = {}
336
+ self.class.attribute_map.each_pair do |attr, param|
337
+ value = self.send(attr)
338
+ if value.nil?
339
+ is_nullable = self.class.openapi_nullable.include?(attr)
340
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
341
+ end
342
+
343
+ hash[param] = _to_hash(value)
344
+ end
345
+ hash
346
+ end
347
+
348
+ # Outputs non-array value in the form of hash
349
+ # For object, use to_hash. Otherwise, just return the value
350
+ # @param [Object] value Any valid value
351
+ # @return [Hash] Returns the value in the form of hash
352
+ def _to_hash(value)
353
+ if value.is_a?(Array)
354
+ value.compact.map { |v| _to_hash(v) }
355
+ elsif value.is_a?(Hash)
356
+ {}.tap do |hash|
357
+ value.each { |k, v| hash[k] = _to_hash(v) }
358
+ end
359
+ elsif value.respond_to? :to_hash
360
+ value.to_hash
361
+ else
362
+ value
363
+ end
364
+ end
365
+
366
+ end
367
+
368
+ end
@@ -15,9 +15,12 @@ require 'time'
15
15
 
16
16
  module Akeyless
17
17
  class UpdateRabbitMQTarget
18
- # Comment about the target
18
+ # Deprecated - use description
19
19
  attr_accessor :comment
20
20
 
21
+ # Description of the object
22
+ attr_accessor :description
23
+
21
24
  # Set output format to JSON
22
25
  attr_accessor :json
23
26
 
@@ -51,6 +54,7 @@ module Akeyless
51
54
  def self.attribute_map
52
55
  {
53
56
  :'comment' => :'comment',
57
+ :'description' => :'description',
54
58
  :'json' => :'json',
55
59
  :'keep_prev_version' => :'keep-prev-version',
56
60
  :'key' => :'key',
@@ -74,6 +78,7 @@ module Akeyless
74
78
  def self.openapi_types
75
79
  {
76
80
  :'comment' => :'String',
81
+ :'description' => :'String',
77
82
  :'json' => :'Boolean',
78
83
  :'keep_prev_version' => :'String',
79
84
  :'key' => :'String',
@@ -113,6 +118,10 @@ module Akeyless
113
118
  self.comment = attributes[:'comment']
114
119
  end
115
120
 
121
+ if attributes.key?(:'description')
122
+ self.description = attributes[:'description']
123
+ end
124
+
116
125
  if attributes.key?(:'json')
117
126
  self.json = attributes[:'json']
118
127
  end
@@ -182,6 +191,7 @@ module Akeyless
182
191
  return true if self.equal?(o)
183
192
  self.class == o.class &&
184
193
  comment == o.comment &&
194
+ description == o.description &&
185
195
  json == o.json &&
186
196
  keep_prev_version == o.keep_prev_version &&
187
197
  key == o.key &&
@@ -204,7 +214,7 @@ module Akeyless
204
214
  # Calculates hash code according to all attributes.
205
215
  # @return [Integer] Hash code
206
216
  def hash
207
- [comment, json, keep_prev_version, key, name, new_name, rabbitmq_server_password, rabbitmq_server_uri, rabbitmq_server_user, token, uid_token, update_version].hash
217
+ [comment, description, json, keep_prev_version, key, name, new_name, rabbitmq_server_password, rabbitmq_server_uri, rabbitmq_server_user, token, uid_token, update_version].hash
208
218
  end
209
219
 
210
220
  # Builds the object from hash
@@ -21,6 +21,9 @@ module Akeyless
21
21
  # Allow this role to view audit logs. Currently only 'none', 'own' and 'all' values are supported, allowing associated auth methods to view audit logs produced by the same auth methods.
22
22
  attr_accessor :audit_access
23
23
 
24
+ # Description of the object
25
+ attr_accessor :description
26
+
24
27
  # Allow this role to view gw analytics. Currently only 'none', 'own', 'all' values are supported, allowing associated auth methods to view reports produced by the same auth methods.
25
28
  attr_accessor :gw_analytics_access
26
29
 
@@ -30,7 +33,7 @@ module Akeyless
30
33
  # Role name
31
34
  attr_accessor :name
32
35
 
33
- # New comment about the role
36
+ # Deprecated - use description
34
37
  attr_accessor :new_comment
35
38
 
36
39
  # New Role name
@@ -50,6 +53,7 @@ module Akeyless
50
53
  {
51
54
  :'analytics_access' => :'analytics-access',
52
55
  :'audit_access' => :'audit-access',
56
+ :'description' => :'description',
53
57
  :'gw_analytics_access' => :'gw-analytics-access',
54
58
  :'json' => :'json',
55
59
  :'name' => :'name',
@@ -71,6 +75,7 @@ module Akeyless
71
75
  {
72
76
  :'analytics_access' => :'String',
73
77
  :'audit_access' => :'String',
78
+ :'description' => :'String',
74
79
  :'gw_analytics_access' => :'String',
75
80
  :'json' => :'Boolean',
76
81
  :'name' => :'String',
@@ -111,6 +116,12 @@ module Akeyless
111
116
  self.audit_access = attributes[:'audit_access']
112
117
  end
113
118
 
119
+ if attributes.key?(:'description')
120
+ self.description = attributes[:'description']
121
+ else
122
+ self.description = 'default_comment'
123
+ end
124
+
114
125
  if attributes.key?(:'gw_analytics_access')
115
126
  self.gw_analytics_access = attributes[:'gw_analytics_access']
116
127
  end
@@ -171,6 +182,7 @@ module Akeyless
171
182
  self.class == o.class &&
172
183
  analytics_access == o.analytics_access &&
173
184
  audit_access == o.audit_access &&
185
+ description == o.description &&
174
186
  gw_analytics_access == o.gw_analytics_access &&
175
187
  json == o.json &&
176
188
  name == o.name &&
@@ -190,7 +202,7 @@ module Akeyless
190
202
  # Calculates hash code according to all attributes.
191
203
  # @return [Integer] Hash code
192
204
  def hash
193
- [analytics_access, audit_access, gw_analytics_access, json, name, new_comment, new_name, sra_reports_access, token, uid_token].hash
205
+ [analytics_access, audit_access, description, gw_analytics_access, json, name, new_comment, new_name, sra_reports_access, token, uid_token].hash
194
206
  end
195
207
 
196
208
  # Builds the object from hash
@@ -60,6 +60,9 @@ module Akeyless
60
60
  # List of the existent tags that will be removed from this item
61
61
  attr_accessor :rm_tag
62
62
 
63
+ # Rotate the value of the secret after SRA session ends
64
+ attr_accessor :rotate_after_disconnect
65
+
63
66
  attr_accessor :rotated_password
64
67
 
65
68
  attr_accessor :rotated_username
@@ -146,6 +149,7 @@ module Akeyless
146
149
  :'new_name' => :'new-name',
147
150
  :'new_version' => :'new-version',
148
151
  :'rm_tag' => :'rm-tag',
152
+ :'rotate_after_disconnect' => :'rotate-after-disconnect',
149
153
  :'rotated_password' => :'rotated-password',
150
154
  :'rotated_username' => :'rotated-username',
151
155
  :'rotation_hour' => :'rotation-hour',
@@ -197,6 +201,7 @@ module Akeyless
197
201
  :'new_name' => :'String',
198
202
  :'new_version' => :'Boolean',
199
203
  :'rm_tag' => :'Array<String>',
204
+ :'rotate_after_disconnect' => :'String',
200
205
  :'rotated_password' => :'String',
201
206
  :'rotated_username' => :'String',
202
207
  :'rotation_hour' => :'Integer',
@@ -319,6 +324,12 @@ module Akeyless
319
324
  end
320
325
  end
321
326
 
327
+ if attributes.key?(:'rotate_after_disconnect')
328
+ self.rotate_after_disconnect = attributes[:'rotate_after_disconnect']
329
+ else
330
+ self.rotate_after_disconnect = 'false'
331
+ end
332
+
322
333
  if attributes.key?(:'rotated_password')
323
334
  self.rotated_password = attributes[:'rotated_password']
324
335
  end
@@ -465,6 +476,7 @@ module Akeyless
465
476
  new_name == o.new_name &&
466
477
  new_version == o.new_version &&
467
478
  rm_tag == o.rm_tag &&
479
+ rotate_after_disconnect == o.rotate_after_disconnect &&
468
480
  rotated_password == o.rotated_password &&
469
481
  rotated_username == o.rotated_username &&
470
482
  rotation_hour == o.rotation_hour &&
@@ -500,7 +512,7 @@ module Akeyless
500
512
  # Calculates hash code according to all attributes.
501
513
  # @return [Integer] Hash code
502
514
  def hash
503
- [add_tag, api_id, api_key, auto_rotate, aws_region, custom_payload, description, gcp_key, json, keep_prev_version, key, name, new_metadata, new_name, new_version, rm_tag, rotated_password, rotated_username, rotation_hour, rotation_interval, rotator_creds_type, rotator_custom_cmd, secure_access_allow_external_user, secure_access_aws_account_id, secure_access_aws_native_cli, secure_access_bastion_issuer, secure_access_db_name, secure_access_db_schema, secure_access_enable, secure_access_host, secure_access_rdp_domain, secure_access_rdp_user, secure_access_web, secure_access_web_browsing, secure_access_web_proxy, ssh_password, ssh_username, storage_account_key_name, token, uid_token].hash
515
+ [add_tag, api_id, api_key, auto_rotate, aws_region, custom_payload, description, gcp_key, json, keep_prev_version, key, name, new_metadata, new_name, new_version, rm_tag, rotate_after_disconnect, rotated_password, rotated_username, rotation_hour, rotation_interval, rotator_creds_type, rotator_custom_cmd, secure_access_allow_external_user, secure_access_aws_account_id, secure_access_aws_native_cli, secure_access_bastion_issuer, secure_access_db_name, secure_access_db_schema, secure_access_enable, secure_access_host, secure_access_rdp_domain, secure_access_rdp_user, secure_access_web, secure_access_web_browsing, secure_access_web_proxy, ssh_password, ssh_username, storage_account_key_name, token, uid_token].hash
504
516
  end
505
517
 
506
518
  # Builds the object from hash
@@ -33,9 +33,12 @@ module Akeyless
33
33
  # Client secret of the oauth2 app to use for connecting to Salesforce (required for password flow)
34
34
  attr_accessor :client_secret
35
35
 
36
- # Comment about the target
36
+ # Deprecated - use description
37
37
  attr_accessor :comment
38
38
 
39
+ # Description of the object
40
+ attr_accessor :description
41
+
39
42
  # The email of the user attached to the oauth2 app used for connecting to Salesforce
40
43
  attr_accessor :email
41
44
 
@@ -81,6 +84,7 @@ module Akeyless
81
84
  :'client_id' => :'client-id',
82
85
  :'client_secret' => :'client-secret',
83
86
  :'comment' => :'comment',
87
+ :'description' => :'description',
84
88
  :'email' => :'email',
85
89
  :'json' => :'json',
86
90
  :'keep_prev_version' => :'keep-prev-version',
@@ -111,6 +115,7 @@ module Akeyless
111
115
  :'client_id' => :'String',
112
116
  :'client_secret' => :'String',
113
117
  :'comment' => :'String',
118
+ :'description' => :'String',
114
119
  :'email' => :'String',
115
120
  :'json' => :'Boolean',
116
121
  :'keep_prev_version' => :'String',
@@ -175,6 +180,10 @@ module Akeyless
175
180
  self.comment = attributes[:'comment']
176
181
  end
177
182
 
183
+ if attributes.key?(:'description')
184
+ self.description = attributes[:'description']
185
+ end
186
+
178
187
  if attributes.key?(:'email')
179
188
  self.email = attributes[:'email']
180
189
  end
@@ -274,6 +283,7 @@ module Akeyless
274
283
  client_id == o.client_id &&
275
284
  client_secret == o.client_secret &&
276
285
  comment == o.comment &&
286
+ description == o.description &&
277
287
  email == o.email &&
278
288
  json == o.json &&
279
289
  keep_prev_version == o.keep_prev_version &&
@@ -297,7 +307,7 @@ module Akeyless
297
307
  # Calculates hash code according to all attributes.
298
308
  # @return [Integer] Hash code
299
309
  def hash
300
- [app_private_key_data, auth_flow, ca_cert_data, ca_cert_name, client_id, client_secret, comment, email, json, keep_prev_version, key, name, new_name, password, security_token, tenant_url, token, uid_token, update_version].hash
310
+ [app_private_key_data, auth_flow, ca_cert_data, ca_cert_name, client_id, client_secret, comment, description, email, json, keep_prev_version, key, name, new_name, password, security_token, tenant_url, token, uid_token, update_version].hash
301
311
  end
302
312
 
303
313
  # Builds the object from hash
@@ -15,9 +15,12 @@ require 'time'
15
15
 
16
16
  module Akeyless
17
17
  class UpdateSSHTarget
18
- # Comment about the target
18
+ # Deprecated - use description
19
19
  attr_accessor :comment
20
20
 
21
+ # Description of the object
22
+ attr_accessor :description
23
+
21
24
  attr_accessor :host
22
25
 
23
26
  # Set output format to JSON
@@ -57,6 +60,7 @@ module Akeyless
57
60
  def self.attribute_map
58
61
  {
59
62
  :'comment' => :'comment',
63
+ :'description' => :'description',
60
64
  :'host' => :'host',
61
65
  :'json' => :'json',
62
66
  :'keep_prev_version' => :'keep-prev-version',
@@ -83,6 +87,7 @@ module Akeyless
83
87
  def self.openapi_types
84
88
  {
85
89
  :'comment' => :'String',
90
+ :'description' => :'String',
86
91
  :'host' => :'String',
87
92
  :'json' => :'Boolean',
88
93
  :'keep_prev_version' => :'String',
@@ -125,6 +130,10 @@ module Akeyless
125
130
  self.comment = attributes[:'comment']
126
131
  end
127
132
 
133
+ if attributes.key?(:'description')
134
+ self.description = attributes[:'description']
135
+ end
136
+
128
137
  if attributes.key?(:'host')
129
138
  self.host = attributes[:'host']
130
139
  end
@@ -206,6 +215,7 @@ module Akeyless
206
215
  return true if self.equal?(o)
207
216
  self.class == o.class &&
208
217
  comment == o.comment &&
218
+ description == o.description &&
209
219
  host == o.host &&
210
220
  json == o.json &&
211
221
  keep_prev_version == o.keep_prev_version &&
@@ -231,7 +241,7 @@ module Akeyless
231
241
  # Calculates hash code according to all attributes.
232
242
  # @return [Integer] Hash code
233
243
  def hash
234
- [comment, host, json, keep_prev_version, key, name, new_name, port, private_key, private_key_password, ssh_password, ssh_username, token, uid_token, update_version].hash
244
+ [comment, description, host, json, keep_prev_version, key, name, new_name, port, private_key, private_key_password, ssh_password, ssh_username, token, uid_token, update_version].hash
235
245
  end
236
246
 
237
247
  # Builds the object from hash