akeyless 3.2.8 → 3.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +25 -1
  3. data/docs/CreateESM.md +36 -0
  4. data/docs/CreateESMOutput.md +20 -0
  5. data/docs/CreateRotatedSecret.md +1 -1
  6. data/docs/CreateSSHCertIssuer.md +1 -1
  7. data/docs/CreateSecret.md +1 -1
  8. data/docs/CreateWindowsTarget.md +8 -4
  9. data/docs/DSProducerDetails.md +2 -0
  10. data/docs/DescribeItem.md +2 -0
  11. data/docs/EsmCreate.md +34 -0
  12. data/docs/EsmCreateSecretOutput.md +20 -0
  13. data/docs/EsmDelete.md +26 -0
  14. data/docs/EsmGet.md +26 -0
  15. data/docs/EsmGetSecretOutput.md +20 -0
  16. data/docs/EsmList.md +24 -0
  17. data/docs/EsmListSecretsOutput.md +18 -0
  18. data/docs/EsmUpdate.md +34 -0
  19. data/docs/EsmUpdateSecretOutput.md +20 -0
  20. data/docs/GatewayCreateProducerHanaDb.md +1 -1
  21. data/docs/GatewayCreateProducerMSSQL.md +1 -1
  22. data/docs/GatewayCreateProducerMongo.md +1 -1
  23. data/docs/GatewayCreateProducerMySQL.md +1 -1
  24. data/docs/GatewayCreateProducerOracleDb.md +1 -1
  25. data/docs/GatewayCreateProducerPostgreSQL.md +1 -1
  26. data/docs/GatewayCreateProducerRdp.md +1 -1
  27. data/docs/GatewayCreateProducerRedis.md +48 -0
  28. data/docs/GatewayCreateProducerRedisOutput.md +18 -0
  29. data/docs/GatewayCreateProducerRedshift.md +1 -1
  30. data/docs/GatewayUpdateProducerHanaDb.md +1 -1
  31. data/docs/GatewayUpdateProducerMSSQL.md +1 -1
  32. data/docs/GatewayUpdateProducerMongo.md +1 -1
  33. data/docs/GatewayUpdateProducerMySQL.md +1 -1
  34. data/docs/GatewayUpdateProducerOracleDb.md +1 -1
  35. data/docs/GatewayUpdateProducerPostgreSQL.md +1 -1
  36. data/docs/GatewayUpdateProducerRdp.md +1 -1
  37. data/docs/GatewayUpdateProducerRedis.md +50 -0
  38. data/docs/GatewayUpdateProducerRedisOutput.md +18 -0
  39. data/docs/GatewayUpdateProducerRedshift.md +1 -1
  40. data/docs/Item.md +2 -0
  41. data/docs/LastStatusInfo.md +3 -1
  42. data/docs/SecretInfo.md +36 -0
  43. data/docs/TargetTypeDetailsInput.md +4 -0
  44. data/docs/UpdateItem.md +1 -1
  45. data/docs/UpdateRotatedSecret.md +1 -1
  46. data/docs/UpdateSSHCertIssuer.md +1 -1
  47. data/docs/UpdateWindowsTarget.md +8 -4
  48. data/docs/V2Api.md +503 -2
  49. data/lib/akeyless/api/v2_api.rb +501 -0
  50. data/lib/akeyless/models/create_esm.rb +325 -0
  51. data/lib/akeyless/models/create_esm_output.rb +228 -0
  52. data/lib/akeyless/models/create_rotated_secret.rb +1 -1
  53. data/lib/akeyless/models/create_secret.rb +1 -1
  54. data/lib/akeyless/models/create_ssh_cert_issuer.rb +1 -1
  55. data/lib/akeyless/models/create_windows_target.rb +40 -3
  56. data/lib/akeyless/models/describe_item.rb +13 -1
  57. data/lib/akeyless/models/ds_producer_details.rb +12 -1
  58. data/lib/akeyless/models/esm_create.rb +320 -0
  59. data/lib/akeyless/models/esm_create_secret_output.rb +228 -0
  60. data/lib/akeyless/models/esm_delete.rb +273 -0
  61. data/lib/akeyless/models/esm_get.rb +273 -0
  62. data/lib/akeyless/models/esm_get_secret_output.rb +228 -0
  63. data/lib/akeyless/models/esm_list.rb +258 -0
  64. data/lib/akeyless/models/esm_list_secrets_output.rb +221 -0
  65. data/lib/akeyless/models/esm_update.rb +320 -0
  66. data/lib/akeyless/models/esm_update_secret_output.rb +228 -0
  67. data/lib/akeyless/models/gateway_create_producer_hana_db.rb +1 -1
  68. data/lib/akeyless/models/gateway_create_producer_mongo.rb +1 -1
  69. data/lib/akeyless/models/gateway_create_producer_mssql.rb +1 -1
  70. data/lib/akeyless/models/gateway_create_producer_my_sql.rb +1 -1
  71. data/lib/akeyless/models/gateway_create_producer_oracle_db.rb +1 -1
  72. data/lib/akeyless/models/gateway_create_producer_postgre_sql.rb +1 -1
  73. data/lib/akeyless/models/gateway_create_producer_rdp.rb +1 -1
  74. data/lib/akeyless/models/gateway_create_producer_redis.rb +388 -0
  75. data/lib/akeyless/models/gateway_create_producer_redis_output.rb +219 -0
  76. data/lib/akeyless/models/gateway_create_producer_redshift.rb +1 -1
  77. data/lib/akeyless/models/gateway_update_producer_hana_db.rb +1 -1
  78. data/lib/akeyless/models/gateway_update_producer_mongo.rb +1 -1
  79. data/lib/akeyless/models/gateway_update_producer_mssql.rb +1 -1
  80. data/lib/akeyless/models/gateway_update_producer_my_sql.rb +1 -1
  81. data/lib/akeyless/models/gateway_update_producer_oracle_db.rb +1 -1
  82. data/lib/akeyless/models/gateway_update_producer_postgre_sql.rb +1 -1
  83. data/lib/akeyless/models/gateway_update_producer_rdp.rb +1 -1
  84. data/lib/akeyless/models/gateway_update_producer_redis.rb +398 -0
  85. data/lib/akeyless/models/gateway_update_producer_redis_output.rb +219 -0
  86. data/lib/akeyless/models/gateway_update_producer_redshift.rb +1 -1
  87. data/lib/akeyless/models/item.rb +10 -1
  88. data/lib/akeyless/models/last_status_info.rb +14 -4
  89. data/lib/akeyless/models/secret_info.rb +302 -0
  90. data/lib/akeyless/models/target_type_details_input.rb +19 -1
  91. data/lib/akeyless/models/update_item.rb +1 -1
  92. data/lib/akeyless/models/update_rotated_secret.rb +1 -1
  93. data/lib/akeyless/models/update_ssh_cert_issuer.rb +1 -1
  94. data/lib/akeyless/models/update_windows_target.rb +40 -3
  95. data/lib/akeyless/version.rb +1 -1
  96. data/lib/akeyless.rb +16 -0
  97. data/spec/models/create_esm_output_spec.rb +40 -0
  98. data/spec/models/create_esm_spec.rb +88 -0
  99. data/spec/models/esm_create_secret_output_spec.rb +40 -0
  100. data/spec/models/esm_create_spec.rb +82 -0
  101. data/spec/models/esm_delete_spec.rb +58 -0
  102. data/spec/models/esm_get_secret_output_spec.rb +40 -0
  103. data/spec/models/esm_get_spec.rb +58 -0
  104. data/spec/models/esm_list_secrets_output_spec.rb +34 -0
  105. data/spec/models/esm_list_spec.rb +52 -0
  106. data/spec/models/esm_update_secret_output_spec.rb +40 -0
  107. data/spec/models/esm_update_spec.rb +82 -0
  108. data/spec/models/gateway_create_producer_redis_output_spec.rb +34 -0
  109. data/spec/models/gateway_create_producer_redis_spec.rb +124 -0
  110. data/spec/models/gateway_update_producer_redis_output_spec.rb +34 -0
  111. data/spec/models/gateway_update_producer_redis_spec.rb +130 -0
  112. data/spec/models/secret_info_spec.rb +88 -0
  113. metadata +647 -583
