akeyless 3.2.6 → 3.2.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (158) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +11 -1
  3. data/docs/CertAccessRules.md +2 -0
  4. data/docs/CreateAuthMethodCert.md +2 -0
  5. data/docs/CreateCertificate.md +1 -1
  6. data/docs/CreateClassicKey.md +1 -1
  7. data/docs/CreateDynamicSecret.md +1 -1
  8. data/docs/CreateLinkedTarget.md +1 -3
  9. data/docs/CreateRotatedSecret.md +1 -1
  10. data/docs/CreateSecret.md +1 -1
  11. data/docs/CreateWindowsTarget.md +2 -4
  12. data/docs/DecryptFile.md +6 -0
  13. data/docs/DescribeAssoc.md +24 -0
  14. data/docs/EncryptFile.md +0 -2
  15. data/docs/GatewayCreateProducerArtifactory.md +1 -1
  16. data/docs/GatewayCreateProducerAws.md +1 -1
  17. data/docs/GatewayCreateProducerAzure.md +1 -1
  18. data/docs/GatewayCreateProducerCassandra.md +1 -1
  19. data/docs/GatewayCreateProducerCertificateAutomation.md +1 -1
  20. data/docs/GatewayCreateProducerChef.md +1 -1
  21. data/docs/GatewayCreateProducerCustom.md +1 -1
  22. data/docs/GatewayCreateProducerDockerhub.md +1 -1
  23. data/docs/GatewayCreateProducerEks.md +1 -1
  24. data/docs/GatewayCreateProducerGcp.md +1 -1
  25. data/docs/GatewayCreateProducerGke.md +1 -1
  26. data/docs/GatewayCreateProducerHanaDb.md +1 -1
  27. data/docs/GatewayCreateProducerLdap.md +1 -1
  28. data/docs/GatewayCreateProducerMSSQL.md +1 -1
  29. data/docs/GatewayCreateProducerMongo.md +1 -1
  30. data/docs/GatewayCreateProducerMySQL.md +1 -1
  31. data/docs/GatewayCreateProducerNativeK8S.md +1 -1
  32. data/docs/GatewayCreateProducerOracleDb.md +1 -1
  33. data/docs/GatewayCreateProducerPing.md +1 -1
  34. data/docs/GatewayCreateProducerPostgreSQL.md +1 -1
  35. data/docs/GatewayCreateProducerRabbitMQ.md +1 -1
  36. data/docs/GatewayCreateProducerRdp.md +1 -1
  37. data/docs/GatewayCreateProducerRedshift.md +1 -1
  38. data/docs/GatewayCreateProducerSnowflake.md +1 -1
  39. data/docs/GatewayDownloadCustomerFragments.md +22 -0
  40. data/docs/GatewayDownloadCustomerFragmentsOutput.md +18 -0
  41. data/docs/GatewayUpdateProducerArtifactory.md +1 -1
  42. data/docs/GatewayUpdateProducerAws.md +1 -1
  43. data/docs/GatewayUpdateProducerAzure.md +1 -1
  44. data/docs/GatewayUpdateProducerCassandra.md +1 -1
  45. data/docs/GatewayUpdateProducerCertificateAutomation.md +1 -1
  46. data/docs/GatewayUpdateProducerChef.md +1 -1
  47. data/docs/GatewayUpdateProducerCustom.md +1 -1
  48. data/docs/GatewayUpdateProducerDockerhub.md +1 -1
  49. data/docs/GatewayUpdateProducerEks.md +1 -1
  50. data/docs/GatewayUpdateProducerGcp.md +1 -1
  51. data/docs/GatewayUpdateProducerGke.md +1 -1
  52. data/docs/GatewayUpdateProducerHanaDb.md +1 -1
  53. data/docs/GatewayUpdateProducerLdap.md +1 -1
  54. data/docs/GatewayUpdateProducerMSSQL.md +1 -1
  55. data/docs/GatewayUpdateProducerMongo.md +1 -1
  56. data/docs/GatewayUpdateProducerMySQL.md +1 -1
  57. data/docs/GatewayUpdateProducerNativeK8S.md +1 -1
  58. data/docs/GatewayUpdateProducerOracleDb.md +1 -1
  59. data/docs/GatewayUpdateProducerPing.md +1 -1
  60. data/docs/GatewayUpdateProducerPostgreSQL.md +1 -1
  61. data/docs/GatewayUpdateProducerRabbitMQ.md +1 -1
  62. data/docs/GatewayUpdateProducerRdp.md +1 -1
  63. data/docs/GatewayUpdateProducerRedshift.md +1 -1
  64. data/docs/GatewayUpdateProducerSnowflake.md +1 -1
  65. data/docs/GeneralConfigPart.md +2 -0
  66. data/docs/ImportPasswords.md +32 -0
  67. data/docs/ImportPasswordsOutput.md +22 -0
  68. data/docs/Item.md +2 -0
  69. data/docs/LinkedDetails.md +18 -0
  70. data/docs/RoleAssociationDetails.md +26 -0
  71. data/docs/TargetTypeDetailsInput.md +1 -3
  72. data/docs/UpdateAuthMethodCert.md +2 -0
  73. data/docs/UpdateLinkedTarget.md +2 -4
  74. data/docs/UpdateWindowsTarget.md +2 -4
  75. data/docs/V2Api.md +191 -2
  76. data/lib/akeyless/api/v2_api.rb +192 -0
  77. data/lib/akeyless/models/cert_access_rules.rb +13 -1
  78. data/lib/akeyless/models/create_auth_method_cert.rb +11 -1
  79. data/lib/akeyless/models/create_certificate.rb +1 -1
  80. data/lib/akeyless/models/create_classic_key.rb +1 -1
  81. data/lib/akeyless/models/create_dynamic_secret.rb +1 -1
  82. data/lib/akeyless/models/create_linked_target.rb +2 -17
  83. data/lib/akeyless/models/create_rotated_secret.rb +1 -1
  84. data/lib/akeyless/models/create_secret.rb +1 -1
  85. data/lib/akeyless/models/create_windows_target.rb +9 -19
  86. data/lib/akeyless/models/decrypt_file.rb +35 -1
  87. data/lib/akeyless/models/describe_assoc.rb +257 -0
  88. data/lib/akeyless/models/encrypt_file.rb +1 -13
  89. data/lib/akeyless/models/gateway_create_producer_artifactory.rb +1 -1
  90. data/lib/akeyless/models/gateway_create_producer_aws.rb +1 -1
  91. data/lib/akeyless/models/gateway_create_producer_azure.rb +1 -1
  92. data/lib/akeyless/models/gateway_create_producer_cassandra.rb +1 -1
  93. data/lib/akeyless/models/gateway_create_producer_certificate_automation.rb +1 -1
  94. data/lib/akeyless/models/gateway_create_producer_chef.rb +1 -1
  95. data/lib/akeyless/models/gateway_create_producer_custom.rb +1 -1
  96. data/lib/akeyless/models/gateway_create_producer_dockerhub.rb +1 -1
  97. data/lib/akeyless/models/gateway_create_producer_eks.rb +1 -1
  98. data/lib/akeyless/models/gateway_create_producer_gcp.rb +1 -1
  99. data/lib/akeyless/models/gateway_create_producer_gke.rb +1 -1
  100. data/lib/akeyless/models/gateway_create_producer_hana_db.rb +1 -1
  101. data/lib/akeyless/models/gateway_create_producer_ldap.rb +1 -1
  102. data/lib/akeyless/models/gateway_create_producer_mongo.rb +1 -1
  103. data/lib/akeyless/models/gateway_create_producer_mssql.rb +1 -1
  104. data/lib/akeyless/models/gateway_create_producer_my_sql.rb +1 -1
  105. data/lib/akeyless/models/gateway_create_producer_native_k8_s.rb +1 -1
  106. data/lib/akeyless/models/gateway_create_producer_oracle_db.rb +1 -1
  107. data/lib/akeyless/models/gateway_create_producer_ping.rb +1 -1
  108. data/lib/akeyless/models/gateway_create_producer_postgre_sql.rb +1 -1
  109. data/lib/akeyless/models/gateway_create_producer_rabbit_mq.rb +1 -1
  110. data/lib/akeyless/models/gateway_create_producer_rdp.rb +1 -1
  111. data/lib/akeyless/models/gateway_create_producer_redshift.rb +1 -1
  112. data/lib/akeyless/models/gateway_create_producer_snowflake.rb +1 -1
  113. data/lib/akeyless/models/gateway_download_customer_fragments.rb +243 -0
  114. data/lib/akeyless/models/gateway_download_customer_fragments_output.rb +221 -0
  115. data/lib/akeyless/models/gateway_update_producer_artifactory.rb +1 -1
  116. data/lib/akeyless/models/gateway_update_producer_aws.rb +1 -1
  117. data/lib/akeyless/models/gateway_update_producer_azure.rb +1 -1
  118. data/lib/akeyless/models/gateway_update_producer_cassandra.rb +1 -1
  119. data/lib/akeyless/models/gateway_update_producer_certificate_automation.rb +1 -1
  120. data/lib/akeyless/models/gateway_update_producer_chef.rb +1 -1
  121. data/lib/akeyless/models/gateway_update_producer_custom.rb +1 -1
  122. data/lib/akeyless/models/gateway_update_producer_dockerhub.rb +1 -1
  123. data/lib/akeyless/models/gateway_update_producer_eks.rb +1 -1
  124. data/lib/akeyless/models/gateway_update_producer_gcp.rb +1 -1
  125. data/lib/akeyless/models/gateway_update_producer_gke.rb +1 -1
  126. data/lib/akeyless/models/gateway_update_producer_hana_db.rb +1 -1
  127. data/lib/akeyless/models/gateway_update_producer_ldap.rb +1 -1
  128. data/lib/akeyless/models/gateway_update_producer_mongo.rb +1 -1
  129. data/lib/akeyless/models/gateway_update_producer_mssql.rb +1 -1
  130. data/lib/akeyless/models/gateway_update_producer_my_sql.rb +1 -1
  131. data/lib/akeyless/models/gateway_update_producer_native_k8_s.rb +1 -1
  132. data/lib/akeyless/models/gateway_update_producer_oracle_db.rb +1 -1
  133. data/lib/akeyless/models/gateway_update_producer_ping.rb +1 -1
  134. data/lib/akeyless/models/gateway_update_producer_postgre_sql.rb +1 -1
  135. data/lib/akeyless/models/gateway_update_producer_rabbit_mq.rb +1 -1
  136. data/lib/akeyless/models/gateway_update_producer_rdp.rb +1 -1
  137. data/lib/akeyless/models/gateway_update_producer_redshift.rb +1 -1
  138. data/lib/akeyless/models/gateway_update_producer_snowflake.rb +1 -1
  139. data/lib/akeyless/models/general_config_part.rb +10 -1
  140. data/lib/akeyless/models/import_passwords.rb +304 -0
  141. data/lib/akeyless/models/import_passwords_output.rb +237 -0
  142. data/lib/akeyless/models/item.rb +10 -1
  143. data/lib/akeyless/models/linked_details.rb +221 -0
  144. data/lib/akeyless/models/role_association_details.rb +258 -0
  145. data/lib/akeyless/models/target_type_details_input.rb +3 -12
  146. data/lib/akeyless/models/update_auth_method_cert.rb +11 -1
  147. data/lib/akeyless/models/update_linked_target.rb +3 -18
  148. data/lib/akeyless/models/update_windows_target.rb +9 -19
  149. data/lib/akeyless/version.rb +1 -1
  150. data/lib/akeyless.rb +7 -0
  151. data/spec/models/describe_assoc_spec.rb +52 -0
  152. data/spec/models/gateway_download_customer_fragments_output_spec.rb +34 -0
  153. data/spec/models/gateway_download_customer_fragments_spec.rb +46 -0
  154. data/spec/models/import_passwords_output_spec.rb +46 -0
  155. data/spec/models/import_passwords_spec.rb +76 -0
  156. data/spec/models/linked_details_spec.rb +34 -0
  157. data/spec/models/role_association_details_spec.rb +58 -0
  158. metadata +30 -2
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({hosts: 'hosts_example', name: 'name_example'}) # CreateLinkedTarget |
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({hosts: 'hosts_example', name: 'name_example'}) # UpdateLinkedTarget |
15003
+ body = Akeyless::UpdateLinkedTarget.new({name: 'name_example'}) # UpdateLinkedTarget |
14815
15004
 
