akeyless 4.2.4 → 4.2.5

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 +12 -1
  3. data/docs/AcmeAccount.md +22 -0
  4. data/docs/AuthMethodRoleAssociation.md +2 -0
  5. data/docs/ChangeAdminAccountPassword.md +26 -0
  6. data/docs/CreatePKICertIssuer.md +5 -1
  7. data/docs/DeactivateAcmeAccount.md +28 -0
  8. data/docs/GenerateAcmeEab.md +24 -0
  9. data/docs/GenerateAcmeEabOutput.md +22 -0
  10. data/docs/GetGroupOutput.md +2 -0
  11. data/docs/GetKubeExecCreds.md +1 -1
  12. data/docs/GetPKICertificate.md +1 -1
  13. data/docs/Group.md +2 -0
  14. data/docs/ListAcmeAccounts.md +24 -0
  15. data/docs/ListAcmeAccountsOutput.md +18 -0
  16. data/docs/PKICertificateIssueDetails.md +4 -0
  17. data/docs/RoleAssociationDetails.md +2 -0
  18. data/docs/RoleAuthMethodAssociation.md +2 -0
  19. data/docs/UpdateClassicKeyCertificate.md +2 -0
  20. data/docs/UpdateItem.md +2 -0
  21. data/docs/UpdatePKICertIssuer.md +5 -1
  22. data/docs/V2Api.md +252 -0
  23. data/lib/akeyless/api/v2_api.rb +256 -0
  24. data/lib/akeyless/models/acme_account.rb +234 -0
  25. data/lib/akeyless/models/auth_method_role_association.rb +10 -1
  26. data/lib/akeyless/models/change_admin_account_password.rb +271 -0
  27. data/lib/akeyless/models/create_pki_cert_issuer.rb +24 -2
  28. data/lib/akeyless/models/deactivate_acme_account.rb +282 -0
  29. data/lib/akeyless/models/generate_acme_eab.rb +254 -0
  30. data/lib/akeyless/models/generate_acme_eab_output.rb +232 -0
  31. data/lib/akeyless/models/get_group_output.rb +10 -1
  32. data/lib/akeyless/models/get_kube_exec_creds.rb +1 -1
  33. data/lib/akeyless/models/get_pki_certificate.rb +1 -1
  34. data/lib/akeyless/models/group.rb +10 -1
  35. data/lib/akeyless/models/list_acme_accounts.rb +255 -0
  36. data/lib/akeyless/models/list_acme_accounts_output.rb +216 -0
  37. data/lib/akeyless/models/pki_certificate_issue_details.rb +19 -1
  38. data/lib/akeyless/models/role_association_details.rb +10 -1
  39. data/lib/akeyless/models/role_auth_method_association.rb +10 -1
  40. data/lib/akeyless/models/update_classic_key_certificate.rb +10 -1
  41. data/lib/akeyless/models/update_item.rb +10 -1
  42. data/lib/akeyless/models/update_pki_cert_issuer.rb +24 -2
  43. data/lib/akeyless/version.rb +1 -1
  44. data/lib/akeyless.rb +7 -0
  45. data/spec/models/acme_account_spec.rb +48 -0
  46. data/spec/models/change_admin_account_password_spec.rb +60 -0
  47. data/spec/models/deactivate_acme_account_spec.rb +66 -0
  48. data/spec/models/generate_acme_eab_output_spec.rb +48 -0
  49. data/spec/models/generate_acme_eab_spec.rb +54 -0
  50. data/spec/models/list_acme_accounts_output_spec.rb +36 -0
  51. data/spec/models/list_acme_accounts_spec.rb +54 -0
  52. metadata +30 -2