@@ -1747,6 +1747,70 @@ module Akeyless
1747
1747
  return data, status_code, headers
1748
1748
  end
1749
1749
 
1750
+ # @param body [CreateESM]
1751
+ # @param [Hash] opts the optional parameters
1752
+ # @return [CreateESMOutput]
1753
+ def create_esm(body, opts = {})
1754
+ data, _status_code, _headers = create_esm_with_http_info(body, opts)
1755
+ data
1756
+ end
1757
+
1758
+ # @param body [CreateESM]
1759
+ # @param [Hash] opts the optional parameters
1760
+ # @return [Array<(CreateESMOutput, Integer, Hash)>] CreateESMOutput data, response status code and response headers
1761
+ def create_esm_with_http_info(body, opts = {})
1762
+ if @api_client.config.debugging
1763
+ @api_client.config.logger.debug 'Calling API: V2Api.create_esm ...'
1764
+ end
1765
+ # verify the required parameter 'body' is set
1766
+ if @api_client.config.client_side_validation && body.nil?
1767
+ fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.create_esm"
1768
+ end
1769
+ # resource path
1770
+ local_var_path = '/create-esm'
1771
+
1772
+ # query parameters
1773
+ query_params = opts[:query_params] || {}
1774
+
1775
+ # header parameters
1776
+ header_params = opts[:header_params] || {}
1777
+ # HTTP header 'Accept' (if needed)
1778
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1779
+ # HTTP header 'Content-Type'
1780
+ content_type = @api_client.select_header_content_type(['application/json'])
1781
+ if !content_type.nil?
1782
+ header_params['Content-Type'] = content_type
1783
+ end
1784
+
1785
+ # form parameters
1786
+ form_params = opts[:form_params] || {}
1787
+
1788
+ # http body (model)
1789
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1790
+
1791
+ # return_type
1792
+ return_type = opts[:debug_return_type] || 'CreateESMOutput'
1793
+
1794
+ # auth_names
1795
+ auth_names = opts[:debug_auth_names] || []
1796
+
1797
+ new_options = opts.merge(
1798
+ :operation => :"V2Api.create_esm",
1799
+ :header_params => header_params,
1800
+ :query_params => query_params,
1801
+ :form_params => form_params,
1802
+ :body => post_body,
1803
+ :auth_names => auth_names,
1804
+ :return_type => return_type
1805
+ )
1806
+
1807
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1808
+ if @api_client.config.debugging
1809
+ @api_client.config.logger.debug "API called: V2Api#create_esm\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1810
+ end
1811
+ return data, status_code, headers
1812
+ end
1813
+
1750
1814
  # @param body [CreateEventForwarder]
