akeyless 2.16.8 → 2.16.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (142) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -1
  3. data/docs/Configure.md +5 -1
  4. data/docs/GatewayCreateMigration.md +22 -22
  5. data/docs/GatewayCreateProducerArtifactory.md +2 -0
  6. data/docs/GatewayCreateProducerAws.md +2 -0
  7. data/docs/GatewayCreateProducerAzure.md +2 -0
  8. data/docs/GatewayCreateProducerCassandra.md +2 -0
  9. data/docs/GatewayCreateProducerCertificateAutomation.md +2 -0
  10. data/docs/GatewayCreateProducerChef.md +2 -0
  11. data/docs/GatewayCreateProducerCustom.md +2 -0
  12. data/docs/GatewayCreateProducerDockerhub.md +2 -0
  13. data/docs/GatewayCreateProducerEks.md +2 -0
  14. data/docs/GatewayCreateProducerGcp.md +2 -0
  15. data/docs/GatewayCreateProducerGithub.md +2 -0
  16. data/docs/GatewayCreateProducerGke.md +2 -0
  17. data/docs/GatewayCreateProducerHanaDb.md +2 -0
  18. data/docs/GatewayCreateProducerLdap.md +2 -0
  19. data/docs/GatewayCreateProducerMSSQL.md +2 -0
  20. data/docs/GatewayCreateProducerMongo.md +2 -0
  21. data/docs/GatewayCreateProducerMySQL.md +2 -0
  22. data/docs/GatewayCreateProducerNativeK8S.md +2 -0
  23. data/docs/GatewayCreateProducerOracleDb.md +2 -0
  24. data/docs/GatewayCreateProducerPostgreSQL.md +2 -0
  25. data/docs/GatewayCreateProducerRabbitMQ.md +2 -0
  26. data/docs/GatewayCreateProducerRdp.md +2 -0
  27. data/docs/GatewayCreateProducerRedshift.md +2 -0
  28. data/docs/GatewayCreateProducerSnowflake.md +2 -0
  29. data/docs/GatewayDeleteMigration.md +1 -1
  30. data/docs/GatewayGetMigration.md +1 -1
  31. data/docs/GatewayStatusMigration.md +24 -0
  32. data/docs/GatewayUpdateItem.md +2 -0
  33. data/docs/GatewayUpdateMigration.md +25 -25
  34. data/docs/GatewayUpdateProducerArtifactory.md +2 -0
  35. data/docs/GatewayUpdateProducerAws.md +2 -0
  36. data/docs/GatewayUpdateProducerAzure.md +2 -0
  37. data/docs/GatewayUpdateProducerCassandra.md +2 -0
  38. data/docs/GatewayUpdateProducerCertificateAutomation.md +2 -0
  39. data/docs/GatewayUpdateProducerChef.md +2 -0
  40. data/docs/GatewayUpdateProducerCustom.md +2 -0
  41. data/docs/GatewayUpdateProducerDockerhub.md +2 -0
  42. data/docs/GatewayUpdateProducerEks.md +2 -0
  43. data/docs/GatewayUpdateProducerGcp.md +2 -0
  44. data/docs/GatewayUpdateProducerGithub.md +2 -0
  45. data/docs/GatewayUpdateProducerGke.md +2 -0
  46. data/docs/GatewayUpdateProducerHanaDb.md +2 -0
  47. data/docs/GatewayUpdateProducerLdap.md +2 -0
  48. data/docs/GatewayUpdateProducerMSSQL.md +2 -0
  49. data/docs/GatewayUpdateProducerMongo.md +2 -0
  50. data/docs/GatewayUpdateProducerMySQL.md +2 -0
  51. data/docs/GatewayUpdateProducerNativeK8S.md +2 -0
  52. data/docs/GatewayUpdateProducerOracleDb.md +2 -0
  53. data/docs/GatewayUpdateProducerPostgreSQL.md +2 -0
  54. data/docs/GatewayUpdateProducerRabbitMQ.md +2 -0
  55. data/docs/GatewayUpdateProducerRdp.md +2 -0
  56. data/docs/GatewayUpdateProducerRedshift.md +2 -0
  57. data/docs/GatewayUpdateProducerSnowflake.md +2 -0
  58. data/docs/GetKubeExecCreds.md +4 -0
  59. data/docs/GetPKICertificate.md +4 -0
  60. data/docs/GetSSHCertificate.md +4 -0
  61. data/docs/Item.md +2 -0
  62. data/docs/ItemGeneralInfo.md +2 -0
  63. data/docs/MigrationGeneral.md +2 -0
  64. data/docs/MigrationItems.md +24 -0
  65. data/docs/MigrationStatusReplyObj.md +36 -0
  66. data/docs/TargetTypeDetailsInput.md +2 -0
  67. data/docs/UpdateItem.md +2 -0
  68. data/docs/UploadRSA.md +2 -0
  69. data/docs/V2Api.md +64 -1
  70. data/lib/akeyless/api/v2_api.rb +64 -0
  71. data/lib/akeyless/models/configure.rb +24 -4
  72. data/lib/akeyless/models/gateway_create_migration.rb +22 -22
  73. data/lib/akeyless/models/gateway_create_producer_artifactory.rb +11 -1
  74. data/lib/akeyless/models/gateway_create_producer_aws.rb +11 -1
  75. data/lib/akeyless/models/gateway_create_producer_azure.rb +11 -1
  76. data/lib/akeyless/models/gateway_create_producer_cassandra.rb +11 -1
  77. data/lib/akeyless/models/gateway_create_producer_certificate_automation.rb +11 -1
  78. data/lib/akeyless/models/gateway_create_producer_chef.rb +11 -1
  79. data/lib/akeyless/models/gateway_create_producer_custom.rb +11 -1
  80. data/lib/akeyless/models/gateway_create_producer_dockerhub.rb +11 -1
  81. data/lib/akeyless/models/gateway_create_producer_eks.rb +11 -1
  82. data/lib/akeyless/models/gateway_create_producer_gcp.rb +11 -1
  83. data/lib/akeyless/models/gateway_create_producer_github.rb +11 -1
  84. data/lib/akeyless/models/gateway_create_producer_gke.rb +11 -1
  85. data/lib/akeyless/models/gateway_create_producer_hana_db.rb +11 -1
  86. data/lib/akeyless/models/gateway_create_producer_ldap.rb +11 -1
  87. data/lib/akeyless/models/gateway_create_producer_mongo.rb +11 -1
  88. data/lib/akeyless/models/gateway_create_producer_mssql.rb +11 -1
  89. data/lib/akeyless/models/gateway_create_producer_my_sql.rb +11 -1
  90. data/lib/akeyless/models/gateway_create_producer_native_k8_s.rb +11 -1
  91. data/lib/akeyless/models/gateway_create_producer_oracle_db.rb +11 -1
  92. data/lib/akeyless/models/gateway_create_producer_postgre_sql.rb +11 -1
  93. data/lib/akeyless/models/gateway_create_producer_rabbit_mq.rb +11 -1
  94. data/lib/akeyless/models/gateway_create_producer_rdp.rb +11 -1
  95. data/lib/akeyless/models/gateway_create_producer_redshift.rb +11 -1
  96. data/lib/akeyless/models/gateway_create_producer_snowflake.rb +11 -1
  97. data/lib/akeyless/models/gateway_delete_migration.rb +1 -1
  98. data/lib/akeyless/models/gateway_get_migration.rb +1 -0
  99. data/lib/akeyless/models/gateway_status_migration.rb +251 -0
  100. data/lib/akeyless/models/gateway_update_item.rb +11 -1
  101. data/lib/akeyless/models/gateway_update_migration.rb +33 -38
  102. data/lib/akeyless/models/gateway_update_producer_artifactory.rb +11 -1
  103. data/lib/akeyless/models/gateway_update_producer_aws.rb +11 -1
  104. data/lib/akeyless/models/gateway_update_producer_azure.rb +11 -1
  105. data/lib/akeyless/models/gateway_update_producer_cassandra.rb +11 -1
  106. data/lib/akeyless/models/gateway_update_producer_certificate_automation.rb +11 -1
  107. data/lib/akeyless/models/gateway_update_producer_chef.rb +11 -1
  108. data/lib/akeyless/models/gateway_update_producer_custom.rb +11 -1
  109. data/lib/akeyless/models/gateway_update_producer_dockerhub.rb +11 -1
  110. data/lib/akeyless/models/gateway_update_producer_eks.rb +11 -1
  111. data/lib/akeyless/models/gateway_update_producer_gcp.rb +11 -1
  112. data/lib/akeyless/models/gateway_update_producer_github.rb +11 -1
  113. data/lib/akeyless/models/gateway_update_producer_gke.rb +11 -1
  114. data/lib/akeyless/models/gateway_update_producer_hana_db.rb +11 -1
  115. data/lib/akeyless/models/gateway_update_producer_ldap.rb +11 -1
  116. data/lib/akeyless/models/gateway_update_producer_mongo.rb +11 -1
  117. data/lib/akeyless/models/gateway_update_producer_mssql.rb +11 -1
  118. data/lib/akeyless/models/gateway_update_producer_my_sql.rb +11 -1
  119. data/lib/akeyless/models/gateway_update_producer_native_k8_s.rb +11 -1
  120. data/lib/akeyless/models/gateway_update_producer_oracle_db.rb +11 -1
  121. data/lib/akeyless/models/gateway_update_producer_postgre_sql.rb +11 -1
  122. data/lib/akeyless/models/gateway_update_producer_rabbit_mq.rb +11 -1
  123. data/lib/akeyless/models/gateway_update_producer_rdp.rb +11 -1
  124. data/lib/akeyless/models/gateway_update_producer_redshift.rb +11 -1
  125. data/lib/akeyless/models/gateway_update_producer_snowflake.rb +11 -1
  126. data/lib/akeyless/models/get_kube_exec_creds.rb +21 -1
  127. data/lib/akeyless/models/get_pki_certificate.rb +21 -1
  128. data/lib/akeyless/models/get_ssh_certificate.rb +21 -1
  129. data/lib/akeyless/models/item.rb +10 -1
  130. data/lib/akeyless/models/item_general_info.rb +10 -1
  131. data/lib/akeyless/models/migration_general.rb +10 -1
  132. data/lib/akeyless/models/migration_items.rb +246 -0
  133. data/lib/akeyless/models/migration_status_reply_obj.rb +300 -0
  134. data/lib/akeyless/models/target_type_details_input.rb +10 -1
  135. data/lib/akeyless/models/update_item.rb +11 -1
  136. data/lib/akeyless/models/upload_rsa.rb +11 -1
  137. data/lib/akeyless/version.rb +1 -1
  138. data/lib/akeyless.rb +3 -0
  139. data/spec/models/gateway_status_migration_spec.rb +52 -0
  140. data/spec/models/migration_items_spec.rb +52 -0
  141. data/spec/models/migration_status_reply_obj_spec.rb +88 -0
  142. metadata +511 -499