14816
15005
  begin
14817
15006
 
@@ -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]
@@ -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
@@ -42,7 +42,7 @@ module Akeyless
42
42
  # Certificate name
43
43
  attr_accessor :name
44
44
 
45
- # List of the tags attached to this certificate
45
+ # Add tags attached to this object
46
46
  attr_accessor :tags
47
47
 
48
48
  # Authentication token (see `/auth` and `/configure`)
@@ -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
- # List of the tags attached to this classic key
49
+ # Add tags attached to this object
50
50
  attr_accessor :tags
51
51
 
52
52
  # Authentication token (see `/auth` and `/configure`)
@@ -33,7 +33,7 @@ module Akeyless
33
33
  # Dynamic secret name
34
34
  attr_accessor :name
35
35
 
36
- # List of the tags attached to this secret
36
+ # Add tags attached to this object
37
37
  attr_accessor :tags
38
38
 
39
39
  # Authentication token (see `/auth` and `/configure`)
@@ -15,13 +15,10 @@ require 'time'
15
15
 
16
16
  module Akeyless
17
17
  class CreateLinkedTarget
18
- # Deprecated - use description
19
- attr_accessor :comment
20
-
21
18
  # Description of the object
22
19
  attr_accessor :description
23
20
 
24
- # A comma seperated list of server hosts.
21
+ # A comma seperated list of server hosts and server descriptions joined by semicolon ';' (i.e. 'server-dev.com;My Dev server,server-prod.com;My Prod server description')
25
22
  attr_accessor :hosts
