akeyless 0.0.2.pre.rc2 → 2.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +27 -9
- data/akeyless.gemspec +1 -1
- data/docs/Auth.md +5 -1
- data/docs/AuthMethodAccessInfo.md +2 -0
- data/docs/CertAccessRules.md +34 -0
- data/docs/ConfigHash.md +2 -0
- data/docs/CreateAuthMethodCert.md +48 -0
- data/docs/CreateAuthMethodCertOutput.md +18 -0
- data/docs/CreateAuthMethodLDAP.md +3 -1
- data/docs/CreateAuthMethodOIDC.md +4 -0
- data/docs/CreateClassicKey.md +5 -1
- data/docs/DSProducerDetails.md +4 -0
- data/docs/GatewayCreateProducerCustom.md +4 -0
- data/docs/GatewayCreateProducerHanaDb.md +54 -0
- data/docs/GatewayCreateProducerHanaDbOutput.md +18 -0
- data/docs/GatewayCreateProducerMongo.md +1 -1
- data/docs/GatewayCreateProducerOracleDb.md +8 -0
- data/docs/GatewayMessageQueueInfo.md +1 -3
- data/docs/GatewayUpdateProducerCustom.md +4 -0
- data/docs/GatewayUpdateProducerHanaDb.md +56 -0
- data/docs/GatewayUpdateProducerHanaDbOutput.md +18 -0
- data/docs/GatewayUpdateProducerMongo.md +1 -1
- data/docs/GatewayUpdateProducerOracleDb.md +8 -0
- data/docs/KMIPClient.md +2 -0
- data/docs/KMIPConfigPart.md +5 -1
- data/docs/KMIPServer.md +30 -0
- data/docs/KmipDeleteServer.md +20 -0
- data/docs/KmipDescribeServerOutput.md +4 -0
- data/docs/KmipMoveServer.md +22 -0
- data/docs/KmipMoveServerOutput.md +20 -0
- data/docs/ListAuthMethods.md +4 -0
- data/docs/ListRoles.md +2 -0
- data/docs/ListTargets.md +2 -0
- data/docs/OIDCAccessRules.md +4 -0
- data/docs/TargetItemAssociation.md +2 -0
- data/docs/UpdateAuthMethodCert.md +50 -0
- data/docs/UpdateAuthMethodCertOutput.md +18 -0
- data/docs/UpdateAuthMethodLDAP.md +3 -1
- data/docs/UpdateAuthMethodOIDC.md +4 -0
- data/docs/UpdateDBTarget.md +4 -0
- data/docs/UpdateOutput.md +2 -0
- data/docs/V2Api.md +319 -0
- data/git_push.sh +0 -0
- data/lib/akeyless/api/v2_api.rb +312 -0
- data/lib/akeyless/api_client.rb +3 -7
- data/lib/akeyless/configuration.rb +2 -1
- data/lib/akeyless/models/auth.rb +22 -2
- data/lib/akeyless/models/auth_method_access_info.rb +10 -1
- data/lib/akeyless/models/cert_access_rules.rb +316 -0
- data/lib/akeyless/models/config_hash.rb +10 -1
- data/lib/akeyless/models/create_auth_method_cert.rb +401 -0
- data/lib/akeyless/models/create_auth_method_cert_output.rb +219 -0
- data/lib/akeyless/models/create_auth_method_ldap.rb +14 -4
- data/lib/akeyless/models/create_auth_method_oidc.rb +23 -1
- data/lib/akeyless/models/create_classic_key.rb +26 -4
- data/lib/akeyless/models/ds_producer_details.rb +19 -1
- data/lib/akeyless/models/gateway_create_producer_custom.rb +23 -1
- data/lib/akeyless/models/gateway_create_producer_hana_db.rb +411 -0
- data/lib/akeyless/models/gateway_create_producer_hana_db_output.rb +219 -0
- data/lib/akeyless/models/gateway_create_producer_mongo.rb +0 -2
- data/lib/akeyless/models/gateway_create_producer_oracle_db.rb +39 -1
- data/lib/akeyless/models/gateway_message_queue_info.rb +4 -13
- data/lib/akeyless/models/gateway_update_producer_custom.rb +23 -1
- data/lib/akeyless/models/gateway_update_producer_hana_db.rb +421 -0
- data/lib/akeyless/models/gateway_update_producer_hana_db_output.rb +219 -0
- data/lib/akeyless/models/gateway_update_producer_mongo.rb +0 -2
- data/lib/akeyless/models/gateway_update_producer_oracle_db.rb +39 -1
- data/lib/akeyless/models/kmip_client.rb +10 -1
- data/lib/akeyless/models/kmip_config_part.rb +23 -1
- data/lib/akeyless/models/kmip_delete_server.rb +231 -0
- data/lib/akeyless/models/kmip_describe_server_output.rb +19 -1
- data/lib/akeyless/models/kmip_move_server.rb +240 -0
- data/lib/akeyless/models/kmip_move_server_output.rb +228 -0
- data/lib/akeyless/models/kmip_server.rb +277 -0
- data/lib/akeyless/models/list_auth_methods.rb +23 -1
- data/lib/akeyless/models/list_roles.rb +11 -1
- data/lib/akeyless/models/list_targets.rb +11 -1
- data/lib/akeyless/models/oidc_access_rules.rb +23 -1
- data/lib/akeyless/models/target_item_association.rb +10 -1
- data/lib/akeyless/models/update_auth_method_cert.rb +411 -0
- data/lib/akeyless/models/update_auth_method_cert_output.rb +219 -0
- data/lib/akeyless/models/update_auth_method_ldap.rb +14 -4
- data/lib/akeyless/models/update_auth_method_oidc.rb +23 -1
- data/lib/akeyless/models/update_db_target.rb +21 -1
- data/lib/akeyless/models/update_output.rb +10 -1
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +13 -0
- data/spec/models/cert_access_rules_spec.rb +82 -0
- data/spec/models/create_auth_method_cert_output_spec.rb +34 -0
- data/spec/models/create_auth_method_cert_spec.rb +124 -0
- data/spec/models/gateway_create_producer_hana_db_output_spec.rb +34 -0
- data/spec/models/gateway_create_producer_hana_db_spec.rb +142 -0
- data/spec/models/gateway_update_producer_hana_db_output_spec.rb +34 -0
- data/spec/models/gateway_update_producer_hana_db_spec.rb +148 -0
- data/spec/models/kmip_delete_server_spec.rb +40 -0
- data/spec/models/kmip_move_server_output_spec.rb +40 -0
- data/spec/models/kmip_move_server_spec.rb +46 -0
- data/spec/models/kmip_server_spec.rb +58 -0
- data/spec/models/update_auth_method_cert_output_spec.rb +34 -0
- data/spec/models/update_auth_method_cert_spec.rb +130 -0
- metadata +508 -456
data/lib/akeyless/api/v2_api.rb
CHANGED
@@ -595,6 +595,70 @@ module Akeyless
|
|
595
595
|
return data, status_code, headers
|
596
596
|
end
|
597
597
|
|
598
|
+
# @param body [CreateAuthMethodCert]
|
599
|
+
# @param [Hash] opts the optional parameters
|
600
|
+
# @return [CreateAuthMethodCertOutput]
|
601
|
+
def create_auth_method_cert(body, opts = {})
|
602
|
+
data, _status_code, _headers = create_auth_method_cert_with_http_info(body, opts)
|
603
|
+
data
|
604
|
+
end
|
605
|
+
|
606
|
+
# @param body [CreateAuthMethodCert]
|
607
|
+
# @param [Hash] opts the optional parameters
|
608
|
+
# @return [Array<(CreateAuthMethodCertOutput, Integer, Hash)>] CreateAuthMethodCertOutput data, response status code and response headers
|
609
|
+
def create_auth_method_cert_with_http_info(body, opts = {})
|
610
|
+
if @api_client.config.debugging
|
611
|
+
@api_client.config.logger.debug 'Calling API: V2Api.create_auth_method_cert ...'
|
612
|
+
end
|
613
|
+
# verify the required parameter 'body' is set
|
614
|
+
if @api_client.config.client_side_validation && body.nil?
|
615
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.create_auth_method_cert"
|
616
|
+
end
|
617
|
+
# resource path
|
618
|
+
local_var_path = '/create-auth-method-cert'
|
619
|
+
|
620
|
+
# query parameters
|
621
|
+
query_params = opts[:query_params] || {}
|
622
|
+
|
623
|
+
# header parameters
|
624
|
+
header_params = opts[:header_params] || {}
|
625
|
+
# HTTP header 'Accept' (if needed)
|
626
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
627
|
+
# HTTP header 'Content-Type'
|
628
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
629
|
+
if !content_type.nil?
|
630
|
+
header_params['Content-Type'] = content_type
|
631
|
+
end
|
632
|
+
|
633
|
+
# form parameters
|
634
|
+
form_params = opts[:form_params] || {}
|
635
|
+
|
636
|
+
# http body (model)
|
637
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
638
|
+
|
639
|
+
# return_type
|
640
|
+
return_type = opts[:debug_return_type] || 'CreateAuthMethodCertOutput'
|
641
|
+
|
642
|
+
# auth_names
|
643
|
+
auth_names = opts[:debug_auth_names] || []
|
644
|
+
|
645
|
+
new_options = opts.merge(
|
646
|
+
:operation => :"V2Api.create_auth_method_cert",
|
647
|
+
:header_params => header_params,
|
648
|
+
:query_params => query_params,
|
649
|
+
:form_params => form_params,
|
650
|
+
:body => post_body,
|
651
|
+
:auth_names => auth_names,
|
652
|
+
:return_type => return_type
|
653
|
+
)
|
654
|
+
|
655
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
656
|
+
if @api_client.config.debugging
|
657
|
+
@api_client.config.logger.debug "API called: V2Api#create_auth_method_cert\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
658
|
+
end
|
659
|
+
return data, status_code, headers
|
660
|
+
end
|
661
|
+
|
598
662
|
# @param body [CreateAuthMethodGCP]
|
599
663
|
# @param [Hash] opts the optional parameters
|
600
664
|
# @return [CreateAuthMethodGCPOutput]
|
@@ -4495,6 +4559,70 @@ module Akeyless
|
|
4495
4559
|
return data, status_code, headers
|
4496
4560
|
end
|
4497
4561
|
|
4562
|
+
# @param body [GatewayCreateProducerHanaDb]
|
4563
|
+
# @param [Hash] opts the optional parameters
|
4564
|
+
# @return [GatewayCreateProducerHanaDbOutput]
|
4565
|
+
def gateway_create_producer_hana_db(body, opts = {})
|
4566
|
+
data, _status_code, _headers = gateway_create_producer_hana_db_with_http_info(body, opts)
|
4567
|
+
data
|
4568
|
+
end
|
4569
|
+
|
4570
|
+
# @param body [GatewayCreateProducerHanaDb]
|
4571
|
+
# @param [Hash] opts the optional parameters
|
4572
|
+
# @return [Array<(GatewayCreateProducerHanaDbOutput, Integer, Hash)>] GatewayCreateProducerHanaDbOutput data, response status code and response headers
|
4573
|
+
def gateway_create_producer_hana_db_with_http_info(body, opts = {})
|
4574
|
+
if @api_client.config.debugging
|
4575
|
+
@api_client.config.logger.debug 'Calling API: V2Api.gateway_create_producer_hana_db ...'
|
4576
|
+
end
|
4577
|
+
# verify the required parameter 'body' is set
|
4578
|
+
if @api_client.config.client_side_validation && body.nil?
|
4579
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.gateway_create_producer_hana_db"
|
4580
|
+
end
|
4581
|
+
# resource path
|
4582
|
+
local_var_path = '/gateway-create-producer-hanadb'
|
4583
|
+
|
4584
|
+
# query parameters
|
4585
|
+
query_params = opts[:query_params] || {}
|
4586
|
+
|
4587
|
+
# header parameters
|
4588
|
+
header_params = opts[:header_params] || {}
|
4589
|
+
# HTTP header 'Accept' (if needed)
|
4590
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
4591
|
+
# HTTP header 'Content-Type'
|
4592
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
4593
|
+
if !content_type.nil?
|
4594
|
+
header_params['Content-Type'] = content_type
|
4595
|
+
end
|
4596
|
+
|
4597
|
+
# form parameters
|
4598
|
+
form_params = opts[:form_params] || {}
|
4599
|
+
|
4600
|
+
# http body (model)
|
4601
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
4602
|
+
|
4603
|
+
# return_type
|
4604
|
+
return_type = opts[:debug_return_type] || 'GatewayCreateProducerHanaDbOutput'
|
4605
|
+
|
4606
|
+
# auth_names
|
4607
|
+
auth_names = opts[:debug_auth_names] || []
|
4608
|
+
|
4609
|
+
new_options = opts.merge(
|
4610
|
+
:operation => :"V2Api.gateway_create_producer_hana_db",
|
4611
|
+
:header_params => header_params,
|
4612
|
+
:query_params => query_params,
|
4613
|
+
:form_params => form_params,
|
4614
|
+
:body => post_body,
|
4615
|
+
:auth_names => auth_names,
|
4616
|
+
:return_type => return_type
|
4617
|
+
)
|
4618
|
+
|
4619
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
4620
|
+
if @api_client.config.debugging
|
4621
|
+
@api_client.config.logger.debug "API called: V2Api#gateway_create_producer_hana_db\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
4622
|
+
end
|
4623
|
+
return data, status_code, headers
|
4624
|
+
end
|
4625
|
+
|
4498
4626
|
# @param body [GatewayCreateProducerLdap]
|
4499
4627
|
# @param [Hash] opts the optional parameters
|
4500
4628
|
# @return [GatewayCreateProducerLdapOutput]
|
@@ -8816,6 +8944,66 @@ module Akeyless
|
|
8816
8944
|
return data, status_code, headers
|
8817
8945
|
end
|
8818
8946
|
|
8947
|
+
# @param [Hash] opts the optional parameters
|
8948
|
+
# @option opts [KmipDeleteServer] :body
|
8949
|
+
# @return [Object]
|
8950
|
+
def kmip_delete_server(opts = {})
|
8951
|
+
data, _status_code, _headers = kmip_delete_server_with_http_info(opts)
|
8952
|
+
data
|
8953
|
+
end
|
8954
|
+
|
8955
|
+
# @param [Hash] opts the optional parameters
|
8956
|
+
# @option opts [KmipDeleteServer] :body
|
8957
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
8958
|
+
def kmip_delete_server_with_http_info(opts = {})
|
8959
|
+
if @api_client.config.debugging
|
8960
|
+
@api_client.config.logger.debug 'Calling API: V2Api.kmip_delete_server ...'
|
8961
|
+
end
|
8962
|
+
# resource path
|
8963
|
+
local_var_path = '/kmip-delete-environment'
|
8964
|
+
|
8965
|
+
# query parameters
|
8966
|
+
query_params = opts[:query_params] || {}
|
8967
|
+
|
8968
|
+
# header parameters
|
8969
|
+
header_params = opts[:header_params] || {}
|
8970
|
+
# HTTP header 'Accept' (if needed)
|
8971
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
8972
|
+
# HTTP header 'Content-Type'
|
8973
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
8974
|
+
if !content_type.nil?
|
8975
|
+
header_params['Content-Type'] = content_type
|
8976
|
+
end
|
8977
|
+
|
8978
|
+
# form parameters
|
8979
|
+
form_params = opts[:form_params] || {}
|
8980
|
+
|
8981
|
+
# http body (model)
|
8982
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
|
8983
|
+
|
8984
|
+
# return_type
|
8985
|
+
return_type = opts[:debug_return_type] || 'Object'
|
8986
|
+
|
8987
|
+
# auth_names
|
8988
|
+
auth_names = opts[:debug_auth_names] || []
|
8989
|
+
|
8990
|
+
new_options = opts.merge(
|
8991
|
+
:operation => :"V2Api.kmip_delete_server",
|
8992
|
+
:header_params => header_params,
|
8993
|
+
:query_params => query_params,
|
8994
|
+
:form_params => form_params,
|
8995
|
+
:body => post_body,
|
8996
|
+
:auth_names => auth_names,
|
8997
|
+
:return_type => return_type
|
8998
|
+
)
|
8999
|
+
|
9000
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
9001
|
+
if @api_client.config.debugging
|
9002
|
+
@api_client.config.logger.debug "API called: V2Api#kmip_delete_server\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
9003
|
+
end
|
9004
|
+
return data, status_code, headers
|
9005
|
+
end
|
9006
|
+
|
8819
9007
|
# @param [Hash] opts the optional parameters
|
8820
9008
|
# @option opts [KmipDescribeClient] :body
|
8821
9009
|
# @return [KMIPClientGetResponse]
|
@@ -8996,6 +9184,66 @@ module Akeyless
|
|
8996
9184
|
return data, status_code, headers
|
8997
9185
|
end
|
8998
9186
|
|
9187
|
+
# @param [Hash] opts the optional parameters
|
9188
|
+
# @option opts [KmipMoveServer] :body
|
9189
|
+
# @return [KmipMoveServerOutput]
|
9190
|
+
def kmip_move_server(opts = {})
|
9191
|
+
data, _status_code, _headers = kmip_move_server_with_http_info(opts)
|
9192
|
+
data
|
9193
|
+
end
|
9194
|
+
|
9195
|
+
# @param [Hash] opts the optional parameters
|
9196
|
+
# @option opts [KmipMoveServer] :body
|
9197
|
+
# @return [Array<(KmipMoveServerOutput, Integer, Hash)>] KmipMoveServerOutput data, response status code and response headers
|
9198
|
+
def kmip_move_server_with_http_info(opts = {})
|
9199
|
+
if @api_client.config.debugging
|
9200
|
+
@api_client.config.logger.debug 'Calling API: V2Api.kmip_move_server ...'
|
9201
|
+
end
|
9202
|
+
# resource path
|
9203
|
+
local_var_path = '/kmip-move-environment'
|
9204
|
+
|
9205
|
+
# query parameters
|
9206
|
+
query_params = opts[:query_params] || {}
|
9207
|
+
|
9208
|
+
# header parameters
|
9209
|
+
header_params = opts[:header_params] || {}
|
9210
|
+
# HTTP header 'Accept' (if needed)
|
9211
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
9212
|
+
# HTTP header 'Content-Type'
|
9213
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
9214
|
+
if !content_type.nil?
|
9215
|
+
header_params['Content-Type'] = content_type
|
9216
|
+
end
|
9217
|
+
|
9218
|
+
# form parameters
|
9219
|
+
form_params = opts[:form_params] || {}
|
9220
|
+
|
9221
|
+
# http body (model)
|
9222
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
|
9223
|
+
|
9224
|
+
# return_type
|
9225
|
+
return_type = opts[:debug_return_type] || 'KmipMoveServerOutput'
|
9226
|
+
|
9227
|
+
# auth_names
|
9228
|
+
auth_names = opts[:debug_auth_names] || []
|
9229
|
+
|
9230
|
+
new_options = opts.merge(
|
9231
|
+
:operation => :"V2Api.kmip_move_server",
|
9232
|
+
:header_params => header_params,
|
9233
|
+
:query_params => query_params,
|
9234
|
+
:form_params => form_params,
|
9235
|
+
:body => post_body,
|
9236
|
+
:auth_names => auth_names,
|
9237
|
+
:return_type => return_type
|
9238
|
+
)
|
9239
|
+
|
9240
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
9241
|
+
if @api_client.config.debugging
|
9242
|
+
@api_client.config.logger.debug "API called: V2Api#kmip_move_server\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
9243
|
+
end
|
9244
|
+
return data, status_code, headers
|
9245
|
+
end
|
9246
|
+
|
8999
9247
|
# @param [Hash] opts the optional parameters
|
9000
9248
|
# @option opts [KmipRenewClientCertificate] :body
|
9001
9249
|
# @return [KmipRenewClientCertificateOutput]
|
@@ -11013,6 +11261,70 @@ module Akeyless
|
|
11013
11261
|
return data, status_code, headers
|
11014
11262
|
end
|
11015
11263
|
|
11264
|
+
# @param body [UpdateAuthMethodCert]
|
11265
|
+
# @param [Hash] opts the optional parameters
|
11266
|
+
# @return [UpdateAuthMethodCertOutput]
|
11267
|
+
def update_auth_method_cert(body, opts = {})
|
11268
|
+
data, _status_code, _headers = update_auth_method_cert_with_http_info(body, opts)
|
11269
|
+
data
|
11270
|
+
end
|
11271
|
+
|
11272
|
+
# @param body [UpdateAuthMethodCert]
|
11273
|
+
# @param [Hash] opts the optional parameters
|
11274
|
+
# @return [Array<(UpdateAuthMethodCertOutput, Integer, Hash)>] UpdateAuthMethodCertOutput data, response status code and response headers
|
11275
|
+
def update_auth_method_cert_with_http_info(body, opts = {})
|
11276
|
+
if @api_client.config.debugging
|
11277
|
+
@api_client.config.logger.debug 'Calling API: V2Api.update_auth_method_cert ...'
|
11278
|
+
end
|
11279
|
+
# verify the required parameter 'body' is set
|
11280
|
+
if @api_client.config.client_side_validation && body.nil?
|
11281
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.update_auth_method_cert"
|
11282
|
+
end
|
11283
|
+
# resource path
|
11284
|
+
local_var_path = '/update-auth-method-cert'
|
11285
|
+
|
11286
|
+
# query parameters
|
11287
|
+
query_params = opts[:query_params] || {}
|
11288
|
+
|
11289
|
+
# header parameters
|
11290
|
+
header_params = opts[:header_params] || {}
|
11291
|
+
# HTTP header 'Accept' (if needed)
|
11292
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
11293
|
+
# HTTP header 'Content-Type'
|
11294
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
11295
|
+
if !content_type.nil?
|
11296
|
+
header_params['Content-Type'] = content_type
|
11297
|
+
end
|
11298
|
+
|
11299
|
+
# form parameters
|
11300
|
+
form_params = opts[:form_params] || {}
|
11301
|
+
|
11302
|
+
# http body (model)
|
11303
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
11304
|
+
|
11305
|
+
# return_type
|
11306
|
+
return_type = opts[:debug_return_type] || 'UpdateAuthMethodCertOutput'
|
11307
|
+
|
11308
|
+
# auth_names
|
11309
|
+
auth_names = opts[:debug_auth_names] || []
|
11310
|
+
|
11311
|
+
new_options = opts.merge(
|
11312
|
+
:operation => :"V2Api.update_auth_method_cert",
|
11313
|
+
:header_params => header_params,
|
11314
|
+
:query_params => query_params,
|
11315
|
+
:form_params => form_params,
|
11316
|
+
:body => post_body,
|
11317
|
+
:auth_names => auth_names,
|
11318
|
+
:return_type => return_type
|
11319
|
+
)
|
11320
|
+
|
11321
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
11322
|
+
if @api_client.config.debugging
|
11323
|
+
@api_client.config.logger.debug "API called: V2Api#update_auth_method_cert\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
11324
|
+
end
|
11325
|
+
return data, status_code, headers
|
11326
|
+
end
|
11327
|
+
|
11016
11328
|
# @param body [UpdateAuthMethodGCP]
|
11017
11329
|
# @param [Hash] opts the optional parameters
|
11018
11330
|
# @return [Object]
|
data/lib/akeyless/api_client.rb
CHANGED
@@ -93,6 +93,7 @@ module Akeyless
|
|
93
93
|
header_params = @default_headers.merge(opts[:header_params] || {})
|
94
94
|
query_params = opts[:query_params] || {}
|
95
95
|
form_params = opts[:form_params] || {}
|
96
|
+
follow_location = opts[:follow_location] || true
|
96
97
|
|
97
98
|
|
98
99
|
# set ssl_verifyhosts option based on @config.verify_ssl_host (true/false)
|
@@ -108,7 +109,8 @@ module Akeyless
|
|
108
109
|
:ssl_verifyhost => _verify_ssl_host,
|
109
110
|
:sslcert => @config.cert_file,
|
110
111
|
:sslkey => @config.key_file,
|
111
|
-
:verbose => @config.debugging
|
112
|
+
:verbose => @config.debugging,
|
113
|
+
:followlocation => follow_location
|
112
114
|
}
|
113
115
|
|
114
116
|
# set custom cert, if provided
|
@@ -216,12 +218,6 @@ module Akeyless
|
|
216
218
|
# note that response body is empty when the file is written in chunks in request on_body callback
|
217
219
|
return @tempfile if return_type == 'File'
|
218
220
|
|
219
|
-
# return byte stream for Binary return type
|
220
|
-
if return_type == 'Binary'
|
221
|
-
encoding = body.encoding
|
222
|
-
return @stream.join.force_encoding(encoding)
|
223
|
-
end
|
224
|
-
|
225
221
|
return nil if body.nil? || body.empty?
|
226
222
|
|
227
223
|
# return response body directly for String return type
|
@@ -133,6 +133,7 @@ module Akeyless
|
|
133
133
|
# https://github.com/typhoeus/ethon/blob/master/lib/ethon/easy/queryable.rb#L96
|
134
134
|
attr_accessor :params_encoding
|
135
135
|
|
136
|
+
|
136
137
|
attr_accessor :inject_format
|
137
138
|
|
138
139
|
attr_accessor :force_ending_format
|
@@ -150,10 +151,10 @@ module Akeyless
|
|
150
151
|
@client_side_validation = true
|
151
152
|
@verify_ssl = true
|
152
153
|
@verify_ssl_host = true
|
153
|
-
@params_encoding = nil
|
154
154
|
@cert_file = nil
|
155
155
|
@key_file = nil
|
156
156
|
@timeout = 0
|
157
|
+
@params_encoding = nil
|
157
158
|
@debugging = false
|
158
159
|
@inject_format = false
|
159
160
|
@force_ending_format = false
|
data/lib/akeyless/models/auth.rb
CHANGED
@@ -21,7 +21,7 @@ module Akeyless
|
|
21
21
|
# Access key (relevant only for access-type=access_key)
|
22
22
|
attr_accessor :access_key
|
23
23
|
|
24
|
-
# Access Type (access_key/password/saml/ldap/k8s/azure_ad/aws_iam/universal_identity/jwt/gcp/
|
24
|
+
# Access Type (access_key/password/saml/ldap/k8s/azure_ad/oidc/aws_iam/universal_identity/jwt/gcp/cert)
|
25
25
|
attr_accessor :access_type
|
26
26
|
|
27
27
|
# Email (relevant only for access-type=password)
|
@@ -30,6 +30,9 @@ module Akeyless
|
|
30
30
|
# Password (relevant only for access-type=password)
|
31
31
|
attr_accessor :admin_password
|
32
32
|
|
33
|
+
# Certificate data encoded in base64. Used if file was not provided. (relevant only for access-type=cert)
|
34
|
+
attr_accessor :cert_data
|
35
|
+
|
33
36
|
# The cloud identity (relevant only for access-type=azure_ad,aws_iam,gcp)
|
34
37
|
attr_accessor :cloud_id
|
35
38
|
|
@@ -47,6 +50,9 @@ module Akeyless
|
|
47
50
|
# The K8S service account token. (relevant only for access-type=k8s)
|
48
51
|
attr_accessor :k8s_service_account_token
|
49
52
|
|
53
|
+
# Private key data encoded in base64. Used if file was not provided.(relevant only for access-type=cert)
|
54
|
+
attr_accessor :key_data
|
55
|
+
|
50
56
|
# LDAP password (relevant only for access-type=ldap)
|
51
57
|
attr_accessor :ldap_password
|
52
58
|
|
@@ -64,12 +70,14 @@ module Akeyless
|
|
64
70
|
:'access_type' => :'access-type',
|
65
71
|
:'admin_email' => :'admin-email',
|
66
72
|
:'admin_password' => :'admin-password',
|
73
|
+
:'cert_data' => :'cert-data',
|
67
74
|
:'cloud_id' => :'cloud-id',
|
68
75
|
:'debug' => :'debug',
|
69
76
|
:'gcp_audience' => :'gcp-audience',
|
70
77
|
:'jwt' => :'jwt',
|
71
78
|
:'k8s_auth_config_name' => :'k8s-auth-config-name',
|
72
79
|
:'k8s_service_account_token' => :'k8s-service-account-token',
|
80
|
+
:'key_data' => :'key-data',
|
73
81
|
:'ldap_password' => :'ldap_password',
|
74
82
|
:'ldap_username' => :'ldap_username',
|
75
83
|
:'uid_token' => :'uid_token'
|
@@ -89,12 +97,14 @@ module Akeyless
|
|
89
97
|
:'access_type' => :'String',
|
90
98
|
:'admin_email' => :'String',
|
91
99
|
:'admin_password' => :'String',
|
100
|
+
:'cert_data' => :'String',
|
92
101
|
:'cloud_id' => :'String',
|
93
102
|
:'debug' => :'Boolean',
|
94
103
|
:'gcp_audience' => :'String',
|
95
104
|
:'jwt' => :'String',
|
96
105
|
:'k8s_auth_config_name' => :'String',
|
97
106
|
:'k8s_service_account_token' => :'String',
|
107
|
+
:'key_data' => :'String',
|
98
108
|
:'ldap_password' => :'String',
|
99
109
|
:'ldap_username' => :'String',
|
100
110
|
:'uid_token' => :'String'
|
@@ -144,6 +154,10 @@ module Akeyless
|
|
144
154
|
self.admin_password = attributes[:'admin_password']
|
145
155
|
end
|
146
156
|
|
157
|
+
if attributes.key?(:'cert_data')
|
158
|
+
self.cert_data = attributes[:'cert_data']
|
159
|
+
end
|
160
|
+
|
147
161
|
if attributes.key?(:'cloud_id')
|
148
162
|
self.cloud_id = attributes[:'cloud_id']
|
149
163
|
end
|
@@ -168,6 +182,10 @@ module Akeyless
|
|
168
182
|
self.k8s_service_account_token = attributes[:'k8s_service_account_token']
|
169
183
|
end
|
170
184
|
|
185
|
+
if attributes.key?(:'key_data')
|
186
|
+
self.key_data = attributes[:'key_data']
|
187
|
+
end
|
188
|
+
|
171
189
|
if attributes.key?(:'ldap_password')
|
172
190
|
self.ldap_password = attributes[:'ldap_password']
|
173
191
|
end
|
@@ -204,12 +222,14 @@ module Akeyless
|
|
204
222
|
access_type == o.access_type &&
|
205
223
|
admin_email == o.admin_email &&
|
206
224
|
admin_password == o.admin_password &&
|
225
|
+
cert_data == o.cert_data &&
|
207
226
|
cloud_id == o.cloud_id &&
|
208
227
|
debug == o.debug &&
|
209
228
|
gcp_audience == o.gcp_audience &&
|
210
229
|
jwt == o.jwt &&
|
211
230
|
k8s_auth_config_name == o.k8s_auth_config_name &&
|
212
231
|
k8s_service_account_token == o.k8s_service_account_token &&
|
232
|
+
key_data == o.key_data &&
|
213
233
|
ldap_password == o.ldap_password &&
|
214
234
|
ldap_username == o.ldap_username &&
|
215
235
|
uid_token == o.uid_token
|
@@ -224,7 +244,7 @@ module Akeyless
|
|
224
244
|
# Calculates hash code according to all attributes.
|
225
245
|
# @return [Integer] Hash code
|
226
246
|
def hash
|
227
|
-
[access_id, access_key, access_type, admin_email, admin_password, cloud_id, debug, gcp_audience, jwt, k8s_auth_config_name, k8s_service_account_token, ldap_password, ldap_username, uid_token].hash
|
247
|
+
[access_id, access_key, access_type, admin_email, admin_password, cert_data, cloud_id, debug, gcp_audience, jwt, k8s_auth_config_name, k8s_service_account_token, key_data, ldap_password, ldap_username, uid_token].hash
|
228
248
|
end
|
229
249
|
|
230
250
|
# Builds the object from hash
|
@@ -26,6 +26,8 @@ module Akeyless
|
|
26
26
|
|
27
27
|
attr_accessor :azure_ad_access_rules
|
28
28
|
|
29
|
+
attr_accessor :cert_access_rules
|
30
|
+
|
29
31
|
attr_accessor :cidr_whitelist
|
30
32
|
|
31
33
|
attr_accessor :email_pass_access_rules
|
@@ -61,6 +63,7 @@ module Akeyless
|
|
61
63
|
:'api_key_access_rules' => :'api_key_access_rules',
|
62
64
|
:'aws_iam_access_rules' => :'aws_iam_access_rules',
|
63
65
|
:'azure_ad_access_rules' => :'azure_ad_access_rules',
|
66
|
+
:'cert_access_rules' => :'cert_access_rules',
|
64
67
|
:'cidr_whitelist' => :'cidr_whitelist',
|
65
68
|
:'email_pass_access_rules' => :'email_pass_access_rules',
|
66
69
|
:'force_sub_claims' => :'force_sub_claims',
|
@@ -90,6 +93,7 @@ module Akeyless
|
|
90
93
|
:'api_key_access_rules' => :'APIKeyAccessRules',
|
91
94
|
:'aws_iam_access_rules' => :'AWSIAMAccessRules',
|
92
95
|
:'azure_ad_access_rules' => :'AzureADAccessRules',
|
96
|
+
:'cert_access_rules' => :'CertAccessRules',
|
93
97
|
:'cidr_whitelist' => :'String',
|
94
98
|
:'email_pass_access_rules' => :'EmailPassAccessRules',
|
95
99
|
:'force_sub_claims' => :'Boolean',
|
@@ -147,6 +151,10 @@ module Akeyless
|
|
147
151
|
self.azure_ad_access_rules = attributes[:'azure_ad_access_rules']
|
148
152
|
end
|
149
153
|
|
154
|
+
if attributes.key?(:'cert_access_rules')
|
155
|
+
self.cert_access_rules = attributes[:'cert_access_rules']
|
156
|
+
end
|
157
|
+
|
150
158
|
if attributes.key?(:'cidr_whitelist')
|
151
159
|
self.cidr_whitelist = attributes[:'cidr_whitelist']
|
152
160
|
end
|
@@ -223,6 +231,7 @@ module Akeyless
|
|
223
231
|
api_key_access_rules == o.api_key_access_rules &&
|
224
232
|
aws_iam_access_rules == o.aws_iam_access_rules &&
|
225
233
|
azure_ad_access_rules == o.azure_ad_access_rules &&
|
234
|
+
cert_access_rules == o.cert_access_rules &&
|
226
235
|
cidr_whitelist == o.cidr_whitelist &&
|
227
236
|
email_pass_access_rules == o.email_pass_access_rules &&
|
228
237
|
force_sub_claims == o.force_sub_claims &&
|
@@ -247,7 +256,7 @@ module Akeyless
|
|
247
256
|
# Calculates hash code according to all attributes.
|
248
257
|
# @return [Integer] Hash code
|
249
258
|
def hash
|
250
|
-
[access_expires, access_id_alias, api_key_access_rules, aws_iam_access_rules, azure_ad_access_rules, cidr_whitelist, email_pass_access_rules, force_sub_claims, gcp_access_rules, huawei_access_rules, jwt_ttl, k8s_access_rules, ldap_access_rules, oauth2_access_rules, oidc_access_rules, rules_type, saml_access_rules, universal_identity_access_rules].hash
|
259
|
+
[access_expires, access_id_alias, api_key_access_rules, aws_iam_access_rules, azure_ad_access_rules, cert_access_rules, cidr_whitelist, email_pass_access_rules, force_sub_claims, gcp_access_rules, huawei_access_rules, jwt_ttl, k8s_access_rules, ldap_access_rules, oauth2_access_rules, oidc_access_rules, rules_type, saml_access_rules, universal_identity_access_rules].hash
|
251
260
|
end
|
252
261
|
|
253
262
|
# Builds the object from hash
|