akeyless 5.0.19 → 5.0.21
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.
- checksums.yaml +4 -4
- data/README.md +28 -1
- data/docs/CertificateStore.md +2 -0
- data/docs/CreateUSC.md +2 -0
- data/docs/GCPPayload.md +5 -1
- data/docs/GatewayCreateMigration.md +5 -1
- data/docs/GatewayUpdateMigration.md +5 -1
- data/docs/GatewayUpdateTlsCert.md +2 -0
- data/docs/GeneralConfigPart.md +6 -0
- data/docs/GetKubeExecCreds.md +1 -1
- data/docs/GetPKICertificate.md +1 -1
- data/docs/LetsEncryptTargetDetails.md +38 -0
- data/docs/PoliciesCreateOutput.md +18 -0
- data/docs/PoliciesDelete.md +24 -0
- data/docs/PoliciesGet.md +24 -0
- data/docs/PoliciesGetOutput.md +18 -0
- data/docs/PoliciesList.md +30 -0
- data/docs/PoliciesListOutput.md +18 -0
- data/docs/PolicyCreateKeys.md +34 -0
- data/docs/PolicyOutput.md +34 -0
- data/docs/PolicyUpdateKeys.md +36 -0
- data/docs/RotatedSecretCreateAws.md +4 -2
- data/docs/RotatedSecretCreateAzure.md +4 -2
- data/docs/RotatedSecretCreateCassandra.md +1 -1
- data/docs/RotatedSecretCreateCustom.md +1 -1
- data/docs/RotatedSecretCreateDockerhub.md +1 -1
- data/docs/RotatedSecretCreateGcp.md +4 -2
- data/docs/RotatedSecretCreateHanadb.md +1 -1
- data/docs/RotatedSecretCreateLdap.md +1 -1
- data/docs/RotatedSecretCreateMongodb.md +1 -1
- data/docs/RotatedSecretCreateMssql.md +1 -1
- data/docs/RotatedSecretCreateMysql.md +1 -1
- data/docs/RotatedSecretCreateOpenAI.md +1 -1
- data/docs/RotatedSecretCreateOracledb.md +1 -1
- data/docs/RotatedSecretCreatePostgresql.md +1 -1
- data/docs/RotatedSecretCreateRedis.md +1 -1
- data/docs/RotatedSecretCreateRedshift.md +1 -1
- data/docs/RotatedSecretCreateSnowflake.md +1 -1
- data/docs/RotatedSecretCreateSplunk.md +68 -0
- data/docs/RotatedSecretCreateSsh.md +1 -1
- data/docs/RotatedSecretCreateWindows.md +1 -1
- data/docs/RotatedSecretDetailsInfo.md +2 -0
- data/docs/RotatedSecretUpdateAws.md +3 -1
- data/docs/RotatedSecretUpdateAzure.md +3 -1
- data/docs/RotatedSecretUpdateGcp.md +3 -1
- data/docs/RotatedSecretUpdateSplunk.md +64 -0
- data/docs/SecretInfo.md +2 -0
- data/docs/SplunkPayload.md +30 -0
- data/docs/SplunkTargetDetails.md +34 -0
- data/docs/TargetCreateLetsEncrypt.md +46 -0
- data/docs/TargetCreateSplunk.md +42 -0
- data/docs/TargetTypeDetailsInput.md +4 -0
- data/docs/TargetUpdateLetsEncrypt.md +50 -0
- data/docs/UpdateItem.md +2 -0
- data/docs/UscCreate.md +2 -0
- data/docs/V2Api.md +659 -29
- data/lib/akeyless/api/v2_api.rb +640 -0
- data/lib/akeyless/models/certificate_store.rb +12 -1
- data/lib/akeyless/models/create_usc.rb +11 -1
- data/lib/akeyless/models/gateway_create_migration.rb +24 -4
- data/lib/akeyless/models/gateway_update_migration.rb +24 -4
- data/lib/akeyless/models/gateway_update_tls_cert.rb +13 -1
- data/lib/akeyless/models/gcp_payload.rb +22 -4
- data/lib/akeyless/models/general_config_part.rb +30 -1
- data/lib/akeyless/models/get_kube_exec_creds.rb +1 -1
- data/lib/akeyless/models/get_pki_certificate.rb +1 -1
- data/lib/akeyless/models/lets_encrypt_target_details.rb +315 -0
- data/lib/akeyless/models/policies_create_output.rb +214 -0
- data/lib/akeyless/models/policies_delete.rb +254 -0
- data/lib/akeyless/models/policies_get.rb +254 -0
- data/lib/akeyless/models/policies_get_output.rb +214 -0
- data/lib/akeyless/models/policies_list.rb +283 -0
- data/lib/akeyless/models/policies_list_output.rb +216 -0
- data/lib/akeyless/models/policy_create_keys.rb +312 -0
- data/lib/akeyless/models/policy_output.rb +295 -0
- data/lib/akeyless/models/policy_update_keys.rb +322 -0
- data/lib/akeyless/models/rotated_secret_create_aws.rb +13 -3
- data/lib/akeyless/models/rotated_secret_create_azure.rb +13 -3
- data/lib/akeyless/models/rotated_secret_create_cassandra.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_custom.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_dockerhub.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_gcp.rb +13 -3
- data/lib/akeyless/models/rotated_secret_create_hanadb.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_ldap.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_mongodb.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_mssql.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_mysql.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_open_ai.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_oracledb.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_postgresql.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_redis.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_redshift.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_snowflake.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_splunk.rb +497 -0
- data/lib/akeyless/models/rotated_secret_create_ssh.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_windows.rb +1 -1
- data/lib/akeyless/models/rotated_secret_details_info.rb +10 -1
- data/lib/akeyless/models/rotated_secret_update_aws.rb +12 -2
- data/lib/akeyless/models/rotated_secret_update_azure.rb +12 -2
- data/lib/akeyless/models/rotated_secret_update_gcp.rb +12 -2
- data/lib/akeyless/models/rotated_secret_update_splunk.rb +467 -0
- data/lib/akeyless/models/secret_info.rb +10 -1
- data/lib/akeyless/models/splunk_payload.rb +268 -0
- data/lib/akeyless/models/splunk_target_details.rb +294 -0
- data/lib/akeyless/models/target_create_lets_encrypt.rb +368 -0
- data/lib/akeyless/models/target_create_splunk.rb +354 -0
- data/lib/akeyless/models/target_type_details_input.rb +19 -1
- data/lib/akeyless/models/target_update_lets_encrypt.rb +388 -0
- data/lib/akeyless/models/update_item.rb +11 -1
- data/lib/akeyless/models/usc_create.rb +11 -1
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +17 -0
- data/spec/models/lets_encrypt_target_details_spec.rb +96 -0
- data/spec/models/policies_create_output_spec.rb +36 -0
- data/spec/models/policies_delete_spec.rb +54 -0
- data/spec/models/policies_get_output_spec.rb +36 -0
- data/spec/models/policies_get_spec.rb +54 -0
- data/spec/models/policies_list_output_spec.rb +36 -0
- data/spec/models/policies_list_spec.rb +72 -0
- data/spec/models/policy_create_keys_spec.rb +84 -0
- data/spec/models/policy_output_spec.rb +84 -0
- data/spec/models/policy_update_keys_spec.rb +90 -0
- data/spec/models/rotated_secret_create_splunk_spec.rb +186 -0
- data/spec/models/rotated_secret_update_splunk_spec.rb +174 -0
- data/spec/models/splunk_payload_spec.rb +72 -0
- data/spec/models/splunk_target_details_spec.rb +84 -0
- data/spec/models/target_create_lets_encrypt_spec.rb +120 -0
- data/spec/models/target_create_splunk_spec.rb +108 -0
- data/spec/models/target_update_lets_encrypt_spec.rb +132 -0
- metadata +69 -1
|
@@ -0,0 +1,388 @@
|
|
|
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
|
+
# targetUpdateLetsEncrypt is a command that updates an existing Let's Encrypt target
|
|
18
|
+
class TargetUpdateLetsEncrypt
|
|
19
|
+
attr_accessor :acme_challenge
|
|
20
|
+
|
|
21
|
+
# Description of the object
|
|
22
|
+
attr_accessor :description
|
|
23
|
+
|
|
24
|
+
# Name of existing cloud target for DNS credentials. Required when acme-challenge=dns. Supported: AWS, Azure, GCP targets
|
|
25
|
+
attr_accessor :dns_target_creds
|
|
26
|
+
|
|
27
|
+
# Email address for ACME account registration
|
|
28
|
+
attr_accessor :email
|
|
29
|
+
|
|
30
|
+
# GCP Cloud DNS: Project ID. Optional - can be derived from service account
|
|
31
|
+
attr_accessor :gcp_project
|
|
32
|
+
|
|
33
|
+
# AWS Route53 hosted zone ID. Required when dns-target-creds points to AWS target
|
|
34
|
+
attr_accessor :hosted_zone
|
|
35
|
+
|
|
36
|
+
# Set output format to JSON
|
|
37
|
+
attr_accessor :json
|
|
38
|
+
|
|
39
|
+
# Whether to keep previous version [true/false]. If not set, use default according to account settings
|
|
40
|
+
attr_accessor :keep_prev_version
|
|
41
|
+
|
|
42
|
+
# The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
|
|
43
|
+
attr_accessor :key
|
|
44
|
+
|
|
45
|
+
attr_accessor :lets_encrypt_url
|
|
46
|
+
|
|
47
|
+
# Set the maximum number of versions, limited by the account settings defaults.
|
|
48
|
+
attr_accessor :max_versions
|
|
49
|
+
|
|
50
|
+
# Target name
|
|
51
|
+
attr_accessor :name
|
|
52
|
+
|
|
53
|
+
# New target name
|
|
54
|
+
attr_accessor :new_name
|
|
55
|
+
|
|
56
|
+
# Azure resource group name. Required when dns-target-creds points to Azure target
|
|
57
|
+
attr_accessor :resource_group
|
|
58
|
+
|
|
59
|
+
attr_accessor :timeout
|
|
60
|
+
|
|
61
|
+
# Authentication token (see `/auth` and `/configure`)
|
|
62
|
+
attr_accessor :token
|
|
63
|
+
|
|
64
|
+
# The universal identity token, Required only for universal_identity authentication
|
|
65
|
+
attr_accessor :uid_token
|
|
66
|
+
|
|
67
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
68
|
+
def self.attribute_map
|
|
69
|
+
{
|
|
70
|
+
:'acme_challenge' => :'acme-challenge',
|
|
71
|
+
:'description' => :'description',
|
|
72
|
+
:'dns_target_creds' => :'dns-target-creds',
|
|
73
|
+
:'email' => :'email',
|
|
74
|
+
:'gcp_project' => :'gcp-project',
|
|
75
|
+
:'hosted_zone' => :'hosted-zone',
|
|
76
|
+
:'json' => :'json',
|
|
77
|
+
:'keep_prev_version' => :'keep-prev-version',
|
|
78
|
+
:'key' => :'key',
|
|
79
|
+
:'lets_encrypt_url' => :'lets-encrypt-url',
|
|
80
|
+
:'max_versions' => :'max-versions',
|
|
81
|
+
:'name' => :'name',
|
|
82
|
+
:'new_name' => :'new-name',
|
|
83
|
+
:'resource_group' => :'resource-group',
|
|
84
|
+
:'timeout' => :'timeout',
|
|
85
|
+
:'token' => :'token',
|
|
86
|
+
:'uid_token' => :'uid-token'
|
|
87
|
+
}
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Returns all the JSON keys this model knows about
|
|
91
|
+
def self.acceptable_attributes
|
|
92
|
+
attribute_map.values
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Attribute type mapping.
|
|
96
|
+
def self.openapi_types
|
|
97
|
+
{
|
|
98
|
+
:'acme_challenge' => :'String',
|
|
99
|
+
:'description' => :'String',
|
|
100
|
+
:'dns_target_creds' => :'String',
|
|
101
|
+
:'email' => :'String',
|
|
102
|
+
:'gcp_project' => :'String',
|
|
103
|
+
:'hosted_zone' => :'String',
|
|
104
|
+
:'json' => :'Boolean',
|
|
105
|
+
:'keep_prev_version' => :'String',
|
|
106
|
+
:'key' => :'String',
|
|
107
|
+
:'lets_encrypt_url' => :'String',
|
|
108
|
+
:'max_versions' => :'String',
|
|
109
|
+
:'name' => :'String',
|
|
110
|
+
:'new_name' => :'String',
|
|
111
|
+
:'resource_group' => :'String',
|
|
112
|
+
:'timeout' => :'String',
|
|
113
|
+
:'token' => :'String',
|
|
114
|
+
:'uid_token' => :'String'
|
|
115
|
+
}
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
# List of attributes with nullable: true
|
|
119
|
+
def self.openapi_nullable
|
|
120
|
+
Set.new([
|
|
121
|
+
])
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
# Initializes the object
|
|
125
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
126
|
+
def initialize(attributes = {})
|
|
127
|
+
if (!attributes.is_a?(Hash))
|
|
128
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::TargetUpdateLetsEncrypt` initialize method"
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
132
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
133
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
134
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::TargetUpdateLetsEncrypt`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
135
|
+
end
|
|
136
|
+
h[k.to_sym] = v
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
if attributes.key?(:'acme_challenge')
|
|
140
|
+
self.acme_challenge = attributes[:'acme_challenge']
|
|
141
|
+
else
|
|
142
|
+
self.acme_challenge = 'http'
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
if attributes.key?(:'description')
|
|
146
|
+
self.description = attributes[:'description']
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
if attributes.key?(:'dns_target_creds')
|
|
150
|
+
self.dns_target_creds = attributes[:'dns_target_creds']
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
if attributes.key?(:'email')
|
|
154
|
+
self.email = attributes[:'email']
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
if attributes.key?(:'gcp_project')
|
|
158
|
+
self.gcp_project = attributes[:'gcp_project']
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
if attributes.key?(:'hosted_zone')
|
|
162
|
+
self.hosted_zone = attributes[:'hosted_zone']
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
if attributes.key?(:'json')
|
|
166
|
+
self.json = attributes[:'json']
|
|
167
|
+
else
|
|
168
|
+
self.json = false
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
if attributes.key?(:'keep_prev_version')
|
|
172
|
+
self.keep_prev_version = attributes[:'keep_prev_version']
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
if attributes.key?(:'key')
|
|
176
|
+
self.key = attributes[:'key']
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
if attributes.key?(:'lets_encrypt_url')
|
|
180
|
+
self.lets_encrypt_url = attributes[:'lets_encrypt_url']
|
|
181
|
+
else
|
|
182
|
+
self.lets_encrypt_url = 'production'
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
if attributes.key?(:'max_versions')
|
|
186
|
+
self.max_versions = attributes[:'max_versions']
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
if attributes.key?(:'name')
|
|
190
|
+
self.name = attributes[:'name']
|
|
191
|
+
else
|
|
192
|
+
self.name = nil
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
if attributes.key?(:'new_name')
|
|
196
|
+
self.new_name = attributes[:'new_name']
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
if attributes.key?(:'resource_group')
|
|
200
|
+
self.resource_group = attributes[:'resource_group']
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
if attributes.key?(:'timeout')
|
|
204
|
+
self.timeout = attributes[:'timeout']
|
|
205
|
+
else
|
|
206
|
+
self.timeout = '5m'
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
if attributes.key?(:'token')
|
|
210
|
+
self.token = attributes[:'token']
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
if attributes.key?(:'uid_token')
|
|
214
|
+
self.uid_token = attributes[:'uid_token']
|
|
215
|
+
end
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
219
|
+
# @return Array for valid properties with the reasons
|
|
220
|
+
def list_invalid_properties
|
|
221
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
222
|
+
invalid_properties = Array.new
|
|
223
|
+
if @name.nil?
|
|
224
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
invalid_properties
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
# Check to see if the all the properties in the model are valid
|
|
231
|
+
# @return true if the model is valid
|
|
232
|
+
def valid?
|
|
233
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
234
|
+
return false if @name.nil?
|
|
235
|
+
true
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
# Checks equality by comparing each attribute.
|
|
239
|
+
# @param [Object] Object to be compared
|
|
240
|
+
def ==(o)
|
|
241
|
+
return true if self.equal?(o)
|
|
242
|
+
self.class == o.class &&
|
|
243
|
+
acme_challenge == o.acme_challenge &&
|
|
244
|
+
description == o.description &&
|
|
245
|
+
dns_target_creds == o.dns_target_creds &&
|
|
246
|
+
email == o.email &&
|
|
247
|
+
gcp_project == o.gcp_project &&
|
|
248
|
+
hosted_zone == o.hosted_zone &&
|
|
249
|
+
json == o.json &&
|
|
250
|
+
keep_prev_version == o.keep_prev_version &&
|
|
251
|
+
key == o.key &&
|
|
252
|
+
lets_encrypt_url == o.lets_encrypt_url &&
|
|
253
|
+
max_versions == o.max_versions &&
|
|
254
|
+
name == o.name &&
|
|
255
|
+
new_name == o.new_name &&
|
|
256
|
+
resource_group == o.resource_group &&
|
|
257
|
+
timeout == o.timeout &&
|
|
258
|
+
token == o.token &&
|
|
259
|
+
uid_token == o.uid_token
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
# @see the `==` method
|
|
263
|
+
# @param [Object] Object to be compared
|
|
264
|
+
def eql?(o)
|
|
265
|
+
self == o
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
# Calculates hash code according to all attributes.
|
|
269
|
+
# @return [Integer] Hash code
|
|
270
|
+
def hash
|
|
271
|
+
[acme_challenge, description, dns_target_creds, email, gcp_project, hosted_zone, json, keep_prev_version, key, lets_encrypt_url, max_versions, name, new_name, resource_group, timeout, token, uid_token].hash
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
# Builds the object from hash
|
|
275
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
276
|
+
# @return [Object] Returns the model itself
|
|
277
|
+
def self.build_from_hash(attributes)
|
|
278
|
+
return nil unless attributes.is_a?(Hash)
|
|
279
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
280
|
+
transformed_hash = {}
|
|
281
|
+
openapi_types.each_pair do |key, type|
|
|
282
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
283
|
+
transformed_hash["#{key}"] = nil
|
|
284
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
285
|
+
# check to ensure the input is an array given that the attribute
|
|
286
|
+
# is documented as an array but the input is not
|
|
287
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
288
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
289
|
+
end
|
|
290
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
291
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
292
|
+
end
|
|
293
|
+
end
|
|
294
|
+
new(transformed_hash)
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
# Deserializes the data based on type
|
|
298
|
+
# @param string type Data type
|
|
299
|
+
# @param string value Value to be deserialized
|
|
300
|
+
# @return [Object] Deserialized data
|
|
301
|
+
def self._deserialize(type, value)
|
|
302
|
+
case type.to_sym
|
|
303
|
+
when :Time
|
|
304
|
+
Time.parse(value)
|
|
305
|
+
when :Date
|
|
306
|
+
Date.parse(value)
|
|
307
|
+
when :String
|
|
308
|
+
value.to_s
|
|
309
|
+
when :Integer
|
|
310
|
+
value.to_i
|
|
311
|
+
when :Float
|
|
312
|
+
value.to_f
|
|
313
|
+
when :Boolean
|
|
314
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
315
|
+
true
|
|
316
|
+
else
|
|
317
|
+
false
|
|
318
|
+
end
|
|
319
|
+
when :Object
|
|
320
|
+
# generic object (usually a Hash), return directly
|
|
321
|
+
value
|
|
322
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
323
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
324
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
325
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
326
|
+
k_type = Regexp.last_match[:k_type]
|
|
327
|
+
v_type = Regexp.last_match[:v_type]
|
|
328
|
+
{}.tap do |hash|
|
|
329
|
+
value.each do |k, v|
|
|
330
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
331
|
+
end
|
|
332
|
+
end
|
|
333
|
+
else # model
|
|
334
|
+
# models (e.g. Pet) or oneOf
|
|
335
|
+
klass = Akeyless.const_get(type)
|
|
336
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
337
|
+
end
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
# Returns the string representation of the object
|
|
341
|
+
# @return [String] String presentation of the object
|
|
342
|
+
def to_s
|
|
343
|
+
to_hash.to_s
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
347
|
+
# @return [Hash] Returns the object in the form of hash
|
|
348
|
+
def to_body
|
|
349
|
+
to_hash
|
|
350
|
+
end
|
|
351
|
+
|
|
352
|
+
# Returns the object in the form of hash
|
|
353
|
+
# @return [Hash] Returns the object in the form of hash
|
|
354
|
+
def to_hash
|
|
355
|
+
hash = {}
|
|
356
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
357
|
+
value = self.send(attr)
|
|
358
|
+
if value.nil?
|
|
359
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
360
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
361
|
+
end
|
|
362
|
+
|
|
363
|
+
hash[param] = _to_hash(value)
|
|
364
|
+
end
|
|
365
|
+
hash
|
|
366
|
+
end
|
|
367
|
+
|
|
368
|
+
# Outputs non-array value in the form of hash
|
|
369
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
370
|
+
# @param [Object] value Any valid value
|
|
371
|
+
# @return [Hash] Returns the value in the form of hash
|
|
372
|
+
def _to_hash(value)
|
|
373
|
+
if value.is_a?(Array)
|
|
374
|
+
value.compact.map { |v| _to_hash(v) }
|
|
375
|
+
elsif value.is_a?(Hash)
|
|
376
|
+
{}.tap do |hash|
|
|
377
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
378
|
+
end
|
|
379
|
+
elsif value.respond_to? :to_hash
|
|
380
|
+
value.to_hash
|
|
381
|
+
else
|
|
382
|
+
value
|
|
383
|
+
end
|
|
384
|
+
end
|
|
385
|
+
|
|
386
|
+
end
|
|
387
|
+
|
|
388
|
+
end
|
|
@@ -40,6 +40,9 @@ module Akeyless
|
|
|
40
40
|
# How many days before the expiration of the certificate would you like to be notified.
|
|
41
41
|
attr_accessor :expiration_event_in
|
|
42
42
|
|
|
43
|
+
# GCP Secret Manager regions to query for regional secrets (comma-separated, e.g., us-east1,us-west1). Max 12 regions. USC with GCP targets only.
|
|
44
|
+
attr_accessor :gcp_sm_regions
|
|
45
|
+
|
|
43
46
|
# Host provider type [explicit/target], Default Host provider is explicit, Relevant only for Secure Remote Access of ssh cert issuer, ldap rotated secret and ldap dynamic secret
|
|
44
47
|
attr_accessor :host_provider
|
|
45
48
|
|
|
@@ -174,6 +177,7 @@ module Akeyless
|
|
|
174
177
|
:'delete_protection' => :'delete_protection',
|
|
175
178
|
:'description' => :'description',
|
|
176
179
|
:'expiration_event_in' => :'expiration-event-in',
|
|
180
|
+
:'gcp_sm_regions' => :'gcp-sm-regions',
|
|
177
181
|
:'host_provider' => :'host-provider',
|
|
178
182
|
:'item_custom_fields' => :'item-custom-fields',
|
|
179
183
|
:'json' => :'json',
|
|
@@ -235,6 +239,7 @@ module Akeyless
|
|
|
235
239
|
:'delete_protection' => :'String',
|
|
236
240
|
:'description' => :'String',
|
|
237
241
|
:'expiration_event_in' => :'Array<String>',
|
|
242
|
+
:'gcp_sm_regions' => :'String',
|
|
238
243
|
:'host_provider' => :'String',
|
|
239
244
|
:'item_custom_fields' => :'Hash<String, String>',
|
|
240
245
|
:'json' => :'Boolean',
|
|
@@ -344,6 +349,10 @@ module Akeyless
|
|
|
344
349
|
end
|
|
345
350
|
end
|
|
346
351
|
|
|
352
|
+
if attributes.key?(:'gcp_sm_regions')
|
|
353
|
+
self.gcp_sm_regions = attributes[:'gcp_sm_regions']
|
|
354
|
+
end
|
|
355
|
+
|
|
347
356
|
if attributes.key?(:'host_provider')
|
|
348
357
|
self.host_provider = attributes[:'host_provider']
|
|
349
358
|
end
|
|
@@ -565,6 +574,7 @@ module Akeyless
|
|
|
565
574
|
delete_protection == o.delete_protection &&
|
|
566
575
|
description == o.description &&
|
|
567
576
|
expiration_event_in == o.expiration_event_in &&
|
|
577
|
+
gcp_sm_regions == o.gcp_sm_regions &&
|
|
568
578
|
host_provider == o.host_provider &&
|
|
569
579
|
item_custom_fields == o.item_custom_fields &&
|
|
570
580
|
json == o.json &&
|
|
@@ -617,7 +627,7 @@ module Akeyless
|
|
|
617
627
|
# Calculates hash code according to all attributes.
|
|
618
628
|
# @return [Integer] Hash code
|
|
619
629
|
def hash
|
|
620
|
-
[provider_type, accessibility, add_tag, cert_file_data, certificate_format, change_event, delete_protection, description, expiration_event_in, host_provider, item_custom_fields, 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_api, 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_certificate_issuer, secure_access_cluster_endpoint, secure_access_dashboard_url, secure_access_db_name, secure_access_db_schema, secure_access_enable, secure_access_gateway, secure_access_host, secure_access_rd_gateway_server, secure_access_rdp_domain, secure_access_rdp_user, secure_access_rm_host, secure_access_ssh, secure_access_ssh_creds, secure_access_ssh_creds_user, secure_access_url, secure_access_use_internal_bastion, secure_access_use_internal_ssh_access, secure_access_web_browsing, secure_access_web_proxy, token, uid_token].hash
|
|
630
|
+
[provider_type, accessibility, add_tag, cert_file_data, certificate_format, change_event, delete_protection, description, expiration_event_in, gcp_sm_regions, host_provider, item_custom_fields, 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_api, 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_certificate_issuer, secure_access_cluster_endpoint, secure_access_dashboard_url, secure_access_db_name, secure_access_db_schema, secure_access_enable, secure_access_gateway, secure_access_host, secure_access_rd_gateway_server, secure_access_rdp_domain, secure_access_rdp_user, secure_access_rm_host, secure_access_ssh, secure_access_ssh_creds, secure_access_ssh_creds_user, secure_access_url, secure_access_use_internal_bastion, secure_access_use_internal_ssh_access, secure_access_web_browsing, secure_access_web_proxy, token, uid_token].hash
|
|
621
631
|
end
|
|
622
632
|
|
|
623
633
|
# Builds the object from hash
|
|
@@ -33,6 +33,9 @@ module Akeyless
|
|
|
33
33
|
# Optional, the passphrase that protects the private key within the pfx certificate (Relevant only for Azure KV certificates)
|
|
34
34
|
attr_accessor :pfx_password
|
|
35
35
|
|
|
36
|
+
# Optional, create secret in a specific region (GCP only). If empty, a global secret will be created (provider default).
|
|
37
|
+
attr_accessor :region
|
|
38
|
+
|
|
36
39
|
# Name for the new universal secrets
|
|
37
40
|
attr_accessor :secret_name
|
|
38
41
|
|
|
@@ -63,6 +66,7 @@ module Akeyless
|
|
|
63
66
|
:'namespace' => :'namespace',
|
|
64
67
|
:'object_type' => :'object-type',
|
|
65
68
|
:'pfx_password' => :'pfx-password',
|
|
69
|
+
:'region' => :'region',
|
|
66
70
|
:'secret_name' => :'secret-name',
|
|
67
71
|
:'tags' => :'tags',
|
|
68
72
|
:'token' => :'token',
|
|
@@ -87,6 +91,7 @@ module Akeyless
|
|
|
87
91
|
:'namespace' => :'String',
|
|
88
92
|
:'object_type' => :'String',
|
|
89
93
|
:'pfx_password' => :'String',
|
|
94
|
+
:'region' => :'String',
|
|
90
95
|
:'secret_name' => :'String',
|
|
91
96
|
:'tags' => :'Hash<String, String>',
|
|
92
97
|
:'token' => :'String',
|
|
@@ -144,6 +149,10 @@ module Akeyless
|
|
|
144
149
|
self.pfx_password = attributes[:'pfx_password']
|
|
145
150
|
end
|
|
146
151
|
|
|
152
|
+
if attributes.key?(:'region')
|
|
153
|
+
self.region = attributes[:'region']
|
|
154
|
+
end
|
|
155
|
+
|
|
147
156
|
if attributes.key?(:'secret_name')
|
|
148
157
|
self.secret_name = attributes[:'secret_name']
|
|
149
158
|
else
|
|
@@ -222,6 +231,7 @@ module Akeyless
|
|
|
222
231
|
namespace == o.namespace &&
|
|
223
232
|
object_type == o.object_type &&
|
|
224
233
|
pfx_password == o.pfx_password &&
|
|
234
|
+
region == o.region &&
|
|
225
235
|
secret_name == o.secret_name &&
|
|
226
236
|
tags == o.tags &&
|
|
227
237
|
token == o.token &&
|
|
@@ -240,7 +250,7 @@ module Akeyless
|
|
|
240
250
|
# Calculates hash code according to all attributes.
|
|
241
251
|
# @return [Integer] Hash code
|
|
242
252
|
def hash
|
|
243
|
-
[binary_value, description, json, namespace, object_type, pfx_password, secret_name, tags, token, uid_token, usc_encryption_key, usc_name, value].hash
|
|
253
|
+
[binary_value, description, json, namespace, object_type, pfx_password, region, secret_name, tags, token, uid_token, usc_encryption_key, usc_name, value].hash
|
|
244
254
|
end
|
|
245
255
|
|
|
246
256
|
# Builds the object from hash
|
data/lib/akeyless/version.rb
CHANGED
data/lib/akeyless.rb
CHANGED
|
@@ -747,6 +747,7 @@ require 'akeyless/models/last_status_info'
|
|
|
747
747
|
require 'akeyless/models/ldap_config_part'
|
|
748
748
|
require 'akeyless/models/ldap_target_details'
|
|
749
749
|
require 'akeyless/models/leadership_config_part'
|
|
750
|
+
require 'akeyless/models/lets_encrypt_target_details'
|
|
750
751
|
require 'akeyless/models/linked_details'
|
|
751
752
|
require 'akeyless/models/linked_target_details'
|
|
752
753
|
require 'akeyless/models/list_acme_accounts'
|
|
@@ -806,6 +807,15 @@ require 'akeyless/models/password_score_setting'
|
|
|
806
807
|
require 'akeyless/models/password_security_info'
|
|
807
808
|
require 'akeyless/models/path_rule'
|
|
808
809
|
require 'akeyless/models/ping_target_details'
|
|
810
|
+
require 'akeyless/models/policies_create_output'
|
|
811
|
+
require 'akeyless/models/policies_delete'
|
|
812
|
+
require 'akeyless/models/policies_get'
|
|
813
|
+
require 'akeyless/models/policies_get_output'
|
|
814
|
+
require 'akeyless/models/policies_list'
|
|
815
|
+
require 'akeyless/models/policies_list_output'
|
|
816
|
+
require 'akeyless/models/policy_create_keys'
|
|
817
|
+
require 'akeyless/models/policy_output'
|
|
818
|
+
require 'akeyless/models/policy_update_keys'
|
|
809
819
|
require 'akeyless/models/producer'
|
|
810
820
|
require 'akeyless/models/producers_config_part'
|
|
811
821
|
require 'akeyless/models/provision_certificate'
|
|
@@ -856,6 +866,7 @@ require 'akeyless/models/rotated_secret_create_postgresql'
|
|
|
856
866
|
require 'akeyless/models/rotated_secret_create_redis'
|
|
857
867
|
require 'akeyless/models/rotated_secret_create_redshift'
|
|
858
868
|
require 'akeyless/models/rotated_secret_create_snowflake'
|
|
869
|
+
require 'akeyless/models/rotated_secret_create_splunk'
|
|
859
870
|
require 'akeyless/models/rotated_secret_create_ssh'
|
|
860
871
|
require 'akeyless/models/rotated_secret_create_windows'
|
|
861
872
|
require 'akeyless/models/rotated_secret_delete'
|
|
@@ -884,6 +895,7 @@ require 'akeyless/models/rotated_secret_update_postgresql'
|
|
|
884
895
|
require 'akeyless/models/rotated_secret_update_redis'
|
|
885
896
|
require 'akeyless/models/rotated_secret_update_redshift'
|
|
886
897
|
require 'akeyless/models/rotated_secret_update_snowflake'
|
|
898
|
+
require 'akeyless/models/rotated_secret_update_splunk'
|
|
887
899
|
require 'akeyless/models/rotated_secret_update_ssh'
|
|
888
900
|
require 'akeyless/models/rotated_secret_update_windows'
|
|
889
901
|
require 'akeyless/models/rotation_secret_max_interval'
|
|
@@ -926,6 +938,8 @@ require 'akeyless/models/sign_rsa_ssa_pss_output'
|
|
|
926
938
|
require 'akeyless/models/slack_noti_forwarder_details'
|
|
927
939
|
require 'akeyless/models/sm_info'
|
|
928
940
|
require 'akeyless/models/splunk_log_forwarding_config'
|
|
941
|
+
require 'akeyless/models/splunk_payload'
|
|
942
|
+
require 'akeyless/models/splunk_target_details'
|
|
929
943
|
require 'akeyless/models/sra_desktop_app_conf'
|
|
930
944
|
require 'akeyless/models/sra_info'
|
|
931
945
|
require 'akeyless/models/sra_session_entry_out'
|
|
@@ -959,6 +973,7 @@ require 'akeyless/models/target_create_godaddy'
|
|
|
959
973
|
require 'akeyless/models/target_create_hashi_vault'
|
|
960
974
|
require 'akeyless/models/target_create_k8s'
|
|
961
975
|
require 'akeyless/models/target_create_ldap'
|
|
976
|
+
require 'akeyless/models/target_create_lets_encrypt'
|
|
962
977
|
require 'akeyless/models/target_create_linked'
|
|
963
978
|
require 'akeyless/models/target_create_open_ai'
|
|
964
979
|
require 'akeyless/models/target_create_output'
|
|
@@ -966,6 +981,7 @@ require 'akeyless/models/target_create_ping'
|
|
|
966
981
|
require 'akeyless/models/target_create_rabbit_mq'
|
|
967
982
|
require 'akeyless/models/target_create_salesforce'
|
|
968
983
|
require 'akeyless/models/target_create_sectigo'
|
|
984
|
+
require 'akeyless/models/target_create_splunk'
|
|
969
985
|
require 'akeyless/models/target_create_ssh'
|
|
970
986
|
require 'akeyless/models/target_create_web'
|
|
971
987
|
require 'akeyless/models/target_create_windows'
|
|
@@ -996,6 +1012,7 @@ require 'akeyless/models/target_update_godaddy'
|
|
|
996
1012
|
require 'akeyless/models/target_update_hashi_vault'
|
|
997
1013
|
require 'akeyless/models/target_update_k8s'
|
|
998
1014
|
require 'akeyless/models/target_update_ldap'
|
|
1015
|
+
require 'akeyless/models/target_update_lets_encrypt'
|
|
999
1016
|
require 'akeyless/models/target_update_linked'
|
|
1000
1017
|
require 'akeyless/models/target_update_open_ai'
|
|
1001
1018
|
require 'akeyless/models/target_update_output'
|
|
@@ -0,0 +1,96 @@
|
|
|
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 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Akeyless::LetsEncryptTargetDetails
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Akeyless::LetsEncryptTargetDetails do
|
|
21
|
+
let(:instance) { Akeyless::LetsEncryptTargetDetails.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of LetsEncryptTargetDetails' do
|
|
24
|
+
it 'should create an instance of LetsEncryptTargetDetails' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Akeyless::LetsEncryptTargetDetails)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "account_key_pem"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "account_url"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "acme_environment"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
describe 'test attribute "challenge_type"' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
describe 'test attribute "dns_target_name"' do
|
|
55
|
+
it 'should work' do
|
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
describe 'test attribute "dns_target_type"' do
|
|
61
|
+
it 'should work' do
|
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
describe 'test attribute "email"' do
|
|
67
|
+
it 'should work' do
|
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
describe 'test attribute "gcp_project"' do
|
|
73
|
+
it 'should work' do
|
|
74
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
describe 'test attribute "hosted_zone"' do
|
|
79
|
+
it 'should work' do
|
|
80
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
describe 'test attribute "resource_group"' do
|
|
85
|
+
it 'should work' do
|
|
86
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
describe 'test attribute "timeout"' do
|
|
91
|
+
it 'should work' do
|
|
92
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
end
|