@@ -0,0 +1,216 @@
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
+ Generator version: 7.9.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Akeyless
17
+ class ListAcmeAccountsOutput
18
+ attr_accessor :accounts
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'accounts' => :'accounts'
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
+ :'accounts' => :'Array<AcmeAccount>'
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::ListAcmeAccountsOutput` 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::ListAcmeAccountsOutput`. 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?(:'accounts')
61
+ if (value = attributes[:'accounts']).is_a?(Array)
62
+ self.accounts = value
63
+ end
64
+ end
65
+ end
66
+
67
+ # Show invalid properties with the reasons. Usually used together with valid?
68
+ # @return Array for valid properties with the reasons
69
+ def list_invalid_properties
70
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
71
+ invalid_properties = Array.new
72
+ invalid_properties
73
+ end
74
+
75
+ # Check to see if the all the properties in the model are valid
76
+ # @return true if the model is valid
77
+ def valid?
78
+ warn '[DEPRECATED] the `valid?` method is obsolete'
79
+ true
80
+ end
81
+
82
+ # Checks equality by comparing each attribute.
83
+ # @param [Object] Object to be compared
84
+ def ==(o)
85
+ return true if self.equal?(o)
86
+ self.class == o.class &&
87
+ accounts == o.accounts
88
+ end
89
+
90
+ # @see the `==` method
91
+ # @param [Object] Object to be compared
92
+ def eql?(o)
93
+ self == o
94
+ end
95
+
96
+ # Calculates hash code according to all attributes.
97
+ # @return [Integer] Hash code
98
+ def hash
99
+ [accounts].hash
100
+ end
101
+
102
+ # Builds the object from hash
103
+ # @param [Hash] attributes Model attributes in the form of hash
104
+ # @return [Object] Returns the model itself
105
+ def self.build_from_hash(attributes)
106
+ return nil unless attributes.is_a?(Hash)
107
+ attributes = attributes.transform_keys(&:to_sym)
108
+ transformed_hash = {}
109
+ openapi_types.each_pair do |key, type|
110
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
111
+ transformed_hash["#{key}"] = nil
112
+ elsif type =~ /\AArray<(.*)>/i
113
+ # check to ensure the input is an array given that the attribute
114
+ # is documented as an array but the input is not
115
+ if attributes[attribute_map[key]].is_a?(Array)
116
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
117
+ end
118
+ elsif !attributes[attribute_map[key]].nil?
119
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
120
+ end
121
+ end
122
+ new(transformed_hash)
123
+ end
124
+
125
+ # Deserializes the data based on type
126
+ # @param string type Data type
127
+ # @param string value Value to be deserialized
128
+ # @return [Object] Deserialized data
129
+ def self._deserialize(type, value)
130
+ case type.to_sym
131
+ when :Time
132
+ Time.parse(value)
133
+ when :Date
134
+ Date.parse(value)
135
+ when :String
136
+ value.to_s
137
+ when :Integer
138
+ value.to_i
139
+ when :Float
140
+ value.to_f
141
+ when :Boolean
142
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
143
+ true
144
+ else
145
+ false
146
+ end
147
+ when :Object
148
+ # generic object (usually a Hash), return directly
149
+ value
150
+ when /\AArray<(?<inner_type>.+)>\z/
151
+ inner_type = Regexp.last_match[:inner_type]
152
+ value.map { |v| _deserialize(inner_type, v) }
153
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
154
+ k_type = Regexp.last_match[:k_type]
155
+ v_type = Regexp.last_match[:v_type]
156
+ {}.tap do |hash|
157
+ value.each do |k, v|
158
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
159
+ end
160
+ end
161
+ else # model
162
+ # models (e.g. Pet) or oneOf
163
+ klass = Akeyless.const_get(type)
164
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
165
+ end
166
+ end
167
+
168
+ # Returns the string representation of the object
169
+ # @return [String] String presentation of the object
170
+ def to_s
171
+ to_hash.to_s
172
+ end
173
+
174
+ # to_body is an alias to to_hash (backward compatibility)
175
+ # @return [Hash] Returns the object in the form of hash
176
+ def to_body
177
+ to_hash
178
+ end
179
+
180
+ # Returns the object in the form of hash
181
+ # @return [Hash] Returns the object in the form of hash
182
+ def to_hash
183
+ hash = {}
184
+ self.class.attribute_map.each_pair do |attr, param|
185
+ value = self.send(attr)
186
+ if value.nil?
187
+ is_nullable = self.class.openapi_nullable.include?(attr)
188
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
189
+ end
190
+
191
+ hash[param] = _to_hash(value)
192
+ end
193
+ hash
194
+ end
195
+
196
+ # Outputs non-array value in the form of hash
197
+ # For object, use to_hash. Otherwise, just return the value
198
+ # @param [Object] value Any valid value
199
+ # @return [Hash] Returns the value in the form of hash
200
+ def _to_hash(value)
201
+ if value.is_a?(Array)
202
+ value.compact.map { |v| _to_hash(v) }
203
+ elsif value.is_a?(Hash)
204
+ {}.tap do |hash|
205
+ value.each { |k, v| hash[k] = _to_hash(v) }
206
+ end
207
+ elsif value.respond_to? :to_hash
208
+ value.to_hash
209
+ else
210
+ value
211
+ end
212
+ end
213
+
214
+ end
215
+
216
+ end
@@ -15,6 +15,8 @@ require 'time'
15
15
 
