akeyless 3.1.1 → 3.2.0

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 (105) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +23 -1
  3. data/docs/AssocTargetItem.md +2 -0
  4. data/docs/CreateCertificate.md +3 -1
  5. data/docs/CreateClassicKey.md +6 -2
  6. data/docs/CreateDBTarget.md +4 -0
  7. data/docs/CreateDFCKey.md +3 -1
  8. data/docs/CreateDynamicSecret.md +3 -1
  9. data/docs/CreateKey.md +3 -1
  10. data/docs/CreatePKICertIssuer.md +3 -1
  11. data/docs/CreatePingTarget.md +38 -0
  12. data/docs/CreatePingTargetOutput.md +18 -0
  13. data/docs/CreateRotatedSecret.md +5 -1
  14. data/docs/CreateSSHCertIssuer.md +3 -1
  15. data/docs/CreateSecret.md +3 -1
  16. data/docs/CreateTokenizer.md +3 -1
  17. data/docs/DSProducerDetails.md +48 -0
  18. data/docs/DecryptGPG.md +34 -0
  19. data/docs/DecryptGPGOutput.md +18 -0
  20. data/docs/EncryptGPG.md +32 -0
  21. data/docs/EncryptGPGOutput.md +18 -0
  22. data/docs/GatewayCreateProducerPing.md +66 -0
  23. data/docs/GatewayCreateProducerPingOutput.md +18 -0
  24. data/docs/GatewayCreateProducerSnowflake.md +4 -0
  25. data/docs/GatewayUpdateItem.md +3 -1
  26. data/docs/GatewayUpdateProducerPing.md +68 -0
  27. data/docs/GatewayUpdateProducerPingOutput.md +18 -0
  28. data/docs/GatewayUpdateProducerSnowflake.md +4 -0
  29. data/docs/GenCustomerFragment.md +4 -2
  30. data/docs/GetKubeExecCreds.md +5 -3
  31. data/docs/GetPKICertificate.md +5 -3
  32. data/docs/SecureRemoteAccess.md +2 -0
  33. data/docs/SignGPG.md +32 -0
  34. data/docs/SignGPGOutput.md +18 -0
  35. data/docs/TargetTypeDetailsInput.md +14 -0
  36. data/docs/UpdateDBTarget.md +4 -0
  37. data/docs/UpdateItem.md +3 -1
  38. data/docs/UpdatePKICertIssuer.md +3 -1
  39. data/docs/UpdatePingTarget.md +44 -0
  40. data/docs/UpdateRotatedSecret.md +5 -1
  41. data/docs/UpdateSSHCertIssuer.md +3 -1
  42. data/docs/UploadPKCS12.md +3 -1
  43. data/docs/UploadRSA.md +3 -1
  44. data/docs/V2Api.md +504 -0
  45. data/docs/VerifyGPG.md +32 -0
  46. data/lib/akeyless/api/v2_api.rb +512 -0
  47. data/lib/akeyless/models/assoc_target_item.rb +11 -1
  48. data/lib/akeyless/models/create_certificate.rb +12 -2
  49. data/lib/akeyless/models/create_classic_key.rb +23 -3
  50. data/lib/akeyless/models/create_db_target.rb +21 -1
  51. data/lib/akeyless/models/create_dfc_key.rb +12 -2
  52. data/lib/akeyless/models/create_dynamic_secret.rb +12 -4
  53. data/lib/akeyless/models/create_key.rb +12 -2
  54. data/lib/akeyless/models/create_ping_target.rb +329 -0
  55. data/lib/akeyless/models/create_ping_target_output.rb +219 -0
  56. data/lib/akeyless/models/create_pki_cert_issuer.rb +12 -2
  57. data/lib/akeyless/models/create_rotated_secret.rb +24 -2
  58. data/lib/akeyless/models/create_secret.rb +12 -2
  59. data/lib/akeyless/models/create_ssh_cert_issuer.rb +12 -2
  60. data/lib/akeyless/models/create_tokenizer.rb +12 -2
  61. data/lib/akeyless/models/decrypt_gpg.rb +310 -0
  62. data/lib/akeyless/models/decrypt_gpg_output.rb +219 -0
  63. data/lib/akeyless/models/ds_producer_details.rb +235 -1
  64. data/lib/akeyless/models/encrypt_gpg.rb +300 -0
  65. data/lib/akeyless/models/encrypt_gpg_output.rb +219 -0
  66. data/lib/akeyless/models/gateway_create_producer_ping.rb +482 -0
  67. data/lib/akeyless/models/gateway_create_producer_ping_output.rb +219 -0
  68. data/lib/akeyless/models/gateway_create_producer_snowflake.rb +22 -2
  69. data/lib/akeyless/models/gateway_update_item.rb +14 -2
  70. data/lib/akeyless/models/gateway_update_producer_ping.rb +492 -0
  71. data/lib/akeyless/models/gateway_update_producer_ping_output.rb +219 -0
  72. data/lib/akeyless/models/gateway_update_producer_snowflake.rb +22 -2
  73. data/lib/akeyless/models/gen_customer_fragment.rb +15 -5
  74. data/lib/akeyless/models/get_kube_exec_creds.rb +14 -4
  75. data/lib/akeyless/models/get_pki_certificate.rb +14 -4
  76. data/lib/akeyless/models/secure_remote_access.rb +10 -1
  77. data/lib/akeyless/models/sign_gpg.rb +300 -0
  78. data/lib/akeyless/models/sign_gpg_output.rb +219 -0
  79. data/lib/akeyless/models/target_type_details_input.rb +65 -1
  80. data/lib/akeyless/models/update_db_target.rb +21 -1
  81. data/lib/akeyless/models/update_item.rb +14 -2
  82. data/lib/akeyless/models/update_ping_target.rb +358 -0
  83. data/lib/akeyless/models/update_pki_cert_issuer.rb +12 -2
  84. data/lib/akeyless/models/update_rotated_secret.rb +26 -2
  85. data/lib/akeyless/models/update_ssh_cert_issuer.rb +12 -2
  86. data/lib/akeyless/models/upload_pkcs12.rb +12 -2
  87. data/lib/akeyless/models/upload_rsa.rb +12 -2
  88. data/lib/akeyless/models/verify_gpg.rb +300 -0
  89. data/lib/akeyless/version.rb +1 -1
  90. data/lib/akeyless.rb +14 -0
  91. data/spec/models/create_ping_target_output_spec.rb +34 -0
  92. data/spec/models/create_ping_target_spec.rb +94 -0
  93. data/spec/models/decrypt_gpg_output_spec.rb +34 -0
  94. data/spec/models/decrypt_gpg_spec.rb +82 -0
  95. data/spec/models/encrypt_gpg_output_spec.rb +34 -0
  96. data/spec/models/encrypt_gpg_spec.rb +76 -0
  97. data/spec/models/gateway_create_producer_ping_output_spec.rb +34 -0
  98. data/spec/models/gateway_create_producer_ping_spec.rb +178 -0
  99. data/spec/models/gateway_update_producer_ping_output_spec.rb +34 -0
  100. data/spec/models/gateway_update_producer_ping_spec.rb +184 -0
  101. data/spec/models/sign_gpg_output_spec.rb +34 -0
  102. data/spec/models/sign_gpg_spec.rb +76 -0
  103. data/spec/models/update_ping_target_spec.rb +112 -0
  104. data/spec/models/verify_gpg_spec.rb +76 -0
  105. metadata +609 -553
