akeyless 5.0.7 → 5.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +12 -1
  3. data/docs/Auth.md +4 -0
  4. data/docs/AuthOutput.md +2 -0
  5. data/docs/CreateRole.md +2 -0
  6. data/docs/DSProducerDetails.md +10 -0
  7. data/docs/DynamicSecretCreateOpenAI.md +40 -0
  8. data/docs/DynamicSecretUpdateOpenAI.md +42 -0
  9. data/docs/EsmGetSecretOutput.md +2 -0
  10. data/docs/EventForwarderCreateTeams.md +44 -0
  11. data/docs/EventForwarderUpdateTeams.md +46 -0
  12. data/docs/GatewayCreateAllowedAccess.md +1 -1
  13. data/docs/GatewayUpdateAllowedAccess.md +1 -1
  14. data/docs/GeminiTargetDetails.md +2 -2
  15. data/docs/GetCertChallenge.md +22 -0
  16. data/docs/GetCertChallengeOutput.md +18 -0
  17. data/docs/NotiForwarder.md +2 -0
  18. data/docs/OpenAITargetDetails.md +5 -5
  19. data/docs/PathRule.md +2 -0
  20. data/docs/ReverseRBACClient.md +2 -0
  21. data/docs/RoleAuthMethodAssociation.md +2 -0
  22. data/docs/SecretInfo.md +2 -0
  23. data/docs/SharingItemFullInfo.md +2 -0
  24. data/docs/TargetItemAssociation.md +2 -0
  25. data/docs/UpdateRole.md +2 -0
  26. data/docs/UscCreate.md +2 -0
  27. data/docs/UscGetSecretOutput.md +2 -0
  28. data/docs/UscUpdate.md +2 -0
  29. data/docs/V2Api.md +315 -0
  30. data/lib/akeyless/api/v2_api.rb +320 -0
  31. data/lib/akeyless/models/auth.rb +21 -1
  32. data/lib/akeyless/models/auth_output.rb +10 -1
  33. data/lib/akeyless/models/create_role.rb +11 -1
  34. data/lib/akeyless/models/ds_producer_details.rb +46 -1
  35. data/lib/akeyless/models/dynamic_secret_create_open_ai.rb +339 -0
  36. data/lib/akeyless/models/dynamic_secret_update_open_ai.rb +349 -0
  37. data/lib/akeyless/models/esm_get_secret_output.rb +10 -1
  38. data/lib/akeyless/models/event_forwarder_create_teams.rb +385 -0
  39. data/lib/akeyless/models/event_forwarder_update_teams.rb +391 -0
  40. data/lib/akeyless/models/gateway_create_allowed_access.rb +1 -1
  41. data/lib/akeyless/models/gateway_update_allowed_access.rb +1 -1
  42. data/lib/akeyless/models/gemini_target_details.rb +7 -7
  43. data/lib/akeyless/models/get_cert_challenge.rb +238 -0
  44. data/lib/akeyless/models/get_cert_challenge_output.rb +214 -0
  45. data/lib/akeyless/models/noti_forwarder.rb +10 -1
  46. data/lib/akeyless/models/open_ai_target_details.rb +19 -19
  47. data/lib/akeyless/models/path_rule.rb +11 -1
  48. data/lib/akeyless/models/reverse_rbac_client.rb +10 -1
  49. data/lib/akeyless/models/role_auth_method_association.rb +10 -1
  50. data/lib/akeyless/models/secret_info.rb +10 -1
  51. data/lib/akeyless/models/sharing_item_full_info.rb +11 -1
  52. data/lib/akeyless/models/target_item_association.rb +10 -1
  53. data/lib/akeyless/models/update_role.rb +11 -1
  54. data/lib/akeyless/models/usc_create.rb +11 -1
  55. data/lib/akeyless/models/usc_get_secret_output.rb +10 -1
  56. data/lib/akeyless/models/usc_update.rb +11 -1
  57. data/lib/akeyless/version.rb +1 -1
  58. data/lib/akeyless.rb +6 -0
  59. data/spec/models/dynamic_secret_create_open_ai_spec.rb +102 -0
  60. data/spec/models/dynamic_secret_update_open_ai_spec.rb +108 -0
  61. data/spec/models/event_forwarder_create_teams_spec.rb +114 -0
  62. data/spec/models/event_forwarder_update_teams_spec.rb +120 -0
  63. data/spec/models/get_cert_challenge_output_spec.rb +36 -0
  64. data/spec/models/get_cert_challenge_spec.rb +48 -0
  65. metadata +25 -1