1751
1815
  # @param [Hash] opts the optional parameters
1752
1816
  # @return [CreateEventForwarderOutput]
@@ -4563,6 +4627,315 @@ module Akeyless
4563
4627
  return data, status_code, headers
4564
4628
  end
4565
4629
 
4630
+ # @param body [EsmUpdate]
4631
+ # @param [Hash] opts the optional parameters
4632
+ # @return [EsmCreateSecretOutput]
4633
+ def esm_create(body, opts = {})
4634
+ data, _status_code, _headers = esm_create_with_http_info(body, opts)
4635
+ data
4636
+ end
4637
+
4638
+ # @param body [EsmUpdate]
4639
+ # @param [Hash] opts the optional parameters
4640
+ # @return [Array<(EsmCreateSecretOutput, Integer, Hash)>] EsmCreateSecretOutput data, response status code and response headers
4641
+ def esm_create_with_http_info(body, opts = {})
4642
+ if @api_client.config.debugging
4643
+ @api_client.config.logger.debug 'Calling API: V2Api.esm_create ...'
4644
+ end
4645
+ # verify the required parameter 'body' is set
4646
+ if @api_client.config.client_side_validation && body.nil?
4647
+ fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.esm_create"
4648
+ end
4649
+ # resource path
4650
+ local_var_path = '/esm-create'
4651
+
4652
+ # query parameters
4653
+ query_params = opts[:query_params] || {}
4654
+
4655
+ # header parameters
4656
+ header_params = opts[:header_params] || {}
4657
+ # HTTP header 'Accept' (if needed)
4658
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4659
+ # HTTP header 'Content-Type'
4660
+ content_type = @api_client.select_header_content_type(['application/json'])
4661
+ if !content_type.nil?
4662
+ header_params['Content-Type'] = content_type
4663
+ end
4664
+
4665
+ # form parameters
4666
+ form_params = opts[:form_params] || {}
4667
+
4668
+ # http body (model)
4669
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
4670
+
4671
+ # return_type
4672
+ return_type = opts[:debug_return_type] || 'EsmCreateSecretOutput'
4673
+
4674
+ # auth_names
4675
+ auth_names = opts[:debug_auth_names] || []
4676
+
4677
+ new_options = opts.merge(
4678
+ :operation => :"V2Api.esm_create",
4679
+ :header_params => header_params,
4680
+ :query_params => query_params,
4681
+ :form_params => form_params,
4682
+ :body => post_body,
4683
+ :auth_names => auth_names,
4684
+ :return_type => return_type
4685
+ )
4686
+
4687
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
4688
+ if @api_client.config.debugging
4689
+ @api_client.config.logger.debug "API called: V2Api#esm_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4690
+ end
4691
+ return data, status_code, headers
4692
+ end
4693
+
4694
+ # @param body [EsmDelete]
4695
+ # @param [Hash] opts the optional parameters
4696
+ # @return [Object]
4697
+ def esm_delete(body, opts = {})
4698
+ data, _status_code, _headers = esm_delete_with_http_info(body, opts)
4699
+ data
4700
+ end
4701
+
4702
+ # @param body [EsmDelete]
4703
+ # @param [Hash] opts the optional parameters
4704
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
4705
+ def esm_delete_with_http_info(body, opts = {})
4706
+ if @api_client.config.debugging
4707
+ @api_client.config.logger.debug 'Calling API: V2Api.esm_delete ...'
4708
+ end
4709
+ # verify the required parameter 'body' is set
4710
+ if @api_client.config.client_side_validation && body.nil?
4711
+ fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.esm_delete"
4712
+ end
4713
+ # resource path
4714
+ local_var_path = '/esm-delete'
4715
+
4716
+ # query parameters
4717
+ query_params = opts[:query_params] || {}
4718
+
4719
+ # header parameters
4720
+ header_params = opts[:header_params] || {}
4721
+ # HTTP header 'Accept' (if needed)
4722
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4723
+ # HTTP header 'Content-Type'
4724
+ content_type = @api_client.select_header_content_type(['application/json'])
4725
+ if !content_type.nil?
4726
+ header_params['Content-Type'] = content_type
4727
+ end
4728
+
4729
+ # form parameters
4730
+ form_params = opts[:form_params] || {}
4731
+
4732
+ # http body (model)
4733
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
4734
+
4735
+ # return_type
4736
+ return_type = opts[:debug_return_type] || 'Object'
4737
+
4738
+ # auth_names
4739
+ auth_names = opts[:debug_auth_names] || []
4740
+
4741
+ new_options = opts.merge(
4742
+ :operation => :"V2Api.esm_delete",
4743
+ :header_params => header_params,
4744
+ :query_params => query_params,
4745
+ :form_params => form_params,
4746
+ :body => post_body,
4747
+ :auth_names => auth_names,
4748
+ :return_type => return_type
4749
+ )
4750
+
4751
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
4752
+ if @api_client.config.debugging
4753
+ @api_client.config.logger.debug "API called: V2Api#esm_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4754
+ end
4755
+ return data, status_code, headers
4756
+ end
4757
+
4758
+ # @param body [EsmGet]
4759
+ # @param [Hash] opts the optional parameters
4760
+ # @return [EsmGetSecretOutput]
4761
+ def esm_get(body, opts = {})
4762
+ data, _status_code, _headers = esm_get_with_http_info(body, opts)
4763
+ data
4764
+ end
4765
+
4766
+ # @param body [EsmGet]
4767
+ # @param [Hash] opts the optional parameters
4768
+ # @return [Array<(EsmGetSecretOutput, Integer, Hash)>] EsmGetSecretOutput data, response status code and response headers
4769
+ def esm_get_with_http_info(body, opts = {})
4770
+ if @api_client.config.debugging
4771
+ @api_client.config.logger.debug 'Calling API: V2Api.esm_get ...'
4772
+ end
4773
+ # verify the required parameter 'body' is set
4774
+ if @api_client.config.client_side_validation && body.nil?
4775
+ fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.esm_get"
4776
+ end
4777
+ # resource path
4778
+ local_var_path = '/esm-get'
4779
+
4780
+ # query parameters
4781
+ query_params = opts[:query_params] || {}
4782
+
4783
+ # header parameters
4784
+ header_params = opts[:header_params] || {}
4785
+ # HTTP header 'Accept' (if needed)
4786
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4787
+ # HTTP header 'Content-Type'
4788
+ content_type = @api_client.select_header_content_type(['application/json'])
4789
+ if !content_type.nil?
4790
+ header_params['Content-Type'] = content_type
4791
+ end
4792
+
4793
+ # form parameters
4794
+ form_params = opts[:form_params] || {}
4795
+
4796
+ # http body (model)
4797
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
4798
+
4799
+ # return_type
4800
+ return_type = opts[:debug_return_type] || 'EsmGetSecretOutput'
4801
+
4802
+ # auth_names
4803
+ auth_names = opts[:debug_auth_names] || []
4804
+
4805
+ new_options = opts.merge(
4806
+ :operation => :"V2Api.esm_get",
4807
+ :header_params => header_params,
4808
+ :query_params => query_params,
4809
+ :form_params => form_params,
4810
+ :body => post_body,
4811
+ :auth_names => auth_names,
4812
+ :return_type => return_type
4813
+ )
4814
+
4815
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
4816
+ if @api_client.config.debugging
4817
+ @api_client.config.logger.debug "API called: V2Api#esm_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4818
+ end
4819
+ return data, status_code, headers
4820
+ end
4821
+
4822
+ # @param body [EsmList]
4823
+ # @param [Hash] opts the optional parameters
4824
+ # @return [EsmListSecretsOutput]
4825
+ def esm_list(body, opts = {})
4826
+ data, _status_code, _headers = esm_list_with_http_info(body, opts)
4827
+ data
4828
+ end
4829
+
4830
+ # @param body [EsmList]
4831
+ # @param [Hash] opts the optional parameters
4832
+ # @return [Array<(EsmListSecretsOutput, Integer, Hash)>] EsmListSecretsOutput data, response status code and response headers
4833
+ def esm_list_with_http_info(body, opts = {})
4834
+ if @api_client.config.debugging
4835
+ @api_client.config.logger.debug 'Calling API: V2Api.esm_list ...'
4836
+ end
4837
+ # verify the required parameter 'body' is set
4838
+ if @api_client.config.client_side_validation && body.nil?
4839
+ fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.esm_list"
4840
+ end
4841
+ # resource path
4842
+ local_var_path = '/esm-list'
4843
+
4844
+ # query parameters
4845
+ query_params = opts[:query_params] || {}
4846
+
4847
+ # header parameters
4848
+ header_params = opts[:header_params] || {}
4849
+ # HTTP header 'Accept' (if needed)
4850
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4851
+ # HTTP header 'Content-Type'
4852
+ content_type = @api_client.select_header_content_type(['application/json'])
4853
+ if !content_type.nil?
4854
+ header_params['Content-Type'] = content_type
4855
+ end
4856
+
4857
+ # form parameters
4858
+ form_params = opts[:form_params] || {}
4859
+
4860
+ # http body (model)
4861
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
4862
+
4863
+ # return_type
4864
+ return_type = opts[:debug_return_type] || 'EsmListSecretsOutput'
4865
+
4866
+ # auth_names
4867
+ auth_names = opts[:debug_auth_names] || []
4868
+
4869
+ new_options = opts.merge(
4870
+ :operation => :"V2Api.esm_list",
4871
+ :header_params => header_params,
4872
+ :query_params => query_params,
4873
+ :form_params => form_params,
4874
+ :body => post_body,
4875
+ :auth_names => auth_names,
4876
+ :return_type => return_type
4877
+ )
4878
+
4879
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
4880
+ if @api_client.config.debugging
4881
+ @api_client.config.logger.debug "API called: V2Api#esm_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4882
+ end
4883
+ return data, status_code, headers
4884
+ end
4885
+
4886
+ # @param [Hash] opts the optional parameters
4887
+ # @return [EsmUpdateSecretOutput]
4888
+ def esm_update(opts = {})
4889
+ data, _status_code, _headers = esm_update_with_http_info(opts)
4890
+ data
4891
+ end
4892
+
4893
+ # @param [Hash] opts the optional parameters
4894
+ # @return [Array<(EsmUpdateSecretOutput, Integer, Hash)>] EsmUpdateSecretOutput data, response status code and response headers
4895
+ def esm_update_with_http_info(opts = {})
4896
+ if @api_client.config.debugging
4897
+ @api_client.config.logger.debug 'Calling API: V2Api.esm_update ...'
4898
+ end
4899
+ # resource path
4900
+ local_var_path = '/esm-update'
4901
+
4902
+ # query parameters
4903
+ query_params = opts[:query_params] || {}
4904
+
4905
+ # header parameters
4906
+ header_params = opts[:header_params] || {}
4907
+ # HTTP header 'Accept' (if needed)
4908
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4909
+
4910
+ # form parameters
4911
+ form_params = opts[:form_params] || {}
4912
+
4913
+ # http body (model)
4914
+ post_body = opts[:debug_body]
4915
+
4916
+ # return_type
4917
+ return_type = opts[:debug_return_type] || 'EsmUpdateSecretOutput'
4918
+
4919
+ # auth_names
4920
+ auth_names = opts[:debug_auth_names] || []
4921
+
4922
+ new_options = opts.merge(
4923
+ :operation => :"V2Api.esm_update",
4924
+ :header_params => header_params,
4925
+ :query_params => query_params,
4926
+ :form_params => form_params,
4927
+ :body => post_body,
4928
+ :auth_names => auth_names,
4929
+ :return_type => return_type
4930
+ )
4931
+
4932
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
4933
+ if @api_client.config.debugging
4934
+ @api_client.config.logger.debug "API called: V2Api#esm_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4935
+ end
4936
+ return data, status_code, headers
4937
+ end
4938
+
4566
4939
  # @param body [ExportClassicKey]
