akeyless 2.20.1 → 2.20.2

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 (52) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -3
  3. data/docs/AuthMethodRoleAssociation.md +2 -0
  4. data/docs/CreateAuthMethodOIDC.md +2 -0
  5. data/docs/CreateSecret.md +1 -1
  6. data/docs/DeleteItem.md +1 -1
  7. data/docs/ExportClassicKey.md +26 -0
  8. data/docs/ExportClassicKeyOutput.md +20 -0
  9. data/docs/GatewayCreateMigration.md +0 -8
  10. data/docs/GatewayUpdateMigration.md +0 -8
  11. data/docs/GetSecretValue.md +1 -3
  12. data/docs/ListItems.md +1 -1
  13. data/docs/MigrationGeneral.md +3 -1
  14. data/docs/OIDCAccessRules.md +2 -0
  15. data/docs/ReverseRBACClient.md +0 -2
  16. data/docs/RotateSecret.md +1 -1
  17. data/docs/ShareItem.md +34 -0
  18. data/docs/SmInfo.md +3 -3
  19. data/docs/SraInfo.md +3 -3
  20. data/docs/UpdateAuthMethodOIDC.md +2 -0
  21. data/docs/UpdateItem.md +1 -1
  22. data/docs/UpdateSecretVal.md +1 -1
  23. data/docs/V2Api.md +125 -0
  24. data/docs/VaultlessTokenizerInfo.md +1 -1
  25. data/lib/akeyless/api/v2_api.rb +128 -0
  26. data/lib/akeyless/models/auth_method_role_association.rb +12 -1
  27. data/lib/akeyless/models/create_auth_method_oidc.rb +11 -1
  28. data/lib/akeyless/models/create_secret.rb +2 -0
  29. data/lib/akeyless/models/delete_item.rb +2 -0
  30. data/lib/akeyless/models/export_classic_key.rb +266 -0
  31. data/lib/akeyless/models/export_classic_key_output.rb +228 -0
  32. data/lib/akeyless/models/gateway_create_migration.rb +1 -39
  33. data/lib/akeyless/models/gateway_update_migration.rb +1 -39
  34. data/lib/akeyless/models/get_secret_value.rb +3 -10
  35. data/lib/akeyless/models/list_items.rb +2 -0
  36. data/lib/akeyless/models/migration_general.rb +13 -4
  37. data/lib/akeyless/models/oidc_access_rules.rb +11 -1
  38. data/lib/akeyless/models/reverse_rbac_client.rb +1 -12
  39. data/lib/akeyless/models/rotate_secret.rb +1 -1
  40. data/lib/akeyless/models/share_item.rb +316 -0
  41. data/lib/akeyless/models/sm_info.rb +8 -7
  42. data/lib/akeyless/models/sra_info.rb +8 -7
  43. data/lib/akeyless/models/update_auth_method_oidc.rb +11 -1
  44. data/lib/akeyless/models/update_item.rb +2 -0
  45. data/lib/akeyless/models/update_secret_val.rb +2 -0
  46. data/lib/akeyless/models/vaultless_tokenizer_info.rb +2 -4
  47. data/lib/akeyless/version.rb +1 -1
  48. data/lib/akeyless.rb +3 -2
  49. data/spec/models/export_classic_key_output_spec.rb +40 -0
  50. data/spec/models/export_classic_key_spec.rb +58 -0
  51. data/spec/models/share_item_spec.rb +82 -0
  52. metadata +530 -518
@@ -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 ExportClassicKeyOutput
18
+ attr_accessor :certificate_pem
19
+
20
+ attr_accessor :key
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'certificate_pem' => :'certificatePem',
26
+ :'key' => :'key'
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
+ :'certificate_pem' => :'String',
39
+ :'key' => :'String'
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::ExportClassicKeyOutput` 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::ExportClassicKeyOutput`. 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?(:'certificate_pem')
65
+ self.certificate_pem = attributes[:'certificate_pem']
66
+ end
67
+
68
+ if attributes.key?(:'key')
69
+ self.key = attributes[:'key']
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
+ certificate_pem == o.certificate_pem &&
92
+ key == o.key
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
+ [certificate_pem, key].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
@@ -31,14 +31,6 @@ module Akeyless
31
31
  # 1Password list of vault to get the items from