@@ -0,0 +1,214 @@
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: 3.0
7
+ Contact: support@akeyless.io
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.10.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Akeyless
17
+ class GetCertChallengeOutput
18
+ attr_accessor :challenge
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'challenge' => :'challenge'
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
+ :'challenge' => :'String'
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::GetCertChallengeOutput` 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::GetCertChallengeOutput`. 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?(:'challenge')
61
+ self.challenge = attributes[:'challenge']
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
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
69
+ invalid_properties = Array.new
70
+ invalid_properties
71
+ end
72
+
73
+ # Check to see if the all the properties in the model are valid
74
+ # @return true if the model is valid
75
+ def valid?
76
+ warn '[DEPRECATED] the `valid?` method is obsolete'
77
+ true
78
+ end
79
+
80
+ # Checks equality by comparing each attribute.
81
+ # @param [Object] Object to be compared
82
+ def ==(o)
83
+ return true if self.equal?(o)
84
+ self.class == o.class &&
85
+ challenge == o.challenge
86
+ end
87
+
88
+ # @see the `==` method
89
+ # @param [Object] Object to be compared
90
+ def eql?(o)
91
+ self == o
92
+ end
93
+
94
+ # Calculates hash code according to all attributes.
95
+ # @return [Integer] Hash code
96
+ def hash
97
+ [challenge].hash
98
+ end
99
+
100
+ # Builds the object from hash
101
+ # @param [Hash] attributes Model attributes in the form of hash
102
+ # @return [Object] Returns the model itself
103
+ def self.build_from_hash(attributes)
104
+ return nil unless attributes.is_a?(Hash)
105
+ attributes = attributes.transform_keys(&:to_sym)
106
+ transformed_hash = {}
107
+ openapi_types.each_pair do |key, type|
108
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
109
+ transformed_hash["#{key}"] = nil
110
+ elsif type =~ /\AArray<(.*)>/i
111
+ # check to ensure the input is an array given that the attribute
112
+ # is documented as an array but the input is not
113
+ if attributes[attribute_map[key]].is_a?(Array)
114
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
115
+ end
116
+ elsif !attributes[attribute_map[key]].nil?
117
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
118
+ end
119
+ end
120
+ new(transformed_hash)
121
+ end
122
+
123
+ # Deserializes the data based on type
124
+ # @param string type Data type
125
+ # @param string value Value to be deserialized
126
+ # @return [Object] Deserialized data
127
+ def self._deserialize(type, value)
128
+ case type.to_sym
129
+ when :Time
130
+ Time.parse(value)
131
+ when :Date
132
+ Date.parse(value)
133
+ when :String
134
+ value.to_s
135
+ when :Integer
136
+ value.to_i
137
+ when :Float
138
+ value.to_f
139
+ when :Boolean
140
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
141
+ true
142
+ else
143
+ false
144
+ end
145
+ when :Object
146
+ # generic object (usually a Hash), return directly
147
+ value
148
+ when /\AArray<(?<inner_type>.+)>\z/
149
+ inner_type = Regexp.last_match[:inner_type]
150
+ value.map { |v| _deserialize(inner_type, v) }
151
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
152
+ k_type = Regexp.last_match[:k_type]
153
+ v_type = Regexp.last_match[:v_type]
154
+ {}.tap do |hash|
155
+ value.each do |k, v|
156
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
157
+ end
158
+ end
159
+ else # model
160
+ # models (e.g. Pet) or oneOf
161
+ klass = Akeyless.const_get(type)
162
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
163
+ end
164
+ end
165
+
166
+ # Returns the string representation of the object
167
+ # @return [String] String presentation of the object
168
+ def to_s
169
+ to_hash.to_s
170
+ end
171
+
172
+ # to_body is an alias to to_hash (backward compatibility)
173
+ # @return [Hash] Returns the object in the form of hash
174
+ def to_body
175
+ to_hash
176
+ end
177
+
178
+ # Returns the object in the form of hash
179
+ # @return [Hash] Returns the object in the form of hash
180
+ def to_hash
181
+ hash = {}
182
+ self.class.attribute_map.each_pair do |attr, param|
183
+ value = self.send(attr)
184
+ if value.nil?
185
+ is_nullable = self.class.openapi_nullable.include?(attr)
186
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
187
+ end
188
+
189
+ hash[param] = _to_hash(value)
190
+ end
191
+ hash
192
+ end
193
+
194
+ # Outputs non-array value in the form of hash
195
+ # For object, use to_hash. Otherwise, just return the value
196
+ # @param [Object] value Any valid value
197
+ # @return [Hash] Returns the value in the form of hash
198
+ def _to_hash(value)
199
+ if value.is_a?(Array)
200
+ value.compact.map { |v| _to_hash(v) }
201
+ elsif value.is_a?(Hash)
202
+ {}.tap do |hash|
203
+ value.each { |k, v| hash[k] = _to_hash(v) }
204
+ end
205
+ elsif value.respond_to? :to_hash
206
+ value.to_hash
207
+ else
208
+ value
209
+ end
210
+ end
211
+
212
+ end
213
+
214
+ end
@@ -58,6 +58,8 @@ module Akeyless
58
58
 
