akeyless 2.16.11 → 2.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -8
  3. data/docs/AccountGeneralSettings.md +20 -0
  4. data/docs/CreateArtifactoryTarget.md +1 -1
  5. data/docs/CreateAuthMethodK8S.md +2 -2
  6. data/docs/CreateAuthMethodLDAP.md +3 -1
  7. data/docs/CreateAuthMethodLDAPOutput.md +3 -1
  8. data/docs/CreateKeyOutput.md +5 -1
  9. data/docs/CreateLdapTarget.md +2 -0
  10. data/docs/CreatePKICertIssuer.md +5 -5
  11. data/docs/CreateSSHCertIssuer.md +1 -1
  12. data/docs/CreateSalesforceTarget.md +7 -3
  13. data/docs/CreateSecret.md +11 -19
  14. data/docs/DSProducerDetails.md +2 -0
  15. data/docs/DataProtectionSection.md +18 -0
  16. data/docs/Decrypt.md +3 -1
  17. data/docs/DecryptFile.md +6 -0
  18. data/docs/DecryptPKCS1.md +5 -1
  19. data/docs/DeleteItem.md +2 -2
  20. data/docs/DescribeItem.md +4 -0
  21. data/docs/DescribeSubClaims.md +20 -0
  22. data/docs/DescribeSubClaimsOutput.md +18 -0
  23. data/docs/Encrypt.md +3 -1
  24. data/docs/EncryptFile.md +4 -0
  25. data/docs/EncryptPKCS1.md +5 -1
  26. data/docs/GatewayCreateK8SAuthConfig.md +10 -4
  27. data/docs/GatewayCreateProducerDockerhub.md +1 -1
  28. data/docs/GatewayGetK8SAuthConfigOutput.md +7 -1
  29. data/docs/GatewayRevokeTmpUsers.md +4 -2
  30. data/docs/GatewayUpdateK8SAuthConfig.md +10 -4
  31. data/docs/GatewayUpdateLdapAuthConfig.md +2 -2
  32. data/docs/GatewayUpdateProducerDockerhub.md +1 -1
  33. data/docs/GetAccountSettingsCommandOutput.md +2 -0
  34. data/docs/GetSecretValue.md +2 -2
  35. data/docs/Item.md +2 -0
  36. data/docs/K8SAuth.md +7 -1
  37. data/docs/KubernetesAccessRules.md +2 -0
  38. data/docs/LDAPAccessRules.md +2 -0
  39. data/docs/ListItems.md +2 -2
  40. data/docs/LogForwardingConfigPart.md +2 -0
  41. data/docs/RuleAssigner.md +20 -0
  42. data/docs/SignPKCS1.md +5 -1
  43. data/docs/TargetTypeDetailsInput.md +5 -1
  44. data/docs/UpdateAccountSettings.md +13 -1
  45. data/docs/UpdateAuthMethodK8S.md +2 -2
  46. data/docs/UpdateAuthMethodLDAP.md +3 -1
  47. data/docs/UpdateAuthMethodLDAPOutput.md +18 -0
  48. data/docs/UpdateItem.md +2 -2
  49. data/docs/UpdateLdapTarget.md +2 -0
  50. data/docs/UpdateSalesforceTarget.md +7 -3
  51. data/docs/UpdateSecretVal.md +11 -9
  52. data/docs/V2Api.md +46 -109
  53. data/docs/VerifyPKCS1.md +4 -0
  54. data/lib/akeyless/api/v2_api.rb +43 -107
  55. data/lib/akeyless/models/account_general_settings.rb +229 -0
  56. data/lib/akeyless/models/create_artifactory_target.rb +1 -1
  57. data/lib/akeyless/models/create_auth_method_k8_s.rb +2 -2
  58. data/lib/akeyless/models/create_auth_method_ldap.rb +14 -2
  59. data/lib/akeyless/models/create_auth_method_ldap_output.rb +13 -4
  60. data/lib/akeyless/models/create_key_output.rb +22 -4
  61. data/lib/akeyless/models/create_ldap_target.rb +13 -1
  62. data/lib/akeyless/models/create_pki_cert_issuer.rb +5 -5
  63. data/lib/akeyless/models/create_salesforce_target.rb +29 -19
  64. data/lib/akeyless/models/create_secret.rb +50 -90
  65. data/lib/akeyless/models/create_ssh_cert_issuer.rb +1 -1
  66. data/lib/akeyless/models/data_protection_section.rb +220 -0
  67. data/lib/akeyless/models/decrypt.rb +16 -1
  68. data/lib/akeyless/models/decrypt_file.rb +36 -1
  69. data/lib/akeyless/models/decrypt_pkcs1.rb +22 -2
  70. data/lib/akeyless/models/delete_item.rb +11 -11
  71. data/lib/akeyless/models/describe_item.rb +21 -1
  72. data/lib/akeyless/models/describe_sub_claims.rb +231 -0
  73. data/lib/akeyless/models/describe_sub_claims_output.rb +221 -0
  74. data/lib/akeyless/models/ds_producer_details.rb +10 -1
  75. data/lib/akeyless/models/encrypt.rb +16 -1
  76. data/lib/akeyless/models/encrypt_file.rb +21 -1
  77. data/lib/akeyless/models/encrypt_pkcs1.rb +22 -2
  78. data/lib/akeyless/models/gateway_create_k8_s_auth_config.rb +38 -4
  79. data/lib/akeyless/models/gateway_create_producer_dockerhub.rb +1 -1
  80. data/lib/akeyless/models/gateway_get_k8_s_auth_config_output.rb +32 -2
  81. data/lib/akeyless/models/gateway_revoke_tmp_users.rb +14 -2
  82. data/lib/akeyless/models/gateway_update_k8_s_auth_config.rb +38 -4
  83. data/lib/akeyless/models/gateway_update_ldap_auth_config.rb +2 -2
  84. data/lib/akeyless/models/gateway_update_producer_dockerhub.rb +1 -1
  85. data/lib/akeyless/models/get_account_settings_command_output.rb +10 -1
  86. data/lib/akeyless/models/get_secret_value.rb +7 -7
  87. data/lib/akeyless/models/item.rb +10 -1
  88. data/lib/akeyless/models/k8_s_auth.rb +32 -2
  89. data/lib/akeyless/models/kubernetes_access_rules.rb +11 -1
  90. data/lib/akeyless/models/ldap_access_rules.rb +11 -1
  91. data/lib/akeyless/models/list_items.rb +11 -11
  92. data/lib/akeyless/models/log_forwarding_config_part.rb +10 -1
  93. data/lib/akeyless/models/rule_assigner.rb +228 -0
  94. data/lib/akeyless/models/sign_pkcs1.rb +21 -6
  95. data/lib/akeyless/models/target_type_details_input.rb +23 -1
  96. data/lib/akeyless/models/update_account_settings.rb +64 -4
  97. data/lib/akeyless/models/update_auth_method_k8_s.rb +2 -4
  98. data/lib/akeyless/models/update_auth_method_ldap.rb +12 -2
  99. data/lib/akeyless/models/update_auth_method_ldap_output.rb +219 -0
  100. data/lib/akeyless/models/update_item.rb +11 -11
  101. data/lib/akeyless/models/update_ldap_target.rb +11 -1
  102. data/lib/akeyless/models/update_salesforce_target.rb +29 -19
  103. data/lib/akeyless/models/update_secret_val.rb +52 -42
  104. data/lib/akeyless/models/verify_pkcs1.rb +21 -1
  105. data/lib/akeyless/version.rb +1 -1
  106. data/lib/akeyless.rb +6 -4
  107. data/spec/models/account_general_settings_spec.rb +34 -0
  108. data/spec/models/data_protection_section_spec.rb +34 -0
  109. data/spec/models/describe_sub_claims_output_spec.rb +34 -0
  110. data/spec/models/describe_sub_claims_spec.rb +40 -0
  111. data/spec/models/rule_assigner_spec.rb +40 -0
  112. data/spec/models/update_auth_method_ldap_output_spec.rb +34 -0
  113. metadata +525 -501
