akeyless 2.16.2 → 2.16.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (106) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +20 -1
  3. data/docs/AwsS3LogForwardingConfig.md +2 -0
  4. data/docs/CreateAuthMethod.md +1 -1
  5. data/docs/CreateAuthMethodAWSIAM.md +1 -1
  6. data/docs/CreateAuthMethodAzureAD.md +1 -1
  7. data/docs/CreateAuthMethodCert.md +1 -1
  8. data/docs/CreateAuthMethodGCP.md +1 -1
  9. data/docs/CreateAuthMethodHuawei.md +1 -1
  10. data/docs/CreateAuthMethodK8S.md +1 -1
  11. data/docs/CreateAuthMethodLDAP.md +1 -1
  12. data/docs/CreateAuthMethodOAuth2.md +1 -1
  13. data/docs/CreateAuthMethodOIDC.md +1 -1
  14. data/docs/CreateAuthMethodSAML.md +1 -1
  15. data/docs/CreateAuthMethodUniversalIdentity.md +1 -1
  16. data/docs/CreateClassicKey.md +12 -0
  17. data/docs/CreateRotatedSecret.md +28 -0
  18. data/docs/CreateSalesforceTarget.md +42 -0
  19. data/docs/CreateSalesforceTargetOutput.md +18 -0
  20. data/docs/GatewayCreateMigration.md +50 -0
  21. data/docs/GatewayDeleteMigration.md +22 -0
  22. data/docs/GatewayGetMigration.md +22 -0
  23. data/docs/GatewayMigrationCreateOutput.md +18 -0
  24. data/docs/GatewayMigrationDeleteOutput.md +18 -0
  25. data/docs/GatewayMigrationGetOutput.md +18 -0
  26. data/docs/GatewayMigrationUpdateOutput.md +18 -0
  27. data/docs/GatewayUpdateMigration.md +52 -0
  28. data/docs/GetSecretValue.md +2 -0
  29. data/docs/HashiPayload.md +2 -0
  30. data/docs/Item.md +2 -0
  31. data/docs/TargetTypeDetailsInput.md +12 -0
  32. data/docs/UpdateAuthMethod.md +1 -1
  33. data/docs/UpdateAuthMethodAWSIAM.md +1 -1
  34. data/docs/UpdateAuthMethodAzureAD.md +1 -1
  35. data/docs/UpdateAuthMethodCert.md +1 -1
  36. data/docs/UpdateAuthMethodGCP.md +1 -1
  37. data/docs/UpdateAuthMethodK8S.md +1 -1
  38. data/docs/UpdateAuthMethodLDAP.md +1 -1
  39. data/docs/UpdateAuthMethodOAuth2.md +1 -1
  40. data/docs/UpdateAuthMethodOIDC.md +1 -1
  41. data/docs/UpdateAuthMethodSAML.md +1 -1
  42. data/docs/UpdateAuthMethodUniversalIdentity.md +1 -1
  43. data/docs/UpdateRotatedSecret.md +28 -0
  44. data/docs/UpdateSalesforceTarget.md +48 -0
  45. data/docs/UpdateSalesforceTargetOutput.md +18 -0
  46. data/docs/V2Api.md +441 -0
  47. data/lib/akeyless/api/v2_api.rb +448 -0
  48. data/lib/akeyless/models/aws_s3_log_forwarding_config.rb +10 -1
  49. data/lib/akeyless/models/create_auth_method.rb +0 -2
  50. data/lib/akeyless/models/create_auth_method_awsiam.rb +0 -2
  51. data/lib/akeyless/models/create_auth_method_azure_ad.rb +0 -2
  52. data/lib/akeyless/models/create_auth_method_cert.rb +0 -2
  53. data/lib/akeyless/models/create_auth_method_gcp.rb +0 -2
  54. data/lib/akeyless/models/create_auth_method_huawei.rb +0 -2
  55. data/lib/akeyless/models/create_auth_method_k8_s.rb +0 -2
  56. data/lib/akeyless/models/create_auth_method_ldap.rb +0 -2
  57. data/lib/akeyless/models/create_auth_method_o_auth2.rb +0 -2
  58. data/lib/akeyless/models/create_auth_method_oidc.rb +0 -2
  59. data/lib/akeyless/models/create_auth_method_saml.rb +0 -2
  60. data/lib/akeyless/models/create_auth_method_universal_identity.rb +0 -2
  61. data/lib/akeyless/models/create_classic_key.rb +61 -1
  62. data/lib/akeyless/models/create_rotated_secret.rb +153 -1
  63. data/lib/akeyless/models/create_salesforce_target.rb +375 -0
  64. data/lib/akeyless/models/create_salesforce_target_output.rb +219 -0
  65. data/lib/akeyless/models/gateway_create_migration.rb +374 -0
  66. data/lib/akeyless/models/gateway_delete_migration.rb +246 -0
  67. data/lib/akeyless/models/gateway_get_migration.rb +240 -0
  68. data/lib/akeyless/models/gateway_migration_create_output.rb +219 -0
  69. data/lib/akeyless/models/gateway_migration_delete_output.rb +219 -0
  70. data/lib/akeyless/models/gateway_migration_get_output.rb +219 -0
  71. data/lib/akeyless/models/gateway_migration_update_output.rb +219 -0
  72. data/lib/akeyless/models/gateway_update_migration.rb +383 -0
  73. data/lib/akeyless/models/gateway_update_producer_hana_db.rb +1 -1
  74. data/lib/akeyless/models/get_secret_value.rb +10 -1
  75. data/lib/akeyless/models/hashi_payload.rb +10 -1
  76. data/lib/akeyless/models/item.rb +10 -1
  77. data/lib/akeyless/models/target_type_details_input.rb +59 -1
  78. data/lib/akeyless/models/update_auth_method.rb +0 -2
  79. data/lib/akeyless/models/update_auth_method_awsiam.rb +0 -2
  80. data/lib/akeyless/models/update_auth_method_azure_ad.rb +0 -2
  81. data/lib/akeyless/models/update_auth_method_cert.rb +0 -2
  82. data/lib/akeyless/models/update_auth_method_gcp.rb +0 -2
  83. data/lib/akeyless/models/update_auth_method_k8_s.rb +0 -2
  84. data/lib/akeyless/models/update_auth_method_ldap.rb +0 -2
  85. data/lib/akeyless/models/update_auth_method_o_auth2.rb +0 -2
  86. data/lib/akeyless/models/update_auth_method_oidc.rb +0 -2
  87. data/lib/akeyless/models/update_auth_method_saml.rb +0 -2
  88. data/lib/akeyless/models/update_auth_method_universal_identity.rb +0 -2
  89. data/lib/akeyless/models/update_rotated_secret.rb +153 -1
  90. data/lib/akeyless/models/update_salesforce_target.rb +404 -0
  91. data/lib/akeyless/models/update_salesforce_target_output.rb +219 -0
  92. data/lib/akeyless/version.rb +1 -1
  93. data/lib/akeyless.rb +12 -0
  94. data/spec/models/create_salesforce_target_output_spec.rb +34 -0
  95. data/spec/models/create_salesforce_target_spec.rb +106 -0
  96. data/spec/models/gateway_create_migration_spec.rb +130 -0
  97. data/spec/models/gateway_delete_migration_spec.rb +46 -0
  98. data/spec/models/gateway_get_migration_spec.rb +46 -0
  99. data/spec/models/gateway_migration_create_output_spec.rb +34 -0
  100. data/spec/models/gateway_migration_delete_output_spec.rb +34 -0
  101. data/spec/models/gateway_migration_get_output_spec.rb +34 -0
  102. data/spec/models/gateway_migration_update_output_spec.rb +34 -0
  103. data/spec/models/gateway_update_migration_spec.rb +136 -0
  104. data/spec/models/update_salesforce_target_output_spec.rb +34 -0
  105. data/spec/models/update_salesforce_target_spec.rb +124 -0
  106. metadata +512 -464