59
59
  attr_accessor :slack_noti_forwarder_public_details
60
60
 
61
+ attr_accessor :teams_noti_forwarder_public_details
62
+
61
63
  attr_accessor :timespan_in_seconds
62
64
 
63
65
  attr_accessor :to_emails
@@ -95,6 +97,7 @@ module Akeyless
95
97
  :'protection_key' => :'protection_key',
96
98
  :'runner_type' => :'runner_type',
97
99
  :'slack_noti_forwarder_public_details' => :'slack_noti_forwarder_public_details',
100
+ :'teams_noti_forwarder_public_details' => :'teams_noti_forwarder_public_details',
98
101
  :'timespan_in_seconds' => :'timespan_in_seconds',
99
102
  :'to_emails' => :'to_emails',
100
103
  :'user_email' => :'user_email',
@@ -133,6 +136,7 @@ module Akeyless
133
136
  :'protection_key' => :'String',
134
137
  :'runner_type' => :'String',
135
138
  :'slack_noti_forwarder_public_details' => :'Object',
139
+ :'teams_noti_forwarder_public_details' => :'Object',
136
140
  :'timespan_in_seconds' => :'Integer',
137
141
  :'to_emails' => :'Array<EmailEntry>',
138
142
  :'user_email' => :'String',
@@ -255,6 +259,10 @@ module Akeyless
255
259
  self.slack_noti_forwarder_public_details = attributes[:'slack_noti_forwarder_public_details']
256
260
  end
257
261
 
262
+ if attributes.key?(:'teams_noti_forwarder_public_details')
263
+ self.teams_noti_forwarder_public_details = attributes[:'teams_noti_forwarder_public_details']
264
+ end
265
+
258
266
  if attributes.key?(:'timespan_in_seconds')
259
267
  self.timespan_in_seconds = attributes[:'timespan_in_seconds']
260
268
  end
@@ -323,6 +331,7 @@ module Akeyless
323
331
  protection_key == o.protection_key &&