@@ -0,0 +1,219 @@
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 GatewayUpdateProducerPingOutput
18
+ attr_accessor :producer_details
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'producer_details' => :'producer_details'
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
+ :'producer_details' => :'DSProducerDetails'
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::GatewayUpdateProducerPingOutput` 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::GatewayUpdateProducerPingOutput`. 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?(:'producer_details')
61
+ self.producer_details = attributes[:'producer_details']
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
+ invalid_properties = Array.new
69
+ invalid_properties
70
+ end
71
+
72
+ # Check to see if the all the properties in the model are valid
73
+ # @return true if the model is valid
74
+ def valid?
75
+ true
76
+ end
77
+
78
+ # Checks equality by comparing each attribute.
79
+ # @param [Object] Object to be compared
80
+ def ==(o)
81
+ return true if self.equal?(o)
82
+ self.class == o.class &&
83
+ producer_details == o.producer_details
84
+ end
85
+
86
+ # @see the `==` method
87
+ # @param [Object] Object to be compared
88
+ def eql?(o)
89
+ self == o
90
+ end
91
+
92
+ # Calculates hash code according to all attributes.
93
+ # @return [Integer] Hash code
94
+ def hash
95
+ [producer_details].hash
96
+ end
97
+
98
+ # Builds the object from hash
99
+ # @param [Hash] attributes Model attributes in the form of hash
100
+ # @return [Object] Returns the model itself
101
+ def self.build_from_hash(attributes)
102
+ new.build_from_hash(attributes)
103
+ end
104
+
105
+ # Builds the object from hash
106
+ # @param [Hash] attributes Model attributes in the form of hash
107
+ # @return [Object] Returns the model itself
108
+ def build_from_hash(attributes)
109
+ return nil unless attributes.is_a?(Hash)
110
+ attributes = attributes.transform_keys(&:to_sym)
111
+ self.class.openapi_types.each_pair do |key, type|
112
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
113
+ self.send("#{key}=", nil)
114
+ elsif type =~ /\AArray<(.*)>/i
115
+ # check to ensure the input is an array given that the attribute
116
+ # is documented as an array but the input is not
117
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
118
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
119
+ end
120
+ elsif !attributes[self.class.attribute_map[key]].nil?
121
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
122
+ end
123
+ end
124
+
125
+ self
126
+ end
127
+
128
+ # Deserializes the data based on type
129
+ # @param string type Data type
130
+ # @param string value Value to be deserialized
131
+ # @return [Object] Deserialized data
132
+ def _deserialize(type, value)
133
+ case type.to_sym
134
+ when :Time
135
+ Time.parse(value)
136
+ when :Date
137
+ Date.parse(value)
138
+ when :String
139
+ value.to_s
140
+ when :Integer
141
+ value.to_i
142
+ when :Float
143
+ value.to_f
144
+ when :Boolean
145
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
146
+ true
147
+ else
148
+ false
149
+ end
150
+ when :Object
151
+ # generic object (usually a Hash), return directly
152
+ value
153
+ when /\AArray<(?<inner_type>.+)>\z/
154
+ inner_type = Regexp.last_match[:inner_type]
155
+ value.map { |v| _deserialize(inner_type, v) }
156
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
157
+ k_type = Regexp.last_match[:k_type]
158
+ v_type = Regexp.last_match[:v_type]
159
+ {}.tap do |hash|
160
+ value.each do |k, v|
161
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
162
+ end
163
+ end
164
+ else # model
165
+ # models (e.g. Pet) or oneOf
166
+ klass = Akeyless.const_get(type)
167
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
168
+ end
169
+ end
170
+
171
+ # Returns the string representation of the object
172
+ # @return [String] String presentation of the object
173
+ def to_s
174
+ to_hash.to_s
175
+ end
176
+
177
+ # to_body is an alias to to_hash (backward compatibility)
178
+ # @return [Hash] Returns the object in the form of hash
179
+ def to_body
180
+ to_hash
181
+ end
182
+
183
+ # Returns the object in the form of hash
184
+ # @return [Hash] Returns the object in the form of hash
185
+ def to_hash
186
+ hash = {}
187
+ self.class.attribute_map.each_pair do |attr, param|
188
+ value = self.send(attr)
189
+ if value.nil?
190
+ is_nullable = self.class.openapi_nullable.include?(attr)
191
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
192
+ end
193
+
194
+ hash[param] = _to_hash(value)
195
+ end
196
+ hash
197
+ end
198
+
199
+ # Outputs non-array value in the form of hash
200
+ # For object, use to_hash. Otherwise, just return the value
201
+ # @param [Object] value Any valid value
202
+ # @return [Hash] Returns the value in the form of hash
203
+ def _to_hash(value)
204
+ if value.is_a?(Array)
205
+ value.compact.map { |v| _to_hash(v) }
206
+ elsif value.is_a?(Hash)
207
+ {}.tap do |hash|
208
+ value.each { |k, v| hash[k] = _to_hash(v) }
209
+ end
210
+ elsif value.respond_to? :to_hash
211
+ value.to_hash
212
+ else
213
+ value
214
+ end
215
+ end
216
+
217
+ end
218
+
219
+ end
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Akeyless
17
- # gatewayUpdateProducerSnowflakeCmd is a command that updates a Snowflake producer
17
+ # GatewayUpdateProducerSnowflakeCmd is a command that updates a Snowflake producer
18
18
  class GatewayUpdateProducerSnowflake