16
16
  module Akeyless
17
17
  class PKICertificateIssueDetails
18
+ attr_accessor :acme_enabled
19
+
18
20
  attr_accessor :allow_any_name
19
21
 
20
22
  attr_accessor :allow_copy_ext_from_csr
@@ -64,6 +66,8 @@ module Akeyless
64
66
 
65
67
  attr_accessor :locality
66
68
 
69
+ attr_accessor :non_critical_key_usage
70
+
67
71
  # A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years.
68
72
  attr_accessor :not_before_duration
69
73
 
@@ -87,6 +91,7 @@ module Akeyless
87
91
  # Attribute mapping from ruby-style variable name to JSON key.
88
92
  def self.attribute_map
89
93
  {
94
+ :'acme_enabled' => :'acme_enabled',
90
95
  :'allow_any_name' => :'allow_any_name',
91
96
  :'allow_copy_ext_from_csr' => :'allow_copy_ext_from_csr',
92
97
  :'allow_subdomains' => :'allow_subdomains',
@@ -110,6 +115,7 @@ module Akeyless
110
115
  :'key_type' => :'key_type',
111
116
  :'key_usage_list' => :'key_usage_list',
112
117
  :'locality' => :'locality',
118
+ :'non_critical_key_usage' => :'non_critical_key_usage',
113
119
  :'not_before_duration' => :'not_before_duration',
114
120
  :'organization_list' => :'organization_list',
115
121
  :'organization_unit_list' => :'organization_unit_list',
@@ -130,6 +136,7 @@ module Akeyless
130
136
  # Attribute type mapping.
131
137
  def self.openapi_types
132
138
  {
139
+ :'acme_enabled' => :'Boolean',
133
140
  :'allow_any_name' => :'Boolean',
134
141
  :'allow_copy_ext_from_csr' => :'Boolean',
135
142
  :'allow_subdomains' => :'Boolean',
@@ -153,6 +160,7 @@ module Akeyless
153
160
  :'key_type' => :'String',
154
161
  :'key_usage_list' => :'Array<String>',
155
162
  :'locality' => :'Array<String>',
163
+ :'non_critical_key_usage' => :'Boolean',
156
164
  :'not_before_duration' => :'Integer',
157
165
  :'organization_list' => :'Array<String>',
158
166
  :'organization_unit_list' => :'Array<String>',
@@ -186,6 +194,10 @@ module Akeyless
186
194
  h[k.to_sym] = v
187
195
  }
188
196
 
197
+ if attributes.key?(:'acme_enabled')
198
+ self.acme_enabled = attributes[:'acme_enabled']
199
+ end
200
+
189
201
  if attributes.key?(:'allow_any_name')
190
202
  self.allow_any_name = attributes[:'allow_any_name']
191
203
  end
@@ -292,6 +304,10 @@ module Akeyless
292
304
  end
293
305
  end
294
306
 
307
+ if attributes.key?(:'non_critical_key_usage')
308
+ self.non_critical_key_usage = attributes[:'non_critical_key_usage']
309
+ end
310
+
295
311
  if attributes.key?(:'not_before_duration')
296
312
  self.not_before_duration = attributes[:'not_before_duration']
297
313
  end
@@ -359,6 +375,7 @@ module Akeyless
359
375
  def ==(o)
360
376
  return true if self.equal?(o)
361
377
  self.class == o.class &&
378
+ acme_enabled == o.acme_enabled &&
362
379
  allow_any_name == o.allow_any_name &&
363
380
  allow_copy_ext_from_csr == o.allow_copy_ext_from_csr &&
364
381
  allow_subdomains == o.allow_subdomains &&
@@ -382,6 +399,7 @@ module Akeyless
382
399
  key_type == o.key_type &&
383
400
  key_usage_list == o.key_usage_list &&
384
401
  locality == o.locality &&
402
+ non_critical_key_usage == o.non_critical_key_usage &&
385
403
  not_before_duration == o.not_before_duration &&
386
404
  organization_list == o.organization_list &&
387
405
  organization_unit_list == o.organization_unit_list &&
@@ -402,7 +420,7 @@ module Akeyless
402
420
  # Calculates hash code according to all attributes.
403
421
  # @return [Integer] Hash code
404
422
  def hash
405
- [allow_any_name, allow_copy_ext_from_csr, allow_subdomains, allowed_domains_list, allowed_extra_extensions, allowed_uri_sans, basic_constraints_valid_for_non_ca, certificate_authority_mode, client_flag, code_signing_flag, country, create_private_crl, create_public_crl, destination_path, enforce_hostnames, expiration_events, gw_cluster_id, gw_cluster_url, is_ca, key_bits, key_type, key_usage_list, locality, not_before_duration, organization_list, organization_unit_list, postal_code, protect_generated_certificates, province, require_cn, server_flag, street_address].hash
423
+ [acme_enabled, allow_any_name, allow_copy_ext_from_csr, allow_subdomains, allowed_domains_list, allowed_extra_extensions, allowed_uri_sans, basic_constraints_valid_for_non_ca, certificate_authority_mode, client_flag, code_signing_flag, country, create_private_crl, create_public_crl, destination_path, enforce_hostnames, expiration_events, gw_cluster_id, gw_cluster_url, is_ca, key_bits, key_type, key_usage_list, locality, non_critical_key_usage, not_before_duration, organization_list, organization_unit_list, postal_code, protect_generated_certificates, province, require_cn, server_flag, street_address].hash
406
424
  end
407
425
 
408
426
  # Builds the object from hash
@@ -22,6 +22,8 @@ module Akeyless
22
22
 
23
23
  attr_accessor :auth_method_sub_claims
24
24
 
25
+ attr_accessor :is_subclaims_with_operator
26
+
25
27
  attr_accessor :role_name
26
28
 
27
29
  attr_accessor :sub_claims_case_sensitive
@@ -32,6 +34,7 @@ module Akeyless
32
34
  :'assoc_id' => :'assoc_id',
33
35
  :'auth_method_name' => :'auth_method_name',
34
36
  :'auth_method_sub_claims' => :'auth_method_sub_claims',
37
+ :'is_subclaims_with_operator' => :'is_subclaims_with_operator',
35
38
  :'role_name' => :'role_name',
36
39
  :'sub_claims_case_sensitive' => :'sub_claims_case_sensitive'
37
40
  }