@@ -0,0 +1,220 @@
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.1.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Akeyless
17
+ # We need the fields to be pointers as we use the same struct for partial updates as well
18
+ class DataProtectionSection
19
+ attr_accessor :enable_classic_key_protection
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'enable_classic_key_protection' => :'enable_classic_key_protection'
25
+ }
26
+ end
27
+
28
+ # Returns all the JSON keys this model knows about
29
+ def self.acceptable_attributes
30
+ attribute_map.values
31
+ end
32
+
33
+ # Attribute type mapping.
34
+ def self.openapi_types
35
+ {
36
+ :'enable_classic_key_protection' => :'Boolean'
37
+ }
38
+ end
39
+
40
+ # List of attributes with nullable: true
41
+ def self.openapi_nullable
42
+ Set.new([
43
+ ])
44
+ end
45
+
46
+ # Initializes the object
47
+ # @param [Hash] attributes Model attributes in the form of hash
48
+ def initialize(attributes = {})
49
+ if (!attributes.is_a?(Hash))
50
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::DataProtectionSection` initialize method"
51
+ end
52
+
53
+ # check to see if the attribute exists and convert string to symbol for hash key
54
+ attributes = attributes.each_with_object({}) { |(k, v), h|
55
+ if (!self.class.attribute_map.key?(k.to_sym))
56
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::DataProtectionSection`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
57
+ end
58
+ h[k.to_sym] = v
59
+ }
60
+
61
+ if attributes.key?(:'enable_classic_key_protection')
62
+ self.enable_classic_key_protection = attributes[:'enable_classic_key_protection']
63
+ end
64
+ end
65
+
66
+ # Show invalid properties with the reasons. Usually used together with valid?
67
+ # @return Array for valid properties with the reasons
68
+ def list_invalid_properties
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
+ true
77
+ end
78
+
79
+ # Checks equality by comparing each attribute.
80
+ # @param [Object] Object to be compared
81
+ def ==(o)
82
+ return true if self.equal?(o)
83
+ self.class == o.class &&
84
+ enable_classic_key_protection == o.enable_classic_key_protection
85
+ end
86
+
87
+ # @see the `==` method
88
+ # @param [Object] Object to be compared
89
+ def eql?(o)
90
+ self == o
91
+ end
92
+
93
+ # Calculates hash code according to all attributes.
94
+ # @return [Integer] Hash code
95
+ def hash
96
+ [enable_classic_key_protection].hash
97
+ end
98
+
99
+ # Builds the object from hash
100
+ # @param [Hash] attributes Model attributes in the form of hash
101
+ # @return [Object] Returns the model itself
102
+ def self.build_from_hash(attributes)
103
+ new.build_from_hash(attributes)
104
+ end
105
+
106
+ # Builds the object from hash
107
+ # @param [Hash] attributes Model attributes in the form of hash
108
+ # @return [Object] Returns the model itself
109
+ def build_from_hash(attributes)
110
+ return nil unless attributes.is_a?(Hash)
111
+ attributes = attributes.transform_keys(&:to_sym)
112
+ self.class.openapi_types.each_pair do |key, type|
113
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
114
+ self.send("#{key}=", nil)
115
+ elsif type =~ /\AArray<(.*)>/i
116
+ # check to ensure the input is an array given that the attribute
117
+ # is documented as an array but the input is not
118
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
119
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
120
+ end
121
+ elsif !attributes[self.class.attribute_map[key]].nil?
122
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
123
+ end
124
+ end
125
+
126
+ self
127
+ end
128
+
129
+ # Deserializes the data based on type
130
+ # @param string type Data type
131
+ # @param string value Value to be deserialized
132
+ # @return [Object] Deserialized data
133
+ def _deserialize(type, value)
134
+ case type.to_sym
135
+ when :Time
136
+ Time.parse(value)
137
+ when :Date
138
+ Date.parse(value)
139
+ when :String
140
+ value.to_s
141
+ when :Integer
142
+ value.to_i
143
+ when :Float
144
+ value.to_f
145
+ when :Boolean
146
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
147
+ true
148
+ else
149
+ false
150
+ end
151
+ when :Object
152
+ # generic object (usually a Hash), return directly
153
+ value
154
+ when /\AArray<(?<inner_type>.+)>\z/
155
+ inner_type = Regexp.last_match[:inner_type]
156
+ value.map { |v| _deserialize(inner_type, v) }
157
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
158
+ k_type = Regexp.last_match[:k_type]
159
+ v_type = Regexp.last_match[:v_type]
160
+ {}.tap do |hash|
161
+ value.each do |k, v|
162
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
163
+ end
164
+ end
165
+ else # model
166
+ # models (e.g. Pet) or oneOf
167
+ klass = Akeyless.const_get(type)
168
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
169
+ end
170
+ end
171
+
172
+ # Returns the string representation of the object
173
+ # @return [String] String presentation of the object
174
+ def to_s
175
+ to_hash.to_s
176
+ end
177
+
178
+ # to_body is an alias to to_hash (backward compatibility)
179
+ # @return [Hash] Returns the object in the form of hash
180
+ def to_body
181
+ to_hash
182
+ end
183
+
184
+ # Returns the object in the form of hash
185
+ # @return [Hash] Returns the object in the form of hash
186
+ def to_hash
187
+ hash = {}
188
+ self.class.attribute_map.each_pair do |attr, param|
189
+ value = self.send(attr)
190
+ if value.nil?
191
+ is_nullable = self.class.openapi_nullable.include?(attr)
192
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
193
+ end
194
+
195
+ hash[param] = _to_hash(value)
196
+ end
197
+ hash
198
+ end
199
+
200
+ # Outputs non-array value in the form of hash
201
+ # For object, use to_hash. Otherwise, just return the value
202
+ # @param [Object] value Any valid value
203
+ # @return [Hash] Returns the value in the form of hash
204
+ def _to_hash(value)
205
+ if value.is_a?(Array)
206
+ value.compact.map { |v| _to_hash(v) }
207
+ elsif value.is_a?(Hash)
208
+ {}.tap do |hash|
209
+ value.each { |k, v| hash[k] = _to_hash(v) }
210
+ end
211
+ elsif value.respond_to? :to_hash
212
+ value.to_hash
213
+ else
214
+ value
215
+ end
216
+ end
217
+
218
+ end
219
+
220
+ end
@@ -25,6 +25,9 @@ module Akeyless
25
25
  # The encryption context. If this was specified in the encrypt command, it must be specified here or the decryption operation will fail
