akeyless 0.0.2.pre.rc1 → 2.15.32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +15 -9
  3. data/akeyless.gemspec +1 -1
  4. data/docs/Auth.md +1 -1
  5. data/docs/ConfigHash.md +2 -0
  6. data/docs/DSProducerDetails.md +4 -0
  7. data/docs/GatewayCreateProducerHanaDb.md +54 -0
  8. data/docs/GatewayCreateProducerHanaDbOutput.md +18 -0
  9. data/docs/GatewayCreateProducerMongo.md +1 -1
  10. data/docs/GatewayUpdateProducerHanaDb.md +56 -0
  11. data/docs/GatewayUpdateProducerHanaDbOutput.md +18 -0
  12. data/docs/GatewayUpdateProducerMongo.md +1 -1
  13. data/docs/KMIPConfigPart.md +5 -1
  14. data/docs/KMIPServer.md +26 -0
  15. data/docs/ListAuthMethods.md +2 -0
  16. data/docs/TargetItemAssociation.md +2 -0
  17. data/docs/UpdateDBTarget.md +4 -0
  18. data/docs/V2Api.md +63 -0
  19. data/git_push.sh +0 -0
  20. data/lib/akeyless/api/v2_api.rb +64 -0
  21. data/lib/akeyless/api_client.rb +0 -6
  22. data/lib/akeyless/configuration.rb +2 -1
  23. data/lib/akeyless/models/auth.rb +1 -1
  24. data/lib/akeyless/models/config_hash.rb +10 -1
  25. data/lib/akeyless/models/ds_producer_details.rb +19 -1
  26. data/lib/akeyless/models/gateway_create_producer_hana_db.rb +411 -0
  27. data/lib/akeyless/models/gateway_create_producer_hana_db_output.rb +219 -0
  28. data/lib/akeyless/models/gateway_create_producer_mongo.rb +0 -2
  29. data/lib/akeyless/models/gateway_update_producer_hana_db.rb +421 -0
  30. data/lib/akeyless/models/gateway_update_producer_hana_db_output.rb +219 -0
  31. data/lib/akeyless/models/gateway_update_producer_mongo.rb +0 -2
  32. data/lib/akeyless/models/kmip_config_part.rb +23 -1
  33. data/lib/akeyless/models/kmip_server.rb +259 -0
  34. data/lib/akeyless/models/list_auth_methods.rb +13 -1
  35. data/lib/akeyless/models/target_item_association.rb +10 -1
  36. data/lib/akeyless/models/update_db_target.rb +21 -1
  37. data/lib/akeyless/version.rb +1 -1
  38. data/lib/akeyless.rb +5 -0
  39. data/spec/models/gateway_create_producer_hana_db_output_spec.rb +34 -0
  40. data/spec/models/gateway_create_producer_hana_db_spec.rb +142 -0
  41. data/spec/models/gateway_update_producer_hana_db_output_spec.rb +34 -0
  42. data/spec/models/gateway_update_producer_hana_db_spec.rb +148 -0
  43. data/spec/models/kmip_server_spec.rb +58 -0
  44. metadata +473 -453