@@ -48,6 +51,7 @@ module Akeyless
48
51
  :'assoc_id' => :'String',
49
52
  :'auth_method_name' => :'String',
50
53
  :'auth_method_sub_claims' => :'Hash<String, Array<String>>',
54
+ :'is_subclaims_with_operator' => :'Boolean',
51
55
  :'role_name' => :'String',
52
56
  :'sub_claims_case_sensitive' => :'Boolean'
53
57
  }
@@ -88,6 +92,10 @@ module Akeyless
88
92
  end
89
93
  end
90
94
 
95
+ if attributes.key?(:'is_subclaims_with_operator')
96
+ self.is_subclaims_with_operator = attributes[:'is_subclaims_with_operator']
97
+ end
98
+
91
99
  if attributes.key?(:'role_name')
92
100
  self.role_name = attributes[:'role_name']
93
101
  end
@@ -120,6 +128,7 @@ module Akeyless
120
128
  assoc_id == o.assoc_id &&
121
129
  auth_method_name == o.auth_method_name &&
122
130
  auth_method_sub_claims == o.auth_method_sub_claims &&
131
+ is_subclaims_with_operator == o.is_subclaims_with_operator &&
123
132
  role_name == o.role_name &&
124
133
  sub_claims_case_sensitive == o.sub_claims_case_sensitive
125
134
  end
@@ -133,7 +142,7 @@ module Akeyless
133
142
  # Calculates hash code according to all attributes.
134
143
  # @return [Integer] Hash code
135
144
  def hash
136
- [assoc_id, auth_method_name, auth_method_sub_claims, role_name, sub_claims_case_sensitive].hash
145
+ [assoc_id, auth_method_name, auth_method_sub_claims, is_subclaims_with_operator, role_name, sub_claims_case_sensitive].hash
137
146
  end
138
147
 
139
148
  # Builds the object from hash
@@ -24,6 +24,8 @@ module Akeyless
24
24
 
25
25
  attr_accessor :auth_method_sub_claims