26
26
  attr_accessor :encryption_context
27
27
 
28
+ # The item id of the key to use in the decryption process
29
+ attr_accessor :item_id
30
+
28
31
  # The name of the key to use in the decryption process
29
32
  attr_accessor :key_name
30
33
 
@@ -40,6 +43,7 @@ module Akeyless
40
43
  :'ciphertext' => :'ciphertext',
41
44
  :'display_id' => :'display-id',
42
45
  :'encryption_context' => :'encryption-context',
46
+ :'item_id' => :'item-id',
43
47
  :'key_name' => :'key-name',
44
48
  :'token' => :'token',
45
49
  :'uid_token' => :'uid-token'
@@ -57,6 +61,7 @@ module Akeyless
57
61
  :'ciphertext' => :'String',
58
62
  :'display_id' => :'String',
59
63
  :'encryption_context' => :'Hash<String, String>',
64
+ :'item_id' => :'Integer',
60
65
  :'key_name' => :'String',
61
66
  :'token' => :'String',
62
67
  :'uid_token' => :'String'
@@ -98,6 +103,10 @@ module Akeyless
98
103
  end
99
104
  end
100
105
 
106
+ if attributes.key?(:'item_id')
107
+ self.item_id = attributes[:'item_id']
108
+ end
109
+
101
110
  if attributes.key?(:'key_name')
