oci-aidataplatform 2.117.1
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/aidataplatform-waiter.d.ts +36 -0
- package/lib/aidataplatform-waiter.js +76 -0
- package/lib/aidataplatform-waiter.js.map +1 -0
- package/lib/client.d.ts +204 -0
- package/lib/client.js +947 -0
- package/lib/client.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/ai-data-platform-collection.d.ts +26 -0
- package/lib/model/ai-data-platform-collection.js +61 -0
- package/lib/model/ai-data-platform-collection.js.map +1 -0
- package/lib/model/ai-data-platform-summary.d.ts +102 -0
- package/lib/model/ai-data-platform-summary.js +29 -0
- package/lib/model/ai-data-platform-summary.js.map +1 -0
- package/lib/model/ai-data-platform.d.ts +124 -0
- package/lib/model/ai-data-platform.js +43 -0
- package/lib/model/ai-data-platform.js.map +1 -0
- package/lib/model/change-ai-data-platform-compartment-details.d.ts +26 -0
- package/lib/model/change-ai-data-platform-compartment-details.js +29 -0
- package/lib/model/change-ai-data-platform-compartment-details.js.map +1 -0
- package/lib/model/create-ai-data-platform-details.d.ts +71 -0
- package/lib/model/create-ai-data-platform-details.js +29 -0
- package/lib/model/create-ai-data-platform-details.js.map +1 -0
- package/lib/model/index.d.ts +50 -0
- package/lib/model/index.js +73 -0
- package/lib/model/index.js.map +1 -0
- package/lib/model/operation-status.d.ts +34 -0
- package/lib/model/operation-status.js +45 -0
- package/lib/model/operation-status.js.map +1 -0
- package/lib/model/operation-type.d.ts +34 -0
- package/lib/model/operation-type.js +45 -0
- package/lib/model/operation-type.js.map +1 -0
- package/lib/model/sort-order.d.ts +30 -0
- package/lib/model/sort-order.js +41 -0
- package/lib/model/sort-order.js.map +1 -0
- package/lib/model/update-ai-data-platform-details.d.ts +62 -0
- package/lib/model/update-ai-data-platform-details.js +29 -0
- package/lib/model/update-ai-data-platform-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 +37 -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 +31 -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 +73 -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 +76 -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 +38 -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-ai-data-platform-compartment-request.d.ts +43 -0
- package/lib/request/change-ai-data-platform-compartment-request.js +15 -0
- package/lib/request/change-ai-data-platform-compartment-request.js.map +1 -0
- package/lib/request/create-ai-data-platform-request.d.ts +40 -0
- package/lib/request/create-ai-data-platform-request.js +15 -0
- package/lib/request/create-ai-data-platform-request.js.map +1 -0
- package/lib/request/delete-ai-data-platform-request.d.ts +42 -0
- package/lib/request/delete-ai-data-platform-request.js +15 -0
- package/lib/request/delete-ai-data-platform-request.js.map +1 -0
- package/lib/request/get-ai-data-platform-request.d.ts +30 -0
- package/lib/request/get-ai-data-platform-request.js +15 -0
- package/lib/request/get-ai-data-platform-request.js.map +1 -0
- package/lib/request/get-work-request-request.d.ts +30 -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 +34 -0
- package/lib/request/index.js +43 -0
- package/lib/request/index.js.map +1 -0
- package/lib/request/list-ai-data-platforms-request.d.ts +85 -0
- package/lib/request/list-ai-data-platforms-request.js +24 -0
- package/lib/request/list-ai-data-platforms-request.js.map +1 -0
- package/lib/request/list-work-request-errors-request.d.ts +59 -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 +59 -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 +71 -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-ai-data-platform-request.d.ts +43 -0
- package/lib/request/update-ai-data-platform-request.js +15 -0
- package/lib/request/update-ai-data-platform-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-ai-data-platform-compartment-response.d.ts +26 -0
- package/lib/response/change-ai-data-platform-compartment-response.js +15 -0
- package/lib/response/change-ai-data-platform-compartment-response.js.map +1 -0
- package/lib/response/create-ai-data-platform-response.d.ts +44 -0
- package/lib/response/create-ai-data-platform-response.js +15 -0
- package/lib/response/create-ai-data-platform-response.js.map +1 -0
- package/lib/response/delete-ai-data-platform-response.d.ts +26 -0
- package/lib/response/delete-ai-data-platform-response.js +15 -0
- package/lib/response/delete-ai-data-platform-response.js.map +1 -0
- package/lib/response/get-ai-data-platform-response.d.ts +30 -0
- package/lib/response/get-ai-data-platform-response.js +15 -0
- package/lib/response/get-ai-data-platform-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 +34 -0
- package/lib/response/index.js +15 -0
- package/lib/response/index.js.map +1 -0
- package/lib/response/list-ai-data-platforms-response.d.ts +31 -0
- package/lib/response/list-ai-data-platforms-response.js +15 -0
- package/lib/response/list-ai-data-platforms-response.js.map +1 -0
- package/lib/response/list-work-request-errors-response.d.ts +31 -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 +31 -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 +31 -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-ai-data-platform-response.d.ts +26 -0
- package/lib/response/update-ai-data-platform-response.js +15 -0
- package/lib/response/update-ai-data-platform-response.js.map +1 -0
- package/package.json +29 -0
package/lib/client.js
ADDED
|
@@ -0,0 +1,947 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* AiDataPlatform Control Plane API
|
|
4
|
+
* Use the AiDataPlatform Control Plane API to manage Data Lakes.
|
|
5
|
+
* OpenAPI spec version: 20240831
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2025, 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.AiDataPlatformClient = exports.AiDataPlatformApiKeys = void 0;
|
|
44
|
+
const common = require("oci-common");
|
|
45
|
+
const model = __importStar(require("./model"));
|
|
46
|
+
const aidataplatform_waiter_1 = require("./aidataplatform-waiter");
|
|
47
|
+
const oci_common_1 = require("oci-common");
|
|
48
|
+
const Breaker = require("opossum");
|
|
49
|
+
// ===============================================
|
|
50
|
+
// This file is autogenerated - Please do not edit
|
|
51
|
+
// ===============================================
|
|
52
|
+
var AiDataPlatformApiKeys;
|
|
53
|
+
(function (AiDataPlatformApiKeys) {
|
|
54
|
+
})(AiDataPlatformApiKeys = exports.AiDataPlatformApiKeys || (exports.AiDataPlatformApiKeys = {}));
|
|
55
|
+
/**
|
|
56
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
57
|
+
*/
|
|
58
|
+
class AiDataPlatformClient {
|
|
59
|
+
constructor(params, clientConfiguration) {
|
|
60
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
61
|
+
this["_endpoint"] = "";
|
|
62
|
+
this["_defaultHeaders"] = {};
|
|
63
|
+
this._circuitBreaker = null;
|
|
64
|
+
this._httpOptions = undefined;
|
|
65
|
+
this._bodyDuplexMode = undefined;
|
|
66
|
+
this.targetService = "AiDataPlatform";
|
|
67
|
+
this._regionId = "";
|
|
68
|
+
this._lastSetRegionOrRegionId = "";
|
|
69
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
70
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
71
|
+
: null;
|
|
72
|
+
this._authProvider = params.authenticationDetailsProvider;
|
|
73
|
+
if (clientConfiguration) {
|
|
74
|
+
this._clientConfiguration = clientConfiguration;
|
|
75
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
76
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
77
|
+
: null;
|
|
78
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
79
|
+
? clientConfiguration.httpOptions
|
|
80
|
+
: undefined;
|
|
81
|
+
this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
|
|
82
|
+
? clientConfiguration.bodyDuplexMode
|
|
83
|
+
: undefined;
|
|
84
|
+
}
|
|
85
|
+
if (!oci_common_1.developerToolConfiguration.isServiceEnabled("aidataplatform")) {
|
|
86
|
+
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 : ";
|
|
87
|
+
throw errmsg.concat("aidataplatform");
|
|
88
|
+
}
|
|
89
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
90
|
+
const specCircuitBreakerEnabled = true;
|
|
91
|
+
if (!this._circuitBreaker &&
|
|
92
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
93
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
94
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
95
|
+
}
|
|
96
|
+
this._httpClient =
|
|
97
|
+
params.httpClient ||
|
|
98
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
|
|
99
|
+
if (params.authenticationDetailsProvider &&
|
|
100
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
101
|
+
const provider = params.authenticationDetailsProvider;
|
|
102
|
+
if (provider.getRegion()) {
|
|
103
|
+
this.region = provider.getRegion();
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
109
|
+
*/
|
|
110
|
+
get endpoint() {
|
|
111
|
+
return this._endpoint;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
115
|
+
* @param endpoint The endpoint of the service.
|
|
116
|
+
*/
|
|
117
|
+
set endpoint(endpoint) {
|
|
118
|
+
this._endpoint = endpoint;
|
|
119
|
+
this._endpoint = this._endpoint + "/20240831";
|
|
120
|
+
if (this.logger)
|
|
121
|
+
this.logger.info(`AiDataPlatformClient endpoint set to ${this._endpoint}`);
|
|
122
|
+
}
|
|
123
|
+
get logger() {
|
|
124
|
+
return common.LOG.logger;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
128
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
129
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
130
|
+
*/
|
|
131
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
132
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
133
|
+
if (this.logger)
|
|
134
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
135
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
136
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(AiDataPlatformClient.serviceEndpointTemplate, this._region, AiDataPlatformClient.endpointServiceName);
|
|
137
|
+
}
|
|
138
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
139
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(AiDataPlatformClient.serviceEndpointTemplate, this._regionId, AiDataPlatformClient.endpointServiceName);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
144
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
145
|
+
* @param region The region of the service.
|
|
146
|
+
*/
|
|
147
|
+
set region(region) {
|
|
148
|
+
this._region = region;
|
|
149
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(AiDataPlatformClient.serviceEndpointTemplate, region, AiDataPlatformClient.endpointServiceName);
|
|
150
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
154
|
+
*
|
|
155
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
156
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
157
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
158
|
+
* @param regionId The public region ID.
|
|
159
|
+
*/
|
|
160
|
+
set regionId(regionId) {
|
|
161
|
+
this._regionId = regionId;
|
|
162
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(AiDataPlatformClient.serviceEndpointTemplate, regionId, AiDataPlatformClient.endpointServiceName);
|
|
163
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Creates a new AiDataPlatformWaiter for resources for this service.
|
|
167
|
+
*
|
|
168
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
169
|
+
* @return The service waiters.
|
|
170
|
+
*/
|
|
171
|
+
createWaiters(config) {
|
|
172
|
+
this._waiters = new aidataplatform_waiter_1.AiDataPlatformWaiter(this, config);
|
|
173
|
+
return this._waiters;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Gets the waiters available for resources for this service.
|
|
177
|
+
*
|
|
178
|
+
* @return The service waiters.
|
|
179
|
+
*/
|
|
180
|
+
getWaiters() {
|
|
181
|
+
if (this._waiters) {
|
|
182
|
+
return this._waiters;
|
|
183
|
+
}
|
|
184
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
188
|
+
*/
|
|
189
|
+
shutdownCircuitBreaker() {
|
|
190
|
+
if (this._circuitBreaker) {
|
|
191
|
+
this._circuitBreaker.shutdown();
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Close the provider if possible which in turn shuts down any associated circuit breaker
|
|
196
|
+
*/
|
|
197
|
+
closeProvider() {
|
|
198
|
+
if (this._authProvider) {
|
|
199
|
+
if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
|
|
200
|
+
(this._authProvider).closeProvider();
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Close the client once it is no longer needed
|
|
205
|
+
*/
|
|
206
|
+
close() {
|
|
207
|
+
this.shutdownCircuitBreaker();
|
|
208
|
+
this.closeProvider();
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Cancels a work request.
|
|
212
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
213
|
+
* @param CancelWorkRequestRequest
|
|
214
|
+
* @return CancelWorkRequestResponse
|
|
215
|
+
* @throws OciError when an error occurs
|
|
216
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidataplatform/CancelWorkRequest.ts.html |here} to see how to use CancelWorkRequest API.
|
|
217
|
+
*/
|
|
218
|
+
cancelWorkRequest(cancelWorkRequestRequest) {
|
|
219
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
220
|
+
if (this.logger)
|
|
221
|
+
this.logger.debug("Calling operation AiDataPlatformClient#cancelWorkRequest.");
|
|
222
|
+
const operationName = "cancelWorkRequest";
|
|
223
|
+
const apiReferenceLink = "";
|
|
224
|
+
const pathParams = {
|
|
225
|
+
"{workRequestId}": cancelWorkRequestRequest.workRequestId
|
|
226
|
+
};
|
|
227
|
+
const queryParams = {};
|
|
228
|
+
let headerParams = {
|
|
229
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
230
|
+
"if-match": cancelWorkRequestRequest.ifMatch,
|
|
231
|
+
"opc-request-id": cancelWorkRequestRequest.opcRequestId
|
|
232
|
+
};
|
|
233
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
234
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
235
|
+
if (this.logger)
|
|
236
|
+
retrier.logger = this.logger;
|
|
237
|
+
const request = yield oci_common_1.composeRequest({
|
|
238
|
+
baseEndpoint: this._endpoint,
|
|
239
|
+
defaultHeaders: this._defaultHeaders,
|
|
240
|
+
path: "/workRequests/{workRequestId}",
|
|
241
|
+
method: "DELETE",
|
|
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-request-id"),
|
|
253
|
+
key: "opcRequestId",
|
|
254
|
+
dataType: "string"
|
|
255
|
+
}
|
|
256
|
+
]
|
|
257
|
+
});
|
|
258
|
+
return sdkResponse;
|
|
259
|
+
}
|
|
260
|
+
catch (err) {
|
|
261
|
+
throw err;
|
|
262
|
+
}
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* Moves a AiDataPlatform into a different compartment within the same tenancy. For information about moving resources between
|
|
267
|
+
* compartments, see [Moving Resources to a Different Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
|
|
268
|
+
*
|
|
269
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
270
|
+
* @param ChangeAiDataPlatformCompartmentRequest
|
|
271
|
+
* @return ChangeAiDataPlatformCompartmentResponse
|
|
272
|
+
* @throws OciError when an error occurs
|
|
273
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidataplatform/ChangeAiDataPlatformCompartment.ts.html |here} to see how to use ChangeAiDataPlatformCompartment API.
|
|
274
|
+
*/
|
|
275
|
+
changeAiDataPlatformCompartment(changeAiDataPlatformCompartmentRequest) {
|
|
276
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
277
|
+
if (this.logger)
|
|
278
|
+
this.logger.debug("Calling operation AiDataPlatformClient#changeAiDataPlatformCompartment.");
|
|
279
|
+
const operationName = "changeAiDataPlatformCompartment";
|
|
280
|
+
const apiReferenceLink = "";
|
|
281
|
+
const pathParams = {
|
|
282
|
+
"{aiDataPlatformId}": changeAiDataPlatformCompartmentRequest.aiDataPlatformId
|
|
283
|
+
};
|
|
284
|
+
const queryParams = {};
|
|
285
|
+
let headerParams = {
|
|
286
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
287
|
+
"if-match": changeAiDataPlatformCompartmentRequest.ifMatch,
|
|
288
|
+
"opc-request-id": changeAiDataPlatformCompartmentRequest.opcRequestId
|
|
289
|
+
};
|
|
290
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
291
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeAiDataPlatformCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
292
|
+
if (this.logger)
|
|
293
|
+
retrier.logger = this.logger;
|
|
294
|
+
const request = yield oci_common_1.composeRequest({
|
|
295
|
+
baseEndpoint: this._endpoint,
|
|
296
|
+
defaultHeaders: this._defaultHeaders,
|
|
297
|
+
path: "/aiDataPlatforms/{aiDataPlatformId}/actions/changeCompartment",
|
|
298
|
+
method: "POST",
|
|
299
|
+
bodyContent: common.ObjectSerializer.serialize(changeAiDataPlatformCompartmentRequest.changeAiDataPlatformCompartmentDetails, "ChangeAiDataPlatformCompartmentDetails", model.ChangeAiDataPlatformCompartmentDetails.getJsonObj),
|
|
300
|
+
pathParams: pathParams,
|
|
301
|
+
headerParams: headerParams,
|
|
302
|
+
queryParams: queryParams
|
|
303
|
+
});
|
|
304
|
+
try {
|
|
305
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
306
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
307
|
+
responseObject: {},
|
|
308
|
+
responseHeaders: [
|
|
309
|
+
{
|
|
310
|
+
value: response.headers.get("opc-work-request-id"),
|
|
311
|
+
key: "opcWorkRequestId",
|
|
312
|
+
dataType: "string"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
value: response.headers.get("opc-request-id"),
|
|
316
|
+
key: "opcRequestId",
|
|
317
|
+
dataType: "string"
|
|
318
|
+
}
|
|
319
|
+
]
|
|
320
|
+
});
|
|
321
|
+
return sdkResponse;
|
|
322
|
+
}
|
|
323
|
+
catch (err) {
|
|
324
|
+
throw err;
|
|
325
|
+
}
|
|
326
|
+
});
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* Creates a AiDataPlatform.
|
|
330
|
+
*
|
|
331
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
332
|
+
* @param CreateAiDataPlatformRequest
|
|
333
|
+
* @return CreateAiDataPlatformResponse
|
|
334
|
+
* @throws OciError when an error occurs
|
|
335
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidataplatform/CreateAiDataPlatform.ts.html |here} to see how to use CreateAiDataPlatform API.
|
|
336
|
+
*/
|
|
337
|
+
createAiDataPlatform(createAiDataPlatformRequest) {
|
|
338
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
339
|
+
if (this.logger)
|
|
340
|
+
this.logger.debug("Calling operation AiDataPlatformClient#createAiDataPlatform.");
|
|
341
|
+
const operationName = "createAiDataPlatform";
|
|
342
|
+
const apiReferenceLink = "";
|
|
343
|
+
const pathParams = {};
|
|
344
|
+
const queryParams = {};
|
|
345
|
+
let headerParams = {
|
|
346
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
347
|
+
"opc-retry-token": createAiDataPlatformRequest.opcRetryToken,
|
|
348
|
+
"opc-request-id": createAiDataPlatformRequest.opcRequestId
|
|
349
|
+
};
|
|
350
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
351
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createAiDataPlatformRequest.retryConfiguration, specRetryConfiguration);
|
|
352
|
+
if (this.logger)
|
|
353
|
+
retrier.logger = this.logger;
|
|
354
|
+
const request = yield oci_common_1.composeRequest({
|
|
355
|
+
baseEndpoint: this._endpoint,
|
|
356
|
+
defaultHeaders: this._defaultHeaders,
|
|
357
|
+
path: "/aiDataPlatforms",
|
|
358
|
+
method: "POST",
|
|
359
|
+
bodyContent: common.ObjectSerializer.serialize(createAiDataPlatformRequest.createAiDataPlatformDetails, "CreateAiDataPlatformDetails", model.CreateAiDataPlatformDetails.getJsonObj),
|
|
360
|
+
pathParams: pathParams,
|
|
361
|
+
headerParams: headerParams,
|
|
362
|
+
queryParams: queryParams
|
|
363
|
+
});
|
|
364
|
+
try {
|
|
365
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
366
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
367
|
+
responseObject: {},
|
|
368
|
+
body: yield response.json(),
|
|
369
|
+
bodyKey: "aiDataPlatform",
|
|
370
|
+
bodyModel: model.AiDataPlatform,
|
|
371
|
+
type: "model.AiDataPlatform",
|
|
372
|
+
responseHeaders: [
|
|
373
|
+
{
|
|
374
|
+
value: response.headers.get("location"),
|
|
375
|
+
key: "location",
|
|
376
|
+
dataType: "string"
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
value: response.headers.get("content-location"),
|
|
380
|
+
key: "contentLocation",
|
|
381
|
+
dataType: "string"
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
value: response.headers.get("etag"),
|
|
385
|
+
key: "etag",
|
|
386
|
+
dataType: "string"
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
value: response.headers.get("opc-work-request-id"),
|
|
390
|
+
key: "opcWorkRequestId",
|
|
391
|
+
dataType: "string"
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
value: response.headers.get("opc-request-id"),
|
|
395
|
+
key: "opcRequestId",
|
|
396
|
+
dataType: "string"
|
|
397
|
+
}
|
|
398
|
+
]
|
|
399
|
+
});
|
|
400
|
+
return sdkResponse;
|
|
401
|
+
}
|
|
402
|
+
catch (err) {
|
|
403
|
+
throw err;
|
|
404
|
+
}
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* Deletes a AiDataPlatform.
|
|
409
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
410
|
+
* @param DeleteAiDataPlatformRequest
|
|
411
|
+
* @return DeleteAiDataPlatformResponse
|
|
412
|
+
* @throws OciError when an error occurs
|
|
413
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidataplatform/DeleteAiDataPlatform.ts.html |here} to see how to use DeleteAiDataPlatform API.
|
|
414
|
+
*/
|
|
415
|
+
deleteAiDataPlatform(deleteAiDataPlatformRequest) {
|
|
416
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
417
|
+
if (this.logger)
|
|
418
|
+
this.logger.debug("Calling operation AiDataPlatformClient#deleteAiDataPlatform.");
|
|
419
|
+
const operationName = "deleteAiDataPlatform";
|
|
420
|
+
const apiReferenceLink = "";
|
|
421
|
+
const pathParams = {
|
|
422
|
+
"{aiDataPlatformId}": deleteAiDataPlatformRequest.aiDataPlatformId
|
|
423
|
+
};
|
|
424
|
+
const queryParams = {
|
|
425
|
+
"isForceDelete": deleteAiDataPlatformRequest.isForceDelete
|
|
426
|
+
};
|
|
427
|
+
let headerParams = {
|
|
428
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
429
|
+
"if-match": deleteAiDataPlatformRequest.ifMatch,
|
|
430
|
+
"opc-request-id": deleteAiDataPlatformRequest.opcRequestId
|
|
431
|
+
};
|
|
432
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
433
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteAiDataPlatformRequest.retryConfiguration, specRetryConfiguration);
|
|
434
|
+
if (this.logger)
|
|
435
|
+
retrier.logger = this.logger;
|
|
436
|
+
const request = yield oci_common_1.composeRequest({
|
|
437
|
+
baseEndpoint: this._endpoint,
|
|
438
|
+
defaultHeaders: this._defaultHeaders,
|
|
439
|
+
path: "/aiDataPlatforms/{aiDataPlatformId}",
|
|
440
|
+
method: "DELETE",
|
|
441
|
+
pathParams: pathParams,
|
|
442
|
+
headerParams: headerParams,
|
|
443
|
+
queryParams: queryParams
|
|
444
|
+
});
|
|
445
|
+
try {
|
|
446
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
447
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
448
|
+
responseObject: {},
|
|
449
|
+
responseHeaders: [
|
|
450
|
+
{
|
|
451
|
+
value: response.headers.get("opc-work-request-id"),
|
|
452
|
+
key: "opcWorkRequestId",
|
|
453
|
+
dataType: "string"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
value: response.headers.get("opc-request-id"),
|
|
457
|
+
key: "opcRequestId",
|
|
458
|
+
dataType: "string"
|
|
459
|
+
}
|
|
460
|
+
]
|
|
461
|
+
});
|
|
462
|
+
return sdkResponse;
|
|
463
|
+
}
|
|
464
|
+
catch (err) {
|
|
465
|
+
throw err;
|
|
466
|
+
}
|
|
467
|
+
});
|
|
468
|
+
}
|
|
469
|
+
/**
|
|
470
|
+
* Gets information about a AiDataPlatform.
|
|
471
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
472
|
+
* @param GetAiDataPlatformRequest
|
|
473
|
+
* @return GetAiDataPlatformResponse
|
|
474
|
+
* @throws OciError when an error occurs
|
|
475
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidataplatform/GetAiDataPlatform.ts.html |here} to see how to use GetAiDataPlatform API.
|
|
476
|
+
*/
|
|
477
|
+
getAiDataPlatform(getAiDataPlatformRequest) {
|
|
478
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
479
|
+
if (this.logger)
|
|
480
|
+
this.logger.debug("Calling operation AiDataPlatformClient#getAiDataPlatform.");
|
|
481
|
+
const operationName = "getAiDataPlatform";
|
|
482
|
+
const apiReferenceLink = "";
|
|
483
|
+
const pathParams = {
|
|
484
|
+
"{aiDataPlatformId}": getAiDataPlatformRequest.aiDataPlatformId
|
|
485
|
+
};
|
|
486
|
+
const queryParams = {};
|
|
487
|
+
let headerParams = {
|
|
488
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
489
|
+
"opc-request-id": getAiDataPlatformRequest.opcRequestId
|
|
490
|
+
};
|
|
491
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
492
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getAiDataPlatformRequest.retryConfiguration, specRetryConfiguration);
|
|
493
|
+
if (this.logger)
|
|
494
|
+
retrier.logger = this.logger;
|
|
495
|
+
const request = yield oci_common_1.composeRequest({
|
|
496
|
+
baseEndpoint: this._endpoint,
|
|
497
|
+
defaultHeaders: this._defaultHeaders,
|
|
498
|
+
path: "/aiDataPlatforms/{aiDataPlatformId}",
|
|
499
|
+
method: "GET",
|
|
500
|
+
pathParams: pathParams,
|
|
501
|
+
headerParams: headerParams,
|
|
502
|
+
queryParams: queryParams
|
|
503
|
+
});
|
|
504
|
+
try {
|
|
505
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
506
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
507
|
+
responseObject: {},
|
|
508
|
+
body: yield response.json(),
|
|
509
|
+
bodyKey: "aiDataPlatform",
|
|
510
|
+
bodyModel: model.AiDataPlatform,
|
|
511
|
+
type: "model.AiDataPlatform",
|
|
512
|
+
responseHeaders: [
|
|
513
|
+
{
|
|
514
|
+
value: response.headers.get("etag"),
|
|
515
|
+
key: "etag",
|
|
516
|
+
dataType: "string"
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
value: response.headers.get("opc-request-id"),
|
|
520
|
+
key: "opcRequestId",
|
|
521
|
+
dataType: "string"
|
|
522
|
+
}
|
|
523
|
+
]
|
|
524
|
+
});
|
|
525
|
+
return sdkResponse;
|
|
526
|
+
}
|
|
527
|
+
catch (err) {
|
|
528
|
+
throw err;
|
|
529
|
+
}
|
|
530
|
+
});
|
|
531
|
+
}
|
|
532
|
+
/**
|
|
533
|
+
* Gets the details of a work request.
|
|
534
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
535
|
+
* @param GetWorkRequestRequest
|
|
536
|
+
* @return GetWorkRequestResponse
|
|
537
|
+
* @throws OciError when an error occurs
|
|
538
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidataplatform/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
539
|
+
*/
|
|
540
|
+
getWorkRequest(getWorkRequestRequest) {
|
|
541
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
542
|
+
if (this.logger)
|
|
543
|
+
this.logger.debug("Calling operation AiDataPlatformClient#getWorkRequest.");
|
|
544
|
+
const operationName = "getWorkRequest";
|
|
545
|
+
const apiReferenceLink = "";
|
|
546
|
+
const pathParams = {
|
|
547
|
+
"{workRequestId}": getWorkRequestRequest.workRequestId
|
|
548
|
+
};
|
|
549
|
+
const queryParams = {};
|
|
550
|
+
let headerParams = {
|
|
551
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
552
|
+
"opc-request-id": getWorkRequestRequest.opcRequestId
|
|
553
|
+
};
|
|
554
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
555
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
556
|
+
if (this.logger)
|
|
557
|
+
retrier.logger = this.logger;
|
|
558
|
+
const request = yield oci_common_1.composeRequest({
|
|
559
|
+
baseEndpoint: this._endpoint,
|
|
560
|
+
defaultHeaders: this._defaultHeaders,
|
|
561
|
+
path: "/workRequests/{workRequestId}",
|
|
562
|
+
method: "GET",
|
|
563
|
+
pathParams: pathParams,
|
|
564
|
+
headerParams: headerParams,
|
|
565
|
+
queryParams: queryParams
|
|
566
|
+
});
|
|
567
|
+
try {
|
|
568
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
569
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
570
|
+
responseObject: {},
|
|
571
|
+
body: yield response.json(),
|
|
572
|
+
bodyKey: "workRequest",
|
|
573
|
+
bodyModel: model.WorkRequest,
|
|
574
|
+
type: "model.WorkRequest",
|
|
575
|
+
responseHeaders: [
|
|
576
|
+
{
|
|
577
|
+
value: response.headers.get("etag"),
|
|
578
|
+
key: "etag",
|
|
579
|
+
dataType: "string"
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
value: response.headers.get("opc-request-id"),
|
|
583
|
+
key: "opcRequestId",
|
|
584
|
+
dataType: "string"
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
value: response.headers.get("retry-after"),
|
|
588
|
+
key: "retryAfter",
|
|
589
|
+
dataType: "number"
|
|
590
|
+
}
|
|
591
|
+
]
|
|
592
|
+
});
|
|
593
|
+
return sdkResponse;
|
|
594
|
+
}
|
|
595
|
+
catch (err) {
|
|
596
|
+
throw err;
|
|
597
|
+
}
|
|
598
|
+
});
|
|
599
|
+
}
|
|
600
|
+
/**
|
|
601
|
+
* Gets a list of AiDataPlatforms.
|
|
602
|
+
*
|
|
603
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
604
|
+
* @param ListAiDataPlatformsRequest
|
|
605
|
+
* @return ListAiDataPlatformsResponse
|
|
606
|
+
* @throws OciError when an error occurs
|
|
607
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidataplatform/ListAiDataPlatforms.ts.html |here} to see how to use ListAiDataPlatforms API.
|
|
608
|
+
*/
|
|
609
|
+
listAiDataPlatforms(listAiDataPlatformsRequest) {
|
|
610
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
611
|
+
if (this.logger)
|
|
612
|
+
this.logger.debug("Calling operation AiDataPlatformClient#listAiDataPlatforms.");
|
|
613
|
+
const operationName = "listAiDataPlatforms";
|
|
614
|
+
const apiReferenceLink = "";
|
|
615
|
+
const pathParams = {};
|
|
616
|
+
const queryParams = {
|
|
617
|
+
"compartmentId": listAiDataPlatformsRequest.compartmentId,
|
|
618
|
+
"lifecycleState": listAiDataPlatformsRequest.lifecycleState,
|
|
619
|
+
"excludeLifecycleState": listAiDataPlatformsRequest.excludeLifecycleState,
|
|
620
|
+
"displayName": listAiDataPlatformsRequest.displayName,
|
|
621
|
+
"id": listAiDataPlatformsRequest.id,
|
|
622
|
+
"limit": listAiDataPlatformsRequest.limit,
|
|
623
|
+
"page": listAiDataPlatformsRequest.page,
|
|
624
|
+
"sortOrder": listAiDataPlatformsRequest.sortOrder,
|
|
625
|
+
"sortBy": listAiDataPlatformsRequest.sortBy,
|
|
626
|
+
"includeLegacy": listAiDataPlatformsRequest.includeLegacy
|
|
627
|
+
};
|
|
628
|
+
let headerParams = {
|
|
629
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
630
|
+
"opc-request-id": listAiDataPlatformsRequest.opcRequestId
|
|
631
|
+
};
|
|
632
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
633
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listAiDataPlatformsRequest.retryConfiguration, specRetryConfiguration);
|
|
634
|
+
if (this.logger)
|
|
635
|
+
retrier.logger = this.logger;
|
|
636
|
+
const request = yield oci_common_1.composeRequest({
|
|
637
|
+
baseEndpoint: this._endpoint,
|
|
638
|
+
defaultHeaders: this._defaultHeaders,
|
|
639
|
+
path: "/aiDataPlatforms",
|
|
640
|
+
method: "GET",
|
|
641
|
+
pathParams: pathParams,
|
|
642
|
+
headerParams: headerParams,
|
|
643
|
+
queryParams: queryParams
|
|
644
|
+
});
|
|
645
|
+
try {
|
|
646
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
647
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
648
|
+
responseObject: {},
|
|
649
|
+
body: yield response.json(),
|
|
650
|
+
bodyKey: "aiDataPlatformCollection",
|
|
651
|
+
bodyModel: model.AiDataPlatformCollection,
|
|
652
|
+
type: "model.AiDataPlatformCollection",
|
|
653
|
+
responseHeaders: [
|
|
654
|
+
{
|
|
655
|
+
value: response.headers.get("opc-request-id"),
|
|
656
|
+
key: "opcRequestId",
|
|
657
|
+
dataType: "string"
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
value: response.headers.get("opc-next-page"),
|
|
661
|
+
key: "opcNextPage",
|
|
662
|
+
dataType: "string"
|
|
663
|
+
}
|
|
664
|
+
]
|
|
665
|
+
});
|
|
666
|
+
return sdkResponse;
|
|
667
|
+
}
|
|
668
|
+
catch (err) {
|
|
669
|
+
throw err;
|
|
670
|
+
}
|
|
671
|
+
});
|
|
672
|
+
}
|
|
673
|
+
/**
|
|
674
|
+
* Lists the errors for a work request.
|
|
675
|
+
*
|
|
676
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
677
|
+
* @param ListWorkRequestErrorsRequest
|
|
678
|
+
* @return ListWorkRequestErrorsResponse
|
|
679
|
+
* @throws OciError when an error occurs
|
|
680
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidataplatform/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
681
|
+
*/
|
|
682
|
+
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
683
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
684
|
+
if (this.logger)
|
|
685
|
+
this.logger.debug("Calling operation AiDataPlatformClient#listWorkRequestErrors.");
|
|
686
|
+
const operationName = "listWorkRequestErrors";
|
|
687
|
+
const apiReferenceLink = "";
|
|
688
|
+
const pathParams = {
|
|
689
|
+
"{workRequestId}": listWorkRequestErrorsRequest.workRequestId
|
|
690
|
+
};
|
|
691
|
+
const queryParams = {
|
|
692
|
+
"page": listWorkRequestErrorsRequest.page,
|
|
693
|
+
"limit": listWorkRequestErrorsRequest.limit,
|
|
694
|
+
"sortBy": listWorkRequestErrorsRequest.sortBy,
|
|
695
|
+
"sortOrder": listWorkRequestErrorsRequest.sortOrder
|
|
696
|
+
};
|
|
697
|
+
let headerParams = {
|
|
698
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
699
|
+
"opc-request-id": listWorkRequestErrorsRequest.opcRequestId
|
|
700
|
+
};
|
|
701
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
702
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
|
|
703
|
+
if (this.logger)
|
|
704
|
+
retrier.logger = this.logger;
|
|
705
|
+
const request = yield oci_common_1.composeRequest({
|
|
706
|
+
baseEndpoint: this._endpoint,
|
|
707
|
+
defaultHeaders: this._defaultHeaders,
|
|
708
|
+
path: "/workRequests/{workRequestId}/errors",
|
|
709
|
+
method: "GET",
|
|
710
|
+
pathParams: pathParams,
|
|
711
|
+
headerParams: headerParams,
|
|
712
|
+
queryParams: queryParams
|
|
713
|
+
});
|
|
714
|
+
try {
|
|
715
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
716
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
717
|
+
responseObject: {},
|
|
718
|
+
body: yield response.json(),
|
|
719
|
+
bodyKey: "workRequestErrorCollection",
|
|
720
|
+
bodyModel: model.WorkRequestErrorCollection,
|
|
721
|
+
type: "model.WorkRequestErrorCollection",
|
|
722
|
+
responseHeaders: [
|
|
723
|
+
{
|
|
724
|
+
value: response.headers.get("opc-next-page"),
|
|
725
|
+
key: "opcNextPage",
|
|
726
|
+
dataType: "string"
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
value: response.headers.get("opc-request-id"),
|
|
730
|
+
key: "opcRequestId",
|
|
731
|
+
dataType: "string"
|
|
732
|
+
}
|
|
733
|
+
]
|
|
734
|
+
});
|
|
735
|
+
return sdkResponse;
|
|
736
|
+
}
|
|
737
|
+
catch (err) {
|
|
738
|
+
throw err;
|
|
739
|
+
}
|
|
740
|
+
});
|
|
741
|
+
}
|
|
742
|
+
/**
|
|
743
|
+
* Lists the logs for a work request.
|
|
744
|
+
*
|
|
745
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
746
|
+
* @param ListWorkRequestLogsRequest
|
|
747
|
+
* @return ListWorkRequestLogsResponse
|
|
748
|
+
* @throws OciError when an error occurs
|
|
749
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidataplatform/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
750
|
+
*/
|
|
751
|
+
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
752
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
753
|
+
if (this.logger)
|
|
754
|
+
this.logger.debug("Calling operation AiDataPlatformClient#listWorkRequestLogs.");
|
|
755
|
+
const operationName = "listWorkRequestLogs";
|
|
756
|
+
const apiReferenceLink = "";
|
|
757
|
+
const pathParams = {
|
|
758
|
+
"{workRequestId}": listWorkRequestLogsRequest.workRequestId
|
|
759
|
+
};
|
|
760
|
+
const queryParams = {
|
|
761
|
+
"page": listWorkRequestLogsRequest.page,
|
|
762
|
+
"limit": listWorkRequestLogsRequest.limit,
|
|
763
|
+
"sortBy": listWorkRequestLogsRequest.sortBy,
|
|
764
|
+
"sortOrder": listWorkRequestLogsRequest.sortOrder
|
|
765
|
+
};
|
|
766
|
+
let headerParams = {
|
|
767
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
768
|
+
"opc-request-id": listWorkRequestLogsRequest.opcRequestId
|
|
769
|
+
};
|
|
770
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
771
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
772
|
+
if (this.logger)
|
|
773
|
+
retrier.logger = this.logger;
|
|
774
|
+
const request = yield oci_common_1.composeRequest({
|
|
775
|
+
baseEndpoint: this._endpoint,
|
|
776
|
+
defaultHeaders: this._defaultHeaders,
|
|
777
|
+
path: "/workRequests/{workRequestId}/logs",
|
|
778
|
+
method: "GET",
|
|
779
|
+
pathParams: pathParams,
|
|
780
|
+
headerParams: headerParams,
|
|
781
|
+
queryParams: queryParams
|
|
782
|
+
});
|
|
783
|
+
try {
|
|
784
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
785
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
786
|
+
responseObject: {},
|
|
787
|
+
body: yield response.json(),
|
|
788
|
+
bodyKey: "workRequestLogEntryCollection",
|
|
789
|
+
bodyModel: model.WorkRequestLogEntryCollection,
|
|
790
|
+
type: "model.WorkRequestLogEntryCollection",
|
|
791
|
+
responseHeaders: [
|
|
792
|
+
{
|
|
793
|
+
value: response.headers.get("opc-next-page"),
|
|
794
|
+
key: "opcNextPage",
|
|
795
|
+
dataType: "string"
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
value: response.headers.get("opc-request-id"),
|
|
799
|
+
key: "opcRequestId",
|
|
800
|
+
dataType: "string"
|
|
801
|
+
}
|
|
802
|
+
]
|
|
803
|
+
});
|
|
804
|
+
return sdkResponse;
|
|
805
|
+
}
|
|
806
|
+
catch (err) {
|
|
807
|
+
throw err;
|
|
808
|
+
}
|
|
809
|
+
});
|
|
810
|
+
}
|
|
811
|
+
/**
|
|
812
|
+
* Lists the work requests in a compartment.
|
|
813
|
+
*
|
|
814
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
815
|
+
* @param ListWorkRequestsRequest
|
|
816
|
+
* @return ListWorkRequestsResponse
|
|
817
|
+
* @throws OciError when an error occurs
|
|
818
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidataplatform/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
819
|
+
*/
|
|
820
|
+
listWorkRequests(listWorkRequestsRequest) {
|
|
821
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
822
|
+
if (this.logger)
|
|
823
|
+
this.logger.debug("Calling operation AiDataPlatformClient#listWorkRequests.");
|
|
824
|
+
const operationName = "listWorkRequests";
|
|
825
|
+
const apiReferenceLink = "";
|
|
826
|
+
const pathParams = {};
|
|
827
|
+
const queryParams = {
|
|
828
|
+
"compartmentId": listWorkRequestsRequest.compartmentId,
|
|
829
|
+
"workRequestId": listWorkRequestsRequest.workRequestId,
|
|
830
|
+
"status": listWorkRequestsRequest.status,
|
|
831
|
+
"resourceId": listWorkRequestsRequest.resourceId,
|
|
832
|
+
"page": listWorkRequestsRequest.page,
|
|
833
|
+
"limit": listWorkRequestsRequest.limit,
|
|
834
|
+
"sortOrder": listWorkRequestsRequest.sortOrder,
|
|
835
|
+
"sortBy": listWorkRequestsRequest.sortBy
|
|
836
|
+
};
|
|
837
|
+
let headerParams = {
|
|
838
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
839
|
+
"opc-request-id": listWorkRequestsRequest.opcRequestId
|
|
840
|
+
};
|
|
841
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
842
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
843
|
+
if (this.logger)
|
|
844
|
+
retrier.logger = this.logger;
|
|
845
|
+
const request = yield oci_common_1.composeRequest({
|
|
846
|
+
baseEndpoint: this._endpoint,
|
|
847
|
+
defaultHeaders: this._defaultHeaders,
|
|
848
|
+
path: "/workRequests",
|
|
849
|
+
method: "GET",
|
|
850
|
+
pathParams: pathParams,
|
|
851
|
+
headerParams: headerParams,
|
|
852
|
+
queryParams: queryParams
|
|
853
|
+
});
|
|
854
|
+
try {
|
|
855
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
856
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
857
|
+
responseObject: {},
|
|
858
|
+
body: yield response.json(),
|
|
859
|
+
bodyKey: "workRequestSummaryCollection",
|
|
860
|
+
bodyModel: model.WorkRequestSummaryCollection,
|
|
861
|
+
type: "model.WorkRequestSummaryCollection",
|
|
862
|
+
responseHeaders: [
|
|
863
|
+
{
|
|
864
|
+
value: response.headers.get("opc-request-id"),
|
|
865
|
+
key: "opcRequestId",
|
|
866
|
+
dataType: "string"
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
value: response.headers.get("opc-next-page"),
|
|
870
|
+
key: "opcNextPage",
|
|
871
|
+
dataType: "string"
|
|
872
|
+
}
|
|
873
|
+
]
|
|
874
|
+
});
|
|
875
|
+
return sdkResponse;
|
|
876
|
+
}
|
|
877
|
+
catch (err) {
|
|
878
|
+
throw err;
|
|
879
|
+
}
|
|
880
|
+
});
|
|
881
|
+
}
|
|
882
|
+
/**
|
|
883
|
+
* Updates a AiDataPlatform.
|
|
884
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
885
|
+
* @param UpdateAiDataPlatformRequest
|
|
886
|
+
* @return UpdateAiDataPlatformResponse
|
|
887
|
+
* @throws OciError when an error occurs
|
|
888
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/aidataplatform/UpdateAiDataPlatform.ts.html |here} to see how to use UpdateAiDataPlatform API.
|
|
889
|
+
*/
|
|
890
|
+
updateAiDataPlatform(updateAiDataPlatformRequest) {
|
|
891
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
892
|
+
if (this.logger)
|
|
893
|
+
this.logger.debug("Calling operation AiDataPlatformClient#updateAiDataPlatform.");
|
|
894
|
+
const operationName = "updateAiDataPlatform";
|
|
895
|
+
const apiReferenceLink = "";
|
|
896
|
+
const pathParams = {
|
|
897
|
+
"{aiDataPlatformId}": updateAiDataPlatformRequest.aiDataPlatformId
|
|
898
|
+
};
|
|
899
|
+
const queryParams = {};
|
|
900
|
+
let headerParams = {
|
|
901
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
902
|
+
"if-match": updateAiDataPlatformRequest.ifMatch,
|
|
903
|
+
"opc-request-id": updateAiDataPlatformRequest.opcRequestId
|
|
904
|
+
};
|
|
905
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
906
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateAiDataPlatformRequest.retryConfiguration, specRetryConfiguration);
|
|
907
|
+
if (this.logger)
|
|
908
|
+
retrier.logger = this.logger;
|
|
909
|
+
const request = yield oci_common_1.composeRequest({
|
|
910
|
+
baseEndpoint: this._endpoint,
|
|
911
|
+
defaultHeaders: this._defaultHeaders,
|
|
912
|
+
path: "/aiDataPlatforms/{aiDataPlatformId}",
|
|
913
|
+
method: "PUT",
|
|
914
|
+
bodyContent: common.ObjectSerializer.serialize(updateAiDataPlatformRequest.updateAiDataPlatformDetails, "UpdateAiDataPlatformDetails", model.UpdateAiDataPlatformDetails.getJsonObj),
|
|
915
|
+
pathParams: pathParams,
|
|
916
|
+
headerParams: headerParams,
|
|
917
|
+
queryParams: queryParams
|
|
918
|
+
});
|
|
919
|
+
try {
|
|
920
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
921
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
922
|
+
responseObject: {},
|
|
923
|
+
responseHeaders: [
|
|
924
|
+
{
|
|
925
|
+
value: response.headers.get("opc-work-request-id"),
|
|
926
|
+
key: "opcWorkRequestId",
|
|
927
|
+
dataType: "string"
|
|
928
|
+
},
|
|
929
|
+
{
|
|
930
|
+
value: response.headers.get("opc-request-id"),
|
|
931
|
+
key: "opcRequestId",
|
|
932
|
+
dataType: "string"
|
|
933
|
+
}
|
|
934
|
+
]
|
|
935
|
+
});
|
|
936
|
+
return sdkResponse;
|
|
937
|
+
}
|
|
938
|
+
catch (err) {
|
|
939
|
+
throw err;
|
|
940
|
+
}
|
|
941
|
+
});
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
exports.AiDataPlatformClient = AiDataPlatformClient;
|
|
945
|
+
AiDataPlatformClient.serviceEndpointTemplate = "https://datalake.{region}.oci.{secondLevelDomain}";
|
|
946
|
+
AiDataPlatformClient.endpointServiceName = "";
|
|
947
|
+
//# sourceMappingURL=client.js.map
|