32
32
  attr_accessor :_1password_vaults
33
33
 
34
- attr_accessor :ad_auto_rotate_boolean
35
-
36
- attr_accessor :ad_discover_local_users_boolean
37
-
38
- attr_accessor :ad_local_users_ignore_list
39
-
40
- attr_accessor :ad_sra_enable_rdp_boolean
41
-
42
34
  # Enable/Disable automatic/recurrent rotation for migrated secrets. Default is false: only manual rotation is allowed for migrated secrets. If set to true, this command should be combined with --ad-rotation-interval and --ad-rotation-hour parameters (Relevant only for Active Directory migration)
43
35
  attr_accessor :ad_auto_rotate
44
36
 
@@ -176,10 +168,6 @@ module Akeyless
176
168
  :'_1password_secret_key' => :'1password-secret-key',
177
169
  :'_1password_url' => :'1password-url',
178
170
  :'_1password_vaults' => :'1password-vaults',
179
- :'ad_auto_rotate_boolean' => :'AdAutoRotateBoolean',
180
- :'ad_discover_local_users_boolean' => :'AdDiscoverLocalUsersBoolean',
181
- :'ad_local_users_ignore_list' => :'AdLocalUsersIgnoreList',
182
- :'ad_sra_enable_rdp_boolean' => :'AdSRAEnableRDPBoolean',
183
171
  :'ad_auto_rotate' => :'ad_auto_rotate',
184
172
  :'ad_computer_base_dn' => :'ad_computer_base_dn',
185
173
  :'ad_discover_local_users' => :'ad_discover_local_users',
@@ -239,10 +227,6 @@ module Akeyless
239
227
  :'_1password_secret_key' => :'String',
240
228
  :'_1password_url' => :'String',
241
229
  :'_1password_vaults' => :'Array<String>',
242
- :'ad_auto_rotate_boolean' => :'Boolean',
243
- :'ad_discover_local_users_boolean' => :'Boolean',
244
- :'ad_local_users_ignore_list' => :'Hash<String, Boolean>',
245
- :'ad_sra_enable_rdp_boolean' => :'Boolean',
246
230
  :'ad_auto_rotate' => :'String',
247
231
  :'ad_computer_base_dn' => :'String',
248
232
  :'ad_discover_local_users' => :'String',
@@ -332,24 +316,6 @@ module Akeyless
332
316
  end
333
317
  end
334
318
 
335
- if attributes.key?(:'ad_auto_rotate_boolean')
336
- self.ad_auto_rotate_boolean = attributes[:'ad_auto_rotate_boolean']
337
- end
338
-
339
- if attributes.key?(:'ad_discover_local_users_boolean')
340
- self.ad_discover_local_users_boolean = attributes[:'ad_discover_local_users_boolean']
341
- end
342
-
343
- if attributes.key?(:'ad_local_users_ignore_list')
344
- if (value = attributes[:'ad_local_users_ignore_list']).is_a?(Hash)
345
- self.ad_local_users_ignore_list = value
346
- end
347
- end
348
-
349
- if attributes.key?(:'ad_sra_enable_rdp_boolean')
350
- self.ad_sra_enable_rdp_boolean = attributes[:'ad_sra_enable_rdp_boolean']
351
- end
352
-
353
319
  if attributes.key?(:'ad_auto_rotate')
354
320
  self.ad_auto_rotate = attributes[:'ad_auto_rotate']
355
321
  end
@@ -564,10 +530,6 @@ module Akeyless
564
530
  _1password_secret_key == o._1password_secret_key &&
