akeyless 5.0.32 → 5.0.33

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 (48) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +15 -2
  3. data/docs/AssocTargetItem.md +3 -1
  4. data/docs/AuthMethod.md +2 -0
  5. data/docs/KMIPCAListEntry.md +34 -0
  6. data/docs/KmipGetCABundle.md +22 -0
  7. data/docs/KmipGetCABundleOutput.md +18 -0
  8. data/docs/KmipListCAs.md +22 -0
  9. data/docs/KmipListCAsOutput.md +18 -0
  10. data/docs/KmipRenewClientCertificate.md +2 -0
  11. data/docs/KmipRotateCA.md +24 -0
  12. data/docs/KmipRotateCAOutput.md +22 -0
  13. data/docs/KmipSunsetCA.md +28 -0
  14. data/docs/KmipSunsetCAOutput.md +18 -0
  15. data/docs/RotatedSecretCreateSsh.md +12 -0
  16. data/docs/RotatedSecretDetailsInfo.md +2 -0
  17. data/docs/RotatedSecretUpdateSsh.md +12 -0
  18. data/docs/SAMLAccessRules.md +2 -0
  19. data/docs/V2Api.md +261 -1
  20. data/lib/akeyless/api/v2_api.rb +241 -1
  21. data/lib/akeyless/models/assoc_target_item.rb +14 -2
  22. data/lib/akeyless/models/auth_method.rb +11 -1
  23. data/lib/akeyless/models/kmip_get_ca_bundle.rb +237 -0
  24. data/lib/akeyless/models/kmip_get_ca_bundle_output.rb +214 -0
  25. data/lib/akeyless/models/kmip_list_cas.rb +237 -0
  26. data/lib/akeyless/models/kmip_list_cas_output.rb +216 -0
  27. data/lib/akeyless/models/kmip_renew_client_certificate.rb +11 -1
  28. data/lib/akeyless/models/kmip_rotate_ca.rb +249 -0
  29. data/lib/akeyless/models/kmip_rotate_ca_output.rb +232 -0
  30. data/lib/akeyless/models/kmip_sunset_ca.rb +276 -0
  31. data/lib/akeyless/models/kmip_sunset_ca_output.rb +214 -0
  32. data/lib/akeyless/models/kmipca_list_entry.rb +288 -0
  33. data/lib/akeyless/models/rotated_secret_create_ssh.rb +67 -1
  34. data/lib/akeyless/models/rotated_secret_details_info.rb +11 -1
  35. data/lib/akeyless/models/rotated_secret_update_ssh.rb +67 -1
  36. data/lib/akeyless/models/saml_access_rules.rb +11 -1
  37. data/lib/akeyless/version.rb +1 -1
  38. data/lib/akeyless.rb +9 -0
  39. data/spec/models/kmip_get_ca_bundle_output_spec.rb +36 -0
  40. data/spec/models/kmip_get_ca_bundle_spec.rb +48 -0
  41. data/spec/models/kmip_list_cas_output_spec.rb +36 -0
  42. data/spec/models/kmip_list_cas_spec.rb +48 -0
  43. data/spec/models/kmip_rotate_ca_output_spec.rb +48 -0
  44. data/spec/models/kmip_rotate_ca_spec.rb +54 -0
  45. data/spec/models/kmip_sunset_ca_output_spec.rb +36 -0
  46. data/spec/models/kmip_sunset_ca_spec.rb +66 -0
  47. data/spec/models/kmipca_list_entry_spec.rb +84 -0
  48. metadata +58 -22