324
332
  runner_type == o.runner_type &&
325
333
  slack_noti_forwarder_public_details == o.slack_noti_forwarder_public_details &&
334
+ teams_noti_forwarder_public_details == o.teams_noti_forwarder_public_details &&
326
335
  timespan_in_seconds == o.timespan_in_seconds &&
327
336
  to_emails == o.to_emails &&
328
337
  user_email == o.user_email &&
@@ -340,7 +349,7 @@ module Akeyless
340
349
  # Calculates hash code according to all attributes.
341
350
  # @return [Integer] Hash code
342
351
  def hash
343
- [auth_type, client_id, client_permissions, comment, creation_date, endpoint, event_types, gateway_cluster_id, include_error, is_enabled, last_version, modification_date, noti_forwarder_id, noti_forwarder_name, noti_forwarder_type, noti_forwarder_versions, override_url, paths, protection_key, runner_type, slack_noti_forwarder_public_details, timespan_in_seconds, to_emails, user_email, username, webhook_noti_forwarder_public_details, with_customer_fragment].hash
352
+ [auth_type, client_id, client_permissions, comment, creation_date, endpoint, event_types, gateway_cluster_id, include_error, is_enabled, last_version, modification_date, noti_forwarder_id, noti_forwarder_name, noti_forwarder_type, noti_forwarder_versions, override_url, paths, protection_key, runner_type, slack_noti_forwarder_public_details, teams_noti_forwarder_public_details, timespan_in_seconds, to_emails, user_email, username, webhook_noti_forwarder_public_details, with_customer_fragment].hash
344
353
  end
345
354
 
346
355
  # Builds the object from hash
@@ -20,20 +20,20 @@ module Akeyless
20
20
 
21
21
  attr_accessor :api_key_id
22
22
 
23
- attr_accessor :base_url
24
-
25
- attr_accessor :model
23
+ attr_accessor :openai_url
26
24
 
27
25
  attr_accessor :organization_id
28
26
 
27
+ attr_accessor :project_id
28
+
29
29
  # Attribute mapping from ruby-style variable name to JSON key.
30
30
  def self.attribute_map
31
31
  {
32
32
  :'api_key' => :'api_key',
33
33
  :'api_key_id' => :'api_key_id',
34
- :'base_url' => :'base_url',
35
- :'model' => :'model',
36
- :'organization_id' => :'organization_id'
34
+ :'openai_url' => :'openai_url',
35
+ :'organization_id' => :'organization_id',
36
+ :'project_id' => :'project_id'
37
37
  }
38
38
  end
39
39
 
@@ -47,9 +47,9 @@ module Akeyless
47
47
  {
48
48
  :'api_key' => :'String',
49
49
  :'api_key_id' => :'String',
50
- :'base_url' => :'String',
51
- :'model' => :'String',
52
- :'organization_id' => :'String'
50
+ :'openai_url' => :'String',
51
+ :'organization_id' => :'String',
52
+ :'project_id' => :'String'
53
53
  }
54
54
  end
55
55
 
@@ -82,17 +82,17 @@ module Akeyless
82
82
  self.api_key_id = attributes[:'api_key_id']
83
83
  end
84
84
 
85
- if attributes.key?(:'base_url')
86
- self.base_url = attributes[:'base_url']
87
- end
88
-
89
- if attributes.key?(:'model')
90
- self.model = attributes[:'model']
85
+ if attributes.key?(:'openai_url')
86
+ self.openai_url = attributes[:'openai_url']
91
87
  end
92
88
 
93
89
  if attributes.key?(:'organization_id')
94
90
  self.organization_id = attributes[:'organization_id']
95
91
  end
92
+
93
+ if attributes.key?(:'project_id')
94
+ self.project_id = attributes[:'project_id']
95
+ end
96
96
  end
97
97
 