26
26
 
27
+ attr_accessor :is_subclaims_with_operator
28
+
27
29
  attr_accessor :sub_claims_case_sensitive
28
30
 
29
31
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -33,6 +35,7 @@ module Akeyless
33
35
  :'auth_method_access_id' => :'auth_method_access_id',
34
36
  :'auth_method_name' => :'auth_method_name',
35
37
  :'auth_method_sub_claims' => :'auth_method_sub_claims',
38
+ :'is_subclaims_with_operator' => :'is_subclaims_with_operator',
36
39
  :'sub_claims_case_sensitive' => :'sub_claims_case_sensitive'
37
40
  }
38
41
  end
@@ -49,6 +52,7 @@ module Akeyless
49
52
  :'auth_method_access_id' => :'String',
50
53
  :'auth_method_name' => :'String',
51
54
  :'auth_method_sub_claims' => :'Hash<String, Array<String>>',
55
+ :'is_subclaims_with_operator' => :'Boolean',
52
56
  :'sub_claims_case_sensitive' => :'Boolean'
53
57
  }
54
58
  end
@@ -92,6 +96,10 @@ module Akeyless
92
96
  end
93
97
  end
94
98
 
99
+ if attributes.key?(:'is_subclaims_with_operator')
100
+ self.is_subclaims_with_operator = attributes[:'is_subclaims_with_operator']
101
+ end
102
+
95
103
  if attributes.key?(:'sub_claims_case_sensitive')
96
104
  self.sub_claims_case_sensitive = attributes[:'sub_claims_case_sensitive']
97
105
  end
@@ -121,6 +129,7 @@ module Akeyless
121
129
  auth_method_access_id == o.auth_method_access_id &&
122
130
  auth_method_name == o.auth_method_name &&
123
131
  auth_method_sub_claims == o.auth_method_sub_claims &&
132
+ is_subclaims_with_operator == o.is_subclaims_with_operator &&
124
133
  sub_claims_case_sensitive == o.sub_claims_case_sensitive
125
134
  end
126
135
 
@@ -133,7 +142,7 @@ module Akeyless
133
142
  # Calculates hash code according to all attributes.
134
143
  # @return [Integer] Hash code
135
144
  def hash
136
- [assoc_id, auth_method_access_id, auth_method_name, auth_method_sub_claims, sub_claims_case_sensitive].hash
145
+ [assoc_id, auth_method_access_id, auth_method_name, auth_method_sub_claims, is_subclaims_with_operator, sub_claims_case_sensitive].hash
137
146
  end
138
147
 
139
148
  # Builds the object from hash
@@ -19,6 +19,8 @@ module Akeyless
19
19
  # PEM Certificate in a Base64 format. Used for updating RSA keys' certificates.
20
20
  attr_accessor :cert_file_data
21
21
 
22
+ attr_accessor :certificate_format
23
+
22
24
  # Set output format to JSON
23
25
  attr_accessor :json
24
26
 
@@ -35,6 +37,7 @@ module Akeyless
35
37
  def self.attribute_map
