oci-emwarehouse 2.33.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.
- package/LICENSE.txt +89 -0
- package/NOTICE.txt +1 -0
- package/README.md +22 -0
- package/THIRD_PARTY_LICENSES.txt +576 -0
- package/index.d.ts +22 -0
- package/index.js +45 -0
- package/index.js.map +1 -0
- package/lib/client.d.ts +194 -0
- package/lib/client.js +1000 -0
- package/lib/client.js.map +1 -0
- package/lib/emdatalake-waiter.d.ts +36 -0
- package/lib/emdatalake-waiter.js +76 -0
- package/lib/emdatalake-waiter.js.map +1 -0
- package/lib/model/action-type.d.ts +32 -0
- package/lib/model/action-type.js +43 -0
- package/lib/model/action-type.js.map +1 -0
- package/lib/model/change-em-warehouse-compartment-details.d.ts +27 -0
- package/lib/model/change-em-warehouse-compartment-details.js +29 -0
- package/lib/model/change-em-warehouse-compartment-details.js.map +1 -0
- package/lib/model/create-em-warehouse-details.d.ts +55 -0
- package/lib/model/create-em-warehouse-details.js +29 -0
- package/lib/model/create-em-warehouse-details.js.map +1 -0
- package/lib/model/em-instances-details.d.ts +33 -0
- package/lib/model/em-instances-details.js +29 -0
- package/lib/model/em-instances-details.js.map +1 -0
- package/lib/model/em-warehouse-collection.d.ts +26 -0
- package/lib/model/em-warehouse-collection.js +61 -0
- package/lib/model/em-warehouse-collection.js.map +1 -0
- package/lib/model/em-warehouse-summary.d.ts +101 -0
- package/lib/model/em-warehouse-summary.js +29 -0
- package/lib/model/em-warehouse-summary.js.map +1 -0
- package/lib/model/em-warehouse.d.ts +114 -0
- package/lib/model/em-warehouse.js +43 -0
- package/lib/model/em-warehouse.js.map +1 -0
- package/lib/model/etl-run-collection.d.ts +26 -0
- package/lib/model/etl-run-collection.js +61 -0
- package/lib/model/etl-run-collection.js.map +1 -0
- package/lib/model/etl-run-summary.d.ts +88 -0
- package/lib/model/etl-run-summary.js +43 -0
- package/lib/model/etl-run-summary.js.map +1 -0
- package/lib/model/index.d.ts +58 -0
- package/lib/model/index.js +81 -0
- package/lib/model/index.js.map +1 -0
- package/lib/model/operation-status.d.ts +33 -0
- package/lib/model/operation-status.js +44 -0
- package/lib/model/operation-status.js.map +1 -0
- package/lib/model/operation-type.d.ts +30 -0
- package/lib/model/operation-type.js +41 -0
- package/lib/model/operation-type.js.map +1 -0
- package/lib/model/resource-usage.d.ts +42 -0
- package/lib/model/resource-usage.js +61 -0
- package/lib/model/resource-usage.js.map +1 -0
- package/lib/model/sort-order.d.ts +23 -0
- package/lib/model/sort-order.js +34 -0
- package/lib/model/sort-order.js.map +1 -0
- package/lib/model/update-em-warehouse-details.d.ts +47 -0
- package/lib/model/update-em-warehouse-details.js +29 -0
- package/lib/model/update-em-warehouse-details.js.map +1 -0
- package/lib/model/work-request-error-collection.d.ts +26 -0
- package/lib/model/work-request-error-collection.js +61 -0
- package/lib/model/work-request-error-collection.js.map +1 -0
- package/lib/model/work-request-error.d.ts +35 -0
- package/lib/model/work-request-error.js +29 -0
- package/lib/model/work-request-error.js.map +1 -0
- package/lib/model/work-request-log-entry-collection.d.ts +26 -0
- package/lib/model/work-request-log-entry-collection.js +61 -0
- package/lib/model/work-request-log-entry-collection.js.map +1 -0
- package/lib/model/work-request-log-entry.d.ts +29 -0
- package/lib/model/work-request-log-entry.js +29 -0
- package/lib/model/work-request-log-entry.js.map +1 -0
- package/lib/model/work-request-resource-metadata-key.d.ts +27 -0
- package/lib/model/work-request-resource-metadata-key.js +38 -0
- package/lib/model/work-request-resource-metadata-key.js.map +1 -0
- package/lib/model/work-request-resource.d.ts +48 -0
- package/lib/model/work-request-resource.js +29 -0
- package/lib/model/work-request-resource.js.map +1 -0
- package/lib/model/work-request-summary-collection.d.ts +26 -0
- package/lib/model/work-request-summary-collection.js +61 -0
- package/lib/model/work-request-summary-collection.js.map +1 -0
- package/lib/model/work-request-summary.d.ts +67 -0
- package/lib/model/work-request-summary.js +61 -0
- package/lib/model/work-request-summary.js.map +1 -0
- package/lib/model/work-request.d.ts +67 -0
- package/lib/model/work-request.js +61 -0
- package/lib/model/work-request.js.map +1 -0
- package/lib/request/cancel-work-request-request.d.ts +35 -0
- package/lib/request/cancel-work-request-request.js +15 -0
- package/lib/request/cancel-work-request-request.js.map +1 -0
- package/lib/request/change-em-warehouse-compartment-request.d.ts +49 -0
- package/lib/request/change-em-warehouse-compartment-request.js +15 -0
- package/lib/request/change-em-warehouse-compartment-request.js.map +1 -0
- package/lib/request/create-em-warehouse-request.d.ts +36 -0
- package/lib/request/create-em-warehouse-request.js +15 -0
- package/lib/request/create-em-warehouse-request.js.map +1 -0
- package/lib/request/delete-em-warehouse-request.d.ts +35 -0
- package/lib/request/delete-em-warehouse-request.js +15 -0
- package/lib/request/delete-em-warehouse-request.js.map +1 -0
- package/lib/request/get-em-warehouse-request.d.ts +26 -0
- package/lib/request/get-em-warehouse-request.js +15 -0
- package/lib/request/get-em-warehouse-request.js.map +1 -0
- package/lib/request/get-em-warehouse-resource-usage-request.d.ts +26 -0
- package/lib/request/get-em-warehouse-resource-usage-request.js +15 -0
- package/lib/request/get-em-warehouse-resource-usage-request.js.map +1 -0
- package/lib/request/get-work-request-request.d.ts +26 -0
- package/lib/request/get-work-request-request.js +15 -0
- package/lib/request/get-work-request-request.js.map +1 -0
- package/lib/request/index.d.ts +38 -0
- package/lib/request/index.js +45 -0
- package/lib/request/index.js.map +1 -0
- package/lib/request/list-em-warehouses-request.d.ts +66 -0
- package/lib/request/list-em-warehouses-request.js +24 -0
- package/lib/request/list-em-warehouses-request.js.map +1 -0
- package/lib/request/list-etl-runs-request.d.ts +58 -0
- package/lib/request/list-etl-runs-request.js +24 -0
- package/lib/request/list-etl-runs-request.js.map +1 -0
- package/lib/request/list-work-request-errors-request.d.ts +49 -0
- package/lib/request/list-work-request-errors-request.js +23 -0
- package/lib/request/list-work-request-errors-request.js.map +1 -0
- package/lib/request/list-work-request-logs-request.d.ts +49 -0
- package/lib/request/list-work-request-logs-request.js +23 -0
- package/lib/request/list-work-request-logs-request.js.map +1 -0
- package/lib/request/list-work-requests-request.d.ts +61 -0
- package/lib/request/list-work-requests-request.js +23 -0
- package/lib/request/list-work-requests-request.js.map +1 -0
- package/lib/request/update-em-warehouse-request.d.ts +40 -0
- package/lib/request/update-em-warehouse-request.js +15 -0
- package/lib/request/update-em-warehouse-request.js.map +1 -0
- package/lib/response/cancel-work-request-response.d.ts +20 -0
- package/lib/response/cancel-work-request-response.js +15 -0
- package/lib/response/cancel-work-request-response.js.map +1 -0
- package/lib/response/change-em-warehouse-compartment-response.d.ts +25 -0
- package/lib/response/change-em-warehouse-compartment-response.js +15 -0
- package/lib/response/change-em-warehouse-compartment-response.js.map +1 -0
- package/lib/response/create-em-warehouse-response.d.ts +25 -0
- package/lib/response/create-em-warehouse-response.js +15 -0
- package/lib/response/create-em-warehouse-response.js.map +1 -0
- package/lib/response/delete-em-warehouse-response.d.ts +25 -0
- package/lib/response/delete-em-warehouse-response.js +15 -0
- package/lib/response/delete-em-warehouse-response.js.map +1 -0
- package/lib/response/get-em-warehouse-resource-usage-response.d.ts +30 -0
- package/lib/response/get-em-warehouse-resource-usage-response.js +15 -0
- package/lib/response/get-em-warehouse-resource-usage-response.js.map +1 -0
- package/lib/response/get-em-warehouse-response.d.ts +30 -0
- package/lib/response/get-em-warehouse-response.js +15 -0
- package/lib/response/get-em-warehouse-response.js.map +1 -0
- package/lib/response/get-work-request-response.d.ts +34 -0
- package/lib/response/get-work-request-response.js +15 -0
- package/lib/response/get-work-request-response.js.map +1 -0
- package/lib/response/index.d.ts +38 -0
- package/lib/response/index.js +15 -0
- package/lib/response/index.js.map +1 -0
- package/lib/response/list-em-warehouses-response.d.ts +32 -0
- package/lib/response/list-em-warehouses-response.js +15 -0
- package/lib/response/list-em-warehouses-response.js.map +1 -0
- package/lib/response/list-etl-runs-response.d.ts +32 -0
- package/lib/response/list-etl-runs-response.js +15 -0
- package/lib/response/list-etl-runs-response.js.map +1 -0
- package/lib/response/list-work-request-errors-response.d.ts +32 -0
- package/lib/response/list-work-request-errors-response.js +15 -0
- package/lib/response/list-work-request-errors-response.js.map +1 -0
- package/lib/response/list-work-request-logs-response.d.ts +32 -0
- package/lib/response/list-work-request-logs-response.js +15 -0
- package/lib/response/list-work-request-logs-response.js.map +1 -0
- package/lib/response/list-work-requests-response.d.ts +32 -0
- package/lib/response/list-work-requests-response.js +15 -0
- package/lib/response/list-work-requests-response.js.map +1 -0
- package/lib/response/update-em-warehouse-response.d.ts +25 -0
- package/lib/response/update-em-warehouse-response.js +15 -0
- package/lib/response/update-em-warehouse-response.js.map +1 -0
- package/package.json +29 -0
package/lib/client.js
ADDED
|
@@ -0,0 +1,1000 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* EmdwControlPlane API
|
|
4
|
+
* A description of the EmdwControlPlane API
|
|
5
|
+
* OpenAPI spec version: 20180828
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
12
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
13
|
+
*/
|
|
14
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17
|
+
}) : (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
o[k2] = m[k];
|
|
20
|
+
}));
|
|
21
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
22
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
23
|
+
}) : function(o, v) {
|
|
24
|
+
o["default"] = v;
|
|
25
|
+
});
|
|
26
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
27
|
+
if (mod && mod.__esModule) return mod;
|
|
28
|
+
var result = {};
|
|
29
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
30
|
+
__setModuleDefault(result, mod);
|
|
31
|
+
return result;
|
|
32
|
+
};
|
|
33
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
34
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
35
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
36
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
37
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
38
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
39
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
+
exports.EmDataLakeClient = exports.EmDataLakeApiKeys = void 0;
|
|
44
|
+
const common = require("oci-common");
|
|
45
|
+
const model = __importStar(require("./model"));
|
|
46
|
+
const emdatalake_waiter_1 = require("./emdatalake-waiter");
|
|
47
|
+
const oci_common_1 = require("oci-common");
|
|
48
|
+
// ===============================================
|
|
49
|
+
// This file is autogenerated - Please do not edit
|
|
50
|
+
// ===============================================
|
|
51
|
+
var EmDataLakeApiKeys;
|
|
52
|
+
(function (EmDataLakeApiKeys) {
|
|
53
|
+
})(EmDataLakeApiKeys = exports.EmDataLakeApiKeys || (exports.EmDataLakeApiKeys = {}));
|
|
54
|
+
/**
|
|
55
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
56
|
+
*/
|
|
57
|
+
class EmDataLakeClient {
|
|
58
|
+
constructor(params, clientConfiguration) {
|
|
59
|
+
this["_endpoint"] = "";
|
|
60
|
+
this["_defaultHeaders"] = {};
|
|
61
|
+
this._circuitBreaker = null;
|
|
62
|
+
this._httpOptions = undefined;
|
|
63
|
+
this.targetService = "EmDataLake";
|
|
64
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
65
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
66
|
+
: null;
|
|
67
|
+
if (clientConfiguration) {
|
|
68
|
+
this._clientConfiguration = clientConfiguration;
|
|
69
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
70
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
71
|
+
: null;
|
|
72
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
73
|
+
? clientConfiguration.httpOptions
|
|
74
|
+
: undefined;
|
|
75
|
+
}
|
|
76
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
77
|
+
const specCircuitBreakerEnabled = true;
|
|
78
|
+
if (!this._circuitBreaker &&
|
|
79
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
80
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
81
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
82
|
+
}
|
|
83
|
+
this._httpClient =
|
|
84
|
+
params.httpClient ||
|
|
85
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions);
|
|
86
|
+
if (params.authenticationDetailsProvider &&
|
|
87
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
88
|
+
const provider = params.authenticationDetailsProvider;
|
|
89
|
+
if (provider.getRegion()) {
|
|
90
|
+
this.region = provider.getRegion();
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
96
|
+
*/
|
|
97
|
+
get endpoint() {
|
|
98
|
+
return this._endpoint;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
102
|
+
* @param endpoint The endpoint of the service.
|
|
103
|
+
*/
|
|
104
|
+
set endpoint(endpoint) {
|
|
105
|
+
this._endpoint = endpoint;
|
|
106
|
+
this._endpoint = this._endpoint + "/20180828";
|
|
107
|
+
if (this.logger)
|
|
108
|
+
this.logger.info(`EmDataLakeClient endpoint set to ${this._endpoint}`);
|
|
109
|
+
}
|
|
110
|
+
get logger() {
|
|
111
|
+
return common.LOG.logger;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
115
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
116
|
+
* @param region The region of the service.
|
|
117
|
+
*/
|
|
118
|
+
set region(region) {
|
|
119
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(EmDataLakeClient.serviceEndpointTemplate, region, EmDataLakeClient.endpointServiceName);
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
123
|
+
*
|
|
124
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
125
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
126
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
127
|
+
* @param regionId The public region ID.
|
|
128
|
+
*/
|
|
129
|
+
set regionId(regionId) {
|
|
130
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(EmDataLakeClient.serviceEndpointTemplate, regionId, EmDataLakeClient.endpointServiceName);
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Creates a new EmDataLakeWaiter for resources for this service.
|
|
134
|
+
*
|
|
135
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
136
|
+
* @return The service waiters.
|
|
137
|
+
*/
|
|
138
|
+
createWaiters(config) {
|
|
139
|
+
this._waiters = new emdatalake_waiter_1.EmDataLakeWaiter(this, config);
|
|
140
|
+
return this._waiters;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Gets the waiters available for resources for this service.
|
|
144
|
+
*
|
|
145
|
+
* @return The service waiters.
|
|
146
|
+
*/
|
|
147
|
+
getWaiters() {
|
|
148
|
+
if (this._waiters) {
|
|
149
|
+
return this._waiters;
|
|
150
|
+
}
|
|
151
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Cancels the work request with the given ID.
|
|
155
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
156
|
+
* @param CancelWorkRequestRequest
|
|
157
|
+
* @return CancelWorkRequestResponse
|
|
158
|
+
* @throws OciError when an error occurs
|
|
159
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.33.0/emwarehouse/CancelWorkRequest.ts.html |here} to see how to use CancelWorkRequest API.
|
|
160
|
+
*/
|
|
161
|
+
cancelWorkRequest(cancelWorkRequestRequest) {
|
|
162
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
163
|
+
if (this.logger)
|
|
164
|
+
this.logger.debug("Calling operation EmDataLakeClient#cancelWorkRequest.");
|
|
165
|
+
const operationName = "cancelWorkRequest";
|
|
166
|
+
const apiReferenceLink = "";
|
|
167
|
+
const pathParams = {
|
|
168
|
+
"{workRequestId}": cancelWorkRequestRequest.workRequestId
|
|
169
|
+
};
|
|
170
|
+
const queryParams = {};
|
|
171
|
+
let headerParams = {
|
|
172
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
173
|
+
"if-match": cancelWorkRequestRequest.ifMatch,
|
|
174
|
+
"opc-request-id": cancelWorkRequestRequest.opcRequestId
|
|
175
|
+
};
|
|
176
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
177
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
178
|
+
if (this.logger)
|
|
179
|
+
retrier.logger = this.logger;
|
|
180
|
+
const request = yield oci_common_1.composeRequest({
|
|
181
|
+
baseEndpoint: this._endpoint,
|
|
182
|
+
defaultHeaders: this._defaultHeaders,
|
|
183
|
+
path: "/workRequests/{workRequestId}",
|
|
184
|
+
method: "DELETE",
|
|
185
|
+
pathParams: pathParams,
|
|
186
|
+
headerParams: headerParams,
|
|
187
|
+
queryParams: queryParams
|
|
188
|
+
});
|
|
189
|
+
try {
|
|
190
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
191
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
192
|
+
responseObject: {},
|
|
193
|
+
responseHeaders: [
|
|
194
|
+
{
|
|
195
|
+
value: response.headers.get("opc-request-id"),
|
|
196
|
+
key: "opcRequestId",
|
|
197
|
+
dataType: "string"
|
|
198
|
+
}
|
|
199
|
+
]
|
|
200
|
+
});
|
|
201
|
+
return sdkResponse;
|
|
202
|
+
}
|
|
203
|
+
catch (err) {
|
|
204
|
+
throw err;
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Moves a EmWarehouse resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource.
|
|
210
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
211
|
+
* @param ChangeEmWarehouseCompartmentRequest
|
|
212
|
+
* @return ChangeEmWarehouseCompartmentResponse
|
|
213
|
+
* @throws OciError when an error occurs
|
|
214
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.33.0/emwarehouse/ChangeEmWarehouseCompartment.ts.html |here} to see how to use ChangeEmWarehouseCompartment API.
|
|
215
|
+
*/
|
|
216
|
+
changeEmWarehouseCompartment(changeEmWarehouseCompartmentRequest) {
|
|
217
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
218
|
+
if (this.logger)
|
|
219
|
+
this.logger.debug("Calling operation EmDataLakeClient#changeEmWarehouseCompartment.");
|
|
220
|
+
const operationName = "changeEmWarehouseCompartment";
|
|
221
|
+
const apiReferenceLink = "";
|
|
222
|
+
const pathParams = {
|
|
223
|
+
"{emWarehouseId}": changeEmWarehouseCompartmentRequest.emWarehouseId
|
|
224
|
+
};
|
|
225
|
+
const queryParams = {};
|
|
226
|
+
let headerParams = {
|
|
227
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
228
|
+
"if-match": changeEmWarehouseCompartmentRequest.ifMatch,
|
|
229
|
+
"opc-request-id": changeEmWarehouseCompartmentRequest.opcRequestId,
|
|
230
|
+
"opc-retry-token": changeEmWarehouseCompartmentRequest.opcRetryToken
|
|
231
|
+
};
|
|
232
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
233
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeEmWarehouseCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
234
|
+
if (this.logger)
|
|
235
|
+
retrier.logger = this.logger;
|
|
236
|
+
const request = yield oci_common_1.composeRequest({
|
|
237
|
+
baseEndpoint: this._endpoint,
|
|
238
|
+
defaultHeaders: this._defaultHeaders,
|
|
239
|
+
path: "/emWarehouses/{emWarehouseId}/actions/changeCompartment",
|
|
240
|
+
method: "POST",
|
|
241
|
+
bodyContent: common.ObjectSerializer.serialize(changeEmWarehouseCompartmentRequest.changeEmWarehouseCompartmentDetails, "ChangeEmWarehouseCompartmentDetails", model.ChangeEmWarehouseCompartmentDetails.getJsonObj),
|
|
242
|
+
pathParams: pathParams,
|
|
243
|
+
headerParams: headerParams,
|
|
244
|
+
queryParams: queryParams
|
|
245
|
+
});
|
|
246
|
+
try {
|
|
247
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
248
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
249
|
+
responseObject: {},
|
|
250
|
+
responseHeaders: [
|
|
251
|
+
{
|
|
252
|
+
value: response.headers.get("opc-work-request-id"),
|
|
253
|
+
key: "opcWorkRequestId",
|
|
254
|
+
dataType: "string"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
value: response.headers.get("opc-request-id"),
|
|
258
|
+
key: "opcRequestId",
|
|
259
|
+
dataType: "string"
|
|
260
|
+
}
|
|
261
|
+
]
|
|
262
|
+
});
|
|
263
|
+
return sdkResponse;
|
|
264
|
+
}
|
|
265
|
+
catch (err) {
|
|
266
|
+
throw err;
|
|
267
|
+
}
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* Creates a new EmWarehouse.
|
|
272
|
+
*
|
|
273
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
274
|
+
* @param CreateEmWarehouseRequest
|
|
275
|
+
* @return CreateEmWarehouseResponse
|
|
276
|
+
* @throws OciError when an error occurs
|
|
277
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.33.0/emwarehouse/CreateEmWarehouse.ts.html |here} to see how to use CreateEmWarehouse API.
|
|
278
|
+
*/
|
|
279
|
+
createEmWarehouse(createEmWarehouseRequest) {
|
|
280
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
281
|
+
if (this.logger)
|
|
282
|
+
this.logger.debug("Calling operation EmDataLakeClient#createEmWarehouse.");
|
|
283
|
+
const operationName = "createEmWarehouse";
|
|
284
|
+
const apiReferenceLink = "";
|
|
285
|
+
const pathParams = {};
|
|
286
|
+
const queryParams = {};
|
|
287
|
+
let headerParams = {
|
|
288
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
289
|
+
"opc-retry-token": createEmWarehouseRequest.opcRetryToken,
|
|
290
|
+
"opc-request-id": createEmWarehouseRequest.opcRequestId
|
|
291
|
+
};
|
|
292
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
293
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createEmWarehouseRequest.retryConfiguration, specRetryConfiguration);
|
|
294
|
+
if (this.logger)
|
|
295
|
+
retrier.logger = this.logger;
|
|
296
|
+
const request = yield oci_common_1.composeRequest({
|
|
297
|
+
baseEndpoint: this._endpoint,
|
|
298
|
+
defaultHeaders: this._defaultHeaders,
|
|
299
|
+
path: "/emWarehouses",
|
|
300
|
+
method: "POST",
|
|
301
|
+
bodyContent: common.ObjectSerializer.serialize(createEmWarehouseRequest.createEmWarehouseDetails, "CreateEmWarehouseDetails", model.CreateEmWarehouseDetails.getJsonObj),
|
|
302
|
+
pathParams: pathParams,
|
|
303
|
+
headerParams: headerParams,
|
|
304
|
+
queryParams: queryParams
|
|
305
|
+
});
|
|
306
|
+
try {
|
|
307
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
308
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
309
|
+
responseObject: {},
|
|
310
|
+
responseHeaders: [
|
|
311
|
+
{
|
|
312
|
+
value: response.headers.get("opc-work-request-id"),
|
|
313
|
+
key: "opcWorkRequestId",
|
|
314
|
+
dataType: "string"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
value: response.headers.get("opc-request-id"),
|
|
318
|
+
key: "opcRequestId",
|
|
319
|
+
dataType: "string"
|
|
320
|
+
}
|
|
321
|
+
]
|
|
322
|
+
});
|
|
323
|
+
return sdkResponse;
|
|
324
|
+
}
|
|
325
|
+
catch (err) {
|
|
326
|
+
throw err;
|
|
327
|
+
}
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* Deletes a EmWarehouse resource by identifier
|
|
332
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
333
|
+
* @param DeleteEmWarehouseRequest
|
|
334
|
+
* @return DeleteEmWarehouseResponse
|
|
335
|
+
* @throws OciError when an error occurs
|
|
336
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.33.0/emwarehouse/DeleteEmWarehouse.ts.html |here} to see how to use DeleteEmWarehouse API.
|
|
337
|
+
*/
|
|
338
|
+
deleteEmWarehouse(deleteEmWarehouseRequest) {
|
|
339
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
340
|
+
if (this.logger)
|
|
341
|
+
this.logger.debug("Calling operation EmDataLakeClient#deleteEmWarehouse.");
|
|
342
|
+
const operationName = "deleteEmWarehouse";
|
|
343
|
+
const apiReferenceLink = "";
|
|
344
|
+
const pathParams = {
|
|
345
|
+
"{emWarehouseId}": deleteEmWarehouseRequest.emWarehouseId
|
|
346
|
+
};
|
|
347
|
+
const queryParams = {};
|
|
348
|
+
let headerParams = {
|
|
349
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
350
|
+
"if-match": deleteEmWarehouseRequest.ifMatch,
|
|
351
|
+
"opc-request-id": deleteEmWarehouseRequest.opcRequestId
|
|
352
|
+
};
|
|
353
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
354
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteEmWarehouseRequest.retryConfiguration, specRetryConfiguration);
|
|
355
|
+
if (this.logger)
|
|
356
|
+
retrier.logger = this.logger;
|
|
357
|
+
const request = yield oci_common_1.composeRequest({
|
|
358
|
+
baseEndpoint: this._endpoint,
|
|
359
|
+
defaultHeaders: this._defaultHeaders,
|
|
360
|
+
path: "/emWarehouses/{emWarehouseId}",
|
|
361
|
+
method: "DELETE",
|
|
362
|
+
pathParams: pathParams,
|
|
363
|
+
headerParams: headerParams,
|
|
364
|
+
queryParams: queryParams
|
|
365
|
+
});
|
|
366
|
+
try {
|
|
367
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
368
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
369
|
+
responseObject: {},
|
|
370
|
+
responseHeaders: [
|
|
371
|
+
{
|
|
372
|
+
value: response.headers.get("opc-work-request-id"),
|
|
373
|
+
key: "opcWorkRequestId",
|
|
374
|
+
dataType: "string"
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
value: response.headers.get("opc-request-id"),
|
|
378
|
+
key: "opcRequestId",
|
|
379
|
+
dataType: "string"
|
|
380
|
+
}
|
|
381
|
+
]
|
|
382
|
+
});
|
|
383
|
+
return sdkResponse;
|
|
384
|
+
}
|
|
385
|
+
catch (err) {
|
|
386
|
+
throw err;
|
|
387
|
+
}
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* Gets a EmWarehouse by identifier
|
|
392
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
393
|
+
* @param GetEmWarehouseRequest
|
|
394
|
+
* @return GetEmWarehouseResponse
|
|
395
|
+
* @throws OciError when an error occurs
|
|
396
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.33.0/emwarehouse/GetEmWarehouse.ts.html |here} to see how to use GetEmWarehouse API.
|
|
397
|
+
*/
|
|
398
|
+
getEmWarehouse(getEmWarehouseRequest) {
|
|
399
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
400
|
+
if (this.logger)
|
|
401
|
+
this.logger.debug("Calling operation EmDataLakeClient#getEmWarehouse.");
|
|
402
|
+
const operationName = "getEmWarehouse";
|
|
403
|
+
const apiReferenceLink = "";
|
|
404
|
+
const pathParams = {
|
|
405
|
+
"{emWarehouseId}": getEmWarehouseRequest.emWarehouseId
|
|
406
|
+
};
|
|
407
|
+
const queryParams = {};
|
|
408
|
+
let headerParams = {
|
|
409
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
410
|
+
"opc-request-id": getEmWarehouseRequest.opcRequestId
|
|
411
|
+
};
|
|
412
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
413
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getEmWarehouseRequest.retryConfiguration, specRetryConfiguration);
|
|
414
|
+
if (this.logger)
|
|
415
|
+
retrier.logger = this.logger;
|
|
416
|
+
const request = yield oci_common_1.composeRequest({
|
|
417
|
+
baseEndpoint: this._endpoint,
|
|
418
|
+
defaultHeaders: this._defaultHeaders,
|
|
419
|
+
path: "/emWarehouses/{emWarehouseId}",
|
|
420
|
+
method: "GET",
|
|
421
|
+
pathParams: pathParams,
|
|
422
|
+
headerParams: headerParams,
|
|
423
|
+
queryParams: queryParams
|
|
424
|
+
});
|
|
425
|
+
try {
|
|
426
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
427
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
428
|
+
responseObject: {},
|
|
429
|
+
body: yield response.json(),
|
|
430
|
+
bodyKey: "emWarehouse",
|
|
431
|
+
bodyModel: model.EmWarehouse,
|
|
432
|
+
type: "model.EmWarehouse",
|
|
433
|
+
responseHeaders: [
|
|
434
|
+
{
|
|
435
|
+
value: response.headers.get("etag"),
|
|
436
|
+
key: "etag",
|
|
437
|
+
dataType: "string"
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
value: response.headers.get("opc-request-id"),
|
|
441
|
+
key: "opcRequestId",
|
|
442
|
+
dataType: "string"
|
|
443
|
+
}
|
|
444
|
+
]
|
|
445
|
+
});
|
|
446
|
+
return sdkResponse;
|
|
447
|
+
}
|
|
448
|
+
catch (err) {
|
|
449
|
+
throw err;
|
|
450
|
+
}
|
|
451
|
+
});
|
|
452
|
+
}
|
|
453
|
+
/**
|
|
454
|
+
* Gets a EmWarehouseResourceUsage by identifier
|
|
455
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
456
|
+
* @param GetEmWarehouseResourceUsageRequest
|
|
457
|
+
* @return GetEmWarehouseResourceUsageResponse
|
|
458
|
+
* @throws OciError when an error occurs
|
|
459
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.33.0/emwarehouse/GetEmWarehouseResourceUsage.ts.html |here} to see how to use GetEmWarehouseResourceUsage API.
|
|
460
|
+
*/
|
|
461
|
+
getEmWarehouseResourceUsage(getEmWarehouseResourceUsageRequest) {
|
|
462
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
463
|
+
if (this.logger)
|
|
464
|
+
this.logger.debug("Calling operation EmDataLakeClient#getEmWarehouseResourceUsage.");
|
|
465
|
+
const operationName = "getEmWarehouseResourceUsage";
|
|
466
|
+
const apiReferenceLink = "";
|
|
467
|
+
const pathParams = {
|
|
468
|
+
"{emWarehouseId}": getEmWarehouseResourceUsageRequest.emWarehouseId
|
|
469
|
+
};
|
|
470
|
+
const queryParams = {};
|
|
471
|
+
let headerParams = {
|
|
472
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
473
|
+
"opc-request-id": getEmWarehouseResourceUsageRequest.opcRequestId
|
|
474
|
+
};
|
|
475
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
476
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getEmWarehouseResourceUsageRequest.retryConfiguration, specRetryConfiguration);
|
|
477
|
+
if (this.logger)
|
|
478
|
+
retrier.logger = this.logger;
|
|
479
|
+
const request = yield oci_common_1.composeRequest({
|
|
480
|
+
baseEndpoint: this._endpoint,
|
|
481
|
+
defaultHeaders: this._defaultHeaders,
|
|
482
|
+
path: "/emWarehouses/{emWarehouseId}/resourceUsage",
|
|
483
|
+
method: "GET",
|
|
484
|
+
pathParams: pathParams,
|
|
485
|
+
headerParams: headerParams,
|
|
486
|
+
queryParams: queryParams
|
|
487
|
+
});
|
|
488
|
+
try {
|
|
489
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
490
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
491
|
+
responseObject: {},
|
|
492
|
+
body: yield response.json(),
|
|
493
|
+
bodyKey: "resourceUsage",
|
|
494
|
+
bodyModel: model.ResourceUsage,
|
|
495
|
+
type: "model.ResourceUsage",
|
|
496
|
+
responseHeaders: [
|
|
497
|
+
{
|
|
498
|
+
value: response.headers.get("etag"),
|
|
499
|
+
key: "etag",
|
|
500
|
+
dataType: "string"
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
value: response.headers.get("opc-request-id"),
|
|
504
|
+
key: "opcRequestId",
|
|
505
|
+
dataType: "string"
|
|
506
|
+
}
|
|
507
|
+
]
|
|
508
|
+
});
|
|
509
|
+
return sdkResponse;
|
|
510
|
+
}
|
|
511
|
+
catch (err) {
|
|
512
|
+
throw err;
|
|
513
|
+
}
|
|
514
|
+
});
|
|
515
|
+
}
|
|
516
|
+
/**
|
|
517
|
+
* Gets details of the work request with the given ID.
|
|
518
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
519
|
+
* @param GetWorkRequestRequest
|
|
520
|
+
* @return GetWorkRequestResponse
|
|
521
|
+
* @throws OciError when an error occurs
|
|
522
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.33.0/emwarehouse/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
523
|
+
*/
|
|
524
|
+
getWorkRequest(getWorkRequestRequest) {
|
|
525
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
526
|
+
if (this.logger)
|
|
527
|
+
this.logger.debug("Calling operation EmDataLakeClient#getWorkRequest.");
|
|
528
|
+
const operationName = "getWorkRequest";
|
|
529
|
+
const apiReferenceLink = "";
|
|
530
|
+
const pathParams = {
|
|
531
|
+
"{workRequestId}": getWorkRequestRequest.workRequestId
|
|
532
|
+
};
|
|
533
|
+
const queryParams = {};
|
|
534
|
+
let headerParams = {
|
|
535
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
536
|
+
"opc-request-id": getWorkRequestRequest.opcRequestId
|
|
537
|
+
};
|
|
538
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
539
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
540
|
+
if (this.logger)
|
|
541
|
+
retrier.logger = this.logger;
|
|
542
|
+
const request = yield oci_common_1.composeRequest({
|
|
543
|
+
baseEndpoint: this._endpoint,
|
|
544
|
+
defaultHeaders: this._defaultHeaders,
|
|
545
|
+
path: "/workRequests/{workRequestId}",
|
|
546
|
+
method: "GET",
|
|
547
|
+
pathParams: pathParams,
|
|
548
|
+
headerParams: headerParams,
|
|
549
|
+
queryParams: queryParams
|
|
550
|
+
});
|
|
551
|
+
try {
|
|
552
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
553
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
554
|
+
responseObject: {},
|
|
555
|
+
body: yield response.json(),
|
|
556
|
+
bodyKey: "workRequest",
|
|
557
|
+
bodyModel: model.WorkRequest,
|
|
558
|
+
type: "model.WorkRequest",
|
|
559
|
+
responseHeaders: [
|
|
560
|
+
{
|
|
561
|
+
value: response.headers.get("etag"),
|
|
562
|
+
key: "etag",
|
|
563
|
+
dataType: "string"
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
value: response.headers.get("opc-request-id"),
|
|
567
|
+
key: "opcRequestId",
|
|
568
|
+
dataType: "string"
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
value: response.headers.get("retry-after"),
|
|
572
|
+
key: "retryAfter",
|
|
573
|
+
dataType: "number"
|
|
574
|
+
}
|
|
575
|
+
]
|
|
576
|
+
});
|
|
577
|
+
return sdkResponse;
|
|
578
|
+
}
|
|
579
|
+
catch (err) {
|
|
580
|
+
throw err;
|
|
581
|
+
}
|
|
582
|
+
});
|
|
583
|
+
}
|
|
584
|
+
/**
|
|
585
|
+
* Returns a list of EmWarehouses.
|
|
586
|
+
*
|
|
587
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
588
|
+
* @param ListEmWarehousesRequest
|
|
589
|
+
* @return ListEmWarehousesResponse
|
|
590
|
+
* @throws OciError when an error occurs
|
|
591
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.33.0/emwarehouse/ListEmWarehouses.ts.html |here} to see how to use ListEmWarehouses API.
|
|
592
|
+
*/
|
|
593
|
+
listEmWarehouses(listEmWarehousesRequest) {
|
|
594
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
595
|
+
if (this.logger)
|
|
596
|
+
this.logger.debug("Calling operation EmDataLakeClient#listEmWarehouses.");
|
|
597
|
+
const operationName = "listEmWarehouses";
|
|
598
|
+
const apiReferenceLink = "";
|
|
599
|
+
const pathParams = {};
|
|
600
|
+
const queryParams = {
|
|
601
|
+
"compartmentId": listEmWarehousesRequest.compartmentId,
|
|
602
|
+
"lifecycleState": listEmWarehousesRequest.lifecycleState,
|
|
603
|
+
"displayName": listEmWarehousesRequest.displayName,
|
|
604
|
+
"operationsInsightsWarehouseId": listEmWarehousesRequest.operationsInsightsWarehouseId,
|
|
605
|
+
"id": listEmWarehousesRequest.id,
|
|
606
|
+
"limit": listEmWarehousesRequest.limit,
|
|
607
|
+
"page": listEmWarehousesRequest.page,
|
|
608
|
+
"sortOrder": listEmWarehousesRequest.sortOrder,
|
|
609
|
+
"sortBy": listEmWarehousesRequest.sortBy
|
|
610
|
+
};
|
|
611
|
+
let headerParams = {
|
|
612
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
613
|
+
"opc-request-id": listEmWarehousesRequest.opcRequestId
|
|
614
|
+
};
|
|
615
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
616
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listEmWarehousesRequest.retryConfiguration, specRetryConfiguration);
|
|
617
|
+
if (this.logger)
|
|
618
|
+
retrier.logger = this.logger;
|
|
619
|
+
const request = yield oci_common_1.composeRequest({
|
|
620
|
+
baseEndpoint: this._endpoint,
|
|
621
|
+
defaultHeaders: this._defaultHeaders,
|
|
622
|
+
path: "/emWarehouses",
|
|
623
|
+
method: "GET",
|
|
624
|
+
pathParams: pathParams,
|
|
625
|
+
headerParams: headerParams,
|
|
626
|
+
queryParams: queryParams
|
|
627
|
+
});
|
|
628
|
+
try {
|
|
629
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
630
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
631
|
+
responseObject: {},
|
|
632
|
+
body: yield response.json(),
|
|
633
|
+
bodyKey: "emWarehouseCollection",
|
|
634
|
+
bodyModel: model.EmWarehouseCollection,
|
|
635
|
+
type: "model.EmWarehouseCollection",
|
|
636
|
+
responseHeaders: [
|
|
637
|
+
{
|
|
638
|
+
value: response.headers.get("opc-request-id"),
|
|
639
|
+
key: "opcRequestId",
|
|
640
|
+
dataType: "string"
|
|
641
|
+
},
|
|
642
|
+
{
|
|
643
|
+
value: response.headers.get("opc-next-page"),
|
|
644
|
+
key: "opcNextPage",
|
|
645
|
+
dataType: "string"
|
|
646
|
+
}
|
|
647
|
+
]
|
|
648
|
+
});
|
|
649
|
+
return sdkResponse;
|
|
650
|
+
}
|
|
651
|
+
catch (err) {
|
|
652
|
+
throw err;
|
|
653
|
+
}
|
|
654
|
+
});
|
|
655
|
+
}
|
|
656
|
+
/**
|
|
657
|
+
* Gets a list of runs of an EmWarehouseResource by identifier
|
|
658
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
659
|
+
* @param ListEtlRunsRequest
|
|
660
|
+
* @return ListEtlRunsResponse
|
|
661
|
+
* @throws OciError when an error occurs
|
|
662
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.33.0/emwarehouse/ListEtlRuns.ts.html |here} to see how to use ListEtlRuns API.
|
|
663
|
+
*/
|
|
664
|
+
listEtlRuns(listEtlRunsRequest) {
|
|
665
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
666
|
+
if (this.logger)
|
|
667
|
+
this.logger.debug("Calling operation EmDataLakeClient#listEtlRuns.");
|
|
668
|
+
const operationName = "listEtlRuns";
|
|
669
|
+
const apiReferenceLink = "";
|
|
670
|
+
const pathParams = {
|
|
671
|
+
"{emWarehouseId}": listEtlRunsRequest.emWarehouseId
|
|
672
|
+
};
|
|
673
|
+
const queryParams = {
|
|
674
|
+
"compartmentId": listEtlRunsRequest.compartmentId,
|
|
675
|
+
"displayName": listEtlRunsRequest.displayName,
|
|
676
|
+
"limit": listEtlRunsRequest.limit,
|
|
677
|
+
"page": listEtlRunsRequest.page,
|
|
678
|
+
"sortOrder": listEtlRunsRequest.sortOrder,
|
|
679
|
+
"sortBy": listEtlRunsRequest.sortBy
|
|
680
|
+
};
|
|
681
|
+
let headerParams = {
|
|
682
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
683
|
+
"opc-request-id": listEtlRunsRequest.opcRequestId
|
|
684
|
+
};
|
|
685
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
686
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listEtlRunsRequest.retryConfiguration, specRetryConfiguration);
|
|
687
|
+
if (this.logger)
|
|
688
|
+
retrier.logger = this.logger;
|
|
689
|
+
const request = yield oci_common_1.composeRequest({
|
|
690
|
+
baseEndpoint: this._endpoint,
|
|
691
|
+
defaultHeaders: this._defaultHeaders,
|
|
692
|
+
path: "/emWarehouses/{emWarehouseId}/etlRuns",
|
|
693
|
+
method: "GET",
|
|
694
|
+
pathParams: pathParams,
|
|
695
|
+
headerParams: headerParams,
|
|
696
|
+
queryParams: queryParams
|
|
697
|
+
});
|
|
698
|
+
try {
|
|
699
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
700
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
701
|
+
responseObject: {},
|
|
702
|
+
body: yield response.json(),
|
|
703
|
+
bodyKey: "etlRunCollection",
|
|
704
|
+
bodyModel: model.EtlRunCollection,
|
|
705
|
+
type: "model.EtlRunCollection",
|
|
706
|
+
responseHeaders: [
|
|
707
|
+
{
|
|
708
|
+
value: response.headers.get("opc-request-id"),
|
|
709
|
+
key: "opcRequestId",
|
|
710
|
+
dataType: "string"
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
value: response.headers.get("opc-next-page"),
|
|
714
|
+
key: "opcNextPage",
|
|
715
|
+
dataType: "string"
|
|
716
|
+
}
|
|
717
|
+
]
|
|
718
|
+
});
|
|
719
|
+
return sdkResponse;
|
|
720
|
+
}
|
|
721
|
+
catch (err) {
|
|
722
|
+
throw err;
|
|
723
|
+
}
|
|
724
|
+
});
|
|
725
|
+
}
|
|
726
|
+
/**
|
|
727
|
+
* Returns a (paginated) list of errors for the work request with the given ID.
|
|
728
|
+
*
|
|
729
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
730
|
+
* @param ListWorkRequestErrorsRequest
|
|
731
|
+
* @return ListWorkRequestErrorsResponse
|
|
732
|
+
* @throws OciError when an error occurs
|
|
733
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.33.0/emwarehouse/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
734
|
+
*/
|
|
735
|
+
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
736
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
737
|
+
if (this.logger)
|
|
738
|
+
this.logger.debug("Calling operation EmDataLakeClient#listWorkRequestErrors.");
|
|
739
|
+
const operationName = "listWorkRequestErrors";
|
|
740
|
+
const apiReferenceLink = "";
|
|
741
|
+
const pathParams = {
|
|
742
|
+
"{workRequestId}": listWorkRequestErrorsRequest.workRequestId
|
|
743
|
+
};
|
|
744
|
+
const queryParams = {
|
|
745
|
+
"page": listWorkRequestErrorsRequest.page,
|
|
746
|
+
"limit": listWorkRequestErrorsRequest.limit,
|
|
747
|
+
"sortBy": listWorkRequestErrorsRequest.sortBy,
|
|
748
|
+
"sortOrder": listWorkRequestErrorsRequest.sortOrder
|
|
749
|
+
};
|
|
750
|
+
let headerParams = {
|
|
751
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
752
|
+
"opc-request-id": listWorkRequestErrorsRequest.opcRequestId
|
|
753
|
+
};
|
|
754
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
755
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
|
|
756
|
+
if (this.logger)
|
|
757
|
+
retrier.logger = this.logger;
|
|
758
|
+
const request = yield oci_common_1.composeRequest({
|
|
759
|
+
baseEndpoint: this._endpoint,
|
|
760
|
+
defaultHeaders: this._defaultHeaders,
|
|
761
|
+
path: "/workRequests/{workRequestId}/errors",
|
|
762
|
+
method: "GET",
|
|
763
|
+
pathParams: pathParams,
|
|
764
|
+
headerParams: headerParams,
|
|
765
|
+
queryParams: queryParams
|
|
766
|
+
});
|
|
767
|
+
try {
|
|
768
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
769
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
770
|
+
responseObject: {},
|
|
771
|
+
body: yield response.json(),
|
|
772
|
+
bodyKey: "workRequestErrorCollection",
|
|
773
|
+
bodyModel: model.WorkRequestErrorCollection,
|
|
774
|
+
type: "model.WorkRequestErrorCollection",
|
|
775
|
+
responseHeaders: [
|
|
776
|
+
{
|
|
777
|
+
value: response.headers.get("opc-next-page"),
|
|
778
|
+
key: "opcNextPage",
|
|
779
|
+
dataType: "string"
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
value: response.headers.get("opc-request-id"),
|
|
783
|
+
key: "opcRequestId",
|
|
784
|
+
dataType: "string"
|
|
785
|
+
}
|
|
786
|
+
]
|
|
787
|
+
});
|
|
788
|
+
return sdkResponse;
|
|
789
|
+
}
|
|
790
|
+
catch (err) {
|
|
791
|
+
throw err;
|
|
792
|
+
}
|
|
793
|
+
});
|
|
794
|
+
}
|
|
795
|
+
/**
|
|
796
|
+
* Returns a (paginated) list of logs for the work request with the given ID.
|
|
797
|
+
*
|
|
798
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
799
|
+
* @param ListWorkRequestLogsRequest
|
|
800
|
+
* @return ListWorkRequestLogsResponse
|
|
801
|
+
* @throws OciError when an error occurs
|
|
802
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.33.0/emwarehouse/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
803
|
+
*/
|
|
804
|
+
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
805
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
806
|
+
if (this.logger)
|
|
807
|
+
this.logger.debug("Calling operation EmDataLakeClient#listWorkRequestLogs.");
|
|
808
|
+
const operationName = "listWorkRequestLogs";
|
|
809
|
+
const apiReferenceLink = "";
|
|
810
|
+
const pathParams = {
|
|
811
|
+
"{workRequestId}": listWorkRequestLogsRequest.workRequestId
|
|
812
|
+
};
|
|
813
|
+
const queryParams = {
|
|
814
|
+
"page": listWorkRequestLogsRequest.page,
|
|
815
|
+
"limit": listWorkRequestLogsRequest.limit,
|
|
816
|
+
"sortBy": listWorkRequestLogsRequest.sortBy,
|
|
817
|
+
"sortOrder": listWorkRequestLogsRequest.sortOrder
|
|
818
|
+
};
|
|
819
|
+
let headerParams = {
|
|
820
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
821
|
+
"opc-request-id": listWorkRequestLogsRequest.opcRequestId
|
|
822
|
+
};
|
|
823
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
824
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
825
|
+
if (this.logger)
|
|
826
|
+
retrier.logger = this.logger;
|
|
827
|
+
const request = yield oci_common_1.composeRequest({
|
|
828
|
+
baseEndpoint: this._endpoint,
|
|
829
|
+
defaultHeaders: this._defaultHeaders,
|
|
830
|
+
path: "/workRequests/{workRequestId}/logs",
|
|
831
|
+
method: "GET",
|
|
832
|
+
pathParams: pathParams,
|
|
833
|
+
headerParams: headerParams,
|
|
834
|
+
queryParams: queryParams
|
|
835
|
+
});
|
|
836
|
+
try {
|
|
837
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
838
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
839
|
+
responseObject: {},
|
|
840
|
+
body: yield response.json(),
|
|
841
|
+
bodyKey: "workRequestLogEntryCollection",
|
|
842
|
+
bodyModel: model.WorkRequestLogEntryCollection,
|
|
843
|
+
type: "model.WorkRequestLogEntryCollection",
|
|
844
|
+
responseHeaders: [
|
|
845
|
+
{
|
|
846
|
+
value: response.headers.get("opc-next-page"),
|
|
847
|
+
key: "opcNextPage",
|
|
848
|
+
dataType: "string"
|
|
849
|
+
},
|
|
850
|
+
{
|
|
851
|
+
value: response.headers.get("opc-request-id"),
|
|
852
|
+
key: "opcRequestId",
|
|
853
|
+
dataType: "string"
|
|
854
|
+
}
|
|
855
|
+
]
|
|
856
|
+
});
|
|
857
|
+
return sdkResponse;
|
|
858
|
+
}
|
|
859
|
+
catch (err) {
|
|
860
|
+
throw err;
|
|
861
|
+
}
|
|
862
|
+
});
|
|
863
|
+
}
|
|
864
|
+
/**
|
|
865
|
+
* Lists the work requests in a compartment.
|
|
866
|
+
*
|
|
867
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
868
|
+
* @param ListWorkRequestsRequest
|
|
869
|
+
* @return ListWorkRequestsResponse
|
|
870
|
+
* @throws OciError when an error occurs
|
|
871
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.33.0/emwarehouse/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
872
|
+
*/
|
|
873
|
+
listWorkRequests(listWorkRequestsRequest) {
|
|
874
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
875
|
+
if (this.logger)
|
|
876
|
+
this.logger.debug("Calling operation EmDataLakeClient#listWorkRequests.");
|
|
877
|
+
const operationName = "listWorkRequests";
|
|
878
|
+
const apiReferenceLink = "";
|
|
879
|
+
const pathParams = {};
|
|
880
|
+
const queryParams = {
|
|
881
|
+
"compartmentId": listWorkRequestsRequest.compartmentId,
|
|
882
|
+
"workRequestId": listWorkRequestsRequest.workRequestId,
|
|
883
|
+
"status": listWorkRequestsRequest.status,
|
|
884
|
+
"resourceId": listWorkRequestsRequest.resourceId,
|
|
885
|
+
"page": listWorkRequestsRequest.page,
|
|
886
|
+
"limit": listWorkRequestsRequest.limit,
|
|
887
|
+
"sortOrder": listWorkRequestsRequest.sortOrder,
|
|
888
|
+
"sortBy": listWorkRequestsRequest.sortBy
|
|
889
|
+
};
|
|
890
|
+
let headerParams = {
|
|
891
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
892
|
+
"opc-request-id": listWorkRequestsRequest.opcRequestId
|
|
893
|
+
};
|
|
894
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
895
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
896
|
+
if (this.logger)
|
|
897
|
+
retrier.logger = this.logger;
|
|
898
|
+
const request = yield oci_common_1.composeRequest({
|
|
899
|
+
baseEndpoint: this._endpoint,
|
|
900
|
+
defaultHeaders: this._defaultHeaders,
|
|
901
|
+
path: "/workRequests",
|
|
902
|
+
method: "GET",
|
|
903
|
+
pathParams: pathParams,
|
|
904
|
+
headerParams: headerParams,
|
|
905
|
+
queryParams: queryParams
|
|
906
|
+
});
|
|
907
|
+
try {
|
|
908
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
909
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
910
|
+
responseObject: {},
|
|
911
|
+
body: yield response.json(),
|
|
912
|
+
bodyKey: "workRequestSummaryCollection",
|
|
913
|
+
bodyModel: model.WorkRequestSummaryCollection,
|
|
914
|
+
type: "model.WorkRequestSummaryCollection",
|
|
915
|
+
responseHeaders: [
|
|
916
|
+
{
|
|
917
|
+
value: response.headers.get("opc-request-id"),
|
|
918
|
+
key: "opcRequestId",
|
|
919
|
+
dataType: "string"
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
value: response.headers.get("opc-next-page"),
|
|
923
|
+
key: "opcNextPage",
|
|
924
|
+
dataType: "string"
|
|
925
|
+
}
|
|
926
|
+
]
|
|
927
|
+
});
|
|
928
|
+
return sdkResponse;
|
|
929
|
+
}
|
|
930
|
+
catch (err) {
|
|
931
|
+
throw err;
|
|
932
|
+
}
|
|
933
|
+
});
|
|
934
|
+
}
|
|
935
|
+
/**
|
|
936
|
+
* Updates the EmWarehouse
|
|
937
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
938
|
+
* @param UpdateEmWarehouseRequest
|
|
939
|
+
* @return UpdateEmWarehouseResponse
|
|
940
|
+
* @throws OciError when an error occurs
|
|
941
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.33.0/emwarehouse/UpdateEmWarehouse.ts.html |here} to see how to use UpdateEmWarehouse API.
|
|
942
|
+
*/
|
|
943
|
+
updateEmWarehouse(updateEmWarehouseRequest) {
|
|
944
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
945
|
+
if (this.logger)
|
|
946
|
+
this.logger.debug("Calling operation EmDataLakeClient#updateEmWarehouse.");
|
|
947
|
+
const operationName = "updateEmWarehouse";
|
|
948
|
+
const apiReferenceLink = "";
|
|
949
|
+
const pathParams = {
|
|
950
|
+
"{emWarehouseId}": updateEmWarehouseRequest.emWarehouseId
|
|
951
|
+
};
|
|
952
|
+
const queryParams = {};
|
|
953
|
+
let headerParams = {
|
|
954
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
955
|
+
"if-match": updateEmWarehouseRequest.ifMatch,
|
|
956
|
+
"opc-request-id": updateEmWarehouseRequest.opcRequestId
|
|
957
|
+
};
|
|
958
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
959
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateEmWarehouseRequest.retryConfiguration, specRetryConfiguration);
|
|
960
|
+
if (this.logger)
|
|
961
|
+
retrier.logger = this.logger;
|
|
962
|
+
const request = yield oci_common_1.composeRequest({
|
|
963
|
+
baseEndpoint: this._endpoint,
|
|
964
|
+
defaultHeaders: this._defaultHeaders,
|
|
965
|
+
path: "/emWarehouses/{emWarehouseId}",
|
|
966
|
+
method: "PUT",
|
|
967
|
+
bodyContent: common.ObjectSerializer.serialize(updateEmWarehouseRequest.updateEmWarehouseDetails, "UpdateEmWarehouseDetails", model.UpdateEmWarehouseDetails.getJsonObj),
|
|
968
|
+
pathParams: pathParams,
|
|
969
|
+
headerParams: headerParams,
|
|
970
|
+
queryParams: queryParams
|
|
971
|
+
});
|
|
972
|
+
try {
|
|
973
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
974
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
975
|
+
responseObject: {},
|
|
976
|
+
responseHeaders: [
|
|
977
|
+
{
|
|
978
|
+
value: response.headers.get("opc-work-request-id"),
|
|
979
|
+
key: "opcWorkRequestId",
|
|
980
|
+
dataType: "string"
|
|
981
|
+
},
|
|
982
|
+
{
|
|
983
|
+
value: response.headers.get("opc-request-id"),
|
|
984
|
+
key: "opcRequestId",
|
|
985
|
+
dataType: "string"
|
|
986
|
+
}
|
|
987
|
+
]
|
|
988
|
+
});
|
|
989
|
+
return sdkResponse;
|
|
990
|
+
}
|
|
991
|
+
catch (err) {
|
|
992
|
+
throw err;
|
|
993
|
+
}
|
|
994
|
+
});
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
exports.EmDataLakeClient = EmDataLakeClient;
|
|
998
|
+
EmDataLakeClient.serviceEndpointTemplate = "https://operationsinsights.{region}.oci.{secondLevelDomain}";
|
|
999
|
+
EmDataLakeClient.endpointServiceName = "";
|
|
1000
|
+
//# sourceMappingURL=client.js.map
|