@@ -0,0 +1,219 @@
1
+ =begin
2
+ #Akeyless API
3
+
4
+ #The purpose of this application is to provide access to Akeyless API.
5
+
6
+ The version of the OpenAPI document: 2.0
7
+ Contact: support@akeyless.io
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Akeyless
17
+ class GatewayUpdateProducerHanaDbOutput
18
+ attr_accessor :producer_details
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'producer_details' => :'producer_details'
24
+ }
25
+ end
26
+
27
+ # Returns all the JSON keys this model knows about
28
+ def self.acceptable_attributes
29
+ attribute_map.values
30
+ end
31
+
32
+ # Attribute type mapping.
33
+ def self.openapi_types
34
+ {
35
+ :'producer_details' => :'DSProducerDetails'
36
+ }
37
+ end
38
+
39
+ # List of attributes with nullable: true
40
+ def self.openapi_nullable
41
+ Set.new([
42
+ ])
43
+ end
44
+
45
+ # Initializes the object
46
+ # @param [Hash] attributes Model attributes in the form of hash
47
+ def initialize(attributes = {})
48
+ if (!attributes.is_a?(Hash))
49
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::GatewayUpdateProducerHanaDbOutput` initialize method"
50
+ end
51
+
52
+ # check to see if the attribute exists and convert string to symbol for hash key
53
+ attributes = attributes.each_with_object({}) { |(k, v), h|
54
+ if (!self.class.attribute_map.key?(k.to_sym))
55
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::GatewayUpdateProducerHanaDbOutput`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
+ end
57
+ h[k.to_sym] = v
58
+ }
59
+
60
+ if attributes.key?(:'producer_details')
61
+ self.producer_details = attributes[:'producer_details']
62
+ end
63
+ end
64
+
65
+ # Show invalid properties with the reasons. Usually used together with valid?
66
+ # @return Array for valid properties with the reasons
67
+ def list_invalid_properties
68
+ invalid_properties = Array.new
69
+ invalid_properties
70
+ end
71
+
72
+ # Check to see if the all the properties in the model are valid
73
+ # @return true if the model is valid
74
+ def valid?
75
+ true
76
+ end
77
+
78
+ # Checks equality by comparing each attribute.
79
+ # @param [Object] Object to be compared
80
+ def ==(o)
81
+ return true if self.equal?(o)
82
+ self.class == o.class &&
83
+ producer_details == o.producer_details
84
+ end
85
+
86
+ # @see the `==` method
87
+ # @param [Object] Object to be compared
88
+ def eql?(o)
89
+ self == o
90
+ end
91
+
92
+ # Calculates hash code according to all attributes.
93
+ # @return [Integer] Hash code
94
+ def hash
95
+ [producer_details].hash
96
+ end
97
+
98
+ # Builds the object from hash
99
+ # @param [Hash] attributes Model attributes in the form of hash
100
+ # @return [Object] Returns the model itself
101
+ def self.build_from_hash(attributes)
102
+ new.build_from_hash(attributes)
103
+ end
104
+
105
+ # Builds the object from hash
106
+ # @param [Hash] attributes Model attributes in the form of hash
107
+ # @return [Object] Returns the model itself
108
+ def build_from_hash(attributes)
109
+ return nil unless attributes.is_a?(Hash)
110
+ attributes = attributes.transform_keys(&:to_sym)
111
+ self.class.openapi_types.each_pair do |key, type|
112
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
113
+ self.send("#{key}=", nil)
114
+ elsif type =~ /\AArray<(.*)>/i
115
+ # check to ensure the input is an array given that the attribute
116
+ # is documented as an array but the input is not
117
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
118
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
119
+ end
120
+ elsif !attributes[self.class.attribute_map[key]].nil?
121
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
122
+ end
123
+ end
124
+
125
+ self
126
+ end
127
+
128
+ # Deserializes the data based on type
129
+ # @param string type Data type
130
+ # @param string value Value to be deserialized
131
+ # @return [Object] Deserialized data
132
+ def _deserialize(type, value)
133
+ case type.to_sym
134
+ when :Time
135
+ Time.parse(value)
136
+ when :Date
137
+ Date.parse(value)
138
+ when :String
139
+ value.to_s
140
+ when :Integer
141
+ value.to_i
142
+ when :Float
143
+ value.to_f
144
+ when :Boolean
145
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
146
+ true
147
+ else
148
+ false
149
+ end
150
+ when :Object
151
+ # generic object (usually a Hash), return directly
152
+ value
153
+ when /\AArray<(?<inner_type>.+)>\z/
154
+ inner_type = Regexp.last_match[:inner_type]
155
+ value.map { |v| _deserialize(inner_type, v) }
156
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
157
+ k_type = Regexp.last_match[:k_type]
158
+ v_type = Regexp.last_match[:v_type]
159
+ {}.tap do |hash|
160
+ value.each do |k, v|
161
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
162
+ end
163
+ end
164
+ else # model
165
+ # models (e.g. Pet) or oneOf
166
+ klass = Akeyless.const_get(type)
167
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
168
+ end
169
+ end
170
+
171
+ # Returns the string representation of the object
172
+ # @return [String] String presentation of the object
173
+ def to_s
174
+ to_hash.to_s
175
+ end
176
+
177
+ # to_body is an alias to to_hash (backward compatibility)
178
+ # @return [Hash] Returns the object in the form of hash
179
+ def to_body
180
+ to_hash
181
+ end
182
+
183
+ # Returns the object in the form of hash
184
+ # @return [Hash] Returns the object in the form of hash
185
+ def to_hash
186
+ hash = {}
187
+ self.class.attribute_map.each_pair do |attr, param|
188
+ value = self.send(attr)
189
+ if value.nil?
190
+ is_nullable = self.class.openapi_nullable.include?(attr)
191
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
192
+ end
193
+
194
+ hash[param] = _to_hash(value)
195
+ end
196
+ hash
197
+ end
198
+
199
+ # Outputs non-array value in the form of hash
200
+ # For object, use to_hash. Otherwise, just return the value
201
+ # @param [Object] value Any valid value
202
+ # @return [Hash] Returns the value in the form of hash
203
+ def _to_hash(value)
204
+ if value.is_a?(Array)
205
+ value.compact.map { |v| _to_hash(v) }
206
+ elsif value.is_a?(Hash)
207
+ {}.tap do |hash|
208
+ value.each { |k, v| hash[k] = _to_hash(v) }
209
+ end
210
+ elsif value.respond_to? :to_hash
211
+ value.to_hash
212
+ else
213
+ value
214
+ end
215
+ end
216
+
217
+ end
218
+
219
+ end
@@ -184,8 +184,6 @@ module Akeyless
184
184
 