@@ -2259,6 +2259,70 @@ module Akeyless
2259
2259
  return data, status_code, headers
2260
2260
  end
2261
2261
 
2262
+ # @param body [CreateSalesforceTarget]
2263
+ # @param [Hash] opts the optional parameters
2264
+ # @return [CreateSalesforceTargetOutput]
2265
+ def create_salesforce_target(body, opts = {})
2266
+ data, _status_code, _headers = create_salesforce_target_with_http_info(body, opts)
2267
+ data
2268
+ end
2269
+
2270
+ # @param body [CreateSalesforceTarget]
2271
+ # @param [Hash] opts the optional parameters
2272
+ # @return [Array<(CreateSalesforceTargetOutput, Integer, Hash)>] CreateSalesforceTargetOutput data, response status code and response headers
2273
+ def create_salesforce_target_with_http_info(body, opts = {})
2274
+ if @api_client.config.debugging
2275
+ @api_client.config.logger.debug 'Calling API: V2Api.create_salesforce_target ...'
2276
+ end
2277
+ # verify the required parameter 'body' is set
2278
+ if @api_client.config.client_side_validation && body.nil?
2279
+ fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.create_salesforce_target"
2280
+ end
2281
+ # resource path
2282
+ local_var_path = '/create-salesforce-target'
2283
+
2284
+ # query parameters
2285
+ query_params = opts[:query_params] || {}
2286
+
2287
+ # header parameters
2288
+ header_params = opts[:header_params] || {}
2289
+ # HTTP header 'Accept' (if needed)
2290
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2291
+ # HTTP header 'Content-Type'
2292
+ content_type = @api_client.select_header_content_type(['application/json'])
2293
+ if !content_type.nil?
2294
+ header_params['Content-Type'] = content_type
2295
+ end
2296
+
2297
+ # form parameters
2298
+ form_params = opts[:form_params] || {}
2299
+
2300
+ # http body (model)
2301
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
2302
+
2303
+ # return_type
2304
+ return_type = opts[:debug_return_type] || 'CreateSalesforceTargetOutput'
2305
+
2306
+ # auth_names
2307
+ auth_names = opts[:debug_auth_names] || []
2308
+
2309
+ new_options = opts.merge(
2310
+ :operation => :"V2Api.create_salesforce_target",
2311
+ :header_params => header_params,
2312
+ :query_params => query_params,
2313
+ :form_params => form_params,
2314
+ :body => post_body,
2315
+ :auth_names => auth_names,
2316
+ :return_type => return_type
2317
+ )
2318
+
2319
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2320
+ if @api_client.config.debugging
2321
+ @api_client.config.logger.debug "API called: V2Api#create_salesforce_target\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2322
+ end
2323
+ return data, status_code, headers
2324
+ end
2325
+
2262
2326
  # @param body [CreateSecret]