19
19
  # Account name
20
20
  attr_accessor :account
@@ -40,6 +40,12 @@ module Akeyless
40
40
  # Producer name
41
41
  attr_accessor :new_name
42
42
 
43
+ # RSA Private key (base64 encoded)
44
+ attr_accessor :private_key
45
+
46
+ # The Private key passphrase
47
+ attr_accessor :private_key_passphrase
48
+
43
49
  # User role
44
50
  attr_accessor :role
45
51
 
@@ -72,6 +78,8 @@ module Akeyless
72
78
  :'json' => :'json',
73
79
  :'name' => :'name',
74
80
  :'new_name' => :'new-name',
81
+ :'private_key' => :'private-key',
82
+ :'private_key_passphrase' => :'private-key-passphrase',
75
83
  :'role' => :'role',
76
84
  :'tags' => :'tags',
77
85
  :'target_name' => :'target-name',
@@ -98,6 +106,8 @@ module Akeyless
98
106
  :'json' => :'Boolean',
99
107
  :'name' => :'String',
100
108
  :'new_name' => :'String',
109
+ :'private_key' => :'String',
110
+ :'private_key_passphrase' => :'String',
101
111
  :'role' => :'String',
102
112
  :'tags' => :'Array<String>',
103
113
  :'target_name' => :'String',