185
185
  if attributes.key?(:'mongodb_custom_data')
186
186
  self.mongodb_custom_data = attributes[:'mongodb_custom_data']
187
- else
188
- self.mongodb_custom_data = '\"\"'
189
187
  end
190
188
 
191
189
  if attributes.key?(:'mongodb_default_auth_db')
@@ -17,12 +17,20 @@ module Akeyless
17
17
  class KMIPConfigPart
18
18
  attr_accessor :clients
19
19
 
20
+ # Saves the private key of the cert issuer in encypted form
21
+ attr_accessor :key_enc
22
+
23
+ attr_accessor :server
24
+
25
+ # Saved for backward compatibility TODO: remove this after all clients upgrade
20
26
  attr_accessor :server_enc
21
27
 
22
28
  # Attribute mapping from ruby-style variable name to JSON key.
23
29
  def self.attribute_map
24
30
  {
25
31
  :'clients' => :'clients',
32
+ :'key_enc' => :'key_enc',
33
+ :'server' => :'server',
26
34
  :'server_enc' => :'server_enc'
27
35
  }
28
36
  end
@@ -36,6 +44,8 @@ module Akeyless
36
44
  def self.openapi_types
37
45
  {
38
46
  :'clients' => :'Hash<String, KMIPClient>',
47
+ :'key_enc' => :'Array<Integer>',
48
+ :'server' => :'KMIPServer',
39
49
  :'server_enc' => :'Array<Integer>'
40
50
  }
41
51
  end
@@ -67,6 +77,16 @@ module Akeyless
67
77
  end
68
78
  end
69
79
 
80
+ if attributes.key?(:'key_enc')
81
+ if (value = attributes[:'key_enc']).is_a?(Array)
82
+ self.key_enc = value
83
+ end
84
+ end
85
+
86
+ if attributes.key?(:'server')
87
+ self.server = attributes[:'server']
88
+ end
89
+
70
90
  if attributes.key?(:'server_enc')
71
91
  if (value = attributes[:'server_enc']).is_a?(Array)
72
92
  self.server_enc = value
@@ -93,6 +113,8 @@ module Akeyless
93
113
  return true if self.equal?(o)
94
114
  self.class == o.class &&
95
115
  clients == o.clients &&
116
+ key_enc == o.key_enc &&
117
+ server == o.server &&
96
118
  server_enc == o.server_enc
97
119
  end
98
120
 
@@ -105,7 +127,7 @@ module Akeyless
105
127
  # Calculates hash code according to all attributes.