98
98
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -117,9 +117,9 @@ module Akeyless
117
117
  self.class == o.class &&
118
118
  api_key == o.api_key &&
119
119
  api_key_id == o.api_key_id &&
120
- base_url == o.base_url &&
121
- model == o.model &&
122
- organization_id == o.organization_id
120
+ openai_url == o.openai_url &&
121
+ organization_id == o.organization_id &&
122
+ project_id == o.project_id
123
123
  end
124
124
 
125
125
  # @see the `==` method
@@ -131,7 +131,7 @@ module Akeyless
131
131
  # Calculates hash code according to all attributes.
132
132
  # @return [Integer] Hash code
133
133
  def hash
134
- [api_key, api_key_id, base_url, model, organization_id].hash
134
+ [api_key, api_key_id, openai_url, organization_id, project_id].hash
135
135
  end
136
136
 
137
137
  # Builds the object from hash
@@ -25,6 +25,9 @@ module Akeyless
25
25
  # flag that indicate that this rule is allowed to be access RemainingAccess of times.
26
26
  attr_accessor :is_limit_access
27
27
 
28
+ # The item id this rule directly refers to (when applicable)
29
+ attr_accessor :item_id
30
+
28
31
  attr_accessor :number_of_access_used
29
32
 
30
33
  attr_accessor :number_of_allowed_access
@@ -45,6 +48,7 @@ module Akeyless
45
48
  :'capabilities' => :'capabilities',
46
49
  :'cb' => :'cb',
47
50
  :'is_limit_access' => :'is_limit_access',
51
+ :'item_id' => :'item_id',
48
52
  :'number_of_access_used' => :'number_of_access_used',
49
53
  :'number_of_allowed_access' => :'number_of_allowed_access',
50
54
  :'path' => :'path',
@@ -66,6 +70,7 @@ module Akeyless
66
70
  :'capabilities' => :'Array<String>',
67
71
  :'cb' => :'Integer',
68
72
  :'is_limit_access' => :'Boolean',
73
+ :'item_id' => :'Integer',
69
74
  :'number_of_access_used' => :'Integer',
70
75
  :'number_of_allowed_access' => :'Integer',
71
76
  :'path' => :'String',
@@ -116,6 +121,10 @@ module Akeyless
116
121
  self.is_limit_access = attributes[:'is_limit_access']
117
122
  end
118
123
 
124
+ if attributes.key?(:'item_id')
125
+ self.item_id = attributes[:'item_id']
126
+ end
127
+
119
128
  if attributes.key?(:'number_of_access_used')
120
129
  self.number_of_access_used = attributes[:'number_of_access_used']
121
130
  end
@@ -165,6 +174,7 @@ module Akeyless
165
174
  capabilities == o.capabilities &&
166
175
  cb == o.cb &&
167
176
  is_limit_access == o.is_limit_access &&
177
+ item_id == o.item_id &&
168
178
  number_of_access_used == o.number_of_access_used &&
169
179
  number_of_allowed_access == o.number_of_allowed_access &&
170
180
  path == o.path &&
@@ -182,7 +192,7 @@ module Akeyless
182
192
  # Calculates hash code according to all attributes.
183
193
  # @return [Integer] Hash code
184
194
  def hash
185
- [assigners, capabilities, cb, is_limit_access, number_of_access_used, number_of_allowed_access, path, start_time, ttl, type].hash
195
+ [assigners, capabilities, cb, is_limit_access, item_id, number_of_access_used, number_of_allowed_access, path, start_time, ttl, type].hash
186
196
  end
187
197
 
188
198
  # Builds the object from hash
@@ -17,12 +17,15 @@ module Akeyless
17
17
  class ReverseRBACClient
18
18
  attr_accessor :assocs
19
19
 
20
+ attr_accessor :auth_method_id
21
+
20
22
  attr_accessor :auth_method_name
21
23
 
22
24
  # Attribute mapping from ruby-style variable name to JSON key.