@@ -161,6 +171,14 @@ module Akeyless
161
171
  self.new_name = attributes[:'new_name']
162
172
  end
163
173
 
174
+ if attributes.key?(:'private_key')
175
+ self.private_key = attributes[:'private_key']
176
+ end
177
+
178
+ if attributes.key?(:'private_key_passphrase')
179
+ self.private_key_passphrase = attributes[:'private_key_passphrase']
180
+ end
181
+
164
182
  if attributes.key?(:'role')
165
183
  self.role = attributes[:'role']
166
184
  end
@@ -225,6 +243,8 @@ module Akeyless
225
243
  json == o.json &&
226
244
  name == o.name &&
227
245
  new_name == o.new_name &&
246
+ private_key == o.private_key &&
247
+ private_key_passphrase == o.private_key_passphrase &&
228
248
  role == o.role &&
229
249
  tags == o.tags &&
230
250
  target_name == o.target_name &&
@@ -243,7 +263,7 @@ module Akeyless
243
263
  # Calculates hash code according to all attributes.
244
264
  # @return [Integer] Hash code
245
265
  def hash
246
- [account, account_password, account_username, db_name, delete_protection, json, name, new_name, role, tags, target_name, token, uid_token, user_ttl, warehouse].hash
266
+ [account, account_password, account_username, db_name, delete_protection, json, name, new_name, private_key, private_key_passphrase, role, tags, target_name, token, uid_token, user_ttl, warehouse].hash
247
267
  end
248
268
 
249
269
  # Builds the object from hash
@@ -15,17 +15,21 @@ require 'time'
15
15
 
16
16
  module Akeyless
17
17
  class GenCustomerFragment
18
- # The Customer Fragment Description
18
+ # Description of the object
19
19
  attr_accessor :description
20
20
 
21
21
  # Set output format to JSON
22
22
  attr_accessor :json
23
23
 
24
+ # Deprecated - use description
25
+ attr_accessor :metadata
26
+
24
27
  # Attribute mapping from ruby-style variable name to JSON key.
25
28
  def self.attribute_map
26
29
  {
27
30
  :'description' => :'description',
28
- :'json' => :'json'
31
+ :'json' => :'json',
32
+ :'metadata' => :'metadata'
29
33
  }
30
34
  end
31
35
 