2263
2327
  # @param [Hash] opts the optional parameters
2264
2328
  # @return [CreateSecretOutput]
@@ -3859,6 +3923,70 @@ module Akeyless
3859
3923
  return data, status_code, headers
3860
3924
  end
3861
3925
 
3926
+ # @param body [GatewayCreateMigration]
3927
+ # @param [Hash] opts the optional parameters
3928
+ # @return [GatewayMigrationCreateOutput]
3929
+ def gateway_create_migration(body, opts = {})
3930
+ data, _status_code, _headers = gateway_create_migration_with_http_info(body, opts)
3931
+ data
3932
+ end
3933
+
3934
+ # @param body [GatewayCreateMigration]
3935
+ # @param [Hash] opts the optional parameters
3936
+ # @return [Array<(GatewayMigrationCreateOutput, Integer, Hash)>] GatewayMigrationCreateOutput data, response status code and response headers
3937
+ def gateway_create_migration_with_http_info(body, opts = {})
3938
+ if @api_client.config.debugging
3939
+ @api_client.config.logger.debug 'Calling API: V2Api.gateway_create_migration ...'
3940
+ end
3941
+ # verify the required parameter 'body' is set
3942
+ if @api_client.config.client_side_validation && body.nil?
3943
+ fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.gateway_create_migration"
3944
+ end
3945
+ # resource path
3946
+ local_var_path = '/gateway-create-migration'
3947
+
3948
+ # query parameters
3949
+ query_params = opts[:query_params] || {}
3950
+
3951
+ # header parameters
3952
+ header_params = opts[:header_params] || {}
3953
+ # HTTP header 'Accept' (if needed)
3954
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3955
+ # HTTP header 'Content-Type'
3956
+ content_type = @api_client.select_header_content_type(['application/json'])
3957
+ if !content_type.nil?
3958
+ header_params['Content-Type'] = content_type
3959
+ end
3960
+
3961
+ # form parameters
3962
+ form_params = opts[:form_params] || {}
3963
+
3964
+ # http body (model)
3965
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
3966
+
3967
+ # return_type
3968
+ return_type = opts[:debug_return_type] || 'GatewayMigrationCreateOutput'
3969
+
3970
+ # auth_names
3971
+ auth_names = opts[:debug_auth_names] || []
3972
+
3973
+ new_options = opts.merge(
3974
+ :operation => :"V2Api.gateway_create_migration",
3975
+ :header_params => header_params,
3976
+ :query_params => query_params,
3977
+ :form_params => form_params,
3978
+ :body => post_body,
3979
+ :auth_names => auth_names,
3980
+ :return_type => return_type
3981
+ )
3982
+
3983
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
3984
+ if @api_client.config.debugging
3985
+ @api_client.config.logger.debug "API called: V2Api#gateway_create_migration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3986
+ end
3987
+ return data, status_code, headers
3988
+ end
3989
+
3862
3990
  # @param body [GatewayCreateProducerArtifactory]