102
111
  self.key_name = attributes[:'key_name']
103
112
  end
@@ -115,12 +124,17 @@ module Akeyless
115
124
  # @return Array for valid properties with the reasons
116
125
  def list_invalid_properties
117
126
  invalid_properties = Array.new
127
+ if @key_name.nil?
128
+ invalid_properties.push('invalid value for "key_name", key_name cannot be nil.')
129
+ end
130
+
118
131
  invalid_properties
119
132
  end
120
133
 
121
134
  # Check to see if the all the properties in the model are valid
122
135
  # @return true if the model is valid
123
136
  def valid?
137
+ return false if @key_name.nil?
124
138
  true
125
139
  end
126
140
 
@@ -132,6 +146,7 @@ module Akeyless
132
146
  ciphertext == o.ciphertext &&
133
147
  display_id == o.display_id &&
134
148
  encryption_context == o.encryption_context &&
149
+ item_id == o.item_id &&
135
150
  key_name == o.key_name &&
136
151
  token == o.token &&
137
152
  uid_token == o.uid_token
@@ -146,7 +161,7 @@ module Akeyless
146
161
  # Calculates hash code according to all attributes.
147
162
  # @return [Integer] Hash code
148
163
  def hash
149
- [ciphertext, display_id, encryption_context, key_name, token, uid_token].hash
164
+ [ciphertext, display_id, encryption_context, item_id, key_name, token, uid_token].hash
150
165
  end