@@ -38,7 +42,8 @@ module Akeyless
38
42
  def self.openapi_types
39
43
  {
40
44
  :'description' => :'String',
41
- :'json' => :'Boolean'
45
+ :'json' => :'Boolean',
46
+ :'metadata' => :'String'
42
47
  }
43
48
  end
44
49
 
@@ -70,6 +75,10 @@ module Akeyless
70
75
  if attributes.key?(:'json')
71
76
  self.json = attributes[:'json']
72
77
  end
78
+
79
+ if attributes.key?(:'metadata')
80
+ self.metadata = attributes[:'metadata']
81
+ end
73
82
  end
74
83
 
75
84
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -91,7 +100,8 @@ module Akeyless
91
100
  return true if self.equal?(o)
92
101
  self.class == o.class &&
93
102
  description == o.description &&
94
- json == o.json
103
+ json == o.json &&
104
+ metadata == o.metadata
95
105
  end
96
106
 
97
107
  # @see the `==` method
@@ -103,7 +113,7 @@ module Akeyless
103
113
  # Calculates hash code according to all attributes.
104
114
  # @return [Integer] Hash code
105
115
  def hash
106
- [description, json].hash
116
+ [description, json, metadata].hash
107
117
  end
108
118
 
109
119
  # Builds the object from hash
@@ -16,15 +16,18 @@ require 'time'
16
16
  module Akeyless
17
17
  # getKubeExecCreds is a command that gets credentials for authentication with Kubernetes cluster based on a PKI cert issuer.
18
18
  class GetKubeExecCreds
19
- # The Subject Alternative Names to be included in the PKI certificate (in a comma-delimited list)
19
+ # The Subject Alternative Names to be included in the PKI certificate (in a comma-separated list) (if CSR is supplied this flag is ignored and any DNS.* names are taken from it)
20
20
  attr_accessor :alt_names
21
21
 
22
22
  # The name of the PKI certificate issuer
23
23
  attr_accessor :cert_issuer_name
24
24
 
25
- # The common name to be included in the PKI certificate
25
+ # The common name to be included in the PKI certificate (if CSR is supplied this flag is ignored and the CSR subject CN is taken)
26
26
  attr_accessor :common_name
27
27
 
28
+ # Certificate Signing Request contents encoded in base64 to generate the certificate with
29
+ attr_accessor :csr_data_base64
30
+
28
31
  # A comma-separated list of extended key usage requests which will be used for certificate issuance. Supported values: 'clientauth', 'serverauth'.
29
32
  attr_accessor :extended_key_usage
30
33
 
@@ -43,7 +46,7 @@ module Akeyless
43
46
  # The universal identity token, Required only for universal_identity authentication
44
47
  attr_accessor :uid_token
45
48
 
46
- # The URI Subject Alternative Names to be included in the PKI certificate (in a comma-delimited list)
49
+ # The URI Subject Alternative Names to be included in the PKI certificate (in a comma-separated list) (if CSR is supplied this flag is ignored and any URI.* names are taken from it)
47
50
  attr_accessor :uri_sans
48
51
 
49
52
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -52,6 +55,7 @@ module Akeyless
52
55
  :'alt_names' => :'alt-names',
53
56
  :'cert_issuer_name' => :'cert-issuer-name',
54
57
  :'common_name' => :'common-name',
58
+ :'csr_data_base64' => :'csr-data-base64',
55
59
  :'extended_key_usage' => :'extended-key-usage',
56
60
  :'json' => :'json',
57
61
  :'key_data_base64' => :'key-data-base64',
@@ -73,6 +77,7 @@ module Akeyless
73
77
  :'alt_names' => :'String',
74
78
  :'cert_issuer_name' => :'String',
75
79
  :'common_name' => :'String',
80
+ :'csr_data_base64' => :'String',
76
81
  :'extended_key_usage' => :'String',
77
82
  :'json' => :'Boolean',
78
83
  :'key_data_base64' => :'String',
@@ -116,6 +121,10 @@ module Akeyless
116
121
  self.common_name = attributes[:'common_name']
117
122
  end
118
123
 
