akeyless 5.0.32 → 5.0.33
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 +15 -2
- data/docs/AssocTargetItem.md +3 -1
- data/docs/AuthMethod.md +2 -0
- data/docs/KMIPCAListEntry.md +34 -0
- data/docs/KmipGetCABundle.md +22 -0
- data/docs/KmipGetCABundleOutput.md +18 -0
- data/docs/KmipListCAs.md +22 -0
- data/docs/KmipListCAsOutput.md +18 -0
- data/docs/KmipRenewClientCertificate.md +2 -0
- data/docs/KmipRotateCA.md +24 -0
- data/docs/KmipRotateCAOutput.md +22 -0
- data/docs/KmipSunsetCA.md +28 -0
- data/docs/KmipSunsetCAOutput.md +18 -0
- data/docs/RotatedSecretCreateSsh.md +12 -0
- data/docs/RotatedSecretDetailsInfo.md +2 -0
- data/docs/RotatedSecretUpdateSsh.md +12 -0
- data/docs/SAMLAccessRules.md +2 -0
- data/docs/V2Api.md +261 -1
- data/lib/akeyless/api/v2_api.rb +241 -1
- data/lib/akeyless/models/assoc_target_item.rb +14 -2
- data/lib/akeyless/models/auth_method.rb +11 -1
- data/lib/akeyless/models/kmip_get_ca_bundle.rb +237 -0
- data/lib/akeyless/models/kmip_get_ca_bundle_output.rb +214 -0
- data/lib/akeyless/models/kmip_list_cas.rb +237 -0
- data/lib/akeyless/models/kmip_list_cas_output.rb +216 -0
- data/lib/akeyless/models/kmip_renew_client_certificate.rb +11 -1
- data/lib/akeyless/models/kmip_rotate_ca.rb +249 -0
- data/lib/akeyless/models/kmip_rotate_ca_output.rb +232 -0
- data/lib/akeyless/models/kmip_sunset_ca.rb +276 -0
- data/lib/akeyless/models/kmip_sunset_ca_output.rb +214 -0
- data/lib/akeyless/models/kmipca_list_entry.rb +288 -0
- data/lib/akeyless/models/rotated_secret_create_ssh.rb +67 -1
- data/lib/akeyless/models/rotated_secret_details_info.rb +11 -1
- data/lib/akeyless/models/rotated_secret_update_ssh.rb +67 -1
- data/lib/akeyless/models/saml_access_rules.rb +11 -1
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +9 -0
- data/spec/models/kmip_get_ca_bundle_output_spec.rb +36 -0
- data/spec/models/kmip_get_ca_bundle_spec.rb +48 -0
- data/spec/models/kmip_list_cas_output_spec.rb +36 -0
- data/spec/models/kmip_list_cas_spec.rb +48 -0
- data/spec/models/kmip_rotate_ca_output_spec.rb +48 -0
- data/spec/models/kmip_rotate_ca_spec.rb +54 -0
- data/spec/models/kmip_sunset_ca_output_spec.rb +36 -0
- data/spec/models/kmip_sunset_ca_spec.rb +66 -0
- data/spec/models/kmipca_list_entry_spec.rb +84 -0
- metadata +58 -22
data/docs/V2Api.md
CHANGED
|
@@ -380,13 +380,17 @@ All URIs are relative to *https://api.akeyless.io*
|
|
|
380
380
|
| [**kmip_delete_server**](V2Api.md#kmip_delete_server) | **DELETE** /kmip-delete-environment | |
|
|
381
381
|
| [**kmip_describe_client**](V2Api.md#kmip_describe_client) | **POST** /kmip-get-client | |
|
|
382
382
|
| [**kmip_describe_server**](V2Api.md#kmip_describe_server) | **POST** /kmip-get-environment | |
|
|
383
|
+
| [**kmip_get_ca_bundle**](V2Api.md#kmip_get_ca_bundle) | **POST** /kmip-get-ca-bundle | |
|
|
384
|
+
| [**kmip_list_cas**](V2Api.md#kmip_list_cas) | **POST** /kmip-list-cas | |
|
|
383
385
|
| [**kmip_list_clients**](V2Api.md#kmip_list_clients) | **POST** /kmip-list-clients | |
|
|
384
386
|
| [**kmip_move_server**](V2Api.md#kmip_move_server) | **POST** /kmip-move-environment | |
|
|
385
|
-
| [**kmip_renew_client_certificate**](V2Api.md#kmip_renew_client_certificate) | **POST** /kmip-renew-client | |
|
|
387
|
+
| [**kmip_renew_client_certificate**](V2Api.md#kmip_renew_client_certificate) | **POST** /kmip-renew-client-certificate | |
|
|
386
388
|
| [**kmip_renew_server_certificate**](V2Api.md#kmip_renew_server_certificate) | **POST** /kmip-renew-environment | |
|
|
389
|
+
| [**kmip_rotate_ca**](V2Api.md#kmip_rotate_ca) | **POST** /kmip-rotate-ca | |
|
|
387
390
|
| [**kmip_server_setup**](V2Api.md#kmip_server_setup) | **POST** /kmip-create-environment | |
|
|
388
391
|
| [**kmip_server_update**](V2Api.md#kmip_server_update) | **POST** /kmip-server-update | |
|
|
389
392
|
| [**kmip_set_server_state**](V2Api.md#kmip_set_server_state) | **POST** /kmip-set-environment-state | |
|
|
393
|
+
| [**kmip_sunset_ca**](V2Api.md#kmip_sunset_ca) | **POST** /kmip-sunset-ca | |
|
|
390
394
|
| [**kubeconfig_generate**](V2Api.md#kubeconfig_generate) | **POST** /kubeconfig-generate | |
|
|
391
395
|
| [**list_acme_accounts**](V2Api.md#list_acme_accounts) | **POST** /list-acme-accounts | |
|
|
392
396
|
| [**list_auth_methods**](V2Api.md#list_auth_methods) | **POST** /list-auth-methods | |
|
|
@@ -23990,6 +23994,134 @@ No authorization required
|
|
|
23990
23994
|
- **Accept**: application/json
|
|
23991
23995
|
|
|
23992
23996
|
|
|
23997
|
+
## kmip_get_ca_bundle
|
|
23998
|
+
|
|
23999
|
+
> <KmipGetCABundleOutput> kmip_get_ca_bundle(opts)
|
|
24000
|
+
|
|
24001
|
+
|
|
24002
|
+
|
|
24003
|
+
### Examples
|
|
24004
|
+
|
|
24005
|
+
```ruby
|
|
24006
|
+
require 'time'
|
|
24007
|
+
require 'akeyless'
|
|
24008
|
+
|
|
24009
|
+
api_instance = Akeyless::V2Api.new
|
|
24010
|
+
opts = {
|
|
24011
|
+
kmip_get_ca_bundle: Akeyless::KmipGetCABundle.new # KmipGetCABundle |
|
|
24012
|
+
}
|
|
24013
|
+
|
|
24014
|
+
begin
|
|
24015
|
+
|
|
24016
|
+
result = api_instance.kmip_get_ca_bundle(opts)
|
|
24017
|
+
p result
|
|
24018
|
+
rescue Akeyless::ApiError => e
|
|
24019
|
+
puts "Error when calling V2Api->kmip_get_ca_bundle: #{e}"
|
|
24020
|
+
end
|
|
24021
|
+
```
|
|
24022
|
+
|
|
24023
|
+
#### Using the kmip_get_ca_bundle_with_http_info variant
|
|
24024
|
+
|
|
24025
|
+
This returns an Array which contains the response data, status code and headers.
|
|
24026
|
+
|
|
24027
|
+
> <Array(<KmipGetCABundleOutput>, Integer, Hash)> kmip_get_ca_bundle_with_http_info(opts)
|
|
24028
|
+
|
|
24029
|
+
```ruby
|
|
24030
|
+
begin
|
|
24031
|
+
|
|
24032
|
+
data, status_code, headers = api_instance.kmip_get_ca_bundle_with_http_info(opts)
|
|
24033
|
+
p status_code # => 2xx
|
|
24034
|
+
p headers # => { ... }
|
|
24035
|
+
p data # => <KmipGetCABundleOutput>
|
|
24036
|
+
rescue Akeyless::ApiError => e
|
|
24037
|
+
puts "Error when calling V2Api->kmip_get_ca_bundle_with_http_info: #{e}"
|
|
24038
|
+
end
|
|
24039
|
+
```
|
|
24040
|
+
|
|
24041
|
+
### Parameters
|
|
24042
|
+
|
|
24043
|
+
| Name | Type | Description | Notes |
|
|
24044
|
+
| ---- | ---- | ----------- | ----- |
|
|
24045
|
+
| **kmip_get_ca_bundle** | [**KmipGetCABundle**](KmipGetCABundle.md) | | [optional] |
|
|
24046
|
+
|
|
24047
|
+
### Return type
|
|
24048
|
+
|
|
24049
|
+
[**KmipGetCABundleOutput**](KmipGetCABundleOutput.md)
|
|
24050
|
+
|
|
24051
|
+
### Authorization
|
|
24052
|
+
|
|
24053
|
+
No authorization required
|
|
24054
|
+
|
|
24055
|
+
### HTTP request headers
|
|
24056
|
+
|
|
24057
|
+
- **Content-Type**: application/json
|
|
24058
|
+
- **Accept**: application/json
|
|
24059
|
+
|
|
24060
|
+
|
|
24061
|
+
## kmip_list_cas
|
|
24062
|
+
|
|
24063
|
+
> <KmipListCAsOutput> kmip_list_cas(opts)
|
|
24064
|
+
|
|
24065
|
+
|
|
24066
|
+
|
|
24067
|
+
### Examples
|
|
24068
|
+
|
|
24069
|
+
```ruby
|
|
24070
|
+
require 'time'
|
|
24071
|
+
require 'akeyless'
|
|
24072
|
+
|
|
24073
|
+
api_instance = Akeyless::V2Api.new
|
|
24074
|
+
opts = {
|
|
24075
|
+
kmip_list_cas: Akeyless::KmipListCAs.new # KmipListCAs |
|
|
24076
|
+
}
|
|
24077
|
+
|
|
24078
|
+
begin
|
|
24079
|
+
|
|
24080
|
+
result = api_instance.kmip_list_cas(opts)
|
|
24081
|
+
p result
|
|
24082
|
+
rescue Akeyless::ApiError => e
|
|
24083
|
+
puts "Error when calling V2Api->kmip_list_cas: #{e}"
|
|
24084
|
+
end
|
|
24085
|
+
```
|
|
24086
|
+
|
|
24087
|
+
#### Using the kmip_list_cas_with_http_info variant
|
|
24088
|
+
|
|
24089
|
+
This returns an Array which contains the response data, status code and headers.
|
|
24090
|
+
|
|
24091
|
+
> <Array(<KmipListCAsOutput>, Integer, Hash)> kmip_list_cas_with_http_info(opts)
|
|
24092
|
+
|
|
24093
|
+
```ruby
|
|
24094
|
+
begin
|
|
24095
|
+
|
|
24096
|
+
data, status_code, headers = api_instance.kmip_list_cas_with_http_info(opts)
|
|
24097
|
+
p status_code # => 2xx
|
|
24098
|
+
p headers # => { ... }
|
|
24099
|
+
p data # => <KmipListCAsOutput>
|
|
24100
|
+
rescue Akeyless::ApiError => e
|
|
24101
|
+
puts "Error when calling V2Api->kmip_list_cas_with_http_info: #{e}"
|
|
24102
|
+
end
|
|
24103
|
+
```
|
|
24104
|
+
|
|
24105
|
+
### Parameters
|
|
24106
|
+
|
|
24107
|
+
| Name | Type | Description | Notes |
|
|
24108
|
+
| ---- | ---- | ----------- | ----- |
|
|
24109
|
+
| **kmip_list_cas** | [**KmipListCAs**](KmipListCAs.md) | | [optional] |
|
|
24110
|
+
|
|
24111
|
+
### Return type
|
|
24112
|
+
|
|
24113
|
+
[**KmipListCAsOutput**](KmipListCAsOutput.md)
|
|
24114
|
+
|
|
24115
|
+
### Authorization
|
|
24116
|
+
|
|
24117
|
+
No authorization required
|
|
24118
|
+
|
|
24119
|
+
### HTTP request headers
|
|
24120
|
+
|
|
24121
|
+
- **Content-Type**: application/json
|
|
24122
|
+
- **Accept**: application/json
|
|
24123
|
+
|
|
24124
|
+
|
|
23993
24125
|
## kmip_list_clients
|
|
23994
24126
|
|
|
23995
24127
|
> <KMIPClientListResponse> kmip_list_clients(opts)
|
|
@@ -24246,6 +24378,70 @@ No authorization required
|
|
|
24246
24378
|
- **Accept**: application/json
|
|
24247
24379
|
|
|
24248
24380
|
|
|
24381
|
+
## kmip_rotate_ca
|
|
24382
|
+
|
|
24383
|
+
> <KmipRotateCAOutput> kmip_rotate_ca(opts)
|
|
24384
|
+
|
|
24385
|
+
|
|
24386
|
+
|
|
24387
|
+
### Examples
|
|
24388
|
+
|
|
24389
|
+
```ruby
|
|
24390
|
+
require 'time'
|
|
24391
|
+
require 'akeyless'
|
|
24392
|
+
|
|
24393
|
+
api_instance = Akeyless::V2Api.new
|
|
24394
|
+
opts = {
|
|
24395
|
+
kmip_rotate_ca: Akeyless::KmipRotateCA.new # KmipRotateCA |
|
|
24396
|
+
}
|
|
24397
|
+
|
|
24398
|
+
begin
|
|
24399
|
+
|
|
24400
|
+
result = api_instance.kmip_rotate_ca(opts)
|
|
24401
|
+
p result
|
|
24402
|
+
rescue Akeyless::ApiError => e
|
|
24403
|
+
puts "Error when calling V2Api->kmip_rotate_ca: #{e}"
|
|
24404
|
+
end
|
|
24405
|
+
```
|
|
24406
|
+
|
|
24407
|
+
#### Using the kmip_rotate_ca_with_http_info variant
|
|
24408
|
+
|
|
24409
|
+
This returns an Array which contains the response data, status code and headers.
|
|
24410
|
+
|
|
24411
|
+
> <Array(<KmipRotateCAOutput>, Integer, Hash)> kmip_rotate_ca_with_http_info(opts)
|
|
24412
|
+
|
|
24413
|
+
```ruby
|
|
24414
|
+
begin
|
|
24415
|
+
|
|
24416
|
+
data, status_code, headers = api_instance.kmip_rotate_ca_with_http_info(opts)
|
|
24417
|
+
p status_code # => 2xx
|
|
24418
|
+
p headers # => { ... }
|
|
24419
|
+
p data # => <KmipRotateCAOutput>
|
|
24420
|
+
rescue Akeyless::ApiError => e
|
|
24421
|
+
puts "Error when calling V2Api->kmip_rotate_ca_with_http_info: #{e}"
|
|
24422
|
+
end
|
|
24423
|
+
```
|
|
24424
|
+
|
|
24425
|
+
### Parameters
|
|
24426
|
+
|
|
24427
|
+
| Name | Type | Description | Notes |
|
|
24428
|
+
| ---- | ---- | ----------- | ----- |
|
|
24429
|
+
| **kmip_rotate_ca** | [**KmipRotateCA**](KmipRotateCA.md) | | [optional] |
|
|
24430
|
+
|
|
24431
|
+
### Return type
|
|
24432
|
+
|
|
24433
|
+
[**KmipRotateCAOutput**](KmipRotateCAOutput.md)
|
|
24434
|
+
|
|
24435
|
+
### Authorization
|
|
24436
|
+
|
|
24437
|
+
No authorization required
|
|
24438
|
+
|
|
24439
|
+
### HTTP request headers
|
|
24440
|
+
|
|
24441
|
+
- **Content-Type**: application/json
|
|
24442
|
+
- **Accept**: application/json
|
|
24443
|
+
|
|
24444
|
+
|
|
24249
24445
|
## kmip_server_setup
|
|
24250
24446
|
|
|
24251
24447
|
> <KMIPEnvironmentCreateResponse> kmip_server_setup(opts)
|
|
@@ -24438,6 +24634,70 @@ No authorization required
|
|
|
24438
24634
|
- **Accept**: application/json
|
|
24439
24635
|
|
|
24440
24636
|
|
|
24637
|
+
## kmip_sunset_ca
|
|
24638
|
+
|
|
24639
|
+
> <KmipSunsetCAOutput> kmip_sunset_ca(opts)
|
|
24640
|
+
|
|
24641
|
+
|
|
24642
|
+
|
|
24643
|
+
### Examples
|
|
24644
|
+
|
|
24645
|
+
```ruby
|
|
24646
|
+
require 'time'
|
|
24647
|
+
require 'akeyless'
|
|
24648
|
+
|
|
24649
|
+
api_instance = Akeyless::V2Api.new
|
|
24650
|
+
opts = {
|
|
24651
|
+
kmip_sunset_ca: Akeyless::KmipSunsetCA.new({ca_id: 'ca_id_example'}) # KmipSunsetCA |
|
|
24652
|
+
}
|
|
24653
|
+
|
|
24654
|
+
begin
|
|
24655
|
+
|
|
24656
|
+
result = api_instance.kmip_sunset_ca(opts)
|
|
24657
|
+
p result
|
|
24658
|
+
rescue Akeyless::ApiError => e
|
|
24659
|
+
puts "Error when calling V2Api->kmip_sunset_ca: #{e}"
|
|
24660
|
+
end
|
|
24661
|
+
```
|
|
24662
|
+
|
|
24663
|
+
#### Using the kmip_sunset_ca_with_http_info variant
|
|
24664
|
+
|
|
24665
|
+
This returns an Array which contains the response data, status code and headers.
|
|
24666
|
+
|
|
24667
|
+
> <Array(<KmipSunsetCAOutput>, Integer, Hash)> kmip_sunset_ca_with_http_info(opts)
|
|
24668
|
+
|
|
24669
|
+
```ruby
|
|
24670
|
+
begin
|
|
24671
|
+
|
|
24672
|
+
data, status_code, headers = api_instance.kmip_sunset_ca_with_http_info(opts)
|
|
24673
|
+
p status_code # => 2xx
|
|
24674
|
+
p headers # => { ... }
|
|
24675
|
+
p data # => <KmipSunsetCAOutput>
|
|
24676
|
+
rescue Akeyless::ApiError => e
|
|
24677
|
+
puts "Error when calling V2Api->kmip_sunset_ca_with_http_info: #{e}"
|
|
24678
|
+
end
|
|
24679
|
+
```
|
|
24680
|
+
|
|
24681
|
+
### Parameters
|
|
24682
|
+
|
|
24683
|
+
| Name | Type | Description | Notes |
|
|
24684
|
+
| ---- | ---- | ----------- | ----- |
|
|
24685
|
+
| **kmip_sunset_ca** | [**KmipSunsetCA**](KmipSunsetCA.md) | | [optional] |
|
|
24686
|
+
|
|
24687
|
+
### Return type
|
|
24688
|
+
|
|
24689
|
+
[**KmipSunsetCAOutput**](KmipSunsetCAOutput.md)
|
|
24690
|
+
|
|
24691
|
+
### Authorization
|
|
24692
|
+
|
|
24693
|
+
No authorization required
|
|
24694
|
+
|
|
24695
|
+
### HTTP request headers
|
|
24696
|
+
|
|
24697
|
+
- **Content-Type**: application/json
|
|
24698
|
+
- **Accept**: application/json
|
|
24699
|
+
|
|
24700
|
+
|
|
24441
24701
|
## kubeconfig_generate
|
|
24442
24702
|
|
|
24443
24703
|
> <KubeconfigGenerateOutput> kubeconfig_generate
|
data/lib/akeyless/api/v2_api.rb
CHANGED
|
@@ -24032,6 +24032,126 @@ module Akeyless
|
|
|
24032
24032
|
return data, status_code, headers
|
|
24033
24033
|
end
|
|
24034
24034
|
|
|
24035
|
+
# @param [Hash] opts the optional parameters
|
|
24036
|
+
# @option opts [KmipGetCABundle] :kmip_get_ca_bundle
|
|
24037
|
+
# @return [KmipGetCABundleOutput]
|
|
24038
|
+
def kmip_get_ca_bundle(opts = {})
|
|
24039
|
+
data, _status_code, _headers = kmip_get_ca_bundle_with_http_info(opts)
|
|
24040
|
+
data
|
|
24041
|
+
end
|
|
24042
|
+
|
|
24043
|
+
# @param [Hash] opts the optional parameters
|
|
24044
|
+
# @option opts [KmipGetCABundle] :kmip_get_ca_bundle
|
|
24045
|
+
# @return [Array<(KmipGetCABundleOutput, Integer, Hash)>] KmipGetCABundleOutput data, response status code and response headers
|
|
24046
|
+
def kmip_get_ca_bundle_with_http_info(opts = {})
|
|
24047
|
+
if @api_client.config.debugging
|
|
24048
|
+
@api_client.config.logger.debug 'Calling API: V2Api.kmip_get_ca_bundle ...'
|
|
24049
|
+
end
|
|
24050
|
+
# resource path
|
|
24051
|
+
local_var_path = '/kmip-get-ca-bundle'
|
|
24052
|
+
|
|
24053
|
+
# query parameters
|
|
24054
|
+
query_params = opts[:query_params] || {}
|
|
24055
|
+
|
|
24056
|
+
# header parameters
|
|
24057
|
+
header_params = opts[:header_params] || {}
|
|
24058
|
+
# HTTP header 'Accept' (if needed)
|
|
24059
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
24060
|
+
# HTTP header 'Content-Type'
|
|
24061
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
24062
|
+
if !content_type.nil?
|
|
24063
|
+
header_params['Content-Type'] = content_type
|
|
24064
|
+
end
|
|
24065
|
+
|
|
24066
|
+
# form parameters
|
|
24067
|
+
form_params = opts[:form_params] || {}
|
|
24068
|
+
|
|
24069
|
+
# http body (model)
|
|
24070
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'kmip_get_ca_bundle'])
|
|
24071
|
+
|
|
24072
|
+
# return_type
|
|
24073
|
+
return_type = opts[:debug_return_type] || 'KmipGetCABundleOutput'
|
|
24074
|
+
|
|
24075
|
+
# auth_names
|
|
24076
|
+
auth_names = opts[:debug_auth_names] || []
|
|
24077
|
+
|
|
24078
|
+
new_options = opts.merge(
|
|
24079
|
+
:operation => :"V2Api.kmip_get_ca_bundle",
|
|
24080
|
+
:header_params => header_params,
|
|
24081
|
+
:query_params => query_params,
|
|
24082
|
+
:form_params => form_params,
|
|
24083
|
+
:body => post_body,
|
|
24084
|
+
:auth_names => auth_names,
|
|
24085
|
+
:return_type => return_type
|
|
24086
|
+
)
|
|
24087
|
+
|
|
24088
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
24089
|
+
if @api_client.config.debugging
|
|
24090
|
+
@api_client.config.logger.debug "API called: V2Api#kmip_get_ca_bundle\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
24091
|
+
end
|
|
24092
|
+
return data, status_code, headers
|
|
24093
|
+
end
|
|
24094
|
+
|
|
24095
|
+
# @param [Hash] opts the optional parameters
|
|
24096
|
+
# @option opts [KmipListCAs] :kmip_list_cas
|
|
24097
|
+
# @return [KmipListCAsOutput]
|
|
24098
|
+
def kmip_list_cas(opts = {})
|
|
24099
|
+
data, _status_code, _headers = kmip_list_cas_with_http_info(opts)
|
|
24100
|
+
data
|
|
24101
|
+
end
|
|
24102
|
+
|
|
24103
|
+
# @param [Hash] opts the optional parameters
|
|
24104
|
+
# @option opts [KmipListCAs] :kmip_list_cas
|
|
24105
|
+
# @return [Array<(KmipListCAsOutput, Integer, Hash)>] KmipListCAsOutput data, response status code and response headers
|
|
24106
|
+
def kmip_list_cas_with_http_info(opts = {})
|
|
24107
|
+
if @api_client.config.debugging
|
|
24108
|
+
@api_client.config.logger.debug 'Calling API: V2Api.kmip_list_cas ...'
|
|
24109
|
+
end
|
|
24110
|
+
# resource path
|
|
24111
|
+
local_var_path = '/kmip-list-cas'
|
|
24112
|
+
|
|
24113
|
+
# query parameters
|
|
24114
|
+
query_params = opts[:query_params] || {}
|
|
24115
|
+
|
|
24116
|
+
# header parameters
|
|
24117
|
+
header_params = opts[:header_params] || {}
|
|
24118
|
+
# HTTP header 'Accept' (if needed)
|
|
24119
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
24120
|
+
# HTTP header 'Content-Type'
|
|
24121
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
24122
|
+
if !content_type.nil?
|
|
24123
|
+
header_params['Content-Type'] = content_type
|
|
24124
|
+
end
|
|
24125
|
+
|
|
24126
|
+
# form parameters
|
|
24127
|
+
form_params = opts[:form_params] || {}
|
|
24128
|
+
|
|
24129
|
+
# http body (model)
|
|
24130
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'kmip_list_cas'])
|
|
24131
|
+
|
|
24132
|
+
# return_type
|
|
24133
|
+
return_type = opts[:debug_return_type] || 'KmipListCAsOutput'
|
|
24134
|
+
|
|
24135
|
+
# auth_names
|
|
24136
|
+
auth_names = opts[:debug_auth_names] || []
|
|
24137
|
+
|
|
24138
|
+
new_options = opts.merge(
|
|
24139
|
+
:operation => :"V2Api.kmip_list_cas",
|
|
24140
|
+
:header_params => header_params,
|
|
24141
|
+
:query_params => query_params,
|
|
24142
|
+
:form_params => form_params,
|
|
24143
|
+
:body => post_body,
|
|
24144
|
+
:auth_names => auth_names,
|
|
24145
|
+
:return_type => return_type
|
|
24146
|
+
)
|
|
24147
|
+
|
|
24148
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
24149
|
+
if @api_client.config.debugging
|
|
24150
|
+
@api_client.config.logger.debug "API called: V2Api#kmip_list_cas\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
24151
|
+
end
|
|
24152
|
+
return data, status_code, headers
|
|
24153
|
+
end
|
|
24154
|
+
|
|
24035
24155
|
# @param [Hash] opts the optional parameters
|
|
24036
24156
|
# @option opts [KmipListClients] :kmip_list_clients
|
|
24037
24157
|
# @return [KMIPClientListResponse]
|
|
@@ -24168,7 +24288,7 @@ module Akeyless
|
|
|
24168
24288
|
@api_client.config.logger.debug 'Calling API: V2Api.kmip_renew_client_certificate ...'
|
|
24169
24289
|
end
|
|
24170
24290
|
# resource path
|
|
24171
|
-
local_var_path = '/kmip-renew-client'
|
|
24291
|
+
local_var_path = '/kmip-renew-client-certificate'
|
|
24172
24292
|
|
|
24173
24293
|
# query parameters
|
|
24174
24294
|
query_params = opts[:query_params] || {}
|
|
@@ -24272,6 +24392,66 @@ module Akeyless
|
|
|
24272
24392
|
return data, status_code, headers
|
|
24273
24393
|
end
|
|
24274
24394
|
|
|
24395
|
+
# @param [Hash] opts the optional parameters
|
|
24396
|
+
# @option opts [KmipRotateCA] :kmip_rotate_ca
|
|
24397
|
+
# @return [KmipRotateCAOutput]
|
|
24398
|
+
def kmip_rotate_ca(opts = {})
|
|
24399
|
+
data, _status_code, _headers = kmip_rotate_ca_with_http_info(opts)
|
|
24400
|
+
data
|
|
24401
|
+
end
|
|
24402
|
+
|
|
24403
|
+
# @param [Hash] opts the optional parameters
|
|
24404
|
+
# @option opts [KmipRotateCA] :kmip_rotate_ca
|
|
24405
|
+
# @return [Array<(KmipRotateCAOutput, Integer, Hash)>] KmipRotateCAOutput data, response status code and response headers
|
|
24406
|
+
def kmip_rotate_ca_with_http_info(opts = {})
|
|
24407
|
+
if @api_client.config.debugging
|
|
24408
|
+
@api_client.config.logger.debug 'Calling API: V2Api.kmip_rotate_ca ...'
|
|
24409
|
+
end
|
|
24410
|
+
# resource path
|
|
24411
|
+
local_var_path = '/kmip-rotate-ca'
|
|
24412
|
+
|
|
24413
|
+
# query parameters
|
|
24414
|
+
query_params = opts[:query_params] || {}
|
|
24415
|
+
|
|
24416
|
+
# header parameters
|
|
24417
|
+
header_params = opts[:header_params] || {}
|
|
24418
|
+
# HTTP header 'Accept' (if needed)
|
|
24419
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
24420
|
+
# HTTP header 'Content-Type'
|
|
24421
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
24422
|
+
if !content_type.nil?
|
|
24423
|
+
header_params['Content-Type'] = content_type
|
|
24424
|
+
end
|
|
24425
|
+
|
|
24426
|
+
# form parameters
|
|
24427
|
+
form_params = opts[:form_params] || {}
|
|
24428
|
+
|
|
24429
|
+
# http body (model)
|
|
24430
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'kmip_rotate_ca'])
|
|
24431
|
+
|
|
24432
|
+
# return_type
|
|
24433
|
+
return_type = opts[:debug_return_type] || 'KmipRotateCAOutput'
|
|
24434
|
+
|
|
24435
|
+
# auth_names
|
|
24436
|
+
auth_names = opts[:debug_auth_names] || []
|
|
24437
|
+
|
|
24438
|
+
new_options = opts.merge(
|
|
24439
|
+
:operation => :"V2Api.kmip_rotate_ca",
|
|
24440
|
+
:header_params => header_params,
|
|
24441
|
+
:query_params => query_params,
|
|
24442
|
+
:form_params => form_params,
|
|
24443
|
+
:body => post_body,
|
|
24444
|
+
:auth_names => auth_names,
|
|
24445
|
+
:return_type => return_type
|
|
24446
|
+
)
|
|
24447
|
+
|
|
24448
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
24449
|
+
if @api_client.config.debugging
|
|
24450
|
+
@api_client.config.logger.debug "API called: V2Api#kmip_rotate_ca\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
24451
|
+
end
|
|
24452
|
+
return data, status_code, headers
|
|
24453
|
+
end
|
|
24454
|
+
|
|
24275
24455
|
# @param [Hash] opts the optional parameters
|
|
24276
24456
|
# @option opts [KmipServerSetup] :kmip_server_setup
|
|
24277
24457
|
# @return [KMIPEnvironmentCreateResponse]
|
|
@@ -24452,6 +24632,66 @@ module Akeyless
|
|
|
24452
24632
|
return data, status_code, headers
|
|
24453
24633
|
end
|
|
24454
24634
|
|
|
24635
|
+
# @param [Hash] opts the optional parameters
|
|
24636
|
+
# @option opts [KmipSunsetCA] :kmip_sunset_ca
|
|
24637
|
+
# @return [KmipSunsetCAOutput]
|
|
24638
|
+
def kmip_sunset_ca(opts = {})
|
|
24639
|
+
data, _status_code, _headers = kmip_sunset_ca_with_http_info(opts)
|
|
24640
|
+
data
|
|
24641
|
+
end
|
|
24642
|
+
|
|
24643
|
+
# @param [Hash] opts the optional parameters
|
|
24644
|
+
# @option opts [KmipSunsetCA] :kmip_sunset_ca
|
|
24645
|
+
# @return [Array<(KmipSunsetCAOutput, Integer, Hash)>] KmipSunsetCAOutput data, response status code and response headers
|
|
24646
|
+
def kmip_sunset_ca_with_http_info(opts = {})
|
|
24647
|
+
if @api_client.config.debugging
|
|
24648
|
+
@api_client.config.logger.debug 'Calling API: V2Api.kmip_sunset_ca ...'
|
|
24649
|
+
end
|
|
24650
|
+
# resource path
|
|
24651
|
+
local_var_path = '/kmip-sunset-ca'
|
|
24652
|
+
|
|
24653
|
+
# query parameters
|
|
24654
|
+
query_params = opts[:query_params] || {}
|
|
24655
|
+
|
|
24656
|
+
# header parameters
|
|
24657
|
+
header_params = opts[:header_params] || {}
|
|
24658
|
+
# HTTP header 'Accept' (if needed)
|
|
24659
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
24660
|
+
# HTTP header 'Content-Type'
|
|
24661
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
24662
|
+
if !content_type.nil?
|
|
24663
|
+
header_params['Content-Type'] = content_type
|
|
24664
|
+
end
|
|
24665
|
+
|
|
24666
|
+
# form parameters
|
|
24667
|
+
form_params = opts[:form_params] || {}
|
|
24668
|
+
|
|
24669
|
+
# http body (model)
|
|
24670
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'kmip_sunset_ca'])
|
|
24671
|
+
|
|
24672
|
+
# return_type
|
|
24673
|
+
return_type = opts[:debug_return_type] || 'KmipSunsetCAOutput'
|
|
24674
|
+
|
|
24675
|
+
# auth_names
|
|
24676
|
+
auth_names = opts[:debug_auth_names] || []
|
|
24677
|
+
|
|
24678
|
+
new_options = opts.merge(
|
|
24679
|
+
:operation => :"V2Api.kmip_sunset_ca",
|
|
24680
|
+
:header_params => header_params,
|
|
24681
|
+
:query_params => query_params,
|
|
24682
|
+
:form_params => form_params,
|
|
24683
|
+
:body => post_body,
|
|
24684
|
+
:auth_names => auth_names,
|
|
24685
|
+
:return_type => return_type
|
|
24686
|
+
)
|
|
24687
|
+
|
|
24688
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
24689
|
+
if @api_client.config.debugging
|
|
24690
|
+
@api_client.config.logger.debug "API called: V2Api#kmip_sunset_ca\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
24691
|
+
end
|
|
24692
|
+
return data, status_code, headers
|
|
24693
|
+
end
|
|
24694
|
+
|
|
24455
24695
|
# @param [Hash] opts the optional parameters
|
|
24456
24696
|
# @return [KubeconfigGenerateOutput]
|
|
24457
24697
|
def kubeconfig_generate(opts = {})
|
|
@@ -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
|
+
# Bind the provisioned certificate to an existing client-ssl/server-ssl profile, in the format <type>:<partition>:<name> (relevant only for F5 BIG-IP certificate provisioning). Leave the partition empty to use the certificate's partition. Repeat the parameter to bind several profiles.
|
|
20
|
+
attr_accessor :bind_ssl_profiles
|
|
21
|
+
|
|
19
22
|
# A path on the target to store the certificate pem file (relevant only for certificate provisioning)
|
|
20
23
|
attr_accessor :certificate_path
|
|
21
24
|
|
|
@@ -49,7 +52,7 @@ module Akeyless
|
|
|
49
52
|
# The item to associate
|
|
50
53
|
attr_accessor :name
|
|
51
54
|
|
|
52
|
-
# A custom command to run on the remote target after successful provisioning (relevant only for certificate provisioning)
|
|
55
|
+
# A custom command to run on the remote target after successful provisioning (relevant only for SSH and Windows certificate provisioning, not supported for F5 BIG-IP)
|
|
53
56
|
attr_accessor :post_provision_command
|
|
54
57
|
|
|
55
58
|
# A path on the target to store the private key (relevant only for certificate provisioning)
|
|
@@ -88,6 +91,7 @@ module Akeyless
|
|
|
88
91
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
89
92
|
def self.attribute_map
|
|
90
93
|
{
|
|
94
|
+
:'bind_ssl_profiles' => :'bind-ssl-profiles',
|
|
91
95
|
:'certificate_path' => :'certificate-path',
|
|
92
96
|
:'chain_path' => :'chain-path',
|
|
93
97
|
:'disable_previous_key_version' => :'disable-previous-key-version',
|
|
@@ -122,6 +126,7 @@ module Akeyless
|
|
|
122
126
|
# Attribute type mapping.
|
|
123
127
|
def self.openapi_types
|
|
124
128
|
{
|
|
129
|
+
:'bind_ssl_profiles' => :'Array<String>',
|
|
125
130
|
:'certificate_path' => :'String',
|
|
126
131
|
:'chain_path' => :'String',
|
|
127
132
|
:'disable_previous_key_version' => :'Boolean',
|
|
@@ -169,6 +174,12 @@ module Akeyless
|
|
|
169
174
|
h[k.to_sym] = v
|
|
170
175
|
}
|
|
171
176
|
|
|
177
|
+
if attributes.key?(:'bind_ssl_profiles')
|
|
178
|
+
if (value = attributes[:'bind_ssl_profiles']).is_a?(Array)
|
|
179
|
+
self.bind_ssl_profiles = value
|
|
180
|
+
end
|
|
181
|
+
end
|
|
182
|
+
|
|
172
183
|
if attributes.key?(:'certificate_path')
|
|
173
184
|
self.certificate_path = attributes[:'certificate_path']
|
|
174
185
|
end
|
|
@@ -310,6 +321,7 @@ module Akeyless
|
|
|
310
321
|
def ==(o)
|
|
311
322
|
return true if self.equal?(o)
|
|
312
323
|
self.class == o.class &&
|
|
324
|
+
bind_ssl_profiles == o.bind_ssl_profiles &&
|
|
313
325
|
certificate_path == o.certificate_path &&
|
|
314
326
|
chain_path == o.chain_path &&
|
|
315
327
|
disable_previous_key_version == o.disable_previous_key_version &&
|
|
@@ -344,7 +356,7 @@ module Akeyless
|
|
|
344
356
|
# Calculates hash code according to all attributes.
|
|
345
357
|
# @return [Integer] Hash code
|
|
346
358
|
def hash
|
|
347
|
-
[certificate_path, chain_path, disable_previous_key_version, external_key_name, json, key_operations, keyring_name, kms_algorithm, location_id, multi_region, name, post_provision_command, private_key_path, project_id, protection_level, purpose, regions, sra_association, target_name, tenant_secret_type, token, uid_token, vault_name].hash
|
|
359
|
+
[bind_ssl_profiles, certificate_path, chain_path, disable_previous_key_version, external_key_name, json, key_operations, keyring_name, kms_algorithm, location_id, multi_region, name, post_provision_command, private_key_path, project_id, protection_level, purpose, regions, sra_association, target_name, tenant_secret_type, token, uid_token, vault_name].hash
|
|
348
360
|
end
|
|
349
361
|
|
|
350
362
|
# Builds the object from hash
|
|
@@ -35,6 +35,9 @@ module Akeyless
|
|
|
35
35
|
|
|
36
36
|
attr_accessor :auth_method_roles_assoc
|
|
37
37
|
|
|
38
|
+
# BookmarkLoginURLTemplate is an OIDC login URL template for console bookmarks. SaaS-owned methods use {redirect_uri} for client substitution; AuthViaGw embeds the GW console callback.
|
|
39
|
+
attr_accessor :bookmark_login_url_template
|
|
40
|
+
|
|
38
41
|
attr_accessor :client_permissions
|
|
39
42
|
|
|
40
43
|
attr_accessor :creation_date
|
|
@@ -64,6 +67,7 @@ module Akeyless
|
|
|
64
67
|
:'auth_method_id' => :'auth_method_id',
|
|
65
68
|
:'auth_method_name' => :'auth_method_name',
|
|
66
69
|
:'auth_method_roles_assoc' => :'auth_method_roles_assoc',
|
|
70
|
+
:'bookmark_login_url_template' => :'bookmark_login_url_template',
|
|
67
71
|
:'client_permissions' => :'client_permissions',
|
|
68
72
|
:'creation_date' => :'creation_date',
|
|
69
73
|
:'delete_protection' => :'delete_protection',
|
|
@@ -93,6 +97,7 @@ module Akeyless
|
|
|
93
97
|
:'auth_method_id' => :'Integer',
|
|
94
98
|
:'auth_method_name' => :'String',
|
|
95
99
|
:'auth_method_roles_assoc' => :'Array<AuthMethodRoleAssociation>',
|
|
100
|
+
:'bookmark_login_url_template' => :'String',
|
|
96
101
|
:'client_permissions' => :'Array<String>',
|
|
97
102
|
:'creation_date' => :'Time',
|
|
98
103
|
:'delete_protection' => :'Boolean',
|
|
@@ -169,6 +174,10 @@ module Akeyless
|
|
|
169
174
|
end
|
|
170
175
|
end
|
|
171
176
|
|
|
177
|
+
if attributes.key?(:'bookmark_login_url_template')
|
|
178
|
+
self.bookmark_login_url_template = attributes[:'bookmark_login_url_template']
|
|
179
|
+
end
|
|
180
|
+
|
|
172
181
|
if attributes.key?(:'client_permissions')
|
|
173
182
|
if (value = attributes[:'client_permissions']).is_a?(Array)
|
|
174
183
|
self.client_permissions = value
|
|
@@ -238,6 +247,7 @@ module Akeyless
|
|
|
238
247
|
auth_method_id == o.auth_method_id &&
|
|
239
248
|
auth_method_name == o.auth_method_name &&
|
|
240
249
|
auth_method_roles_assoc == o.auth_method_roles_assoc &&
|
|
250
|
+
bookmark_login_url_template == o.bookmark_login_url_template &&
|
|
241
251
|
client_permissions == o.client_permissions &&
|
|
242
252
|
creation_date == o.creation_date &&
|
|
243
253
|
delete_protection == o.delete_protection &&
|
|
@@ -257,7 +267,7 @@ module Akeyless
|
|
|
257
267
|
# Calculates hash code according to all attributes.
|
|
258
268
|
# @return [Integer] Hash code
|
|
259
269
|
def hash
|
|
260
|
-
[access_date, access_date_display, access_info, account_id, associated_gw_ids, auth_method_access_id, auth_method_additional_data, auth_method_id, auth_method_name, auth_method_roles_assoc, client_permissions, creation_date, delete_protection, description, expiration_events, is_approved, modification_date, uid_expiration_events].hash
|
|
270
|
+
[access_date, access_date_display, access_info, account_id, associated_gw_ids, auth_method_access_id, auth_method_additional_data, auth_method_id, auth_method_name, auth_method_roles_assoc, bookmark_login_url_template, client_permissions, creation_date, delete_protection, description, expiration_events, is_approved, modification_date, uid_expiration_events].hash
|
|
261
271
|
end
|
|
262
272
|
|
|
263
273
|
# Builds the object from hash
|