3863
3991
  # @param [Hash] opts the optional parameters
3864
3992
  # @return [GatewayCreateProducerArtifactoryOutput]
@@ -5455,6 +5583,70 @@ module Akeyless
5455
5583
  return data, status_code, headers
5456
5584
  end
5457
5585
 
5586
+ # @param body [GatewayDeleteMigration]
5587
+ # @param [Hash] opts the optional parameters
5588
+ # @return [GatewayMigrationDeleteOutput]
5589
+ def gateway_delete_migration(body, opts = {})
5590
+ data, _status_code, _headers = gateway_delete_migration_with_http_info(body, opts)
5591
+ data
5592
+ end
5593
+
5594
+ # @param body [GatewayDeleteMigration]
5595
+ # @param [Hash] opts the optional parameters
5596
+ # @return [Array<(GatewayMigrationDeleteOutput, Integer, Hash)>] GatewayMigrationDeleteOutput data, response status code and response headers
5597
+ def gateway_delete_migration_with_http_info(body, opts = {})
5598
+ if @api_client.config.debugging
5599
+ @api_client.config.logger.debug 'Calling API: V2Api.gateway_delete_migration ...'
5600
+ end
5601
+ # verify the required parameter 'body' is set
5602
+ if @api_client.config.client_side_validation && body.nil?
5603
+ fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.gateway_delete_migration"
5604
+ end
5605
+ # resource path
5606
+ local_var_path = '/gateway-delete-migration'
5607
+
5608
+ # query parameters
5609
+ query_params = opts[:query_params] || {}
5610
+
5611
+ # header parameters
5612
+ header_params = opts[:header_params] || {}
5613
+ # HTTP header 'Accept' (if needed)
5614
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
5615
+ # HTTP header 'Content-Type'
5616
+ content_type = @api_client.select_header_content_type(['application/json'])
5617
+ if !content_type.nil?
5618
+ header_params['Content-Type'] = content_type
5619
+ end
5620
+
5621
+ # form parameters
5622
+ form_params = opts[:form_params] || {}
5623
+
5624
+ # http body (model)
5625
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
5626
+
5627
+ # return_type
5628
+ return_type = opts[:debug_return_type] || 'GatewayMigrationDeleteOutput'
5629
+
5630
+ # auth_names
5631
+ auth_names = opts[:debug_auth_names] || []
5632
+
5633
+ new_options = opts.merge(
5634
+ :operation => :"V2Api.gateway_delete_migration",
5635
+ :header_params => header_params,
5636
+ :query_params => query_params,
5637
+ :form_params => form_params,
5638
+ :body => post_body,
5639
+ :auth_names => auth_names,
5640
+ :return_type => return_type
5641
+ )
5642
+
5643
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
5644
+ if @api_client.config.debugging
5645
+ @api_client.config.logger.debug "API called: V2Api#gateway_delete_migration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5646
+ end
5647
+ return data, status_code, headers
5648
+ end
5649
+
5458
5650
  # @param body [GatewayDeleteProducer]
5459
5651
  # @param [Hash] opts the optional parameters
5460
5652
  # @return [GatewayDeleteProducerOutput]
@@ -5647,6 +5839,70 @@ module Akeyless
5647
5839
  return data, status_code, headers
5648
5840
  end
5649
5841
 
