oci-opensearch 2.104.0 → 2.105.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/index.d.ts +3 -0
  2. package/index.js +4 -1
  3. package/index.js.map +1 -1
  4. package/lib/client.d.ts +128 -0
  5. package/lib/client.js +482 -1
  6. package/lib/client.js.map +1 -1
  7. package/lib/model/create-opensearch-cluster-pipeline-details.d.ts +25 -25
  8. package/lib/model/create-opensearch-cluster-pipeline-details.js +34 -2
  9. package/lib/model/create-opensearch-cluster-pipeline-details.js.map +1 -1
  10. package/lib/model/{pipeline-validation-error-details.d.ts → force-patch-pipeline-details.d.ts} +13 -6
  11. package/lib/model/{pipeline-validation-error-details.js → force-patch-pipeline-details.js} +7 -7
  12. package/lib/model/force-patch-pipeline-details.js.map +1 -0
  13. package/lib/model/index.d.ts +6 -6
  14. package/lib/model/index.js +8 -8
  15. package/lib/model/index.js.map +1 -1
  16. package/lib/model/opensearch-cluster-pipeline-collection.d.ts +1 -1
  17. package/lib/model/opensearch-cluster-pipeline-summary.d.ts +26 -13
  18. package/lib/model/opensearch-cluster-pipeline-summary.js.map +1 -1
  19. package/lib/model/opensearch-cluster-pipeline.d.ts +40 -12
  20. package/lib/model/opensearch-cluster-pipeline.js +49 -2
  21. package/lib/model/opensearch-cluster-pipeline.js.map +1 -1
  22. package/lib/model/opensearch-pipeline-reverse-connection-endpoint.d.ts +30 -0
  23. package/lib/model/opensearch-pipeline-reverse-connection-endpoint.js +29 -0
  24. package/lib/model/opensearch-pipeline-reverse-connection-endpoint.js.map +1 -0
  25. package/lib/model/update-opensearch-cluster-pipeline-details.d.ts +55 -11
  26. package/lib/model/update-opensearch-cluster-pipeline-details.js +34 -2
  27. package/lib/model/update-opensearch-cluster-pipeline-details.js.map +1 -1
  28. package/lib/model/update-pipeline-status-details.d.ts +29 -0
  29. package/lib/model/{validate-opensearch-pipeline-details.js → update-pipeline-status-details.js} +7 -7
  30. package/lib/model/update-pipeline-status-details.js.map +1 -0
  31. package/lib/opensearchclusterpipeline-waiter.d.ts +29 -0
  32. package/lib/opensearchclusterpipeline-waiter.js +65 -0
  33. package/lib/opensearchclusterpipeline-waiter.js.map +1 -0
  34. package/lib/request/create-opensearch-cluster-pipeline-request.d.ts +42 -0
  35. package/lib/request/create-opensearch-cluster-pipeline-request.js +15 -0
  36. package/lib/request/create-opensearch-cluster-pipeline-request.js.map +1 -0
  37. package/lib/request/delete-opensearch-cluster-pipeline-request.d.ts +35 -0
  38. package/lib/request/delete-opensearch-cluster-pipeline-request.js +15 -0
  39. package/lib/request/delete-opensearch-cluster-pipeline-request.js.map +1 -0
  40. package/lib/request/get-opensearch-cluster-pipeline-request.d.ts +26 -0
  41. package/lib/request/get-opensearch-cluster-pipeline-request.js +15 -0
  42. package/lib/request/get-opensearch-cluster-pipeline-request.js.map +1 -0
  43. package/lib/request/index.d.ts +10 -0
  44. package/lib/request/index.js +3 -1
  45. package/lib/request/index.js.map +1 -1
  46. package/lib/request/list-opensearch-cluster-pipelines-request.d.ts +66 -0
  47. package/lib/request/list-opensearch-cluster-pipelines-request.js +24 -0
  48. package/lib/request/list-opensearch-cluster-pipelines-request.js.map +1 -0
  49. package/lib/request/update-opensearch-cluster-pipeline-request.d.ts +46 -0
  50. package/lib/request/update-opensearch-cluster-pipeline-request.js +15 -0
  51. package/lib/request/update-opensearch-cluster-pipeline-request.js.map +1 -0
  52. package/lib/response/create-opensearch-cluster-pipeline-response.d.ts +25 -0
  53. package/lib/response/create-opensearch-cluster-pipeline-response.js +15 -0
  54. package/lib/response/create-opensearch-cluster-pipeline-response.js.map +1 -0
  55. package/lib/response/delete-opensearch-cluster-pipeline-response.d.ts +25 -0
  56. package/lib/response/delete-opensearch-cluster-pipeline-response.js +15 -0
  57. package/lib/response/delete-opensearch-cluster-pipeline-response.js.map +1 -0
  58. package/lib/response/get-opensearch-cluster-pipeline-response.d.ts +30 -0
  59. package/lib/response/get-opensearch-cluster-pipeline-response.js +15 -0
  60. package/lib/response/get-opensearch-cluster-pipeline-response.js.map +1 -0
  61. package/lib/response/index.d.ts +10 -0
  62. package/lib/response/list-opensearch-cluster-pipelines-response.d.ts +32 -0
  63. package/lib/response/list-opensearch-cluster-pipelines-response.js +15 -0
  64. package/lib/response/list-opensearch-cluster-pipelines-response.js.map +1 -0
  65. package/lib/response/update-opensearch-cluster-pipeline-response.d.ts +25 -0
  66. package/lib/response/update-opensearch-cluster-pipeline-response.js +15 -0
  67. package/lib/response/update-opensearch-cluster-pipeline-response.js.map +1 -0
  68. package/package.json +3 -3
  69. package/lib/model/opensearch-pipeline-validation-response.d.ts +0 -30
  70. package/lib/model/opensearch-pipeline-validation-response.js +0 -61
  71. package/lib/model/opensearch-pipeline-validation-response.js.map +0 -1
  72. package/lib/model/pipeline-validation-error-details.js.map +0 -1
  73. package/lib/model/validate-opensearch-pipeline-details.d.ts +0 -30
  74. package/lib/model/validate-opensearch-pipeline-details.js.map +0 -1