@@ -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 KmipSunsetCAOutput
18
+ attr_accessor :ca_id
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'ca_id' => :'ca_id'
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
+ :'ca_id' => :'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::KmipSunsetCAOutput` 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::KmipSunsetCAOutput`. 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?(:'ca_id')
61
+ self.ca_id = attributes[:'ca_id']
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
+ ca_id == o.ca_id
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
+ [ca_id].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
@@ -0,0 +1,288 @@
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 KMIPCAListEntry
18
+ attr_accessor :certificate
19
+
20
+ attr_accessor :certificate_issue_date
21
+
22
+ attr_accessor :certificate_ttl_in_seconds
23
+
24
+ attr_accessor :created_at
25
+
26
+ attr_accessor :id
27
+
28
+ attr_accessor :issued_client_count
29
+
30
+ attr_accessor :not_after
31
+
32
+ attr_accessor :not_before
33
+
34
+ attr_accessor :state
35
+
36
+ # Attribute mapping from ruby-style variable name to JSON key.
37
+ def self.attribute_map
38
+ {
39
+ :'certificate' => :'certificate',
40
+ :'certificate_issue_date' => :'certificate_issue_date',
41
+ :'certificate_ttl_in_seconds' => :'certificate_ttl_in_seconds',
42
+ :'created_at' => :'created_at',
43
+ :'id' => :'id',
44
+ :'issued_client_count' => :'issued_client_count',
45
+ :'not_after' => :'not_after',
46
+ :'not_before' => :'not_before',
47
+ :'state' => :'state'
48
+ }
49
+ end
50
+
51
+ # Returns all the JSON keys this model knows about
52
+ def self.acceptable_attributes
53
+ attribute_map.values
54
+ end
55
+
56
+ # Attribute type mapping.
57
+ def self.openapi_types
58
+ {
59
+ :'certificate' => :'Array<Integer>',
60
+ :'certificate_issue_date' => :'Time',
61
+ :'certificate_ttl_in_seconds' => :'Integer',
62
+ :'created_at' => :'Time',
63
+ :'id' => :'String',
64
+ :'issued_client_count' => :'Integer',
65
+ :'not_after' => :'Time',
66
+ :'not_before' => :'Time',
67
+ :'state' => :'String'
68
+ }
69
+ end
70
+
71
+ # List of attributes with nullable: true
72
+ def self.openapi_nullable
73
+ Set.new([
74
+ ])
75
+ end
76
+
77
+ # Initializes the object
78
+ # @param [Hash] attributes Model attributes in the form of hash
79
+ def initialize(attributes = {})
80
+ if (!attributes.is_a?(Hash))
81
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::KMIPCAListEntry` initialize method"
82
+ end
83
+
84
+ # check to see if the attribute exists and convert string to symbol for hash key
85
+ attributes = attributes.each_with_object({}) { |(k, v), h|
86
+ if (!self.class.attribute_map.key?(k.to_sym))
87
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::KMIPCAListEntry`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
88
+ end
89
+ h[k.to_sym] = v
90
+ }
91
+
92
+ if attributes.key?(:'certificate')
93
+ if (value = attributes[:'certificate']).is_a?(Array)
94
+ self.certificate = value
95
+ end
96
+ end
97
+
98
+ if attributes.key?(:'certificate_issue_date')
99
+ self.certificate_issue_date = attributes[:'certificate_issue_date']
100
+ end
101
+
102
+ if attributes.key?(:'certificate_ttl_in_seconds')
103
+ self.certificate_ttl_in_seconds = attributes[:'certificate_ttl_in_seconds']
104
+ end
105
+
106
+ if attributes.key?(:'created_at')
107
+ self.created_at = attributes[:'created_at']
108
+ end
109
+
110
+ if attributes.key?(:'id')
111
+ self.id = attributes[:'id']
112
+ end
113
+
114
+ if attributes.key?(:'issued_client_count')
115
+ self.issued_client_count = attributes[:'issued_client_count']
116
+ end
117
+
118
+ if attributes.key?(:'not_after')
119
+ self.not_after = attributes[:'not_after']
120
+ end
121
+
122
+ if attributes.key?(:'not_before')
123
+ self.not_before = attributes[:'not_before']
124
+ end
125
+
126
+ if attributes.key?(:'state')
127
+ self.state = attributes[:'state']
128
+ end
129
+ end
130
+
131
+ # Show invalid properties with the reasons. Usually used together with valid?
132
+ # @return Array for valid properties with the reasons
133
+ def list_invalid_properties
134
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
135
+ invalid_properties = Array.new
136
+ invalid_properties
137
+ end
138
+
139
+ # Check to see if the all the properties in the model are valid
140
+ # @return true if the model is valid
141
+ def valid?
142
+ warn '[DEPRECATED] the `valid?` method is obsolete'
143
+ true
144
+ end
145
+
146
+ # Checks equality by comparing each attribute.
147
+ # @param [Object] Object to be compared
148
+ def ==(o)
149
+ return true if self.equal?(o)
150
+ self.class == o.class &&
151
+ certificate == o.certificate &&
152
+ certificate_issue_date == o.certificate_issue_date &&
153
+ certificate_ttl_in_seconds == o.certificate_ttl_in_seconds &&
154
+ created_at == o.created_at &&
155
+ id == o.id &&
156
+ issued_client_count == o.issued_client_count &&
157
+ not_after == o.not_after &&
158
+ not_before == o.not_before &&
159
+ state == o.state
160
+ end
161
+
162
+ # @see the `==` method
163
+ # @param [Object] Object to be compared
164
+ def eql?(o)
165
+ self == o
166
+ end
167
+
168
+ # Calculates hash code according to all attributes.
169
+ # @return [Integer] Hash code
170
+ def hash
171
+ [certificate, certificate_issue_date, certificate_ttl_in_seconds, created_at, id, issued_client_count, not_after, not_before, state].hash
172
+ end
173
+
174
+ # Builds the object from hash
175
+ # @param [Hash] attributes Model attributes in the form of hash
176
+ # @return [Object] Returns the model itself
177
+ def self.build_from_hash(attributes)
178
+ return nil unless attributes.is_a?(Hash)
179
+ attributes = attributes.transform_keys(&:to_sym)
180
+ transformed_hash = {}
181
+ openapi_types.each_pair do |key, type|
182
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
183
+ transformed_hash["#{key}"] = nil
184
+ elsif type =~ /\AArray<(.*)>/i
185
+ # check to ensure the input is an array given that the attribute
186
+ # is documented as an array but the input is not
187
+ if attributes[attribute_map[key]].is_a?(Array)
188
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
189
+ end
190
+ elsif !attributes[attribute_map[key]].nil?
191
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
192
+ end
193
+ end
194
+ new(transformed_hash)
195
+ end
196
+
197
+ # Deserializes the data based on type
198
+ # @param string type Data type
199
+ # @param string value Value to be deserialized
200
+ # @return [Object] Deserialized data
201
+ def self._deserialize(type, value)
202
+ case type.to_sym
203
+ when :Time
204
+ Time.parse(value)
205
+ when :Date
206
+ Date.parse(value)
207
+ when :String
208
+ value.to_s
209
+ when :Integer
210
+ value.to_i
211
+ when :Float
212
+ value.to_f
213
+ when :Boolean
214
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
215
+ true
216
+ else
217
+ false
218
+ end
219
+ when :Object
220
+ # generic object (usually a Hash), return directly
221
+ value
222
+ when /\AArray<(?<inner_type>.+)>\z/
223
+ inner_type = Regexp.last_match[:inner_type]
224
+ value.map { |v| _deserialize(inner_type, v) }
225
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
226
+ k_type = Regexp.last_match[:k_type]
227
+ v_type = Regexp.last_match[:v_type]
228
+ {}.tap do |hash|
229
+ value.each do |k, v|
230
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
231
+ end
232
+ end
233
+ else # model
234
+ # models (e.g. Pet) or oneOf
235
+ klass = Akeyless.const_get(type)
236
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
237
+ end
238
+ end
239
+
240
+ # Returns the string representation of the object
241
+ # @return [String] String presentation of the object
242
+ def to_s
243
+ to_hash.to_s
244
+ end
245
+
246
+ # to_body is an alias to to_hash (backward compatibility)
247
+ # @return [Hash] Returns the object in the form of hash
248
+ def to_body
249
+ to_hash
250
+ end
251
+
252
+ # Returns the object in the form of hash
253
+ # @return [Hash] Returns the object in the form of hash
254
+ def to_hash
255
+ hash = {}
256
+ self.class.attribute_map.each_pair do |attr, param|
257
+ value = self.send(attr)
258
+ if value.nil?
259
+ is_nullable = self.class.openapi_nullable.include?(attr)
260
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
261
+ end
262
+
263
+ hash[param] = _to_hash(value)
264
+ end
265
+ hash
266
+ end
267
+
268
+ # Outputs non-array value in the form of hash
269
+ # For object, use to_hash. Otherwise, just return the value
270
+ # @param [Object] value Any valid value
271
+ # @return [Hash] Returns the value in the form of hash
272
+ def _to_hash(value)
273
+ if value.is_a?(Array)
274
+ value.compact.map { |v| _to_hash(v) }
275
+ elsif value.is_a?(Hash)
276
+ {}.tap do |hash|
277
+ value.each { |k, v| hash[k] = _to_hash(v) }
278
+ end
279
+ elsif value.respond_to? :to_hash
280
+ value.to_hash
281
+ else
282
+ value
283
+ end
284
+ end
285
+
286
+ end
287
+
288
+ end
@@ -45,6 +45,9 @@ module Akeyless
45
45
 