151
166
 
152
167
  # Builds the object from hash
@@ -15,6 +15,15 @@ require 'time'
15
15
 
16
16
  module Akeyless
17
17
  class DecryptFile
18
+ # The display id of the key to use in the decryption process
19
+ attr_accessor :display_id
20
+
21
+ # The item id of the key to use in the decryption process
22
+ attr_accessor :item_id
23
+
24
+ # The name of the key to use in the decryption process
25
+ attr_accessor :key_name
26
+
18
27
  # Authentication token (see `/auth` and `/configure`)
19
28
  attr_accessor :token
20
29
 
@@ -24,6 +33,9 @@ module Akeyless
24
33
  # Attribute mapping from ruby-style variable name to JSON key.
25
34
  def self.attribute_map
26
35
  {
36
+ :'display_id' => :'display-id',
37
+ :'item_id' => :'item-id',
38
+ :'key_name' => :'key-name',
27
39
  :'token' => :'token',
28
40
  :'uid_token' => :'uid-token'
29
41
  }
@@ -37,6 +49,9 @@ module Akeyless
37
49
  # Attribute type mapping.
38
50
  def self.openapi_types
39
51
  {
52
+ :'display_id' => :'String',
53
+ :'item_id' => :'Integer',
54
+ :'key_name' => :'String',
40
55
  :'token' => :'String',
41
56
  :'uid_token' => :'String'
42
57
  }
@@ -63,6 +78,18 @@ module Akeyless
63
78
  h[k.to_sym] = v
64
79
  }
65
80
 
81
+ if attributes.key?(:'display_id')
82
+ self.display_id = attributes[:'display_id']
83
+ end
84
+
85
+ if attributes.key?(:'item_id')
86
+ self.item_id = attributes[:'item_id']
87
+ end
88
+
89
+ if attributes.key?(:'key_name')
90
+ self.key_name = attributes[:'key_name']
91
+ end
92
+
66
93
  if attributes.key?(:'token')
67
94
  self.token = attributes[:'token']
68
95
  end
@@ -76,12 +103,17 @@ module Akeyless
76
103
  # @return Array for valid properties with the reasons
77
104
  def list_invalid_properties
78
105
  invalid_properties = Array.new
106
+ if @key_name.nil?
107
+ invalid_properties.push('invalid value for "key_name", key_name cannot be nil.')
108
+ end
109
+
79
110
  invalid_properties
80
111
  end
81
112
 
82
113
  # Check to see if the all the properties in the model are valid
83
114
  # @return true if the model is valid
84
115
  def valid?
116
+ return false if @key_name.nil?
85
117
  true
86
118
  end
87
119
 
@@ -90,6 +122,9 @@ module Akeyless
90
122
  def ==(o)
91
123
  return true if self.equal?(o)
92
124
  self.class == o.class &&
125
+ display_id == o.display_id &&
126
+ item_id == o.item_id &&
127
+ key_name == o.key_name &&
93
128
  token == o.token &&
94
129
  uid_token == o.uid_token
95
130
  end
@@ -103,7 +138,7 @@ module Akeyless
103
138
  # Calculates hash code according to all attributes.
104
139
  # @return [Integer] Hash code
105
140
  def hash
106
- [token, uid_token].hash
141
+ [display_id, item_id, key_name, token, uid_token].hash
107
142
  end
108
143
 
109
144
  # Builds the object from hash