36
38
  {
37
39
  :'cert_file_data' => :'cert-file-data',
40
+ :'certificate_format' => :'certificate-format',
38
41
  :'json' => :'json',
39
42
  :'name' => :'name',
40
43
  :'token' => :'token',
@@ -51,6 +54,7 @@ module Akeyless
51
54
  def self.openapi_types
52
55
  {
53
56
  :'cert_file_data' => :'String',
57
+ :'certificate_format' => :'String',
54
58
  :'json' => :'Boolean',
55
59
  :'name' => :'String',
56
60
  :'token' => :'String',
@@ -83,6 +87,10 @@ module Akeyless
83
87
  self.cert_file_data = attributes[:'cert_file_data']
84
88
  end
85
89
 
90
+ if attributes.key?(:'certificate_format')
91
+ self.certificate_format = attributes[:'certificate_format']
92
+ end
93
+
86
94
  if attributes.key?(:'json')
87
95
  self.json = attributes[:'json']
88
96
  else
@@ -130,6 +138,7 @@ module Akeyless
130
138
  return true if self.equal?(o)
131
139
  self.class == o.class &&
132
140
  cert_file_data == o.cert_file_data &&
141
+ certificate_format == o.certificate_format &&
133
142
  json == o.json &&
134
143
  name == o.name &&
135
144
  token == o.token &&
@@ -145,7 +154,7 @@ module Akeyless
145
154
  # Calculates hash code according to all attributes.
146
155
  # @return [Integer] Hash code
147
156
  def hash
148
- [cert_file_data, json, name, token, uid_token].hash
157
+ [cert_file_data, certificate_format, json, name, token, uid_token].hash
149
158
  end
150
159
 
151
160
  # Builds the object from hash
@@ -26,6 +26,8 @@ module Akeyless
26
26
  # PEM Certificate in a Base64 format. Used for updating RSA keys' certificates.
27
27
  attr_accessor :cert_file_data
28
28
 
29
+ attr_accessor :certificate_format
30
+
29
31
  # Trigger an event when a secret value changed [true/false] (Relevant only for Static Secret)
30
32
  attr_accessor :change_event
31
33
 
@@ -150,6 +152,7 @@ module Akeyless
150
152
  :'accessibility' => :'accessibility',
151
153
  :'add_tag' => :'add-tag',
152
154
  :'cert_file_data' => :'cert-file-data',
155
+ :'certificate_format' => :'certificate-format',
153
156
  :'change_event' => :'change-event',
154
157
  :'delete_protection' => :'delete_protection',
155
158
  :'description' => :'description',
@@ -204,6 +207,7 @@ module Akeyless
204
207
  :'accessibility' => :'String',
205
208
  :'add_tag' => :'Array<String>',
206
209
  :'cert_file_data' => :'String',
210
+ :'certificate_format' => :'String',
207
211
  :'change_event' => :'String',
208
212
  :'delete_protection' => :'String',
209
213
  :'description' => :'String',
@@ -287,6 +291,10 @@ module Akeyless
287
291
  self.cert_file_data = attributes[:'cert_file_data']
288
292
  end
289
293
 
294
+ if attributes.key?(:'certificate_format')
295
+ self.certificate_format = attributes[:'certificate_format']
296
+ end
297
+
290
298
  if attributes.key?(:'change_event')
291
299
  self.change_event = attributes[:'change_event']
292
300
  end
@@ -497,6 +505,7 @@ module Akeyless
497
505
  accessibility == o.accessibility &&
498
506
  add_tag == o.add_tag &&
499
507
  cert_file_data == o.cert_file_data &&
508
+ certificate_format == o.certificate_format &&
500
509
  change_event == o.change_event &&
501
510
  delete_protection == o.delete_protection &&
502
511
  description == o.description &&
@@ -547,7 +556,7 @@ module Akeyless
547
556
  # Calculates hash code according to all attributes.
548
557
  # @return [Integer] Hash code
549
558
  def hash
550
- [provider_type, accessibility, add_tag, cert_file_data, change_event, delete_protection, description, expiration_event_in, host_provider, json, max_versions, name, new_metadata, new_name, rm_tag, rotate_after_disconnect, secure_access_add_host, secure_access_allow_external_user, secure_access_allow_port_forwading, secure_access_aws_account_id, secure_access_aws_native_cli, secure_access_aws_region, secure_access_bastion_api, secure_access_bastion_issuer, secure_access_bastion_ssh, secure_access_cluster_endpoint, secure_access_dashboard_url, secure_access_db_name, secure_access_db_schema, secure_access_enable, secure_access_host, secure_access_rd_gateway_server, secure_access_rdp_domain, secure_access_rdp_user, secure_access_rm_host, secure_access_ssh_creds, secure_access_ssh_creds_user, secure_access_url, secure_access_use_internal_bastion, secure_access_web_browsing, secure_access_web_proxy, token, uid_token].hash
559
+ [provider_type, accessibility, add_tag, cert_file_data, certificate_format, change_event, delete_protection, description, expiration_event_in, host_provider, json, max_versions, name, new_metadata, new_name, rm_tag, rotate_after_disconnect, secure_access_add_host, secure_access_allow_external_user, secure_access_allow_port_forwading, secure_access_aws_account_id, secure_access_aws_native_cli, secure_access_aws_region, secure_access_bastion_api, secure_access_bastion_issuer, secure_access_bastion_ssh, secure_access_cluster_endpoint, secure_access_dashboard_url, secure_access_db_name, secure_access_db_schema, secure_access_enable, secure_access_host, secure_access_rd_gateway_server, secure_access_rdp_domain, secure_access_rdp_user, secure_access_rm_host, secure_access_ssh_creds, secure_access_ssh_creds_user, secure_access_url, secure_access_use_internal_bastion, secure_access_web_browsing, secure_access_web_proxy, token, uid_token].hash
551
560
  end
552
561
 
553
562
  # Builds the object from hash
@@ -51,6 +51,9 @@ module Akeyless
51
51
  # Set this to allow the cert issuer will expose a public CRL endpoint
52
52
  attr_accessor :create_public_crl
53
53
 
54
+ # Mark key usage as critical [true/false]
55
+ attr_accessor :critical_key_usage
56
+
54
57
  # Protection from accidental deletion of this object [true/false]
55
58
  attr_accessor :delete_protection
56
59
 
@@ -60,10 +63,13 @@ module Akeyless
60
63
  # A path in which to save generated certificates
61
64
  attr_accessor :destination_path
62
65
 
66
+ # If set, the cert issuer will support the acme protocol
67
+ attr_accessor :enable_acme
68
+
63
69
  # How many days before the expiration of the certificate would you like to be notified.
64
70
  attr_accessor :expiration_event_in
65
71
 
66
- # The GW cluster URL to issue the certificate from, required in Public CA mode or to allow CRLs on private CA
72
+ # The GW cluster URL to issue the certificate from. Required in Public CA mode, to allow CRLs on private CA, or to enable ACME
67
73
  attr_accessor :gw_cluster_url
68
74
 
69
75
  # If set, the basic constraints extension will be added to certificate
@@ -144,9 +150,11 @@ module Akeyless
144
150
  :'country' => :'country',
145
151
  :'create_private_crl' => :'create-private-crl',
146
152
  :'create_public_crl' => :'create-public-crl',
153
+ :'critical_key_usage' => :'critical-key-usage',
147
154
  :'delete_protection' => :'delete_protection',
148
155
  :'description' => :'description',
149
156
  :'destination_path' => :'destination-path',
157
+ :'enable_acme' => :'enable-acme',
150
158
  :'expiration_event_in' => :'expiration-event-in',
151
159
  :'gw_cluster_url' => :'gw-cluster-url',
152
160
  :'is_ca' => :'is-ca',
@@ -193,9 +201,11 @@ module Akeyless
193
201
  :'country' => :'String',
194
202
  :'create_private_crl' => :'Boolean',
195
203
  :'create_public_crl' => :'Boolean',
204
+ :'critical_key_usage' => :'String',
196
205
  :'delete_protection' => :'String',
197
206
  :'description' => :'String',
198
207
  :'destination_path' => :'String',
208
+ :'enable_acme' => :'Boolean',
199
209
  :'expiration_event_in' => :'Array<String>',
200
210
  :'gw_cluster_url' => :'String',
201
211
  :'is_ca' => :'Boolean',
@@ -293,6 +303,12 @@ module Akeyless
293
303
  self.create_public_crl = attributes[:'create_public_crl']
294
304
  end
295
305
 
306
+ if attributes.key?(:'critical_key_usage')
307
+ self.critical_key_usage = attributes[:'critical_key_usage']
308
+ else
309
+ self.critical_key_usage = 'true'
310
+ end
311
+
296
312
  if attributes.key?(:'delete_protection')
297
313
  self.delete_protection = attributes[:'delete_protection']
298
314
  end
@@ -305,6 +321,10 @@ module Akeyless
305
321
  self.destination_path = attributes[:'destination_path']
306
322
  end
307
323
 
324
+ if attributes.key?(:'enable_acme')
325
+ self.enable_acme = attributes[:'enable_acme']
326
+ end
327
+
308
328
  if attributes.key?(:'expiration_event_in')
309
329
  if (value = attributes[:'expiration_event_in']).is_a?(Array)
310
330
  self.expiration_event_in = value
@@ -459,9 +479,11 @@ module Akeyless
459
479
  country == o.country &&
460
480
  create_private_crl == o.create_private_crl &&
461
481
  create_public_crl == o.create_public_crl &&
482
+ critical_key_usage == o.critical_key_usage &&
462
483
  delete_protection == o.delete_protection &&
463
484
  description == o.description &&
464
485
  destination_path == o.destination_path &&
486
+ enable_acme == o.enable_acme &&
465
487
  expiration_event_in == o.expiration_event_in &&
466
488
  gw_cluster_url == o.gw_cluster_url &&
467
489
  is_ca == o.is_ca &&
@@ -496,7 +518,7 @@ module Akeyless
496
518
  # Calculates hash code according to all attributes.
497
519
  # @return [Integer] Hash code
498
520
  def hash
499
- [add_tag, allow_any_name, allow_copy_ext_from_csr, allow_subdomains, allowed_domains, allowed_extra_extensions, allowed_uri_sans, client_flag, code_signing_flag, country, create_private_crl, create_public_crl, delete_protection, description, destination_path, expiration_event_in, gw_cluster_url, is_ca, json, key_usage, locality, metadata, name, new_name, not_enforce_hostnames, not_require_cn, organizational_units, organizations, postal_code, protect_certificates, province, rm_tag, server_flag, signer_key_name, street_address, token, ttl, uid_token].hash
521
+ [add_tag, allow_any_name, allow_copy_ext_from_csr, allow_subdomains, allowed_domains, allowed_extra_extensions, allowed_uri_sans, client_flag, code_signing_flag, country, create_private_crl, create_public_crl, critical_key_usage, delete_protection, description, destination_path, enable_acme, expiration_event_in, gw_cluster_url, is_ca, json, key_usage, locality, metadata, name, new_name, not_enforce_hostnames, not_require_cn, organizational_units, organizations, postal_code, protect_certificates, province, rm_tag, server_flag, signer_key_name, street_address, token, ttl, uid_token].hash
500
522
  end
501
523
 
502
524
  # Builds the object from hash
@@ -11,5 +11,5 @@ Generator version: 7.9.0-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module Akeyless
14
- VERSION = '4.2.4'
14
+ VERSION = '4.2.5'
15
15
  end
data/lib/akeyless.rb CHANGED
@@ -26,6 +26,7 @@ require 'akeyless/models/access_or_group_permission_assignment'
26
26
  require 'akeyless/models/access_permission_assignment'
27
27
  require 'akeyless/models/account_general_settings'
28
28
  require 'akeyless/models/account_object_version_settings_output'
29
+ require 'akeyless/models/acme_account'
29
30
  require 'akeyless/models/active_directory_migration'
30
31
  require 'akeyless/models/active_directory_payload'
31
32
  require 'akeyless/models/add_gateway_allowed_access_id'
@@ -105,6 +106,7 @@ require 'akeyless/models/certificate_issue_info'
105
106
  require 'akeyless/models/certificate_template_info'
106
107
  require 'akeyless/models/certificate_version_info'
107
108
  require 'akeyless/models/cf_info'
109
+ require 'akeyless/models/change_admin_account_password'
108
110
  require 'akeyless/models/chef_target_details'
109
111
  require 'akeyless/models/classic_key_details_info'
110
112
  require 'akeyless/models/classic_key_status_info'
@@ -235,6 +237,7 @@ require 'akeyless/models/ds_producer_details'
235
237
  require 'akeyless/models/data_protection_section'
236
238
  require 'akeyless/models/datadog_forwarding_config'
237
239
  require 'akeyless/models/db_target_details'
240
+ require 'akeyless/models/deactivate_acme_account'
238
241
  require 'akeyless/models/decrypt'
239
242
  require 'akeyless/models/decrypt_file'
240
243
  require 'akeyless/models/decrypt_file_output'
@@ -578,6 +581,8 @@ require 'akeyless/models/gateways_list_response'
578
581
  require 'akeyless/models/gcp_target_details'
579
582
  require 'akeyless/models/gen_customer_fragment'
580
583
  require 'akeyless/models/general_config_part'
584
+ require 'akeyless/models/generate_acme_eab'
585
+ require 'akeyless/models/generate_acme_eab_output'
581
586
  require 'akeyless/models/generate_csr'
582
587
  require 'akeyless/models/generate_csr_output'
583
588
  require 'akeyless/models/get_account_settings'
@@ -683,6 +688,8 @@ require 'akeyless/models/ldap_target_details'
683
688
  require 'akeyless/models/leadership_config_part'
684
689
  require 'akeyless/models/linked_details'
685
690
  require 'akeyless/models/linked_target_details'
691
+ require 'akeyless/models/list_acme_accounts'
692
+ require 'akeyless/models/list_acme_accounts_output'
686
693
  require 'akeyless/models/list_auth_methods'
687
694
  require 'akeyless/models/list_auth_methods_output'
688
695
  require 'akeyless/models/list_gateways'