akeyless 3.2.0 → 3.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -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 +3 -1
  16. data/docs/CreateRabbitMQTarget.md +3 -1
  17. data/docs/CreateRole.md +3 -1
  18. data/docs/CreateSSHTarget.md +3 -1
  19. data/docs/CreateSalesforceTarget.md +3 -1
  20. data/docs/CreateWebTarget.md +3 -1
  21. data/docs/GatewayCreateProducerEks.md +1 -1
  22. data/docs/GatewayUpdateProducerEks.md +1 -1
  23. data/docs/ImporterInfo.md +20 -0
  24. data/docs/ItemGeneralInfo.md +2 -0
  25. data/docs/RequestAccess.md +3 -1
  26. data/docs/UidCreateChildToken.md +3 -1
  27. data/docs/UpdateAWSTarget.md +3 -1
  28. data/docs/UpdateArtifactoryTarget.md +3 -1
  29. data/docs/UpdateAzureTarget.md +3 -1
  30. data/docs/UpdateDBTarget.md +3 -1
  31. data/docs/UpdateDockerhubTarget.md +3 -1
  32. data/docs/UpdateEKSTarget.md +3 -1
  33. data/docs/UpdateEventForwarder.md +3 -1
  34. data/docs/UpdateGKETarget.md +3 -1
  35. data/docs/UpdateGcpTarget.md +3 -1
  36. data/docs/UpdateGithubTarget.md +3 -1
  37. data/docs/UpdateLdapTarget.md +3 -1
  38. data/docs/UpdateNativeK8STarget.md +3 -1
  39. data/docs/UpdatePingTarget.md +3 -1
  40. data/docs/UpdateRabbitMQTarget.md +3 -1
  41. data/docs/UpdateRole.md +3 -1
  42. data/docs/UpdateSSHTarget.md +3 -1
  43. data/docs/UpdateSalesforceTarget.md +3 -1
  44. data/docs/UpdateTarget.md +3 -1
  45. data/docs/UpdateWebTarget.md +3 -1
  46. data/lib/akeyless/models/create_artifactory_target.rb +12 -2
  47. data/lib/akeyless/models/create_aws_target.rb +12 -2
  48. data/lib/akeyless/models/create_azure_target.rb +12 -2
  49. data/lib/akeyless/models/create_db_target.rb +12 -2
  50. data/lib/akeyless/models/create_dockerhub_target.rb +12 -2
  51. data/lib/akeyless/models/create_eks_target.rb +12 -2
  52. data/lib/akeyless/models/create_event_forwarder.rb +12 -2
  53. data/lib/akeyless/models/create_gcp_target.rb +12 -2
  54. data/lib/akeyless/models/create_github_target.rb +12 -2
  55. data/lib/akeyless/models/create_gke_target.rb +12 -2
  56. data/lib/akeyless/models/create_ldap_target.rb +12 -2
  57. data/lib/akeyless/models/create_native_k8_s_target.rb +12 -2
  58. data/lib/akeyless/models/create_ping_target.rb +12 -2
  59. data/lib/akeyless/models/create_rabbit_mq_target.rb +12 -2
  60. data/lib/akeyless/models/create_role.rb +12 -2
  61. data/lib/akeyless/models/create_salesforce_target.rb +12 -2
  62. data/lib/akeyless/models/create_ssh_target.rb +12 -2
  63. data/lib/akeyless/models/create_web_target.rb +12 -2
  64. data/lib/akeyless/models/gateway_create_producer_eks.rb +1 -1
  65. data/lib/akeyless/models/gateway_update_producer_eks.rb +1 -1
  66. data/lib/akeyless/models/importer_info.rb +228 -0
  67. data/lib/akeyless/models/item_general_info.rb +10 -1
  68. data/lib/akeyless/models/request_access.rb +12 -2
  69. data/lib/akeyless/models/uid_create_child_token.rb +12 -2
  70. data/lib/akeyless/models/update_artifactory_target.rb +12 -2
  71. data/lib/akeyless/models/update_aws_target.rb +12 -2
  72. data/lib/akeyless/models/update_azure_target.rb +12 -2
  73. data/lib/akeyless/models/update_db_target.rb +12 -2
  74. data/lib/akeyless/models/update_dockerhub_target.rb +12 -2
  75. data/lib/akeyless/models/update_eks_target.rb +12 -2
  76. data/lib/akeyless/models/update_event_forwarder.rb +14 -2
  77. data/lib/akeyless/models/update_gcp_target.rb +12 -2
  78. data/lib/akeyless/models/update_github_target.rb +12 -2
  79. data/lib/akeyless/models/update_gke_target.rb +12 -2
  80. data/lib/akeyless/models/update_ldap_target.rb +12 -2
  81. data/lib/akeyless/models/update_native_k8_s_target.rb +12 -2
  82. data/lib/akeyless/models/update_ping_target.rb +12 -2
  83. data/lib/akeyless/models/update_rabbit_mq_target.rb +12 -2
  84. data/lib/akeyless/models/update_role.rb +14 -2
  85. data/lib/akeyless/models/update_salesforce_target.rb +12 -2
  86. data/lib/akeyless/models/update_ssh_target.rb +12 -2
  87. data/lib/akeyless/models/update_target.rb +14 -2
  88. data/lib/akeyless/models/update_web_target.rb +12 -2
  89. data/lib/akeyless/version.rb +1 -1
  90. data/lib/akeyless.rb +1 -0
  91. data/spec/models/importer_info_spec.rb +40 -0
  92. metadata +6 -2