@@ -18,7 +18,13 @@ module Akeyless
18
18
  # Ciphertext to be decrypted in base64 encoded format
19
19
  attr_accessor :ciphertext
20
20
 
21
- # The name of the RSA key to use in the decryption process
21
+ # The display id of the key to use in the decryption process
22
+ attr_accessor :display_id
23
+
24
+ # The item id of the key to use in the decryption process
25
+ attr_accessor :item_id
26
+
27
+ # The name of the key to use in the decryption process
22
28
  attr_accessor :key_name
23
29
 
24
30
  # Authentication token (see `/auth` and `/configure`)
@@ -31,6 +37,8 @@ module Akeyless
31
37
  def self.attribute_map
32
38
  {
33
39
  :'ciphertext' => :'ciphertext',
40
+ :'display_id' => :'display-id',
41
+ :'item_id' => :'item-id',
34
42
  :'key_name' => :'key-name',
35
43
  :'token' => :'token',
36
44
  :'uid_token' => :'uid-token'
@@ -46,6 +54,8 @@ module Akeyless
46
54
  def self.openapi_types
47
55
  {
48
56
  :'ciphertext' => :'String',
57
+ :'display_id' => :'String',
58
+ :'item_id' => :'Integer',
49
59
  :'key_name' => :'String',
50
60
  :'token' => :'String',
51
61
  :'uid_token' => :'String'
@@ -77,6 +87,14 @@ module Akeyless
77
87
  self.ciphertext = attributes[:'ciphertext']
78
88
  end
79
89
 
90
+ if attributes.key?(:'display_id')
91
+ self.display_id = attributes[:'display_id']
92
+ end
93
+
94
+ if attributes.key?(:'item_id')
95
+ self.item_id = attributes[:'item_id']
96
+ end
97
+
80
98
  if attributes.key?(:'key_name')
81
99
  self.key_name = attributes[:'key_name']
82
100
  end
@@ -119,6 +137,8 @@ module Akeyless
119
137
  return true if self.equal?(o)
120
138
  self.class == o.class &&
121
139
  ciphertext == o.ciphertext &&
140
+ display_id == o.display_id &&
141
+ item_id == o.item_id &&
122
142
  key_name == o.key_name &&
123
143
  token == o.token &&
124
144
  uid_token == o.uid_token
@@ -133,7 +153,7 @@ module Akeyless
133
153
  # Calculates hash code according to all attributes.
134
154
  # @return [Integer] Hash code
135
155
  def hash
136
- [ciphertext, key_name, token, uid_token].hash
156
+ [ciphertext, display_id, item_id, key_name, token, uid_token].hash
137
157
  end
138
158
 
139
159
  # Builds the object from hash
@@ -15,15 +15,15 @@ require 'time'
15
15
 
16
16
  module Akeyless
17
17
  class DeleteItem
18
+ # for personal password manager
19
+ attr_accessor :accessibility
20
+
18
21
  # When delete-in-days=-1, must be set
19
22
  attr_accessor :delete_immediately
20
23
 
21
24
  # The number of days to wait before deleting the item (relevant for keys only)
22
25
  attr_accessor :delete_in_days
23
26
 
24
- # for personal password manager
25
- attr_accessor :item_accessibility
26
-
27
27
  # Item name
28
28
  attr_accessor :name
29
29
 
@@ -39,9 +39,9 @@ module Akeyless
39
39
  # Attribute mapping from ruby-style variable name to JSON key.
40
40
  def self.attribute_map
41
41
  {
42
+ :'accessibility' => :'accessibility',
42
43
  :'delete_immediately' => :'delete-immediately',
43
44
  :'delete_in_days' => :'delete-in-days',
44
- :'item_accessibility' => :'item-accessibility',
45
45
  :'name' => :'name',
46
46
  :'token' => :'token',
47
47
  :'uid_token' => :'uid-token',
@@ -57,9 +57,9 @@ module Akeyless
57
57
  # Attribute type mapping.
58
58
  def self.openapi_types
59
59
  {
60
+ :'accessibility' => :'String',
60
61
  :'delete_immediately' => :'Boolean',
61
62
  :'delete_in_days' => :'Integer',
62
- :'item_accessibility' => :'String',
63
63
  :'name' => :'String',
64
64
  :'token' => :'String',
65
65
  :'uid_token' => :'String',
@@ -88,6 +88,10 @@ module Akeyless
88
88
  h[k.to_sym] = v
89
89
  }
90
90
 
91
+ if attributes.key?(:'accessibility')
92
+ self.accessibility = attributes[:'accessibility']
93
+ end
94
+
91
95
  if attributes.key?(:'delete_immediately')
92
96
  self.delete_immediately = attributes[:'delete_immediately']
93
97
  else
@@ -100,10 +104,6 @@ module Akeyless
100
104
  self.delete_in_days = 7
101
105
  end
102
106
 
103
- if attributes.key?(:'item_accessibility')
104
- self.item_accessibility = attributes[:'item_accessibility']
105
- end
106
-
107
107
  if attributes.key?(:'name')
108
108
  self.name = attributes[:'name']
109
109
  end
@@ -146,9 +146,9 @@ module Akeyless
146
146
  def ==(o)
147
147
  return true if self.equal?(o)
148
148
  self.class == o.class &&
149
+ accessibility == o.accessibility &&
149
150
  delete_immediately == o.delete_immediately &&
150
151
  delete_in_days == o.delete_in_days &&
151
- item_accessibility == o.item_accessibility &&
152
152
  name == o.name &&
153
153
  token == o.token &&
154
154
  uid_token == o.uid_token &&
@@ -164,7 +164,7 @@ module Akeyless
164
164
  # Calculates hash code according to all attributes.
165
165
  # @return [Integer] Hash code
166
166
  def hash
167
- [delete_immediately, delete_in_days, item_accessibility, name, token, uid_token, version].hash
167
+ [accessibility, delete_immediately, delete_in_days, name, token, uid_token, version].hash
168
168
  end
169
169
 
170
170
  # Builds the object from hash
@@ -15,6 +15,12 @@ require 'time'
15
15
 
16
16
  module Akeyless
17
17
  class DescribeItem
18
+ # The display id of the item
19
+ attr_accessor :display_id
20
+
21
+ # Item id of the item
22
+ attr_accessor :item_id
23
+
18
24
  # Item name
19
25
  attr_accessor :name
20
26
 
@@ -30,6 +36,8 @@ module Akeyless
30
36
  # Attribute mapping from ruby-style variable name to JSON key.
31
37
  def self.attribute_map
32
38
  {
39
+ :'display_id' => :'display-id',
40
+ :'item_id' => :'item-id',
33
41
  :'name' => :'name',
34
42
  :'show_versions' => :'show-versions',
35
43
  :'token' => :'token',
@@ -45,6 +53,8 @@ module Akeyless
45
53
  # Attribute type mapping.
46
54
  def self.openapi_types
47
55
  {
56
+ :'display_id' => :'String',
57
+ :'item_id' => :'Integer',
48
58
  :'name' => :'String',
49
59
  :'show_versions' => :'Boolean',
50
60
  :'token' => :'String',
@@ -73,6 +83,14 @@ module Akeyless
73
83
  h[k.to_sym] = v
74
84
  }
75
85
 
86
+ if attributes.key?(:'display_id')
87
+ self.display_id = attributes[:'display_id']
88
+ end
89
+
90
+ if attributes.key?(:'item_id')
91
+ self.item_id = attributes[:'item_id']
92
+ end
93
+
76
94
  if attributes.key?(:'name')
77
95
  self.name = attributes[:'name']
78
96
  end
@@ -115,6 +133,8 @@ module Akeyless
115
133
  def ==(o)
116
134
  return true if self.equal?(o)
117
135
  self.class == o.class &&
136
+ display_id == o.display_id &&
137
+ item_id == o.item_id &&
118
138
  name == o.name &&
119
139
  show_versions == o.show_versions &&
120
140
  token == o.token &&
@@ -130,7 +150,7 @@ module Akeyless
130
150
  # Calculates hash code according to all attributes.
131
151
  # @return [Integer] Hash code
132
152
  def hash
133
- [name, show_versions, token, uid_token].hash
153
+ [display_id, item_id, name, show_versions, token, uid_token].hash
134
154
  end
135
155
 
136
156
  # Builds the object from hash