565
531
  _1password_url == o._1password_url &&
566
532
  _1password_vaults == o._1password_vaults &&
567
- ad_auto_rotate_boolean == o.ad_auto_rotate_boolean &&
568
- ad_discover_local_users_boolean == o.ad_discover_local_users_boolean &&
569
- ad_local_users_ignore_list == o.ad_local_users_ignore_list &&
570
- ad_sra_enable_rdp_boolean == o.ad_sra_enable_rdp_boolean &&
571
533
  ad_auto_rotate == o.ad_auto_rotate &&
572
534
  ad_computer_base_dn == o.ad_computer_base_dn &&
573
535
  ad_discover_local_users == o.ad_discover_local_users &&
@@ -622,7 +584,7 @@ module Akeyless
622
584
  # Calculates hash code according to all attributes.
623
585
  # @return [Integer] Hash code
624
586
  def hash
625
- [_1password_email, _1password_password, _1password_secret_key, _1password_url, _1password_vaults, ad_auto_rotate_boolean, ad_discover_local_users_boolean, ad_local_users_ignore_list, ad_sra_enable_rdp_boolean, ad_auto_rotate, ad_computer_base_dn, ad_discover_local_users, ad_domain_name, ad_domain_users_path_template, ad_local_users_ignore, ad_local_users_path_template, ad_rotation_hour, ad_rotation_interval, ad_sra_enable_rdp, ad_target_name, ad_targets_path_template, ad_user_base_dn, ad_user_groups, as_ssh_port, aws_key, aws_key_id, aws_region, azure_client_id, azure_kv_name, azure_secret, azure_tenant_id, gcp_key, hashi_json, hashi_ns, hashi_token, hashi_url, json, k8s_ca_certificate, k8s_client_certificate, k8s_client_key, k8s_namespace, k8s_password, k8s_skip_system, k8s_token, k8s_url, k8s_username, name, protection_key, target_location, token, type, uid_token].hash
587
+ [_1password_email, _1password_password, _1password_secret_key, _1password_url, _1password_vaults, ad_auto_rotate, ad_computer_base_dn, ad_discover_local_users, ad_domain_name, ad_domain_users_path_template, ad_local_users_ignore, ad_local_users_path_template, ad_rotation_hour, ad_rotation_interval, ad_sra_enable_rdp, ad_target_name, ad_targets_path_template, ad_user_base_dn, ad_user_groups, as_ssh_port, aws_key, aws_key_id, aws_region, azure_client_id, azure_kv_name, azure_secret, azure_tenant_id, gcp_key, hashi_json, hashi_ns, hashi_token, hashi_url, json, k8s_ca_certificate, k8s_client_certificate, k8s_client_key, k8s_namespace, k8s_password, k8s_skip_system, k8s_token, k8s_url, k8s_username, name, protection_key, target_location, token, type, uid_token].hash
626
588
  end
627
589
 
628
590
  # Builds the object from hash
@@ -31,14 +31,6 @@ module Akeyless
31
31
  # 1Password list of vault to get the items from
32
32
  attr_accessor :_1password_vaults
33
33
 
34
- attr_accessor :ad_auto_rotate_boolean
35
-
36
- attr_accessor :ad_discover_local_users_boolean
37
-
38
- attr_accessor :ad_local_users_ignore_list
39
-
40
- attr_accessor :ad_sra_enable_rdp_boolean
41
-
42
34
  # Enable/Disable automatic/recurrent rotation for migrated secrets. Default is false: only manual rotation is allowed for migrated secrets. If set to true, this command should be combined with --ad-rotation-interval and --ad-rotation-hour parameters (Relevant only for Active Directory migration)
43
35
  attr_accessor :ad_auto_rotate
44
36
 
@@ -179,10 +171,6 @@ module Akeyless
179
171
  :'_1password_secret_key' => :'1password-secret-key',
180
172
  :'_1password_url' => :'1password-url',