@@ -0,0 +1,228 @@
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 ImporterInfo
18
+ attr_accessor :external_item_id
19
+
20
+ attr_accessor :version
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'external_item_id' => :'external_item_id',
26
+ :'version' => :'version'
27
+ }
28
+ end
29
+
30
+ # Returns all the JSON keys this model knows about
31
+ def self.acceptable_attributes
32
+ attribute_map.values
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ def self.openapi_types
37
+ {
38
+ :'external_item_id' => :'String',
39
+ :'version' => :'Integer'
40
+ }
41
+ end
42
+
43
+ # List of attributes with nullable: true
44
+ def self.openapi_nullable
45
+ Set.new([
46
+ ])
47
+ end
48
+
49
+ # Initializes the object
50
+ # @param [Hash] attributes Model attributes in the form of hash
51
+ def initialize(attributes = {})
52
+ if (!attributes.is_a?(Hash))
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::ImporterInfo` initialize method"
54
+ end
55
+
56
+ # check to see if the attribute exists and convert string to symbol for hash key
57
+ attributes = attributes.each_with_object({}) { |(k, v), h|
58
+ if (!self.class.attribute_map.key?(k.to_sym))
59
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::ImporterInfo`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
+ end
61
+ h[k.to_sym] = v
62
+ }
63
+
64
+ if attributes.key?(:'external_item_id')
65
+ self.external_item_id = attributes[:'external_item_id']
66
+ end
67
+
68
+ if attributes.key?(:'version')
69
+ self.version = attributes[:'version']
70
+ end
71
+ end
72
+
73
+ # Show invalid properties with the reasons. Usually used together with valid?
74
+ # @return Array for valid properties with the reasons
75
+ def list_invalid_properties
76
+ invalid_properties = Array.new
77
+ invalid_properties
78
+ end
79
+
80
+ # Check to see if the all the properties in the model are valid
81
+ # @return true if the model is valid
82
+ def valid?
83
+ true
84
+ end
85
+
86
+ # Checks equality by comparing each attribute.
87
+ # @param [Object] Object to be compared
88
+ def ==(o)
89
+ return true if self.equal?(o)
90
+ self.class == o.class &&
91
+ external_item_id == o.external_item_id &&
92
+ version == o.version
93
+ end
94
+
95
+ # @see the `==` method
96
+ # @param [Object] Object to be compared
97
+ def eql?(o)
98
+ self == o
99
+ end
100
+
101
+ # Calculates hash code according to all attributes.
102
+ # @return [Integer] Hash code
103
+ def hash
104
+ [external_item_id, version].hash
105
+ end
106
+
107
+ # Builds the object from hash
108
+ # @param [Hash] attributes Model attributes in the form of hash
109
+ # @return [Object] Returns the model itself
110
+ def self.build_from_hash(attributes)
111
+ new.build_from_hash(attributes)
112
+ end
113
+
114
+ # Builds the object from hash
115
+ # @param [Hash] attributes Model attributes in the form of hash
116
+ # @return [Object] Returns the model itself
117
+ def build_from_hash(attributes)
118
+ return nil unless attributes.is_a?(Hash)
119
+ attributes = attributes.transform_keys(&:to_sym)
120
+ self.class.openapi_types.each_pair do |key, type|
121
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
122
+ self.send("#{key}=", nil)
123
+ elsif type =~ /\AArray<(.*)>/i
124
+ # check to ensure the input is an array given that the attribute
125
+ # is documented as an array but the input is not
126
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
127
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
128
+ end
129
+ elsif !attributes[self.class.attribute_map[key]].nil?
130
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
131
+ end
132
+ end
133
+
134
+ self
135
+ end
136
+
137
+ # Deserializes the data based on type
138
+ # @param string type Data type
139
+ # @param string value Value to be deserialized
140
+ # @return [Object] Deserialized data
141
+ def _deserialize(type, value)
142
+ case type.to_sym
143
+ when :Time
144
+ Time.parse(value)
145
+ when :Date
146
+ Date.parse(value)
147
+ when :String
148
+ value.to_s
149
+ when :Integer
150
+ value.to_i
151
+ when :Float
152
+ value.to_f
153
+ when :Boolean
154
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
155
+ true
156
+ else
157
+ false
158
+ end
159
+ when :Object
160
+ # generic object (usually a Hash), return directly
161
+ value
162
+ when /\AArray<(?<inner_type>.+)>\z/
163
+ inner_type = Regexp.last_match[:inner_type]
164
+ value.map { |v| _deserialize(inner_type, v) }
165
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
166
+ k_type = Regexp.last_match[:k_type]
167
+ v_type = Regexp.last_match[:v_type]
168
+ {}.tap do |hash|
169
+ value.each do |k, v|
170
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
171
+ end
172
+ end
173
+ else # model
174
+ # models (e.g. Pet) or oneOf
175
+ klass = Akeyless.const_get(type)
176
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
177
+ end
178
+ end
179
+
180
+ # Returns the string representation of the object
181
+ # @return [String] String presentation of the object
182
+ def to_s
183
+ to_hash.to_s
184
+ end
185
+
186
+ # to_body is an alias to to_hash (backward compatibility)
187
+ # @return [Hash] Returns the object in the form of hash
188
+ def to_body
189
+ to_hash
190
+ end
191
+
192
+ # Returns the object in the form of hash
193
+ # @return [Hash] Returns the object in the form of hash
194
+ def to_hash
195
+ hash = {}
196
+ self.class.attribute_map.each_pair do |attr, param|
197
+ value = self.send(attr)
198
+ if value.nil?
199
+ is_nullable = self.class.openapi_nullable.include?(attr)
200
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
201
+ end
202
+
203
+ hash[param] = _to_hash(value)
204
+ end
205
+ hash
206
+ end
207
+
208
+ # Outputs non-array value in the form of hash
209
+ # For object, use to_hash. Otherwise, just return the value
210
+ # @param [Object] value Any valid value
211
+ # @return [Hash] Returns the value in the form of hash
212
+ def _to_hash(value)
213
+ if value.is_a?(Array)
214
+ value.compact.map { |v| _to_hash(v) }
215
+ elsif value.is_a?(Hash)
216
+ {}.tap do |hash|
217
+ value.each { |k, v| hash[k] = _to_hash(v) }
218
+ end
219
+ elsif value.respond_to? :to_hash
220
+ value.to_hash
221
+ else
222
+ value
223
+ end
224
+ end
225
+
226
+ end
227
+
228
+ end
@@ -27,6 +27,8 @@ module Akeyless
27
27
 
