oci-datascience 2.101.0 → 2.102.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/lib/client.d.ts +147 -0
- package/lib/client.js +675 -0
- package/lib/client.js.map +1 -1
- package/lib/datascience-waiter.d.ts +8 -0
- package/lib/datascience-waiter.js +12 -0
- package/lib/datascience-waiter.js.map +1 -1
- package/lib/model/change-schedule-compartment-details.d.ts +28 -0
- package/lib/model/change-schedule-compartment-details.js +30 -0
- package/lib/model/change-schedule-compartment-details.js.map +1 -0
- package/lib/model/container-summary.d.ts +106 -0
- package/lib/model/container-summary.js +95 -0
- package/lib/model/container-summary.js.map +1 -0
- package/lib/model/container-target-workload.d.ts +24 -0
- package/lib/model/container-target-workload.js +35 -0
- package/lib/model/container-target-workload.js.map +1 -0
- package/lib/model/container-usage.d.ts +27 -0
- package/lib/model/container-usage.js +38 -0
- package/lib/model/container-usage.js.map +1 -0
- package/lib/model/container-version-lifecycle-state.d.ts +29 -0
- package/lib/model/container-version-lifecycle-state.js +40 -0
- package/lib/model/container-version-lifecycle-state.js.map +1 -0
- package/lib/model/create-job-run-schedule-action-details.d.ts +26 -0
- package/lib/model/create-job-run-schedule-action-details.js +63 -0
- package/lib/model/create-job-run-schedule-action-details.js.map +1 -0
- package/lib/model/create-pipeline-run-schedule-action-details.d.ts +26 -0
- package/lib/model/create-pipeline-run-schedule-action-details.js +63 -0
- package/lib/model/create-pipeline-run-schedule-action-details.js.map +1 -0
- package/lib/model/create-schedule-details.d.ts +60 -0
- package/lib/model/create-schedule-details.js +64 -0
- package/lib/model/create-schedule-details.js.map +1 -0
- package/lib/model/generic-job-run-use-case-configuration-details.d.ts +31 -0
- package/lib/model/generic-job-run-use-case-configuration-details.js +55 -0
- package/lib/model/generic-job-run-use-case-configuration-details.js.map +1 -0
- package/lib/model/index.d.ts +58 -0
- package/lib/model/index.js +62 -4
- package/lib/model/index.js.map +1 -1
- package/lib/model/invoke-ml-application-provider-trigger-schedule-action-details.d.ts +30 -0
- package/lib/model/invoke-ml-application-provider-trigger-schedule-action-details.js +63 -0
- package/lib/model/invoke-ml-application-provider-trigger-schedule-action-details.js.map +1 -0
- package/lib/model/job-run-use-case-configuration-details.d.ts +24 -0
- package/lib/model/job-run-use-case-configuration-details.js +69 -0
- package/lib/model/job-run-use-case-configuration-details.js.map +1 -0
- package/lib/model/job-run-workload-configuration-details.d.ts +26 -0
- package/lib/model/job-run-workload-configuration-details.js +63 -0
- package/lib/model/job-run-workload-configuration-details.js.map +1 -0
- package/lib/model/model-deploy-workload-configuration-details.d.ts +50 -0
- package/lib/model/model-deploy-workload-configuration-details.js +55 -0
- package/lib/model/model-deploy-workload-configuration-details.js.map +1 -0
- package/lib/model/schedule-action.d.ts +23 -0
- package/lib/model/schedule-action.js +69 -0
- package/lib/model/schedule-action.js.map +1 -0
- package/lib/model/schedule-cron-trigger.d.ts +29 -0
- package/lib/model/schedule-cron-trigger.js +53 -0
- package/lib/model/schedule-cron-trigger.js.map +1 -0
- package/lib/model/schedule-http-action-details.d.ts +23 -0
- package/lib/model/schedule-http-action-details.js +77 -0
- package/lib/model/schedule-http-action-details.js.map +1 -0
- package/lib/model/schedule-http-action.d.ts +26 -0
- package/lib/model/schedule-http-action.js +61 -0
- package/lib/model/schedule-http-action.js.map +1 -0
- package/lib/model/schedule-ical-trigger.d.ts +29 -0
- package/lib/model/schedule-ical-trigger.js +53 -0
- package/lib/model/schedule-ical-trigger.js.map +1 -0
- package/lib/model/schedule-interval-trigger.d.ts +48 -0
- package/lib/model/schedule-interval-trigger.js +65 -0
- package/lib/model/schedule-interval-trigger.js.map +1 -0
- package/lib/model/schedule-lifecycle-state.d.ts +34 -0
- package/lib/model/schedule-lifecycle-state.js +45 -0
- package/lib/model/schedule-lifecycle-state.js.map +1 -0
- package/lib/model/schedule-log-details.d.ts +30 -0
- package/lib/model/schedule-log-details.js +30 -0
- package/lib/model/schedule-log-details.js.map +1 -0
- package/lib/model/schedule-summary.d.ts +92 -0
- package/lib/model/schedule-summary.js +56 -0
- package/lib/model/schedule-summary.js.map +1 -0
- package/lib/model/schedule-trigger.d.ts +35 -0
- package/lib/model/schedule-trigger.js +77 -0
- package/lib/model/schedule-trigger.js.map +1 -0
- package/lib/model/schedule.d.ts +125 -0
- package/lib/model/schedule.js +64 -0
- package/lib/model/schedule.js.map +1 -0
- package/lib/model/tag-configuration.d.ts +30 -0
- package/lib/model/tag-configuration.js +30 -0
- package/lib/model/tag-configuration.js.map +1 -0
- package/lib/model/trigger-ml-application-instance-view-flow-details.d.ts +31 -0
- package/lib/model/trigger-ml-application-instance-view-flow-details.js +62 -0
- package/lib/model/trigger-ml-application-instance-view-flow-details.js.map +1 -0
- package/lib/model/trigger-parameter.d.ts +30 -0
- package/lib/model/trigger-parameter.js +30 -0
- package/lib/model/trigger-parameter.js.map +1 -0
- package/lib/model/update-schedule-details.d.ts +52 -0
- package/lib/model/update-schedule-details.js +64 -0
- package/lib/model/update-schedule-details.js.map +1 -0
- package/lib/model/work-request-operation-type.d.ts +6 -0
- package/lib/model/work-request-operation-type.js +6 -0
- package/lib/model/work-request-operation-type.js.map +1 -1
- package/lib/model/workload-configuration-details.d.ts +24 -0
- package/lib/model/workload-configuration-details.js +73 -0
- package/lib/model/workload-configuration-details.js.map +1 -0
- package/lib/request/activate-schedule-request.d.ts +41 -0
- package/lib/request/activate-schedule-request.js +15 -0
- package/lib/request/activate-schedule-request.js.map +1 -0
- package/lib/request/change-schedule-compartment-request.d.ts +46 -0
- package/lib/request/change-schedule-compartment-request.js +15 -0
- package/lib/request/change-schedule-compartment-request.js.map +1 -0
- package/lib/request/create-schedule-request.d.ts +33 -0
- package/lib/request/create-schedule-request.js +15 -0
- package/lib/request/create-schedule-request.js.map +1 -0
- package/lib/request/deactivate-schedule-request.d.ts +41 -0
- package/lib/request/deactivate-schedule-request.js +15 -0
- package/lib/request/deactivate-schedule-request.js.map +1 -0
- package/lib/request/delete-schedule-request.d.ts +36 -0
- package/lib/request/delete-schedule-request.js +15 -0
- package/lib/request/delete-schedule-request.js.map +1 -0
- package/lib/request/get-schedule-request.d.ts +27 -0
- package/lib/request/get-schedule-request.js +15 -0
- package/lib/request/get-schedule-request.js.map +1 -0
- package/lib/request/index.d.ts +18 -0
- package/lib/request/index.js +3 -1
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-containers-request.d.ts +72 -0
- package/lib/request/list-containers-request.js +15 -0
- package/lib/request/list-containers-request.js.map +1 -0
- package/lib/request/list-schedules-request.d.ts +82 -0
- package/lib/request/list-schedules-request.js +29 -0
- package/lib/request/list-schedules-request.js.map +1 -0
- package/lib/request/list-work-requests-request.d.ts +6 -0
- package/lib/request/list-work-requests-request.js +6 -0
- package/lib/request/list-work-requests-request.js.map +1 -1
- package/lib/request/update-schedule-request.d.ts +41 -0
- package/lib/request/update-schedule-request.js +15 -0
- package/lib/request/update-schedule-request.js.map +1 -0
- package/lib/response/activate-schedule-response.d.ts +26 -0
- package/lib/response/activate-schedule-response.js +15 -0
- package/lib/response/activate-schedule-response.js.map +1 -0
- package/lib/response/change-schedule-compartment-response.d.ts +26 -0
- package/lib/response/change-schedule-compartment-response.js +15 -0
- package/lib/response/change-schedule-compartment-response.js.map +1 -0
- package/lib/response/create-schedule-response.d.ts +44 -0
- package/lib/response/create-schedule-response.js +15 -0
- package/lib/response/create-schedule-response.js.map +1 -0
- package/lib/response/deactivate-schedule-response.d.ts +26 -0
- package/lib/response/deactivate-schedule-response.js +15 -0
- package/lib/response/deactivate-schedule-response.js.map +1 -0
- package/lib/response/delete-schedule-response.d.ts +26 -0
- package/lib/response/delete-schedule-response.js +15 -0
- package/lib/response/delete-schedule-response.js.map +1 -0
- package/lib/response/get-schedule-response.d.ts +30 -0
- package/lib/response/get-schedule-response.js +15 -0
- package/lib/response/get-schedule-response.js.map +1 -0
- package/lib/response/index.d.ts +18 -0
- package/lib/response/list-containers-response.d.ts +35 -0
- package/lib/response/list-containers-response.js +15 -0
- package/lib/response/list-containers-response.js.map +1 -0
- package/lib/response/list-schedules-response.d.ts +30 -0
- package/lib/response/list-schedules-response.js +15 -0
- package/lib/response/list-schedules-response.js.map +1 -0
- package/lib/response/update-schedule-response.d.ts +26 -0
- package/lib/response/update-schedule-response.js +15 -0
- package/lib/response/update-schedule-response.js.map +1 -0
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -393,6 +393,67 @@ class DataScienceClient {
|
|
|
393
393
|
}
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
|
+
/**
|
|
397
|
+
* Activate schedule.
|
|
398
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
399
|
+
* @param ActivateScheduleRequest
|
|
400
|
+
* @return ActivateScheduleResponse
|
|
401
|
+
* @throws OciError when an error occurs
|
|
402
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/ActivateSchedule.ts.html |here} to see how to use ActivateSchedule API.
|
|
403
|
+
*/
|
|
404
|
+
activateSchedule(activateScheduleRequest) {
|
|
405
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
406
|
+
if (this.logger)
|
|
407
|
+
this.logger.debug("Calling operation DataScienceClient#activateSchedule.");
|
|
408
|
+
const operationName = "activateSchedule";
|
|
409
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Schedule/ActivateSchedule";
|
|
410
|
+
const pathParams = {
|
|
411
|
+
"{scheduleId}": activateScheduleRequest.scheduleId
|
|
412
|
+
};
|
|
413
|
+
const queryParams = {};
|
|
414
|
+
let headerParams = {
|
|
415
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
416
|
+
"opc-request-id": activateScheduleRequest.opcRequestId,
|
|
417
|
+
"if-match": activateScheduleRequest.ifMatch,
|
|
418
|
+
"opc-retry-token": activateScheduleRequest.opcRetryToken
|
|
419
|
+
};
|
|
420
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
421
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, activateScheduleRequest.retryConfiguration, specRetryConfiguration);
|
|
422
|
+
if (this.logger)
|
|
423
|
+
retrier.logger = this.logger;
|
|
424
|
+
const request = yield oci_common_2.composeRequest({
|
|
425
|
+
baseEndpoint: this._endpoint,
|
|
426
|
+
defaultHeaders: this._defaultHeaders,
|
|
427
|
+
path: "/schedules/{scheduleId}/actions/activate",
|
|
428
|
+
method: "POST",
|
|
429
|
+
pathParams: pathParams,
|
|
430
|
+
headerParams: headerParams,
|
|
431
|
+
queryParams: queryParams
|
|
432
|
+
});
|
|
433
|
+
try {
|
|
434
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
435
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
436
|
+
responseObject: {},
|
|
437
|
+
responseHeaders: [
|
|
438
|
+
{
|
|
439
|
+
value: response.headers.get("opc-request-id"),
|
|
440
|
+
key: "opcRequestId",
|
|
441
|
+
dataType: "string"
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
value: response.headers.get("opc-work-request-id"),
|
|
445
|
+
key: "opcWorkRequestId",
|
|
446
|
+
dataType: "string"
|
|
447
|
+
}
|
|
448
|
+
]
|
|
449
|
+
});
|
|
450
|
+
return sdkResponse;
|
|
451
|
+
}
|
|
452
|
+
catch (err) {
|
|
453
|
+
throw err;
|
|
454
|
+
}
|
|
455
|
+
});
|
|
456
|
+
}
|
|
396
457
|
/**
|
|
397
458
|
* Cancels an IN_PROGRESS job run.
|
|
398
459
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
@@ -1138,6 +1199,68 @@ class DataScienceClient {
|
|
|
1138
1199
|
}
|
|
1139
1200
|
});
|
|
1140
1201
|
}
|
|
1202
|
+
/**
|
|
1203
|
+
* Moves a Schedule resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource.
|
|
1204
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1205
|
+
* @param ChangeScheduleCompartmentRequest
|
|
1206
|
+
* @return ChangeScheduleCompartmentResponse
|
|
1207
|
+
* @throws OciError when an error occurs
|
|
1208
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/ChangeScheduleCompartment.ts.html |here} to see how to use ChangeScheduleCompartment API.
|
|
1209
|
+
*/
|
|
1210
|
+
changeScheduleCompartment(changeScheduleCompartmentRequest) {
|
|
1211
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1212
|
+
if (this.logger)
|
|
1213
|
+
this.logger.debug("Calling operation DataScienceClient#changeScheduleCompartment.");
|
|
1214
|
+
const operationName = "changeScheduleCompartment";
|
|
1215
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Schedule/ChangeScheduleCompartment";
|
|
1216
|
+
const pathParams = {
|
|
1217
|
+
"{scheduleId}": changeScheduleCompartmentRequest.scheduleId
|
|
1218
|
+
};
|
|
1219
|
+
const queryParams = {};
|
|
1220
|
+
let headerParams = {
|
|
1221
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1222
|
+
"opc-retry-token": changeScheduleCompartmentRequest.opcRetryToken,
|
|
1223
|
+
"if-match": changeScheduleCompartmentRequest.ifMatch,
|
|
1224
|
+
"opc-request-id": changeScheduleCompartmentRequest.opcRequestId
|
|
1225
|
+
};
|
|
1226
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1227
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeScheduleCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
1228
|
+
if (this.logger)
|
|
1229
|
+
retrier.logger = this.logger;
|
|
1230
|
+
const request = yield oci_common_2.composeRequest({
|
|
1231
|
+
baseEndpoint: this._endpoint,
|
|
1232
|
+
defaultHeaders: this._defaultHeaders,
|
|
1233
|
+
path: "/schedules/{scheduleId}/actions/changeCompartment",
|
|
1234
|
+
method: "POST",
|
|
1235
|
+
bodyContent: common.ObjectSerializer.serialize(changeScheduleCompartmentRequest.changeScheduleCompartmentDetails, "ChangeScheduleCompartmentDetails", model.ChangeScheduleCompartmentDetails.getJsonObj),
|
|
1236
|
+
pathParams: pathParams,
|
|
1237
|
+
headerParams: headerParams,
|
|
1238
|
+
queryParams: queryParams
|
|
1239
|
+
});
|
|
1240
|
+
try {
|
|
1241
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1242
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
1243
|
+
responseObject: {},
|
|
1244
|
+
responseHeaders: [
|
|
1245
|
+
{
|
|
1246
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1247
|
+
key: "opcWorkRequestId",
|
|
1248
|
+
dataType: "string"
|
|
1249
|
+
},
|
|
1250
|
+
{
|
|
1251
|
+
value: response.headers.get("opc-request-id"),
|
|
1252
|
+
key: "opcRequestId",
|
|
1253
|
+
dataType: "string"
|
|
1254
|
+
}
|
|
1255
|
+
]
|
|
1256
|
+
});
|
|
1257
|
+
return sdkResponse;
|
|
1258
|
+
}
|
|
1259
|
+
catch (err) {
|
|
1260
|
+
throw err;
|
|
1261
|
+
}
|
|
1262
|
+
});
|
|
1263
|
+
}
|
|
1141
1264
|
/**
|
|
1142
1265
|
* Creates a Data Science private endpoint to be used by a Data Science resource.
|
|
1143
1266
|
*
|
|
@@ -2001,6 +2124,85 @@ class DataScienceClient {
|
|
|
2001
2124
|
}
|
|
2002
2125
|
});
|
|
2003
2126
|
}
|
|
2127
|
+
/**
|
|
2128
|
+
* Creates a new Schedule.
|
|
2129
|
+
*
|
|
2130
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2131
|
+
* @param CreateScheduleRequest
|
|
2132
|
+
* @return CreateScheduleResponse
|
|
2133
|
+
* @throws OciError when an error occurs
|
|
2134
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/CreateSchedule.ts.html |here} to see how to use CreateSchedule API.
|
|
2135
|
+
*/
|
|
2136
|
+
createSchedule(createScheduleRequest) {
|
|
2137
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2138
|
+
if (this.logger)
|
|
2139
|
+
this.logger.debug("Calling operation DataScienceClient#createSchedule.");
|
|
2140
|
+
const operationName = "createSchedule";
|
|
2141
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Schedule/CreateSchedule";
|
|
2142
|
+
const pathParams = {};
|
|
2143
|
+
const queryParams = {};
|
|
2144
|
+
let headerParams = {
|
|
2145
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2146
|
+
"opc-retry-token": createScheduleRequest.opcRetryToken,
|
|
2147
|
+
"opc-request-id": createScheduleRequest.opcRequestId
|
|
2148
|
+
};
|
|
2149
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2150
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createScheduleRequest.retryConfiguration, specRetryConfiguration);
|
|
2151
|
+
if (this.logger)
|
|
2152
|
+
retrier.logger = this.logger;
|
|
2153
|
+
const request = yield oci_common_2.composeRequest({
|
|
2154
|
+
baseEndpoint: this._endpoint,
|
|
2155
|
+
defaultHeaders: this._defaultHeaders,
|
|
2156
|
+
path: "/schedules",
|
|
2157
|
+
method: "POST",
|
|
2158
|
+
bodyContent: common.ObjectSerializer.serialize(createScheduleRequest.createScheduleDetails, "CreateScheduleDetails", model.CreateScheduleDetails.getJsonObj),
|
|
2159
|
+
pathParams: pathParams,
|
|
2160
|
+
headerParams: headerParams,
|
|
2161
|
+
queryParams: queryParams
|
|
2162
|
+
});
|
|
2163
|
+
try {
|
|
2164
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2165
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
2166
|
+
responseObject: {},
|
|
2167
|
+
body: yield response.json(),
|
|
2168
|
+
bodyKey: "schedule",
|
|
2169
|
+
bodyModel: model.Schedule,
|
|
2170
|
+
type: "model.Schedule",
|
|
2171
|
+
responseHeaders: [
|
|
2172
|
+
{
|
|
2173
|
+
value: response.headers.get("location"),
|
|
2174
|
+
key: "location",
|
|
2175
|
+
dataType: "string"
|
|
2176
|
+
},
|
|
2177
|
+
{
|
|
2178
|
+
value: response.headers.get("content-location"),
|
|
2179
|
+
key: "contentLocation",
|
|
2180
|
+
dataType: "string"
|
|
2181
|
+
},
|
|
2182
|
+
{
|
|
2183
|
+
value: response.headers.get("etag"),
|
|
2184
|
+
key: "etag",
|
|
2185
|
+
dataType: "string"
|
|
2186
|
+
},
|
|
2187
|
+
{
|
|
2188
|
+
value: response.headers.get("opc-work-request-id"),
|
|
2189
|
+
key: "opcWorkRequestId",
|
|
2190
|
+
dataType: "string"
|
|
2191
|
+
},
|
|
2192
|
+
{
|
|
2193
|
+
value: response.headers.get("opc-request-id"),
|
|
2194
|
+
key: "opcRequestId",
|
|
2195
|
+
dataType: "string"
|
|
2196
|
+
}
|
|
2197
|
+
]
|
|
2198
|
+
});
|
|
2199
|
+
return sdkResponse;
|
|
2200
|
+
}
|
|
2201
|
+
catch (err) {
|
|
2202
|
+
throw err;
|
|
2203
|
+
}
|
|
2204
|
+
});
|
|
2205
|
+
}
|
|
2004
2206
|
/**
|
|
2005
2207
|
* Upload the artifact for a step in the pipeline.
|
|
2006
2208
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
@@ -2244,6 +2446,67 @@ class DataScienceClient {
|
|
|
2244
2446
|
}
|
|
2245
2447
|
});
|
|
2246
2448
|
}
|
|
2449
|
+
/**
|
|
2450
|
+
* Deactivate schedule.
|
|
2451
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2452
|
+
* @param DeactivateScheduleRequest
|
|
2453
|
+
* @return DeactivateScheduleResponse
|
|
2454
|
+
* @throws OciError when an error occurs
|
|
2455
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/DeactivateSchedule.ts.html |here} to see how to use DeactivateSchedule API.
|
|
2456
|
+
*/
|
|
2457
|
+
deactivateSchedule(deactivateScheduleRequest) {
|
|
2458
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2459
|
+
if (this.logger)
|
|
2460
|
+
this.logger.debug("Calling operation DataScienceClient#deactivateSchedule.");
|
|
2461
|
+
const operationName = "deactivateSchedule";
|
|
2462
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Schedule/DeactivateSchedule";
|
|
2463
|
+
const pathParams = {
|
|
2464
|
+
"{scheduleId}": deactivateScheduleRequest.scheduleId
|
|
2465
|
+
};
|
|
2466
|
+
const queryParams = {};
|
|
2467
|
+
let headerParams = {
|
|
2468
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2469
|
+
"opc-request-id": deactivateScheduleRequest.opcRequestId,
|
|
2470
|
+
"if-match": deactivateScheduleRequest.ifMatch,
|
|
2471
|
+
"opc-retry-token": deactivateScheduleRequest.opcRetryToken
|
|
2472
|
+
};
|
|
2473
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2474
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deactivateScheduleRequest.retryConfiguration, specRetryConfiguration);
|
|
2475
|
+
if (this.logger)
|
|
2476
|
+
retrier.logger = this.logger;
|
|
2477
|
+
const request = yield oci_common_2.composeRequest({
|
|
2478
|
+
baseEndpoint: this._endpoint,
|
|
2479
|
+
defaultHeaders: this._defaultHeaders,
|
|
2480
|
+
path: "/schedules/{scheduleId}/actions/deactivate",
|
|
2481
|
+
method: "POST",
|
|
2482
|
+
pathParams: pathParams,
|
|
2483
|
+
headerParams: headerParams,
|
|
2484
|
+
queryParams: queryParams
|
|
2485
|
+
});
|
|
2486
|
+
try {
|
|
2487
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2488
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
2489
|
+
responseObject: {},
|
|
2490
|
+
responseHeaders: [
|
|
2491
|
+
{
|
|
2492
|
+
value: response.headers.get("opc-request-id"),
|
|
2493
|
+
key: "opcRequestId",
|
|
2494
|
+
dataType: "string"
|
|
2495
|
+
},
|
|
2496
|
+
{
|
|
2497
|
+
value: response.headers.get("opc-work-request-id"),
|
|
2498
|
+
key: "opcWorkRequestId",
|
|
2499
|
+
dataType: "string"
|
|
2500
|
+
}
|
|
2501
|
+
]
|
|
2502
|
+
});
|
|
2503
|
+
return sdkResponse;
|
|
2504
|
+
}
|
|
2505
|
+
catch (err) {
|
|
2506
|
+
throw err;
|
|
2507
|
+
}
|
|
2508
|
+
});
|
|
2509
|
+
}
|
|
2247
2510
|
/**
|
|
2248
2511
|
* Deletes a private endpoint using `privateEndpointId`.
|
|
2249
2512
|
*
|
|
@@ -2839,6 +3102,66 @@ class DataScienceClient {
|
|
|
2839
3102
|
}
|
|
2840
3103
|
});
|
|
2841
3104
|
}
|
|
3105
|
+
/**
|
|
3106
|
+
* Deletes a Schedule resource by identifier
|
|
3107
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
3108
|
+
* @param DeleteScheduleRequest
|
|
3109
|
+
* @return DeleteScheduleResponse
|
|
3110
|
+
* @throws OciError when an error occurs
|
|
3111
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/DeleteSchedule.ts.html |here} to see how to use DeleteSchedule API.
|
|
3112
|
+
*/
|
|
3113
|
+
deleteSchedule(deleteScheduleRequest) {
|
|
3114
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3115
|
+
if (this.logger)
|
|
3116
|
+
this.logger.debug("Calling operation DataScienceClient#deleteSchedule.");
|
|
3117
|
+
const operationName = "deleteSchedule";
|
|
3118
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Schedule/DeleteSchedule";
|
|
3119
|
+
const pathParams = {
|
|
3120
|
+
"{scheduleId}": deleteScheduleRequest.scheduleId
|
|
3121
|
+
};
|
|
3122
|
+
const queryParams = {};
|
|
3123
|
+
let headerParams = {
|
|
3124
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3125
|
+
"if-match": deleteScheduleRequest.ifMatch,
|
|
3126
|
+
"opc-request-id": deleteScheduleRequest.opcRequestId
|
|
3127
|
+
};
|
|
3128
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3129
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteScheduleRequest.retryConfiguration, specRetryConfiguration);
|
|
3130
|
+
if (this.logger)
|
|
3131
|
+
retrier.logger = this.logger;
|
|
3132
|
+
const request = yield oci_common_2.composeRequest({
|
|
3133
|
+
baseEndpoint: this._endpoint,
|
|
3134
|
+
defaultHeaders: this._defaultHeaders,
|
|
3135
|
+
path: "/schedules/{scheduleId}",
|
|
3136
|
+
method: "DELETE",
|
|
3137
|
+
pathParams: pathParams,
|
|
3138
|
+
headerParams: headerParams,
|
|
3139
|
+
queryParams: queryParams
|
|
3140
|
+
});
|
|
3141
|
+
try {
|
|
3142
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3143
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
3144
|
+
responseObject: {},
|
|
3145
|
+
responseHeaders: [
|
|
3146
|
+
{
|
|
3147
|
+
value: response.headers.get("opc-work-request-id"),
|
|
3148
|
+
key: "opcWorkRequestId",
|
|
3149
|
+
dataType: "string"
|
|
3150
|
+
},
|
|
3151
|
+
{
|
|
3152
|
+
value: response.headers.get("opc-request-id"),
|
|
3153
|
+
key: "opcRequestId",
|
|
3154
|
+
dataType: "string"
|
|
3155
|
+
}
|
|
3156
|
+
]
|
|
3157
|
+
});
|
|
3158
|
+
return sdkResponse;
|
|
3159
|
+
}
|
|
3160
|
+
catch (err) {
|
|
3161
|
+
throw err;
|
|
3162
|
+
}
|
|
3163
|
+
});
|
|
3164
|
+
}
|
|
2842
3165
|
/**
|
|
2843
3166
|
* Export model artifact from source to the service bucket
|
|
2844
3167
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
@@ -3761,6 +4084,69 @@ class DataScienceClient {
|
|
|
3761
4084
|
}
|
|
3762
4085
|
});
|
|
3763
4086
|
}
|
|
4087
|
+
/**
|
|
4088
|
+
* Gets a Schedule by identifier
|
|
4089
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
4090
|
+
* @param GetScheduleRequest
|
|
4091
|
+
* @return GetScheduleResponse
|
|
4092
|
+
* @throws OciError when an error occurs
|
|
4093
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/GetSchedule.ts.html |here} to see how to use GetSchedule API.
|
|
4094
|
+
*/
|
|
4095
|
+
getSchedule(getScheduleRequest) {
|
|
4096
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4097
|
+
if (this.logger)
|
|
4098
|
+
this.logger.debug("Calling operation DataScienceClient#getSchedule.");
|
|
4099
|
+
const operationName = "getSchedule";
|
|
4100
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Schedule/GetSchedule";
|
|
4101
|
+
const pathParams = {
|
|
4102
|
+
"{scheduleId}": getScheduleRequest.scheduleId
|
|
4103
|
+
};
|
|
4104
|
+
const queryParams = {};
|
|
4105
|
+
let headerParams = {
|
|
4106
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4107
|
+
"opc-request-id": getScheduleRequest.opcRequestId
|
|
4108
|
+
};
|
|
4109
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4110
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getScheduleRequest.retryConfiguration, specRetryConfiguration);
|
|
4111
|
+
if (this.logger)
|
|
4112
|
+
retrier.logger = this.logger;
|
|
4113
|
+
const request = yield oci_common_2.composeRequest({
|
|
4114
|
+
baseEndpoint: this._endpoint,
|
|
4115
|
+
defaultHeaders: this._defaultHeaders,
|
|
4116
|
+
path: "/schedules/{scheduleId}",
|
|
4117
|
+
method: "GET",
|
|
4118
|
+
pathParams: pathParams,
|
|
4119
|
+
headerParams: headerParams,
|
|
4120
|
+
queryParams: queryParams
|
|
4121
|
+
});
|
|
4122
|
+
try {
|
|
4123
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
4124
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
4125
|
+
responseObject: {},
|
|
4126
|
+
body: yield response.json(),
|
|
4127
|
+
bodyKey: "schedule",
|
|
4128
|
+
bodyModel: model.Schedule,
|
|
4129
|
+
type: "model.Schedule",
|
|
4130
|
+
responseHeaders: [
|
|
4131
|
+
{
|
|
4132
|
+
value: response.headers.get("etag"),
|
|
4133
|
+
key: "etag",
|
|
4134
|
+
dataType: "string"
|
|
4135
|
+
},
|
|
4136
|
+
{
|
|
4137
|
+
value: response.headers.get("opc-request-id"),
|
|
4138
|
+
key: "opcRequestId",
|
|
4139
|
+
dataType: "string"
|
|
4140
|
+
}
|
|
4141
|
+
]
|
|
4142
|
+
});
|
|
4143
|
+
return sdkResponse;
|
|
4144
|
+
}
|
|
4145
|
+
catch (err) {
|
|
4146
|
+
throw err;
|
|
4147
|
+
}
|
|
4148
|
+
});
|
|
4149
|
+
}
|
|
3764
4150
|
/**
|
|
3765
4151
|
* Download the artifact for a step in the pipeline.
|
|
3766
4152
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
@@ -4212,6 +4598,122 @@ class DataScienceClient {
|
|
|
4212
4598
|
}
|
|
4213
4599
|
});
|
|
4214
4600
|
}
|
|
4601
|
+
/**
|
|
4602
|
+
* List containers.
|
|
4603
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
4604
|
+
* @param ListContainersRequest
|
|
4605
|
+
* @return ListContainersResponse
|
|
4606
|
+
* @throws OciError when an error occurs
|
|
4607
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/ListContainers.ts.html |here} to see how to use ListContainers API.
|
|
4608
|
+
*/
|
|
4609
|
+
listContainers(listContainersRequest) {
|
|
4610
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4611
|
+
if (this.logger)
|
|
4612
|
+
this.logger.debug("Calling operation DataScienceClient#listContainers.");
|
|
4613
|
+
const operationName = "listContainers";
|
|
4614
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/ContainerSummary/ListContainers";
|
|
4615
|
+
const pathParams = {};
|
|
4616
|
+
const queryParams = {
|
|
4617
|
+
"isLatest": listContainersRequest.isLatest,
|
|
4618
|
+
"displayName": listContainersRequest.displayName,
|
|
4619
|
+
"containerName": listContainersRequest.containerName,
|
|
4620
|
+
"lifecycleState": listContainersRequest.lifecycleState,
|
|
4621
|
+
"targetWorkload": listContainersRequest.targetWorkload,
|
|
4622
|
+
"usageQueryParam": listContainersRequest.usageQueryParam,
|
|
4623
|
+
"tagQueryParam": listContainersRequest.tagQueryParam,
|
|
4624
|
+
"limit": listContainersRequest.limit,
|
|
4625
|
+
"page": listContainersRequest.page
|
|
4626
|
+
};
|
|
4627
|
+
let headerParams = {
|
|
4628
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4629
|
+
"opc-request-id": listContainersRequest.opcRequestId
|
|
4630
|
+
};
|
|
4631
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4632
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listContainersRequest.retryConfiguration, specRetryConfiguration);
|
|
4633
|
+
if (this.logger)
|
|
4634
|
+
retrier.logger = this.logger;
|
|
4635
|
+
const request = yield oci_common_2.composeRequest({
|
|
4636
|
+
baseEndpoint: this._endpoint,
|
|
4637
|
+
defaultHeaders: this._defaultHeaders,
|
|
4638
|
+
path: "/containers",
|
|
4639
|
+
method: "GET",
|
|
4640
|
+
pathParams: pathParams,
|
|
4641
|
+
headerParams: headerParams,
|
|
4642
|
+
queryParams: queryParams
|
|
4643
|
+
});
|
|
4644
|
+
try {
|
|
4645
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
4646
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
4647
|
+
responseObject: {},
|
|
4648
|
+
body: yield response.json(),
|
|
4649
|
+
bodyKey: "items",
|
|
4650
|
+
bodyModel: model.ContainerSummary,
|
|
4651
|
+
type: "Array<model.ContainerSummary>",
|
|
4652
|
+
responseHeaders: [
|
|
4653
|
+
{
|
|
4654
|
+
value: response.headers.get("opc-next-page"),
|
|
4655
|
+
key: "opcNextPage",
|
|
4656
|
+
dataType: "string"
|
|
4657
|
+
},
|
|
4658
|
+
{
|
|
4659
|
+
value: response.headers.get("opc-prev-page"),
|
|
4660
|
+
key: "opcPrevPage",
|
|
4661
|
+
dataType: "string"
|
|
4662
|
+
},
|
|
4663
|
+
{
|
|
4664
|
+
value: response.headers.get("opc-request-id"),
|
|
4665
|
+
key: "opcRequestId",
|
|
4666
|
+
dataType: "string"
|
|
4667
|
+
}
|
|
4668
|
+
]
|
|
4669
|
+
});
|
|
4670
|
+
return sdkResponse;
|
|
4671
|
+
}
|
|
4672
|
+
catch (err) {
|
|
4673
|
+
throw err;
|
|
4674
|
+
}
|
|
4675
|
+
});
|
|
4676
|
+
}
|
|
4677
|
+
/**
|
|
4678
|
+
* NOTE: This function is deprecated in favor of listContainersRecordIterator function.
|
|
4679
|
+
* Creates a new async iterator which will iterate over the models.ContainerSummary objects
|
|
4680
|
+
* contained in responses from the listContainers operation. This iterator will fetch more data from the
|
|
4681
|
+
* server as needed.
|
|
4682
|
+
*
|
|
4683
|
+
* @param request a request which can be sent to the service operation
|
|
4684
|
+
*/
|
|
4685
|
+
listAllContainers(request) {
|
|
4686
|
+
return oci_common_1.paginateRecords(request, req => this.listContainers(req));
|
|
4687
|
+
}
|
|
4688
|
+
/**
|
|
4689
|
+
* NOTE: This function is deprecated in favor of listContainersResponseIterator function.
|
|
4690
|
+
* Creates a new async iterator which will iterate over the responses received from the listContainers operation. This iterator
|
|
4691
|
+
* will fetch more data from the server as needed.
|
|
4692
|
+
*
|
|
4693
|
+
* @param request a request which can be sent to the service operation
|
|
4694
|
+
*/
|
|
4695
|
+
listAllContainersResponses(request) {
|
|
4696
|
+
return oci_common_1.paginateResponses(request, req => this.listContainers(req));
|
|
4697
|
+
}
|
|
4698
|
+
/**
|
|
4699
|
+
* Creates a new async iterator which will iterate over the models.ContainerSummary objects
|
|
4700
|
+
* contained in responses from the listContainers operation. This iterator will fetch more data from the
|
|
4701
|
+
* server as needed.
|
|
4702
|
+
*
|
|
4703
|
+
* @param request a request which can be sent to the service operation
|
|
4704
|
+
*/
|
|
4705
|
+
listContainersRecordIterator(request) {
|
|
4706
|
+
return oci_common_1.paginateRecords(request, req => this.listContainers(req));
|
|
4707
|
+
}
|
|
4708
|
+
/**
|
|
4709
|
+
* Creates a new async iterator which will iterate over the responses received from the listContainers operation. This iterator
|
|
4710
|
+
* will fetch more data from the server as needed.
|
|
4711
|
+
*
|
|
4712
|
+
* @param request a request which can be sent to the service operation
|
|
4713
|
+
*/
|
|
4714
|
+
listContainersResponseIterator(request) {
|
|
4715
|
+
return oci_common_1.paginateResponses(request, req => this.listContainers(req));
|
|
4716
|
+
}
|
|
4215
4717
|
/**
|
|
4216
4718
|
* Lists all Data Science private endpoints in the specified compartment. The query must include compartmentId. The query can also include one other parameter. If the query doesn't include compartmentId, or includes compartmentId with two or more other parameters, then an error is returned.
|
|
4217
4719
|
*
|
|
@@ -5824,6 +6326,118 @@ class DataScienceClient {
|
|
|
5824
6326
|
listProjectsResponseIterator(request) {
|
|
5825
6327
|
return oci_common_1.paginateResponses(request, req => this.listProjects(req));
|
|
5826
6328
|
}
|
|
6329
|
+
/**
|
|
6330
|
+
* Returns a list of Schedules.
|
|
6331
|
+
*
|
|
6332
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
6333
|
+
* @param ListSchedulesRequest
|
|
6334
|
+
* @return ListSchedulesResponse
|
|
6335
|
+
* @throws OciError when an error occurs
|
|
6336
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/ListSchedules.ts.html |here} to see how to use ListSchedules API.
|
|
6337
|
+
*/
|
|
6338
|
+
listSchedules(listSchedulesRequest) {
|
|
6339
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6340
|
+
if (this.logger)
|
|
6341
|
+
this.logger.debug("Calling operation DataScienceClient#listSchedules.");
|
|
6342
|
+
const operationName = "listSchedules";
|
|
6343
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Schedule/ListSchedules";
|
|
6344
|
+
const pathParams = {};
|
|
6345
|
+
const queryParams = {
|
|
6346
|
+
"compartmentId": listSchedulesRequest.compartmentId,
|
|
6347
|
+
"projectId": listSchedulesRequest.projectId,
|
|
6348
|
+
"lifecycleState": listSchedulesRequest.lifecycleState,
|
|
6349
|
+
"displayName": listSchedulesRequest.displayName,
|
|
6350
|
+
"id": listSchedulesRequest.id,
|
|
6351
|
+
"limit": listSchedulesRequest.limit,
|
|
6352
|
+
"page": listSchedulesRequest.page,
|
|
6353
|
+
"sortOrder": listSchedulesRequest.sortOrder,
|
|
6354
|
+
"sortBy": listSchedulesRequest.sortBy
|
|
6355
|
+
};
|
|
6356
|
+
let headerParams = {
|
|
6357
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
6358
|
+
"opc-request-id": listSchedulesRequest.opcRequestId
|
|
6359
|
+
};
|
|
6360
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
6361
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listSchedulesRequest.retryConfiguration, specRetryConfiguration);
|
|
6362
|
+
if (this.logger)
|
|
6363
|
+
retrier.logger = this.logger;
|
|
6364
|
+
const request = yield oci_common_2.composeRequest({
|
|
6365
|
+
baseEndpoint: this._endpoint,
|
|
6366
|
+
defaultHeaders: this._defaultHeaders,
|
|
6367
|
+
path: "/schedules",
|
|
6368
|
+
method: "GET",
|
|
6369
|
+
pathParams: pathParams,
|
|
6370
|
+
headerParams: headerParams,
|
|
6371
|
+
queryParams: queryParams
|
|
6372
|
+
});
|
|
6373
|
+
try {
|
|
6374
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
6375
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
6376
|
+
responseObject: {},
|
|
6377
|
+
body: yield response.json(),
|
|
6378
|
+
bodyKey: "items",
|
|
6379
|
+
bodyModel: model.ScheduleSummary,
|
|
6380
|
+
type: "Array<model.ScheduleSummary>",
|
|
6381
|
+
responseHeaders: [
|
|
6382
|
+
{
|
|
6383
|
+
value: response.headers.get("opc-request-id"),
|
|
6384
|
+
key: "opcRequestId",
|
|
6385
|
+
dataType: "string"
|
|
6386
|
+
},
|
|
6387
|
+
{
|
|
6388
|
+
value: response.headers.get("opc-next-page"),
|
|
6389
|
+
key: "opcNextPage",
|
|
6390
|
+
dataType: "string"
|
|
6391
|
+
}
|
|
6392
|
+
]
|
|
6393
|
+
});
|
|
6394
|
+
return sdkResponse;
|
|
6395
|
+
}
|
|
6396
|
+
catch (err) {
|
|
6397
|
+
throw err;
|
|
6398
|
+
}
|
|
6399
|
+
});
|
|
6400
|
+
}
|
|
6401
|
+
/**
|
|
6402
|
+
* NOTE: This function is deprecated in favor of listSchedulesRecordIterator function.
|
|
6403
|
+
* Creates a new async iterator which will iterate over the models.ScheduleSummary objects
|
|
6404
|
+
* contained in responses from the listSchedules operation. This iterator will fetch more data from the
|
|
6405
|
+
* server as needed.
|
|
6406
|
+
*
|
|
6407
|
+
* @param request a request which can be sent to the service operation
|
|
6408
|
+
*/
|
|
6409
|
+
listAllSchedules(request) {
|
|
6410
|
+
return oci_common_1.paginateRecords(request, req => this.listSchedules(req));
|
|
6411
|
+
}
|
|
6412
|
+
/**
|
|
6413
|
+
* NOTE: This function is deprecated in favor of listSchedulesResponseIterator function.
|
|
6414
|
+
* Creates a new async iterator which will iterate over the responses received from the listSchedules operation. This iterator
|
|
6415
|
+
* will fetch more data from the server as needed.
|
|
6416
|
+
*
|
|
6417
|
+
* @param request a request which can be sent to the service operation
|
|
6418
|
+
*/
|
|
6419
|
+
listAllSchedulesResponses(request) {
|
|
6420
|
+
return oci_common_1.paginateResponses(request, req => this.listSchedules(req));
|
|
6421
|
+
}
|
|
6422
|
+
/**
|
|
6423
|
+
* Creates a new async iterator which will iterate over the models.ScheduleSummary objects
|
|
6424
|
+
* contained in responses from the listSchedules operation. This iterator will fetch more data from the
|
|
6425
|
+
* server as needed.
|
|
6426
|
+
*
|
|
6427
|
+
* @param request a request which can be sent to the service operation
|
|
6428
|
+
*/
|
|
6429
|
+
listSchedulesRecordIterator(request) {
|
|
6430
|
+
return oci_common_1.paginateRecords(request, req => this.listSchedules(req));
|
|
6431
|
+
}
|
|
6432
|
+
/**
|
|
6433
|
+
* Creates a new async iterator which will iterate over the responses received from the listSchedules operation. This iterator
|
|
6434
|
+
* will fetch more data from the server as needed.
|
|
6435
|
+
*
|
|
6436
|
+
* @param request a request which can be sent to the service operation
|
|
6437
|
+
*/
|
|
6438
|
+
listSchedulesResponseIterator(request) {
|
|
6439
|
+
return oci_common_1.paginateResponses(request, req => this.listSchedules(req));
|
|
6440
|
+
}
|
|
5827
6441
|
/**
|
|
5828
6442
|
* Lists work request errors for the specified work request.
|
|
5829
6443
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
@@ -6945,6 +7559,67 @@ class DataScienceClient {
|
|
|
6945
7559
|
}
|
|
6946
7560
|
});
|
|
6947
7561
|
}
|
|
7562
|
+
/**
|
|
7563
|
+
* Updates the Schedule
|
|
7564
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
7565
|
+
* @param UpdateScheduleRequest
|
|
7566
|
+
* @return UpdateScheduleResponse
|
|
7567
|
+
* @throws OciError when an error occurs
|
|
7568
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/UpdateSchedule.ts.html |here} to see how to use UpdateSchedule API.
|
|
7569
|
+
*/
|
|
7570
|
+
updateSchedule(updateScheduleRequest) {
|
|
7571
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7572
|
+
if (this.logger)
|
|
7573
|
+
this.logger.debug("Calling operation DataScienceClient#updateSchedule.");
|
|
7574
|
+
const operationName = "updateSchedule";
|
|
7575
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Schedule/UpdateSchedule";
|
|
7576
|
+
const pathParams = {
|
|
7577
|
+
"{scheduleId}": updateScheduleRequest.scheduleId
|
|
7578
|
+
};
|
|
7579
|
+
const queryParams = {};
|
|
7580
|
+
let headerParams = {
|
|
7581
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
7582
|
+
"if-match": updateScheduleRequest.ifMatch,
|
|
7583
|
+
"opc-request-id": updateScheduleRequest.opcRequestId
|
|
7584
|
+
};
|
|
7585
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
7586
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateScheduleRequest.retryConfiguration, specRetryConfiguration);
|
|
7587
|
+
if (this.logger)
|
|
7588
|
+
retrier.logger = this.logger;
|
|
7589
|
+
const request = yield oci_common_2.composeRequest({
|
|
7590
|
+
baseEndpoint: this._endpoint,
|
|
7591
|
+
defaultHeaders: this._defaultHeaders,
|
|
7592
|
+
path: "/schedules/{scheduleId}",
|
|
7593
|
+
method: "PUT",
|
|
7594
|
+
bodyContent: common.ObjectSerializer.serialize(updateScheduleRequest.updateScheduleDetails, "UpdateScheduleDetails", model.UpdateScheduleDetails.getJsonObj),
|
|
7595
|
+
pathParams: pathParams,
|
|
7596
|
+
headerParams: headerParams,
|
|
7597
|
+
queryParams: queryParams
|
|
7598
|
+
});
|
|
7599
|
+
try {
|
|
7600
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
7601
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
7602
|
+
responseObject: {},
|
|
7603
|
+
responseHeaders: [
|
|
7604
|
+
{
|
|
7605
|
+
value: response.headers.get("opc-request-id"),
|
|
7606
|
+
key: "opcRequestId",
|
|
7607
|
+
dataType: "string"
|
|
7608
|
+
},
|
|
7609
|
+
{
|
|
7610
|
+
value: response.headers.get("opc-work-request-id"),
|
|
7611
|
+
key: "opcWorkRequestId",
|
|
7612
|
+
dataType: "string"
|
|
7613
|
+
}
|
|
7614
|
+
]
|
|
7615
|
+
});
|
|
7616
|
+
return sdkResponse;
|
|
7617
|
+
}
|
|
7618
|
+
catch (err) {
|
|
7619
|
+
throw err;
|
|
7620
|
+
}
|
|
7621
|
+
});
|
|
7622
|
+
}
|
|
6948
7623
|
}
|
|
6949
7624
|
exports.DataScienceClient = DataScienceClient;
|
|
6950
7625
|
DataScienceClient.serviceEndpointTemplate = "https://datascience.{region}.oci.{secondLevelDomain}";
|