@@ -0,0 +1,36 @@
1
+ # Akeyless::MigrationStatusReplyObj
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **duration_time** | **String** | | [optional] |
8
+ | **last_status_message** | **String** | | [optional] |
9
+ | **max_name_length** | **Integer** | | [optional] |
10
+ | **max_value_length** | **Integer** | | [optional] |
11
+ | **migration_id** | **String** | | [optional] |
12
+ | **migration_items** | [**MigrationItems**](MigrationItems.md) | | [optional] |
13
+ | **migration_name** | **String** | | [optional] |
14
+ | **migration_state** | **String** | | [optional] |
15
+ | **migration_type** | **String** | | [optional] |
16
+ | **start_time** | **String** | | [optional] |
17
+
18
+ ## Example
19
+
20
+ ```ruby
21
+ require 'akeyless'
22
+
23
+ instance = Akeyless::MigrationStatusReplyObj.new(
24
+ duration_time: null,
25
+ last_status_message: null,
26
+ max_name_length: null,
27
+ max_value_length: null,
28
+ migration_id: null,
29
+ migration_items: null,
30
+ migration_name: null,
31
+ migration_state: null,
32
+ migration_type: null,
33
+ start_time: null
34
+ )
35
+ ```
36
+
@@ -7,6 +7,7 @@
7
7
  | **artifactory_admin_apikey** | **String** | | [optional] |
