akeyless 2.15.29 → 2.16.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +27 -9
  3. data/docs/Auth.md +5 -1
  4. data/docs/AuthMethodAccessInfo.md +2 -0
  5. data/docs/CertAccessRules.md +34 -0
  6. data/docs/ConfigHash.md +2 -0
  7. data/docs/CreateAuthMethodCert.md +48 -0
  8. data/docs/CreateAuthMethodCertOutput.md +18 -0
  9. data/docs/CreateAuthMethodLDAP.md +3 -1
  10. data/docs/CreateAuthMethodOIDC.md +4 -0
  11. data/docs/CreateClassicKey.md +5 -1
  12. data/docs/DSProducerDetails.md +4 -0
  13. data/docs/GatewayCreateProducerCustom.md +4 -0
  14. data/docs/GatewayCreateProducerHanaDb.md +54 -0
  15. data/docs/GatewayCreateProducerHanaDbOutput.md +18 -0
  16. data/docs/GatewayCreateProducerMongo.md +1 -1
  17. data/docs/GatewayCreateProducerOracleDb.md +8 -0
  18. data/docs/GatewayMessageQueueInfo.md +1 -3
  19. data/docs/GatewayUpdateProducerCustom.md +4 -0
  20. data/docs/GatewayUpdateProducerHanaDb.md +56 -0
  21. data/docs/GatewayUpdateProducerHanaDbOutput.md +18 -0
  22. data/docs/GatewayUpdateProducerMongo.md +1 -1
  23. data/docs/GatewayUpdateProducerOracleDb.md +8 -0
  24. data/docs/KMIPClient.md +2 -0
  25. data/docs/KMIPConfigPart.md +5 -1
  26. data/docs/KMIPServer.md +30 -0
  27. data/docs/KmipDeleteServer.md +20 -0
  28. data/docs/KmipDescribeServerOutput.md +4 -0
  29. data/docs/KmipMoveServer.md +22 -0
  30. data/docs/KmipMoveServerOutput.md +20 -0
  31. data/docs/ListAuthMethods.md +4 -0
  32. data/docs/ListRoles.md +2 -0
  33. data/docs/ListTargets.md +2 -0
  34. data/docs/OIDCAccessRules.md +4 -0
  35. data/docs/TargetItemAssociation.md +2 -0
  36. data/docs/UpdateAuthMethodCert.md +50 -0
  37. data/docs/UpdateAuthMethodCertOutput.md +18 -0
  38. data/docs/UpdateAuthMethodLDAP.md +3 -1
  39. data/docs/UpdateAuthMethodOIDC.md +4 -0
  40. data/docs/UpdateDBTarget.md +4 -0
  41. data/docs/UpdateOutput.md +2 -0
  42. data/docs/V2Api.md +319 -0
  43. data/git_push.sh +0 -0
  44. data/lib/akeyless/api/v2_api.rb +312 -0
  45. data/lib/akeyless/api_client.rb +3 -7
  46. data/lib/akeyless/configuration.rb +2 -1
  47. data/lib/akeyless/models/auth.rb +22 -2
  48. data/lib/akeyless/models/auth_method_access_info.rb +10 -1
  49. data/lib/akeyless/models/cert_access_rules.rb +316 -0
  50. data/lib/akeyless/models/config_hash.rb +10 -1
  51. data/lib/akeyless/models/create_auth_method_cert.rb +401 -0
  52. data/lib/akeyless/models/create_auth_method_cert_output.rb +219 -0
  53. data/lib/akeyless/models/create_auth_method_ldap.rb +14 -4
  54. data/lib/akeyless/models/create_auth_method_oidc.rb +23 -1
  55. data/lib/akeyless/models/create_classic_key.rb +26 -4
  56. data/lib/akeyless/models/ds_producer_details.rb +19 -1
  57. data/lib/akeyless/models/gateway_create_producer_custom.rb +23 -1
  58. data/lib/akeyless/models/gateway_create_producer_hana_db.rb +411 -0
  59. data/lib/akeyless/models/gateway_create_producer_hana_db_output.rb +219 -0
  60. data/lib/akeyless/models/gateway_create_producer_mongo.rb +0 -2
  61. data/lib/akeyless/models/gateway_create_producer_oracle_db.rb +39 -1
  62. data/lib/akeyless/models/gateway_message_queue_info.rb +4 -13
  63. data/lib/akeyless/models/gateway_update_producer_custom.rb +23 -1
  64. data/lib/akeyless/models/gateway_update_producer_hana_db.rb +421 -0
  65. data/lib/akeyless/models/gateway_update_producer_hana_db_output.rb +219 -0
  66. data/lib/akeyless/models/gateway_update_producer_mongo.rb +0 -2
  67. data/lib/akeyless/models/gateway_update_producer_oracle_db.rb +39 -1
  68. data/lib/akeyless/models/kmip_client.rb +10 -1
  69. data/lib/akeyless/models/kmip_config_part.rb +23 -1
  70. data/lib/akeyless/models/kmip_delete_server.rb +231 -0
  71. data/lib/akeyless/models/kmip_describe_server_output.rb +19 -1
  72. data/lib/akeyless/models/kmip_move_server.rb +240 -0
  73. data/lib/akeyless/models/kmip_move_server_output.rb +228 -0
  74. data/lib/akeyless/models/kmip_server.rb +277 -0
  75. data/lib/akeyless/models/list_auth_methods.rb +23 -1
  76. data/lib/akeyless/models/list_roles.rb +11 -1
  77. data/lib/akeyless/models/list_targets.rb +11 -1
  78. data/lib/akeyless/models/oidc_access_rules.rb +23 -1
  79. data/lib/akeyless/models/target_item_association.rb +10 -1
  80. data/lib/akeyless/models/update_auth_method_cert.rb +411 -0
  81. data/lib/akeyless/models/update_auth_method_cert_output.rb +219 -0
  82. data/lib/akeyless/models/update_auth_method_ldap.rb +14 -4
  83. data/lib/akeyless/models/update_auth_method_oidc.rb +23 -1
  84. data/lib/akeyless/models/update_db_target.rb +21 -1
  85. data/lib/akeyless/models/update_output.rb +10 -1
  86. data/lib/akeyless/version.rb +1 -1
  87. data/lib/akeyless.rb +13 -0
  88. data/spec/models/cert_access_rules_spec.rb +82 -0
  89. data/spec/models/create_auth_method_cert_output_spec.rb +34 -0
  90. data/spec/models/create_auth_method_cert_spec.rb +124 -0
  91. data/spec/models/gateway_create_producer_hana_db_output_spec.rb +34 -0
  92. data/spec/models/gateway_create_producer_hana_db_spec.rb +142 -0
  93. data/spec/models/gateway_update_producer_hana_db_output_spec.rb +34 -0
  94. data/spec/models/gateway_update_producer_hana_db_spec.rb +148 -0
  95. data/spec/models/kmip_delete_server_spec.rb +40 -0
  96. data/spec/models/kmip_move_server_output_spec.rb +40 -0
  97. data/spec/models/kmip_move_server_spec.rb +46 -0
  98. data/spec/models/kmip_server_spec.rb +58 -0
  99. data/spec/models/update_auth_method_cert_output_spec.rb +34 -0
  100. data/spec/models/update_auth_method_cert_spec.rb +130 -0
  101. metadata +508 -456
