akeyless 2.16.12 → 2.17.0
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 +5 -5
- data/docs/CreateArtifactoryTarget.md +1 -1
- data/docs/CreateKeyOutput.md +5 -1
- data/docs/CreateLdapTarget.md +2 -0
- data/docs/CreateSalesforceTarget.md +7 -3
- data/docs/Decrypt.md +3 -1
- data/docs/DecryptFile.md +6 -0
- data/docs/DecryptPKCS1.md +5 -1
- data/docs/DescribeItem.md +4 -0
- data/docs/DescribeSubClaims.md +20 -0
- data/docs/DescribeSubClaimsOutput.md +18 -0
- data/docs/Encrypt.md +3 -1
- data/docs/EncryptFile.md +4 -0
- data/docs/EncryptPKCS1.md +5 -1
- data/docs/GatewayCreateK8SAuthConfig.md +7 -1
- data/docs/GatewayCreateProducerDockerhub.md +1 -1
- data/docs/GatewayGetK8SAuthConfigOutput.md +7 -1
- data/docs/GatewayUpdateK8SAuthConfig.md +7 -1
- data/docs/GatewayUpdateProducerDockerhub.md +1 -1
- data/docs/K8SAuth.md +7 -1
- data/docs/SignPKCS1.md +5 -1
- data/docs/TargetTypeDetailsInput.md +3 -1
- data/docs/UpdateLdapTarget.md +2 -0
- data/docs/UpdateSalesforceTarget.md +7 -3
- data/docs/V2Api.md +69 -69
- data/docs/VerifyPKCS1.md +4 -0
- data/lib/akeyless/api/v2_api.rb +65 -65
- data/lib/akeyless/models/create_artifactory_target.rb +1 -1
- data/lib/akeyless/models/create_key_output.rb +22 -4
- data/lib/akeyless/models/create_ldap_target.rb +13 -1
- data/lib/akeyless/models/create_salesforce_target.rb +29 -19
- data/lib/akeyless/models/decrypt.rb +16 -1
- data/lib/akeyless/models/decrypt_file.rb +36 -1
- data/lib/akeyless/models/decrypt_pkcs1.rb +22 -2
- data/lib/akeyless/models/describe_item.rb +21 -1
- data/lib/akeyless/models/describe_sub_claims.rb +231 -0
- data/lib/akeyless/models/describe_sub_claims_output.rb +221 -0
- data/lib/akeyless/models/encrypt.rb +16 -1
- data/lib/akeyless/models/encrypt_file.rb +21 -1
- data/lib/akeyless/models/encrypt_pkcs1.rb +22 -2
- data/lib/akeyless/models/gateway_create_k8_s_auth_config.rb +34 -2
- data/lib/akeyless/models/gateway_create_producer_dockerhub.rb +1 -1
- data/lib/akeyless/models/gateway_get_k8_s_auth_config_output.rb +32 -2
- data/lib/akeyless/models/gateway_update_k8_s_auth_config.rb +34 -2
- data/lib/akeyless/models/gateway_update_producer_dockerhub.rb +1 -1
- data/lib/akeyless/models/k8_s_auth.rb +32 -2
- data/lib/akeyless/models/sign_pkcs1.rb +21 -6
- data/lib/akeyless/models/target_type_details_input.rb +14 -1
- data/lib/akeyless/models/update_ldap_target.rb +11 -1
- data/lib/akeyless/models/update_salesforce_target.rb +29 -19
- data/lib/akeyless/models/verify_pkcs1.rb +21 -1
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +2 -2
- data/spec/models/describe_sub_claims_output_spec.rb +34 -0
- data/spec/models/describe_sub_claims_spec.rb +40 -0
- metadata +10 -2
data/docs/V2Api.md
CHANGED
@@ -62,6 +62,7 @@ All URIs are relative to *https://api.akeyless.io*
|
|
62
62
|
| [**delete_targets**](V2Api.md#delete_targets) | **POST** /delete-targets | |
|
63
63
|
| [**describe_item**](V2Api.md#describe_item) | **POST** /describe-item | |
|
64
64
|
| [**describe_permissions**](V2Api.md#describe_permissions) | **POST** /describe-permissions | |
|
65
|
+
| [**describe_sub_claims**](V2Api.md#describe_sub_claims) | **POST** /describe-sub-claims | |
|
65
66
|
| [**detokenize**](V2Api.md#detokenize) | **POST** /detokenize | |
|
66
67
|
| [**encrypt**](V2Api.md#encrypt) | **POST** /encrypt | |
|
67
68
|
| [**encrypt_pkcs1**](V2Api.md#encrypt_pkcs1) | **POST** /encrypt-pkcs1 | |
|
@@ -84,7 +85,7 @@ All URIs are relative to *https://api.akeyless.io*
|
|
84
85
|
| [**gateway_create_producer_mongo**](V2Api.md#gateway_create_producer_mongo) | **POST** /gateway-create-producer-mongo | |
|
85
86
|
| [**gateway_create_producer_mssql**](V2Api.md#gateway_create_producer_mssql) | **POST** /gateway-create-producer-mssql | |
|
86
87
|
| [**gateway_create_producer_my_sql**](V2Api.md#gateway_create_producer_my_sql) | **POST** /gateway-create-producer-mysql | |
|
87
|
-
| [**gateway_create_producer_native_k8_s**](V2Api.md#gateway_create_producer_native_k8_s) | **POST** /gateway-create-producer-k8s
|
88
|
+
| [**gateway_create_producer_native_k8_s**](V2Api.md#gateway_create_producer_native_k8_s) | **POST** /gateway-create-producer-k8s | |
|
88
89
|
| [**gateway_create_producer_oracle_db**](V2Api.md#gateway_create_producer_oracle_db) | **POST** /gateway-create-producer-oracle | |
|
89
90
|
| [**gateway_create_producer_postgre_sql**](V2Api.md#gateway_create_producer_postgre_sql) | **POST** /gateway-create-producer-postgresql | |
|
90
91
|
| [**gateway_create_producer_rabbit_mq**](V2Api.md#gateway_create_producer_rabbit_mq) | **POST** /gateway-create-producer-rabbitmq | |
|
@@ -230,7 +231,6 @@ All URIs are relative to *https://api.akeyless.io*
|
|
230
231
|
| [**update_ssh_target_details**](V2Api.md#update_ssh_target_details) | **POST** /update-ssh-target-details | |
|
231
232
|
| [**update_target**](V2Api.md#update_target) | **POST** /update-target | |
|
232
233
|
| [**update_target_details**](V2Api.md#update_target_details) | **POST** /update-target-details | |
|
233
|
-
| [**update_tokenizer**](V2Api.md#update_tokenizer) | **POST** /update-tokenizer | |
|
234
234
|
| [**update_web_target**](V2Api.md#update_web_target) | **POST** /update-web-target | |
|
235
235
|
| [**update_web_target_details**](V2Api.md#update_web_target_details) | **POST** /update-web-target-details | |
|
236
236
|
| [**upload_rsa**](V2Api.md#upload_rsa) | **POST** /upload-rsa | |
|
@@ -2423,7 +2423,7 @@ require 'time'
|
|
2423
2423
|
require 'akeyless'
|
2424
2424
|
|
2425
2425
|
api_instance = Akeyless::V2Api.new
|
2426
|
-
body = Akeyless::CreateSalesforceTarget.new({
|
2426
|
+
body = Akeyless::CreateSalesforceTarget.new({auth_flow: 'auth_flow_example', client_id: 'client_id_example', email: 'email_example', name: 'name_example', tenant_url: 'tenant_url_example'}) # CreateSalesforceTarget |
|
2427
2427
|
|
2428
2428
|
begin
|
2429
2429
|
|
@@ -2857,7 +2857,7 @@ require 'time'
|
|
2857
2857
|
require 'akeyless'
|
2858
2858
|
|
2859
2859
|
api_instance = Akeyless::V2Api.new
|
2860
|
-
body = Akeyless::Decrypt.new # Decrypt |
|
2860
|
+
body = Akeyless::Decrypt.new({key_name: 'key_name_example'}) # Decrypt |
|
2861
2861
|
|
2862
2862
|
begin
|
2863
2863
|
|
@@ -3836,6 +3836,68 @@ No authorization required
|
|
3836
3836
|
- **Accept**: application/json
|
3837
3837
|
|
3838
3838
|
|
3839
|
+
## describe_sub_claims
|
3840
|
+
|
3841
|
+
> <DescribeSubClaimsOutput> describe_sub_claims(body)
|
3842
|
+
|
3843
|
+
|
3844
|
+
|
3845
|
+
### Examples
|
3846
|
+
|
3847
|
+
```ruby
|
3848
|
+
require 'time'
|
3849
|
+
require 'akeyless'
|
3850
|
+
|
3851
|
+
api_instance = Akeyless::V2Api.new
|
3852
|
+
body = Akeyless::DescribeSubClaims.new # DescribeSubClaims |
|
3853
|
+
|
3854
|
+
begin
|
3855
|
+
|
3856
|
+
result = api_instance.describe_sub_claims(body)
|
3857
|
+
p result
|
3858
|
+
rescue Akeyless::ApiError => e
|
3859
|
+
puts "Error when calling V2Api->describe_sub_claims: #{e}"
|
3860
|
+
end
|
3861
|
+
```
|
3862
|
+
|
3863
|
+
#### Using the describe_sub_claims_with_http_info variant
|
3864
|
+
|
3865
|
+
This returns an Array which contains the response data, status code and headers.
|
3866
|
+
|
3867
|
+
> <Array(<DescribeSubClaimsOutput>, Integer, Hash)> describe_sub_claims_with_http_info(body)
|
3868
|
+
|
3869
|
+
```ruby
|
3870
|
+
begin
|
3871
|
+
|
3872
|
+
data, status_code, headers = api_instance.describe_sub_claims_with_http_info(body)
|
3873
|
+
p status_code # => 2xx
|
3874
|
+
p headers # => { ... }
|
3875
|
+
p data # => <DescribeSubClaimsOutput>
|
3876
|
+
rescue Akeyless::ApiError => e
|
3877
|
+
puts "Error when calling V2Api->describe_sub_claims_with_http_info: #{e}"
|
3878
|
+
end
|
3879
|
+
```
|
3880
|
+
|
3881
|
+
### Parameters
|
3882
|
+
|
3883
|
+
| Name | Type | Description | Notes |
|
3884
|
+
| ---- | ---- | ----------- | ----- |
|
3885
|
+
| **body** | [**DescribeSubClaims**](DescribeSubClaims.md) | | |
|
3886
|
+
|
3887
|
+
### Return type
|
3888
|
+
|
3889
|
+
[**DescribeSubClaimsOutput**](DescribeSubClaimsOutput.md)
|
3890
|
+
|
3891
|
+
### Authorization
|
3892
|
+
|
3893
|
+
No authorization required
|
3894
|
+
|
3895
|
+
### HTTP request headers
|
3896
|
+
|
3897
|
+
- **Content-Type**: application/json
|
3898
|
+
- **Accept**: application/json
|
3899
|
+
|
3900
|
+
|
3839
3901
|
## detokenize
|
3840
3902
|
|
3841
3903
|
> <DetokenizeOutput> detokenize(body)
|
@@ -3911,7 +3973,7 @@ require 'time'
|
|
3911
3973
|
require 'akeyless'
|
3912
3974
|
|
3913
3975
|
api_instance = Akeyless::V2Api.new
|
3914
|
-
body = Akeyless::Encrypt.new # Encrypt |
|
3976
|
+
body = Akeyless::Encrypt.new({key_name: 'key_name_example'}) # Encrypt |
|
3915
3977
|
|
3916
3978
|
begin
|
3917
3979
|
|
@@ -11127,7 +11189,7 @@ require 'time'
|
|
11127
11189
|
require 'akeyless'
|
11128
11190
|
|
11129
11191
|
api_instance = Akeyless::V2Api.new
|
11130
|
-
body = Akeyless::SignPKCS1.new({
|
11192
|
+
body = Akeyless::SignPKCS1.new({message: 'message_example'}) # SignPKCS1 |
|
11131
11193
|
|
11132
11194
|
begin
|
11133
11195
|
|
@@ -13852,7 +13914,7 @@ require 'time'
|
|
13852
13914
|
require 'akeyless'
|
13853
13915
|
|
13854
13916
|
api_instance = Akeyless::V2Api.new
|
13855
|
-
body = Akeyless::UpdateSalesforceTarget.new({
|
13917
|
+
body = Akeyless::UpdateSalesforceTarget.new({auth_flow: 'auth_flow_example', client_id: 'client_id_example', email: 'email_example', name: 'name_example', tenant_url: 'tenant_url_example'}) # UpdateSalesforceTarget |
|
13856
13918
|
|
13857
13919
|
begin
|
13858
13920
|
|
@@ -14273,68 +14335,6 @@ No authorization required
|
|
14273
14335
|
- **Accept**: application/json
|
14274
14336
|
|
14275
14337
|
|
14276
|
-
## update_tokenizer
|
14277
|
-
|
14278
|
-
> <UpdateTokenizerOutput> update_tokenizer(body)
|
14279
|
-
|
14280
|
-
|
14281
|
-
|
14282
|
-
### Examples
|
14283
|
-
|
14284
|
-
```ruby
|
14285
|
-
require 'time'
|
14286
|
-
require 'akeyless'
|
14287
|
-
|
14288
|
-
api_instance = Akeyless::V2Api.new
|
14289
|
-
body = Akeyless::UpdateTokenizer.new({name: 'name_example', template_type: 'template_type_example', tokenizer_type: 'tokenizer_type_example'}) # UpdateTokenizer |
|
14290
|
-
|
14291
|
-
begin
|
14292
|
-
|
14293
|
-
result = api_instance.update_tokenizer(body)
|
14294
|
-
p result
|
14295
|
-
rescue Akeyless::ApiError => e
|
14296
|
-
puts "Error when calling V2Api->update_tokenizer: #{e}"
|
14297
|
-
end
|
14298
|
-
```
|
14299
|
-
|
14300
|
-
#### Using the update_tokenizer_with_http_info variant
|
14301
|
-
|
14302
|
-
This returns an Array which contains the response data, status code and headers.
|
14303
|
-
|
14304
|
-
> <Array(<UpdateTokenizerOutput>, Integer, Hash)> update_tokenizer_with_http_info(body)
|
14305
|
-
|
14306
|
-
```ruby
|
14307
|
-
begin
|
14308
|
-
|
14309
|
-
data, status_code, headers = api_instance.update_tokenizer_with_http_info(body)
|
14310
|
-
p status_code # => 2xx
|
14311
|
-
p headers # => { ... }
|
14312
|
-
p data # => <UpdateTokenizerOutput>
|
14313
|
-
rescue Akeyless::ApiError => e
|
14314
|
-
puts "Error when calling V2Api->update_tokenizer_with_http_info: #{e}"
|
14315
|
-
end
|
14316
|
-
```
|
14317
|
-
|
14318
|
-
### Parameters
|
14319
|
-
|
14320
|
-
| Name | Type | Description | Notes |
|
14321
|
-
| ---- | ---- | ----------- | ----- |
|
14322
|
-
| **body** | [**UpdateTokenizer**](UpdateTokenizer.md) | | |
|
14323
|
-
|
14324
|
-
### Return type
|
14325
|
-
|
14326
|
-
[**UpdateTokenizerOutput**](UpdateTokenizerOutput.md)
|
14327
|
-
|
14328
|
-
### Authorization
|
14329
|
-
|
14330
|
-
No authorization required
|
14331
|
-
|
14332
|
-
### HTTP request headers
|
14333
|
-
|
14334
|
-
- **Content-Type**: application/json
|
14335
|
-
- **Accept**: application/json
|
14336
|
-
|
14337
|
-
|
14338
14338
|
## update_web_target
|
14339
14339
|
|
14340
14340
|
> <UpdateWebTargetOutput> update_web_target(body)
|
data/docs/VerifyPKCS1.md
CHANGED
@@ -4,6 +4,8 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **display_id** | **String** | The display id of the key to use in the verification process | [optional] |
|
8
|
+
| **item_id** | **Integer** | The item id of the key to use in the verification process | [optional] |
|
7
9
|
| **key_name** | **String** | The name of the RSA key to use in the verification process | |
|
8
10
|
| **message** | **String** | The message to be verified | |
|
9
11
|
| **signature** | **String** | The message's signature | |
|
@@ -16,6 +18,8 @@
|
|
16
18
|
require 'akeyless'
|
17
19
|
|
18
20
|
instance = Akeyless::VerifyPKCS1.new(
|
21
|
+
display_id: null,
|
22
|
+
item_id: null,
|
19
23
|
key_name: null,
|
20
24
|
message: null,
|
21
25
|
signature: null,
|
data/lib/akeyless/api/v2_api.rb
CHANGED
@@ -3731,6 +3731,70 @@ module Akeyless
|
|
3731
3731
|
return data, status_code, headers
|
3732
3732
|
end
|
3733
3733
|
|
3734
|
+
# @param body [DescribeSubClaims]
|
3735
|
+
# @param [Hash] opts the optional parameters
|
3736
|
+
# @return [DescribeSubClaimsOutput]
|
3737
|
+
def describe_sub_claims(body, opts = {})
|
3738
|
+
data, _status_code, _headers = describe_sub_claims_with_http_info(body, opts)
|
3739
|
+
data
|
3740
|
+
end
|
3741
|
+
|
3742
|
+
# @param body [DescribeSubClaims]
|
3743
|
+
# @param [Hash] opts the optional parameters
|
3744
|
+
# @return [Array<(DescribeSubClaimsOutput, Integer, Hash)>] DescribeSubClaimsOutput data, response status code and response headers
|
3745
|
+
def describe_sub_claims_with_http_info(body, opts = {})
|
3746
|
+
if @api_client.config.debugging
|
3747
|
+
@api_client.config.logger.debug 'Calling API: V2Api.describe_sub_claims ...'
|
3748
|
+
end
|
3749
|
+
# verify the required parameter 'body' is set
|
3750
|
+
if @api_client.config.client_side_validation && body.nil?
|
3751
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.describe_sub_claims"
|
3752
|
+
end
|
3753
|
+
# resource path
|
3754
|
+
local_var_path = '/describe-sub-claims'
|
3755
|
+
|
3756
|
+
# query parameters
|
3757
|
+
query_params = opts[:query_params] || {}
|
3758
|
+
|
3759
|
+
# header parameters
|
3760
|
+
header_params = opts[:header_params] || {}
|
3761
|
+
# HTTP header 'Accept' (if needed)
|
3762
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
3763
|
+
# HTTP header 'Content-Type'
|
3764
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
3765
|
+
if !content_type.nil?
|
3766
|
+
header_params['Content-Type'] = content_type
|
3767
|
+
end
|
3768
|
+
|
3769
|
+
# form parameters
|
3770
|
+
form_params = opts[:form_params] || {}
|
3771
|
+
|
3772
|
+
# http body (model)
|
3773
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
3774
|
+
|
3775
|
+
# return_type
|
3776
|
+
return_type = opts[:debug_return_type] || 'DescribeSubClaimsOutput'
|
3777
|
+
|
3778
|
+
# auth_names
|
3779
|
+
auth_names = opts[:debug_auth_names] || []
|
3780
|
+
|
3781
|
+
new_options = opts.merge(
|
3782
|
+
:operation => :"V2Api.describe_sub_claims",
|
3783
|
+
:header_params => header_params,
|
3784
|
+
:query_params => query_params,
|
3785
|
+
:form_params => form_params,
|
3786
|
+
:body => post_body,
|
3787
|
+
:auth_names => auth_names,
|
3788
|
+
:return_type => return_type
|
3789
|
+
)
|
3790
|
+
|
3791
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
3792
|
+
if @api_client.config.debugging
|
3793
|
+
@api_client.config.logger.debug "API called: V2Api#describe_sub_claims\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3794
|
+
end
|
3795
|
+
return data, status_code, headers
|
3796
|
+
end
|
3797
|
+
|
3734
3798
|
# @param body [Detokenize]
|
3735
3799
|
# @param [Hash] opts the optional parameters
|
3736
3800
|
# @return [DetokenizeOutput]
|
@@ -5155,7 +5219,7 @@ module Akeyless
|
|
5155
5219
|
fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.gateway_create_producer_native_k8_s"
|
5156
5220
|
end
|
5157
5221
|
# resource path
|
5158
|
-
local_var_path = '/gateway-create-producer-k8s
|
5222
|
+
local_var_path = '/gateway-create-producer-k8s'
|
5159
5223
|
|
5160
5224
|
# query parameters
|
5161
5225
|
query_params = opts[:query_params] || {}
|
@@ -14386,70 +14450,6 @@ module Akeyless
|
|
14386
14450
|
return data, status_code, headers
|
14387
14451
|
end
|
14388
14452
|
|
14389
|
-
# @param body [UpdateTokenizer]
|
14390
|
-
# @param [Hash] opts the optional parameters
|
14391
|
-
# @return [UpdateTokenizerOutput]
|
14392
|
-
def update_tokenizer(body, opts = {})
|
14393
|
-
data, _status_code, _headers = update_tokenizer_with_http_info(body, opts)
|
14394
|
-
data
|
14395
|
-
end
|
14396
|
-
|
14397
|
-
# @param body [UpdateTokenizer]
|
14398
|
-
# @param [Hash] opts the optional parameters
|
14399
|
-
# @return [Array<(UpdateTokenizerOutput, Integer, Hash)>] UpdateTokenizerOutput data, response status code and response headers
|
14400
|
-
def update_tokenizer_with_http_info(body, opts = {})
|
14401
|
-
if @api_client.config.debugging
|
14402
|
-
@api_client.config.logger.debug 'Calling API: V2Api.update_tokenizer ...'
|
14403
|
-
end
|
14404
|
-
# verify the required parameter 'body' is set
|
14405
|
-
if @api_client.config.client_side_validation && body.nil?
|
14406
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.update_tokenizer"
|
14407
|
-
end
|
14408
|
-
# resource path
|
14409
|
-
local_var_path = '/update-tokenizer'
|
14410
|
-
|
14411
|
-
# query parameters
|
14412
|
-
query_params = opts[:query_params] || {}
|
14413
|
-
|
14414
|
-
# header parameters
|
14415
|
-
header_params = opts[:header_params] || {}
|
14416
|
-
# HTTP header 'Accept' (if needed)
|
14417
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
14418
|
-
# HTTP header 'Content-Type'
|
14419
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
14420
|
-
if !content_type.nil?
|
14421
|
-
header_params['Content-Type'] = content_type
|
14422
|
-
end
|
14423
|
-
|
14424
|
-
# form parameters
|
14425
|
-
form_params = opts[:form_params] || {}
|
14426
|
-
|
14427
|
-
# http body (model)
|
14428
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
14429
|
-
|
14430
|
-
# return_type
|
14431
|
-
return_type = opts[:debug_return_type] || 'UpdateTokenizerOutput'
|
14432
|
-
|
14433
|
-
# auth_names
|
14434
|
-
auth_names = opts[:debug_auth_names] || []
|
14435
|
-
|
14436
|
-
new_options = opts.merge(
|
14437
|
-
:operation => :"V2Api.update_tokenizer",
|
14438
|
-
:header_params => header_params,
|
14439
|
-
:query_params => query_params,
|
14440
|
-
:form_params => form_params,
|
14441
|
-
:body => post_body,
|
14442
|
-
:auth_names => auth_names,
|
14443
|
-
:return_type => return_type
|
14444
|
-
)
|
14445
|
-
|
14446
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
14447
|
-
if @api_client.config.debugging
|
14448
|
-
@api_client.config.logger.debug "API called: V2Api#update_tokenizer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
14449
|
-
end
|
14450
|
-
return data, status_code, headers
|
14451
|
-
end
|
14452
|
-
|
14453
14453
|
# @param body [UpdateWebTarget]
|
14454
14454
|
# @param [Hash] opts the optional parameters
|
14455
14455
|
# @return [UpdateWebTargetOutput]
|
@@ -27,7 +27,7 @@ module Akeyless
|
|
27
27
|
# Comment about the target
|
28
28
|
attr_accessor :comment
|
29
29
|
|
30
|
-
# The name of a key
|
30
|
+
# The name of a key used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
|
31
31
|
attr_accessor :key
|
32
32
|
|
33
33
|
# Target name
|
@@ -15,12 +15,18 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Akeyless
|
17
17
|
class CreateKeyOutput
|
18
|
+
attr_accessor :display_id
|
19
|
+
|
18
20
|
attr_accessor :fragment_results
|
19
21
|
|
22
|
+
attr_accessor :item_id
|
23
|
+
|
20
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
25
|
def self.attribute_map
|
22
26
|
{
|
23
|
-
:'
|
27
|
+
:'display_id' => :'display_id',
|
28
|
+
:'fragment_results' => :'fragment_results',
|
29
|
+
:'item_id' => :'item_id'
|
24
30
|
}
|
25
31
|
end
|
26
32
|
|
@@ -32,7 +38,9 @@ module Akeyless
|
|
32
38
|
# Attribute type mapping.
|
33
39
|
def self.openapi_types
|
34
40
|
{
|
35
|
-
:'
|
41
|
+
:'display_id' => :'String',
|
42
|
+
:'fragment_results' => :'Array<Integer>',
|
43
|
+
:'item_id' => :'Integer'
|
36
44
|
}
|
37
45
|
end
|
38
46
|
|
@@ -57,11 +65,19 @@ module Akeyless
|
|
57
65
|
h[k.to_sym] = v
|
58
66
|
}
|
59
67
|
|
68
|
+
if attributes.key?(:'display_id')
|
69
|
+
self.display_id = attributes[:'display_id']
|
70
|
+
end
|
71
|
+
|
60
72
|
if attributes.key?(:'fragment_results')
|
61
73
|
if (value = attributes[:'fragment_results']).is_a?(Array)
|
62
74
|
self.fragment_results = value
|
63
75
|
end
|
64
76
|
end
|
77
|
+
|
78
|
+
if attributes.key?(:'item_id')
|
79
|
+
self.item_id = attributes[:'item_id']
|
80
|
+
end
|
65
81
|
end
|
66
82
|
|
67
83
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -82,7 +98,9 @@ module Akeyless
|
|
82
98
|
def ==(o)
|
83
99
|
return true if self.equal?(o)
|
84
100
|
self.class == o.class &&
|
85
|
-
|
101
|
+
display_id == o.display_id &&
|
102
|
+
fragment_results == o.fragment_results &&
|
103
|
+
item_id == o.item_id
|
86
104
|
end
|
87
105
|
|
88
106
|
# @see the `==` method
|
@@ -94,7 +112,7 @@ module Akeyless
|
|
94
112
|
# Calculates hash code according to all attributes.
|
95
113
|
# @return [Integer] Hash code
|
96
114
|
def hash
|
97
|
-
[fragment_results].hash
|
115
|
+
[display_id, fragment_results, item_id].hash
|
98
116
|
end
|
99
117
|
|
100
118
|
# Builds the object from hash
|
@@ -36,6 +36,9 @@ module Akeyless
|
|
36
36
|
# Target name
|
37
37
|
attr_accessor :name
|
38
38
|
|
39
|
+
# Set Ldap server type, Options:[OpenLDAP, ActiveDirectory]. Default is OpenLDAP
|
40
|
+
attr_accessor :server_type
|
41
|
+
|
39
42
|
# Authentication token (see `/auth` and `/configure`)
|
40
43
|
attr_accessor :token
|
41
44
|
|
@@ -55,6 +58,7 @@ module Akeyless
|
|
55
58
|
:'ldap_ca_cert' => :'ldap-ca-cert',
|
56
59
|
:'ldap_url' => :'ldap-url',
|
57
60
|
:'name' => :'name',
|
61
|
+
:'server_type' => :'server-type',
|
58
62
|
:'token' => :'token',
|
59
63
|
:'token_expiration' => :'token-expiration',
|
60
64
|
:'uid_token' => :'uid-token'
|
@@ -76,6 +80,7 @@ module Akeyless
|
|
76
80
|
:'ldap_ca_cert' => :'String',
|
77
81
|
:'ldap_url' => :'String',
|
78
82
|
:'name' => :'String',
|
83
|
+
:'server_type' => :'String',
|
79
84
|
:'token' => :'String',
|
80
85
|
:'token_expiration' => :'String',
|
81
86
|
:'uid_token' => :'String'
|
@@ -131,6 +136,12 @@ module Akeyless
|
|
131
136
|
self.name = attributes[:'name']
|
132
137
|
end
|
133
138
|
|
139
|
+
if attributes.key?(:'server_type')
|
140
|
+
self.server_type = attributes[:'server_type']
|
141
|
+
else
|
142
|
+
self.server_type = 'OpenLDAP'
|
143
|
+
end
|
144
|
+
|
134
145
|
if attributes.key?(:'token')
|
135
146
|
self.token = attributes[:'token']
|
136
147
|
end
|
@@ -189,6 +200,7 @@ module Akeyless
|
|
189
200
|
ldap_ca_cert == o.ldap_ca_cert &&
|
190
201
|
ldap_url == o.ldap_url &&
|
191
202
|
name == o.name &&
|
203
|
+
server_type == o.server_type &&
|
192
204
|
token == o.token &&
|
193
205
|
token_expiration == o.token_expiration &&
|
194
206
|
uid_token == o.uid_token
|
@@ -203,7 +215,7 @@ module Akeyless
|
|
203
215
|
# Calculates hash code according to all attributes.
|
204
216
|
# @return [Integer] Hash code
|
205
217
|
def hash
|
206
|
-
[bind_dn, bind_dn_password, comment, key, ldap_ca_cert, ldap_url, name, token, token_expiration, uid_token].hash
|
218
|
+
[bind_dn, bind_dn_password, comment, key, ldap_ca_cert, ldap_url, name, server_type, token, token_expiration, uid_token].hash
|
207
219
|
end
|
208
220
|
|
209
221
|
# Builds the object from hash
|
@@ -15,6 +15,12 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Akeyless
|
17
17
|
class CreateSalesforceTarget
|
18
|
+
# Base64 encoded PEM of the connected app private key (relevant for JWT auth only)
|
19
|
+
attr_accessor :app_private_key_data
|
20
|
+
|
21
|
+
# type of the auth flow ('jwt' / 'user-password')
|
22
|
+
attr_accessor :auth_flow
|
23
|
+
|
18
24
|
# Base64 encoded PEM cert to use when uploading a new key to Salesforce
|
19
25
|
attr_accessor :ca_cert_data
|
20
26
|
|
@@ -24,7 +30,7 @@ module Akeyless
|
|
24
30
|
# Client ID of the oauth2 app to use for connecting to Salesforce
|
25
31
|
attr_accessor :client_id
|
26
32
|
|
27
|
-
# Client secret of the oauth2 app to use for connecting to Salesforce
|
33
|
+
# Client secret of the oauth2 app to use for connecting to Salesforce (required for password flow)
|
28
34
|
attr_accessor :client_secret
|
29
35
|
|
30
36
|
# Comment about the target
|
@@ -39,10 +45,10 @@ module Akeyless
|
|
39
45
|
# Target name
|
40
46
|
attr_accessor :name
|
41
47
|
|
42
|
-
# The password of the user attached to the oauth2 app used for connecting to Salesforce
|
48
|
+
# The password of the user attached to the oauth2 app used for connecting to Salesforce (required for user-password flow)
|
43
49
|
attr_accessor :password
|
44
50
|
|
45
|
-
# The security token of the user attached to the oauth2 app used for connecting to Salesforce
|
51
|
+
# The security token of the user attached to the oauth2 app used for connecting to Salesforce (required for user-password flow)
|
46
52
|
attr_accessor :security_token
|
47
53
|
|
48
54
|
# Url of the Salesforce tenant
|
@@ -57,6 +63,8 @@ module Akeyless
|
|
57
63
|
# Attribute mapping from ruby-style variable name to JSON key.
|
58
64
|
def self.attribute_map
|
59
65
|
{
|
66
|
+
:'app_private_key_data' => :'app-private-key-data',
|
67
|
+
:'auth_flow' => :'auth-flow',
|
60
68
|
:'ca_cert_data' => :'ca-cert-data',
|
61
69
|
:'ca_cert_name' => :'ca-cert-name',
|
62
70
|
:'client_id' => :'client-id',
|
@@ -81,6 +89,8 @@ module Akeyless
|
|
81
89
|
# Attribute type mapping.
|
82
90
|
def self.openapi_types
|
83
91
|
{
|
92
|
+
:'app_private_key_data' => :'String',
|
93
|
+
:'auth_flow' => :'String',
|
84
94
|
:'ca_cert_data' => :'String',
|
85
95
|
:'ca_cert_name' => :'String',
|
86
96
|
:'client_id' => :'String',
|
@@ -118,6 +128,14 @@ module Akeyless
|
|
118
128
|
h[k.to_sym] = v
|
119
129
|
}
|
120
130
|
|
131
|
+
if attributes.key?(:'app_private_key_data')
|
132
|
+
self.app_private_key_data = attributes[:'app_private_key_data']
|
133
|
+
end
|
134
|
+
|
135
|
+
if attributes.key?(:'auth_flow')
|
136
|
+
self.auth_flow = attributes[:'auth_flow']
|
137
|
+
end
|
138
|
+
|
121
139
|
if attributes.key?(:'ca_cert_data')
|
122
140
|
self.ca_cert_data = attributes[:'ca_cert_data']
|
123
141
|
end
|
@@ -175,12 +193,12 @@ module Akeyless
|
|
175
193
|
# @return Array for valid properties with the reasons
|
176
194
|
def list_invalid_properties
|
177
195
|
invalid_properties = Array.new
|
178
|
-
if @
|
179
|
-
invalid_properties.push('invalid value for "
|
196
|
+
if @auth_flow.nil?
|
197
|
+
invalid_properties.push('invalid value for "auth_flow", auth_flow cannot be nil.')
|
180
198
|
end
|
181
199
|
|
182
|
-
if @
|
183
|
-
invalid_properties.push('invalid value for "
|
200
|
+
if @client_id.nil?
|
201
|
+
invalid_properties.push('invalid value for "client_id", client_id cannot be nil.')
|
184
202
|
end
|
185
203
|
|
186
204
|
if @email.nil?
|
@@ -191,14 +209,6 @@ module Akeyless
|
|
191
209
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
192
210
|
end
|
193
211
|
|
194
|
-
if @password.nil?
|
195
|
-
invalid_properties.push('invalid value for "password", password cannot be nil.')
|
196
|
-
end
|
197
|
-
|
198
|
-
if @security_token.nil?
|
199
|
-
invalid_properties.push('invalid value for "security_token", security_token cannot be nil.')
|
200
|
-
end
|
201
|
-
|
202
212
|
if @tenant_url.nil?
|
203
213
|
invalid_properties.push('invalid value for "tenant_url", tenant_url cannot be nil.')
|
204
214
|
end
|
@@ -209,12 +219,10 @@ module Akeyless
|
|
209
219
|
# Check to see if the all the properties in the model are valid
|
210
220
|
# @return true if the model is valid
|
211
221
|
def valid?
|
222
|
+
return false if @auth_flow.nil?
|
212
223
|
return false if @client_id.nil?
|
213
|
-
return false if @client_secret.nil?
|
214
224
|
return false if @email.nil?
|
215
225
|
return false if @name.nil?
|
216
|
-
return false if @password.nil?
|
217
|
-
return false if @security_token.nil?
|
218
226
|
return false if @tenant_url.nil?
|
219
227
|
true
|
220
228
|
end
|
@@ -224,6 +232,8 @@ module Akeyless
|
|
224
232
|
def ==(o)
|
225
233
|
return true if self.equal?(o)
|
226
234
|
self.class == o.class &&
|
235
|
+
app_private_key_data == o.app_private_key_data &&
|
236
|
+
auth_flow == o.auth_flow &&
|
227
237
|
ca_cert_data == o.ca_cert_data &&
|
228
238
|
ca_cert_name == o.ca_cert_name &&
|
229
239
|
client_id == o.client_id &&
|
@@ -248,7 +258,7 @@ module Akeyless
|
|
248
258
|
# Calculates hash code according to all attributes.
|
249
259
|
# @return [Integer] Hash code
|
250
260
|
def hash
|
251
|
-
[ca_cert_data, ca_cert_name, client_id, client_secret, comment, email, key, name, password, security_token, tenant_url, token, uid_token].hash
|
261
|
+
[app_private_key_data, auth_flow, ca_cert_data, ca_cert_name, client_id, client_secret, comment, email, key, name, password, security_token, tenant_url, token, uid_token].hash
|
252
262
|
end
|
253
263
|
|
254
264
|
# Builds the object from hash
|