5842
+ # @param body [GatewayGetMigration]
5843
+ # @param [Hash] opts the optional parameters
5844
+ # @return [GatewayMigrationGetOutput]
5845
+ def gateway_get_migration(body, opts = {})
5846
+ data, _status_code, _headers = gateway_get_migration_with_http_info(body, opts)
5847
+ data
5848
+ end
5849
+
5850
+ # @param body [GatewayGetMigration]
5851
+ # @param [Hash] opts the optional parameters
5852
+ # @return [Array<(GatewayMigrationGetOutput, Integer, Hash)>] GatewayMigrationGetOutput data, response status code and response headers
5853
+ def gateway_get_migration_with_http_info(body, opts = {})
5854
+ if @api_client.config.debugging
5855
+ @api_client.config.logger.debug 'Calling API: V2Api.gateway_get_migration ...'
5856
+ end
5857
+ # verify the required parameter 'body' is set
5858
+ if @api_client.config.client_side_validation && body.nil?
5859
+ fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.gateway_get_migration"
5860
+ end
5861
+ # resource path
5862
+ local_var_path = '/gateway-get-migration'
5863
+
5864
+ # query parameters
5865
+ query_params = opts[:query_params] || {}
5866
+
5867
+ # header parameters
5868
+ header_params = opts[:header_params] || {}
5869
+ # HTTP header 'Accept' (if needed)
5870
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
5871
+ # HTTP header 'Content-Type'
5872
+ content_type = @api_client.select_header_content_type(['application/json'])
5873
+ if !content_type.nil?
5874
+ header_params['Content-Type'] = content_type
5875
+ end
5876
+
5877
+ # form parameters
5878
+ form_params = opts[:form_params] || {}
5879
+
5880
+ # http body (model)
5881
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
5882
+
5883
+ # return_type
5884
+ return_type = opts[:debug_return_type] || 'GatewayMigrationGetOutput'
5885
+
5886
+ # auth_names
5887
+ auth_names = opts[:debug_auth_names] || []
5888
+
5889
+ new_options = opts.merge(
5890
+ :operation => :"V2Api.gateway_get_migration",
5891
+ :header_params => header_params,
5892
+ :query_params => query_params,
5893
+ :form_params => form_params,
5894
+ :body => post_body,
5895
+ :auth_names => auth_names,
5896
+ :return_type => return_type
5897
+ )
5898
+
5899
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
5900
+ if @api_client.config.debugging
5901
+ @api_client.config.logger.debug "API called: V2Api#gateway_get_migration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5902
+ end
5903
+ return data, status_code, headers
5904
+ end
5905
+
5650
5906
  # @param body [GatewayGetProducer]
5651
5907
  # @param [Hash] opts the optional parameters
5652
5908
  # @return [DSProducerDetails]
@@ -6351,6 +6607,70 @@ module Akeyless
6351
6607
  return data, status_code, headers
6352
6608
  end
6353
6609
 
6610
+ # @param body [GatewayUpdateMigration]
6611
+ # @param [Hash] opts the optional parameters
6612
+ # @return [GatewayMigrationUpdateOutput]
6613
+ def gateway_update_migration(body, opts = {})
6614
+ data, _status_code, _headers = gateway_update_migration_with_http_info(body, opts)
6615
+ data
6616
+ end
6617
+
6618
+ # @param body [GatewayUpdateMigration]
6619
+ # @param [Hash] opts the optional parameters
6620
+ # @return [Array<(GatewayMigrationUpdateOutput, Integer, Hash)>] GatewayMigrationUpdateOutput data, response status code and response headers
6621
+ def gateway_update_migration_with_http_info(body, opts = {})
6622
+ if @api_client.config.debugging
6623
+ @api_client.config.logger.debug 'Calling API: V2Api.gateway_update_migration ...'
6624
+ end
6625
+ # verify the required parameter 'body' is set
6626
+ if @api_client.config.client_side_validation && body.nil?
6627
+ fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.gateway_update_migration"
6628
+ end
6629
+ # resource path
6630
+ local_var_path = '/gateway-update-migration'
6631
+
6632
+ # query parameters
6633
+ query_params = opts[:query_params] || {}
6634
+
6635
+ # header parameters
6636
+ header_params = opts[:header_params] || {}
6637
+ # HTTP header 'Accept' (if needed)
6638
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
6639
+ # HTTP header 'Content-Type'
6640
+ content_type = @api_client.select_header_content_type(['application/json'])
6641
+ if !content_type.nil?
6642
+ header_params['Content-Type'] = content_type
6643
+ end
6644
+
6645
+ # form parameters
6646
+ form_params = opts[:form_params] || {}
6647
+
6648
+ # http body (model)
6649
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
6650
+
6651
+ # return_type
6652
+ return_type = opts[:debug_return_type] || 'GatewayMigrationUpdateOutput'
6653
+
6654
+ # auth_names
6655
+ auth_names = opts[:debug_auth_names] || []
6656
+
6657
+ new_options = opts.merge(
6658
+ :operation => :"V2Api.gateway_update_migration",
6659
+ :header_params => header_params,
6660
+ :query_params => query_params,
6661
+ :form_params => form_params,
6662
+ :body => post_body,
6663
+ :auth_names => auth_names,
6664
+ :return_type => return_type
6665
+ )
6666
+
6667
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
6668
+ if @api_client.config.debugging
6669
+ @api_client.config.logger.debug "API called: V2Api#gateway_update_migration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
6670
+ end
6671
+ return data, status_code, headers
6672
+ end
6673
+
6354
6674
  # @param body [GatewayUpdateProducerArtifactory]
