akeyless 3.1.1 → 3.2.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 +23 -1
- data/docs/AssocTargetItem.md +2 -0
- data/docs/CreateCertificate.md +3 -1
- data/docs/CreateClassicKey.md +6 -2
- data/docs/CreateDBTarget.md +4 -0
- data/docs/CreateDFCKey.md +3 -1
- data/docs/CreateDynamicSecret.md +3 -1
- data/docs/CreateKey.md +3 -1
- data/docs/CreatePKICertIssuer.md +3 -1
- data/docs/CreatePingTarget.md +38 -0
- data/docs/CreatePingTargetOutput.md +18 -0
- data/docs/CreateRotatedSecret.md +5 -1
- data/docs/CreateSSHCertIssuer.md +3 -1
- data/docs/CreateSecret.md +3 -1
- data/docs/CreateTokenizer.md +3 -1
- data/docs/DSProducerDetails.md +48 -0
- data/docs/DecryptGPG.md +34 -0
- data/docs/DecryptGPGOutput.md +18 -0
- data/docs/EncryptGPG.md +32 -0
- data/docs/EncryptGPGOutput.md +18 -0
- data/docs/GatewayCreateProducerPing.md +66 -0
- data/docs/GatewayCreateProducerPingOutput.md +18 -0
- data/docs/GatewayCreateProducerSnowflake.md +4 -0
- data/docs/GatewayUpdateItem.md +3 -1
- data/docs/GatewayUpdateProducerPing.md +68 -0
- data/docs/GatewayUpdateProducerPingOutput.md +18 -0
- data/docs/GatewayUpdateProducerSnowflake.md +4 -0
- data/docs/GenCustomerFragment.md +4 -2
- data/docs/GetKubeExecCreds.md +5 -3
- data/docs/GetPKICertificate.md +5 -3
- data/docs/SecureRemoteAccess.md +2 -0
- data/docs/SignGPG.md +32 -0
- data/docs/SignGPGOutput.md +18 -0
- data/docs/TargetTypeDetailsInput.md +14 -0
- data/docs/UpdateDBTarget.md +4 -0
- data/docs/UpdateItem.md +3 -1
- data/docs/UpdatePKICertIssuer.md +3 -1
- data/docs/UpdatePingTarget.md +44 -0
- data/docs/UpdateRotatedSecret.md +5 -1
- data/docs/UpdateSSHCertIssuer.md +3 -1
- data/docs/UploadPKCS12.md +3 -1
- data/docs/UploadRSA.md +3 -1
- data/docs/V2Api.md +504 -0
- data/docs/VerifyGPG.md +32 -0
- data/lib/akeyless/api/v2_api.rb +512 -0
- data/lib/akeyless/models/assoc_target_item.rb +11 -1
- data/lib/akeyless/models/create_certificate.rb +12 -2
- data/lib/akeyless/models/create_classic_key.rb +23 -3
- data/lib/akeyless/models/create_db_target.rb +21 -1
- data/lib/akeyless/models/create_dfc_key.rb +12 -2
- data/lib/akeyless/models/create_dynamic_secret.rb +12 -4
- data/lib/akeyless/models/create_key.rb +12 -2
- data/lib/akeyless/models/create_ping_target.rb +329 -0
- data/lib/akeyless/models/create_ping_target_output.rb +219 -0
- data/lib/akeyless/models/create_pki_cert_issuer.rb +12 -2
- data/lib/akeyless/models/create_rotated_secret.rb +24 -2
- data/lib/akeyless/models/create_secret.rb +12 -2
- data/lib/akeyless/models/create_ssh_cert_issuer.rb +12 -2
- data/lib/akeyless/models/create_tokenizer.rb +12 -2
- data/lib/akeyless/models/decrypt_gpg.rb +310 -0
- data/lib/akeyless/models/decrypt_gpg_output.rb +219 -0
- data/lib/akeyless/models/ds_producer_details.rb +235 -1
- data/lib/akeyless/models/encrypt_gpg.rb +300 -0
- data/lib/akeyless/models/encrypt_gpg_output.rb +219 -0
- data/lib/akeyless/models/gateway_create_producer_ping.rb +482 -0
- data/lib/akeyless/models/gateway_create_producer_ping_output.rb +219 -0
- data/lib/akeyless/models/gateway_create_producer_snowflake.rb +22 -2
- data/lib/akeyless/models/gateway_update_item.rb +14 -2
- data/lib/akeyless/models/gateway_update_producer_ping.rb +492 -0
- data/lib/akeyless/models/gateway_update_producer_ping_output.rb +219 -0
- data/lib/akeyless/models/gateway_update_producer_snowflake.rb +22 -2
- data/lib/akeyless/models/gen_customer_fragment.rb +15 -5
- data/lib/akeyless/models/get_kube_exec_creds.rb +14 -4
- data/lib/akeyless/models/get_pki_certificate.rb +14 -4
- data/lib/akeyless/models/secure_remote_access.rb +10 -1
- data/lib/akeyless/models/sign_gpg.rb +300 -0
- data/lib/akeyless/models/sign_gpg_output.rb +219 -0
- data/lib/akeyless/models/target_type_details_input.rb +65 -1
- data/lib/akeyless/models/update_db_target.rb +21 -1
- data/lib/akeyless/models/update_item.rb +14 -2
- data/lib/akeyless/models/update_ping_target.rb +358 -0
- data/lib/akeyless/models/update_pki_cert_issuer.rb +12 -2
- data/lib/akeyless/models/update_rotated_secret.rb +26 -2
- data/lib/akeyless/models/update_ssh_cert_issuer.rb +12 -2
- data/lib/akeyless/models/upload_pkcs12.rb +12 -2
- data/lib/akeyless/models/upload_rsa.rb +12 -2
- data/lib/akeyless/models/verify_gpg.rb +300 -0
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +14 -0
- data/spec/models/create_ping_target_output_spec.rb +34 -0
- data/spec/models/create_ping_target_spec.rb +94 -0
- data/spec/models/decrypt_gpg_output_spec.rb +34 -0
- data/spec/models/decrypt_gpg_spec.rb +82 -0
- data/spec/models/encrypt_gpg_output_spec.rb +34 -0
- data/spec/models/encrypt_gpg_spec.rb +76 -0
- data/spec/models/gateway_create_producer_ping_output_spec.rb +34 -0
- data/spec/models/gateway_create_producer_ping_spec.rb +178 -0
- data/spec/models/gateway_update_producer_ping_output_spec.rb +34 -0
- data/spec/models/gateway_update_producer_ping_spec.rb +184 -0
- data/spec/models/sign_gpg_output_spec.rb +34 -0
- data/spec/models/sign_gpg_spec.rb +76 -0
- data/spec/models/update_ping_target_spec.rb +112 -0
- data/spec/models/verify_gpg_spec.rb +76 -0
- metadata +609 -553
data/lib/akeyless/api/v2_api.rb
CHANGED
@@ -2131,6 +2131,70 @@ module Akeyless
|
|
2131
2131
|
return data, status_code, headers
|
2132
2132
|
end
|
2133
2133
|
|
2134
|
+
# @param body [CreatePingTarget]
|
2135
|
+
# @param [Hash] opts the optional parameters
|
2136
|
+
# @return [CreatePingTargetOutput]
|
2137
|
+
def create_ping_target(body, opts = {})
|
2138
|
+
data, _status_code, _headers = create_ping_target_with_http_info(body, opts)
|
2139
|
+
data
|
2140
|
+
end
|
2141
|
+
|
2142
|
+
# @param body [CreatePingTarget]
|
2143
|
+
# @param [Hash] opts the optional parameters
|
2144
|
+
# @return [Array<(CreatePingTargetOutput, Integer, Hash)>] CreatePingTargetOutput data, response status code and response headers
|
2145
|
+
def create_ping_target_with_http_info(body, opts = {})
|
2146
|
+
if @api_client.config.debugging
|
2147
|
+
@api_client.config.logger.debug 'Calling API: V2Api.create_ping_target ...'
|
2148
|
+
end
|
2149
|
+
# verify the required parameter 'body' is set
|
2150
|
+
if @api_client.config.client_side_validation && body.nil?
|
2151
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.create_ping_target"
|
2152
|
+
end
|
2153
|
+
# resource path
|
2154
|
+
local_var_path = '/create-ping-target'
|
2155
|
+
|
2156
|
+
# query parameters
|
2157
|
+
query_params = opts[:query_params] || {}
|
2158
|
+
|
2159
|
+
# header parameters
|
2160
|
+
header_params = opts[:header_params] || {}
|
2161
|
+
# HTTP header 'Accept' (if needed)
|
2162
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2163
|
+
# HTTP header 'Content-Type'
|
2164
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
2165
|
+
if !content_type.nil?
|
2166
|
+
header_params['Content-Type'] = content_type
|
2167
|
+
end
|
2168
|
+
|
2169
|
+
# form parameters
|
2170
|
+
form_params = opts[:form_params] || {}
|
2171
|
+
|
2172
|
+
# http body (model)
|
2173
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
2174
|
+
|
2175
|
+
# return_type
|
2176
|
+
return_type = opts[:debug_return_type] || 'CreatePingTargetOutput'
|
2177
|
+
|
2178
|
+
# auth_names
|
2179
|
+
auth_names = opts[:debug_auth_names] || []
|
2180
|
+
|
2181
|
+
new_options = opts.merge(
|
2182
|
+
:operation => :"V2Api.create_ping_target",
|
2183
|
+
:header_params => header_params,
|
2184
|
+
:query_params => query_params,
|
2185
|
+
:form_params => form_params,
|
2186
|
+
:body => post_body,
|
2187
|
+
:auth_names => auth_names,
|
2188
|
+
:return_type => return_type
|
2189
|
+
)
|
2190
|
+
|
2191
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
2192
|
+
if @api_client.config.debugging
|
2193
|
+
@api_client.config.logger.debug "API called: V2Api#create_ping_target\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2194
|
+
end
|
2195
|
+
return data, status_code, headers
|
2196
|
+
end
|
2197
|
+
|
2134
2198
|
# @param body [CreatePKICertIssuer]
|
2135
2199
|
# @param [Hash] opts the optional parameters
|
2136
2200
|
# @return [CreatePKICertIssuerOutput]
|
@@ -2899,6 +2963,70 @@ module Akeyless
|
|
2899
2963
|
return data, status_code, headers
|
2900
2964
|
end
|
2901
2965
|
|
2966
|
+
# @param body [DecryptGPG]
|
2967
|
+
# @param [Hash] opts the optional parameters
|
2968
|
+
# @return [DecryptGPGOutput]
|
2969
|
+
def decrypt_gpg(body, opts = {})
|
2970
|
+
data, _status_code, _headers = decrypt_gpg_with_http_info(body, opts)
|
2971
|
+
data
|
2972
|
+
end
|
2973
|
+
|
2974
|
+
# @param body [DecryptGPG]
|
2975
|
+
# @param [Hash] opts the optional parameters
|
2976
|
+
# @return [Array<(DecryptGPGOutput, Integer, Hash)>] DecryptGPGOutput data, response status code and response headers
|
2977
|
+
def decrypt_gpg_with_http_info(body, opts = {})
|
2978
|
+
if @api_client.config.debugging
|
2979
|
+
@api_client.config.logger.debug 'Calling API: V2Api.decrypt_gpg ...'
|
2980
|
+
end
|
2981
|
+
# verify the required parameter 'body' is set
|
2982
|
+
if @api_client.config.client_side_validation && body.nil?
|
2983
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.decrypt_gpg"
|
2984
|
+
end
|
2985
|
+
# resource path
|
2986
|
+
local_var_path = '/decrypt-gpg'
|
2987
|
+
|
2988
|
+
# query parameters
|
2989
|
+
query_params = opts[:query_params] || {}
|
2990
|
+
|
2991
|
+
# header parameters
|
2992
|
+
header_params = opts[:header_params] || {}
|
2993
|
+
# HTTP header 'Accept' (if needed)
|
2994
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2995
|
+
# HTTP header 'Content-Type'
|
2996
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
2997
|
+
if !content_type.nil?
|
2998
|
+
header_params['Content-Type'] = content_type
|
2999
|
+
end
|
3000
|
+
|
3001
|
+
# form parameters
|
3002
|
+
form_params = opts[:form_params] || {}
|
3003
|
+
|
3004
|
+
# http body (model)
|
3005
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
3006
|
+
|
3007
|
+
# return_type
|
3008
|
+
return_type = opts[:debug_return_type] || 'DecryptGPGOutput'
|
3009
|
+
|
3010
|
+
# auth_names
|
3011
|
+
auth_names = opts[:debug_auth_names] || []
|
3012
|
+
|
3013
|
+
new_options = opts.merge(
|
3014
|
+
:operation => :"V2Api.decrypt_gpg",
|
3015
|
+
:header_params => header_params,
|
3016
|
+
:query_params => query_params,
|
3017
|
+
:form_params => form_params,
|
3018
|
+
:body => post_body,
|
3019
|
+
:auth_names => auth_names,
|
3020
|
+
:return_type => return_type
|
3021
|
+
)
|
3022
|
+
|
3023
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
3024
|
+
if @api_client.config.debugging
|
3025
|
+
@api_client.config.logger.debug "API called: V2Api#decrypt_gpg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3026
|
+
end
|
3027
|
+
return data, status_code, headers
|
3028
|
+
end
|
3029
|
+
|
2902
3030
|
# @param body [DecryptPKCS1]
|
2903
3031
|
# @param [Hash] opts the optional parameters
|
2904
3032
|
# @return [DecryptPKCS1Output]
|
@@ -4115,6 +4243,70 @@ module Akeyless
|
|
4115
4243
|
return data, status_code, headers
|
4116
4244
|
end
|
4117
4245
|
|
4246
|
+
# @param body [EncryptGPG]
|
4247
|
+
# @param [Hash] opts the optional parameters
|
4248
|
+
# @return [EncryptGPGOutput]
|
4249
|
+
def encrypt_gpg(body, opts = {})
|
4250
|
+
data, _status_code, _headers = encrypt_gpg_with_http_info(body, opts)
|
4251
|
+
data
|
4252
|
+
end
|
4253
|
+
|
4254
|
+
# @param body [EncryptGPG]
|
4255
|
+
# @param [Hash] opts the optional parameters
|
4256
|
+
# @return [Array<(EncryptGPGOutput, Integer, Hash)>] EncryptGPGOutput data, response status code and response headers
|
4257
|
+
def encrypt_gpg_with_http_info(body, opts = {})
|
4258
|
+
if @api_client.config.debugging
|
4259
|
+
@api_client.config.logger.debug 'Calling API: V2Api.encrypt_gpg ...'
|
4260
|
+
end
|
4261
|
+
# verify the required parameter 'body' is set
|
4262
|
+
if @api_client.config.client_side_validation && body.nil?
|
4263
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.encrypt_gpg"
|
4264
|
+
end
|
4265
|
+
# resource path
|
4266
|
+
local_var_path = '/encrypt-gpg'
|
4267
|
+
|
4268
|
+
# query parameters
|
4269
|
+
query_params = opts[:query_params] || {}
|
4270
|
+
|
4271
|
+
# header parameters
|
4272
|
+
header_params = opts[:header_params] || {}
|
4273
|
+
# HTTP header 'Accept' (if needed)
|
4274
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
4275
|
+
# HTTP header 'Content-Type'
|
4276
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
4277
|
+
if !content_type.nil?
|
4278
|
+
header_params['Content-Type'] = content_type
|
4279
|
+
end
|
4280
|
+
|
4281
|
+
# form parameters
|
4282
|
+
form_params = opts[:form_params] || {}
|
4283
|
+
|
4284
|
+
# http body (model)
|
4285
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
4286
|
+
|
4287
|
+
# return_type
|
4288
|
+
return_type = opts[:debug_return_type] || 'EncryptGPGOutput'
|
4289
|
+
|
4290
|
+
# auth_names
|
4291
|
+
auth_names = opts[:debug_auth_names] || []
|
4292
|
+
|
4293
|
+
new_options = opts.merge(
|
4294
|
+
:operation => :"V2Api.encrypt_gpg",
|
4295
|
+
:header_params => header_params,
|
4296
|
+
:query_params => query_params,
|
4297
|
+
:form_params => form_params,
|
4298
|
+
:body => post_body,
|
4299
|
+
:auth_names => auth_names,
|
4300
|
+
:return_type => return_type
|
4301
|
+
)
|
4302
|
+
|
4303
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
4304
|
+
if @api_client.config.debugging
|
4305
|
+
@api_client.config.logger.debug "API called: V2Api#encrypt_gpg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
4306
|
+
end
|
4307
|
+
return data, status_code, headers
|
4308
|
+
end
|
4309
|
+
|
4118
4310
|
# @param body [EncryptWithClassicKey]
|
4119
4311
|
# @param [Hash] opts the optional parameters
|
4120
4312
|
# @return [EncryptOutput]
|
@@ -5519,6 +5711,70 @@ module Akeyless
|
|
5519
5711
|
return data, status_code, headers
|
5520
5712
|
end
|
5521
5713
|
|
5714
|
+
# @param body [GatewayCreateProducerPing]
|
5715
|
+
# @param [Hash] opts the optional parameters
|
5716
|
+
# @return [GatewayCreateProducerPingOutput]
|
5717
|
+
def gateway_create_producer_ping(body, opts = {})
|
5718
|
+
data, _status_code, _headers = gateway_create_producer_ping_with_http_info(body, opts)
|
5719
|
+
data
|
5720
|
+
end
|
5721
|
+
|
5722
|
+
# @param body [GatewayCreateProducerPing]
|
5723
|
+
# @param [Hash] opts the optional parameters
|
5724
|
+
# @return [Array<(GatewayCreateProducerPingOutput, Integer, Hash)>] GatewayCreateProducerPingOutput data, response status code and response headers
|
5725
|
+
def gateway_create_producer_ping_with_http_info(body, opts = {})
|
5726
|
+
if @api_client.config.debugging
|
5727
|
+
@api_client.config.logger.debug 'Calling API: V2Api.gateway_create_producer_ping ...'
|
5728
|
+
end
|
5729
|
+
# verify the required parameter 'body' is set
|
5730
|
+
if @api_client.config.client_side_validation && body.nil?
|
5731
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.gateway_create_producer_ping"
|
5732
|
+
end
|
5733
|
+
# resource path
|
5734
|
+
local_var_path = '/gateway-create-producer-ping'
|
5735
|
+
|
5736
|
+
# query parameters
|
5737
|
+
query_params = opts[:query_params] || {}
|
5738
|
+
|
5739
|
+
# header parameters
|
5740
|
+
header_params = opts[:header_params] || {}
|
5741
|
+
# HTTP header 'Accept' (if needed)
|
5742
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
5743
|
+
# HTTP header 'Content-Type'
|
5744
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
5745
|
+
if !content_type.nil?
|
5746
|
+
header_params['Content-Type'] = content_type
|
5747
|
+
end
|
5748
|
+
|
5749
|
+
# form parameters
|
5750
|
+
form_params = opts[:form_params] || {}
|
5751
|
+
|
5752
|
+
# http body (model)
|
5753
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
5754
|
+
|
5755
|
+
# return_type
|
5756
|
+
return_type = opts[:debug_return_type] || 'GatewayCreateProducerPingOutput'
|
5757
|
+
|
5758
|
+
# auth_names
|
5759
|
+
auth_names = opts[:debug_auth_names] || []
|
5760
|
+
|
5761
|
+
new_options = opts.merge(
|
5762
|
+
:operation => :"V2Api.gateway_create_producer_ping",
|
5763
|
+
:header_params => header_params,
|
5764
|
+
:query_params => query_params,
|
5765
|
+
:form_params => form_params,
|
5766
|
+
:body => post_body,
|
5767
|
+
:auth_names => auth_names,
|
5768
|
+
:return_type => return_type
|
5769
|
+
)
|
5770
|
+
|
5771
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
5772
|
+
if @api_client.config.debugging
|
5773
|
+
@api_client.config.logger.debug "API called: V2Api#gateway_create_producer_ping\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
5774
|
+
end
|
5775
|
+
return data, status_code, headers
|
5776
|
+
end
|
5777
|
+
|
5522
5778
|
# @param body [GatewayCreateProducerPostgreSQL]
|
5523
5779
|
# @param [Hash] opts the optional parameters
|
5524
5780
|
# @return [GatewayCreateProducerPostgreSQLOutput]
|
@@ -8455,6 +8711,70 @@ module Akeyless
|
|
8455
8711
|
return data, status_code, headers
|
8456
8712
|
end
|
8457
8713
|
|
8714
|
+
# @param body [GatewayUpdateProducerPing]
|
8715
|
+
# @param [Hash] opts the optional parameters
|
8716
|
+
# @return [GatewayUpdateProducerPingOutput]
|
8717
|
+
def gateway_update_producer_ping(body, opts = {})
|
8718
|
+
data, _status_code, _headers = gateway_update_producer_ping_with_http_info(body, opts)
|
8719
|
+
data
|
8720
|
+
end
|
8721
|
+
|
8722
|
+
# @param body [GatewayUpdateProducerPing]
|
8723
|
+
# @param [Hash] opts the optional parameters
|
8724
|
+
# @return [Array<(GatewayUpdateProducerPingOutput, Integer, Hash)>] GatewayUpdateProducerPingOutput data, response status code and response headers
|
8725
|
+
def gateway_update_producer_ping_with_http_info(body, opts = {})
|
8726
|
+
if @api_client.config.debugging
|
8727
|
+
@api_client.config.logger.debug 'Calling API: V2Api.gateway_update_producer_ping ...'
|
8728
|
+
end
|
8729
|
+
# verify the required parameter 'body' is set
|
8730
|
+
if @api_client.config.client_side_validation && body.nil?
|
8731
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.gateway_update_producer_ping"
|
8732
|
+
end
|
8733
|
+
# resource path
|
8734
|
+
local_var_path = '/gateway-update-producer-ping'
|
8735
|
+
|
8736
|
+
# query parameters
|
8737
|
+
query_params = opts[:query_params] || {}
|
8738
|
+
|
8739
|
+
# header parameters
|
8740
|
+
header_params = opts[:header_params] || {}
|
8741
|
+
# HTTP header 'Accept' (if needed)
|
8742
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
8743
|
+
# HTTP header 'Content-Type'
|
8744
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
8745
|
+
if !content_type.nil?
|
8746
|
+
header_params['Content-Type'] = content_type
|
8747
|
+
end
|
8748
|
+
|
8749
|
+
# form parameters
|
8750
|
+
form_params = opts[:form_params] || {}
|
8751
|
+
|
8752
|
+
# http body (model)
|
8753
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
8754
|
+
|
8755
|
+
# return_type
|
8756
|
+
return_type = opts[:debug_return_type] || 'GatewayUpdateProducerPingOutput'
|
8757
|
+
|
8758
|
+
# auth_names
|
8759
|
+
auth_names = opts[:debug_auth_names] || []
|
8760
|
+
|
8761
|
+
new_options = opts.merge(
|
8762
|
+
:operation => :"V2Api.gateway_update_producer_ping",
|
8763
|
+
:header_params => header_params,
|
8764
|
+
:query_params => query_params,
|
8765
|
+
:form_params => form_params,
|
8766
|
+
:body => post_body,
|
8767
|
+
:auth_names => auth_names,
|
8768
|
+
:return_type => return_type
|
8769
|
+
)
|
8770
|
+
|
8771
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
8772
|
+
if @api_client.config.debugging
|
8773
|
+
@api_client.config.logger.debug "API called: V2Api#gateway_update_producer_ping\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
8774
|
+
end
|
8775
|
+
return data, status_code, headers
|
8776
|
+
end
|
8777
|
+
|
8458
8778
|
# @param body [GatewayUpdateProducerPostgreSQL]
|
8459
8779
|
# @param [Hash] opts the optional parameters
|
8460
8780
|
# @return [GatewayUpdateProducerPostgreSQLOutput]
|
@@ -11897,6 +12217,70 @@ module Akeyless
|
|
11897
12217
|
return data, status_code, headers
|
11898
12218
|
end
|
11899
12219
|
|
12220
|
+
# @param body [SignGPG]
|
12221
|
+
# @param [Hash] opts the optional parameters
|
12222
|
+
# @return [SignGPGOutput]
|
12223
|
+
def sign_gpg(body, opts = {})
|
12224
|
+
data, _status_code, _headers = sign_gpg_with_http_info(body, opts)
|
12225
|
+
data
|
12226
|
+
end
|
12227
|
+
|
12228
|
+
# @param body [SignGPG]
|
12229
|
+
# @param [Hash] opts the optional parameters
|
12230
|
+
# @return [Array<(SignGPGOutput, Integer, Hash)>] SignGPGOutput data, response status code and response headers
|
12231
|
+
def sign_gpg_with_http_info(body, opts = {})
|
12232
|
+
if @api_client.config.debugging
|
12233
|
+
@api_client.config.logger.debug 'Calling API: V2Api.sign_gpg ...'
|
12234
|
+
end
|
12235
|
+
# verify the required parameter 'body' is set
|
12236
|
+
if @api_client.config.client_side_validation && body.nil?
|
12237
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.sign_gpg"
|
12238
|
+
end
|
12239
|
+
# resource path
|
12240
|
+
local_var_path = '/sign-gpg'
|
12241
|
+
|
12242
|
+
# query parameters
|
12243
|
+
query_params = opts[:query_params] || {}
|
12244
|
+
|
12245
|
+
# header parameters
|
12246
|
+
header_params = opts[:header_params] || {}
|
12247
|
+
# HTTP header 'Accept' (if needed)
|
12248
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
12249
|
+
# HTTP header 'Content-Type'
|
12250
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
12251
|
+
if !content_type.nil?
|
12252
|
+
header_params['Content-Type'] = content_type
|
12253
|
+
end
|
12254
|
+
|
12255
|
+
# form parameters
|
12256
|
+
form_params = opts[:form_params] || {}
|
12257
|
+
|
12258
|
+
# http body (model)
|
12259
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
12260
|
+
|
12261
|
+
# return_type
|
12262
|
+
return_type = opts[:debug_return_type] || 'SignGPGOutput'
|
12263
|
+
|
12264
|
+
# auth_names
|
12265
|
+
auth_names = opts[:debug_auth_names] || []
|
12266
|
+
|
12267
|
+
new_options = opts.merge(
|
12268
|
+
:operation => :"V2Api.sign_gpg",
|
12269
|
+
:header_params => header_params,
|
12270
|
+
:query_params => query_params,
|
12271
|
+
:form_params => form_params,
|
12272
|
+
:body => post_body,
|
12273
|
+
:auth_names => auth_names,
|
12274
|
+
:return_type => return_type
|
12275
|
+
)
|
12276
|
+
|
12277
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
12278
|
+
if @api_client.config.debugging
|
12279
|
+
@api_client.config.logger.debug "API called: V2Api#sign_gpg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
12280
|
+
end
|
12281
|
+
return data, status_code, headers
|
12282
|
+
end
|
12283
|
+
|
11900
12284
|
# @param body [SignJWTWithClassicKey]
|
11901
12285
|
# @param [Hash] opts the optional parameters
|
11902
12286
|
# @return [SignJWTOutput]
|
@@ -14457,6 +14841,70 @@ module Akeyless
|
|
14457
14841
|
return data, status_code, headers
|
14458
14842
|
end
|
14459
14843
|
|
14844
|
+
# @param body [UpdatePingTarget]
|
14845
|
+
# @param [Hash] opts the optional parameters
|
14846
|
+
# @return [Object]
|
14847
|
+
def update_ping_target(body, opts = {})
|
14848
|
+
data, _status_code, _headers = update_ping_target_with_http_info(body, opts)
|
14849
|
+
data
|
14850
|
+
end
|
14851
|
+
|
14852
|
+
# @param body [UpdatePingTarget]
|
14853
|
+
# @param [Hash] opts the optional parameters
|
14854
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
14855
|
+
def update_ping_target_with_http_info(body, opts = {})
|
14856
|
+
if @api_client.config.debugging
|
14857
|
+
@api_client.config.logger.debug 'Calling API: V2Api.update_ping_target ...'
|
14858
|
+
end
|
14859
|
+
# verify the required parameter 'body' is set
|
14860
|
+
if @api_client.config.client_side_validation && body.nil?
|
14861
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.update_ping_target"
|
14862
|
+
end
|
14863
|
+
# resource path
|
14864
|
+
local_var_path = '/update-ping-target'
|
14865
|
+
|
14866
|
+
# query parameters
|
14867
|
+
query_params = opts[:query_params] || {}
|
14868
|
+
|
14869
|
+
# header parameters
|
14870
|
+
header_params = opts[:header_params] || {}
|
14871
|
+
# HTTP header 'Accept' (if needed)
|
14872
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
14873
|
+
# HTTP header 'Content-Type'
|
14874
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
14875
|
+
if !content_type.nil?
|
14876
|
+
header_params['Content-Type'] = content_type
|
14877
|
+
end
|
14878
|
+
|
14879
|
+
# form parameters
|
14880
|
+
form_params = opts[:form_params] || {}
|
14881
|
+
|
14882
|
+
# http body (model)
|
14883
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
14884
|
+
|
14885
|
+
# return_type
|
14886
|
+
return_type = opts[:debug_return_type] || 'Object'
|
14887
|
+
|
14888
|
+
# auth_names
|
14889
|
+
auth_names = opts[:debug_auth_names] || []
|
14890
|
+
|
14891
|
+
new_options = opts.merge(
|
14892
|
+
:operation => :"V2Api.update_ping_target",
|
14893
|
+
:header_params => header_params,
|
14894
|
+
:query_params => query_params,
|
14895
|
+
:form_params => form_params,
|
14896
|
+
:body => post_body,
|
14897
|
+
:auth_names => auth_names,
|
14898
|
+
:return_type => return_type
|
14899
|
+
)
|
14900
|
+
|
14901
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
14902
|
+
if @api_client.config.debugging
|
14903
|
+
@api_client.config.logger.debug "API called: V2Api#update_ping_target\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
14904
|
+
end
|
14905
|
+
return data, status_code, headers
|
14906
|
+
end
|
14907
|
+
|
14460
14908
|
# @param body [UpdatePKICertIssuer]
|
14461
14909
|
# @param [Hash] opts the optional parameters
|
14462
14910
|
# @return [UpdatePKICertIssuerOutput]
|
@@ -15598,6 +16046,70 @@ module Akeyless
|
|
15598
16046
|
return data, status_code, headers
|
15599
16047
|
end
|
15600
16048
|
|
16049
|
+
# @param body [VerifyGPG]
|
16050
|
+
# @param [Hash] opts the optional parameters
|
16051
|
+
# @return [Object]
|
16052
|
+
def verify_gpg(body, opts = {})
|
16053
|
+
data, _status_code, _headers = verify_gpg_with_http_info(body, opts)
|
16054
|
+
data
|
16055
|
+
end
|
16056
|
+
|
16057
|
+
# @param body [VerifyGPG]
|
16058
|
+
# @param [Hash] opts the optional parameters
|
16059
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
16060
|
+
def verify_gpg_with_http_info(body, opts = {})
|
16061
|
+
if @api_client.config.debugging
|
16062
|
+
@api_client.config.logger.debug 'Calling API: V2Api.verify_gpg ...'
|
16063
|
+
end
|
16064
|
+
# verify the required parameter 'body' is set
|
16065
|
+
if @api_client.config.client_side_validation && body.nil?
|
16066
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.verify_gpg"
|
16067
|
+
end
|
16068
|
+
# resource path
|
16069
|
+
local_var_path = '/verify-gpg'
|
16070
|
+
|
16071
|
+
# query parameters
|
16072
|
+
query_params = opts[:query_params] || {}
|
16073
|
+
|
16074
|
+
# header parameters
|
16075
|
+
header_params = opts[:header_params] || {}
|
16076
|
+
# HTTP header 'Accept' (if needed)
|
16077
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
16078
|
+
# HTTP header 'Content-Type'
|
16079
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
16080
|
+
if !content_type.nil?
|
16081
|
+
header_params['Content-Type'] = content_type
|
16082
|
+
end
|
16083
|
+
|
16084
|
+
# form parameters
|
16085
|
+
form_params = opts[:form_params] || {}
|
16086
|
+
|
16087
|
+
# http body (model)
|
16088
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
16089
|
+
|
16090
|
+
# return_type
|
16091
|
+
return_type = opts[:debug_return_type] || 'Object'
|
16092
|
+
|
16093
|
+
# auth_names
|
16094
|
+
auth_names = opts[:debug_auth_names] || []
|
16095
|
+
|
16096
|
+
new_options = opts.merge(
|
16097
|
+
:operation => :"V2Api.verify_gpg",
|
16098
|
+
:header_params => header_params,
|
16099
|
+
:query_params => query_params,
|
16100
|
+
:form_params => form_params,
|
16101
|
+
:body => post_body,
|
16102
|
+
:auth_names => auth_names,
|
16103
|
+
:return_type => return_type
|
16104
|
+
)
|
16105
|
+
|
16106
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
16107
|
+
if @api_client.config.debugging
|
16108
|
+
@api_client.config.logger.debug "API called: V2Api#verify_gpg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
16109
|
+
end
|
16110
|
+
return data, status_code, headers
|
16111
|
+
end
|
16112
|
+
|
15601
16113
|
# @param body [VerifyJWTWithClassicKey]
|
15602
16114
|
# @param [Hash] opts the optional parameters
|
15603
16115
|
# @return [VerifyJWTOutput]
|
@@ -16,6 +16,9 @@ require 'time'
|
|
16
16
|
module Akeyless
|
17
17
|
# assocTargetItem is a command that creates an association between target and item.
|
18
18
|
class AssocTargetItem
|
19
|
+
# Automatically disable previous key version (required for azure targets)
|
20
|
+
attr_accessor :disable_previous_key_version
|
21
|
+
|
19
22
|
# Set output format to JSON
|
20
23
|
attr_accessor :json
|
21
24
|
|
@@ -64,6 +67,7 @@ module Akeyless
|
|
64
67
|
# Attribute mapping from ruby-style variable name to JSON key.
|
65
68
|
def self.attribute_map
|
66
69
|
{
|
70
|
+
:'disable_previous_key_version' => :'disable-previous-key-version',
|
67
71
|
:'json' => :'json',
|
68
72
|
:'key_operations' => :'key-operations',
|
69
73
|
:'keyring_name' => :'keyring-name',
|
@@ -90,6 +94,7 @@ module Akeyless
|
|
90
94
|
# Attribute type mapping.
|
91
95
|
def self.openapi_types
|
92
96
|
{
|
97
|
+
:'disable_previous_key_version' => :'Boolean',
|
93
98
|
:'json' => :'Boolean',
|
94
99
|
:'key_operations' => :'Array<String>',
|
95
100
|
:'keyring_name' => :'String',
|
@@ -129,6 +134,10 @@ module Akeyless
|
|
129
134
|
h[k.to_sym] = v
|
130
135
|
}
|
131
136
|
|
137
|
+
if attributes.key?(:'disable_previous_key_version')
|
138
|
+
self.disable_previous_key_version = attributes[:'disable_previous_key_version']
|
139
|
+
end
|
140
|
+
|
132
141
|
if attributes.key?(:'json')
|
133
142
|
self.json = attributes[:'json']
|
134
143
|
end
|
@@ -224,6 +233,7 @@ module Akeyless
|
|
224
233
|
def ==(o)
|
225
234
|
return true if self.equal?(o)
|
226
235
|
self.class == o.class &&
|
236
|
+
disable_previous_key_version == o.disable_previous_key_version &&
|
227
237
|
json == o.json &&
|
228
238
|
key_operations == o.key_operations &&
|
229
239
|
keyring_name == o.keyring_name &&
|
@@ -250,7 +260,7 @@ module Akeyless
|
|
250
260
|
# Calculates hash code according to all attributes.
|
251
261
|
# @return [Integer] Hash code
|
252
262
|
def hash
|
253
|
-
[json, key_operations, keyring_name, kms_algorithm, location_id, multi_region, name, project_id, purpose, regions, target_name, tenant_secret_type, token, uid_token, vault_name].hash
|
263
|
+
[disable_previous_key_version, json, key_operations, keyring_name, kms_algorithm, location_id, multi_region, name, project_id, purpose, regions, target_name, tenant_secret_type, token, uid_token, vault_name].hash
|
254
264
|
end
|
255
265
|
|
256
266
|
# Builds the object from hash
|
@@ -21,6 +21,9 @@ module Akeyless
|
|
21
21
|
# Protection from accidental deletion of this item
|
22
22
|
attr_accessor :delete_protection
|
23
23
|
|
24
|
+
# Description of the object
|
25
|
+
attr_accessor :description
|
26
|
+
|
24
27
|
# How many days before the expiration of the certificate would you like to be notified.
|
25
28
|
attr_accessor :expiration_event_in
|
26
29
|
|
@@ -33,7 +36,7 @@ module Akeyless
|
|
33
36
|
# Content of the certificate's private key PEM in a Base64 format.
|
34
37
|
attr_accessor :key_data
|
35
38
|
|
36
|
-
#
|
39
|
+
# Deprecated - use description
|
37
40
|
attr_accessor :metadata
|
38
41
|
|
39
42
|
# Certificate name
|
@@ -53,6 +56,7 @@ module Akeyless
|
|
53
56
|
{
|
54
57
|
:'certificate_data' => :'certificate-data',
|
55
58
|
:'delete_protection' => :'delete_protection',
|
59
|
+
:'description' => :'description',
|
56
60
|
:'expiration_event_in' => :'expiration-event-in',
|
57
61
|
:'json' => :'json',
|
58
62
|
:'key' => :'key',
|
@@ -75,6 +79,7 @@ module Akeyless
|
|
75
79
|
{
|
76
80
|
:'certificate_data' => :'String',
|
77
81
|
:'delete_protection' => :'String',
|
82
|
+
:'description' => :'String',
|
78
83
|
:'expiration_event_in' => :'Array<String>',
|
79
84
|
:'json' => :'Boolean',
|
80
85
|
:'key' => :'String',
|
@@ -116,6 +121,10 @@ module Akeyless
|
|
116
121
|
self.delete_protection = attributes[:'delete_protection']
|
117
122
|
end
|
118
123
|
|
124
|
+
if attributes.key?(:'description')
|
125
|
+
self.description = attributes[:'description']
|
126
|
+
end
|
127
|
+
|
119
128
|
if attributes.key?(:'expiration_event_in')
|
120
129
|
if (value = attributes[:'expiration_event_in']).is_a?(Array)
|
121
130
|
self.expiration_event_in = value
|
@@ -182,6 +191,7 @@ module Akeyless
|
|
182
191
|
self.class == o.class &&
|
183
192
|
certificate_data == o.certificate_data &&
|
184
193
|
delete_protection == o.delete_protection &&
|
194
|
+
description == o.description &&
|
185
195
|
expiration_event_in == o.expiration_event_in &&
|
186
196
|
json == o.json &&
|
187
197
|
key == o.key &&
|
@@ -202,7 +212,7 @@ module Akeyless
|
|
202
212
|
# Calculates hash code according to all attributes.
|
203
213
|
# @return [Integer] Hash code
|
204
214
|
def hash
|
205
|
-
[certificate_data, delete_protection, expiration_event_in, json, key, key_data, metadata, name, tags, token, uid_token].hash
|
215
|
+
[certificate_data, delete_protection, description, expiration_event_in, json, key, key_data, metadata, name, tags, token, uid_token].hash
|
206
216
|
end
|
207
217
|
|
208
218
|
# Builds the object from hash
|