106
128
  # @return [Integer] Hash code
107
129
  def hash
108
- [clients, server_enc].hash
130
+ [clients, key_enc, server, server_enc].hash
109
131
  end
110
132
 
111
133
  # Builds the object from hash
@@ -0,0 +1,259 @@
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
+ class KMIPServer
18
+ attr_accessor :active
19
+
20
+ attr_accessor :ca
21
+
22
+ attr_accessor :certificate
23
+
24
+ attr_accessor :hostname
25
+
26
+ attr_accessor :root
27
+
28
+ # Attribute mapping from ruby-style variable name to JSON key.
29
+ def self.attribute_map
30
+ {
31
+ :'active' => :'active',
32
+ :'ca' => :'ca',
33
+ :'certificate' => :'certificate',
34
+ :'hostname' => :'hostname',
35
+ :'root' => :'root'
36
+ }
37
+ end
38
+
39
+ # Returns all the JSON keys this model knows about
40
+ def self.acceptable_attributes
41
+ attribute_map.values
42
+ end
43
+
44
+ # Attribute type mapping.
45
+ def self.openapi_types
46
+ {
47
+ :'active' => :'Boolean',
48
+ :'ca' => :'Array<Integer>',
49
+ :'certificate' => :'Array<Integer>',
50
+ :'hostname' => :'String',
51
+ :'root' => :'String'
52
+ }
53
+ end
54
+
55
+ # List of attributes with nullable: true
56
+ def self.openapi_nullable
57
+ Set.new([
58
+ ])
59
+ end
60
+
61
+ # Initializes the object
62
+ # @param [Hash] attributes Model attributes in the form of hash
63
+ def initialize(attributes = {})
64
+ if (!attributes.is_a?(Hash))
65
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::KMIPServer` initialize method"
66
+ end
67
+
68
+ # check to see if the attribute exists and convert string to symbol for hash key
69
+ attributes = attributes.each_with_object({}) { |(k, v), h|
70
+ if (!self.class.attribute_map.key?(k.to_sym))
71
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::KMIPServer`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
72
+ end
73
+ h[k.to_sym] = v
74
+ }
75
+
76
+ if attributes.key?(:'active')
77
+ self.active = attributes[:'active']
78
+ end
79
+
80
+ if attributes.key?(:'ca')
81
+ if (value = attributes[:'ca']).is_a?(Array)
82
+ self.ca = value
83
+ end
84
+ end
85
+
86
+ if attributes.key?(:'certificate')
87
+ if (value = attributes[:'certificate']).is_a?(Array)
88
+ self.certificate = value
89
+ end
90
+ end
91
+
92
+ if attributes.key?(:'hostname')
93
+ self.hostname = attributes[:'hostname']
94
+ end
95
+
96
+ if attributes.key?(:'root')
97
+ self.root = attributes[:'root']
98
+ end
99
+ end
100
+
101
+ # Show invalid properties with the reasons. Usually used together with valid?
102
+ # @return Array for valid properties with the reasons
103
+ def list_invalid_properties
104
+ invalid_properties = Array.new
105
+ invalid_properties
106
+ end
107
+
108
+ # Check to see if the all the properties in the model are valid
109
+ # @return true if the model is valid
110
+ def valid?
111
+ true
112
+ end
113
+
114
+ # Checks equality by comparing each attribute.
115
+ # @param [Object] Object to be compared
116
+ def ==(o)
117
+ return true if self.equal?(o)
118
+ self.class == o.class &&
119
+ active == o.active &&
120
+ ca == o.ca &&
121
+ certificate == o.certificate &&
122
+ hostname == o.hostname &&
123
+ root == o.root
124
+ end
125
+
126
+ # @see the `==` method
127
+ # @param [Object] Object to be compared
128
+ def eql?(o)
129
+ self == o
130
+ end
131
+
132
+ # Calculates hash code according to all attributes.
133
+ # @return [Integer] Hash code
134
+ def hash
135
+ [active, ca, certificate, hostname, root].hash
136
+ end
137
+
138
+ # Builds the object from hash
139
+ # @param [Hash] attributes Model attributes in the form of hash
140
+ # @return [Object] Returns the model itself
141
+ def self.build_from_hash(attributes)
142
+ new.build_from_hash(attributes)
143
+ end
144
+
145
+ # Builds the object from hash
146
+ # @param [Hash] attributes Model attributes in the form of hash
147
+ # @return [Object] Returns the model itself
148
+ def build_from_hash(attributes)
149
+ return nil unless attributes.is_a?(Hash)
150
+ attributes = attributes.transform_keys(&:to_sym)
151
+ self.class.openapi_types.each_pair do |key, type|
152
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
153
+ self.send("#{key}=", nil)
154
+ elsif type =~ /\AArray<(.*)>/i
155
+ # check to ensure the input is an array given that the attribute
156
+ # is documented as an array but the input is not
157
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
158
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
159
+ end
160
+ elsif !attributes[self.class.attribute_map[key]].nil?
161
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
162
+ end
163
+ end
164
+
165
+ self
166
+ end
167
+
168
+ # Deserializes the data based on type
169
+ # @param string type Data type
170
+ # @param string value Value to be deserialized
171
+ # @return [Object] Deserialized data
172
+ def _deserialize(type, value)
173
+ case type.to_sym
174
+ when :Time
175
+ Time.parse(value)
176
+ when :Date
177
+ Date.parse(value)
178
+ when :String
179
+ value.to_s
180
+ when :Integer
181
+ value.to_i
182
+ when :Float
183
+ value.to_f
184
+ when :Boolean
185
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
186
+ true
187
+ else
188
+ false
189
+ end
190
+ when :Object
191
+ # generic object (usually a Hash), return directly
192
+ value
193
+ when /\AArray<(?<inner_type>.+)>\z/
194
+ inner_type = Regexp.last_match[:inner_type]
195
+ value.map { |v| _deserialize(inner_type, v) }
196
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
197
+ k_type = Regexp.last_match[:k_type]
198
+ v_type = Regexp.last_match[:v_type]
199
+ {}.tap do |hash|
200
+ value.each do |k, v|
201
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
202
+ end
203
+ end
204
+ else # model
205
+ # models (e.g. Pet) or oneOf
206
+ klass = Akeyless.const_get(type)
207
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
208
+ end
209
+ end
210
+
211
+ # Returns the string representation of the object
212
+ # @return [String] String presentation of the object
213
+ def to_s
214
+ to_hash.to_s
215
+ end
216
+
217
+ # to_body is an alias to to_hash (backward compatibility)
218
+ # @return [Hash] Returns the object in the form of hash
219
+ def to_body
220
+ to_hash
221
+ end
222
+
223
+ # Returns the object in the form of hash
224
+ # @return [Hash] Returns the object in the form of hash
225
+ def to_hash
226
+ hash = {}
227
+ self.class.attribute_map.each_pair do |attr, param|
228
+ value = self.send(attr)
229
+ if value.nil?
230
+ is_nullable = self.class.openapi_nullable.include?(attr)
231
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
232
+ end
233
+
234
+ hash[param] = _to_hash(value)
235
+ end
236
+ hash
237
+ end
238
+
239
+ # Outputs non-array value in the form of hash
240
+ # For object, use to_hash. Otherwise, just return the value
241
+ # @param [Object] value Any valid value
242
+ # @return [Hash] Returns the value in the form of hash
243
+ def _to_hash(value)
244
+ if value.is_a?(Array)
245
+ value.compact.map { |v| _to_hash(v) }
246
+ elsif value.is_a?(Hash)
247
+ {}.tap do |hash|
248
+ value.each { |k, v| hash[k] = _to_hash(v) }
249
+ end
250
+ elsif value.respond_to? :to_hash
251
+ value.to_hash
252
+ else
253
+ value
254
+ end
255
+ end
256
+
257
+ end
258
+
259
+ end
@@ -22,6 +22,9 @@ module Akeyless
22
22
  # Authentication token (see `/auth` and `/configure`)