181
173
  :'_1password_vaults' => :'1password-vaults',
182
- :'ad_auto_rotate_boolean' => :'AdAutoRotateBoolean',
183
- :'ad_discover_local_users_boolean' => :'AdDiscoverLocalUsersBoolean',
184
- :'ad_local_users_ignore_list' => :'AdLocalUsersIgnoreList',
185
- :'ad_sra_enable_rdp_boolean' => :'AdSRAEnableRDPBoolean',
186
174
  :'ad_auto_rotate' => :'ad_auto_rotate',
187
175
  :'ad_computer_base_dn' => :'ad_computer_base_dn',
188
176
  :'ad_discover_local_users' => :'ad_discover_local_users',
@@ -243,10 +231,6 @@ module Akeyless
243
231
  :'_1password_secret_key' => :'String',
244
232
  :'_1password_url' => :'String',
245
233
  :'_1password_vaults' => :'Array<String>',
246
- :'ad_auto_rotate_boolean' => :'Boolean',
247
- :'ad_discover_local_users_boolean' => :'Boolean',
248
- :'ad_local_users_ignore_list' => :'Hash<String, Boolean>',
249
- :'ad_sra_enable_rdp_boolean' => :'Boolean',
250
234
  :'ad_auto_rotate' => :'String',
251
235
  :'ad_computer_base_dn' => :'String',
252
236
  :'ad_discover_local_users' => :'String',
@@ -337,24 +321,6 @@ module Akeyless
337
321
  end
338
322
  end
339
323
 
340
- if attributes.key?(:'ad_auto_rotate_boolean')
341
- self.ad_auto_rotate_boolean = attributes[:'ad_auto_rotate_boolean']
342
- end
343
-
344
- if attributes.key?(:'ad_discover_local_users_boolean')
345
- self.ad_discover_local_users_boolean = attributes[:'ad_discover_local_users_boolean']
346
- end
347
-
348
- if attributes.key?(:'ad_local_users_ignore_list')
349
- if (value = attributes[:'ad_local_users_ignore_list']).is_a?(Hash)
350
- self.ad_local_users_ignore_list = value
351
- end
352
- end
353
-
354
- if attributes.key?(:'ad_sra_enable_rdp_boolean')
355
- self.ad_sra_enable_rdp_boolean = attributes[:'ad_sra_enable_rdp_boolean']
356
- end
357
-
358
324
  if attributes.key?(:'ad_auto_rotate')
359
325
  self.ad_auto_rotate = attributes[:'ad_auto_rotate']
360
326
  end
@@ -568,10 +534,6 @@ module Akeyless
568
534
  _1password_secret_key == o._1password_secret_key &&
569
535
  _1password_url == o._1password_url &&
570
536
  _1password_vaults == o._1password_vaults &&
571
- ad_auto_rotate_boolean == o.ad_auto_rotate_boolean &&
572
- ad_discover_local_users_boolean == o.ad_discover_local_users_boolean &&
573
- ad_local_users_ignore_list == o.ad_local_users_ignore_list &&
574
- ad_sra_enable_rdp_boolean == o.ad_sra_enable_rdp_boolean &&
575
537
  ad_auto_rotate == o.ad_auto_rotate &&
576
538
  ad_computer_base_dn == o.ad_computer_base_dn &&
577
539
  ad_discover_local_users == o.ad_discover_local_users &&
@@ -627,7 +589,7 @@ module Akeyless
627
589
  # Calculates hash code according to all attributes.
628
590
  # @return [Integer] Hash code
629
591
  def hash