46
46
  attr_accessor :key
47
47
 
48
+ # The key algorithm to generate with when no private key is supplied. options: [ED25519/RSA2048/RSA3072/RSA4096/ECDSA256/ECDSA384/ECDSA521]
49
+ attr_accessor :key_algorithm
50
+
48
51
  # Private key file contents encoded using base64
49
52
  attr_accessor :key_data_base64
50
53
 
@@ -115,12 +118,27 @@ module Akeyless
115
118
  # Override the RDP Domain username
116
119
  attr_accessor :secure_access_rdp_user
117
120
 
121
+ # Secret values contains SSH Credentials, either Private Key or Password [password/private-key] (relevant only for Static-Secret or Rotated-secret)
122
+ attr_accessor :secure_access_ssh_creds
123
+
118
124
  # Override the SSH username as indicated in SSH Certificate Issuer
119
125
  attr_accessor :secure_access_ssh_user
120
126
 
121
127
  # Specify target type. Options are ssh or rdp
122
128
  attr_accessor :secure_access_target_type
123
129
 
130
+ # Destination URL to inject secrets
131
+ attr_accessor :secure_access_url
132
+
133
+ # Enable Web Secure Remote Access
134
+ attr_accessor :secure_access_web
135
+
136
+ # Secure browser via Akeyless's Secure Remote Access (SRA)
137
+ attr_accessor :secure_access_web_browsing
138
+
139
+ # Web-Proxy via Akeyless's Secure Remote Access (SRA)
140
+ attr_accessor :secure_access_web_proxy
141
+
124
142
  # If set, dry-run will be skipped