23
23
  attr_accessor :token
24
24
 
25
+ # The Auth method types list of the requested method. In case it is empty, all types of auth methods will be returned. options: [api_key, azure_ad, oauth2/jwt, saml2, ldap, aws_iam, oidc, universal_identity, gcp, k8s]
26
+ attr_accessor :type
27
+
25
28
  # The universal identity token, Required only for universal_identity authentication
26
29
  attr_accessor :uid_token
27
30
 
@@ -30,6 +33,7 @@ module Akeyless
30
33
  {
31
34
  :'pagination_token' => :'pagination-token',
32
35
  :'token' => :'token',
36
+ :'type' => :'type',
33
37
  :'uid_token' => :'uid-token'
34
38
  }
35
39
  end
@@ -44,6 +48,7 @@ module Akeyless
44
48
  {
45
49
  :'pagination_token' => :'String',
46
50
  :'token' => :'String',
51
+ :'type' => :'Array<String>',
47
52
  :'uid_token' => :'String'
48
53
  }
49
54
  end
@@ -77,6 +82,12 @@ module Akeyless
77
82
  self.token = attributes[:'token']
78
83
  end
79
84
 
85
+ if attributes.key?(:'type')
86
+ if (value = attributes[:'type']).is_a?(Array)
87
+ self.type = value
88
+ end
89
+ end
90
+
80
91
  if attributes.key?(:'uid_token')