23
25
  def self.attribute_map
24
26
  {
25
27
  :'assocs' => :'assocs',
28
+ :'auth_method_id' => :'auth_method_id',
26
29
  :'auth_method_name' => :'auth_method_name'
27
30
  }
28
31
  end
@@ -36,6 +39,7 @@ module Akeyless
36
39
  def self.openapi_types
37
40
  {
38
41
  :'assocs' => :'Array<AuthMethodRoleAssociation>',
42
+ :'auth_method_id' => :'Integer',
39
43
  :'auth_method_name' => :'String'
40
44
  }
41
45
  end
@@ -67,6 +71,10 @@ module Akeyless
67
71
  end
68
72
  end
69
73
 
74
+ if attributes.key?(:'auth_method_id')
75
+ self.auth_method_id = attributes[:'auth_method_id']
76
+ end
77
+
70
78
  if attributes.key?(:'auth_method_name')
71
79
  self.auth_method_name = attributes[:'auth_method_name']
72
80
  end
@@ -93,6 +101,7 @@ module Akeyless
93
101
  return true if self.equal?(o)
94
102
  self.class == o.class &&
95
103
  assocs == o.assocs &&
104
+ auth_method_id == o.auth_method_id &&
96
105
  auth_method_name == o.auth_method_name
97
106
  end
98
107
 
@@ -105,7 +114,7 @@ module Akeyless
105
114
  # Calculates hash code according to all attributes.
106
115
  # @return [Integer] Hash code
107
116
  def hash
108
- [assocs, auth_method_name].hash
117
+ [assocs, auth_method_id, auth_method_name].hash
109
118
  end
110
119
 
111
120
  # Builds the object from hash
@@ -20,6 +20,8 @@ module Akeyless
20
20
 
21
21
  attr_accessor :auth_method_access_id
22
22
 
23
+ attr_accessor :auth_method_id
24
+
23
25
  attr_accessor :auth_method_name
24
26
 
25
27
  attr_accessor :auth_method_sub_claims