6355
6675
  # @param [Hash] opts the optional parameters
6356
6676
  # @return [GatewayUpdateProducerArtifactoryOutput]
@@ -7051,6 +7371,70 @@ module Akeyless
7051
7371
  return data, status_code, headers
7052
7372
  end
7053
7373
 
7374
+ # @param body [GatewayUpdateProducerHanaDb]
7375
+ # @param [Hash] opts the optional parameters
7376
+ # @return [GatewayUpdateProducerHanaDbOutput]
7377
+ def gateway_update_producer_hana_db(body, opts = {})
7378
+ data, _status_code, _headers = gateway_update_producer_hana_db_with_http_info(body, opts)
7379
+ data
7380
+ end
7381
+
7382
+ # @param body [GatewayUpdateProducerHanaDb]
7383
+ # @param [Hash] opts the optional parameters
7384
+ # @return [Array<(GatewayUpdateProducerHanaDbOutput, Integer, Hash)>] GatewayUpdateProducerHanaDbOutput data, response status code and response headers
7385
+ def gateway_update_producer_hana_db_with_http_info(body, opts = {})
7386
+ if @api_client.config.debugging
7387
+ @api_client.config.logger.debug 'Calling API: V2Api.gateway_update_producer_hana_db ...'
7388
+ end
7389
+ # verify the required parameter 'body' is set
7390
+ if @api_client.config.client_side_validation && body.nil?
7391
+ fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.gateway_update_producer_hana_db"
7392
+ end
7393
+ # resource path
7394
+ local_var_path = '/gateway-update-producer-hana'
7395
+
7396
+ # query parameters
7397
+ query_params = opts[:query_params] || {}
7398
+
7399
+ # header parameters
7400
+ header_params = opts[:header_params] || {}
7401
+ # HTTP header 'Accept' (if needed)
7402
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
7403
+ # HTTP header 'Content-Type'
7404
+ content_type = @api_client.select_header_content_type(['application/json'])
7405
+ if !content_type.nil?
7406
+ header_params['Content-Type'] = content_type
7407
+ end
7408
+
7409
+ # form parameters
7410
+ form_params = opts[:form_params] || {}
7411
+
7412
+ # http body (model)
7413
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
7414
+
7415
+ # return_type
7416
+ return_type = opts[:debug_return_type] || 'GatewayUpdateProducerHanaDbOutput'
7417
+
7418
+ # auth_names
7419
+ auth_names = opts[:debug_auth_names] || []
7420
+
7421
+ new_options = opts.merge(
7422
+ :operation => :"V2Api.gateway_update_producer_hana_db",
7423
+ :header_params => header_params,
7424
+ :query_params => query_params,
7425
+ :form_params => form_params,
7426
+ :body => post_body,
7427
+ :auth_names => auth_names,
7428
+ :return_type => return_type
7429
+ )
7430
+
7431
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
7432
+ if @api_client.config.debugging
7433
+ @api_client.config.logger.debug "API called: V2Api#gateway_update_producer_hana_db\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
7434
+ end
7435
+ return data, status_code, headers
7436
+ end
7437
+
7054
7438
  # @param body [GatewayUpdateProducerLdap]
7055
7439
  # @param [Hash] opts the optional parameters
7056
7440
  # @return [GatewayUpdateProducerLdapOutput]
@@ -12978,6 +13362,70 @@ module Akeyless
12978
13362
  return data, status_code, headers
12979
13363
  end
12980
13364
 