81
92
  self.uid_token = attributes[:'uid_token']
82
93
  end
@@ -102,6 +113,7 @@ module Akeyless
102
113
  self.class == o.class &&
103
114
  pagination_token == o.pagination_token &&
104
115
  token == o.token &&
116
+ type == o.type &&
105
117
  uid_token == o.uid_token
106
118
  end
107
119
 
@@ -114,7 +126,7 @@ module Akeyless
114
126
  # Calculates hash code according to all attributes.
115
127
  # @return [Integer] Hash code
116
128
  def hash
117
- [pagination_token, token, uid_token].hash
129
+ [pagination_token, token, type, uid_token].hash
118
130
  end
119
131
 
120
132
  # Builds the object from hash
@@ -18,6 +18,8 @@ module Akeyless
18
18
  class TargetItemAssociation
19
19
  attr_accessor :assoc_id
20
20
 
21
+ attr_accessor :cluster_id
22
+
21
23
  attr_accessor :item_name
22
24
 
23
25
  attr_accessor :item_type
@@ -26,6 +28,7 @@ module Akeyless
26
28
  def self.attribute_map
27
29
  {
28
30
  :'assoc_id' => :'assoc_id',
31
+ :'cluster_id' => :'cluster_id',
29
32
  :'item_name' => :'item_name',
30
33
  :'item_type' => :'item_type'
31
34
  }
@@ -40,6 +43,7 @@ module Akeyless
40
43
  def self.openapi_types
41
44
  {
42
45
  :'assoc_id' => :'String',
46
+ :'cluster_id' => :'Integer',
43
47
  :'item_name' => :'String',
44
48
  :'item_type' => :'String'
45
49
  }
@@ -70,6 +74,10 @@ module Akeyless
70
74
  self.assoc_id = attributes[:'assoc_id']
71
75
  end
72
76
 
77
+ if attributes.key?(:'cluster_id')
78
+ self.cluster_id = attributes[:'cluster_id']
79
+ end
80
+
73
81
  if attributes.key?(:'item_name')
74
82
  self.item_name = attributes[:'item_name']
75
83
  end
@@ -98,6 +106,7 @@ module Akeyless
98
106
  return true if self.equal?(o)
99
107
  self.class == o.class &&
100
108
  assoc_id == o.assoc_id &&
109
+ cluster_id == o.cluster_id &&
101
110
  item_name == o.item_name &&
102
111
  item_type == o.item_type
103
112
  end
@@ -111,7 +120,7 @@ module Akeyless
111
120
  # Calculates hash code according to all attributes.
112
121
  # @return [Integer] Hash code
113
122
  def hash
114
- [assoc_id, item_name, item_type].hash
123
+ [assoc_id, cluster_id, item_name, item_type].hash
115
124
  end
116
125
 
117
126
  # Builds the object from hash