630
- [_1password_email, _1password_password, _1password_secret_key, _1password_url, _1password_vaults, ad_auto_rotate_boolean, ad_discover_local_users_boolean, ad_local_users_ignore_list, ad_sra_enable_rdp_boolean, ad_auto_rotate, ad_computer_base_dn, ad_discover_local_users, ad_domain_name, ad_domain_users_path_template, ad_local_users_ignore, ad_local_users_path_template, ad_rotation_hour, ad_rotation_interval, ad_sra_enable_rdp, ad_target_name, ad_targets_path_template, ad_user_base_dn, ad_user_groups, as_ssh_port, aws_key, aws_key_id, aws_region, azure_client_id, azure_kv_name, azure_secret, azure_tenant_id, gcp_key, hashi_json, hashi_ns, hashi_token, hashi_url, id, json, k8s_ca_certificate, k8s_client_certificate, k8s_client_key, k8s_namespace, k8s_password, k8s_skip_system, k8s_token, k8s_url, k8s_username, name, new_name, protection_key, target_location, token, uid_token].hash
592
+ [_1password_email, _1password_password, _1password_secret_key, _1password_url, _1password_vaults, ad_auto_rotate, ad_computer_base_dn, ad_discover_local_users, ad_domain_name, ad_domain_users_path_template, ad_local_users_ignore, ad_local_users_path_template, ad_rotation_hour, ad_rotation_interval, ad_sra_enable_rdp, ad_target_name, ad_targets_path_template, ad_user_base_dn, ad_user_groups, as_ssh_port, aws_key, aws_key_id, aws_region, azure_client_id, azure_kv_name, azure_secret, azure_tenant_id, gcp_key, hashi_json, hashi_ns, hashi_token, hashi_url, id, json, k8s_ca_certificate, k8s_client_certificate, k8s_client_key, k8s_namespace, k8s_password, k8s_skip_system, k8s_token, k8s_url, k8s_username, name, new_name, protection_key, target_location, token, uid_token].hash
631
593
  end
632
594
 
633
595
  # Builds the object from hash
@@ -15,8 +15,6 @@ require 'time'
15
15
 
16
16
  module Akeyless
17
17
  class GetSecretValue
18
- attr_accessor :ignore_cache_boolean
19
-
20
18
  # for personal password manager
21
19
  attr_accessor :accessibility
22
20
 
@@ -44,7 +42,6 @@ module Akeyless
44
42
  # Attribute mapping from ruby-style variable name to JSON key.
45
43
  def self.attribute_map
46
44
  {
47
- :'ignore_cache_boolean' => :'IgnoreCacheBoolean',
48
45
  :'accessibility' => :'accessibility',
49
46
  :'ignore_cache' => :'ignore-cache',
50
47
  :'json' => :'json',
@@ -64,7 +61,6 @@ module Akeyless
64
61
  # Attribute type mapping.
65
62
  def self.openapi_types
66
63
  {
67
- :'ignore_cache_boolean' => :'Boolean',
68
64
  :'accessibility' => :'String',
69
65
  :'ignore_cache' => :'String',
70
66
  :'json' => :'Boolean',
@@ -97,12 +93,10 @@ module Akeyless
97
93
  h[k.to_sym] = v
98
94
  }
99
95
 
100
- if attributes.key?(:'ignore_cache_boolean')
101
- self.ignore_cache_boolean = attributes[:'ignore_cache_boolean']
102
- end
103
-
104
96
  if attributes.key?(:'accessibility')
105
97
  self.accessibility = attributes[:'accessibility']
98
+ else
99
+ self.accessibility = 'regular'
106
100
  end
107
101
 
108
102
  if attributes.key?(:'ignore_cache')
@@ -159,7 +153,6 @@ module Akeyless
159
153
  def ==(o)
160
154
  return true if self.equal?(o)
161
155
  self.class == o.class &&
162
- ignore_cache_boolean == o.ignore_cache_boolean &&
163
156
  accessibility == o.accessibility &&
164
157
  ignore_cache == o.ignore_cache &&
165
158
  json == o.json &&
@@ -179,7 +172,7 @@ module Akeyless
179
172
  # Calculates hash code according to all attributes.
180
173
  # @return [Integer] Hash code
181
174
  def hash
182
- [ignore_cache_boolean, accessibility, ignore_cache, json, names, pretty_print, token, uid_token, version].hash
175
+ [accessibility, ignore_cache, json, names, pretty_print, token, uid_token, version].hash
183
176
  end
184
177
 
185
178
  # Builds the object from hash
@@ -108,6 +108,8 @@ module Akeyless
108
108
 
109
109
  if attributes.key?(:'accessibility')
110
110
  self.accessibility = attributes[:'accessibility']
111
+ else
112
+ self.accessibility = 'regular'
111
113
  end
112
114
 
113
115
  if attributes.key?(:'filter')
@@ -27,6 +27,8 @@ module Akeyless
27
27
 
28
28
  attr_accessor :status
29
29
 
30
+ attr_accessor :type
31
+
30
32
  # Attribute mapping from ruby-style variable name to JSON key.
31
33
  def self.attribute_map
32
34
  {
@@ -35,7 +37,8 @@ module Akeyless
35
37
  :'new_name' => :'new_name',
36
38
  :'prefix' => :'prefix',
37
39
  :'protection_key' => :'protection_key',
38
- :'status' => :'status'
40
+ :'status' => :'status',
41
+ :'type' => :'type'
39
42
  }
40
43
  end
41
44
 
@@ -52,7 +55,8 @@ module Akeyless
52
55
  :'new_name' => :'String',
53
56
  :'prefix' => :'String',
54
57
  :'protection_key' => :'String',
55
- :'status' => :'String'
58
+ :'status' => :'String',
59
+ :'type' => :'String'
56
60
  }