@@ -33,6 +35,7 @@ module Akeyless
33
35
  {
34
36
  :'assoc_id' => :'assoc_id',
35
37
  :'auth_method_access_id' => :'auth_method_access_id',
38
+ :'auth_method_id' => :'auth_method_id',
36
39
  :'auth_method_name' => :'auth_method_name',
37
40
  :'auth_method_sub_claims' => :'auth_method_sub_claims',
38
41
  :'is_subclaims_with_operator' => :'is_subclaims_with_operator',
@@ -50,6 +53,7 @@ module Akeyless
50
53
  {
51
54
  :'assoc_id' => :'String',
52
55
  :'auth_method_access_id' => :'String',
56
+ :'auth_method_id' => :'Integer',
53
57
  :'auth_method_name' => :'String',
54
58
  :'auth_method_sub_claims' => :'Hash<String, Array<String>>',
55
59
  :'is_subclaims_with_operator' => :'Boolean',
@@ -86,6 +90,10 @@ module Akeyless
86
90
  self.auth_method_access_id = attributes[:'auth_method_access_id']
87
91
  end
88
92
 
93
+ if attributes.key?(:'auth_method_id')
94
+ self.auth_method_id = attributes[:'auth_method_id']
95
+ end
96
+
89
97
  if attributes.key?(:'auth_method_name')
90
98
  self.auth_method_name = attributes[:'auth_method_name']
91
99
  end
@@ -127,6 +135,7 @@ module Akeyless
127
135
  self.class == o.class &&
128
136
  assoc_id == o.assoc_id &&
129
137
  auth_method_access_id == o.auth_method_access_id &&
138
+ auth_method_id == o.auth_method_id &&
130
139
  auth_method_name == o.auth_method_name &&
131
140
  auth_method_sub_claims == o.auth_method_sub_claims &&
132
141
  is_subclaims_with_operator == o.is_subclaims_with_operator &&
@@ -142,7 +151,7 @@ module Akeyless
142
151
  # Calculates hash code according to all attributes.
143
152
  # @return [Integer] Hash code
144
153
  def hash
145
- [assoc_id, auth_method_access_id, auth_method_name, auth_method_sub_claims, is_subclaims_with_operator, sub_claims_case_sensitive].hash
154
+ [assoc_id, auth_method_access_id, auth_method_id, auth_method_name, auth_method_sub_claims, is_subclaims_with_operator, sub_claims_case_sensitive].hash
146
155
  end
147
156
 
148
157
  # Builds the object from hash
@@ -21,6 +21,8 @@ module Akeyless
21
21
 
22
22
  attr_accessor :expiration
23
23
 
24
+ attr_accessor :key_id
25
+
24
26
  attr_accessor :last_retrieved
25
27
 
26
28
  attr_accessor :location
@@ -45,6 +47,7 @@ module Akeyless
45
47
  :'created' => :'created',
46
48
  :'description' => :'description',
47
49
  :'expiration' => :'expiration',
50
+ :'key_id' => :'key_id',
48
51
  :'last_retrieved' => :'last_retrieved',
49
52
  :'location' => :'location',
50
53
  :'name' => :'name',
@@ -68,6 +71,7 @@ module Akeyless
68
71
  :'created' => :'Time',
69
72
  :'description' => :'String',
70
73
  :'expiration' => :'Time',
74
+ :'key_id' => :'String',
71
75
  :'last_retrieved' => :'Time',
72
76
  :'location' => :'Object',
73
77
  :'name' => :'String',
@@ -114,6 +118,10 @@ module Akeyless
114
118
  self.expiration = attributes[:'expiration']
115
119
  end
116
120
 
121
+ if attributes.key?(:'key_id')
122
+ self.key_id = attributes[:'key_id']
123
+ end
124
+
117
125
  if attributes.key?(:'last_retrieved')
118
126
  self.last_retrieved = attributes[:'last_retrieved']
119
127
  end
@@ -176,6 +184,7 @@ module Akeyless
176
184
  created == o.created &&
177
185
  description == o.description &&
178
186
  expiration == o.expiration &&
187
+ key_id == o.key_id &&
179
188
  last_retrieved == o.last_retrieved &&
180
189
  location == o.location &&
181
190
  name == o.name &&
@@ -196,7 +205,7 @@ module Akeyless
196
205
  # Calculates hash code according to all attributes.
197
206
  # @return [Integer] Hash code
198
207
  def hash
199
- [created, description, expiration, last_retrieved, location, name, secret_id, status, tags, thumbprint, type, version].hash
208
+ [created, description, expiration, key_id, last_retrieved, location, name, secret_id, status, tags, thumbprint, type, version].hash
200
209
  end
201
210
 
202
211
  # Builds the object from hash
@@ -25,6 +25,9 @@ module Akeyless
25
25
  # flag that indicate that this rule is allowed to be access RemainingAccess of times.
26
26
  attr_accessor :is_limit_access
27
27
 
28
+ # The item id this rule directly refers to (when applicable)
29
+ attr_accessor :item_id
30
+
28
31
  attr_accessor :name
29
32
 
30
33
  attr_accessor :number_of_access_used
@@ -47,6 +50,7 @@ module Akeyless
47
50
  :'capabilities' => :'capabilities',
48
51
  :'cb' => :'cb',
49
52
  :'is_limit_access' => :'is_limit_access',
53
+ :'item_id' => :'item_id',
50
54
  :'name' => :'name',
51
55
  :'number_of_access_used' => :'number_of_access_used',
52
56
  :'number_of_allowed_access' => :'number_of_allowed_access',
@@ -69,6 +73,7 @@ module Akeyless
69
73
  :'capabilities' => :'Array<String>',
70
74
  :'cb' => :'Integer',
71
75
  :'is_limit_access' => :'Boolean',
76
+ :'item_id' => :'Integer',
72
77
  :'name' => :'String',
73
78
  :'number_of_access_used' => :'Integer',
74
79
  :'number_of_allowed_access' => :'Integer',
@@ -120,6 +125,10 @@ module Akeyless
120
125
  self.is_limit_access = attributes[:'is_limit_access']
121
126
  end
122
127
 
128
+ if attributes.key?(:'item_id')
129
+ self.item_id = attributes[:'item_id']
130
+ end
131
+
123
132
  if attributes.key?(:'name')
124
133
  self.name = attributes[:'name']
125
134
  end
@@ -173,6 +182,7 @@ module Akeyless
173
182
  capabilities == o.capabilities &&
174
183
  cb == o.cb &&
175
184
  is_limit_access == o.is_limit_access &&
185
+ item_id == o.item_id &&
176
186
  name == o.name &&
177
187
  number_of_access_used == o.number_of_access_used &&
178
188
  number_of_allowed_access == o.number_of_allowed_access &&
@@ -191,7 +201,7 @@ module Akeyless
191
201
  # Calculates hash code according to all attributes.
192
202
  # @return [Integer] Hash code
193
203
  def hash
194
- [assigners, capabilities, cb, is_limit_access, name, number_of_access_used, number_of_allowed_access, path, start_time, ttl, type].hash
204
+ [assigners, capabilities, cb, is_limit_access, item_id, name, number_of_access_used, number_of_allowed_access, path, start_time, ttl, type].hash
195
205
  end
196
206
 
197
207
  # Builds the object from hash
@@ -22,6 +22,8 @@ module Akeyless
22
22
 
23
23
  attr_accessor :cluster_id
24
24
 
25
+ attr_accessor :item_id
26
+
25
27
  attr_accessor :item_name
26
28
 
27
29
  attr_accessor :item_type
@@ -34,6 +36,7 @@ module Akeyless
34
36
  :'assoc_id' => :'assoc_id',
35
37
  :'attributes' => :'attributes',
36
38
  :'cluster_id' => :'cluster_id',
39
+ :'item_id' => :'item_id',
37
40
  :'item_name' => :'item_name',
38
41
  :'item_type' => :'item_type',
39
42
  :'relationship' => :'relationship'
@@ -51,6 +54,7 @@ module Akeyless
51
54
  :'assoc_id' => :'String',
52
55
  :'attributes' => :'Hash<String, String>',
53
56
  :'cluster_id' => :'Integer',
57
+ :'item_id' => :'Integer',
54
58
  :'item_name' => :'String',
55
59
  :'item_type' => :'String',
56
60
  :'relationship' => :'String'
@@ -92,6 +96,10 @@ module Akeyless
92
96
  self.cluster_id = attributes[:'cluster_id']
93
97
  end
94
98
 
99
+ if attributes.key?(:'item_id')
100
+ self.item_id = attributes[:'item_id']
101
+ end
102
+
95
103
  if attributes.key?(:'item_name')
96
104
  self.item_name = attributes[:'item_name']
97
105
  end
@@ -128,6 +136,7 @@ module Akeyless
128
136
  assoc_id == o.assoc_id &&
129
137
  attributes == o.attributes &&
130
138
  cluster_id == o.cluster_id &&
139
+ item_id == o.item_id &&
131
140
  item_name == o.item_name &&
132
141
  item_type == o.item_type &&
133
142
  relationship == o.relationship
@@ -142,7 +151,7 @@ module Akeyless
142
151
  # Calculates hash code according to all attributes.
143
152
  # @return [Integer] Hash code
144
153
  def hash
145
- [assoc_id, attributes, cluster_id, item_name, item_type, relationship].hash
154
+ [assoc_id, attributes, cluster_id, item_id, item_name, item_type, relationship].hash
146
155
  end
147
156
 
148
157
  # Builds the object from hash