akeyless 5.0.6 → 5.0.8
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 +14 -1
- data/docs/Auth.md +4 -0
- data/docs/AuthOutput.md +2 -0
- data/docs/AzureLogAnalyticsForwardingConfig.md +2 -0
- data/docs/CertificateTemplateInfo.md +2 -0
- data/docs/CreateClassicKey.md +3 -1
- data/docs/CreateDFCKey.md +3 -1
- data/docs/CreateKey.md +3 -1
- data/docs/CreateRole.md +2 -0
- data/docs/GatewayCreateAllowedAccess.md +1 -1
- data/docs/GatewayUpdateAllowedAccess.md +1 -1
- data/docs/GatewayUpdateLogForwardingAzureAnalytics.md +2 -0
- data/docs/GatewayUpdateLogForwardingSplunk.md +2 -0
- data/docs/GeminiTargetDetails.md +22 -0
- data/docs/GenerateCsr.md +2 -0
- data/docs/GetCertChallenge.md +22 -0
- data/docs/GetCertChallengeOutput.md +18 -0
- data/docs/GwUpdateRemoteAccessSessionLogsAzureAnalytics.md +2 -0
- data/docs/GwUpdateRemoteAccessSessionLogsSplunk.md +2 -0
- data/docs/OpenAITargetDetails.md +26 -0
- data/docs/PathRule.md +2 -0
- data/docs/ReverseRBACClient.md +2 -0
- data/docs/RoleAuthMethodAssociation.md +2 -0
- data/docs/SharingItemFullInfo.md +2 -0
- data/docs/SplunkLogForwardingConfig.md +2 -0
- data/docs/StaticSecretSync.md +2 -0
- data/docs/TargetCreateGemini.md +36 -0
- data/docs/TargetCreateOpenAI.md +40 -0
- data/docs/TargetItemAssociation.md +2 -0
- data/docs/TargetTypeDetailsInput.md +4 -0
- data/docs/TargetUpdateGemini.md +42 -0
- data/docs/TargetUpdateOpenAI.md +46 -0
- data/docs/UpdateRole.md +2 -0
- data/docs/V2Api.md +315 -0
- data/lib/akeyless/api/v2_api.rb +320 -0
- data/lib/akeyless/models/auth.rb +21 -1
- data/lib/akeyless/models/auth_output.rb +10 -1
- data/lib/akeyless/models/azure_log_analytics_forwarding_config.rb +10 -1
- data/lib/akeyless/models/certificate_template_info.rb +10 -1
- data/lib/akeyless/models/create_classic_key.rb +14 -2
- data/lib/akeyless/models/create_dfc_key.rb +14 -2
- data/lib/akeyless/models/create_key.rb +14 -2
- data/lib/akeyless/models/create_role.rb +11 -1
- data/lib/akeyless/models/gateway_create_allowed_access.rb +1 -1
- data/lib/akeyless/models/gateway_update_allowed_access.rb +1 -1
- data/lib/akeyless/models/gateway_update_log_forwarding_azure_analytics.rb +13 -1
- data/lib/akeyless/models/gateway_update_log_forwarding_splunk.rb +13 -1
- data/lib/akeyless/models/gemini_target_details.rb +233 -0
- data/lib/akeyless/models/generate_csr.rb +13 -1
- data/lib/akeyless/models/get_cert_challenge.rb +238 -0
- data/lib/akeyless/models/get_cert_challenge_output.rb +214 -0
- data/lib/akeyless/models/gw_update_remote_access_session_logs_azure_analytics.rb +13 -1
- data/lib/akeyless/models/gw_update_remote_access_session_logs_splunk.rb +13 -1
- data/lib/akeyless/models/open_ai_target_details.rb +251 -0
- data/lib/akeyless/models/path_rule.rb +11 -1
- data/lib/akeyless/models/reverse_rbac_client.rb +10 -1
- data/lib/akeyless/models/role_auth_method_association.rb +10 -1
- data/lib/akeyless/models/sharing_item_full_info.rb +11 -1
- data/lib/akeyless/models/splunk_log_forwarding_config.rb +10 -1
- data/lib/akeyless/models/static_secret_sync.rb +11 -1
- data/lib/akeyless/models/target_create_gemini.rb +317 -0
- data/lib/akeyless/models/target_create_open_ai.rb +337 -0
- data/lib/akeyless/models/target_item_association.rb +10 -1
- data/lib/akeyless/models/target_type_details_input.rb +19 -1
- data/lib/akeyless/models/target_update_gemini.rb +351 -0
- data/lib/akeyless/models/target_update_open_ai.rb +371 -0
- data/lib/akeyless/models/update_role.rb +11 -1
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +8 -0
- data/spec/models/gemini_target_details_spec.rb +48 -0
- data/spec/models/get_cert_challenge_output_spec.rb +36 -0
- data/spec/models/get_cert_challenge_spec.rb +48 -0
- data/spec/models/open_ai_target_details_spec.rb +60 -0
- data/spec/models/target_create_gemini_spec.rb +90 -0
- data/spec/models/target_create_open_ai_spec.rb +102 -0
- data/spec/models/target_update_gemini_spec.rb +108 -0
- data/spec/models/target_update_open_ai_spec.rb +120 -0
- metadata +33 -1
data/lib/akeyless/api/v2_api.rb
CHANGED
@@ -20212,6 +20212,70 @@ module Akeyless
|
|
20212
20212
|
return data, status_code, headers
|
20213
20213
|
end
|
20214
20214
|
|
20215
|
+
# @param get_cert_challenge [GetCertChallenge]
|
20216
|
+
# @param [Hash] opts the optional parameters
|
20217
|
+
# @return [GetCertChallengeOutput]
|
20218
|
+
def get_cert_challenge(get_cert_challenge, opts = {})
|
20219
|
+
data, _status_code, _headers = get_cert_challenge_with_http_info(get_cert_challenge, opts)
|
20220
|
+
data
|
20221
|
+
end
|
20222
|
+
|
20223
|
+
# @param get_cert_challenge [GetCertChallenge]
|
20224
|
+
# @param [Hash] opts the optional parameters
|
20225
|
+
# @return [Array<(GetCertChallengeOutput, Integer, Hash)>] GetCertChallengeOutput data, response status code and response headers
|
20226
|
+
def get_cert_challenge_with_http_info(get_cert_challenge, opts = {})
|
20227
|
+
if @api_client.config.debugging
|
20228
|
+
@api_client.config.logger.debug 'Calling API: V2Api.get_cert_challenge ...'
|
20229
|
+
end
|
20230
|
+
# verify the required parameter 'get_cert_challenge' is set
|
20231
|
+
if @api_client.config.client_side_validation && get_cert_challenge.nil?
|
20232
|
+
fail ArgumentError, "Missing the required parameter 'get_cert_challenge' when calling V2Api.get_cert_challenge"
|
20233
|
+
end
|
20234
|
+
# resource path
|
20235
|
+
local_var_path = '/get-cert-challenge'
|
20236
|
+
|
20237
|
+
# query parameters
|
20238
|
+
query_params = opts[:query_params] || {}
|
20239
|
+
|
20240
|
+
# header parameters
|
20241
|
+
header_params = opts[:header_params] || {}
|
20242
|
+
# HTTP header 'Accept' (if needed)
|
20243
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
20244
|
+
# HTTP header 'Content-Type'
|
20245
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
20246
|
+
if !content_type.nil?
|
20247
|
+
header_params['Content-Type'] = content_type
|
20248
|
+
end
|
20249
|
+
|
20250
|
+
# form parameters
|
20251
|
+
form_params = opts[:form_params] || {}
|
20252
|
+
|
20253
|
+
# http body (model)
|
20254
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(get_cert_challenge)
|
20255
|
+
|
20256
|
+
# return_type
|
20257
|
+
return_type = opts[:debug_return_type] || 'GetCertChallengeOutput'
|
20258
|
+
|
20259
|
+
# auth_names
|
20260
|
+
auth_names = opts[:debug_auth_names] || []
|
20261
|
+
|
20262
|
+
new_options = opts.merge(
|
20263
|
+
:operation => :"V2Api.get_cert_challenge",
|
20264
|
+
:header_params => header_params,
|
20265
|
+
:query_params => query_params,
|
20266
|
+
:form_params => form_params,
|
20267
|
+
:body => post_body,
|
20268
|
+
:auth_names => auth_names,
|
20269
|
+
:return_type => return_type
|
20270
|
+
)
|
20271
|
+
|
20272
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
20273
|
+
if @api_client.config.debugging
|
20274
|
+
@api_client.config.logger.debug "API called: V2Api#get_cert_challenge\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
20275
|
+
end
|
20276
|
+
return data, status_code, headers
|
20277
|
+
end
|
20278
|
+
|
20215
20279
|
# @param get_certificate_value [GetCertificateValue]
|
20216
20280
|
# @param [Hash] opts the optional parameters
|
20217
20281
|
# @return [GetCertificateValueOutput]
|
@@ -28262,6 +28326,70 @@ module Akeyless
|
|
28262
28326
|
return data, status_code, headers
|
28263
28327
|
end
|
28264
28328
|
|
28329
|
+
# @param target_create_gemini [TargetCreateGemini]
|
28330
|
+
# @param [Hash] opts the optional parameters
|
28331
|
+
# @return [TargetCreateOutput]
|
28332
|
+
def target_create_gemini(target_create_gemini, opts = {})
|
28333
|
+
data, _status_code, _headers = target_create_gemini_with_http_info(target_create_gemini, opts)
|
28334
|
+
data
|
28335
|
+
end
|
28336
|
+
|
28337
|
+
# @param target_create_gemini [TargetCreateGemini]
|
28338
|
+
# @param [Hash] opts the optional parameters
|
28339
|
+
# @return [Array<(TargetCreateOutput, Integer, Hash)>] TargetCreateOutput data, response status code and response headers
|
28340
|
+
def target_create_gemini_with_http_info(target_create_gemini, opts = {})
|
28341
|
+
if @api_client.config.debugging
|
28342
|
+
@api_client.config.logger.debug 'Calling API: V2Api.target_create_gemini ...'
|
28343
|
+
end
|
28344
|
+
# verify the required parameter 'target_create_gemini' is set
|
28345
|
+
if @api_client.config.client_side_validation && target_create_gemini.nil?
|
28346
|
+
fail ArgumentError, "Missing the required parameter 'target_create_gemini' when calling V2Api.target_create_gemini"
|
28347
|
+
end
|
28348
|
+
# resource path
|
28349
|
+
local_var_path = '/target-create-gemini'
|
28350
|
+
|
28351
|
+
# query parameters
|
28352
|
+
query_params = opts[:query_params] || {}
|
28353
|
+
|
28354
|
+
# header parameters
|
28355
|
+
header_params = opts[:header_params] || {}
|
28356
|
+
# HTTP header 'Accept' (if needed)
|
28357
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
28358
|
+
# HTTP header 'Content-Type'
|
28359
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
28360
|
+
if !content_type.nil?
|
28361
|
+
header_params['Content-Type'] = content_type
|
28362
|
+
end
|
28363
|
+
|
28364
|
+
# form parameters
|
28365
|
+
form_params = opts[:form_params] || {}
|
28366
|
+
|
28367
|
+
# http body (model)
|
28368
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(target_create_gemini)
|
28369
|
+
|
28370
|
+
# return_type
|
28371
|
+
return_type = opts[:debug_return_type] || 'TargetCreateOutput'
|
28372
|
+
|
28373
|
+
# auth_names
|
28374
|
+
auth_names = opts[:debug_auth_names] || []
|
28375
|
+
|
28376
|
+
new_options = opts.merge(
|
28377
|
+
:operation => :"V2Api.target_create_gemini",
|
28378
|
+
:header_params => header_params,
|
28379
|
+
:query_params => query_params,
|
28380
|
+
:form_params => form_params,
|
28381
|
+
:body => post_body,
|
28382
|
+
:auth_names => auth_names,
|
28383
|
+
:return_type => return_type
|
28384
|
+
)
|
28385
|
+
|
28386
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
28387
|
+
if @api_client.config.debugging
|
28388
|
+
@api_client.config.logger.debug "API called: V2Api#target_create_gemini\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
28389
|
+
end
|
28390
|
+
return data, status_code, headers
|
28391
|
+
end
|
28392
|
+
|
28265
28393
|
# @param target_create_github [TargetCreateGithub]
|
28266
28394
|
# @param [Hash] opts the optional parameters
|
28267
28395
|
# @return [TargetCreateOutput]
|
@@ -28902,6 +29030,70 @@ module Akeyless
|
|
28902
29030
|
return data, status_code, headers
|
28903
29031
|
end
|
28904
29032
|
|
29033
|
+
# @param target_create_open_ai [TargetCreateOpenAI]
|
29034
|
+
# @param [Hash] opts the optional parameters
|
29035
|
+
# @return [TargetCreateOutput]
|
29036
|
+
def target_create_open_ai(target_create_open_ai, opts = {})
|
29037
|
+
data, _status_code, _headers = target_create_open_ai_with_http_info(target_create_open_ai, opts)
|
29038
|
+
data
|
29039
|
+
end
|
29040
|
+
|
29041
|
+
# @param target_create_open_ai [TargetCreateOpenAI]
|
29042
|
+
# @param [Hash] opts the optional parameters
|
29043
|
+
# @return [Array<(TargetCreateOutput, Integer, Hash)>] TargetCreateOutput data, response status code and response headers
|
29044
|
+
def target_create_open_ai_with_http_info(target_create_open_ai, opts = {})
|
29045
|
+
if @api_client.config.debugging
|
29046
|
+
@api_client.config.logger.debug 'Calling API: V2Api.target_create_open_ai ...'
|
29047
|
+
end
|
29048
|
+
# verify the required parameter 'target_create_open_ai' is set
|
29049
|
+
if @api_client.config.client_side_validation && target_create_open_ai.nil?
|
29050
|
+
fail ArgumentError, "Missing the required parameter 'target_create_open_ai' when calling V2Api.target_create_open_ai"
|
29051
|
+
end
|
29052
|
+
# resource path
|
29053
|
+
local_var_path = '/target-create-openai'
|
29054
|
+
|
29055
|
+
# query parameters
|
29056
|
+
query_params = opts[:query_params] || {}
|
29057
|
+
|
29058
|
+
# header parameters
|
29059
|
+
header_params = opts[:header_params] || {}
|
29060
|
+
# HTTP header 'Accept' (if needed)
|
29061
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
29062
|
+
# HTTP header 'Content-Type'
|
29063
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
29064
|
+
if !content_type.nil?
|
29065
|
+
header_params['Content-Type'] = content_type
|
29066
|
+
end
|
29067
|
+
|
29068
|
+
# form parameters
|
29069
|
+
form_params = opts[:form_params] || {}
|
29070
|
+
|
29071
|
+
# http body (model)
|
29072
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(target_create_open_ai)
|
29073
|
+
|
29074
|
+
# return_type
|
29075
|
+
return_type = opts[:debug_return_type] || 'TargetCreateOutput'
|
29076
|
+
|
29077
|
+
# auth_names
|
29078
|
+
auth_names = opts[:debug_auth_names] || []
|
29079
|
+
|
29080
|
+
new_options = opts.merge(
|
29081
|
+
:operation => :"V2Api.target_create_open_ai",
|
29082
|
+
:header_params => header_params,
|
29083
|
+
:query_params => query_params,
|
29084
|
+
:form_params => form_params,
|
29085
|
+
:body => post_body,
|
29086
|
+
:auth_names => auth_names,
|
29087
|
+
:return_type => return_type
|
29088
|
+
)
|
29089
|
+
|
29090
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
29091
|
+
if @api_client.config.debugging
|
29092
|
+
@api_client.config.logger.debug "API called: V2Api#target_create_open_ai\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
29093
|
+
end
|
29094
|
+
return data, status_code, headers
|
29095
|
+
end
|
29096
|
+
|
28905
29097
|
# @param target_create_ping [TargetCreatePing]
|
28906
29098
|
# @param [Hash] opts the optional parameters
|
28907
29099
|
# @return [TargetCreateOutput]
|
@@ -30118,6 +30310,70 @@ module Akeyless
|
|
30118
30310
|
return data, status_code, headers
|
30119
30311
|
end
|
30120
30312
|
|
30313
|
+
# @param target_update_gemini [TargetUpdateGemini]
|
30314
|
+
# @param [Hash] opts the optional parameters
|
30315
|
+
# @return [TargetUpdateOutput]
|
30316
|
+
def target_update_gemini(target_update_gemini, opts = {})
|
30317
|
+
data, _status_code, _headers = target_update_gemini_with_http_info(target_update_gemini, opts)
|
30318
|
+
data
|
30319
|
+
end
|
30320
|
+
|
30321
|
+
# @param target_update_gemini [TargetUpdateGemini]
|
30322
|
+
# @param [Hash] opts the optional parameters
|
30323
|
+
# @return [Array<(TargetUpdateOutput, Integer, Hash)>] TargetUpdateOutput data, response status code and response headers
|
30324
|
+
def target_update_gemini_with_http_info(target_update_gemini, opts = {})
|
30325
|
+
if @api_client.config.debugging
|
30326
|
+
@api_client.config.logger.debug 'Calling API: V2Api.target_update_gemini ...'
|
30327
|
+
end
|
30328
|
+
# verify the required parameter 'target_update_gemini' is set
|
30329
|
+
if @api_client.config.client_side_validation && target_update_gemini.nil?
|
30330
|
+
fail ArgumentError, "Missing the required parameter 'target_update_gemini' when calling V2Api.target_update_gemini"
|
30331
|
+
end
|
30332
|
+
# resource path
|
30333
|
+
local_var_path = '/target-update-gemini'
|
30334
|
+
|
30335
|
+
# query parameters
|
30336
|
+
query_params = opts[:query_params] || {}
|
30337
|
+
|
30338
|
+
# header parameters
|
30339
|
+
header_params = opts[:header_params] || {}
|
30340
|
+
# HTTP header 'Accept' (if needed)
|
30341
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
30342
|
+
# HTTP header 'Content-Type'
|
30343
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
30344
|
+
if !content_type.nil?
|
30345
|
+
header_params['Content-Type'] = content_type
|
30346
|
+
end
|
30347
|
+
|
30348
|
+
# form parameters
|
30349
|
+
form_params = opts[:form_params] || {}
|
30350
|
+
|
30351
|
+
# http body (model)
|
30352
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(target_update_gemini)
|
30353
|
+
|
30354
|
+
# return_type
|
30355
|
+
return_type = opts[:debug_return_type] || 'TargetUpdateOutput'
|
30356
|
+
|
30357
|
+
# auth_names
|
30358
|
+
auth_names = opts[:debug_auth_names] || []
|
30359
|
+
|
30360
|
+
new_options = opts.merge(
|
30361
|
+
:operation => :"V2Api.target_update_gemini",
|
30362
|
+
:header_params => header_params,
|
30363
|
+
:query_params => query_params,
|
30364
|
+
:form_params => form_params,
|
30365
|
+
:body => post_body,
|
30366
|
+
:auth_names => auth_names,
|
30367
|
+
:return_type => return_type
|
30368
|
+
)
|
30369
|
+
|
30370
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
30371
|
+
if @api_client.config.debugging
|
30372
|
+
@api_client.config.logger.debug "API called: V2Api#target_update_gemini\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
30373
|
+
end
|
30374
|
+
return data, status_code, headers
|
30375
|
+
end
|
30376
|
+
|
30121
30377
|
# @param target_update_github [TargetUpdateGithub]
|
30122
30378
|
# @param [Hash] opts the optional parameters
|
30123
30379
|
# @return [TargetUpdateOutput]
|
@@ -30758,6 +31014,70 @@ module Akeyless
|
|
30758
31014
|
return data, status_code, headers
|
30759
31015
|
end
|
30760
31016
|
|
31017
|
+
# @param target_update_open_ai [TargetUpdateOpenAI]
|
31018
|
+
# @param [Hash] opts the optional parameters
|
31019
|
+
# @return [TargetUpdateOutput]
|
31020
|
+
def target_update_open_ai(target_update_open_ai, opts = {})
|
31021
|
+
data, _status_code, _headers = target_update_open_ai_with_http_info(target_update_open_ai, opts)
|
31022
|
+
data
|
31023
|
+
end
|
31024
|
+
|
31025
|
+
# @param target_update_open_ai [TargetUpdateOpenAI]
|
31026
|
+
# @param [Hash] opts the optional parameters
|
31027
|
+
# @return [Array<(TargetUpdateOutput, Integer, Hash)>] TargetUpdateOutput data, response status code and response headers
|
31028
|
+
def target_update_open_ai_with_http_info(target_update_open_ai, opts = {})
|
31029
|
+
if @api_client.config.debugging
|
31030
|
+
@api_client.config.logger.debug 'Calling API: V2Api.target_update_open_ai ...'
|
31031
|
+
end
|
31032
|
+
# verify the required parameter 'target_update_open_ai' is set
|
31033
|
+
if @api_client.config.client_side_validation && target_update_open_ai.nil?
|
31034
|
+
fail ArgumentError, "Missing the required parameter 'target_update_open_ai' when calling V2Api.target_update_open_ai"
|
31035
|
+
end
|
31036
|
+
# resource path
|
31037
|
+
local_var_path = '/target-update-openai'
|
31038
|
+
|
31039
|
+
# query parameters
|
31040
|
+
query_params = opts[:query_params] || {}
|
31041
|
+
|
31042
|
+
# header parameters
|
31043
|
+
header_params = opts[:header_params] || {}
|
31044
|
+
# HTTP header 'Accept' (if needed)
|
31045
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
31046
|
+
# HTTP header 'Content-Type'
|
31047
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
31048
|
+
if !content_type.nil?
|
31049
|
+
header_params['Content-Type'] = content_type
|
31050
|
+
end
|
31051
|
+
|
31052
|
+
# form parameters
|
31053
|
+
form_params = opts[:form_params] || {}
|
31054
|
+
|
31055
|
+
# http body (model)
|
31056
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(target_update_open_ai)
|
31057
|
+
|
31058
|
+
# return_type
|
31059
|
+
return_type = opts[:debug_return_type] || 'TargetUpdateOutput'
|
31060
|
+
|
31061
|
+
# auth_names
|
31062
|
+
auth_names = opts[:debug_auth_names] || []
|
31063
|
+
|
31064
|
+
new_options = opts.merge(
|
31065
|
+
:operation => :"V2Api.target_update_open_ai",
|
31066
|
+
:header_params => header_params,
|
31067
|
+
:query_params => query_params,
|
31068
|
+
:form_params => form_params,
|
31069
|
+
:body => post_body,
|
31070
|
+
:auth_names => auth_names,
|
31071
|
+
:return_type => return_type
|
31072
|
+
)
|
31073
|
+
|
31074
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
31075
|
+
if @api_client.config.debugging
|
31076
|
+
@api_client.config.logger.debug "API called: V2Api#target_update_open_ai\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
31077
|
+
end
|
31078
|
+
return data, status_code, headers
|
31079
|
+
end
|
31080
|
+
|
30761
31081
|
# @param target_update_ping [TargetUpdatePing]
|
30762
31082
|
# @param [Hash] opts the optional parameters
|
30763
31083
|
# @return [TargetUpdateOutput]
|
data/lib/akeyless/models/auth.rb
CHANGED
@@ -33,6 +33,9 @@ module Akeyless
|
|
33
33
|
# Password (relevant only for access-type=password)
|
34
34
|
attr_accessor :admin_password
|
35
35
|
|
36
|
+
# Certificate challenge encoded in base64. (relevant only for access-type=cert)
|
37
|
+
attr_accessor :cert_challenge
|
38
|
+
|
36
39
|
# Certificate data encoded in base64. Used if file was not provided. (relevant only for access-type=cert)
|
37
40
|
attr_accessor :cert_data
|
38
41
|
|
@@ -91,6 +94,9 @@ module Akeyless
|
|
91
94
|
|
92
95
|
attr_accessor :otp
|
93
96
|
|
97
|
+
# Signed certificate challenge encoded in base64. (relevant only for access-type=cert)
|
98
|
+
attr_accessor :signed_cert_challenge
|
99
|
+
|
94
100
|
# The universal_identity token (relevant only for access-type=universal_identity)
|
95
101
|
attr_accessor :uid_token
|
96
102
|
|
@@ -109,6 +115,7 @@ module Akeyless
|
|
109
115
|
:'account_id' => :'account-id',
|
110
116
|
:'admin_email' => :'admin-email',
|
111
117
|
:'admin_password' => :'admin-password',
|
118
|
+
:'cert_challenge' => :'cert-challenge',
|
112
119
|
:'cert_data' => :'cert-data',
|
113
120
|
:'cloud_id' => :'cloud-id',
|
114
121
|
:'debug' => :'debug',
|
@@ -129,6 +136,7 @@ module Akeyless
|
|
129
136
|
:'oci_auth_type' => :'oci-auth-type',
|
130
137
|
:'oci_group_ocid' => :'oci-group-ocid',
|
131
138
|
:'otp' => :'otp',
|
139
|
+
:'signed_cert_challenge' => :'signed-cert-challenge',
|
132
140
|
:'uid_token' => :'uid-token',
|
133
141
|
:'use_remote_browser' => :'use-remote-browser',
|
134
142
|
:'username' => :'username'
|
@@ -149,6 +157,7 @@ module Akeyless
|
|
149
157
|
:'account_id' => :'String',
|
150
158
|
:'admin_email' => :'String',
|
151
159
|
:'admin_password' => :'String',
|
160
|
+
:'cert_challenge' => :'String',
|
152
161
|
:'cert_data' => :'String',
|
153
162
|
:'cloud_id' => :'String',
|
154
163
|
:'debug' => :'Boolean',
|
@@ -169,6 +178,7 @@ module Akeyless
|
|
169
178
|
:'oci_auth_type' => :'String',
|
170
179
|
:'oci_group_ocid' => :'Array<String>',
|
171
180
|
:'otp' => :'String',
|
181
|
+
:'signed_cert_challenge' => :'String',
|
172
182
|
:'uid_token' => :'String',
|
173
183
|
:'use_remote_browser' => :'Boolean',
|
174
184
|
:'username' => :'String'
|
@@ -222,6 +232,10 @@ module Akeyless
|
|
222
232
|
self.admin_password = attributes[:'admin_password']
|
223
233
|
end
|
224
234
|
|
235
|
+
if attributes.key?(:'cert_challenge')
|
236
|
+
self.cert_challenge = attributes[:'cert_challenge']
|
237
|
+
end
|
238
|
+
|
225
239
|
if attributes.key?(:'cert_data')
|
226
240
|
self.cert_data = attributes[:'cert_data']
|
227
241
|
end
|
@@ -310,6 +324,10 @@ module Akeyless
|
|
310
324
|
self.otp = attributes[:'otp']
|
311
325
|
end
|
312
326
|
|
327
|
+
if attributes.key?(:'signed_cert_challenge')
|
328
|
+
self.signed_cert_challenge = attributes[:'signed_cert_challenge']
|
329
|
+
end
|
330
|
+
|
313
331
|
if attributes.key?(:'uid_token')
|
314
332
|
self.uid_token = attributes[:'uid_token']
|
315
333
|
end
|
@@ -349,6 +367,7 @@ module Akeyless
|
|
349
367
|
account_id == o.account_id &&
|
350
368
|
admin_email == o.admin_email &&
|
351
369
|
admin_password == o.admin_password &&
|
370
|
+
cert_challenge == o.cert_challenge &&
|
352
371
|
cert_data == o.cert_data &&
|
353
372
|
cloud_id == o.cloud_id &&
|
354
373
|
debug == o.debug &&
|
@@ -369,6 +388,7 @@ module Akeyless
|
|
369
388
|
oci_auth_type == o.oci_auth_type &&
|
370
389
|
oci_group_ocid == o.oci_group_ocid &&
|
371
390
|
otp == o.otp &&
|
391
|
+
signed_cert_challenge == o.signed_cert_challenge &&
|
372
392
|
uid_token == o.uid_token &&
|
373
393
|
use_remote_browser == o.use_remote_browser &&
|
374
394
|
username == o.username
|
@@ -383,7 +403,7 @@ module Akeyless
|
|
383
403
|
# Calculates hash code according to all attributes.
|
384
404
|
# @return [Integer] Hash code
|
385
405
|
def hash
|
386
|
-
[access_id, access_key, access_type, account_id, admin_email, admin_password, cert_data, cloud_id, debug, disable_pafxfast, gateway_spn, gateway_url, gcp_audience, json, jwt, k8s_auth_config_name, k8s_service_account_token, kerberos_token, kerberos_username, key_data, keytab_data, krb5_conf_data, ldap_password, oci_auth_type, oci_group_ocid, otp, uid_token, use_remote_browser, username].hash
|
406
|
+
[access_id, access_key, access_type, account_id, admin_email, admin_password, cert_challenge, cert_data, cloud_id, debug, disable_pafxfast, gateway_spn, gateway_url, gcp_audience, json, jwt, k8s_auth_config_name, k8s_service_account_token, kerberos_token, kerberos_username, key_data, keytab_data, krb5_conf_data, ldap_password, oci_auth_type, oci_group_ocid, otp, signed_cert_challenge, uid_token, use_remote_browser, username].hash
|
387
407
|
end
|
388
408
|
|
389
409
|
# Builds the object from hash
|
@@ -19,6 +19,8 @@ module Akeyless
|
|
19
19
|
|
20
20
|
attr_accessor :creds
|
21
21
|
|
22
|
+
attr_accessor :expiration
|
23
|
+
|
22
24
|
attr_accessor :token
|
23
25
|
|
24
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -26,6 +28,7 @@ module Akeyless
|
|
26
28
|
{
|
27
29
|
:'complete_auth_link' => :'complete_auth_link',
|
28
30
|
:'creds' => :'creds',
|
31
|
+
:'expiration' => :'expiration',
|
29
32
|
:'token' => :'token'
|
30
33
|
}
|
31
34
|
end
|
@@ -40,6 +43,7 @@ module Akeyless
|
|
40
43
|
{
|
41
44
|
:'complete_auth_link' => :'String',
|
42
45
|
:'creds' => :'SystemAccessCredentialsReplyObj',
|
46
|
+
:'expiration' => :'String',
|
43
47
|
:'token' => :'String'
|
44
48
|
}
|
45
49
|
end
|
@@ -73,6 +77,10 @@ module Akeyless
|
|
73
77
|
self.creds = attributes[:'creds']
|
74
78
|
end
|
75
79
|
|
80
|
+
if attributes.key?(:'expiration')
|
81
|
+
self.expiration = attributes[:'expiration']
|
82
|
+
end
|
83
|
+
|
76
84
|
if attributes.key?(:'token')
|
77
85
|
self.token = attributes[:'token']
|
78
86
|
end
|
@@ -100,6 +108,7 @@ module Akeyless
|
|
100
108
|
self.class == o.class &&
|
101
109
|
complete_auth_link == o.complete_auth_link &&
|
102
110
|
creds == o.creds &&
|
111
|
+
expiration == o.expiration &&
|
103
112
|
token == o.token
|
104
113
|
end
|
105
114
|
|
@@ -112,7 +121,7 @@ module Akeyless
|
|
112
121
|
# Calculates hash code according to all attributes.
|
113
122
|
# @return [Integer] Hash code
|
114
123
|
def hash
|
115
|
-
[complete_auth_link, creds, token].hash
|
124
|
+
[complete_auth_link, creds, expiration, token].hash
|
116
125
|
end
|
117
126
|
|
118
127
|
# Builds the object from hash
|
@@ -15,6 +15,8 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Akeyless
|
17
17
|
class AzureLogAnalyticsForwardingConfig
|
18
|
+
attr_accessor :azure_enable_batch
|
19
|
+
|
18
20
|
attr_accessor :azure_workspace_id
|
19
21
|
|
20
22
|
attr_accessor :azure_workspace_key
|
@@ -22,6 +24,7 @@ module Akeyless
|
|
22
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
25
|
def self.attribute_map
|
24
26
|
{
|
27
|
+
:'azure_enable_batch' => :'azure_enable_batch',
|
25
28
|
:'azure_workspace_id' => :'azure_workspace_id',
|
26
29
|
:'azure_workspace_key' => :'azure_workspace_key'
|
27
30
|
}
|
@@ -35,6 +38,7 @@ module Akeyless
|
|
35
38
|
# Attribute type mapping.
|
36
39
|
def self.openapi_types
|
37
40
|
{
|
41
|
+
:'azure_enable_batch' => :'String',
|
38
42
|
:'azure_workspace_id' => :'String',
|
39
43
|
:'azure_workspace_key' => :'String'
|
40
44
|
}
|
@@ -61,6 +65,10 @@ module Akeyless
|
|
61
65
|
h[k.to_sym] = v
|
62
66
|
}
|
63
67
|
|
68
|
+
if attributes.key?(:'azure_enable_batch')
|
69
|
+
self.azure_enable_batch = attributes[:'azure_enable_batch']
|
70
|
+
end
|
71
|
+
|
64
72
|
if attributes.key?(:'azure_workspace_id')
|
65
73
|
self.azure_workspace_id = attributes[:'azure_workspace_id']
|
66
74
|
end
|
@@ -90,6 +98,7 @@ module Akeyless
|
|
90
98
|
def ==(o)
|
91
99
|
return true if self.equal?(o)
|
92
100
|
self.class == o.class &&
|
101
|
+
azure_enable_batch == o.azure_enable_batch &&
|
93
102
|
azure_workspace_id == o.azure_workspace_id &&
|
94
103
|
azure_workspace_key == o.azure_workspace_key
|
95
104
|
end
|
@@ -103,7 +112,7 @@ module Akeyless
|
|
103
112
|
# Calculates hash code according to all attributes.
|
104
113
|
# @return [Integer] Hash code
|
105
114
|
def hash
|
106
|
-
[azure_workspace_id, azure_workspace_key].hash
|
115
|
+
[azure_enable_batch, azure_workspace_id, azure_workspace_key].hash
|
107
116
|
end
|
108
117
|
|
109
118
|
# Builds the object from hash
|
@@ -23,6 +23,8 @@ module Akeyless
|
|
23
23
|
|
24
24
|
attr_accessor :digest_algo
|
25
25
|
|
26
|
+
attr_accessor :hash_algorithm
|
27
|
+
|
26
28
|
attr_accessor :locality
|
27
29
|
|
28
30
|
attr_accessor :organization
|
@@ -40,6 +42,7 @@ module Akeyless
|
|
40
42
|
:'country' => :'country',
|
41
43
|
:'csr_cnf_base_64' => :'csr_cnf_base_64',
|
42
44
|
:'digest_algo' => :'digest_algo',
|
45
|
+
:'hash_algorithm' => :'hash_algorithm',
|
43
46
|
:'locality' => :'locality',
|
44
47
|
:'organization' => :'organization',
|
45
48
|
:'province' => :'province',
|
@@ -60,6 +63,7 @@ module Akeyless
|
|
60
63
|
:'country' => :'String',
|
61
64
|
:'csr_cnf_base_64' => :'String',
|
62
65
|
:'digest_algo' => :'String',
|
66
|
+
:'hash_algorithm' => :'String',
|
63
67
|
:'locality' => :'String',
|
64
68
|
:'organization' => :'String',
|
65
69
|
:'province' => :'String',
|
@@ -105,6 +109,10 @@ module Akeyless
|
|
105
109
|
self.digest_algo = attributes[:'digest_algo']
|
106
110
|
end
|
107
111
|
|
112
|
+
if attributes.key?(:'hash_algorithm')
|
113
|
+
self.hash_algorithm = attributes[:'hash_algorithm']
|
114
|
+
end
|
115
|
+
|
108
116
|
if attributes.key?(:'locality')
|
109
117
|
self.locality = attributes[:'locality']
|
110
118
|
end
|
@@ -150,6 +158,7 @@ module Akeyless
|
|
150
158
|
country == o.country &&
|
151
159
|
csr_cnf_base_64 == o.csr_cnf_base_64 &&
|
152
160
|
digest_algo == o.digest_algo &&
|
161
|
+
hash_algorithm == o.hash_algorithm &&
|
153
162
|
locality == o.locality &&
|
154
163
|
organization == o.organization &&
|
155
164
|
province == o.province &&
|
@@ -166,7 +175,7 @@ module Akeyless
|
|
166
175
|
# Calculates hash code according to all attributes.
|
167
176
|
# @return [Integer] Hash code
|
168
177
|
def hash
|
169
|
-
[common_name, country, csr_cnf_base_64, digest_algo, locality, organization, province, self_signed_enabled, ttl].hash
|
178
|
+
[common_name, country, csr_cnf_base_64, digest_algo, hash_algorithm, locality, organization, province, self_signed_enabled, ttl].hash
|
170
179
|
end
|
171
180
|
|
172
181
|
# Builds the object from hash
|
@@ -31,7 +31,7 @@ module Akeyless
|
|
31
31
|
# Country name for the generated certificate. Relevant only for generate-self-signed-certificate.
|
32
32
|
attr_accessor :certificate_country
|
33
33
|
|
34
|
-
# Digest algorithm to be used for the certificate key signing.
|
34
|
+
# Digest algorithm to be used for the certificate key signing.
|
35
35
|
attr_accessor :certificate_digest_algo
|
36
36
|
|
37
37
|
attr_accessor :certificate_format
|
@@ -66,6 +66,9 @@ module Akeyless
|
|
66
66
|
# gpg alg: Relevant only if GPG key type selected; options: [RSA1024, RSA2048, RSA3072, RSA4096, Ed25519]
|
67
67
|
attr_accessor :gpg_alg
|
68
68
|
|
69
|
+
# Specifies the hash algorithm used for the encryption key's operations, available options: [SHA256, SHA384, SHA512]
|
70
|
+
attr_accessor :hash_algorithm
|
71
|
+
|
69
72
|
# Set output format to JSON
|
70
73
|
attr_accessor :json
|
71
74
|
|
@@ -116,6 +119,7 @@ module Akeyless
|
|
116
119
|
:'expiration_event_in' => :'expiration-event-in',
|
117
120
|
:'generate_self_signed_certificate' => :'generate-self-signed-certificate',
|
118
121
|
:'gpg_alg' => :'gpg-alg',
|
122
|
+
:'hash_algorithm' => :'hash-algorithm',
|
119
123
|
:'json' => :'json',
|
120
124
|
:'key_data' => :'key-data',
|
121
125
|
:'metadata' => :'metadata',
|
@@ -154,6 +158,7 @@ module Akeyless
|
|
154
158
|
:'expiration_event_in' => :'Array<String>',
|
155
159
|
:'generate_self_signed_certificate' => :'Boolean',
|
156
160
|
:'gpg_alg' => :'String',
|
161
|
+
:'hash_algorithm' => :'String',
|
157
162
|
:'json' => :'Boolean',
|
158
163
|
:'key_data' => :'String',
|
159
164
|
:'metadata' => :'String',
|
@@ -260,6 +265,12 @@ module Akeyless
|
|
260
265
|
self.gpg_alg = attributes[:'gpg_alg']
|
261
266
|
end
|
262
267
|
|
268
|
+
if attributes.key?(:'hash_algorithm')
|
269
|
+
self.hash_algorithm = attributes[:'hash_algorithm']
|
270
|
+
else
|
271
|
+
self.hash_algorithm = 'SHA256'
|
272
|
+
end
|
273
|
+
|
263
274
|
if attributes.key?(:'json')
|
264
275
|
self.json = attributes[:'json']
|
265
276
|
else
|
@@ -356,6 +367,7 @@ module Akeyless
|
|
356
367
|
expiration_event_in == o.expiration_event_in &&
|
357
368
|
generate_self_signed_certificate == o.generate_self_signed_certificate &&
|
358
369
|
gpg_alg == o.gpg_alg &&
|
370
|
+
hash_algorithm == o.hash_algorithm &&
|
359
371
|
json == o.json &&
|
360
372
|
key_data == o.key_data &&
|
361
373
|
metadata == o.metadata &&
|
@@ -377,7 +389,7 @@ module Akeyless
|
|
377
389
|
# Calculates hash code according to all attributes.
|
378
390
|
# @return [Integer] Hash code
|
379
391
|
def hash
|
380
|
-
[alg, auto_rotate, cert_file_data, certificate_common_name, certificate_country, certificate_digest_algo, certificate_format, certificate_locality, certificate_organization, certificate_province, certificate_ttl, conf_file_data, delete_protection, description, expiration_event_in, generate_self_signed_certificate, gpg_alg, json, key_data, metadata, name, protection_key_name, rotation_event_in, rotation_interval, tags, token, uid_token].hash
|
392
|
+
[alg, auto_rotate, cert_file_data, certificate_common_name, certificate_country, certificate_digest_algo, certificate_format, certificate_locality, certificate_organization, certificate_province, certificate_ttl, conf_file_data, delete_protection, description, expiration_event_in, generate_self_signed_certificate, gpg_alg, hash_algorithm, json, key_data, metadata, name, protection_key_name, rotation_event_in, rotation_interval, tags, token, uid_token].hash
|
381
393
|
end
|
382
394
|
|
383
395
|
# Builds the object from hash
|