57
61
  end
58
62
 
@@ -100,6 +104,10 @@ module Akeyless
100
104
  if attributes.key?(:'status')
101
105
  self.status = attributes[:'status']
102
106
  end
107
+
108
+ if attributes.key?(:'type')
109
+ self.type = attributes[:'type']
110
+ end
103
111
  end
104
112
 
105
113
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -125,7 +133,8 @@ module Akeyless
125
133
  new_name == o.new_name &&
126
134
  prefix == o.prefix &&
127
135
  protection_key == o.protection_key &&
128
- status == o.status
136
+ status == o.status &&
137
+ type == o.type
129
138
  end
130
139
 
131
140
  # @see the `==` method
@@ -137,7 +146,7 @@ module Akeyless
137
146
  # Calculates hash code according to all attributes.
138
147
  # @return [Integer] Hash code
139
148
  def hash
140
- [id, name, new_name, prefix, protection_key, status].hash
149
+ [id, name, new_name, prefix, protection_key, status, type].hash
141
150
  end
142
151
 
143
152
  # Builds the object from hash
@@ -19,6 +19,9 @@ module Akeyless
19
19
  # Allowed redirect URIs after the authentication
20
20
  attr_accessor :allowed_redirect_uris
21
21
 
22
+ # Audience claim to be used as part of the authentication flow. In case set, it must match the one configured on the Identity Provider's Application
23
+ attr_accessor :audience
24
+
22
25
  # The claims that login is restricted to.
23
26
  attr_accessor :bound_claims
24
27
 
@@ -47,6 +50,7 @@ module Akeyless
47
50
  def self.attribute_map
