akeyless 3.2.5 → 3.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -1
- data/docs/CertAccessRules.md +2 -0
- data/docs/CreateAuthMethodCert.md +2 -0
- data/docs/CreateCertificate.md +1 -1
- data/docs/CreateClassicKey.md +1 -1
- data/docs/CreateDynamicSecret.md +1 -1
- data/docs/CreateLinkedTarget.md +1 -3
- data/docs/CreateRotatedSecret.md +1 -1
- data/docs/CreateSecret.md +1 -1
- data/docs/CreateWindowsTarget.md +2 -4
- data/docs/DecryptFile.md +6 -0
- data/docs/DescribeAssoc.md +24 -0
- data/docs/DescribeItem.md +2 -0
- data/docs/DynamicSecretProducerInfo.md +4 -0
- data/docs/EncryptFile.md +0 -2
- data/docs/GatewayBasicInfo.md +24 -0
- data/docs/GatewayCreateProducerArtifactory.md +1 -1
- data/docs/GatewayCreateProducerAws.md +1 -1
- data/docs/GatewayCreateProducerAzure.md +1 -1
- data/docs/GatewayCreateProducerCassandra.md +1 -1
- data/docs/GatewayCreateProducerCertificateAutomation.md +1 -1
- data/docs/GatewayCreateProducerChef.md +1 -1
- data/docs/GatewayCreateProducerCustom.md +1 -1
- data/docs/GatewayCreateProducerDockerhub.md +1 -1
- data/docs/GatewayCreateProducerEks.md +1 -1
- data/docs/GatewayCreateProducerGcp.md +1 -1
- data/docs/GatewayCreateProducerGke.md +1 -1
- data/docs/GatewayCreateProducerHanaDb.md +1 -1
- data/docs/GatewayCreateProducerLdap.md +1 -1
- data/docs/GatewayCreateProducerMSSQL.md +1 -1
- data/docs/GatewayCreateProducerMongo.md +1 -1
- data/docs/GatewayCreateProducerMySQL.md +1 -1
- data/docs/GatewayCreateProducerNativeK8S.md +11 -1
- data/docs/GatewayCreateProducerOracleDb.md +1 -1
- data/docs/GatewayCreateProducerPing.md +1 -1
- data/docs/GatewayCreateProducerPostgreSQL.md +1 -1
- data/docs/GatewayCreateProducerRabbitMQ.md +1 -1
- data/docs/GatewayCreateProducerRdp.md +1 -1
- data/docs/GatewayCreateProducerRedshift.md +1 -1
- data/docs/GatewayCreateProducerSnowflake.md +1 -1
- data/docs/GatewayDownloadCustomerFragments.md +22 -0
- data/docs/GatewayDownloadCustomerFragmentsOutput.md +18 -0
- data/docs/GatewayMessageQueueInfo.md +2 -0
- data/docs/GatewayUpdateProducerArtifactory.md +1 -1
- data/docs/GatewayUpdateProducerAws.md +1 -1
- data/docs/GatewayUpdateProducerAzure.md +1 -1
- data/docs/GatewayUpdateProducerCassandra.md +1 -1
- data/docs/GatewayUpdateProducerCertificateAutomation.md +1 -1
- data/docs/GatewayUpdateProducerChef.md +1 -1
- data/docs/GatewayUpdateProducerCustom.md +1 -1
- data/docs/GatewayUpdateProducerDockerhub.md +1 -1
- data/docs/GatewayUpdateProducerEks.md +1 -1
- data/docs/GatewayUpdateProducerGcp.md +1 -1
- data/docs/GatewayUpdateProducerGke.md +1 -1
- data/docs/GatewayUpdateProducerHanaDb.md +1 -1
- data/docs/GatewayUpdateProducerLdap.md +1 -1
- data/docs/GatewayUpdateProducerMSSQL.md +1 -1
- data/docs/GatewayUpdateProducerMongo.md +1 -1
- data/docs/GatewayUpdateProducerMySQL.md +1 -1
- data/docs/GatewayUpdateProducerNativeK8S.md +11 -1
- data/docs/GatewayUpdateProducerOracleDb.md +1 -1
- data/docs/GatewayUpdateProducerPing.md +1 -1
- data/docs/GatewayUpdateProducerPostgreSQL.md +1 -1
- data/docs/GatewayUpdateProducerRabbitMQ.md +1 -1
- data/docs/GatewayUpdateProducerRdp.md +1 -1
- data/docs/GatewayUpdateProducerRedshift.md +1 -1
- data/docs/GatewayUpdateProducerSnowflake.md +1 -1
- data/docs/GeneralConfigPart.md +2 -0
- data/docs/ImportPasswords.md +32 -0
- data/docs/ImportPasswordsOutput.md +22 -0
- data/docs/Item.md +4 -0
- data/docs/LinkedDetails.md +18 -0
- data/docs/RoleAssociationDetails.md +26 -0
- data/docs/TargetTypeDetailsInput.md +1 -3
- data/docs/UpdateAuthMethodCert.md +2 -0
- data/docs/UpdateLinkedTarget.md +2 -4
- data/docs/UpdateWindowsTarget.md +2 -4
- data/docs/V2Api.md +191 -2
- data/lib/akeyless/api/v2_api.rb +192 -0
- data/lib/akeyless/configuration.rb +5 -0
- data/lib/akeyless/models/cert_access_rules.rb +13 -1
- data/lib/akeyless/models/create_auth_method_cert.rb +11 -1
- data/lib/akeyless/models/create_certificate.rb +1 -1
- data/lib/akeyless/models/create_classic_key.rb +1 -1
- data/lib/akeyless/models/create_dynamic_secret.rb +1 -1
- data/lib/akeyless/models/create_linked_target.rb +2 -17
- data/lib/akeyless/models/create_rotated_secret.rb +1 -1
- data/lib/akeyless/models/create_secret.rb +1 -1
- data/lib/akeyless/models/create_windows_target.rb +9 -19
- data/lib/akeyless/models/decrypt_file.rb +35 -1
- data/lib/akeyless/models/describe_assoc.rb +257 -0
- data/lib/akeyless/models/describe_item.rb +13 -1
- data/lib/akeyless/models/dynamic_secret_producer_info.rb +21 -1
- data/lib/akeyless/models/encrypt_file.rb +1 -13
- data/lib/akeyless/models/gateway_basic_info.rb +246 -0
- data/lib/akeyless/models/gateway_create_producer_artifactory.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_aws.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_azure.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_cassandra.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_certificate_automation.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_chef.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_custom.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_dockerhub.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_eks.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_gcp.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_gke.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_hana_db.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_ldap.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_mongo.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_mssql.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_my_sql.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_native_k8_s.rb +52 -2
- data/lib/akeyless/models/gateway_create_producer_oracle_db.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_ping.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_postgre_sql.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_rabbit_mq.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_rdp.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_redshift.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_snowflake.rb +1 -1
- data/lib/akeyless/models/gateway_download_customer_fragments.rb +243 -0
- data/lib/akeyless/models/gateway_download_customer_fragments_output.rb +221 -0
- data/lib/akeyless/models/gateway_message_queue_info.rb +10 -1
- data/lib/akeyless/models/gateway_update_producer_artifactory.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_aws.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_azure.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_cassandra.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_certificate_automation.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_chef.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_custom.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_dockerhub.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_eks.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_gcp.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_gke.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_hana_db.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_ldap.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_mongo.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_mssql.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_my_sql.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_native_k8_s.rb +52 -2
- data/lib/akeyless/models/gateway_update_producer_oracle_db.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_ping.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_postgre_sql.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_rabbit_mq.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_rdp.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_redshift.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_snowflake.rb +1 -1
- data/lib/akeyless/models/general_config_part.rb +10 -1
- data/lib/akeyless/models/import_passwords.rb +304 -0
- data/lib/akeyless/models/import_passwords_output.rb +237 -0
- data/lib/akeyless/models/item.rb +21 -1
- data/lib/akeyless/models/linked_details.rb +221 -0
- data/lib/akeyless/models/role_association_details.rb +258 -0
- data/lib/akeyless/models/target_type_details_input.rb +3 -12
- data/lib/akeyless/models/update_auth_method_cert.rb +11 -1
- data/lib/akeyless/models/update_linked_target.rb +3 -18
- data/lib/akeyless/models/update_windows_target.rb +9 -19
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +8 -0
- data/spec/models/describe_assoc_spec.rb +52 -0
- data/spec/models/gateway_basic_info_spec.rb +52 -0
- data/spec/models/gateway_download_customer_fragments_output_spec.rb +34 -0
- data/spec/models/gateway_download_customer_fragments_spec.rb +46 -0
- data/spec/models/import_passwords_output_spec.rb +46 -0
- data/spec/models/import_passwords_spec.rb +76 -0
- data/spec/models/linked_details_spec.rb +34 -0
- data/spec/models/role_association_details_spec.rb +58 -0
- metadata +34 -2
data/docs/UpdateWindowsTarget.md
CHANGED
@@ -4,7 +4,6 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **comment** | **String** | Deprecated - use description | [optional] |
|
8
7
|
| **description** | **String** | Description of the object | [optional] |
|
9
8
|
| **hostname** | **String** | Server hostname | [optional] |
|
10
9
|
| **json** | **Boolean** | Set output format to JSON | [optional][default to false] |
|
@@ -13,7 +12,7 @@
|
|
13
12
|
| **name** | **String** | Target name | |
|
14
13
|
| **new_name** | **String** | New target name | [optional] |
|
15
14
|
| **password** | **String** | The privileged user password | [optional] |
|
16
|
-
| **
|
15
|
+
| **port** | **String** | Server WinRM HTTPS port | [optional][default to '5986'] |
|
17
16
|
| **token** | **String** | Authentication token (see `/auth` and `/configure`) | [optional] |
|
18
17
|
| **uid_token** | **String** | The universal identity token, Required only for universal_identity authentication | [optional] |
|
19
18
|
| **update_version** | **Boolean** | Deprecated | [optional] |
|
@@ -25,7 +24,6 @@
|
|
25
24
|
require 'akeyless'
|
26
25
|
|
27
26
|
instance = Akeyless::UpdateWindowsTarget.new(
|
28
|
-
comment: null,
|
29
27
|
description: null,
|
30
28
|
hostname: null,
|
31
29
|
json: null,
|
@@ -34,7 +32,7 @@ instance = Akeyless::UpdateWindowsTarget.new(
|
|
34
32
|
name: null,
|
35
33
|
new_name: null,
|
36
34
|
password: null,
|
37
|
-
|
35
|
+
port: null,
|
38
36
|
token: null,
|
39
37
|
uid_token: null,
|
40
38
|
update_version: null,
|
data/docs/V2Api.md
CHANGED
@@ -67,6 +67,7 @@ All URIs are relative to *https://api.akeyless.io*
|
|
67
67
|
| [**delete_target**](V2Api.md#delete_target) | **POST** /delete-target | |
|
68
68
|
| [**delete_target_association**](V2Api.md#delete_target_association) | **POST** /delete-assoc-target-item | |
|
69
69
|
| [**delete_targets**](V2Api.md#delete_targets) | **POST** /delete-targets | |
|
70
|
+
| [**describe_assoc**](V2Api.md#describe_assoc) | **POST** /describe-role-am-assoc | |
|
70
71
|
| [**describe_item**](V2Api.md#describe_item) | **POST** /describe-item | |
|
71
72
|
| [**describe_permissions**](V2Api.md#describe_permissions) | **POST** /describe-permissions | |
|
72
73
|
| [**describe_sub_claims**](V2Api.md#describe_sub_claims) | **POST** /describe-sub-claims | |
|
@@ -105,6 +106,7 @@ All URIs are relative to *https://api.akeyless.io*
|
|
105
106
|
| [**gateway_delete_k8_s_auth_config**](V2Api.md#gateway_delete_k8_s_auth_config) | **POST** /gateway-delete-k8s-auth-config | |
|
106
107
|
| [**gateway_delete_migration**](V2Api.md#gateway_delete_migration) | **POST** /gateway-delete-migration | |
|
107
108
|
| [**gateway_delete_producer**](V2Api.md#gateway_delete_producer) | **POST** /gateway-delete-producer | |
|
109
|
+
| [**gateway_download_customer_fragments**](V2Api.md#gateway_download_customer_fragments) | **POST** /gateway-download-customer-fragments | |
|
108
110
|
| [**gateway_get_config**](V2Api.md#gateway_get_config) | **POST** /gateway-get-config | |
|
109
111
|
| [**gateway_get_k8_s_auth_config**](V2Api.md#gateway_get_k8_s_auth_config) | **POST** /gateway-get-k8s-auth-config | |
|
110
112
|
| [**gateway_get_ldap_auth_config**](V2Api.md#gateway_get_ldap_auth_config) | **POST** /gateway-get-ldap-auth-config | |
|
@@ -166,6 +168,7 @@ All URIs are relative to *https://api.akeyless.io*
|
|
166
168
|
| [**get_tags**](V2Api.md#get_tags) | **POST** /get-tags | |
|
167
169
|
| [**get_target**](V2Api.md#get_target) | **POST** /get-target | |
|
168
170
|
| [**get_target_details**](V2Api.md#get_target_details) | **POST** /get-target-details | |
|
171
|
+
| [**import_passwords**](V2Api.md#import_passwords) | **POST** /import-passwords | |
|
169
172
|
| [**kmip_client_delete_rule**](V2Api.md#kmip_client_delete_rule) | **POST** /kmip-client-delete-rule | |
|
170
173
|
| [**kmip_client_set_rule**](V2Api.md#kmip_client_set_rule) | **POST** /kmip-client-set-rule | |
|
171
174
|
| [**kmip_create_client**](V2Api.md#kmip_create_client) | **POST** /kmip-create-client | |
|
@@ -2263,7 +2266,7 @@ require 'time'
|
|
2263
2266
|
require 'akeyless'
|
2264
2267
|
|
2265
2268
|
api_instance = Akeyless::V2Api.new
|
2266
|
-
body = Akeyless::CreateLinkedTarget.new({
|
2269
|
+
body = Akeyless::CreateLinkedTarget.new({name: 'name_example'}) # CreateLinkedTarget |
|
2267
2270
|
|
2268
2271
|
begin
|
2269
2272
|
|
@@ -4172,6 +4175,68 @@ No authorization required
|
|
4172
4175
|
- **Accept**: application/json
|
4173
4176
|
|
4174
4177
|
|
4178
|
+
## describe_assoc
|
4179
|
+
|
4180
|
+
> <RoleAssociationDetails> describe_assoc(body)
|
4181
|
+
|
4182
|
+
|
4183
|
+
|
4184
|
+
### Examples
|
4185
|
+
|
4186
|
+
```ruby
|
4187
|
+
require 'time'
|
4188
|
+
require 'akeyless'
|
4189
|
+
|
4190
|
+
api_instance = Akeyless::V2Api.new
|
4191
|
+
body = Akeyless::DescribeAssoc.new({assoc_id: 'assoc_id_example'}) # DescribeAssoc |
|
4192
|
+
|
4193
|
+
begin
|
4194
|
+
|
4195
|
+
result = api_instance.describe_assoc(body)
|
4196
|
+
p result
|
4197
|
+
rescue Akeyless::ApiError => e
|
4198
|
+
puts "Error when calling V2Api->describe_assoc: #{e}"
|
4199
|
+
end
|
4200
|
+
```
|
4201
|
+
|
4202
|
+
#### Using the describe_assoc_with_http_info variant
|
4203
|
+
|
4204
|
+
This returns an Array which contains the response data, status code and headers.
|
4205
|
+
|
4206
|
+
> <Array(<RoleAssociationDetails>, Integer, Hash)> describe_assoc_with_http_info(body)
|
4207
|
+
|
4208
|
+
```ruby
|
4209
|
+
begin
|
4210
|
+
|
4211
|
+
data, status_code, headers = api_instance.describe_assoc_with_http_info(body)
|
4212
|
+
p status_code # => 2xx
|
4213
|
+
p headers # => { ... }
|
4214
|
+
p data # => <RoleAssociationDetails>
|
4215
|
+
rescue Akeyless::ApiError => e
|
4216
|
+
puts "Error when calling V2Api->describe_assoc_with_http_info: #{e}"
|
4217
|
+
end
|
4218
|
+
```
|
4219
|
+
|
4220
|
+
### Parameters
|
4221
|
+
|
4222
|
+
| Name | Type | Description | Notes |
|
4223
|
+
| ---- | ---- | ----------- | ----- |
|
4224
|
+
| **body** | [**DescribeAssoc**](DescribeAssoc.md) | | |
|
4225
|
+
|
4226
|
+
### Return type
|
4227
|
+
|
4228
|
+
[**RoleAssociationDetails**](RoleAssociationDetails.md)
|
4229
|
+
|
4230
|
+
### Authorization
|
4231
|
+
|
4232
|
+
No authorization required
|
4233
|
+
|
4234
|
+
### HTTP request headers
|
4235
|
+
|
4236
|
+
- **Content-Type**: application/json
|
4237
|
+
- **Accept**: application/json
|
4238
|
+
|
4239
|
+
|
4175
4240
|
## describe_item
|
4176
4241
|
|
4177
4242
|
> <Item> describe_item(body)
|
@@ -6530,6 +6595,68 @@ No authorization required
|
|
6530
6595
|
- **Accept**: application/json
|
6531
6596
|
|
6532
6597
|
|
6598
|
+
## gateway_download_customer_fragments
|
6599
|
+
|
6600
|
+
> <GatewayDownloadCustomerFragmentsOutput> gateway_download_customer_fragments(body)
|
6601
|
+
|
6602
|
+
|
6603
|
+
|
6604
|
+
### Examples
|
6605
|
+
|
6606
|
+
```ruby
|
6607
|
+
require 'time'
|
6608
|
+
require 'akeyless'
|
6609
|
+
|
6610
|
+
api_instance = Akeyless::V2Api.new
|
6611
|
+
body = Akeyless::GatewayDownloadCustomerFragments.new # GatewayDownloadCustomerFragments |
|
6612
|
+
|
6613
|
+
begin
|
6614
|
+
|
6615
|
+
result = api_instance.gateway_download_customer_fragments(body)
|
6616
|
+
p result
|
6617
|
+
rescue Akeyless::ApiError => e
|
6618
|
+
puts "Error when calling V2Api->gateway_download_customer_fragments: #{e}"
|
6619
|
+
end
|
6620
|
+
```
|
6621
|
+
|
6622
|
+
#### Using the gateway_download_customer_fragments_with_http_info variant
|
6623
|
+
|
6624
|
+
This returns an Array which contains the response data, status code and headers.
|
6625
|
+
|
6626
|
+
> <Array(<GatewayDownloadCustomerFragmentsOutput>, Integer, Hash)> gateway_download_customer_fragments_with_http_info(body)
|
6627
|
+
|
6628
|
+
```ruby
|
6629
|
+
begin
|
6630
|
+
|
6631
|
+
data, status_code, headers = api_instance.gateway_download_customer_fragments_with_http_info(body)
|
6632
|
+
p status_code # => 2xx
|
6633
|
+
p headers # => { ... }
|
6634
|
+
p data # => <GatewayDownloadCustomerFragmentsOutput>
|
6635
|
+
rescue Akeyless::ApiError => e
|
6636
|
+
puts "Error when calling V2Api->gateway_download_customer_fragments_with_http_info: #{e}"
|
6637
|
+
end
|
6638
|
+
```
|
6639
|
+
|
6640
|
+
### Parameters
|
6641
|
+
|
6642
|
+
| Name | Type | Description | Notes |
|
6643
|
+
| ---- | ---- | ----------- | ----- |
|
6644
|
+
| **body** | [**GatewayDownloadCustomerFragments**](GatewayDownloadCustomerFragments.md) | | |
|
6645
|
+
|
6646
|
+
### Return type
|
6647
|
+
|
6648
|
+
[**GatewayDownloadCustomerFragmentsOutput**](GatewayDownloadCustomerFragmentsOutput.md)
|
6649
|
+
|
6650
|
+
### Authorization
|
6651
|
+
|
6652
|
+
No authorization required
|
6653
|
+
|
6654
|
+
### HTTP request headers
|
6655
|
+
|
6656
|
+
- **Content-Type**: application/json
|
6657
|
+
- **Accept**: application/json
|
6658
|
+
|
6659
|
+
|
6533
6660
|
## gateway_get_config
|
6534
6661
|
|
6535
6662
|
> <AkeylessGatewayConfig> gateway_get_config(body)
|
@@ -10311,6 +10438,68 @@ No authorization required
|
|
10311
10438
|
- **Accept**: application/json
|
10312
10439
|
|
10313
10440
|
|
10441
|
+
## import_passwords
|
10442
|
+
|
10443
|
+
> <ImportPasswordsOutput> import_passwords(body)
|
10444
|
+
|
10445
|
+
|
10446
|
+
|
10447
|
+
### Examples
|
10448
|
+
|
10449
|
+
```ruby
|
10450
|
+
require 'time'
|
10451
|
+
require 'akeyless'
|
10452
|
+
|
10453
|
+
api_instance = Akeyless::V2Api.new
|
10454
|
+
body = Akeyless::ImportPasswords.new({import_path: 'import_path_example'}) # ImportPasswords |
|
10455
|
+
|
10456
|
+
begin
|
10457
|
+
|
10458
|
+
result = api_instance.import_passwords(body)
|
10459
|
+
p result
|
10460
|
+
rescue Akeyless::ApiError => e
|
10461
|
+
puts "Error when calling V2Api->import_passwords: #{e}"
|
10462
|
+
end
|
10463
|
+
```
|
10464
|
+
|
10465
|
+
#### Using the import_passwords_with_http_info variant
|
10466
|
+
|
10467
|
+
This returns an Array which contains the response data, status code and headers.
|
10468
|
+
|
10469
|
+
> <Array(<ImportPasswordsOutput>, Integer, Hash)> import_passwords_with_http_info(body)
|
10470
|
+
|
10471
|
+
```ruby
|
10472
|
+
begin
|
10473
|
+
|
10474
|
+
data, status_code, headers = api_instance.import_passwords_with_http_info(body)
|
10475
|
+
p status_code # => 2xx
|
10476
|
+
p headers # => { ... }
|
10477
|
+
p data # => <ImportPasswordsOutput>
|
10478
|
+
rescue Akeyless::ApiError => e
|
10479
|
+
puts "Error when calling V2Api->import_passwords_with_http_info: #{e}"
|
10480
|
+
end
|
10481
|
+
```
|
10482
|
+
|
10483
|
+
### Parameters
|
10484
|
+
|
10485
|
+
| Name | Type | Description | Notes |
|
10486
|
+
| ---- | ---- | ----------- | ----- |
|
10487
|
+
| **body** | [**ImportPasswords**](ImportPasswords.md) | | |
|
10488
|
+
|
10489
|
+
### Return type
|
10490
|
+
|
10491
|
+
[**ImportPasswordsOutput**](ImportPasswordsOutput.md)
|
10492
|
+
|
10493
|
+
### Authorization
|
10494
|
+
|
10495
|
+
No authorization required
|
10496
|
+
|
10497
|
+
### HTTP request headers
|
10498
|
+
|
10499
|
+
- **Content-Type**: application/json
|
10500
|
+
- **Accept**: application/json
|
10501
|
+
|
10502
|
+
|
10314
10503
|
## kmip_client_delete_rule
|
10315
10504
|
|
10316
10505
|
> <KMIPClientUpdateResponse> kmip_client_delete_rule(opts)
|
@@ -14811,7 +15000,7 @@ require 'time'
|
|
14811
15000
|
require 'akeyless'
|
14812
15001
|
|
14813
15002
|
api_instance = Akeyless::V2Api.new
|
14814
|
-
body = Akeyless::UpdateLinkedTarget.new({
|
15003
|
+
body = Akeyless::UpdateLinkedTarget.new({name: 'name_example'}) # UpdateLinkedTarget |
|
14815
15004
|
|
14816
15005
|
begin
|
14817
15006
|
|
data/lib/akeyless/api/v2_api.rb
CHANGED
@@ -4051,6 +4051,70 @@ module Akeyless
|
|
4051
4051
|
return data, status_code, headers
|
4052
4052
|
end
|
4053
4053
|
|
4054
|
+
# @param body [DescribeAssoc]
|
4055
|
+
# @param [Hash] opts the optional parameters
|
4056
|
+
# @return [RoleAssociationDetails]
|
4057
|
+
def describe_assoc(body, opts = {})
|
4058
|
+
data, _status_code, _headers = describe_assoc_with_http_info(body, opts)
|
4059
|
+
data
|
4060
|
+
end
|
4061
|
+
|
4062
|
+
# @param body [DescribeAssoc]
|
4063
|
+
# @param [Hash] opts the optional parameters
|
4064
|
+
# @return [Array<(RoleAssociationDetails, Integer, Hash)>] RoleAssociationDetails data, response status code and response headers
|
4065
|
+
def describe_assoc_with_http_info(body, opts = {})
|
4066
|
+
if @api_client.config.debugging
|
4067
|
+
@api_client.config.logger.debug 'Calling API: V2Api.describe_assoc ...'
|
4068
|
+
end
|
4069
|
+
# verify the required parameter 'body' is set
|
4070
|
+
if @api_client.config.client_side_validation && body.nil?
|
4071
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.describe_assoc"
|
4072
|
+
end
|
4073
|
+
# resource path
|
4074
|
+
local_var_path = '/describe-role-am-assoc'
|
4075
|
+
|
4076
|
+
# query parameters
|
4077
|
+
query_params = opts[:query_params] || {}
|
4078
|
+
|
4079
|
+
# header parameters
|
4080
|
+
header_params = opts[:header_params] || {}
|
4081
|
+
# HTTP header 'Accept' (if needed)
|
4082
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
4083
|
+
# HTTP header 'Content-Type'
|
4084
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
4085
|
+
if !content_type.nil?
|
4086
|
+
header_params['Content-Type'] = content_type
|
4087
|
+
end
|
4088
|
+
|
4089
|
+
# form parameters
|
4090
|
+
form_params = opts[:form_params] || {}
|
4091
|
+
|
4092
|
+
# http body (model)
|
4093
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
4094
|
+
|
4095
|
+
# return_type
|
4096
|
+
return_type = opts[:debug_return_type] || 'RoleAssociationDetails'
|
4097
|
+
|
4098
|
+
# auth_names
|
4099
|
+
auth_names = opts[:debug_auth_names] || []
|
4100
|
+
|
4101
|
+
new_options = opts.merge(
|
4102
|
+
:operation => :"V2Api.describe_assoc",
|
4103
|
+
:header_params => header_params,
|
4104
|
+
:query_params => query_params,
|
4105
|
+
:form_params => form_params,
|
4106
|
+
:body => post_body,
|
4107
|
+
:auth_names => auth_names,
|
4108
|
+
:return_type => return_type
|
4109
|
+
)
|
4110
|
+
|
4111
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
4112
|
+
if @api_client.config.debugging
|
4113
|
+
@api_client.config.logger.debug "API called: V2Api#describe_assoc\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
4114
|
+
end
|
4115
|
+
return data, status_code, headers
|
4116
|
+
end
|
4117
|
+
|
4054
4118
|
# @param body [DescribeItem]
|
4055
4119
|
# @param [Hash] opts the optional parameters
|
4056
4120
|
# @return [Item]
|
@@ -6479,6 +6543,70 @@ module Akeyless
|
|
6479
6543
|
return data, status_code, headers
|
6480
6544
|
end
|
6481
6545
|
|
6546
|
+
# @param body [GatewayDownloadCustomerFragments]
|
6547
|
+
# @param [Hash] opts the optional parameters
|
6548
|
+
# @return [GatewayDownloadCustomerFragmentsOutput]
|
6549
|
+
def gateway_download_customer_fragments(body, opts = {})
|
6550
|
+
data, _status_code, _headers = gateway_download_customer_fragments_with_http_info(body, opts)
|
6551
|
+
data
|
6552
|
+
end
|
6553
|
+
|
6554
|
+
# @param body [GatewayDownloadCustomerFragments]
|
6555
|
+
# @param [Hash] opts the optional parameters
|
6556
|
+
# @return [Array<(GatewayDownloadCustomerFragmentsOutput, Integer, Hash)>] GatewayDownloadCustomerFragmentsOutput data, response status code and response headers
|
6557
|
+
def gateway_download_customer_fragments_with_http_info(body, opts = {})
|
6558
|
+
if @api_client.config.debugging
|
6559
|
+
@api_client.config.logger.debug 'Calling API: V2Api.gateway_download_customer_fragments ...'
|
6560
|
+
end
|
6561
|
+
# verify the required parameter 'body' is set
|
6562
|
+
if @api_client.config.client_side_validation && body.nil?
|
6563
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.gateway_download_customer_fragments"
|
6564
|
+
end
|
6565
|
+
# resource path
|
6566
|
+
local_var_path = '/gateway-download-customer-fragments'
|
6567
|
+
|
6568
|
+
# query parameters
|
6569
|
+
query_params = opts[:query_params] || {}
|
6570
|
+
|
6571
|
+
# header parameters
|
6572
|
+
header_params = opts[:header_params] || {}
|
6573
|
+
# HTTP header 'Accept' (if needed)
|
6574
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
6575
|
+
# HTTP header 'Content-Type'
|
6576
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
6577
|
+
if !content_type.nil?
|
6578
|
+
header_params['Content-Type'] = content_type
|
6579
|
+
end
|
6580
|
+
|
6581
|
+
# form parameters
|
6582
|
+
form_params = opts[:form_params] || {}
|
6583
|
+
|
6584
|
+
# http body (model)
|
6585
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
6586
|
+
|
6587
|
+
# return_type
|
6588
|
+
return_type = opts[:debug_return_type] || 'GatewayDownloadCustomerFragmentsOutput'
|
6589
|
+
|
6590
|
+
# auth_names
|
6591
|
+
auth_names = opts[:debug_auth_names] || []
|
6592
|
+
|
6593
|
+
new_options = opts.merge(
|
6594
|
+
:operation => :"V2Api.gateway_download_customer_fragments",
|
6595
|
+
:header_params => header_params,
|
6596
|
+
:query_params => query_params,
|
6597
|
+
:form_params => form_params,
|
6598
|
+
:body => post_body,
|
6599
|
+
:auth_names => auth_names,
|
6600
|
+
:return_type => return_type
|
6601
|
+
)
|
6602
|
+
|
6603
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
6604
|
+
if @api_client.config.debugging
|
6605
|
+
@api_client.config.logger.debug "API called: V2Api#gateway_download_customer_fragments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
6606
|
+
end
|
6607
|
+
return data, status_code, headers
|
6608
|
+
end
|
6609
|
+
|
6482
6610
|
# @param body [GatewayGetConfig]
|
6483
6611
|
# @param [Hash] opts the optional parameters
|
6484
6612
|
# @return [AkeylessGatewayConfig]
|
@@ -10364,6 +10492,70 @@ module Akeyless
|
|
10364
10492
|
return data, status_code, headers
|
10365
10493
|
end
|
10366
10494
|
|
10495
|
+
# @param body [ImportPasswords]
|
10496
|
+
# @param [Hash] opts the optional parameters
|
10497
|
+
# @return [ImportPasswordsOutput]
|
10498
|
+
def import_passwords(body, opts = {})
|
10499
|
+
data, _status_code, _headers = import_passwords_with_http_info(body, opts)
|
10500
|
+
data
|
10501
|
+
end
|
10502
|
+
|
10503
|
+
# @param body [ImportPasswords]
|
10504
|
+
# @param [Hash] opts the optional parameters
|
10505
|
+
# @return [Array<(ImportPasswordsOutput, Integer, Hash)>] ImportPasswordsOutput data, response status code and response headers
|
10506
|
+
def import_passwords_with_http_info(body, opts = {})
|
10507
|
+
if @api_client.config.debugging
|
10508
|
+
@api_client.config.logger.debug 'Calling API: V2Api.import_passwords ...'
|
10509
|
+
end
|
10510
|
+
# verify the required parameter 'body' is set
|
10511
|
+
if @api_client.config.client_side_validation && body.nil?
|
10512
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.import_passwords"
|
10513
|
+
end
|
10514
|
+
# resource path
|
10515
|
+
local_var_path = '/import-passwords'
|
10516
|
+
|
10517
|
+
# query parameters
|
10518
|
+
query_params = opts[:query_params] || {}
|
10519
|
+
|
10520
|
+
# header parameters
|
10521
|
+
header_params = opts[:header_params] || {}
|
10522
|
+
# HTTP header 'Accept' (if needed)
|
10523
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
10524
|
+
# HTTP header 'Content-Type'
|
10525
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
10526
|
+
if !content_type.nil?
|
10527
|
+
header_params['Content-Type'] = content_type
|
10528
|
+
end
|
10529
|
+
|
10530
|
+
# form parameters
|
10531
|
+
form_params = opts[:form_params] || {}
|
10532
|
+
|
10533
|
+
# http body (model)
|
10534
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
10535
|
+
|
10536
|
+
# return_type
|
10537
|
+
return_type = opts[:debug_return_type] || 'ImportPasswordsOutput'
|
10538
|
+
|
10539
|
+
# auth_names
|
10540
|
+
auth_names = opts[:debug_auth_names] || []
|
10541
|
+
|
10542
|
+
new_options = opts.merge(
|
10543
|
+
:operation => :"V2Api.import_passwords",
|
10544
|
+
:header_params => header_params,
|
10545
|
+
:query_params => query_params,
|
10546
|
+
:form_params => form_params,
|
10547
|
+
:body => post_body,
|
10548
|
+
:auth_names => auth_names,
|
10549
|
+
:return_type => return_type
|
10550
|
+
)
|
10551
|
+
|
10552
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
10553
|
+
if @api_client.config.debugging
|
10554
|
+
@api_client.config.logger.debug "API called: V2Api#import_passwords\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
10555
|
+
end
|
10556
|
+
return data, status_code, headers
|
10557
|
+
end
|
10558
|
+
|
10367
10559
|
# @param [Hash] opts the optional parameters
|
10368
10560
|
# @option opts [KmipClientDeleteRule] :body
|
10369
10561
|
# @return [KMIPClientUpdateResponse]
|
@@ -67,6 +67,11 @@ module Akeyless
|
|
67
67
|
# @return [Proc]
|
68
68
|
attr_accessor :access_token_getter
|
69
69
|
|
70
|
+
# Set this to return data as binary instead of downloading a temp file. When enabled (set to true)
|
71
|
+
# HTTP responses with return type `File` will be returned as a stream of binary data.
|
72
|
+
# Default to false.
|
73
|
+
attr_accessor :return_binary_data
|
74
|
+
|
70
75
|
# Set this to enable/disable debugging. When enabled (set to true), HTTP request/response
|
71
76
|
# details will be logged with `logger.debug` (see the `logger` attribute).
|
72
77
|
# Default to false.
|
@@ -15,6 +15,9 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Akeyless
|
17
17
|
class CertAccessRules
|
18
|
+
# a list of allowed cors domains if used for browser authentication
|
19
|
+
attr_accessor :allowed_cors
|
20
|
+
|
18
21
|
# A list of names. At least one must exist in the Common Name. Supports globbing.
|
19
22
|
attr_accessor :bound_common_names
|
20
23
|
|
@@ -45,6 +48,7 @@ module Akeyless
|
|
45
48
|
# Attribute mapping from ruby-style variable name to JSON key.
|
46
49
|
def self.attribute_map
|
47
50
|
{
|
51
|
+
:'allowed_cors' => :'allowed_cors',
|
48
52
|
:'bound_common_names' => :'bound_common_names',
|
49
53
|
:'bound_dns_sans' => :'bound_dns_sans',
|
50
54
|
:'bound_email_sans' => :'bound_email_sans',
|
@@ -65,6 +69,7 @@ module Akeyless
|
|
65
69
|
# Attribute type mapping.
|
66
70
|
def self.openapi_types
|
67
71
|
{
|
72
|
+
:'allowed_cors' => :'Array<String>',
|
68
73
|
:'bound_common_names' => :'Array<String>',
|
69
74
|
:'bound_dns_sans' => :'Array<String>',
|
70
75
|
:'bound_email_sans' => :'Array<String>',
|
@@ -98,6 +103,12 @@ module Akeyless
|
|
98
103
|
h[k.to_sym] = v
|
99
104
|
}
|
100
105
|
|
106
|
+
if attributes.key?(:'allowed_cors')
|
107
|
+
if (value = attributes[:'allowed_cors']).is_a?(Array)
|
108
|
+
self.allowed_cors = value
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
101
112
|
if attributes.key?(:'bound_common_names')
|
102
113
|
if (value = attributes[:'bound_common_names']).is_a?(Array)
|
103
114
|
self.bound_common_names = value
|
@@ -167,6 +178,7 @@ module Akeyless
|
|
167
178
|
def ==(o)
|
168
179
|
return true if self.equal?(o)
|
169
180
|
self.class == o.class &&
|
181
|
+
allowed_cors == o.allowed_cors &&
|
170
182
|
bound_common_names == o.bound_common_names &&
|
171
183
|
bound_dns_sans == o.bound_dns_sans &&
|
172
184
|
bound_email_sans == o.bound_email_sans &&
|
@@ -187,7 +199,7 @@ module Akeyless
|
|
187
199
|
# Calculates hash code according to all attributes.
|
188
200
|
# @return [Integer] Hash code
|
189
201
|
def hash
|
190
|
-
[bound_common_names, bound_dns_sans, bound_email_sans, bound_extensions, bound_organizational_units, bound_uri_sans, certificate, revoked_cert_ids, unique_identifier].hash
|
202
|
+
[allowed_cors, bound_common_names, bound_dns_sans, bound_email_sans, bound_extensions, bound_organizational_units, bound_uri_sans, certificate, revoked_cert_ids, unique_identifier].hash
|
191
203
|
end
|
192
204
|
|
193
205
|
# Builds the object from hash
|
@@ -19,6 +19,9 @@ module Akeyless
|
|
19
19
|
# Access expiration date in Unix timestamp (select 0 for access without expiry date)
|
20
20
|
attr_accessor :access_expires
|
21
21
|
|
22
|
+
# Comma separated list of allowed CORS domains to be validated as part of the authentication flow.
|
23
|
+
attr_accessor :allowed_cors
|
24
|
+
|
22
25
|
# A list of names. At least one must exist in the Common Name. Supports globbing.
|
23
26
|
attr_accessor :bound_common_names
|
24
27
|
|
@@ -74,6 +77,7 @@ module Akeyless
|
|
74
77
|
def self.attribute_map
|
75
78
|
{
|
76
79
|
:'access_expires' => :'access-expires',
|
80
|
+
:'allowed_cors' => :'allowed-cors',
|
77
81
|
:'bound_common_names' => :'bound-common-names',
|
78
82
|
:'bound_dns_sans' => :'bound-dns-sans',
|
79
83
|
:'bound_email_sans' => :'bound-email-sans',
|
@@ -103,6 +107,7 @@ module Akeyless
|
|
103
107
|
def self.openapi_types
|
104
108
|
{
|
105
109
|
:'access_expires' => :'Integer',
|
110
|
+
:'allowed_cors' => :'String',
|
106
111
|
:'bound_common_names' => :'Array<String>',
|
107
112
|
:'bound_dns_sans' => :'Array<String>',
|
108
113
|
:'bound_email_sans' => :'Array<String>',
|
@@ -150,6 +155,10 @@ module Akeyless
|
|
150
155
|
self.access_expires = 0
|
151
156
|
end
|
152
157
|
|
158
|
+
if attributes.key?(:'allowed_cors')
|
159
|
+
self.allowed_cors = attributes[:'allowed_cors']
|
160
|
+
end
|
161
|
+
|
153
162
|
if attributes.key?(:'bound_common_names')
|
154
163
|
if (value = attributes[:'bound_common_names']).is_a?(Array)
|
155
164
|
self.bound_common_names = value
|
@@ -270,6 +279,7 @@ module Akeyless
|
|
270
279
|
return true if self.equal?(o)
|
271
280
|
self.class == o.class &&
|
272
281
|
access_expires == o.access_expires &&
|
282
|
+
allowed_cors == o.allowed_cors &&
|
273
283
|
bound_common_names == o.bound_common_names &&
|
274
284
|
bound_dns_sans == o.bound_dns_sans &&
|
275
285
|
bound_email_sans == o.bound_email_sans &&
|
@@ -298,7 +308,7 @@ module Akeyless
|
|
298
308
|
# Calculates hash code according to all attributes.
|
299
309
|
# @return [Integer] Hash code
|
300
310
|
def hash
|
301
|
-
[access_expires, bound_common_names, bound_dns_sans, bound_email_sans, bound_extensions, bound_ips, bound_organizational_units, bound_uri_sans, certificate_data, force_sub_claims, gw_bound_ips, json, jwt_ttl, name, revoked_cert_ids, token, uid_token, unique_identifier].hash
|
311
|
+
[access_expires, allowed_cors, bound_common_names, bound_dns_sans, bound_email_sans, bound_extensions, bound_ips, bound_organizational_units, bound_uri_sans, certificate_data, force_sub_claims, gw_bound_ips, json, jwt_ttl, name, revoked_cert_ids, token, uid_token, unique_identifier].hash
|
302
312
|
end
|
303
313
|
|
304
314
|
# Builds the object from hash
|
@@ -46,7 +46,7 @@ module Akeyless
|
|
46
46
|
# The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
|
47
47
|
attr_accessor :protection_key_name
|
48
48
|
|
49
|
-
#
|
49
|
+
# Add tags attached to this object
|
50
50
|
attr_accessor :tags
|
51
51
|
|
52
52
|
# Authentication token (see `/auth` and `/configure`)
|