@@ -0,0 +1,277 @@
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 :certificate_issue_date
25
+
26
+ attr_accessor :certificate_ttl_in_seconds
27
+
28
+ attr_accessor :hostname
29
+
30
+ attr_accessor :root
31
+
32
+ # Attribute mapping from ruby-style variable name to JSON key.
33
+ def self.attribute_map
34
+ {
35
+ :'active' => :'active',
36
+ :'ca' => :'ca',
37
+ :'certificate' => :'certificate',
38
+ :'certificate_issue_date' => :'certificate_issue_date',
39
+ :'certificate_ttl_in_seconds' => :'certificate_ttl_in_seconds',
40
+ :'hostname' => :'hostname',
41
+ :'root' => :'root'
42
+ }
43
+ end
44
+
45
+ # Returns all the JSON keys this model knows about
46
+ def self.acceptable_attributes
47
+ attribute_map.values
48
+ end
49
+
50
+ # Attribute type mapping.
51
+ def self.openapi_types
52
+ {
53
+ :'active' => :'Boolean',
54
+ :'ca' => :'Array<Integer>',
55
+ :'certificate' => :'Array<Integer>',
56
+ :'certificate_issue_date' => :'Time',
57
+ :'certificate_ttl_in_seconds' => :'Integer',
58
+ :'hostname' => :'String',
59
+ :'root' => :'String'
60
+ }
61
+ end
62
+
63
+ # List of attributes with nullable: true
64
+ def self.openapi_nullable
65
+ Set.new([
66
+ ])
67
+ end
68
+
69
+ # Initializes the object
70
+ # @param [Hash] attributes Model attributes in the form of hash
71
+ def initialize(attributes = {})
72
+ if (!attributes.is_a?(Hash))
73
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::KMIPServer` initialize method"
74
+ end
75
+
76
+ # check to see if the attribute exists and convert string to symbol for hash key
77
+ attributes = attributes.each_with_object({}) { |(k, v), h|
78
+ if (!self.class.attribute_map.key?(k.to_sym))
79
+ 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
80
+ end
81
+ h[k.to_sym] = v
82
+ }
83
+
84
+ if attributes.key?(:'active')
85
+ self.active = attributes[:'active']
86
+ end
87
+
88
+ if attributes.key?(:'ca')
89
+ if (value = attributes[:'ca']).is_a?(Array)
90
+ self.ca = value
91
+ end
92
+ end
93
+
94
+ if attributes.key?(:'certificate')
95
+ if (value = attributes[:'certificate']).is_a?(Array)
96
+ self.certificate = value
97
+ end
98
+ end
99
+
100
+ if attributes.key?(:'certificate_issue_date')
101
+ self.certificate_issue_date = attributes[:'certificate_issue_date']
102
+ end
103
+
104
+ if attributes.key?(:'certificate_ttl_in_seconds')
105
+ self.certificate_ttl_in_seconds = attributes[:'certificate_ttl_in_seconds']
106
+ end
107
+
108
+ if attributes.key?(:'hostname')
109
+ self.hostname = attributes[:'hostname']
110
+ end
111
+
112
+ if attributes.key?(:'root')
113
+ self.root = attributes[:'root']
114
+ end
115
+ end
116
+
117
+ # Show invalid properties with the reasons. Usually used together with valid?
118
+ # @return Array for valid properties with the reasons
119
+ def list_invalid_properties
120
+ invalid_properties = Array.new
121
+ invalid_properties
122
+ end
123
+
124
+ # Check to see if the all the properties in the model are valid
125
+ # @return true if the model is valid
126
+ def valid?
127
+ true
128
+ end
129
+
130
+ # Checks equality by comparing each attribute.
131
+ # @param [Object] Object to be compared
132
+ def ==(o)
133
+ return true if self.equal?(o)
134
+ self.class == o.class &&
135
+ active == o.active &&
136
+ ca == o.ca &&
137
+ certificate == o.certificate &&
138
+ certificate_issue_date == o.certificate_issue_date &&
139
+ certificate_ttl_in_seconds == o.certificate_ttl_in_seconds &&
140
+ hostname == o.hostname &&
141
+ root == o.root
142
+ end
143
+
144
+ # @see the `==` method
145
+ # @param [Object] Object to be compared
146
+ def eql?(o)
147
+ self == o
148
+ end
149
+
150
+ # Calculates hash code according to all attributes.
151
+ # @return [Integer] Hash code
152
+ def hash
153
+ [active, ca, certificate, certificate_issue_date, certificate_ttl_in_seconds, hostname, root].hash
154
+ end
155
+
156
+ # Builds the object from hash
157
+ # @param [Hash] attributes Model attributes in the form of hash
158
+ # @return [Object] Returns the model itself
159
+ def self.build_from_hash(attributes)
160
+ new.build_from_hash(attributes)
161
+ end
162
+
163
+ # Builds the object from hash
164
+ # @param [Hash] attributes Model attributes in the form of hash
165
+ # @return [Object] Returns the model itself
166
+ def build_from_hash(attributes)
167
+ return nil unless attributes.is_a?(Hash)
168
+ attributes = attributes.transform_keys(&:to_sym)
169
+ self.class.openapi_types.each_pair do |key, type|
170
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
171
+ self.send("#{key}=", nil)
172
+ elsif type =~ /\AArray<(.*)>/i
173
+ # check to ensure the input is an array given that the attribute
174
+ # is documented as an array but the input is not
175
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
176
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
177
+ end
178
+ elsif !attributes[self.class.attribute_map[key]].nil?
179
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
180
+ end
181
+ end
182
+
183
+ self
184
+ end
185
+
186
+ # Deserializes the data based on type
187
+ # @param string type Data type
188
+ # @param string value Value to be deserialized
189
+ # @return [Object] Deserialized data
190
+ def _deserialize(type, value)
191
+ case type.to_sym
192
+ when :Time
193
+ Time.parse(value)
194
+ when :Date
195
+ Date.parse(value)
196
+ when :String
197
+ value.to_s
198
+ when :Integer
199
+ value.to_i
200
+ when :Float
201
+ value.to_f
202
+ when :Boolean
203
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
204
+ true
205
+ else
206
+ false
207
+ end
208
+ when :Object
209
+ # generic object (usually a Hash), return directly
210
+ value
211
+ when /\AArray<(?<inner_type>.+)>\z/
212
+ inner_type = Regexp.last_match[:inner_type]
213
+ value.map { |v| _deserialize(inner_type, v) }
214
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
215
+ k_type = Regexp.last_match[:k_type]
216
+ v_type = Regexp.last_match[:v_type]
217
+ {}.tap do |hash|
218
+ value.each do |k, v|
219
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
220
+ end
221
+ end
222
+ else # model
223
+ # models (e.g. Pet) or oneOf
224
+ klass = Akeyless.const_get(type)
225
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
226
+ end
227
+ end
228
+
229
+ # Returns the string representation of the object
230
+ # @return [String] String presentation of the object
231
+ def to_s
232
+ to_hash.to_s
233
+ end
234
+
235
+ # to_body is an alias to to_hash (backward compatibility)
236
+ # @return [Hash] Returns the object in the form of hash
237
+ def to_body
238
+ to_hash
239
+ end
240
+
241
+ # Returns the object in the form of hash
242
+ # @return [Hash] Returns the object in the form of hash
243
+ def to_hash
244
+ hash = {}
245
+ self.class.attribute_map.each_pair do |attr, param|
246
+ value = self.send(attr)
247
+ if value.nil?
248
+ is_nullable = self.class.openapi_nullable.include?(attr)
249
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
250
+ end
251
+
252
+ hash[param] = _to_hash(value)
253
+ end
254
+ hash
255
+ end
256
+
257
+ # Outputs non-array value in the form of hash
258
+ # For object, use to_hash. Otherwise, just return the value
259
+ # @param [Object] value Any valid value
260
+ # @return [Hash] Returns the value in the form of hash
261
+ def _to_hash(value)
262
+ if value.is_a?(Array)
263
+ value.compact.map { |v| _to_hash(v) }
264
+ elsif value.is_a?(Hash)
265
+ {}.tap do |hash|
266
+ value.each { |k, v| hash[k] = _to_hash(v) }
267
+ end
268
+ elsif value.respond_to? :to_hash
269
+ value.to_hash
270
+ else
271
+ value
272
+ end
273
+ end
274
+
275
+ end
276
+
277
+ end
@@ -16,20 +16,28 @@ require 'time'
16
16
  module Akeyless
17
17
  # listAuthMethods is a command that returns a list of all auth methods in the account.
18
18
  class ListAuthMethods
19
+ # Filter by auth method name or part of it
20
+ attr_accessor :filter
21
+
19
22
  # Next page reference
20
23
  attr_accessor :pagination_token
21
24
 
22
25
  # Authentication token (see `/auth` and `/configure`)
23
26
  attr_accessor :token
24
27
 
28
+ # 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, cert]
29
+ attr_accessor :type
30
+
25
31
  # The universal identity token, Required only for universal_identity authentication
26
32
  attr_accessor :uid_token
27
33
 
28
34
  # Attribute mapping from ruby-style variable name to JSON key.
29
35
  def self.attribute_map
30
36
  {
37
+ :'filter' => :'filter',
31
38
  :'pagination_token' => :'pagination-token',
32
39
  :'token' => :'token',
40
+ :'type' => :'type',
33
41
  :'uid_token' => :'uid-token'
34
42
  }
35
43
  end
@@ -42,8 +50,10 @@ module Akeyless
42
50
  # Attribute type mapping.
43
51
  def self.openapi_types
44
52
  {
53
+ :'filter' => :'String',
45
54
  :'pagination_token' => :'String',
46
55
  :'token' => :'String',
56
+ :'type' => :'Array<String>',
47
57
  :'uid_token' => :'String'
48
58
  }
49
59
  end
@@ -69,6 +79,10 @@ module Akeyless
69
79
  h[k.to_sym] = v
70
80
  }
71
81
 
82
+ if attributes.key?(:'filter')
83
+ self.filter = attributes[:'filter']
84
+ end
85
+
72
86
  if attributes.key?(:'pagination_token')
73
87
  self.pagination_token = attributes[:'pagination_token']
74
88
  end
@@ -77,6 +91,12 @@ module Akeyless
77
91
  self.token = attributes[:'token']
78
92
  end
79
93
 
94
+ if attributes.key?(:'type')
95
+ if (value = attributes[:'type']).is_a?(Array)
96
+ self.type = value
97
+ end
98
+ end
99
+
80
100
  if attributes.key?(:'uid_token')
81
101
  self.uid_token = attributes[:'uid_token']
82
102
  end
@@ -100,8 +120,10 @@ module Akeyless
100
120
  def ==(o)
101
121
  return true if self.equal?(o)
102
122
  self.class == o.class &&
123
+ filter == o.filter &&
103
124
  pagination_token == o.pagination_token &&
104
125
  token == o.token &&
126
+ type == o.type &&
105
127
  uid_token == o.uid_token
106
128
  end
107
129
 
@@ -114,7 +136,7 @@ module Akeyless
114
136
  # Calculates hash code according to all attributes.
115
137
  # @return [Integer] Hash code
116
138
  def hash
117
- [pagination_token, token, uid_token].hash
139
+ [filter, pagination_token, token, type, uid_token].hash
118
140
  end
119
141
 
120
142
  # Builds the object from hash
@@ -15,6 +15,9 @@ require 'time'
15
15
 
16
16
  module Akeyless
17
17
  class ListRoles
18
+ # Filter by item name or part of it
19
+ attr_accessor :filter
20
+
18
21
  # Next page reference
19
22
  attr_accessor :pagination_token
20
23
 
@@ -27,6 +30,7 @@ module Akeyless
27
30
  # Attribute mapping from ruby-style variable name to JSON key.
28
31
  def self.attribute_map
29
32
  {
33
+ :'filter' => :'filter',
30
34
  :'pagination_token' => :'pagination-token',
31
35
  :'token' => :'token',
32
36
  :'uid_token' => :'uid-token'
@@ -41,6 +45,7 @@ module Akeyless
41
45
  # Attribute type mapping.
42
46
  def self.openapi_types
43
47
  {
48
+ :'filter' => :'String',
44
49
  :'pagination_token' => :'String',
45
50
  :'token' => :'String',
46
51
  :'uid_token' => :'String'
@@ -68,6 +73,10 @@ module Akeyless
68
73
  h[k.to_sym] = v
69
74
  }
70
75
 
76
+ if attributes.key?(:'filter')
77
+ self.filter = attributes[:'filter']
78
+ end
79
+
71
80
  if attributes.key?(:'pagination_token')
72
81
  self.pagination_token = attributes[:'pagination_token']
73
82
  end
@@ -99,6 +108,7 @@ module Akeyless
99
108
  def ==(o)
100
109
  return true if self.equal?(o)
101
110
  self.class == o.class &&
111
+ filter == o.filter &&
102
112
  pagination_token == o.pagination_token &&
103
113
  token == o.token &&
104
114
  uid_token == o.uid_token
@@ -113,7 +123,7 @@ module Akeyless
113
123
  # Calculates hash code according to all attributes.
114
124
  # @return [Integer] Hash code
115
125
  def hash
116
- [pagination_token, token, uid_token].hash
126
+ [filter, pagination_token, token, uid_token].hash
117
127
  end
118
128
 
119
129
  # Builds the object from hash
@@ -15,6 +15,9 @@ require 'time'
15
15
 
16
16
  module Akeyless
17
17
  class ListTargets
18
+ # Filter by auth method name or part of it
19
+ attr_accessor :filter
20
+
18
21
  # Next page reference
19
22
  attr_accessor :pagination_token
20
23
 
@@ -27,6 +30,7 @@ module Akeyless
27
30
  # Attribute mapping from ruby-style variable name to JSON key.
28
31
  def self.attribute_map
29
32
  {
33
+ :'filter' => :'filter',
30
34
  :'pagination_token' => :'pagination-token',
31
35
  :'token' => :'token',
32
36
  :'uid_token' => :'uid-token'
@@ -41,6 +45,7 @@ module Akeyless
41
45
  # Attribute type mapping.
42
46
  def self.openapi_types
43
47
  {
48
+ :'filter' => :'String',
44
49
  :'pagination_token' => :'String',
45
50
  :'token' => :'String',
46
51
  :'uid_token' => :'String'
@@ -68,6 +73,10 @@ module Akeyless
68
73
  h[k.to_sym] = v
69
74
  }
70
75
 
76
+ if attributes.key?(:'filter')
77
+ self.filter = attributes[:'filter']
78
+ end
79
+
71
80
  if attributes.key?(:'pagination_token')
72
81
  self.pagination_token = attributes[:'pagination_token']
73
82
  end
@@ -99,6 +108,7 @@ module Akeyless
99
108
  def ==(o)
100
109
  return true if self.equal?(o)
101
110
  self.class == o.class &&
111
+ filter == o.filter &&
102
112
  pagination_token == o.pagination_token &&
103
113
  token == o.token &&
104
114
  uid_token == o.uid_token
@@ -113,7 +123,7 @@ module Akeyless
113
123
  # Calculates hash code according to all attributes.
114
124
  # @return [Integer] Hash code
115
125
  def hash
116
- [pagination_token, token, uid_token].hash
126
+ [filter, pagination_token, token, uid_token].hash
117
127
  end
118
128
 
119
129
  # Builds the object from hash
@@ -34,6 +34,12 @@ module Akeyless
34
34
  # Issuer URL
35
35
  attr_accessor :issuer
36
36
 
37
+ # A list of required scopes to request from the oidc provider, and to check on the token
38
+ attr_accessor :required_scopes
39
+
40
+ # A prefix to add to the required scopes (for example, azures' Application ID URI)
41
+ attr_accessor :required_scopes_prefix
42
+
37
43
  # A unique identifier to distinguish different users
38
44
  attr_accessor :unique_identifier
39
45
 
@@ -46,6 +52,8 @@ module Akeyless
46
52
  :'client_secret' => :'client_secret',
47
53
  :'is_internal' => :'is_internal',
48
54
  :'issuer' => :'issuer',
55
+ :'required_scopes' => :'required_scopes',
56
+ :'required_scopes_prefix' => :'required_scopes_prefix',
49
57
  :'unique_identifier' => :'unique_identifier'
50
58
  }
51
59
  end
@@ -64,6 +72,8 @@ module Akeyless
64
72
  :'client_secret' => :'String',
65
73
  :'is_internal' => :'Boolean',
66
74
  :'issuer' => :'String',
75
+ :'required_scopes' => :'Array<String>',
76
+ :'required_scopes_prefix' => :'String',
67
77
  :'unique_identifier' => :'String'
68
78
  }
69
79
  end
@@ -117,6 +127,16 @@ module Akeyless
117
127
  self.issuer = attributes[:'issuer']
118
128
  end
119
129
 
130
+ if attributes.key?(:'required_scopes')
131
+ if (value = attributes[:'required_scopes']).is_a?(Array)
132
+ self.required_scopes = value
133
+ end
134
+ end
135
+
136
+ if attributes.key?(:'required_scopes_prefix')
137
+ self.required_scopes_prefix = attributes[:'required_scopes_prefix']
138
+ end
139
+
120
140
  if attributes.key?(:'unique_identifier')
121
141
  self.unique_identifier = attributes[:'unique_identifier']
122
142
  end
@@ -146,6 +166,8 @@ module Akeyless
146
166
  client_secret == o.client_secret &&
147
167
  is_internal == o.is_internal &&
148
168
  issuer == o.issuer &&
169
+ required_scopes == o.required_scopes &&
170
+ required_scopes_prefix == o.required_scopes_prefix &&
149
171
  unique_identifier == o.unique_identifier
150
172
  end
151
173
 
@@ -158,7 +180,7 @@ module Akeyless
158
180
  # Calculates hash code according to all attributes.
159
181
  # @return [Integer] Hash code
160
182
  def hash
161
- [allowed_redirect_uris, bound_claims, client_id, client_secret, is_internal, issuer, unique_identifier].hash
183
+ [allowed_redirect_uris, bound_claims, client_id, client_secret, is_internal, issuer, required_scopes, required_scopes_prefix, unique_identifier].hash
162
184
  end
163
185
 
164
186
  # 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