package/lib/client.js CHANGED
@@ -40,11 +40,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
40
40
  });
41
41
  };
42
42
  Object.defineProperty(exports, "__esModule", { value: true });
43
- exports.OpensearchClusterBackupClient = exports.OpensearchClusterBackupApiKeys = exports.OpensearchClusterClient = exports.OpensearchClusterApiKeys = void 0;
43
+ exports.OpensearchClusterPipelineClient = exports.OpensearchClusterPipelineApiKeys = exports.OpensearchClusterBackupClient = exports.OpensearchClusterBackupApiKeys = exports.OpensearchClusterClient = exports.OpensearchClusterApiKeys = void 0;
44
44
  const common = require("oci-common");
45
45
  const model = __importStar(require("./model"));
46
46
  const opensearchcluster_waiter_1 = require("./opensearchcluster-waiter");
47
47
  const opensearchclusterbackup_waiter_1 = require("./opensearchclusterbackup-waiter");
48
+ const opensearchclusterpipeline_waiter_1 = require("./opensearchclusterpipeline-waiter");
48
49
  const oci_common_1 = require("oci-common");
49
50
  const Breaker = require("opossum");
50
51
  // ===============================================
@@ -1647,4 +1648,484 @@ class OpensearchClusterBackupClient {
1647
1648
  exports.OpensearchClusterBackupClient = OpensearchClusterBackupClient;
1648
1649
  OpensearchClusterBackupClient.serviceEndpointTemplate = "https://search-indexing.{region}.oci.{secondLevelDomain}";
1649
1650
  OpensearchClusterBackupClient.endpointServiceName = "";
1651
+ var OpensearchClusterPipelineApiKeys;
1652
+ (function (OpensearchClusterPipelineApiKeys) {
1653
+ })(OpensearchClusterPipelineApiKeys = exports.OpensearchClusterPipelineApiKeys || (exports.OpensearchClusterPipelineApiKeys = {}));
1654
+ /**
1655
+ * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
1656
+ */
1657
+ class OpensearchClusterPipelineClient {
1658
+ constructor(params, clientConfiguration) {
1659
+ this["_realmSpecificEndpointTemplateEnabled"] = undefined;
1660
+ this["_endpoint"] = "";
1661
+ this["_defaultHeaders"] = {};
1662
+ this._circuitBreaker = null;
1663
+ this._httpOptions = undefined;
1664
+ this._bodyDuplexMode = undefined;
1665
+ this.targetService = "OpensearchClusterPipeline";
1666
+ this._regionId = "";
1667
+ this._lastSetRegionOrRegionId = "";
1668
+ const requestSigner = params.authenticationDetailsProvider
1669
+ ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
1670
+ : null;
1671
+ this._authProvider = params.authenticationDetailsProvider;
1672
+ if (clientConfiguration) {
1673
+ this._clientConfiguration = clientConfiguration;
1674
+ this._circuitBreaker = clientConfiguration.circuitBreaker
1675
+ ? clientConfiguration.circuitBreaker.circuit
1676
+ : null;
1677
+ this._httpOptions = clientConfiguration.httpOptions
1678
+ ? clientConfiguration.httpOptions
1679
+ : undefined;
1680
+ this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
1681
+ ? clientConfiguration.bodyDuplexMode
1682
+ : undefined;
1683
+ }
1684
+ if (!oci_common_1.developerToolConfiguration.isServiceEnabled("opensearch")) {
1685
+ let errmsg = "The developerToolConfiguration configuration disabled this service, this behavior is controlled by developerToolConfiguration.ociEnabledServiceSet variable. Please check if your local developer_tool_configuration file has configured the service you're targeting or contact the cloud provider on the availability of this service : ";
1686
+ throw errmsg.concat("opensearch");
1687
+ }
1688
+ // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
1689
+ const specCircuitBreakerEnabled = true;
1690
+ if (!this._circuitBreaker &&
1691
+ common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
1692
+ (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
1693
+ this._circuitBreaker = new common.CircuitBreaker().circuit;
1694
+ }
1695
+ this._httpClient =
1696
+ params.httpClient ||
1697
+ new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
1698
+ if (params.authenticationDetailsProvider &&
1699
+ common.isRegionProvider(params.authenticationDetailsProvider)) {
1700
+ const provider = params.authenticationDetailsProvider;
1701
+ if (provider.getRegion()) {
1702
+ this.region = provider.getRegion();
1703
+ }
1704
+ }
1705
+ }
1706
+ /**
1707
+ * Get the endpoint that is being used to call (ex, https://www.example.com).
1708
+ */
1709
+ get endpoint() {
1710
+ return this._endpoint;
1711
+ }
1712
+ /**
1713
+ * Sets the endpoint to call (ex, https://www.example.com).
1714
+ * @param endpoint The endpoint of the service.
1715
+ */
1716
+ set endpoint(endpoint) {
1717
+ this._endpoint = endpoint;
1718
+ this._endpoint = this._endpoint + "/20180828";
1719
+ if (this.logger)
1720
+ this.logger.info(`OpensearchClusterPipelineClient endpoint set to ${this._endpoint}`);
1721
+ }
1722
+ get logger() {
1723
+ return common.LOG.logger;
1724
+ }
1725
+ /**
1726
+ * Determines whether realm specific endpoint should be used or not.
1727
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
1728
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
1729
+ */
1730
+ set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
1731
+ this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
1732
+ if (this.logger)
1733
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
1734
+ if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
1735
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(OpensearchClusterPipelineClient.serviceEndpointTemplate, this._region, OpensearchClusterPipelineClient.endpointServiceName);
1736
+ }
1737
+ else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
1738
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(OpensearchClusterPipelineClient.serviceEndpointTemplate, this._regionId, OpensearchClusterPipelineClient.endpointServiceName);
1739
+ }
1740
+ }
1741
+ /**
1742
+ * Sets the region to call (ex, Region.US_PHOENIX_1).
1743
+ * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
1744
+ * @param region The region of the service.
1745
+ */
1746
+ set region(region) {
1747
+ this._region = region;
1748
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(OpensearchClusterPipelineClient.serviceEndpointTemplate, region, OpensearchClusterPipelineClient.endpointServiceName);
1749
+ this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
1750
+ }
1751
+ /**
1752
+ * Sets the regionId to call (ex, 'us-phoenix-1').
1753
+ *
1754
+ * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
1755
+ * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
1756
+ * and then call {@link #endpoint(String) endpoint}.
1757
+ * @param regionId The public region ID.
1758
+ */
1759
+ set regionId(regionId) {
1760
+ this._regionId = regionId;
1761
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(OpensearchClusterPipelineClient.serviceEndpointTemplate, regionId, OpensearchClusterPipelineClient.endpointServiceName);
1762
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
1763
+ }
1764
+ /**
1765
+ * Creates a new OpensearchClusterPipelineWaiter for resources for this service.
1766
+ *
1767
+ * @param config The waiter configuration for termination and delay strategy
1768
+ * @return The service waiters.
1769
+ */
1770
+ createWaiters(config) {
1771
+ this._waiters = new opensearchclusterpipeline_waiter_1.OpensearchClusterPipelineWaiter(this, config);
1772
+ return this._waiters;
1773
+ }
1774
+ /**
1775
+ * Gets the waiters available for resources for this service.
1776
+ *
1777
+ * @return The service waiters.
1778
+ */
1779
+ getWaiters() {
1780
+ if (this._waiters) {
1781
+ return this._waiters;
1782
+ }
1783
+ throw Error("Waiters do not exist. Please create waiters.");
1784
+ }
1785
+ /**
1786
+ * Shutdown the circuit breaker used by the client when it is no longer needed
1787
+ */
1788
+ shutdownCircuitBreaker() {
1789
+ if (this._circuitBreaker) {
1790
+ this._circuitBreaker.shutdown();
1791
+ }
1792
+ }
1793
+ /**
1794
+ * Close the provider if possible which in turn shuts down any associated circuit breaker
1795
+ */
1796
+ closeProvider() {
1797
+ if (this._authProvider) {
1798
+ if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
1799
+ (this._authProvider).closeProvider();
1800
+ }
1801
+ }
1802
+ /**
1803
+ * Close the client once it is no longer needed
1804
+ */
1805
+ close() {
1806
+ this.shutdownCircuitBreaker();
1807
+ this.closeProvider();
1808
+ }
1809
+ /**
1810
+ * Creates a new OpensearchCluster Pipeline.
1811
+ *
1812
+ * This operation does not retry by default if the user has not defined a retry configuration.
1813
+ * @param CreateOpensearchClusterPipelineRequest
1814
+ * @return CreateOpensearchClusterPipelineResponse
1815
+ * @throws OciError when an error occurs
1816
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/opensearch/CreateOpensearchClusterPipeline.ts.html |here} to see how to use CreateOpensearchClusterPipeline API.
1817
+ */
1818
+ createOpensearchClusterPipeline(createOpensearchClusterPipelineRequest) {
1819
+ return __awaiter(this, void 0, void 0, function* () {
1820
+ if (this.logger)
1821
+ this.logger.debug("Calling operation OpensearchClusterPipelineClient#createOpensearchClusterPipeline.");
1822
+ const operationName = "createOpensearchClusterPipeline";
1823
+ const apiReferenceLink = "";
1824
+ const pathParams = {};
1825
+ const queryParams = {};
1826
+ let headerParams = {
1827
+ "Content-Type": common.Constants.APPLICATION_JSON,
1828
+ "opc-retry-token": createOpensearchClusterPipelineRequest.opcRetryToken,
1829
+ "opc-request-id": createOpensearchClusterPipelineRequest.opcRequestId,
1830
+ "opc-dry-run": createOpensearchClusterPipelineRequest.opcDryRun
1831
+ };
1832
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1833
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createOpensearchClusterPipelineRequest.retryConfiguration, specRetryConfiguration);
1834
+ if (this.logger)
1835
+ retrier.logger = this.logger;
1836
+ const request = yield oci_common_1.composeRequest({
1837
+ baseEndpoint: this._endpoint,
1838
+ defaultHeaders: this._defaultHeaders,
1839
+ path: "/opensearchClusterPipelines",
1840
+ method: "POST",
1841
+ bodyContent: common.ObjectSerializer.serialize(createOpensearchClusterPipelineRequest.createOpensearchClusterPipelineDetails, "CreateOpensearchClusterPipelineDetails", model.CreateOpensearchClusterPipelineDetails.getJsonObj),
1842
+ pathParams: pathParams,
1843
+ headerParams: headerParams,
1844
+ queryParams: queryParams
1845
+ });
1846
+ try {
1847
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1848
+ const sdkResponse = oci_common_1.composeResponse({
1849
+ responseObject: {},
1850
+ responseHeaders: [
1851
+ {
1852
+ value: response.headers.get("opc-work-request-id"),
1853
+ key: "opcWorkRequestId",
1854
+ dataType: "string"
1855
+ },
1856
+ {
1857
+ value: response.headers.get("opc-request-id"),
1858
+ key: "opcRequestId",
1859
+ dataType: "string"
1860
+ }
1861
+ ]
1862
+ });
1863
+ return sdkResponse;
1864
+ }
1865
+ catch (err) {
1866
+ throw err;
1867
+ }
1868
+ });
1869
+ }
1870
+ /**
1871
+ * Deletes a OpensearchCluster Pipeline resource by identifier
1872
+ * This operation does not retry by default if the user has not defined a retry configuration.
1873
+ * @param DeleteOpensearchClusterPipelineRequest
1874
+ * @return DeleteOpensearchClusterPipelineResponse
1875
+ * @throws OciError when an error occurs
1876
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/opensearch/DeleteOpensearchClusterPipeline.ts.html |here} to see how to use DeleteOpensearchClusterPipeline API.
1877
+ */
1878
+ deleteOpensearchClusterPipeline(deleteOpensearchClusterPipelineRequest) {
1879
+ return __awaiter(this, void 0, void 0, function* () {
1880
+ if (this.logger)
1881
+ this.logger.debug("Calling operation OpensearchClusterPipelineClient#deleteOpensearchClusterPipeline.");
1882
+ const operationName = "deleteOpensearchClusterPipeline";
1883
+ const apiReferenceLink = "";
1884
+ const pathParams = {
1885
+ "{opensearchClusterPipelineId}": deleteOpensearchClusterPipelineRequest.opensearchClusterPipelineId
1886
+ };
1887
+ const queryParams = {};
1888
+ let headerParams = {
1889
+ "Content-Type": common.Constants.APPLICATION_JSON,
1890
+ "if-match": deleteOpensearchClusterPipelineRequest.ifMatch,
1891
+ "opc-request-id": deleteOpensearchClusterPipelineRequest.opcRequestId
1892
+ };
1893
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1894
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteOpensearchClusterPipelineRequest.retryConfiguration, specRetryConfiguration);
1895
+ if (this.logger)
1896
+ retrier.logger = this.logger;
1897
+ const request = yield oci_common_1.composeRequest({
1898
+ baseEndpoint: this._endpoint,
1899
+ defaultHeaders: this._defaultHeaders,
1900
+ path: "/opensearchClusterPipelines/{opensearchClusterPipelineId}",
1901
+ method: "DELETE",
1902
+ pathParams: pathParams,
1903
+ headerParams: headerParams,
1904
+ queryParams: queryParams
1905
+ });
1906
+ try {
1907
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1908
+ const sdkResponse = oci_common_1.composeResponse({
1909
+ responseObject: {},
1910
+ responseHeaders: [
1911
+ {
1912
+ value: response.headers.get("opc-work-request-id"),
1913
+ key: "opcWorkRequestId",
1914
+ dataType: "string"
1915
+ },
1916
+ {
1917
+ value: response.headers.get("opc-request-id"),
1918
+ key: "opcRequestId",
1919
+ dataType: "string"
1920
+ }
1921
+ ]
1922
+ });
1923
+ return sdkResponse;
1924
+ }
1925
+ catch (err) {
1926
+ throw err;
1927
+ }
1928
+ });
1929
+ }
1930
+ /**
1931
+ * Gets a OpensearchCluster Pipeline by identifier
1932
+ * This operation does not retry by default if the user has not defined a retry configuration.
1933
+ * @param GetOpensearchClusterPipelineRequest
1934
+ * @return GetOpensearchClusterPipelineResponse
1935
+ * @throws OciError when an error occurs
1936
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/opensearch/GetOpensearchClusterPipeline.ts.html |here} to see how to use GetOpensearchClusterPipeline API.
1937
+ */
1938
+ getOpensearchClusterPipeline(getOpensearchClusterPipelineRequest) {
1939
+ return __awaiter(this, void 0, void 0, function* () {
1940
+ if (this.logger)
1941
+ this.logger.debug("Calling operation OpensearchClusterPipelineClient#getOpensearchClusterPipeline.");
1942
+ const operationName = "getOpensearchClusterPipeline";
1943
+ const apiReferenceLink = "";
1944
+ const pathParams = {
1945
+ "{opensearchClusterPipelineId}": getOpensearchClusterPipelineRequest.opensearchClusterPipelineId
1946
+ };
1947
+ const queryParams = {};
1948
+ let headerParams = {
1949
+ "Content-Type": common.Constants.APPLICATION_JSON,
1950
+ "opc-request-id": getOpensearchClusterPipelineRequest.opcRequestId
1951
+ };
1952
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1953
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getOpensearchClusterPipelineRequest.retryConfiguration, specRetryConfiguration);
1954
+ if (this.logger)
1955
+ retrier.logger = this.logger;
1956
+ const request = yield oci_common_1.composeRequest({
1957
+ baseEndpoint: this._endpoint,
1958
+ defaultHeaders: this._defaultHeaders,
1959
+ path: "/opensearchClusterPipelines/{opensearchClusterPipelineId}",
1960
+ method: "GET",
1961
+ pathParams: pathParams,
1962
+ headerParams: headerParams,
1963
+ queryParams: queryParams
1964
+ });
1965
+ try {
1966
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1967
+ const sdkResponse = oci_common_1.composeResponse({
1968
+ responseObject: {},
1969
+ body: yield response.json(),
1970
+ bodyKey: "opensearchClusterPipeline",
1971
+ bodyModel: model.OpensearchClusterPipeline,
1972
+ type: "model.OpensearchClusterPipeline",
1973
+ responseHeaders: [
1974
+ {
1975
+ value: response.headers.get("etag"),
1976
+ key: "etag",
1977
+ dataType: "string"
1978
+ },
1979
+ {
1980
+ value: response.headers.get("opc-request-id"),
1981
+ key: "opcRequestId",
1982
+ dataType: "string"
1983
+ }
1984
+ ]
1985
+ });
1986
+ return sdkResponse;
1987
+ }
1988
+ catch (err) {
1989
+ throw err;
1990
+ }
1991
+ });
1992
+ }
1993
+ /**
1994
+ * Returns a list of OpensearchClusterPipelines.
1995
+ *
1996
+ * This operation does not retry by default if the user has not defined a retry configuration.
1997
+ * @param ListOpensearchClusterPipelinesRequest
1998
+ * @return ListOpensearchClusterPipelinesResponse
1999
+ * @throws OciError when an error occurs
2000
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/opensearch/ListOpensearchClusterPipelines.ts.html |here} to see how to use ListOpensearchClusterPipelines API.
2001
+ */
2002
+ listOpensearchClusterPipelines(listOpensearchClusterPipelinesRequest) {
2003
+ return __awaiter(this, void 0, void 0, function* () {
2004
+ if (this.logger)
2005
+ this.logger.debug("Calling operation OpensearchClusterPipelineClient#listOpensearchClusterPipelines.");
2006
+ const operationName = "listOpensearchClusterPipelines";
2007
+ const apiReferenceLink = "";
2008
+ const pathParams = {};
2009
+ const queryParams = {
2010
+ "compartmentId": listOpensearchClusterPipelinesRequest.compartmentId,
2011
+ "lifecycleState": listOpensearchClusterPipelinesRequest.lifecycleState,
2012
+ "pipelineComponentId": listOpensearchClusterPipelinesRequest.pipelineComponentId,
2013
+ "displayName": listOpensearchClusterPipelinesRequest.displayName,
2014
+ "id": listOpensearchClusterPipelinesRequest.id,
2015
+ "limit": listOpensearchClusterPipelinesRequest.limit,
2016
+ "page": listOpensearchClusterPipelinesRequest.page,
2017
+ "sortOrder": listOpensearchClusterPipelinesRequest.sortOrder,
2018
+ "sortBy": listOpensearchClusterPipelinesRequest.sortBy
2019
+ };
2020
+ let headerParams = {
2021
+ "Content-Type": common.Constants.APPLICATION_JSON,
2022
+ "opc-request-id": listOpensearchClusterPipelinesRequest.opcRequestId
2023
+ };
2024
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2025
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listOpensearchClusterPipelinesRequest.retryConfiguration, specRetryConfiguration);
2026
+ if (this.logger)
2027
+ retrier.logger = this.logger;
2028
+ const request = yield oci_common_1.composeRequest({
2029
+ baseEndpoint: this._endpoint,
2030
+ defaultHeaders: this._defaultHeaders,
2031
+ path: "/opensearchClusterPipelines",
2032
+ method: "GET",
2033
+ pathParams: pathParams,
2034
+ headerParams: headerParams,
2035
+ queryParams: queryParams
2036
+ });
2037
+ try {
2038
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2039
+ const sdkResponse = oci_common_1.composeResponse({
2040
+ responseObject: {},
2041
+ body: yield response.json(),
2042
+ bodyKey: "opensearchClusterPipelineCollection",
2043
+ bodyModel: model.OpensearchClusterPipelineCollection,
2044
+ type: "model.OpensearchClusterPipelineCollection",
2045
+ responseHeaders: [
2046
+ {
2047
+ value: response.headers.get("opc-request-id"),
2048
+ key: "opcRequestId",
2049
+ dataType: "string"
2050
+ },
2051
+ {
2052
+ value: response.headers.get("opc-next-page"),
2053
+ key: "opcNextPage",
2054
+ dataType: "string"
2055
+ }
2056
+ ]
2057
+ });
2058
+ return sdkResponse;
2059
+ }
2060
+ catch (err) {
2061
+ throw err;
2062
+ }
2063
+ });
2064
+ }
2065
+ /**
2066
+ * Updates the OpensearchCluster Pipeline
2067
+ * This operation does not retry by default if the user has not defined a retry configuration.
2068
+ * @param UpdateOpensearchClusterPipelineRequest
2069
+ * @return UpdateOpensearchClusterPipelineResponse
2070
+ * @throws OciError when an error occurs
2071
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/opensearch/UpdateOpensearchClusterPipeline.ts.html |here} to see how to use UpdateOpensearchClusterPipeline API.
2072
+ */
2073
+ updateOpensearchClusterPipeline(updateOpensearchClusterPipelineRequest) {
2074
+ return __awaiter(this, void 0, void 0, function* () {
2075
+ if (this.logger)
2076
+ this.logger.debug("Calling operation OpensearchClusterPipelineClient#updateOpensearchClusterPipeline.");
2077
+ const operationName = "updateOpensearchClusterPipeline";
2078
+ const apiReferenceLink = "";
2079
+ const pathParams = {
2080
+ "{opensearchClusterPipelineId}": updateOpensearchClusterPipelineRequest.opensearchClusterPipelineId
2081
+ };
2082
+ const queryParams = {};
2083
+ let headerParams = {
2084
+ "Content-Type": common.Constants.APPLICATION_JSON,
2085
+ "if-match": updateOpensearchClusterPipelineRequest.ifMatch,
2086
+ "opc-request-id": updateOpensearchClusterPipelineRequest.opcRequestId,
2087
+ "opc-dry-run": updateOpensearchClusterPipelineRequest.opcDryRun
2088
+ };
2089
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2090
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateOpensearchClusterPipelineRequest.retryConfiguration, specRetryConfiguration);
2091
+ if (this.logger)
2092
+ retrier.logger = this.logger;
2093
+ const request = yield oci_common_1.composeRequest({
2094
+ baseEndpoint: this._endpoint,
2095
+ defaultHeaders: this._defaultHeaders,
2096
+ path: "/opensearchClusterPipelines/{opensearchClusterPipelineId}",
2097
+ method: "PUT",
2098
+ bodyContent: common.ObjectSerializer.serialize(updateOpensearchClusterPipelineRequest.updateOpensearchClusterPipelineDetails, "UpdateOpensearchClusterPipelineDetails", model.UpdateOpensearchClusterPipelineDetails.getJsonObj),
2099
+ pathParams: pathParams,
2100
+ headerParams: headerParams,
2101
+ queryParams: queryParams
2102
+ });
2103
+ try {
2104
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2105
+ const sdkResponse = oci_common_1.composeResponse({
2106
+ responseObject: {},
2107
+ responseHeaders: [
2108
+ {
2109
+ value: response.headers.get("opc-work-request-id"),
2110
+ key: "opcWorkRequestId",
2111
+ dataType: "string"
2112
+ },
2113
+ {
2114
+ value: response.headers.get("opc-request-id"),
2115
+ key: "opcRequestId",
2116
+ dataType: "string"
2117
+ }
2118
+ ]
2119
+ });
2120
+ return sdkResponse;
2121
+ }
2122
+ catch (err) {
2123
+ throw err;
2124
+ }
2125
+ });
2126
+ }
2127
+ }
2128
+ exports.OpensearchClusterPipelineClient = OpensearchClusterPipelineClient;
2129
+ OpensearchClusterPipelineClient.serviceEndpointTemplate = "https://search-indexing.{region}.oci.{secondLevelDomain}";
2130
+ OpensearchClusterPipelineClient.endpointServiceName = "";
1650
2131
  //# sourceMappingURL=client.js.map