8
8
  | **artifactory_admin_username** | **String** | | [optional] |
9
9
  | **artifactory_base_url** | **String** | | [optional] |
10
+ | **auth_flow** | **String** | | [optional] |
10
11
  | **aws_access_key_id** | **String** | | [optional] |
11
12
  | **aws_region** | **String** | | [optional] |
12
13
  | **aws_secret_access_key** | **String** | | [optional] |
@@ -104,6 +105,7 @@ instance = Akeyless::TargetTypeDetailsInput.new(
104
105
  artifactory_admin_apikey: null,
105
106
  artifactory_admin_username: null,
106
107
  artifactory_base_url: null,
108
+ auth_flow: null,
107
109
  aws_access_key_id: null,
108
110
  aws_region: null,
109
111
  aws_secret_access_key: null,
data/docs/UpdateItem.md CHANGED
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **add_tag** | **Array<String>** | List of the new tags that will be attached to this item | [optional] |
8
+ | **cert_file_data** | **String** | PEM Certificate in a Base64 format. Used for updating RSA keys' certificates. | [optional] |
8
9
  | **delete_protection** | **String** | | [optional] |
9
10
  | **name** | **String** | Current item name | |
10
11
  | **new_metadata** | **String** | New item metadata | [optional][default to 'default_metadata'] |
@@ -44,6 +45,7 @@ require 'akeyless'
44
45
 
45
46
  instance = Akeyless::UpdateItem.new(
46
47
  add_tag: null,
48
+ cert_file_data: null,
47
49
  delete_protection: null,
48
50
  name: null,
49
51
  new_metadata: null,
data/docs/UploadRSA.md CHANGED
@@ -10,6 +10,7 @@
10
10
  | **delete_protection** | **String** | Protection from accidental deletion of this item | [optional] |
11
11
  | **metadata** | **String** | A metadata about the key | [optional] |
12
12
  | **name** | **String** | Name of key to be created | |
13
+ | **overwrite** | **String** | When the overwrite flag is set, this command will only update an existing key. [true, false] | [optional] |
13
14
  | **rsa_file_data** | **String** | RSA private key data, base64 encoded | [optional] |
14
15
  | **split_level** | **Integer** | The number of fragments that the item will be split into | [optional][default to 2] |
15
16
  | **tag** | **Array<String>** | List of the tags attached to this key | [optional] |
@@ -28,6 +29,7 @@ instance = Akeyless::UploadRSA.new(
28
29
  delete_protection: null,
29
30
  metadata: null,
30
31
  name: null,
32
+ overwrite: null,
31
33
  rsa_file_data: null,
32
34
  split_level: null,
33
35
  tag: null,
data/docs/V2Api.md CHANGED
@@ -106,6 +106,7 @@ All URIs are relative to *https://api.akeyless.io*
106
106
  | [**gateway_list_producers**](V2Api.md#gateway_list_producers) | **POST** /gateway-list-producers | |
107
107
  | [**gateway_revoke_tmp_users**](V2Api.md#gateway_revoke_tmp_users) | **POST** /gateway-revoke-producer-tmp-creds | |
108
108
  | [**gateway_start_producer**](V2Api.md#gateway_start_producer) | **POST** /gateway-start-producer | |
109
+ | [**gateway_status_migration**](V2Api.md#gateway_status_migration) | **POST** /gateway-migration-status | |
109
110
  | [**gateway_stop_producer**](V2Api.md#gateway_stop_producer) | **POST** /gateway-stop-producer | |
110
111
  | [**gateway_sync_migration**](V2Api.md#gateway_sync_migration) | **POST** /gateway-sync-migration | |
111
112
  | [**gateway_update_item**](V2Api.md#gateway_update_item) | **POST** /gateway-update-item | |
@@ -6564,6 +6565,68 @@ No authorization required
6564
6565
  - **Accept**: application/json
6565
6566
 
6566
6567
 
6568
+ ## gateway_status_migration
6569
+
6570
+ > <MigrationStatusReplyObj> gateway_status_migration(body)
6571
+
6572
+
6573
+
6574
+ ### Examples
6575
+
6576
+ ```ruby
6577
+ require 'time'
6578
+ require 'akeyless'
6579
+
6580
+ api_instance = Akeyless::V2Api.new
6581
+ body = Akeyless::GatewayStatusMigration.new # GatewayStatusMigration |
6582
+
6583
+ begin
6584
+
6585
+ result = api_instance.gateway_status_migration(body)
6586
+ p result
6587
+ rescue Akeyless::ApiError => e
6588
+ puts "Error when calling V2Api->gateway_status_migration: #{e}"
6589
+ end
6590
+ ```
6591
+
6592
+ #### Using the gateway_status_migration_with_http_info variant
6593
+
6594
+ This returns an Array which contains the response data, status code and headers.
6595
+
6596
+ > <Array(<MigrationStatusReplyObj>, Integer, Hash)> gateway_status_migration_with_http_info(body)
6597
+
6598
+ ```ruby
6599
+ begin
6600
+
6601
+ data, status_code, headers = api_instance.gateway_status_migration_with_http_info(body)
6602
+ p status_code # => 2xx
6603
+ p headers # => { ... }
6604
+ p data # => <MigrationStatusReplyObj>
6605
+ rescue Akeyless::ApiError => e
6606
+ puts "Error when calling V2Api->gateway_status_migration_with_http_info: #{e}"
6607
+ end
6608
+ ```
6609
+
6610
+ ### Parameters
6611
+
6612
+ | Name | Type | Description | Notes |
6613
+ | ---- | ---- | ----------- | ----- |
6614
+ | **body** | [**GatewayStatusMigration**](GatewayStatusMigration.md) | | |
6615
+
6616
+ ### Return type
6617
+
6618
+ [**MigrationStatusReplyObj**](MigrationStatusReplyObj.md)
6619
+
6620
+ ### Authorization
6621
+
6622
+ No authorization required
6623
+
6624
+ ### HTTP request headers
6625
+
6626
+ - **Content-Type**: application/json
6627
+ - **Accept**: application/json
6628
+
6629
+
6567
6630
  ## gateway_stop_producer
6568
6631
 
6569
6632
  > <GatewayStopProducerOutput> gateway_stop_producer(body)
@@ -6887,7 +6950,7 @@ require 'time'
6887
6950
  require 'akeyless'
6888
6951
 
6889
6952
  api_instance = Akeyless::V2Api.new
6890
- body = Akeyless::GatewayUpdateMigration.new({name: 'name_example'}) # GatewayUpdateMigration |
6953
+ body = Akeyless::GatewayUpdateMigration.new # GatewayUpdateMigration |
6891
6954
 
6892
6955
  begin
6893
6956
 
@@ -6543,6 +6543,70 @@ module Akeyless
6543
6543
  return data, status_code, headers
6544
6544
  end
6545
6545
 
6546
+ # @param body [GatewayStatusMigration]
6547
+ # @param [Hash] opts the optional parameters
6548
+ # @return [MigrationStatusReplyObj]
6549
+ def gateway_status_migration(body, opts = {})
6550
+ data, _status_code, _headers = gateway_status_migration_with_http_info(body, opts)
6551
+ data
6552
+ end
6553
+
6554
+ # @param body [GatewayStatusMigration]
6555
+ # @param [Hash] opts the optional parameters
6556
+ # @return [Array<(MigrationStatusReplyObj, Integer, Hash)>] MigrationStatusReplyObj data, response status code and response headers
6557
+ def gateway_status_migration_with_http_info(body, opts = {})
6558
+ if @api_client.config.debugging
6559
+ @api_client.config.logger.debug 'Calling API: V2Api.gateway_status_migration ...'
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_status_migration"
6564
+ end
6565
+ # resource path
6566
+ local_var_path = '/gateway-migration-status'
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] || 'MigrationStatusReplyObj'
6589
+
6590
+ # auth_names
6591
+ auth_names = opts[:debug_auth_names] || []
6592
+
6593
+ new_options = opts.merge(
6594
+ :operation => :"V2Api.gateway_status_migration",
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_status_migration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
6606
+ end
6607
+ return data, status_code, headers
6608
+ end
6609
+
6546
6610
  # @param body [GatewayStopProducer]
6547
6611
  # @param [Hash] opts the optional parameters
6548
6612
  # @return [GatewayStopProducerOutput]
@@ -33,12 +33,18 @@ module Akeyless
33
33
  # Azure Active Directory ObjectId (relevant only for access-type=azure_ad)
34
34
  attr_accessor :azure_ad_object_id
35
35
 
36
+ # Certificate data encoded in base64. Used if file was not provided. (relevant only for access-type=cert in Curl Context)
37
+ attr_accessor :cert_data
38
+
36
39
  # GCP JWT audience
37
40
  attr_accessor :gcp_audience
38
41
 
39
42
  # The K8S Auth config name (relevant only for access-type=k8s)
40
43
  attr_accessor :k8s_auth_config_name
41
44
 
45
+ # Private key data encoded in base64. Used if file was not provided.(relevant only for access-type=cert in Curl Context)
46
+ attr_accessor :key_data
47
+
42
48
  # Attribute mapping from ruby-style variable name to JSON key.
43
49
  def self.attribute_map
44
50
  {
@@ -48,8 +54,10 @@ module Akeyless
48
54
  :'admin_email' => :'admin-email',
49
55
  :'admin_password' => :'admin-password',
50
56
  :'azure_ad_object_id' => :'azure_ad_object_id',
57
+ :'cert_data' => :'cert-data',
51
58
  :'gcp_audience' => :'gcp-audience',
52
- :'k8s_auth_config_name' => :'k8s-auth-config-name'
59
+ :'k8s_auth_config_name' => :'k8s-auth-config-name',
60
+ :'key_data' => :'key-data'
53
61
  }
54
62
  end
55
63
 
@@ -67,8 +75,10 @@ module Akeyless
67
75
  :'admin_email' => :'String',
68
76
  :'admin_password' => :'String',
69
77
  :'azure_ad_object_id' => :'String',
78
+ :'cert_data' => :'String',
70
79
  :'gcp_audience' => :'String',
71
- :'k8s_auth_config_name' => :'String'
80
+ :'k8s_auth_config_name' => :'String',
81
+ :'key_data' => :'String'
72
82
  }
73
83
  end
74
84
 
@@ -119,6 +129,10 @@ module Akeyless
119
129
  self.azure_ad_object_id = attributes[:'azure_ad_object_id']
120
130
  end
121
131
 
132
+ if attributes.key?(:'cert_data')
133
+ self.cert_data = attributes[:'cert_data']
134
+ end
135
+
122
136
  if attributes.key?(:'gcp_audience')
123
137
  self.gcp_audience = attributes[:'gcp_audience']
124
138
  end
@@ -126,6 +140,10 @@ module Akeyless
126
140
  if attributes.key?(:'k8s_auth_config_name')
127
141
  self.k8s_auth_config_name = attributes[:'k8s_auth_config_name']
128
142
  end
143
+
144
+ if attributes.key?(:'key_data')
145
+ self.key_data = attributes[:'key_data']
146
+ end
129
147
  end
130
148
 
131
149
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -152,8 +170,10 @@ module Akeyless
152
170
  admin_email == o.admin_email &&
153
171
  admin_password == o.admin_password &&
154
172
  azure_ad_object_id == o.azure_ad_object_id &&
173
+ cert_data == o.cert_data &&
155
174
  gcp_audience == o.gcp_audience &&
156
- k8s_auth_config_name == o.k8s_auth_config_name
175
+ k8s_auth_config_name == o.k8s_auth_config_name &&
176
+ key_data == o.key_data
157
177
  end
158
178
 
159
179
  # @see the `==` method
@@ -165,7 +185,7 @@ module Akeyless
165
185
  # Calculates hash code according to all attributes.
166
186
  # @return [Integer] Hash code
167
187
  def hash
168
- [access_id, access_key, access_type, admin_email, admin_password, azure_ad_object_id, gcp_audience, k8s_auth_config_name].hash
188
+ [access_id, access_key, access_type, admin_email, admin_password, azure_ad_object_id, cert_data, gcp_audience, k8s_auth_config_name, key_data].hash
169
189
  end
170
190
 
171
191
  # Builds the object from hash
@@ -16,67 +16,67 @@ require 'time'
16
16
  module Akeyless
17
17
  # gatewayCreateMigration is a command that create migration
18
18
  class GatewayCreateMigration
19
- # AWS Secret Access Key
19
+ # AWS Secret Access Key (relevant only for AWS migration)
20
20
  attr_accessor :aws_key
21
21
 
22
- # AWS Access Key ID
22
+ # AWS Access Key ID with sufficient permissions to get all secrets, e.g. 'arn:aws:secretsmanager:[Region]:[AccountId]:secret:[/path/to/secrets/*]' (relevant only for AWS migration)
23
23
  attr_accessor :aws_key_id
24
24
 
25
- # AWS region
25
+ # AWS region of the required Secrets Manager (relevant only for AWS migration)
26
26
  attr_accessor :aws_region
27
27
 
28
- # Azure KV Access client ID
28
+ # Azure Key Vault Access client ID, should be Azure AD App with a service principal (relevant only for Azure Key Vault migration)
29
29
  attr_accessor :azure_client_id
30
30
 
31
- # Azure Key Vault Name
31
+ # Azure Key Vault Name (relevant only for Azure Key Vault migration)
32
32
  attr_accessor :azure_kv_name
33
33
 
34
- # Azure KV secret
34
+ # Azure Key Vault secret (relevant only for Azure Key Vault migration)
35
35
  attr_accessor :azure_secret
36
36
 
37
- # Azure KV Access tenant ID
37
+ # Azure Key Vault Access tenant ID (relevant only for Azure Key Vault migration)
38
38
  attr_accessor :azure_tenant_id
39
39
 
40
- # Base64-encoded service account private key text
40
+ # Base64-encoded GCP Service Account private key text with sufficient permissions to Secrets Manager, Minimum required permission is Secret Manager Secret Accessor, e.g. 'roles/secretmanager.secretAccessor' (relevant only for GCP migration)
41
41
  attr_accessor :gcp_key
42
42
 
43
- # Import secret key as json value or independent secrets
43
+ # Import secret key as json value or independent secrets (relevant only for HasiCorp Vault migration)
44
44
  attr_accessor :hashi_json
45
45
 
46
- # Hashi namespaces
46
+ # HashiCorp Vault Namespaces is a comma-separated list of namespaces which need to be imported into Akeyless Vault. For every provided namespace, all its child namespaces are imported as well, e.g. nmsp/subnmsp1/subnmsp2,nmsp/anothernmsp. By default, import all namespaces (relevant only for HasiCorp Vault migration)
47
47
  attr_accessor :hashi_ns
48
48
 
49
- # Hashi token
49
+ # HashiCorp Vault access token with sufficient permissions to preform list & read operations on secrets objects (relevant only for HasiCorp Vault migration)
50
50
  attr_accessor :hashi_token
51
51
 
52
- # Hashi url
52
+ # HashiCorp Vault API URL, e.g. https://vault-mgr01:8200 (relevant only for HasiCorp Vault migration)
53
53
  attr_accessor :hashi_url
54
54
 
55
- # For Certificate Authentication method K8s Cluster CA certificate
55
+ # For Certificate Authentication method K8s Cluster CA certificate (relevant only for K8s migration with Certificate Authentication method)
56
56
  attr_accessor :k8s_ca_certificate
57
57
 
58
- # K8s Client certificate
58
+ # K8s Client certificate with sufficient permission to list and get secrets in the namespace(s) you selected (relevant only for K8s migration with Certificate Authentication method)
59
59
  attr_accessor :k8s_client_certificate
60
60
 
61
- # K8s Client key
61
+ # K8s Client key (relevant only for K8s migration with Certificate Authentication method)
62
62
  attr_accessor :k8s_client_key
63
63
 
64
- # K8s Namespace
64
+ # K8s Namespace, Use this field to import secrets from a particular namespace only. By default, the secrets are imported from all namespaces (relevant only for K8s migration)
65
65
  attr_accessor :k8s_namespace
66
66
 
67
- # K8s client password
67
+ # K8s Client password (relevant only for K8s migration with Password Authentication method)
68
68
  attr_accessor :k8s_password
69
69
 
70
- # K8s Skip Control Plane Secrets
70
+ # K8s Skip Control Plane Secrets, This option allows to avoid importing secrets from system namespaces (relevant only for K8s migration)
71
71
  attr_accessor :k8s_skip_system
72
72
 
73
- # For Token Authentication method K8s Bearer Token
73
+ # For Token Authentication method K8s Bearer Token with sufficient permission to list and get secrets in the namespace(s) you selected (relevant only for K8s migration with Token Authentication method)
74
74
  attr_accessor :k8s_token
75
75
 
76
- # K8s Endpoint URL
76
+ # K8s API Server URL, e.g. https://k8s-api.mycompany.com:6443 (relevant only for K8s migration)
77
77
  attr_accessor :k8s_url
78
78
 
79
- # For Password Authentication method K8s client username
79
+ # For Password Authentication method K8s Client username with sufficient permission to list and get secrets in the namespace(s) you selected (relevant only for K8s migration with Password Authentication method)
80
80
  attr_accessor :k8s_username
81
81
 
82
82
  # Migration name
@@ -91,7 +91,7 @@ module Akeyless
91
91
  # Authentication token (see `/auth` and `/configure`)
92
92
  attr_accessor :token
93
93
 
94
- # Migration type, can be: hashi/aws/gcp/k8s/azure_kv
94
+ # Migration type (hashi/aws/gcp/k8s/azure_kv)
95
95
  attr_accessor :type
96
96
 
97
97
  # The universal identity token, Required only for universal_identity authentication
@@ -31,6 +31,9 @@ module Akeyless
31
31
  # Base URL
32
32
  attr_accessor :base_url
33
33
 
34
+ # Protection from accidental deletion of this item
35
+ attr_accessor :delete_protection
36
+
34
37
  # Producer name
35
38
  attr_accessor :name
36
39
 
@@ -60,6 +63,7 @@ module Akeyless
60
63
  :'artifactory_token_audience' => :'artifactory-token-audience',
61
64
  :'artifactory_token_scope' => :'artifactory-token-scope',
62
65
  :'base_url' => :'base-url',
66
+ :'delete_protection' => :'delete_protection',
63
67
  :'name' => :'name',
64
68
  :'producer_encryption_key_name' => :'producer-encryption-key-name',
65
69
  :'tags' => :'tags',
@@ -83,6 +87,7 @@ module Akeyless
83
87
  :'artifactory_token_audience' => :'String',
84
88
  :'artifactory_token_scope' => :'String',
85
89
  :'base_url' => :'String',
90
+ :'delete_protection' => :'String',
86
91
  :'name' => :'String',
87
92
  :'producer_encryption_key_name' => :'String',
88
93
  :'tags' => :'Array<String>',
@@ -134,6 +139,10 @@ module Akeyless
134
139
  self.base_url = attributes[:'base_url']
135
140
  end
136
141
 
142
+ if attributes.key?(:'delete_protection')
143
+ self.delete_protection = attributes[:'delete_protection']
144
+ end
145
+
137
146
  if attributes.key?(:'name')
138
147
  self.name = attributes[:'name']
139
148
  end
@@ -205,6 +214,7 @@ module Akeyless
205
214
  artifactory_token_audience == o.artifactory_token_audience &&
206
215
  artifactory_token_scope == o.artifactory_token_scope &&
207
216
  base_url == o.base_url &&
217
+ delete_protection == o.delete_protection &&
208
218
  name == o.name &&
209
219
  producer_encryption_key_name == o.producer_encryption_key_name &&
210
220
  tags == o.tags &&
@@ -223,7 +233,7 @@ module Akeyless
223
233
  # Calculates hash code according to all attributes.
224
234
  # @return [Integer] Hash code
225
235
  def hash
226
- [artifactory_admin_name, artifactory_admin_pwd, artifactory_token_audience, artifactory_token_scope, base_url, name, producer_encryption_key_name, tags, target_name, token, uid_token, user_ttl].hash
236
+ [artifactory_admin_name, artifactory_admin_pwd, artifactory_token_audience, artifactory_token_scope, base_url, delete_protection, name, producer_encryption_key_name, tags, target_name, token, uid_token, user_ttl].hash
227
237
  end
228
238
 
229
239
  # Builds the object from hash
@@ -42,6 +42,9 @@ module Akeyless
42
42
  # AWS User programmatic access
43
43
  attr_accessor :aws_user_programmatic_access
44
44
 
45
+ # Protection from accidental deletion of this item
46
+ attr_accessor :delete_protection
47
+
45
48
  # Automatic admin credentials rotation
46
49
  attr_accessor :enable_admin_rotation
47
50
 
@@ -95,6 +98,7 @@ module Akeyless
95
98
  :'aws_user_groups' => :'aws-user-groups',
96
99
  :'aws_user_policies' => :'aws-user-policies',
97
100
  :'aws_user_programmatic_access' => :'aws-user-programmatic-access',
101
+ :'delete_protection' => :'delete_protection',
98
102
  :'enable_admin_rotation' => :'enable-admin-rotation',
99
103
  :'name' => :'name',
100
104
  :'producer_encryption_key_name' => :'producer-encryption-key-name',
@@ -131,6 +135,7 @@ module Akeyless
131
135
  :'aws_user_groups' => :'String',
132
136
  :'aws_user_policies' => :'String',
133
137
  :'aws_user_programmatic_access' => :'Boolean',
138
+ :'delete_protection' => :'String',
134
139
  :'enable_admin_rotation' => :'Boolean',
135
140
  :'name' => :'String',
136
141
  :'producer_encryption_key_name' => :'String',
@@ -213,6 +218,10 @@ module Akeyless
213
218
  self.aws_user_programmatic_access = true
214
219
  end
215
220
 
221
+ if attributes.key?(:'delete_protection')
222
+ self.delete_protection = attributes[:'delete_protection']
223
+ end
224
+
216
225
  if attributes.key?(:'enable_admin_rotation')
217
226
  self.enable_admin_rotation = attributes[:'enable_admin_rotation']
218
227
  else
@@ -318,6 +327,7 @@ module Akeyless
318
327
  aws_user_groups == o.aws_user_groups &&
319
328
  aws_user_policies == o.aws_user_policies &&
320
329
  aws_user_programmatic_access == o.aws_user_programmatic_access &&
330
+ delete_protection == o.delete_protection &&
321
331
  enable_admin_rotation == o.enable_admin_rotation &&
322
332
  name == o.name &&
323
333
  producer_encryption_key_name == o.producer_encryption_key_name &&
@@ -345,7 +355,7 @@ module Akeyless
345
355
  # Calculates hash code according to all attributes.
346
356
  # @return [Integer] Hash code
347
357
  def hash
348
- [access_mode, admin_rotation_interval_days, aws_access_key_id, aws_access_secret_key, aws_role_arns, aws_user_console_access, aws_user_groups, aws_user_policies, aws_user_programmatic_access, enable_admin_rotation, name, producer_encryption_key_name, region, secure_access_aws_account_id, secure_access_aws_native_cli, secure_access_bastion_issuer, secure_access_enable, secure_access_web, secure_access_web_browsing, secure_access_web_proxy, tags, target_name, token, uid_token, user_ttl].hash
358
+ [access_mode, admin_rotation_interval_days, aws_access_key_id, aws_access_secret_key, aws_role_arns, aws_user_console_access, aws_user_groups, aws_user_policies, aws_user_programmatic_access, delete_protection, enable_admin_rotation, name, producer_encryption_key_name, region, secure_access_aws_account_id, secure_access_aws_native_cli, secure_access_bastion_issuer, secure_access_enable, secure_access_web, secure_access_web_browsing, secure_access_web_proxy, tags, target_name, token, uid_token, user_ttl].hash
349
359
  end
350
360
 
351
361
  # Builds the object from hash
@@ -28,6 +28,9 @@ module Akeyless
28
28
  # Azure Tenant ID
29
29
  attr_accessor :azure_tenant_id
30
30
 
31
+ # Protection from accidental deletion of this item
32
+ attr_accessor :delete_protection
33
+
31
34
  # FixedUserClaimKeyname
32
35
  attr_accessor :fixed_user_claim_keyname
33
36
 
@@ -85,6 +88,7 @@ module Akeyless
85
88
  :'azure_client_id' => :'azure-client-id',
86
89
  :'azure_client_secret' => :'azure-client-secret',
87
90
  :'azure_tenant_id' => :'azure-tenant-id',
91
+ :'delete_protection' => :'delete_protection',
88
92
  :'fixed_user_claim_keyname' => :'fixed-user-claim-keyname',
89
93
  :'fixed_user_only' => :'fixed-user-only',
90
94
  :'name' => :'name',
@@ -118,6 +122,7 @@ module Akeyless
118
122
  :'azure_client_id' => :'String',
119
123
  :'azure_client_secret' => :'String',
120
124
  :'azure_tenant_id' => :'String',
125
+ :'delete_protection' => :'String',
121
126
  :'fixed_user_claim_keyname' => :'String',
122
127
  :'fixed_user_only' => :'Boolean',
123
128
  :'name' => :'String',
@@ -176,6 +181,10 @@ module Akeyless
176
181
  self.azure_tenant_id = attributes[:'azure_tenant_id']
177
182
  end
178
183
 
184
+ if attributes.key?(:'delete_protection')
185
+ self.delete_protection = attributes[:'delete_protection']
186
+ end
187
+
179
188
  if attributes.key?(:'fixed_user_claim_keyname')
180
189
  self.fixed_user_claim_keyname = attributes[:'fixed_user_claim_keyname']
181
190
  else
@@ -288,6 +297,7 @@ module Akeyless
288
297
  azure_client_id == o.azure_client_id &&
289
298
  azure_client_secret == o.azure_client_secret &&
290
299
  azure_tenant_id == o.azure_tenant_id &&
300
+ delete_protection == o.delete_protection &&
291
301
  fixed_user_claim_keyname == o.fixed_user_claim_keyname &&
292
302
  fixed_user_only == o.fixed_user_only &&
293
303
  name == o.name &&
@@ -317,7 +327,7 @@ module Akeyless
317
327
  # Calculates hash code according to all attributes.
318
328
  # @return [Integer] Hash code
319
329
  def hash
320
- [app_obj_id, azure_client_id, azure_client_secret, azure_tenant_id, fixed_user_claim_keyname, fixed_user_only, name, producer_encryption_key_name, secure_access_enable, secure_access_web, secure_access_web_browsing, secure_access_web_proxy, tags, target_name, token, uid_token, user_group_obj_id, user_portal_access, user_principal_name, user_programmatic_access, user_role_template_id, user_ttl].hash
330
+ [app_obj_id, azure_client_id, azure_client_secret, azure_tenant_id, delete_protection, fixed_user_claim_keyname, fixed_user_only, name, producer_encryption_key_name, secure_access_enable, secure_access_web, secure_access_web_browsing, secure_access_web_proxy, tags, target_name, token, uid_token, user_group_obj_id, user_portal_access, user_principal_name, user_programmatic_access, user_role_template_id, user_ttl].hash
321
331
  end
322
332
 
323
333
  # Builds the object from hash
@@ -31,6 +31,9 @@ module Akeyless
31
31
  # Cassandra superuser username
32
32
  attr_accessor :cassandra_username
33
33
 
34
+ # Protection from accidental deletion of this item
35
+ attr_accessor :delete_protection
36
+
34
37
  # Producer name
35
38
  attr_accessor :name
36
39
 
@@ -60,6 +63,7 @@ module Akeyless
60
63
  :'cassandra_password' => :'cassandra-password',
61
64
  :'cassandra_port' => :'cassandra-port',
62
65
  :'cassandra_username' => :'cassandra-username',
66
+ :'delete_protection' => :'delete_protection',
63
67
  :'name' => :'name',
64
68
  :'producer_encryption_key_name' => :'producer-encryption-key-name',
65
69
  :'tags' => :'tags',
@@ -83,6 +87,7 @@ module Akeyless
83
87
  :'cassandra_password' => :'String',
84
88
  :'cassandra_port' => :'String',
85
89
  :'cassandra_username' => :'String',
90
+ :'delete_protection' => :'String',
86
91
  :'name' => :'String',
87
92
  :'producer_encryption_key_name' => :'String',
88
93
  :'tags' => :'Array<String>',
@@ -136,6 +141,10 @@ module Akeyless
136
141
  self.cassandra_username = attributes[:'cassandra_username']
137
142
  end
138
143
 
144
+ if attributes.key?(:'delete_protection')
145
+ self.delete_protection = attributes[:'delete_protection']
146
+ end
147
+
139
148
  if attributes.key?(:'name')
140
149
  self.name = attributes[:'name']
141
150
  end
@@ -197,6 +206,7 @@ module Akeyless
197
206
  cassandra_password == o.cassandra_password &&
198
207
  cassandra_port == o.cassandra_port &&
199
208
  cassandra_username == o.cassandra_username &&
209
+ delete_protection == o.delete_protection &&
200
210
  name == o.name &&
201
211
  producer_encryption_key_name == o.producer_encryption_key_name &&
202
212
  tags == o.tags &&
@@ -215,7 +225,7 @@ module Akeyless
215
225
  # Calculates hash code according to all attributes.
216
226
  # @return [Integer] Hash code
217
227
  def hash
218
- [cassandra_creation_statements, cassandra_hosts, cassandra_password, cassandra_port, cassandra_username, name, producer_encryption_key_name, tags, target_name, token, uid_token, user_ttl].hash
228
+ [cassandra_creation_statements, cassandra_hosts, cassandra_password, cassandra_port, cassandra_username, delete_protection, name, producer_encryption_key_name, tags, target_name, token, uid_token, user_ttl].hash
219
229
  end
220
230
 
221
231
  # Builds the object from hash