akeyless 5.0.28 → 5.0.30
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 +49 -1
- data/docs/AccountGeneralSettings.md +4 -0
- data/docs/AnthropicTargetDetails.md +20 -0
- data/docs/AuthMethod.md +3 -1
- data/docs/AuthMethodAccessInfo.md +2 -0
- data/docs/AuthMethodCreateSAML.md +3 -1
- data/docs/AuthMethodCreateUniversalIdentity.md +2 -0
- data/docs/AuthMethodUpdateSAML.md +3 -1
- data/docs/AuthMethodUpdateUniversalIdentity.md +2 -0
- data/docs/BedrockTargetDetails.md +20 -0
- data/docs/CreateAuthMethodSAML.md +3 -1
- data/docs/CreateAuthMethodUniversalIdentity.md +2 -0
- data/docs/CreateDBTarget.md +2 -0
- data/docs/CreateMcpSecretBearerToken.md +46 -0
- data/docs/CreateMcpSecretOAuthAuthCode.md +56 -0
- data/docs/CreateMcpSecretOAuthClientCreds.md +52 -0
- data/docs/CreatePKICertIssuer.md +1 -1
- data/docs/CustomDnsTargetDetails.md +20 -0
- data/docs/DSProducerDetails.md +2 -0
- data/docs/DbTargetDetails.md +2 -0
- data/docs/EmailCustomization.md +28 -0
- data/docs/EmailCustomizationAccountInformation.md +24 -0
- data/docs/EmailCustomizationAccountInformationValues.md +24 -0
- data/docs/EsmGetSecretOutput.md +4 -0
- data/docs/FileDownloadInstructions.md +20 -0
- data/docs/FileInfo.md +50 -0
- data/docs/GatewayCreateMigration.md +2 -0
- data/docs/GatewayUpdateMigration.md +2 -0
- data/docs/GetKubeExecCreds.md +1 -1
- data/docs/GetPKICertificate.md +1 -1
- data/docs/GrokTargetDetails.md +22 -0
- data/docs/HashiPayload.md +2 -0
- data/docs/Item.md +2 -0
- data/docs/KeycloakTargetDetails.md +24 -0
- data/docs/OktaTargetDetails.md +20 -0
- data/docs/RuntimeAuthorityCommand.md +4 -0
- data/docs/SAMLAccessRules.md +3 -1
- data/docs/StaticSecretDetailsInfo.md +2 -0
- data/docs/TargetCreateAnthropic.md +36 -0
- data/docs/TargetCreateBedrock.md +36 -0
- data/docs/TargetCreateCustomDns.md +36 -0
- data/docs/TargetCreateDB.md +2 -0
- data/docs/TargetCreateGrok.md +38 -0
- data/docs/TargetCreateKeycloak.md +40 -0
- data/docs/TargetCreateOkta.md +36 -0
- data/docs/TargetTypeDetailsInput.md +12 -0
- data/docs/TargetUpdateAnthropic.md +42 -0
- data/docs/TargetUpdateBedrock.md +42 -0
- data/docs/TargetUpdateCustomDns.md +40 -0
- data/docs/TargetUpdateDB.md +2 -0
- data/docs/TargetUpdateGrok.md +44 -0
- data/docs/TargetUpdateKeycloak.md +44 -0
- data/docs/TargetUpdateOkta.md +40 -0
- data/docs/UidExpirationEvent.md +18 -0
- data/docs/UpdateAuthMethodSAML.md +3 -1
- data/docs/UpdateAuthMethodUniversalIdentity.md +2 -0
- data/docs/UpdateDBTarget.md +2 -0
- data/docs/UpdateMcpSecretBearerToken.md +40 -0
- data/docs/UpdateMcpSecretOAuthAuthCode.md +50 -0
- data/docs/UpdateMcpSecretOAuthClientCreds.md +46 -0
- data/docs/UpdatePKICertIssuer.md +1 -1
- data/docs/UscGetSecretOutput.md +4 -0
- data/docs/V2Api.md +1134 -0
- data/lib/akeyless/api/v2_api.rb +1249 -97
- data/lib/akeyless/models/account_general_settings.rb +20 -1
- data/lib/akeyless/models/anthropic_target_details.rb +224 -0
- data/lib/akeyless/models/auth_method.rb +15 -4
- data/lib/akeyless/models/auth_method_access_info.rb +13 -1
- data/lib/akeyless/models/auth_method_create_saml.rb +14 -4
- data/lib/akeyless/models/auth_method_create_universal_identity.rb +13 -1
- data/lib/akeyless/models/auth_method_update_saml.rb +14 -4
- data/lib/akeyless/models/auth_method_update_universal_identity.rb +13 -1
- data/lib/akeyless/models/bedrock_target_details.rb +224 -0
- data/lib/akeyless/models/create_auth_method_saml.rb +14 -4
- data/lib/akeyless/models/create_auth_method_universal_identity.rb +13 -1
- data/lib/akeyless/models/create_db_target.rb +11 -1
- data/lib/akeyless/models/create_mcp_secret_bearer_token.rb +371 -0
- data/lib/akeyless/models/create_mcp_secret_o_auth_auth_code.rb +423 -0
- data/lib/akeyless/models/create_mcp_secret_o_auth_client_creds.rb +403 -0
- data/lib/akeyless/models/create_pki_cert_issuer.rb +1 -1
- data/lib/akeyless/models/custom_dns_target_details.rb +225 -0
- data/lib/akeyless/models/db_target_details.rb +11 -1
- data/lib/akeyless/models/ds_producer_details.rb +11 -1
- data/lib/akeyless/models/email_customization.rb +259 -0
- data/lib/akeyless/models/email_customization_account_information.rb +242 -0
- data/lib/akeyless/models/email_customization_account_information_values.rb +241 -0
- data/lib/akeyless/models/esm_get_secret_output.rb +19 -1
- data/lib/akeyless/models/file_download_instructions.rb +223 -0
- data/lib/akeyless/models/file_info.rb +358 -0
- data/lib/akeyless/models/gateway_create_migration.rb +11 -1
- data/lib/akeyless/models/gateway_update_migration.rb +11 -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/grok_target_details.rb +234 -0
- data/lib/akeyless/models/hashi_payload.rb +10 -1
- data/lib/akeyless/models/item.rb +10 -1
- data/lib/akeyless/models/keycloak_target_details.rb +242 -0
- data/lib/akeyless/models/okta_target_details.rb +224 -0
- data/lib/akeyless/models/runtime_authority_command.rb +21 -1
- data/lib/akeyless/models/saml_access_rules.rb +14 -4
- data/lib/akeyless/models/static_secret_details_info.rb +10 -1
- data/lib/akeyless/models/target_create_anthropic.rb +317 -0
- data/lib/akeyless/models/target_create_bedrock.rb +317 -0
- data/lib/akeyless/models/target_create_custom_dns.rb +330 -0
- data/lib/akeyless/models/target_create_db.rb +11 -1
- data/lib/akeyless/models/target_create_grok.rb +327 -0
- data/lib/akeyless/models/target_create_keycloak.rb +334 -0
- data/lib/akeyless/models/target_create_okta.rb +314 -0
- data/lib/akeyless/models/target_type_details_input.rb +55 -1
- data/lib/akeyless/models/target_update_anthropic.rb +351 -0
- data/lib/akeyless/models/target_update_bedrock.rb +351 -0
- data/lib/akeyless/models/target_update_custom_dns.rb +350 -0
- data/lib/akeyless/models/target_update_db.rb +11 -1
- data/lib/akeyless/models/target_update_grok.rb +361 -0
- data/lib/akeyless/models/target_update_keycloak.rb +354 -0
- data/lib/akeyless/models/target_update_okta.rb +334 -0
- data/lib/akeyless/models/uid_expiration_event.rb +214 -0
- data/lib/akeyless/models/update_auth_method_saml.rb +14 -4
- data/lib/akeyless/models/update_auth_method_universal_identity.rb +13 -1
- data/lib/akeyless/models/update_db_target.rb +11 -1
- data/lib/akeyless/models/update_mcp_secret_bearer_token.rb +338 -0
- data/lib/akeyless/models/update_mcp_secret_o_auth_auth_code.rb +390 -0
- data/lib/akeyless/models/update_mcp_secret_o_auth_client_creds.rb +370 -0
- data/lib/akeyless/models/update_pki_cert_issuer.rb +1 -1
- data/lib/akeyless/models/usc_get_secret_output.rb +19 -1
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +30 -0
- data/spec/models/anthropic_target_details_spec.rb +42 -0
- data/spec/models/bedrock_target_details_spec.rb +42 -0
- data/spec/models/create_mcp_secret_bearer_token_spec.rb +120 -0
- data/spec/models/create_mcp_secret_o_auth_auth_code_spec.rb +150 -0
- data/spec/models/create_mcp_secret_o_auth_client_creds_spec.rb +138 -0
- data/spec/models/custom_dns_target_details_spec.rb +42 -0
- data/spec/models/email_customization_account_information_spec.rb +54 -0
- data/spec/models/email_customization_account_information_values_spec.rb +54 -0
- data/spec/models/email_customization_spec.rb +66 -0
- data/spec/models/file_download_instructions_spec.rb +42 -0
- data/spec/models/file_info_spec.rb +132 -0
- data/spec/models/grok_target_details_spec.rb +48 -0
- data/spec/models/keycloak_target_details_spec.rb +54 -0
- data/spec/models/okta_target_details_spec.rb +42 -0
- data/spec/models/target_create_anthropic_spec.rb +90 -0
- data/spec/models/target_create_bedrock_spec.rb +90 -0
- data/spec/models/target_create_custom_dns_spec.rb +90 -0
- data/spec/models/target_create_grok_spec.rb +96 -0
- data/spec/models/target_create_keycloak_spec.rb +102 -0
- data/spec/models/target_create_okta_spec.rb +90 -0
- data/spec/models/target_update_anthropic_spec.rb +108 -0
- data/spec/models/target_update_bedrock_spec.rb +108 -0
- data/spec/models/target_update_custom_dns_spec.rb +102 -0
- data/spec/models/target_update_grok_spec.rb +114 -0
- data/spec/models/target_update_keycloak_spec.rb +114 -0
- data/spec/models/target_update_okta_spec.rb +102 -0
- data/spec/models/uid_expiration_event_spec.rb +36 -0
- data/spec/models/update_mcp_secret_bearer_token_spec.rb +102 -0
- data/spec/models/update_mcp_secret_o_auth_auth_code_spec.rb +132 -0
- data/spec/models/update_mcp_secret_o_auth_client_creds_spec.rb +120 -0
- metadata +1295 -1175
|
@@ -0,0 +1,370 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Akeyless API
|
|
3
|
+
|
|
4
|
+
#The purpose of this application is to provide access to Akeyless API.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 3.0
|
|
7
|
+
Contact: support@akeyless.io
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.10.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Akeyless
|
|
17
|
+
class UpdateMcpSecretOAuthClientCreds
|
|
18
|
+
# for personal password manager
|
|
19
|
+
attr_accessor :accessibility
|
|
20
|
+
|
|
21
|
+
# Agentic input rule in name=...,rule=... format (e.g. name=rule1,rule=Sanitize input)
|
|
22
|
+
attr_accessor :input_rule
|
|
23
|
+
|
|
24
|
+
# Set output format to JSON
|
|
25
|
+
attr_accessor :json
|
|
26
|
+
|
|
27
|
+
# Whether to keep previous version [true/false]. If not set, use default according to account settings
|
|
28
|
+
attr_accessor :keep_prev_version
|
|
29
|
+
|
|
30
|
+
attr_accessor :key
|
|
31
|
+
|
|
32
|
+
attr_accessor :last_version
|
|
33
|
+
|
|
34
|
+
# Secret name
|
|
35
|
+
attr_accessor :name
|
|
36
|
+
|
|
37
|
+
# OAuth client ID
|
|
38
|
+
attr_accessor :oauth_client_id
|
|
39
|
+
|
|
40
|
+
# OAuth client secret
|
|
41
|
+
attr_accessor :oauth_client_secret
|
|
42
|
+
|
|
43
|
+
# OAuth scopes
|
|
44
|
+
attr_accessor :oauth_scopes
|
|
45
|
+
|
|
46
|
+
# OAuth token URL
|
|
47
|
+
attr_accessor :oauth_token_url
|
|
48
|
+
|
|
49
|
+
# Agentic output rule in name=...,rule=... format (e.g. name=rule1,rule=Mask secrets)
|
|
50
|
+
attr_accessor :output_rule
|
|
51
|
+
|
|
52
|
+
# Authentication token (see `/auth` and `/configure`)
|
|
53
|
+
attr_accessor :token
|
|
54
|
+
|
|
55
|
+
# The universal identity token, Required only for universal_identity authentication
|
|
56
|
+
attr_accessor :uid_token
|
|
57
|
+
|
|
58
|
+
# URL of the service
|
|
59
|
+
attr_accessor :url
|
|
60
|
+
|
|
61
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
62
|
+
def self.attribute_map
|
|
63
|
+
{
|
|
64
|
+
:'accessibility' => :'accessibility',
|
|
65
|
+
:'input_rule' => :'input-rule',
|
|
66
|
+
:'json' => :'json',
|
|
67
|
+
:'keep_prev_version' => :'keep-prev-version',
|
|
68
|
+
:'key' => :'key',
|
|
69
|
+
:'last_version' => :'last-version',
|
|
70
|
+
:'name' => :'name',
|
|
71
|
+
:'oauth_client_id' => :'oauth-client-id',
|
|
72
|
+
:'oauth_client_secret' => :'oauth-client-secret',
|
|
73
|
+
:'oauth_scopes' => :'oauth-scopes',
|
|
74
|
+
:'oauth_token_url' => :'oauth-token-url',
|
|
75
|
+
:'output_rule' => :'output-rule',
|
|
76
|
+
:'token' => :'token',
|
|
77
|
+
:'uid_token' => :'uid-token',
|
|
78
|
+
:'url' => :'url'
|
|
79
|
+
}
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# Returns all the JSON keys this model knows about
|
|
83
|
+
def self.acceptable_attributes
|
|
84
|
+
attribute_map.values
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Attribute type mapping.
|
|
88
|
+
def self.openapi_types
|
|
89
|
+
{
|
|
90
|
+
:'accessibility' => :'String',
|
|
91
|
+
:'input_rule' => :'Array<String>',
|
|
92
|
+
:'json' => :'Boolean',
|
|
93
|
+
:'keep_prev_version' => :'String',
|
|
94
|
+
:'key' => :'String',
|
|
95
|
+
:'last_version' => :'Integer',
|
|
96
|
+
:'name' => :'String',
|
|
97
|
+
:'oauth_client_id' => :'String',
|
|
98
|
+
:'oauth_client_secret' => :'String',
|
|
99
|
+
:'oauth_scopes' => :'Array<String>',
|
|
100
|
+
:'oauth_token_url' => :'String',
|
|
101
|
+
:'output_rule' => :'Array<String>',
|
|
102
|
+
:'token' => :'String',
|
|
103
|
+
:'uid_token' => :'String',
|
|
104
|
+
:'url' => :'String'
|
|
105
|
+
}
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# List of attributes with nullable: true
|
|
109
|
+
def self.openapi_nullable
|
|
110
|
+
Set.new([
|
|
111
|
+
])
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# Initializes the object
|
|
115
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
116
|
+
def initialize(attributes = {})
|
|
117
|
+
if (!attributes.is_a?(Hash))
|
|
118
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::UpdateMcpSecretOAuthClientCreds` initialize method"
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
122
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
123
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
124
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::UpdateMcpSecretOAuthClientCreds`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
125
|
+
end
|
|
126
|
+
h[k.to_sym] = v
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
if attributes.key?(:'accessibility')
|
|
130
|
+
self.accessibility = attributes[:'accessibility']
|
|
131
|
+
else
|
|
132
|
+
self.accessibility = 'regular'
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
if attributes.key?(:'input_rule')
|
|
136
|
+
if (value = attributes[:'input_rule']).is_a?(Array)
|
|
137
|
+
self.input_rule = value
|
|
138
|
+
end
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
if attributes.key?(:'json')
|
|
142
|
+
self.json = attributes[:'json']
|
|
143
|
+
else
|
|
144
|
+
self.json = false
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
if attributes.key?(:'keep_prev_version')
|
|
148
|
+
self.keep_prev_version = attributes[:'keep_prev_version']
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
if attributes.key?(:'key')
|
|
152
|
+
self.key = attributes[:'key']
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
if attributes.key?(:'last_version')
|
|
156
|
+
self.last_version = attributes[:'last_version']
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
if attributes.key?(:'name')
|
|
160
|
+
self.name = attributes[:'name']
|
|
161
|
+
else
|
|
162
|
+
self.name = nil
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
if attributes.key?(:'oauth_client_id')
|
|
166
|
+
self.oauth_client_id = attributes[:'oauth_client_id']
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
if attributes.key?(:'oauth_client_secret')
|
|
170
|
+
self.oauth_client_secret = attributes[:'oauth_client_secret']
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
if attributes.key?(:'oauth_scopes')
|
|
174
|
+
if (value = attributes[:'oauth_scopes']).is_a?(Array)
|
|
175
|
+
self.oauth_scopes = value
|
|
176
|
+
end
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
if attributes.key?(:'oauth_token_url')
|
|
180
|
+
self.oauth_token_url = attributes[:'oauth_token_url']
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
if attributes.key?(:'output_rule')
|
|
184
|
+
if (value = attributes[:'output_rule']).is_a?(Array)
|
|
185
|
+
self.output_rule = value
|
|
186
|
+
end
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
if attributes.key?(:'token')
|
|
190
|
+
self.token = attributes[:'token']
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
if attributes.key?(:'uid_token')
|
|
194
|
+
self.uid_token = attributes[:'uid_token']
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
if attributes.key?(:'url')
|
|
198
|
+
self.url = attributes[:'url']
|
|
199
|
+
end
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
203
|
+
# @return Array for valid properties with the reasons
|
|
204
|
+
def list_invalid_properties
|
|
205
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
206
|
+
invalid_properties = Array.new
|
|
207
|
+
if @name.nil?
|
|
208
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
invalid_properties
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
# Check to see if the all the properties in the model are valid
|
|
215
|
+
# @return true if the model is valid
|
|
216
|
+
def valid?
|
|
217
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
218
|
+
return false if @name.nil?
|
|
219
|
+
true
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
# Checks equality by comparing each attribute.
|
|
223
|
+
# @param [Object] Object to be compared
|
|
224
|
+
def ==(o)
|
|
225
|
+
return true if self.equal?(o)
|
|
226
|
+
self.class == o.class &&
|
|
227
|
+
accessibility == o.accessibility &&
|
|
228
|
+
input_rule == o.input_rule &&
|
|
229
|
+
json == o.json &&
|
|
230
|
+
keep_prev_version == o.keep_prev_version &&
|
|
231
|
+
key == o.key &&
|
|
232
|
+
last_version == o.last_version &&
|
|
233
|
+
name == o.name &&
|
|
234
|
+
oauth_client_id == o.oauth_client_id &&
|
|
235
|
+
oauth_client_secret == o.oauth_client_secret &&
|
|
236
|
+
oauth_scopes == o.oauth_scopes &&
|
|
237
|
+
oauth_token_url == o.oauth_token_url &&
|
|
238
|
+
output_rule == o.output_rule &&
|
|
239
|
+
token == o.token &&
|
|
240
|
+
uid_token == o.uid_token &&
|
|
241
|
+
url == o.url
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
# @see the `==` method
|
|
245
|
+
# @param [Object] Object to be compared
|
|
246
|
+
def eql?(o)
|
|
247
|
+
self == o
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
# Calculates hash code according to all attributes.
|
|
251
|
+
# @return [Integer] Hash code
|
|
252
|
+
def hash
|
|
253
|
+
[accessibility, input_rule, json, keep_prev_version, key, last_version, name, oauth_client_id, oauth_client_secret, oauth_scopes, oauth_token_url, output_rule, token, uid_token, url].hash
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
# Builds the object from hash
|
|
257
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
258
|
+
# @return [Object] Returns the model itself
|
|
259
|
+
def self.build_from_hash(attributes)
|
|
260
|
+
return nil unless attributes.is_a?(Hash)
|
|
261
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
262
|
+
transformed_hash = {}
|
|
263
|
+
openapi_types.each_pair do |key, type|
|
|
264
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
265
|
+
transformed_hash["#{key}"] = nil
|
|
266
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
267
|
+
# check to ensure the input is an array given that the attribute
|
|
268
|
+
# is documented as an array but the input is not
|
|
269
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
270
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
271
|
+
end
|
|
272
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
273
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
274
|
+
end
|
|
275
|
+
end
|
|
276
|
+
new(transformed_hash)
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
# Deserializes the data based on type
|
|
280
|
+
# @param string type Data type
|
|
281
|
+
# @param string value Value to be deserialized
|
|
282
|
+
# @return [Object] Deserialized data
|
|
283
|
+
def self._deserialize(type, value)
|
|
284
|
+
case type.to_sym
|
|
285
|
+
when :Time
|
|
286
|
+
Time.parse(value)
|
|
287
|
+
when :Date
|
|
288
|
+
Date.parse(value)
|
|
289
|
+
when :String
|
|
290
|
+
value.to_s
|
|
291
|
+
when :Integer
|
|
292
|
+
value.to_i
|
|
293
|
+
when :Float
|
|
294
|
+
value.to_f
|
|
295
|
+
when :Boolean
|
|
296
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
297
|
+
true
|
|
298
|
+
else
|
|
299
|
+
false
|
|
300
|
+
end
|
|
301
|
+
when :Object
|
|
302
|
+
# generic object (usually a Hash), return directly
|
|
303
|
+
value
|
|
304
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
305
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
306
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
307
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
308
|
+
k_type = Regexp.last_match[:k_type]
|
|
309
|
+
v_type = Regexp.last_match[:v_type]
|
|
310
|
+
{}.tap do |hash|
|
|
311
|
+
value.each do |k, v|
|
|
312
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
313
|
+
end
|
|
314
|
+
end
|
|
315
|
+
else # model
|
|
316
|
+
# models (e.g. Pet) or oneOf
|
|
317
|
+
klass = Akeyless.const_get(type)
|
|
318
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
319
|
+
end
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
# Returns the string representation of the object
|
|
323
|
+
# @return [String] String presentation of the object
|
|
324
|
+
def to_s
|
|
325
|
+
to_hash.to_s
|
|
326
|
+
end
|
|
327
|
+
|
|
328
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
329
|
+
# @return [Hash] Returns the object in the form of hash
|
|
330
|
+
def to_body
|
|
331
|
+
to_hash
|
|
332
|
+
end
|
|
333
|
+
|
|
334
|
+
# Returns the object in the form of hash
|
|
335
|
+
# @return [Hash] Returns the object in the form of hash
|
|
336
|
+
def to_hash
|
|
337
|
+
hash = {}
|
|
338
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
339
|
+
value = self.send(attr)
|
|
340
|
+
if value.nil?
|
|
341
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
342
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
343
|
+
end
|
|
344
|
+
|
|
345
|
+
hash[param] = _to_hash(value)
|
|
346
|
+
end
|
|
347
|
+
hash
|
|
348
|
+
end
|
|
349
|
+
|
|
350
|
+
# Outputs non-array value in the form of hash
|
|
351
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
352
|
+
# @param [Object] value Any valid value
|
|
353
|
+
# @return [Hash] Returns the value in the form of hash
|
|
354
|
+
def _to_hash(value)
|
|
355
|
+
if value.is_a?(Array)
|
|
356
|
+
value.compact.map { |v| _to_hash(v) }
|
|
357
|
+
elsif value.is_a?(Hash)
|
|
358
|
+
{}.tap do |hash|
|
|
359
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
360
|
+
end
|
|
361
|
+
elsif value.respond_to? :to_hash
|
|
362
|
+
value.to_hash
|
|
363
|
+
else
|
|
364
|
+
value
|
|
365
|
+
end
|
|
366
|
+
end
|
|
367
|
+
|
|
368
|
+
end
|
|
369
|
+
|
|
370
|
+
end
|
|
@@ -159,7 +159,7 @@ module Akeyless
|
|
|
159
159
|
# Authentication token (see `/auth` and `/configure`)
|
|
160
160
|
attr_accessor :token
|
|
161
161
|
|
|
162
|
-
# The maximum requested Time To Live for issued certificates, in seconds. In case of Public CA, this is based on the CA target's supported maximum TTLs
|
|
162
|
+
# The maximum requested Time To Live for issued certificates, in seconds. In case of Public CA, this is based on the CA target's supported maximum TTLs. Not supported for Let's Encrypt, which always uses the CA default lifetime (about 90 days).
|
|
163
163
|
attr_accessor :ttl
|
|
164
164
|
|
|
165
165
|
# The universal identity token, Required only for universal_identity authentication
|
|
@@ -15,10 +15,14 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Akeyless
|
|
17
17
|
class UscGetSecretOutput
|
|
18
|
+
attr_accessor :activation_date
|
|
19
|
+
|
|
18
20
|
attr_accessor :binary_value
|
|
19
21
|
|
|
20
22
|
attr_accessor :encryption_key
|
|
21
23
|
|
|
24
|
+
attr_accessor :expiration
|
|
25
|
+
|
|
22
26
|
attr_accessor :id
|
|
23
27
|
|
|
24
28
|
attr_accessor :metadata
|
|
@@ -36,8 +40,10 @@ module Akeyless
|
|
|
36
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
41
|
def self.attribute_map
|
|
38
42
|
{
|
|
43
|
+
:'activation_date' => :'activation_date',
|
|
39
44
|
:'binary_value' => :'binary_value',
|
|
40
45
|
:'encryption_key' => :'encryption_key',
|
|
46
|
+
:'expiration' => :'expiration',
|
|
41
47
|
:'id' => :'id',
|
|
42
48
|
:'metadata' => :'metadata',
|
|
43
49
|
:'name' => :'name',
|
|
@@ -56,8 +62,10 @@ module Akeyless
|
|
|
56
62
|
# Attribute type mapping.
|
|
57
63
|
def self.openapi_types
|
|
58
64
|
{
|
|
65
|
+
:'activation_date' => :'Time',
|
|
59
66
|
:'binary_value' => :'Boolean',
|
|
60
67
|
:'encryption_key' => :'String',
|
|
68
|
+
:'expiration' => :'Time',
|
|
61
69
|
:'id' => :'String',
|
|
62
70
|
:'metadata' => :'Object',
|
|
63
71
|
:'name' => :'String',
|
|
@@ -90,6 +98,10 @@ module Akeyless
|
|
|
90
98
|
h[k.to_sym] = v
|
|
91
99
|
}
|
|
92
100
|
|
|
101
|
+
if attributes.key?(:'activation_date')
|
|
102
|
+
self.activation_date = attributes[:'activation_date']
|
|
103
|
+
end
|
|
104
|
+
|
|
93
105
|
if attributes.key?(:'binary_value')
|
|
94
106
|
self.binary_value = attributes[:'binary_value']
|
|
95
107
|
end
|
|
@@ -98,6 +110,10 @@ module Akeyless
|
|
|
98
110
|
self.encryption_key = attributes[:'encryption_key']
|
|
99
111
|
end
|
|
100
112
|
|
|
113
|
+
if attributes.key?(:'expiration')
|
|
114
|
+
self.expiration = attributes[:'expiration']
|
|
115
|
+
end
|
|
116
|
+
|
|
101
117
|
if attributes.key?(:'id')
|
|
102
118
|
self.id = attributes[:'id']
|
|
103
119
|
end
|
|
@@ -151,8 +167,10 @@ module Akeyless
|
|
|
151
167
|
def ==(o)
|
|
152
168
|
return true if self.equal?(o)
|
|
153
169
|
self.class == o.class &&
|
|
170
|
+
activation_date == o.activation_date &&
|
|
154
171
|
binary_value == o.binary_value &&
|
|
155
172
|
encryption_key == o.encryption_key &&
|
|
173
|
+
expiration == o.expiration &&
|
|
156
174
|
id == o.id &&
|
|
157
175
|
metadata == o.metadata &&
|
|
158
176
|
name == o.name &&
|
|
@@ -171,7 +189,7 @@ module Akeyless
|
|
|
171
189
|
# Calculates hash code according to all attributes.
|
|
172
190
|
# @return [Integer] Hash code
|
|
173
191
|
def hash
|
|
174
|
-
[binary_value, encryption_key, id, metadata, name, value, version_id, version_ids, warnings].hash
|
|
192
|
+
[activation_date, binary_value, encryption_key, expiration, id, metadata, name, value, version_id, version_ids, warnings].hash
|
|
175
193
|
end
|
|
176
194
|
|
|
177
195
|
# Builds the object from hash
|
data/lib/akeyless/version.rb
CHANGED
data/lib/akeyless.rb
CHANGED
|
@@ -52,6 +52,7 @@ require 'akeyless/models/allowed_access'
|
|
|
52
52
|
require 'akeyless/models/allowed_access_old'
|
|
53
53
|
require 'akeyless/models/allowed_client_type'
|
|
54
54
|
require 'akeyless/models/allowed_ip_settings'
|
|
55
|
+
require 'akeyless/models/anthropic_target_details'
|
|
55
56
|
require 'akeyless/models/artifactory_target_details'
|
|
56
57
|
require 'akeyless/models/assoc_role_auth_method'
|
|
57
58
|
require 'akeyless/models/assoc_target_item'
|
|
@@ -113,6 +114,7 @@ require 'akeyless/models/batch_encryption_request_line'
|
|
|
113
114
|
require 'akeyless/models/batch_encryption_response_line'
|
|
114
115
|
require 'akeyless/models/batch_tokenization_request_line'
|
|
115
116
|
require 'akeyless/models/batch_tokenization_response_line'
|
|
117
|
+
require 'akeyless/models/bedrock_target_details'
|
|
116
118
|
require 'akeyless/models/cf_config_part'
|
|
117
119
|
require 'akeyless/models/ca_certificates_config_part'
|
|
118
120
|
require 'akeyless/models/cache_config_part'
|
|
@@ -224,6 +226,9 @@ require 'akeyless/models/create_ldap_target'
|
|
|
224
226
|
require 'akeyless/models/create_ldap_target_output'
|
|
225
227
|
require 'akeyless/models/create_linked_target'
|
|
226
228
|
require 'akeyless/models/create_linked_target_output'
|
|
229
|
+
require 'akeyless/models/create_mcp_secret_bearer_token'
|
|
230
|
+
require 'akeyless/models/create_mcp_secret_o_auth_auth_code'
|
|
231
|
+
require 'akeyless/models/create_mcp_secret_o_auth_client_creds'
|
|
227
232
|
require 'akeyless/models/create_native_k8_s_target'
|
|
228
233
|
require 'akeyless/models/create_native_k8_s_target_output'
|
|
229
234
|
require 'akeyless/models/create_oidc_app'
|
|
@@ -261,6 +266,7 @@ require 'akeyless/models/create_windows_target'
|
|
|
261
266
|
require 'akeyless/models/create_windows_target_output'
|
|
262
267
|
require 'akeyless/models/create_zero_ssl_target'
|
|
263
268
|
require 'akeyless/models/create_zero_ssl_target_output'
|
|
269
|
+
require 'akeyless/models/custom_dns_target_details'
|
|
264
270
|
require 'akeyless/models/custom_target_details'
|
|
265
271
|
require 'akeyless/models/customer_fragment_config'
|
|
266
272
|
require 'akeyless/models/customer_fragments_config_json'
|
|
@@ -389,6 +395,9 @@ require 'akeyless/models/dynamic_secret_update_snowflake'
|
|
|
389
395
|
require 'akeyless/models/dynamic_secret_update_venafi'
|
|
390
396
|
require 'akeyless/models/eks_target_details'
|
|
391
397
|
require 'akeyless/models/elasticsearch_log_forwarding_config'
|
|
398
|
+
require 'akeyless/models/email_customization'
|
|
399
|
+
require 'akeyless/models/email_customization_account_information'
|
|
400
|
+
require 'akeyless/models/email_customization_account_information_values'
|
|
392
401
|
require 'akeyless/models/email_entry'
|
|
393
402
|
require 'akeyless/models/email_error'
|
|
394
403
|
require 'akeyless/models/email_pass_access_rules'
|
|
@@ -431,6 +440,8 @@ require 'akeyless/models/export_classic_key'
|
|
|
431
440
|
require 'akeyless/models/export_classic_key_output'
|
|
432
441
|
require 'akeyless/models/extension'
|
|
433
442
|
require 'akeyless/models/external_kms_key_id'
|
|
443
|
+
require 'akeyless/models/file_download_instructions'
|
|
444
|
+
require 'akeyless/models/file_info'
|
|
434
445
|
require 'akeyless/models/folder_create'
|
|
435
446
|
require 'akeyless/models/folder_create_output'
|
|
436
447
|
require 'akeyless/models/folder_delete'
|
|
@@ -684,6 +695,7 @@ require 'akeyless/models/global_sign_gcc_target_details'
|
|
|
684
695
|
require 'akeyless/models/godaddy_target_details'
|
|
685
696
|
require 'akeyless/models/google_chronicle_forwarding_config'
|
|
686
697
|
require 'akeyless/models/google_trust_target_details'
|
|
698
|
+
require 'akeyless/models/grok_target_details'
|
|
687
699
|
require 'akeyless/models/group'
|
|
688
700
|
require 'akeyless/models/gw_cluster_identity'
|
|
689
701
|
require 'akeyless/models/gw_update_remote_access_session_logs_aws_s3'
|
|
@@ -732,6 +744,7 @@ require 'akeyless/models/kmip_server'
|
|
|
732
744
|
require 'akeyless/models/kerberos_access_rules'
|
|
733
745
|
require 'akeyless/models/kerberos_auth_method_info'
|
|
734
746
|
require 'akeyless/models/kerberos_config_part'
|
|
747
|
+
require 'akeyless/models/keycloak_target_details'
|
|
735
748
|
require 'akeyless/models/kmip_client_delete_rule'
|
|
736
749
|
require 'akeyless/models/kmip_client_set_rule'
|
|
737
750
|
require 'akeyless/models/kmip_client_update'
|
|
@@ -822,6 +835,7 @@ require 'akeyless/models/oidc_access_rules'
|
|
|
822
835
|
require 'akeyless/models/oidc_custom_claim'
|
|
823
836
|
require 'akeyless/models/object_version_settings_output'
|
|
824
837
|
require 'akeyless/models/oidc_client_info'
|
|
838
|
+
require 'akeyless/models/okta_target_details'
|
|
825
839
|
require 'akeyless/models/one_password_migration'
|
|
826
840
|
require 'akeyless/models/one_password_payload'
|
|
827
841
|
require 'akeyless/models/open_ai_target_details'
|
|
@@ -990,10 +1004,13 @@ require 'akeyless/models/syslog_log_forwarding_config'
|
|
|
990
1004
|
require 'akeyless/models/system_access_credentials_reply_obj'
|
|
991
1005
|
require 'akeyless/models/system_access_creds_settings'
|
|
992
1006
|
require 'akeyless/models/target'
|
|
1007
|
+
require 'akeyless/models/target_create_anthropic'
|
|
993
1008
|
require 'akeyless/models/target_create_artifactory'
|
|
994
1009
|
require 'akeyless/models/target_create_aws'
|
|
995
1010
|
require 'akeyless/models/target_create_azure'
|
|
1011
|
+
require 'akeyless/models/target_create_bedrock'
|
|
996
1012
|
require 'akeyless/models/target_create_cloudflare'
|
|
1013
|
+
require 'akeyless/models/target_create_custom_dns'
|
|
997
1014
|
require 'akeyless/models/target_create_db'
|
|
998
1015
|
require 'akeyless/models/target_create_digi_cert'
|
|
999
1016
|
require 'akeyless/models/target_create_dockerhub'
|
|
@@ -1007,11 +1024,14 @@ require 'akeyless/models/target_create_global_sign'
|
|
|
1007
1024
|
require 'akeyless/models/target_create_global_sign_atlas'
|
|
1008
1025
|
require 'akeyless/models/target_create_godaddy'
|
|
1009
1026
|
require 'akeyless/models/target_create_google_trust'
|
|
1027
|
+
require 'akeyless/models/target_create_grok'
|
|
1010
1028
|
require 'akeyless/models/target_create_hashi_vault'
|
|
1011
1029
|
require 'akeyless/models/target_create_k8s'
|
|
1030
|
+
require 'akeyless/models/target_create_keycloak'
|
|
1012
1031
|
require 'akeyless/models/target_create_ldap'
|
|
1013
1032
|
require 'akeyless/models/target_create_lets_encrypt'
|
|
1014
1033
|
require 'akeyless/models/target_create_linked'
|
|
1034
|
+
require 'akeyless/models/target_create_okta'
|
|
1015
1035
|
require 'akeyless/models/target_create_open_ai'
|
|
1016
1036
|
require 'akeyless/models/target_create_output'
|
|
1017
1037
|
require 'akeyless/models/target_create_ping'
|
|
@@ -1032,10 +1052,13 @@ require 'akeyless/models/target_item_version'
|
|
|
1032
1052
|
require 'akeyless/models/target_list'
|
|
1033
1053
|
require 'akeyless/models/target_name_with_hosts'
|
|
1034
1054
|
require 'akeyless/models/target_type_details_input'
|
|
1055
|
+
require 'akeyless/models/target_update_anthropic'
|
|
1035
1056
|
require 'akeyless/models/target_update_artifactory'
|
|
1036
1057
|
require 'akeyless/models/target_update_aws'
|
|
1037
1058
|
require 'akeyless/models/target_update_azure'
|
|
1059
|
+
require 'akeyless/models/target_update_bedrock'
|
|
1038
1060
|
require 'akeyless/models/target_update_cloudflare'
|
|
1061
|
+
require 'akeyless/models/target_update_custom_dns'
|
|
1039
1062
|
require 'akeyless/models/target_update_db'
|
|
1040
1063
|
require 'akeyless/models/target_update_digi_cert'
|
|
1041
1064
|
require 'akeyless/models/target_update_dockerhub'
|
|
@@ -1049,11 +1072,14 @@ require 'akeyless/models/target_update_global_sign'
|
|
|
1049
1072
|
require 'akeyless/models/target_update_global_sign_atlas'
|
|
1050
1073
|
require 'akeyless/models/target_update_godaddy'
|
|
1051
1074
|
require 'akeyless/models/target_update_google_trust'
|
|
1075
|
+
require 'akeyless/models/target_update_grok'
|
|
1052
1076
|
require 'akeyless/models/target_update_hashi_vault'
|
|
1053
1077
|
require 'akeyless/models/target_update_k8s'
|
|
1078
|
+
require 'akeyless/models/target_update_keycloak'
|
|
1054
1079
|
require 'akeyless/models/target_update_ldap'
|
|
1055
1080
|
require 'akeyless/models/target_update_lets_encrypt'
|
|
1056
1081
|
require 'akeyless/models/target_update_linked'
|
|
1082
|
+
require 'akeyless/models/target_update_okta'
|
|
1057
1083
|
require 'akeyless/models/target_update_open_ai'
|
|
1058
1084
|
require 'akeyless/models/target_update_output'
|
|
1059
1085
|
require 'akeyless/models/target_update_ping'
|
|
@@ -1072,6 +1098,7 @@ require 'akeyless/models/tokenizer_info'
|
|
|
1072
1098
|
require 'akeyless/models/uid_token_details'
|
|
1073
1099
|
require 'akeyless/models/uid_create_child_token'
|
|
1074
1100
|
require 'akeyless/models/uid_create_child_token_output'
|
|
1101
|
+
require 'akeyless/models/uid_expiration_event'
|
|
1075
1102
|
require 'akeyless/models/uid_generate_token'
|
|
1076
1103
|
require 'akeyless/models/uid_generate_token_output'
|
|
1077
1104
|
require 'akeyless/models/uid_list_children'
|
|
@@ -1147,6 +1174,9 @@ require 'akeyless/models/update_ldap_target'
|
|
|
1147
1174
|
require 'akeyless/models/update_ldap_target_details'
|
|
1148
1175
|
require 'akeyless/models/update_ldap_target_output'
|
|
1149
1176
|
require 'akeyless/models/update_linked_target'
|
|
1177
|
+
require 'akeyless/models/update_mcp_secret_bearer_token'
|
|
1178
|
+
require 'akeyless/models/update_mcp_secret_o_auth_auth_code'
|
|
1179
|
+
require 'akeyless/models/update_mcp_secret_o_auth_client_creds'
|
|
1150
1180
|
require 'akeyless/models/update_native_k8_s_target'
|
|
1151
1181
|
require 'akeyless/models/update_native_k8_s_target_output'
|
|
1152
1182
|
require 'akeyless/models/update_oidc_app'
|
|
@@ -0,0 +1,42 @@
|
|
|
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::AnthropicTargetDetails
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Akeyless::AnthropicTargetDetails do
|
|
21
|
+
let(:instance) { Akeyless::AnthropicTargetDetails.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of AnthropicTargetDetails' do
|
|
24
|
+
it 'should create an instance of AnthropicTargetDetails' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Akeyless::AnthropicTargetDetails)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "anthropic_url"' 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 "api_key"' 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
|
+
end
|