26
23
 
27
24
  # Set output format to JSON
@@ -42,7 +39,6 @@ module Akeyless
42
39
  # Attribute mapping from ruby-style variable name to JSON key.
43
40
  def self.attribute_map
44
41
  {
45
- :'comment' => :'comment',
46
42
  :'description' => :'description',
47
43
  :'hosts' => :'hosts',
48
44
  :'json' => :'json',
@@ -61,7 +57,6 @@ module Akeyless
61
57
  # Attribute type mapping.
62
58
  def self.openapi_types
63
59
  {
64
- :'comment' => :'String',
65
60
  :'description' => :'String',
66
61
  :'hosts' => :'String',
67
62
  :'json' => :'Boolean',
@@ -93,10 +88,6 @@ module Akeyless
93
88
  h[k.to_sym] = v
94
89
  }
95
90
 
96
- if attributes.key?(:'comment')
97
- self.comment = attributes[:'comment']
98
- end
99
-
100
91
  if attributes.key?(:'description')
101
92
  self.description = attributes[:'description']
102
93
  end
@@ -132,10 +123,6 @@ module Akeyless
132
123
  # @return Array for valid properties with the reasons
133
124
  def list_invalid_properties
134
125
  invalid_properties = Array.new
135
- if @hosts.nil?
136
- invalid_properties.push('invalid value for "hosts", hosts cannot be nil.')
137
- end
138
-
139
126
  if @name.nil?
140
127
  invalid_properties.push('invalid value for "name", name cannot be nil.')
141
128
  end
@@ -146,7 +133,6 @@ module Akeyless
146
133
  # Check to see if the all the properties in the model are valid
147
134
  # @return true if the model is valid
148
135
  def valid?
149
- return false if @hosts.nil?
150
136
  return false if @name.nil?
151
137
  true
152
138
  end
@@ -156,7 +142,6 @@ module Akeyless
156
142
  def ==(o)
157
143
  return true if self.equal?(o)
158
144
  self.class == o.class &&
159
- comment == o.comment &&
160
145
  description == o.description &&
161
146
  hosts == o.hosts &&
162
147
  json == o.json &&
@@ -175,7 +160,7 @@ module Akeyless
175
160
  # Calculates hash code according to all attributes.
176
161
  # @return [Integer] Hash code
177
162
  def hash
178
- [comment, description, hosts, json, name, parent_target_name, token, uid_token].hash
163
+ [description, hosts, json, name, parent_target_name, token, uid_token].hash
179
164
  end
180
165
 
181
166
  # Builds the object from hash
@@ -128,7 +128,7 @@ module Akeyless
128
128
  # The name of the storage account key to rotate [key1/key2/kerb1/kerb2] (relevat to azure-storage-account)
129
129
  attr_accessor :storage_account_key_name
130
130
 
131
- # List of the tags attached to this secret
131
+ # Add tags attached to this object
132
132
  attr_accessor :tags
133
133
 
134
134
  # Target name
@@ -75,7 +75,7 @@ module Akeyless
75
75
  # Web-Proxy via Akeyless Web Access Bastion
76
76
  attr_accessor :secure_access_web_proxy
77
77
 
78
- # List of the tags attached to this secret
78
+ # Add tags attached to this object
79
79
  attr_accessor :tags
80
80
 
81
81
  # Authentication token (see `/auth` and `/configure`)