28
28
  attr_accessor :dynamic_secret_producer_details
29
29
 
30
+ attr_accessor :importer_info
31
+
30
32
  attr_accessor :password_policy
31
33
 
32
34
  attr_accessor :rotated_secret_details
@@ -46,6 +48,7 @@ module Akeyless
46
48
  :'cluster_gw_url' => :'cluster_gw_url',
47
49
  :'display_metadata' => :'display_metadata',
48
50
  :'dynamic_secret_producer_details' => :'dynamic_secret_producer_details',
51
+ :'importer_info' => :'importer_info',
49
52
  :'password_policy' => :'password_policy',
50
53
  :'rotated_secret_details' => :'rotated_secret_details',
51
54
  :'secure_remote_access_details' => :'secure_remote_access_details',
@@ -68,6 +71,7 @@ module Akeyless
68
71
  :'cluster_gw_url' => :'String',
69
72
  :'display_metadata' => :'String',
70
73
  :'dynamic_secret_producer_details' => :'DynamicSecretProducerInfo',
74
+ :'importer_info' => :'ImporterInfo',
71
75
  :'password_policy' => :'PasswordPolicyInfo',
72
76
  :'rotated_secret_details' => :'RotatedSecretDetailsInfo',
73
77
  :'secure_remote_access_details' => :'SecureRemoteAccess',