125
143
  attr_accessor :skip_dry_run
126
144
 
@@ -164,6 +182,7 @@ module Akeyless
164
182
  :'item_custom_fields' => :'item-custom-fields',
165
183
  :'json' => :'json',
166
184
  :'key' => :'key',
185
+ :'key_algorithm' => :'key-algorithm',
167
186
  :'key_data_base64' => :'key-data-base64',
168
187
  :'lock_during_sra_session' => :'lock-during-sra-session',
169
188
  :'max_versions' => :'max-versions',
@@ -188,8 +207,13 @@ module Akeyless
188
207
  :'secure_access_host' => :'secure-access-host',
189
208
  :'secure_access_rdp_domain' => :'secure-access-rdp-domain',
190
209
  :'secure_access_rdp_user' => :'secure-access-rdp-user',
210
+ :'secure_access_ssh_creds' => :'secure-access-ssh-creds',
191
211
  :'secure_access_ssh_user' => :'secure-access-ssh-user',
192
212
  :'secure_access_target_type' => :'secure-access-target-type',
213
+ :'secure_access_url' => :'secure-access-url',
214
+ :'secure_access_web' => :'secure-access-web',
215
+ :'secure_access_web_browsing' => :'secure-access-web-browsing',
216
+ :'secure_access_web_proxy' => :'secure-access-web-proxy',
193
217
  :'skip_dry_run' => :'skip_dry_run',
194
218
  :'tags' => :'tags',
195
219
  :'target' => :'target',
@@ -222,6 +246,7 @@ module Akeyless
222
246
  :'item_custom_fields' => :'Hash<String, String>',
223
247
  :'json' => :'Boolean',
224
248
  :'key' => :'String',
249
+ :'key_algorithm' => :'String',
225
250
  :'key_data_base64' => :'String',
226
251
  :'lock_during_sra_session' => :'String',
227
252
  :'max_versions' => :'String',
@@ -246,8 +271,13 @@ module Akeyless
246
271
  :'secure_access_host' => :'Array<String>',
247
272
  :'secure_access_rdp_domain' => :'String',
248
273
  :'secure_access_rdp_user' => :'String',
274
+ :'secure_access_ssh_creds' => :'String',
249
275
  :'secure_access_ssh_user' => :'String',
250
276
  :'secure_access_target_type' => :'String',
277
+ :'secure_access_url' => :'String',
278
+ :'secure_access_web' => :'Boolean',
279
+ :'secure_access_web_browsing' => :'Boolean',
280
+ :'secure_access_web_proxy' => :'Boolean',
251
281
  :'skip_dry_run' => :'String',
252
282
  :'tags' => :'Array<String>',
253
283
  :'target' => :'Array<String>',
@@ -334,6 +364,10 @@ module Akeyless
334
364
  self.key = attributes[:'key']
335
365
  end
336
366
 
367
+ if attributes.key?(:'key_algorithm')
368
+ self.key_algorithm = attributes[:'key_algorithm']
369
+ end
370
+
337
371
  if attributes.key?(:'key_data_base64')
338
372
  self.key_data_base64 = attributes[:'key_data_base64']
339
373
  end
@@ -442,6 +476,10 @@ module Akeyless
442
476
  self.secure_access_rdp_user = attributes[:'secure_access_rdp_user']
443
477
  end
444
478
 
479
+ if attributes.key?(:'secure_access_ssh_creds')
480
+ self.secure_access_ssh_creds = attributes[:'secure_access_ssh_creds']
481
+ end
482
+
445
483
  if attributes.key?(:'secure_access_ssh_user')