13365
+ # @param body [UpdateSalesforceTarget]
13366
+ # @param [Hash] opts the optional parameters
13367
+ # @return [UpdateSalesforceTargetOutput]
13368
+ def update_salesforce_target(body, opts = {})
13369
+ data, _status_code, _headers = update_salesforce_target_with_http_info(body, opts)
13370
+ data
13371
+ end
13372
+
13373
+ # @param body [UpdateSalesforceTarget]
13374
+ # @param [Hash] opts the optional parameters
13375
+ # @return [Array<(UpdateSalesforceTargetOutput, Integer, Hash)>] UpdateSalesforceTargetOutput data, response status code and response headers
13376
+ def update_salesforce_target_with_http_info(body, opts = {})
13377
+ if @api_client.config.debugging
13378
+ @api_client.config.logger.debug 'Calling API: V2Api.update_salesforce_target ...'
13379
+ end
13380
+ # verify the required parameter 'body' is set
13381
+ if @api_client.config.client_side_validation && body.nil?
13382
+ fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.update_salesforce_target"
13383
+ end
13384
+ # resource path
13385
+ local_var_path = '/update-salesforce-target'
13386
+
13387
+ # query parameters
13388
+ query_params = opts[:query_params] || {}
13389
+
13390
+ # header parameters
13391
+ header_params = opts[:header_params] || {}
13392
+ # HTTP header 'Accept' (if needed)
13393
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
13394
+ # HTTP header 'Content-Type'
13395
+ content_type = @api_client.select_header_content_type(['application/json'])
13396
+ if !content_type.nil?
13397
+ header_params['Content-Type'] = content_type
13398
+ end
13399
+
13400
+ # form parameters
13401
+ form_params = opts[:form_params] || {}
13402
+
13403
+ # http body (model)
13404
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
13405
+
13406
+ # return_type
13407
+ return_type = opts[:debug_return_type] || 'UpdateSalesforceTargetOutput'
13408
+
13409
+ # auth_names
13410
+ auth_names = opts[:debug_auth_names] || []
13411
+
13412
+ new_options = opts.merge(
13413
+ :operation => :"V2Api.update_salesforce_target",
13414
+ :header_params => header_params,
13415
+ :query_params => query_params,
13416
+ :form_params => form_params,
13417
+ :body => post_body,
13418
+ :auth_names => auth_names,
13419
+ :return_type => return_type
13420
+ )
13421
+
13422
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
13423
+ if @api_client.config.debugging
13424
+ @api_client.config.logger.debug "API called: V2Api#update_salesforce_target\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
13425
+ end
13426
+ return data, status_code, headers
13427
+ end
13428
+
12981
13429
  # @param body [UpdateSecretVal]
12982
13430
  # @param [Hash] opts the optional parameters
12983
13431
  # @return [UpdateSecretValOutput]
@@ -21,6 +21,8 @@ module Akeyless
21
21
 
22
22
  attr_accessor :aws_region
23
23
 
24
+ attr_accessor :aws_use_gateway_cloud_identity
25
+
24
26
  attr_accessor :bucket_name
25
27
 
26
28
  attr_accessor :log_folder
@@ -31,6 +33,7 @@ module Akeyless
31
33
  :'aws_access_id' => :'aws_access_id',
32
34
  :'aws_access_key' => :'aws_access_key',
33
35
  :'aws_region' => :'aws_region',
36
+ :'aws_use_gateway_cloud_identity' => :'aws_use_gateway_cloud_identity',
34
37
  :'bucket_name' => :'bucket_name',
35
38
  :'log_folder' => :'log_folder'
36
39
  }
@@ -47,6 +50,7 @@ module Akeyless
47
50
  :'aws_access_id' => :'String',
48
51
  :'aws_access_key' => :'String',
49
52
  :'aws_region' => :'String',
53
+ :'aws_use_gateway_cloud_identity' => :'Boolean',
50
54
  :'bucket_name' => :'String',
51
55
  :'log_folder' => :'String'
52
56
  }
@@ -85,6 +89,10 @@ module Akeyless
85
89
  self.aws_region = attributes[:'aws_region']
86
90
  end
87
91
 
92
+ if attributes.key?(:'aws_use_gateway_cloud_identity')
93
+ self.aws_use_gateway_cloud_identity = attributes[:'aws_use_gateway_cloud_identity']
94
+ end
95
+
88
96
  if attributes.key?(:'bucket_name')
89
97
  self.bucket_name = attributes[:'bucket_name']
90
98
  end
@@ -115,6 +123,7 @@ module Akeyless
115
123
  aws_access_id == o.aws_access_id &&
116
124
  aws_access_key == o.aws_access_key &&
117
125
  aws_region == o.aws_region &&
126
+ aws_use_gateway_cloud_identity == o.aws_use_gateway_cloud_identity &&
118
127
  bucket_name == o.bucket_name &&
119
128
  log_folder == o.log_folder
120
129
  end
@@ -128,7 +137,7 @@ module Akeyless
128
137
  # Calculates hash code according to all attributes.