4567
4940
  # @param [Hash] opts the optional parameters
4568
4941
  # @return [ExportClassicKeyOutput]
@@ -6159,6 +6532,70 @@ module Akeyless
6159
6532
  return data, status_code, headers
6160
6533
  end
6161
6534
 
6535
+ # @param body [GatewayCreateProducerRedis]
6536
+ # @param [Hash] opts the optional parameters
6537
+ # @return [GatewayCreateProducerRedisOutput]
6538
+ def gateway_create_producer_redis(body, opts = {})
6539
+ data, _status_code, _headers = gateway_create_producer_redis_with_http_info(body, opts)
6540
+ data
6541
+ end
6542
+
6543
+ # @param body [GatewayCreateProducerRedis]
6544
+ # @param [Hash] opts the optional parameters
6545
+ # @return [Array<(GatewayCreateProducerRedisOutput, Integer, Hash)>] GatewayCreateProducerRedisOutput data, response status code and response headers
6546
+ def gateway_create_producer_redis_with_http_info(body, opts = {})
6547
+ if @api_client.config.debugging
6548
+ @api_client.config.logger.debug 'Calling API: V2Api.gateway_create_producer_redis ...'
6549
+ end
6550
+ # verify the required parameter 'body' is set
6551
+ if @api_client.config.client_side_validation && body.nil?
6552
+ fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.gateway_create_producer_redis"
6553
+ end
6554
+ # resource path
6555
+ local_var_path = '/gateway-create-producer-Redis'
6556
+
6557
+ # query parameters
6558
+ query_params = opts[:query_params] || {}
6559
+
6560
+ # header parameters
6561
+ header_params = opts[:header_params] || {}
6562
+ # HTTP header 'Accept' (if needed)
6563
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
6564
+ # HTTP header 'Content-Type'
6565
+ content_type = @api_client.select_header_content_type(['application/json'])
6566
+ if !content_type.nil?
6567
+ header_params['Content-Type'] = content_type
6568
+ end
6569
+
6570
+ # form parameters
6571
+ form_params = opts[:form_params] || {}
6572
+
6573
+ # http body (model)
6574
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
6575
+
6576
+ # return_type
6577
+ return_type = opts[:debug_return_type] || 'GatewayCreateProducerRedisOutput'
6578
+
6579
+ # auth_names
6580
+ auth_names = opts[:debug_auth_names] || []
6581
+
6582
+ new_options = opts.merge(
6583
+ :operation => :"V2Api.gateway_create_producer_redis",
6584
+ :header_params => header_params,
6585
+ :query_params => query_params,
6586
+ :form_params => form_params,
6587
+ :body => post_body,
6588
+ :auth_names => auth_names,
6589
+ :return_type => return_type
6590
+ )
6591
+
6592
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
6593
+ if @api_client.config.debugging
6594
+ @api_client.config.logger.debug "API called: V2Api#gateway_create_producer_redis\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
6595
+ end
6596
+ return data, status_code, headers
6597
+ end
6598
+
6162
6599
  # @param body [GatewayCreateProducerRedshift]