446
484
  self.secure_access_ssh_user = attributes[:'secure_access_ssh_user']
447
485
  end
@@ -452,6 +490,28 @@ module Akeyless
452
490
  self.secure_access_target_type = 'false'
453
491
  end
454
492
 
493
+ if attributes.key?(:'secure_access_url')
494
+ self.secure_access_url = attributes[:'secure_access_url']
495
+ end
496
+
497
+ if attributes.key?(:'secure_access_web')
498
+ self.secure_access_web = attributes[:'secure_access_web']
499
+ else
500
+ self.secure_access_web = true
501
+ end
502
+
503
+ if attributes.key?(:'secure_access_web_browsing')
504
+ self.secure_access_web_browsing = attributes[:'secure_access_web_browsing']
505
+ else
506
+ self.secure_access_web_browsing = false
507
+ end
508
+
509
+ if attributes.key?(:'secure_access_web_proxy')
510
+ self.secure_access_web_proxy = attributes[:'secure_access_web_proxy']
511
+ else
512
+ self.secure_access_web_proxy = false
513
+ end
514
+
455
515
  if attributes.key?(:'skip_dry_run')
456
516
  self.skip_dry_run = attributes[:'skip_dry_run']
457
517
  end
@@ -545,6 +605,7 @@ module Akeyless
545
605
  item_custom_fields == o.item_custom_fields &&
546
606
  json == o.json &&
547
607
  key == o.key &&
608
+ key_algorithm == o.key_algorithm &&
548
609
  key_data_base64 == o.key_data_base64 &&
549
610
  lock_during_sra_session == o.lock_during_sra_session &&
550
611
  max_versions == o.max_versions &&
@@ -569,8 +630,13 @@ module Akeyless
569
630
  secure_access_host == o.secure_access_host &&
570
631
  secure_access_rdp_domain == o.secure_access_rdp_domain &&
571
632
  secure_access_rdp_user == o.secure_access_rdp_user &&
633
+ secure_access_ssh_creds == o.secure_access_ssh_creds &&
572
634
  secure_access_ssh_user == o.secure_access_ssh_user &&
573
635
  secure_access_target_type == o.secure_access_target_type &&
636
+ secure_access_url == o.secure_access_url &&
637
+ secure_access_web == o.secure_access_web &&
638
+ secure_access_web_browsing == o.secure_access_web_browsing &&
639
+ secure_access_web_proxy == o.secure_access_web_proxy &&
574
640
  skip_dry_run == o.skip_dry_run &&
575
641
  tags == o.tags &&
576
642
  target == o.target &&
@@ -592,7 +658,7 @@ module Akeyless
592
658
  # Calculates hash code according to all attributes.
593
659
  # @return [Integer] Hash code
594
660
  def hash
595
- [provider_type, ara_enabled, authentication_credentials, auto_rotate, delete_protection, description, host_provider, input_rule, item_custom_fields, json, key, key_data_base64, lock_during_sra_session, max_versions, name, output_rule, password_length, public_key_remote_path, rotate_after_disconnect, rotated_password, rotated_username, rotation_event_in, rotation_hour, rotation_interval, rotator_custom_cmd, rotator_type, same_password, secure_access_allow_external_user, secure_access_bastion_issuer, secure_access_certificate_issuer, secure_access_enable, secure_access_enforce_hosts_restriction, secure_access_host, secure_access_rdp_domain, secure_access_rdp_user, secure_access_ssh_user, secure_access_target_type, skip_dry_run, tags, target, target_name, token, uid_token, use_capital_letters, use_lower_letters, use_numbers, use_special_characters].hash
661
+ [provider_type, ara_enabled, authentication_credentials, auto_rotate, delete_protection, description, host_provider, input_rule, item_custom_fields, json, key, key_algorithm, key_data_base64, lock_during_sra_session, max_versions, name, output_rule, password_length, public_key_remote_path, rotate_after_disconnect, rotated_password, rotated_username, rotation_event_in, rotation_hour, rotation_interval, rotator_custom_cmd, rotator_type, same_password, secure_access_allow_external_user, secure_access_bastion_issuer, secure_access_certificate_issuer, secure_access_enable, secure_access_enforce_hosts_restriction, secure_access_host, secure_access_rdp_domain, secure_access_rdp_user, secure_access_ssh_creds, secure_access_ssh_user, secure_access_target_type, secure_access_url, secure_access_web, secure_access_web_browsing, secure_access_web_proxy, skip_dry_run, tags, target, target_name, token, uid_token, use_capital_letters, use_lower_letters, use_numbers, use_special_characters].hash
596
662
  end
597
663
 
598
664
  # Builds the object from hash