@@ -121,6 +125,10 @@ module Akeyless
121
125
  self.dynamic_secret_producer_details = attributes[:'dynamic_secret_producer_details']
122
126
  end
123
127
 
128
+ if attributes.key?(:'importer_info')
129
+ self.importer_info = attributes[:'importer_info']
130
+ end
131
+
124
132
  if attributes.key?(:'password_policy')
125
133
  self.password_policy = attributes[:'password_policy']
126
134
  end
@@ -166,6 +174,7 @@ module Akeyless
166
174
  cluster_gw_url == o.cluster_gw_url &&
167
175
  display_metadata == o.display_metadata &&
168
176
  dynamic_secret_producer_details == o.dynamic_secret_producer_details &&
177
+ importer_info == o.importer_info &&
169
178
  password_policy == o.password_policy &&
170
179
  rotated_secret_details == o.rotated_secret_details &&
171
180
  secure_remote_access_details == o.secure_remote_access_details &&
@@ -182,7 +191,7 @@ module Akeyless
182
191
  # Calculates hash code according to all attributes.
183
192
  # @return [Integer] Hash code
184
193
  def hash
185
- [cert_issue_details, certificate_chain_info, classic_key_details, cluster_gw_url, display_metadata, dynamic_secret_producer_details, password_policy, rotated_secret_details, secure_remote_access_details, static_secret_info, tokenizer_info].hash
194
+ [cert_issue_details, certificate_chain_info, classic_key_details, cluster_gw_url, display_metadata, dynamic_secret_producer_details, importer_info, password_policy, rotated_secret_details, secure_remote_access_details, static_secret_info, tokenizer_info].hash
186
195
  end
187
196
 
188
197
  # Builds the object from hash
@@ -18,9 +18,12 @@ module Akeyless
18
18
  # List of the required capabilities options: [read, update, delete]
19
19
  attr_accessor :capability
20
20
 
21
- # Comment about this request
21
+ # Deprecated - use description
22
22
  attr_accessor :comment
23
23
 
24
+ # Description of the object
25
+ attr_accessor :description
26
+
24
27
  # Set output format to JSON
25
28
  attr_accessor :json
26
29
 