6163
6600
  # @param [Hash] opts the optional parameters
6164
6601
  # @return [GatewayCreateProducerRedshiftOutput]
@@ -9223,6 +9660,70 @@ module Akeyless
9223
9660
  return data, status_code, headers
9224
9661
  end
9225
9662
 
9663
+ # @param body [GatewayUpdateProducerRedis]
9664
+ # @param [Hash] opts the optional parameters
9665
+ # @return [GatewayUpdateProducerRedisOutput]
9666
+ def gateway_update_producer_redis(body, opts = {})
9667
+ data, _status_code, _headers = gateway_update_producer_redis_with_http_info(body, opts)
9668
+ data
9669
+ end
9670
+
9671
+ # @param body [GatewayUpdateProducerRedis]
9672
+ # @param [Hash] opts the optional parameters
9673
+ # @return [Array<(GatewayUpdateProducerRedisOutput, Integer, Hash)>] GatewayUpdateProducerRedisOutput data, response status code and response headers
9674
+ def gateway_update_producer_redis_with_http_info(body, opts = {})
9675
+ if @api_client.config.debugging
9676
+ @api_client.config.logger.debug 'Calling API: V2Api.gateway_update_producer_redis ...'
9677
+ end
9678
+ # verify the required parameter 'body' is set
9679
+ if @api_client.config.client_side_validation && body.nil?
9680
+ fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.gateway_update_producer_redis"
9681
+ end
9682
+ # resource path
9683
+ local_var_path = '/gateway-update-producer-redis'
9684
+
9685
+ # query parameters
9686
+ query_params = opts[:query_params] || {}
9687
+
9688
+ # header parameters
9689
+ header_params = opts[:header_params] || {}
9690
+ # HTTP header 'Accept' (if needed)
9691
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
9692
+ # HTTP header 'Content-Type'
9693
+ content_type = @api_client.select_header_content_type(['application/json'])
9694
+ if !content_type.nil?
9695
+ header_params['Content-Type'] = content_type
9696
+ end
9697
+
9698
+ # form parameters
9699
+ form_params = opts[:form_params] || {}
9700
+
9701
+ # http body (model)
9702
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
9703
+
9704
+ # return_type
9705
+ return_type = opts[:debug_return_type] || 'GatewayUpdateProducerRedisOutput'
9706
+
9707
+ # auth_names
9708
+ auth_names = opts[:debug_auth_names] || []
9709
+
9710
+ new_options = opts.merge(
9711
+ :operation => :"V2Api.gateway_update_producer_redis",
9712
+ :header_params => header_params,
9713
+ :query_params => query_params,
9714
+ :form_params => form_params,
9715
+ :body => post_body,
9716
+ :auth_names => auth_names,
9717
+ :return_type => return_type
9718
+ )
9719
+
9720
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
9721
+ if @api_client.config.debugging
9722
+ @api_client.config.logger.debug "API called: V2Api#gateway_update_producer_redis\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
9723
+ end
9724
+ return data, status_code, headers
9725
+ end
9726
+
9226
9727
  # @param body [GatewayUpdateProducerRedshift]
9227
9728
  # @param [Hash] opts the optional parameters
9228
9729
  # @return [GatewayUpdateProducerRedshiftOutput]