48
51
  {
49
52
  :'allowed_redirect_uris' => :'allowed_redirect_URIs',
53
+ :'audience' => :'audience',
50
54
  :'bound_claims' => :'bound_claims',
51
55
  :'client_id' => :'client_id',
52
56
  :'client_secret' => :'client_secret',
@@ -67,6 +71,7 @@ module Akeyless
67
71
  def self.openapi_types
68
72
  {
69
73
  :'allowed_redirect_uris' => :'Array<String>',
74
+ :'audience' => :'String',
70
75
  :'bound_claims' => :'Array<OIDCCustomClaim>',
71
76
  :'client_id' => :'String',
72
77
  :'client_secret' => :'String',
@@ -105,6 +110,10 @@ module Akeyless
105
110
  end
106
111
  end
107
112
 
113
+ if attributes.key?(:'audience')
114
+ self.audience = attributes[:'audience']
115
+ end
116
+
108
117
  if attributes.key?(:'bound_claims')
109
118
  if (value = attributes[:'bound_claims']).is_a?(Array)
110
119
  self.bound_claims = value
@@ -161,6 +170,7 @@ module Akeyless
161
170
  return true if self.equal?(o)
162
171
  self.class == o.class &&
163
172
  allowed_redirect_uris == o.allowed_redirect_uris &&
173
+ audience == o.audience &&
164
174
  bound_claims == o.bound_claims &&
165
175
  client_id == o.client_id &&
166
176
  client_secret == o.client_secret &&
@@ -180,7 +190,7 @@ module Akeyless
180
190
  # Calculates hash code according to all attributes.
181
191
  # @return [Integer] Hash code
182
192
  def hash
183
- [allowed_redirect_uris, bound_claims, client_id, client_secret, is_internal, issuer, required_scopes, required_scopes_prefix, unique_identifier].hash
193
+ [allowed_redirect_uris, audience, bound_claims, client_id, client_secret, is_internal, issuer, required_scopes, required_scopes_prefix, unique_identifier].hash
184
194
  end
185
195
 
186
196
  # Builds the object from hash
@@ -15,8 +15,6 @@ require 'time'
15
15
 
16
16
  module Akeyless
17
17
  class ReverseRBACClient
18
- attr_accessor :allowed_ops
19
-
20
18
  attr_accessor :assocs
21
19
 
22
20
  attr_accessor :auth_method_name
@@ -24,7 +22,6 @@ module Akeyless
24
22
  # Attribute mapping from ruby-style variable name to JSON key.
25
23
  def self.attribute_map
26
24
  {
27
- :'allowed_ops' => :'allowed_ops',
28
25
  :'assocs' => :'assocs',
29
26
  :'auth_method_name' => :'auth_method_name'
30
27
  }
@@ -38,7 +35,6 @@ module Akeyless
38
35
  # Attribute type mapping.
39
36
  def self.openapi_types
40
37
  {
41
- :'allowed_ops' => :'Array<String>',
42
38
  :'assocs' => :'Array<AuthMethodRoleAssociation>',
43
39
  :'auth_method_name' => :'String'
44
40
  }
@@ -65,12 +61,6 @@ module Akeyless
65
61
  h[k.to_sym] = v
66
62
  }
67
63
 
68
- if attributes.key?(:'allowed_ops')
69
- if (value = attributes[:'allowed_ops']).is_a?(Array)
70
- self.allowed_ops = value
71
- end
72
- end
73
-
74
64
  if attributes.key?(:'assocs')
75
65
  if (value = attributes[:'assocs']).is_a?(Array)
76
66
  self.assocs = value
@@ -100,7 +90,6 @@ module Akeyless
100
90
  def ==(o)
101
91
  return true if self.equal?(o)
102
92
  self.class == o.class &&
103
- allowed_ops == o.allowed_ops &&
104
93
  assocs == o.assocs &&
105
94
  auth_method_name == o.auth_method_name
106
95
  end
@@ -114,7 +103,7 @@ module Akeyless
114
103
  # Calculates hash code according to all attributes.
115
104
  # @return [Integer] Hash code
116
105
  def hash
117
- [allowed_ops, assocs, auth_method_name].hash
106
+ [assocs, auth_method_name].hash
118
107
  end
119
108
 
120
109
  # Builds the object from hash
@@ -18,7 +18,7 @@ module Akeyless
18
18
  # Set output format to JSON
19
19
  attr_accessor :json
20
20
 
21
- # Rotated Secret name
21
+ # Secret name (Rotated Secret or Custom Dynamic Secret)
22
22
  attr_accessor :name
23
23
 
24
24
  # Authentication token (see `/auth` and `/configure`)