@@ -38,6 +41,7 @@ module Akeyless
38
41
  {
39
42
  :'capability' => :'capability',
40
43
  :'comment' => :'comment',
44
+ :'description' => :'description',
41
45
  :'json' => :'json',
42
46
  :'name' => :'name',
43
47
  :'token' => :'token',
@@ -55,6 +59,7 @@ module Akeyless
55
59
  {
56
60
  :'capability' => :'Array<String>',
57
61
  :'comment' => :'String',
62
+ :'description' => :'String',
58
63
  :'json' => :'Boolean',
59
64
  :'name' => :'String',
60
65
  :'token' => :'String',
@@ -93,6 +98,10 @@ module Akeyless
93
98
  self.comment = attributes[:'comment']
94
99
  end
95
100
 
101
+ if attributes.key?(:'description')
102
+ self.description = attributes[:'description']
103
+ end
104
+
96
105
  if attributes.key?(:'json')
97
106
  self.json = attributes[:'json']
98
107
  end
@@ -140,6 +149,7 @@ module Akeyless
140
149
  self.class == o.class &&
141
150
  capability == o.capability &&
142
151
  comment == o.comment &&
152
+ description == o.description &&
143
153
  json == o.json &&
144
154
  name == o.name &&
145
155
  token == o.token &&
@@ -155,7 +165,7 @@ module Akeyless
155
165
  # Calculates hash code according to all attributes.
156
166
  # @return [Integer] Hash code
157
167
  def hash
158
- [capability, comment, json, name, token, uid_token].hash
168
+ [capability, comment, description, json, name, token, uid_token].hash
159
169
  end
160
170
 
161
171
  # Builds the object from hash
@@ -28,9 +28,12 @@ module Akeyless
28
28
  # New child token ttl
29
29
  attr_accessor :child_ttl
30
30
 
31
- # New Token comment
31
+ # Deprecated - use description
32
32
  attr_accessor :comment
33
33
 
34
+ # Description of the object
35
+ attr_accessor :description
36
+
34
37
  # Set output format to JSON
35
38
  attr_accessor :json
36
39
 
@@ -51,6 +54,7 @@ module Akeyless
51
54
  :'child_deny_rotate' => :'child-deny-rotate',
52
55
  :'child_ttl' => :'child-ttl',
53
56
  :'comment' => :'comment',
57
+ :'description' => :'description',
54
58
  :'json' => :'json',
55
59
  :'token' => :'token',
56
60
  :'uid_token' => :'uid-token',
@@ -71,6 +75,7 @@ module Akeyless
71
75
  :'child_deny_rotate' => :'Boolean',
72
76
  :'child_ttl' => :'Integer',
73
77
  :'comment' => :'String',
78
+ :'description' => :'String',
74
79
  :'json' => :'Boolean',
75
80
  :'token' => :'String',
76
81
  :'uid_token' => :'String',
@@ -119,6 +124,10 @@ module Akeyless
119
124
  self.comment = attributes[:'comment']
120
125
  end
121
126
 
127
+ if attributes.key?(:'description')
128
+ self.description = attributes[:'description']
129
+ end
130
+
122
131
  if attributes.key?(:'json')
123
132
  self.json = attributes[:'json']
124
133
  end
@@ -159,6 +168,7 @@ module Akeyless
159
168
  child_deny_rotate == o.child_deny_rotate &&
160
169
  child_ttl == o.child_ttl &&
161
170
  comment == o.comment &&
171
+ description == o.description &&
162
172
  json == o.json &&
163
173
  token == o.token &&
164
174
  uid_token == o.uid_token &&
@@ -174,7 +184,7 @@ module Akeyless
174
184
  # Calculates hash code according to all attributes.
175
185
  # @return [Integer] Hash code
176
186
  def hash
177
- [auth_method_name, child_deny_inheritance, child_deny_rotate, child_ttl, comment, json, token, uid_token, uid_token_id].hash
187
+ [auth_method_name, child_deny_inheritance, child_deny_rotate, child_ttl, comment, description, json, token, uid_token, uid_token_id].hash
178
188
  end
179
189
 
180
190
  # Builds the object from hash
@@ -24,9 +24,12 @@ module Akeyless
24
24
  # Base URL
25
25
  attr_accessor :base_url
26
26
 
27
- # Comment about the target
27
+ # Deprecated - use description
28
28
  attr_accessor :comment
29
29
 
30
+ # Description of the object
31
+ attr_accessor :description
32
+
30
33
  # Set output format to JSON
31
34
  attr_accessor :json
32
35
 
@@ -57,6 +60,7 @@ module Akeyless
57
60
  :'artifactory_admin_pwd' => :'artifactory-admin-pwd',
58
61
  :'base_url' => :'base-url',
59
62
  :'comment' => :'comment',
63
+ :'description' => :'description',
60
64
  :'json' => :'json',
61
65
  :'keep_prev_version' => :'keep-prev-version',
62
66
  :'key' => :'key',
@@ -80,6 +84,7 @@ module Akeyless
80
84
  :'artifactory_admin_pwd' => :'String',
81
85
  :'base_url' => :'String',
82
86
  :'comment' => :'String',
87
+ :'description' => :'String',
83
88
  :'json' => :'Boolean',
84
89
  :'keep_prev_version' => :'String',
85
90
  :'key' => :'String',
@@ -128,6 +133,10 @@ module Akeyless
128
133
  self.comment = attributes[:'comment']
129
134
  end
130
135
 
136
+ if attributes.key?(:'description')
137
+ self.description = attributes[:'description']
138
+ end
139
+
131
140
  if attributes.key?(:'json')
132
141
  self.json = attributes[:'json']
133
142
  end
@@ -203,6 +212,7 @@ module Akeyless
203
212
  artifactory_admin_pwd == o.artifactory_admin_pwd &&
204
213
  base_url == o.base_url &&
205
214
  comment == o.comment &&
215
+ description == o.description &&
206
216
  json == o.json &&
207
217
  keep_prev_version == o.keep_prev_version &&
208
218
  key == o.key &&
@@ -222,7 +232,7 @@ module Akeyless
222
232
  # Calculates hash code according to all attributes.
223
233
  # @return [Integer] Hash code
224
234
  def hash
225
- [artifactory_admin_name, artifactory_admin_pwd, base_url, comment, json, keep_prev_version, key, name, new_name, token, uid_token, update_version].hash
235
+ [artifactory_admin_name, artifactory_admin_pwd, base_url, comment, description, json, keep_prev_version, key, name, new_name, token, uid_token, update_version].hash
226
236
  end
227
237
 
228
238
  # Builds the object from hash
@@ -19,9 +19,12 @@ module Akeyless
19
19
 
20
20
  attr_accessor :access_key_id
21
21
 
22
- # Comment about the target
22
+ # Deprecated - use description
23
23
  attr_accessor :comment
24
24
 
25
+ # Description of the object
26
+ attr_accessor :description
27
+
25
28
  # Set output format to JSON
26
29
  attr_accessor :json
27
30
 
@@ -57,6 +60,7 @@ module Akeyless
57
60
  :'access_key' => :'access-key',
58
61
  :'access_key_id' => :'access-key-id',
59
62
  :'comment' => :'comment',
63
+ :'description' => :'description',
60
64
  :'json' => :'json',
61
65
  :'keep_prev_version' => :'keep-prev-version',
62
66
  :'key' => :'key',
@@ -82,6 +86,7 @@ module Akeyless
82
86
  :'access_key' => :'String',
83
87
  :'access_key_id' => :'String',
84
88
  :'comment' => :'String',
89
+ :'description' => :'String',
85
90
  :'json' => :'Boolean',
86
91
  :'keep_prev_version' => :'String',
87
92
  :'key' => :'String',
@@ -129,6 +134,10 @@ module Akeyless
129
134
  self.comment = attributes[:'comment']
130
135
  end
131
136
 
137
+ if attributes.key?(:'description')
138
+ self.description = attributes[:'description']
139
+ end
140
+
132
141
  if attributes.key?(:'json')
133
142
  self.json = attributes[:'json']
134
143
  end
@@ -200,6 +209,7 @@ module Akeyless
200
209
  access_key == o.access_key &&
201
210
  access_key_id == o.access_key_id &&
202
211
  comment == o.comment &&
212
+ description == o.description &&
203
213
  json == o.json &&
204
214
  keep_prev_version == o.keep_prev_version &&
205
215
  key == o.key &&
@@ -222,7 +232,7 @@ module Akeyless
222
232
  # Calculates hash code according to all attributes.
223
233
  # @return [Integer] Hash code
224
234
  def hash
225
- [access_key, access_key_id, comment, json, keep_prev_version, key, name, new_name, region, session_token, token, uid_token, update_version, use_gw_cloud_identity].hash
235
+ [access_key, access_key_id, comment, description, json, keep_prev_version, key, name, new_name, region, session_token, token, uid_token, update_version, use_gw_cloud_identity].hash
226
236
  end
227
237
 
228
238
  # Builds the object from hash
@@ -19,9 +19,12 @@ module Akeyless
19
19
 
20
20
  attr_accessor :client_secret
21
21
 
22
- # Comment about the target
22
+ # Deprecated - use description
23
23
  attr_accessor :comment
24
24
 
25
+ # Description of the object
26
+ attr_accessor :description
27
+
25
28
  # Set output format to JSON
26
29
  attr_accessor :json
27
30
 
@@ -64,6 +67,7 @@ module Akeyless
64
67
  :'client_id' => :'client-id',
65
68
  :'client_secret' => :'client-secret',
66
69
  :'comment' => :'comment',
70
+ :'description' => :'description',
67
71
  :'json' => :'json',
68
72
  :'keep_prev_version' => :'keep-prev-version',
69
73
  :'key' => :'key',
@@ -91,6 +95,7 @@ module Akeyless
91
95
  :'client_id' => :'String',
92
96
  :'client_secret' => :'String',
93
97
  :'comment' => :'String',
98
+ :'description' => :'String',
94
99
  :'json' => :'Boolean',
95
100
  :'keep_prev_version' => :'String',
96
101
  :'key' => :'String',
@@ -140,6 +145,10 @@ module Akeyless
140
145
  self.comment = attributes[:'comment']
141
146
  end
142
147
 
148
+ if attributes.key?(:'description')
149
+ self.description = attributes[:'description']
150
+ end
151
+
143
152
  if attributes.key?(:'json')
144
153
  self.json = attributes[:'json']
145
154
  end
@@ -219,6 +228,7 @@ module Akeyless
219
228
  client_id == o.client_id &&
220
229
  client_secret == o.client_secret &&
221
230
  comment == o.comment &&
231
+ description == o.description &&
222
232
  json == o.json &&
223
233
  keep_prev_version == o.keep_prev_version &&
224
234
  key == o.key &&
@@ -243,7 +253,7 @@ module Akeyless
243
253
  # Calculates hash code according to all attributes.
244
254
  # @return [Integer] Hash code
245
255
  def hash
246
- [client_id, client_secret, comment, json, keep_prev_version, key, name, new_name, resource_group_name, resource_name, subscription_id, tenant_id, token, uid_token, update_version, use_gw_cloud_identity].hash
256
+ [client_id, client_secret, comment, description, json, keep_prev_version, key, name, new_name, resource_group_name, resource_name, subscription_id, tenant_id, token, uid_token, update_version, use_gw_cloud_identity].hash
247
257
  end
248
258
 
249
259
  # Builds the object from hash
@@ -15,7 +15,7 @@ require 'time'
15
15
 
16
16
  module Akeyless
17
17
  class UpdateDBTarget
18
- # Comment about the target
18
+ # Deprecated - use description
19
19
  attr_accessor :comment
20
20
 
21
21
  attr_accessor :db_name
@@ -28,6 +28,9 @@ module Akeyless
28
28
 
29
29
  attr_accessor :db_type
30
30
 
31
+ # Description of the object
32
+ attr_accessor :description
33
+
31
34
  attr_accessor :host
32
35
 
33
36
  # Set output format to JSON
@@ -100,6 +103,7 @@ module Akeyless
100
103
  :'db_server_certificates' => :'db-server-certificates',
101
104
  :'db_server_name' => :'db-server-name',
102
105
  :'db_type' => :'db-type',
106
+ :'description' => :'description',
103
107
  :'host' => :'host',
104
108
  :'json' => :'json',
105
109
  :'keep_prev_version' => :'keep-prev-version',
@@ -140,6 +144,7 @@ module Akeyless
140
144
  :'db_server_certificates' => :'String',
141
145
  :'db_server_name' => :'String',
142
146
  :'db_type' => :'String',
147
+ :'description' => :'String',
143
148
  :'host' => :'String',
144
149
  :'json' => :'Boolean',
145
150
  :'keep_prev_version' => :'String',
@@ -208,6 +213,10 @@ module Akeyless
208
213
  self.db_type = attributes[:'db_type']
209
214
  end
210
215
 
216
+ if attributes.key?(:'description')
217
+ self.description = attributes[:'description']
218
+ end
219
+
211
220
  if attributes.key?(:'host')
212
221
  self.host = attributes[:'host']
213
222
  end
@@ -338,6 +347,7 @@ module Akeyless
338
347
  db_server_certificates == o.db_server_certificates &&
339
348
  db_server_name == o.db_server_name &&
340
349
  db_type == o.db_type &&
350
+ description == o.description &&
341
351
  host == o.host &&
342
352
  json == o.json &&
343
353
  keep_prev_version == o.keep_prev_version &&
@@ -373,7 +383,7 @@ module Akeyless
373
383
  # Calculates hash code according to all attributes.
374
384
  # @return [Integer] Hash code
375
385
  def hash
376
- [comment, db_name, db_server_certificates, db_server_name, db_type, host, json, keep_prev_version, key, mongodb_atlas, mongodb_atlas_api_private_key, mongodb_atlas_api_public_key, mongodb_atlas_project_id, mongodb_default_auth_db, mongodb_uri_options, name, new_name, oracle_service_name, port, pwd, snowflake_account, snowflake_api_private_key, snowflake_api_private_key_password, ssl, ssl_certificate, token, uid_token, update_version, user_name].hash
386
+ [comment, db_name, db_server_certificates, db_server_name, db_type, description, host, json, keep_prev_version, key, mongodb_atlas, mongodb_atlas_api_private_key, mongodb_atlas_api_public_key, mongodb_atlas_project_id, mongodb_default_auth_db, mongodb_uri_options, name, new_name, oracle_service_name, port, pwd, snowflake_account, snowflake_api_private_key, snowflake_api_private_key_password, ssl, ssl_certificate, token, uid_token, update_version, user_name].hash
377
387
  end
378
388
 
379
389
  # Builds the object from hash
@@ -15,9 +15,12 @@ require 'time'
15
15
 
16
16
  module Akeyless
17
17
  class UpdateDockerhubTarget
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 :dockerhub_password
22
25
 
23
26
  attr_accessor :dockerhub_username
@@ -49,6 +52,7 @@ module Akeyless
49
52
  def self.attribute_map
50
53
  {
51
54
  :'comment' => :'comment',
55
+ :'description' => :'description',
52
56
  :'dockerhub_password' => :'dockerhub-password',
53
57
  :'dockerhub_username' => :'dockerhub-username',
54
58
  :'json' => :'json',
@@ -71,6 +75,7 @@ module Akeyless
71
75
  def self.openapi_types
72
76
  {
73
77
  :'comment' => :'String',
78
+ :'description' => :'String',
74
79
  :'dockerhub_password' => :'String',
75
80
  :'dockerhub_username' => :'String',
76
81
  :'json' => :'Boolean',
@@ -109,6 +114,10 @@ module Akeyless
109
114
  self.comment = attributes[:'comment']
110
115
  end
111
116
 
117
+ if attributes.key?(:'description')
118
+ self.description = attributes[:'description']
119
+ end
120
+
112
121
  if attributes.key?(:'dockerhub_password')
113
122
  self.dockerhub_password = attributes[:'dockerhub_password']
114
123
  end
@@ -174,6 +183,7 @@ module Akeyless
174
183
  return true if self.equal?(o)
175
184
  self.class == o.class &&
176
185
  comment == o.comment &&
186
+ description == o.description &&
177
187
  dockerhub_password == o.dockerhub_password &&
178
188
  dockerhub_username == o.dockerhub_username &&
179
189
  json == o.json &&
@@ -195,7 +205,7 @@ module Akeyless
195
205
  # Calculates hash code according to all attributes.
196
206
  # @return [Integer] Hash code
197
207
  def hash
198
- [comment, dockerhub_password, dockerhub_username, json, keep_prev_version, key, name, new_name, token, uid_token, update_version].hash
208
+ [comment, description, dockerhub_password, dockerhub_username, json, keep_prev_version, key, name, new_name, token, uid_token, update_version].hash
199
209
  end
200
210
 
201
211
  # Builds the object from hash