124
+ if attributes.key?(:'csr_data_base64')
125
+ self.csr_data_base64 = attributes[:'csr_data_base64']
126
+ end
127
+
119
128
  if attributes.key?(:'extended_key_usage')
120
129
  self.extended_key_usage = attributes[:'extended_key_usage']
121
130
  end
@@ -171,6 +180,7 @@ module Akeyless
171
180
  alt_names == o.alt_names &&
172
181
  cert_issuer_name == o.cert_issuer_name &&
173
182
  common_name == o.common_name &&
183
+ csr_data_base64 == o.csr_data_base64 &&
174
184
  extended_key_usage == o.extended_key_usage &&
175
185
  json == o.json &&
176
186
  key_data_base64 == o.key_data_base64 &&
@@ -189,7 +199,7 @@ module Akeyless
189
199
  # Calculates hash code according to all attributes.
190
200
  # @return [Integer] Hash code
191
201
  def hash
192
- [alt_names, cert_issuer_name, common_name, extended_key_usage, json, key_data_base64, token, ttl, uid_token, uri_sans].hash
202
+ [alt_names, cert_issuer_name, common_name, csr_data_base64, extended_key_usage, json, key_data_base64, token, ttl, uid_token, uri_sans].hash
193
203
  end
194
204
 
195
205
  # Builds the object from hash
@@ -15,15 +15,18 @@ require 'time'
15
15
 
16
16
  module Akeyless
17
17
  class GetPKICertificate
18
- # The Subject Alternative Names to be included in the PKI certificate (in a comma-delimited list)
18
+ # The Subject Alternative Names to be included in the PKI certificate (in a comma-separated list) (if CSR is supplied this flag is ignored and any DNS.* names are taken from it)
19
19
  attr_accessor :alt_names
20
20
 
21
21
  # The name of the PKI certificate issuer
22
22
  attr_accessor :cert_issuer_name
23
23
 
24
- # The common name to be included in the PKI certificate
24
+ # The common name to be included in the PKI certificate (if CSR is supplied this flag is ignored and the CSR subject CN is taken)
25
25
  attr_accessor :common_name
26
26
 
27
+ # Certificate Signing Request contents encoded in base64 to generate the certificate with
28
+ attr_accessor :csr_data_base64
29
+
27
30
  # A comma-separated list of extended key usage requests which will be used for certificate issuance. Supported values: 'clientauth', 'serverauth'.
28
31
  attr_accessor :extended_key_usage
29
32
 
@@ -42,7 +45,7 @@ module Akeyless
42
45
  # The universal identity token, Required only for universal_identity authentication
43
46
  attr_accessor :uid_token
44
47
 
45
- # The URI Subject Alternative Names to be included in the PKI certificate (in a comma-delimited list)
48
+ # The URI Subject Alternative Names to be included in the PKI certificate (in a comma-separated list) (if CSR is supplied this flag is ignored and any URI.* names are taken from it)
46
49
  attr_accessor :uri_sans
47
50
 
48
51
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -51,6 +54,7 @@ module Akeyless
51
54
  :'alt_names' => :'alt-names',
52
55
  :'cert_issuer_name' => :'cert-issuer-name',
53
56
  :'common_name' => :'common-name',
57
+ :'csr_data_base64' => :'csr-data-base64',
54
58
  :'extended_key_usage' => :'extended-key-usage',
55
59
  :'json' => :'json',
56
60
  :'key_data_base64' => :'key-data-base64',
@@ -72,6 +76,7 @@ module Akeyless
72
76
  :'alt_names' => :'String',
73
77
  :'cert_issuer_name' => :'String',
74
78
  :'common_name' => :'String',
79
+ :'csr_data_base64' => :'String',
75
80
  :'extended_key_usage' => :'String',
76
81
  :'json' => :'Boolean',
77
82
  :'key_data_base64' => :'String',
@@ -115,6 +120,10 @@ module Akeyless
115
120
  self.common_name = attributes[:'common_name']
116
121
  end
117
122
 
123
+ if attributes.key?(:'csr_data_base64')
124
+ self.csr_data_base64 = attributes[:'csr_data_base64']
125
+ end
126
+
118
127
  if attributes.key?(:'extended_key_usage')