129
138
  # @return [Integer] Hash code
130
139
  def hash
131
- [aws_access_id, aws_access_key, aws_region, bucket_name, log_folder].hash
140
+ [aws_access_id, aws_access_key, aws_region, aws_use_gateway_cloud_identity, bucket_name, log_folder].hash
132
141
  end
133
142
 
134
143
  # Builds the object from hash
@@ -106,8 +106,6 @@ module Akeyless
106
106
 
107
107
  if attributes.key?(:'jwt_ttl')
108
108
  self.jwt_ttl = attributes[:'jwt_ttl']
109
- else
110
- self.jwt_ttl = 0
111
109
  end
112
110
 
113
111
  if attributes.key?(:'name')
@@ -189,8 +189,6 @@ module Akeyless
189
189
 
190
190
  if attributes.key?(:'jwt_ttl')
191
191
  self.jwt_ttl = attributes[:'jwt_ttl']
192
- else
193
- self.jwt_ttl = 0
194
192
  end
195
193
 
196
194
  if attributes.key?(:'name')
@@ -237,8 +237,6 @@ module Akeyless
237
237
 
238
238
  if attributes.key?(:'jwt_ttl')
239
239
  self.jwt_ttl = attributes[:'jwt_ttl']
240
- else
241
- self.jwt_ttl = 0
242
240
  end
243
241
 
244
242
  if attributes.key?(:'name')
@@ -192,8 +192,6 @@ module Akeyless
192
192
 
193
193
  if attributes.key?(:'jwt_ttl')
194
194
  self.jwt_ttl = attributes[:'jwt_ttl']
195
- else
196
- self.jwt_ttl = 0
197
195
  end
198
196
 
199
197
  if attributes.key?(:'name')
@@ -183,8 +183,6 @@ module Akeyless
183
183
 
184
184
  if attributes.key?(:'jwt_ttl')
185
185
  self.jwt_ttl = attributes[:'jwt_ttl']
186
- else
187
- self.jwt_ttl = 0
188
186
  end
189
187
 
190
188
  if attributes.key?(:'name')
@@ -184,8 +184,6 @@ module Akeyless
184
184
 
185
185
  if attributes.key?(:'jwt_ttl')
186
186
  self.jwt_ttl = attributes[:'jwt_ttl']
187
- else
188
- self.jwt_ttl = 0
189
187
  end
190
188
 
191
189
  if attributes.key?(:'name')
@@ -165,8 +165,6 @@ module Akeyless
165
165
 
166
166
  if attributes.key?(:'jwt_ttl')
167
167
  self.jwt_ttl = attributes[:'jwt_ttl']
168
- else
169
- self.jwt_ttl = 0
170
168
  end
171
169
 
172
170
  if attributes.key?(:'name')
@@ -117,8 +117,6 @@ module Akeyless
117
117
 
118
118
  if attributes.key?(:'jwt_ttl')
119
119
  self.jwt_ttl = attributes[:'jwt_ttl']
120
- else
121
- self.jwt_ttl = 0
122
120
  end
123
121
 
124
122
  if attributes.key?(:'name')
@@ -150,8 +150,6 @@ module Akeyless
150
150
 
151
151
  if attributes.key?(:'jwt_ttl')
152
152
  self.jwt_ttl = attributes[:'jwt_ttl']
153
- else
154
- self.jwt_ttl = 0
155
153
  end
156
154
 
157
155
  if attributes.key?(:'name')
@@ -160,8 +160,6 @@ module Akeyless
160
160
 
161
161
  if attributes.key?(:'jwt_ttl')
162
162
  self.jwt_ttl = attributes[:'jwt_ttl']
163
- else
164
- self.jwt_ttl = 0
165
163
  end
166
164
 
167
165
  if attributes.key?(:'name')
@@ -141,8 +141,6 @@ module Akeyless
141
141
 
142
142
  if attributes.key?(:'jwt_ttl')
143
143
  self.jwt_ttl = attributes[:'jwt_ttl']
144
- else
145
- self.jwt_ttl = 0
146
144
  end
147
145
 
148
146
  if attributes.key?(:'name')
@@ -130,8 +130,6 @@ module Akeyless
130
130
 
131
131
  if attributes.key?(:'jwt_ttl')
132
132
  self.jwt_ttl = attributes[:'jwt_ttl']
133
- else
134
- self.jwt_ttl = 0
135
133
  end
136
134
 
137
135
  if attributes.key?(:'name')