119
128
  self.extended_key_usage = attributes[:'extended_key_usage']
120
129
  end
@@ -170,6 +179,7 @@ module Akeyless
170
179
  alt_names == o.alt_names &&
171
180
  cert_issuer_name == o.cert_issuer_name &&
172
181
  common_name == o.common_name &&
182
+ csr_data_base64 == o.csr_data_base64 &&
173
183
  extended_key_usage == o.extended_key_usage &&
174
184
  json == o.json &&
175
185
  key_data_base64 == o.key_data_base64 &&
@@ -188,7 +198,7 @@ module Akeyless
188
198
  # Calculates hash code according to all attributes.
189
199
  # @return [Integer] Hash code
190
200
  def hash
191
- [alt_names, cert_issuer_name, common_name, extended_key_usage, json, key_data_base64, token, ttl, uid_token, uri_sans].hash
201
+ [alt_names, cert_issuer_name, common_name, csr_data_base64, extended_key_usage, json, key_data_base64, token, ttl, uid_token, uri_sans].hash
192
202
  end
193
203
 
194
204
  # Builds the object from hash
@@ -55,6 +55,8 @@ module Akeyless
55
55
 
56
56
  attr_accessor :region
57
57
 
58
+ attr_accessor :rotate_after_disconnect
59
+
58
60
  attr_accessor :schema
59
61
 
60
62
  attr_accessor :ssh_password
@@ -92,6 +94,7 @@ module Akeyless
92
94
  :'native' => :'native',
93
95
  :'rdp_user' => :'rdp_user',
94
96
  :'region' => :'region',
97
+ :'rotate_after_disconnect' => :'rotate_after_disconnect',
95
98
  :'schema' => :'schema',
96
99
  :'ssh_password' => :'ssh_password',
97
100
  :'ssh_private_key' => :'ssh_private_key',
@@ -130,6 +133,7 @@ module Akeyless
130
133
  :'native' => :'Boolean',
131
134
  :'rdp_user' => :'String',
132
135
  :'region' => :'String',
136
+ :'rotate_after_disconnect' => :'Boolean',
133
137
  :'schema' => :'String',
134
138
  :'ssh_password' => :'Boolean',
135
139
  :'ssh_private_key' => :'Boolean',
@@ -243,6 +247,10 @@ module Akeyless
243
247
  self.region = attributes[:'region']
244
248
  end
245
249
 
250
+ if attributes.key?(:'rotate_after_disconnect')
251
+ self.rotate_after_disconnect = attributes[:'rotate_after_disconnect']
252
+ end
253
+
246
254
  if attributes.key?(:'schema')
247
255
  self.schema = attributes[:'schema']
248
256
  end
@@ -310,6 +318,7 @@ module Akeyless
310
318
  native == o.native &&
311
319
  rdp_user == o.rdp_user &&
312
320
  region == o.region &&
321
+ rotate_after_disconnect == o.rotate_after_disconnect &&
313
322
  schema == o.schema &&
314
323
  ssh_password == o.ssh_password &&
315
324
  ssh_private_key == o.ssh_private_key &&
@@ -328,7 +337,7 @@ module Akeyless
328
337
  # Calculates hash code according to all attributes.
329
338
  # @return [Integer] Hash code
330
339
  def hash
331
- [account_id, allow_port_forwarding, allow_providing_external_username, bastion_api, bastion_issuer, bastion_issuer_id, bastion_ssh, category, dashboard_url, db_name, domain, enable, endpoint, host, is_cli, is_web, isolated, native, rdp_user, region, schema, ssh_password, ssh_private_key, ssh_user, url, use_internal_bastion, web_proxy].hash
340
+ [account_id, allow_port_forwarding, allow_providing_external_username, bastion_api, bastion_issuer, bastion_issuer_id, bastion_ssh, category, dashboard_url, db_name, domain, enable, endpoint, host, is_cli, is_web, isolated, native, rdp_user, region, rotate_after_disconnect, schema, ssh_password, ssh_private_key, ssh_user, url, use_internal_bastion, web_proxy].hash
332
341
  end
333
342
 
334
343
  # Builds the object from hash