oci-dif 2.121.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +89 -0
- package/NOTICE.txt +1 -0
- package/README.md +22 -0
- package/THIRD_PARTY_LICENSES.txt +576 -0
- package/index.d.ts +22 -0
- package/index.js +45 -0
- package/index.js.map +1 -0
- package/lib/client.d.ts +222 -0
- package/lib/client.js +1066 -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/adb-artifacts-detail.d.ts +34 -0
- package/lib/model/adb-artifacts-detail.js +61 -0
- package/lib/model/adb-artifacts-detail.js.map +1 -0
- package/lib/model/adb-detail.d.ts +62 -0
- package/lib/model/adb-detail.js +29 -0
- package/lib/model/adb-detail.js.map +1 -0
- package/lib/model/adb-update-detail.d.ts +37 -0
- package/lib/model/adb-update-detail.js +29 -0
- package/lib/model/adb-update-detail.js.map +1 -0
- package/lib/model/add-service-details.d.ts +63 -0
- package/lib/model/add-service-details.js +116 -0
- package/lib/model/add-service-details.js.map +1 -0
- package/lib/model/additional-details.d.ts +46 -0
- package/lib/model/additional-details.js +71 -0
- package/lib/model/additional-details.js.map +1 -0
- package/lib/model/assigned-connection-details.d.ts +33 -0
- package/lib/model/assigned-connection-details.js +29 -0
- package/lib/model/assigned-connection-details.js.map +1 -0
- package/lib/model/auto-tiering.d.ts +28 -0
- package/lib/model/auto-tiering.js +39 -0
- package/lib/model/auto-tiering.js.map +1 -0
- package/lib/model/change-stack-compartment-details.d.ts +26 -0
- package/lib/model/change-stack-compartment-details.js +29 -0
- package/lib/model/change-stack-compartment-details.js.map +1 -0
- package/lib/model/cluster-type.d.ts +27 -0
- package/lib/model/cluster-type.js +38 -0
- package/lib/model/cluster-type.js.map +1 -0
- package/lib/model/create-stack-details.d.ts +98 -0
- package/lib/model/create-stack-details.js +116 -0
- package/lib/model/create-stack-details.js.map +1 -0
- package/lib/model/dataflow-artifacts-detail.d.ts +33 -0
- package/lib/model/dataflow-artifacts-detail.js +29 -0
- package/lib/model/dataflow-artifacts-detail.js.map +1 -0
- package/lib/model/dataflow-connection-details.d.ts +30 -0
- package/lib/model/dataflow-connection-details.js +61 -0
- package/lib/model/dataflow-connection-details.js.map +1 -0
- package/lib/model/dataflow-connections.d.ts +27 -0
- package/lib/model/dataflow-connections.js +57 -0
- package/lib/model/dataflow-connections.js.map +1 -0
- package/lib/model/dataflow-detail.d.ts +57 -0
- package/lib/model/dataflow-detail.js +69 -0
- package/lib/model/dataflow-detail.js.map +1 -0
- package/lib/model/dataflow-update-detail.d.ts +57 -0
- package/lib/model/dataflow-update-detail.js +69 -0
- package/lib/model/dataflow-update-detail.js.map +1 -0
- package/lib/model/db-credentials-detail.d.ts +33 -0
- package/lib/model/db-credentials-detail.js +29 -0
- package/lib/model/db-credentials-detail.js.map +1 -0
- package/lib/model/db-workload.d.ts +28 -0
- package/lib/model/db-workload.js +39 -0
- package/lib/model/db-workload.js.map +1 -0
- package/lib/model/deploy-artifacts-details.d.ts +59 -0
- package/lib/model/deploy-artifacts-details.js +96 -0
- package/lib/model/deploy-artifacts-details.js.map +1 -0
- package/lib/model/dif-dependency-details.d.ts +29 -0
- package/lib/model/dif-dependency-details.js +29 -0
- package/lib/model/dif-dependency-details.js.map +1 -0
- package/lib/model/endpoint-additional.d.ts +29 -0
- package/lib/model/endpoint-additional.js +29 -0
- package/lib/model/endpoint-additional.js.map +1 -0
- package/lib/model/endpoint-details.d.ts +29 -0
- package/lib/model/endpoint-details.js +29 -0
- package/lib/model/endpoint-details.js.map +1 -0
- package/lib/model/gen-ai-detail.d.ts +46 -0
- package/lib/model/gen-ai-detail.js +61 -0
- package/lib/model/gen-ai-detail.js.map +1 -0
- package/lib/model/gen-ai-update-detail.d.ts +34 -0
- package/lib/model/gen-ai-update-detail.js +61 -0
- package/lib/model/gen-ai-update-detail.js.map +1 -0
- package/lib/model/ggcs-artifacts-detail.d.ts +42 -0
- package/lib/model/ggcs-artifacts-detail.js +81 -0
- package/lib/model/ggcs-artifacts-detail.js.map +1 -0
- package/lib/model/ggcs-connection-details.d.ts +38 -0
- package/lib/model/ggcs-connection-details.js +61 -0
- package/lib/model/ggcs-connection-details.js.map +1 -0
- package/lib/model/ggcs-detail.d.ts +50 -0
- package/lib/model/ggcs-detail.js +61 -0
- package/lib/model/ggcs-detail.js.map +1 -0
- package/lib/model/ggcs-source-detail.d.ts +42 -0
- package/lib/model/ggcs-source-detail.js +29 -0
- package/lib/model/ggcs-source-detail.js.map +1 -0
- package/lib/model/ggcs-target-detail.d.ts +42 -0
- package/lib/model/ggcs-target-detail.js +29 -0
- package/lib/model/ggcs-target-detail.js.map +1 -0
- package/lib/model/ggcs-update-detail.d.ts +38 -0
- package/lib/model/ggcs-update-detail.js +61 -0
- package/lib/model/ggcs-update-detail.js.map +1 -0
- package/lib/model/ggcs-user-detail.d.ts +38 -0
- package/lib/model/ggcs-user-detail.js +29 -0
- package/lib/model/ggcs-user-detail.js.map +1 -0
- package/lib/model/index.d.ts +126 -0
- package/lib/model/index.js +150 -0
- package/lib/model/index.js.map +1 -0
- package/lib/model/object-storage-detail.d.ts +38 -0
- package/lib/model/object-storage-detail.js +29 -0
- package/lib/model/object-storage-detail.js.map +1 -0
- package/lib/model/object-storage-update-detail.d.ts +34 -0
- package/lib/model/object-storage-update-detail.js +29 -0
- package/lib/model/object-storage-update-detail.js.map +1 -0
- package/lib/model/object-versioning.d.ts +29 -0
- package/lib/model/object-versioning.js +40 -0
- package/lib/model/object-versioning.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 +32 -0
- package/lib/model/operation-type.js +43 -0
- package/lib/model/operation-type.js.map +1 -0
- package/lib/model/service-detail-response.d.ts +51 -0
- package/lib/model/service-detail-response.js +57 -0
- package/lib/model/service-detail-response.js.map +1 -0
- package/lib/model/service.d.ts +31 -0
- package/lib/model/service.js +42 -0
- package/lib/model/service.js.map +1 -0
- package/lib/model/shape-config.d.ts +29 -0
- package/lib/model/shape-config.js +29 -0
- package/lib/model/shape-config.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/stack-collection.d.ts +26 -0
- package/lib/model/stack-collection.js +61 -0
- package/lib/model/stack-collection.js.map +1 -0
- package/lib/model/stack-summary.d.ts +90 -0
- package/lib/model/stack-summary.js +29 -0
- package/lib/model/stack-summary.js.map +1 -0
- package/lib/model/stack-template.d.ts +30 -0
- package/lib/model/stack-template.js +41 -0
- package/lib/model/stack-template.js.map +1 -0
- package/lib/model/stack.d.ts +169 -0
- package/lib/model/stack.js +151 -0
- package/lib/model/stack.js.map +1 -0
- package/lib/model/storage-tier.d.ts +28 -0
- package/lib/model/storage-tier.js +39 -0
- package/lib/model/storage-tier.js.map +1 -0
- package/lib/model/update-dataflow-connections.d.ts +23 -0
- package/lib/model/update-dataflow-connections.js +57 -0
- package/lib/model/update-dataflow-connections.js.map +1 -0
- package/lib/model/update-stack-details.d.ts +89 -0
- package/lib/model/update-stack-details.js +116 -0
- package/lib/model/update-stack-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/model/workflow-action.d.ts +23 -0
- package/lib/model/workflow-action.js +34 -0
- package/lib/model/workflow-action.js.map +1 -0
- package/lib/request/add-service-request.d.ts +43 -0
- package/lib/request/add-service-request.js +15 -0
- package/lib/request/add-service-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-stack-compartment-request.d.ts +43 -0
- package/lib/request/change-stack-compartment-request.js +15 -0
- package/lib/request/change-stack-compartment-request.js.map +1 -0
- package/lib/request/create-stack-request.d.ts +40 -0
- package/lib/request/create-stack-request.js +15 -0
- package/lib/request/create-stack-request.js.map +1 -0
- package/lib/request/delete-stack-request.d.ts +38 -0
- package/lib/request/delete-stack-request.js +15 -0
- package/lib/request/delete-stack-request.js.map +1 -0
- package/lib/request/deploy-artifacts-request.d.ts +52 -0
- package/lib/request/deploy-artifacts-request.js +15 -0
- package/lib/request/deploy-artifacts-request.js.map +1 -0
- package/lib/request/get-stack-request.d.ts +30 -0
- package/lib/request/get-stack-request.js +15 -0
- package/lib/request/get-stack-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 +38 -0
- package/lib/request/index.js +43 -0
- package/lib/request/index.js.map +1 -0
- package/lib/request/list-stacks-request.d.ts +75 -0
- package/lib/request/list-stacks-request.js +24 -0
- package/lib/request/list-stacks-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-stack-request.d.ts +43 -0
- package/lib/request/update-stack-request.js +15 -0
- package/lib/request/update-stack-request.js.map +1 -0
- package/lib/response/add-service-response.d.ts +26 -0
- package/lib/response/add-service-response.js +15 -0
- package/lib/response/add-service-response.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-stack-compartment-response.d.ts +26 -0
- package/lib/response/change-stack-compartment-response.js +15 -0
- package/lib/response/change-stack-compartment-response.js.map +1 -0
- package/lib/response/create-stack-response.d.ts +44 -0
- package/lib/response/create-stack-response.js +15 -0
- package/lib/response/create-stack-response.js.map +1 -0
- package/lib/response/delete-stack-response.d.ts +26 -0
- package/lib/response/delete-stack-response.js +15 -0
- package/lib/response/delete-stack-response.js.map +1 -0
- package/lib/response/deploy-artifacts-response.d.ts +26 -0
- package/lib/response/deploy-artifacts-response.js +15 -0
- package/lib/response/deploy-artifacts-response.js.map +1 -0
- package/lib/response/get-stack-response.d.ts +30 -0
- package/lib/response/get-stack-response.js +15 -0
- package/lib/response/get-stack-response.js.map +1 -0
- package/lib/response/get-work-request-response.d.ts +34 -0
- package/lib/response/get-work-request-response.js +15 -0
- package/lib/response/get-work-request-response.js.map +1 -0
- package/lib/response/index.d.ts +38 -0
- package/lib/response/index.js +15 -0
- package/lib/response/index.js.map +1 -0
- package/lib/response/list-stacks-response.d.ts +31 -0
- package/lib/response/list-stacks-response.js +15 -0
- package/lib/response/list-stacks-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-stack-response.d.ts +26 -0
- package/lib/response/update-stack-response.js +15 -0
- package/lib/response/update-stack-response.js.map +1 -0
- package/lib/stack-waiter.d.ts +36 -0
- package/lib/stack-waiter.js +76 -0
- package/lib/stack-waiter.js.map +1 -0
- package/package.json +29 -0
package/lib/client.js
ADDED
|
@@ -0,0 +1,1066 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* DataIntelligences Control Plane API
|
|
4
|
+
* Use the DataIntelligences Control Plane API to manage dataIntelligences.
|
|
5
|
+
* OpenAPI spec version: 20250830
|
|
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.StackClient = exports.StackApiKeys = void 0;
|
|
44
|
+
const common = require("oci-common");
|
|
45
|
+
const model = __importStar(require("./model"));
|
|
46
|
+
const stack_waiter_1 = require("./stack-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 StackApiKeys;
|
|
53
|
+
(function (StackApiKeys) {
|
|
54
|
+
})(StackApiKeys = exports.StackApiKeys || (exports.StackApiKeys = {}));
|
|
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 StackClient {
|
|
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 = "Stack";
|
|
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("dif")) {
|
|
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("dif");
|
|
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 + "/20250830";
|
|
120
|
+
if (this.logger)
|
|
121
|
+
this.logger.info(`StackClient 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(StackClient.serviceEndpointTemplate, this._region, StackClient.endpointServiceName);
|
|
137
|
+
}
|
|
138
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
139
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(StackClient.serviceEndpointTemplate, this._regionId, StackClient.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(StackClient.serviceEndpointTemplate, region, StackClient.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(StackClient.serviceEndpointTemplate, regionId, StackClient.endpointServiceName);
|
|
163
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Creates a new StackWaiter 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 stack_waiter_1.StackWaiter(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
|
+
* Add new service or update existing service.
|
|
212
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
213
|
+
* @param AddServiceRequest
|
|
214
|
+
* @return AddServiceResponse
|
|
215
|
+
* @throws OciError when an error occurs
|
|
216
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dif/AddService.ts.html |here} to see how to use AddService API.
|
|
217
|
+
*/
|
|
218
|
+
addService(addServiceRequest) {
|
|
219
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
220
|
+
if (this.logger)
|
|
221
|
+
this.logger.debug("Calling operation StackClient#addService.");
|
|
222
|
+
const operationName = "addService";
|
|
223
|
+
const apiReferenceLink = "";
|
|
224
|
+
const pathParams = {
|
|
225
|
+
"{stackId}": addServiceRequest.stackId
|
|
226
|
+
};
|
|
227
|
+
const queryParams = {};
|
|
228
|
+
let headerParams = {
|
|
229
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
230
|
+
"if-match": addServiceRequest.ifMatch,
|
|
231
|
+
"opc-request-id": addServiceRequest.opcRequestId
|
|
232
|
+
};
|
|
233
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
234
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, addServiceRequest.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: "/stacks/{stackId}/actions/addService",
|
|
241
|
+
method: "POST",
|
|
242
|
+
bodyContent: common.ObjectSerializer.serialize(addServiceRequest.addServiceDetails, "AddServiceDetails", model.AddServiceDetails.getJsonObj),
|
|
243
|
+
pathParams: pathParams,
|
|
244
|
+
headerParams: headerParams,
|
|
245
|
+
queryParams: queryParams
|
|
246
|
+
});
|
|
247
|
+
try {
|
|
248
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
249
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
250
|
+
responseObject: {},
|
|
251
|
+
responseHeaders: [
|
|
252
|
+
{
|
|
253
|
+
value: response.headers.get("opc-work-request-id"),
|
|
254
|
+
key: "opcWorkRequestId",
|
|
255
|
+
dataType: "string"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
value: response.headers.get("opc-request-id"),
|
|
259
|
+
key: "opcRequestId",
|
|
260
|
+
dataType: "string"
|
|
261
|
+
}
|
|
262
|
+
]
|
|
263
|
+
});
|
|
264
|
+
return sdkResponse;
|
|
265
|
+
}
|
|
266
|
+
catch (err) {
|
|
267
|
+
throw err;
|
|
268
|
+
}
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* Cancels a work request.
|
|
273
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
274
|
+
* @param CancelWorkRequestRequest
|
|
275
|
+
* @return CancelWorkRequestResponse
|
|
276
|
+
* @throws OciError when an error occurs
|
|
277
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dif/CancelWorkRequest.ts.html |here} to see how to use CancelWorkRequest API.
|
|
278
|
+
*/
|
|
279
|
+
cancelWorkRequest(cancelWorkRequestRequest) {
|
|
280
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
281
|
+
if (this.logger)
|
|
282
|
+
this.logger.debug("Calling operation StackClient#cancelWorkRequest.");
|
|
283
|
+
const operationName = "cancelWorkRequest";
|
|
284
|
+
const apiReferenceLink = "";
|
|
285
|
+
const pathParams = {
|
|
286
|
+
"{workRequestId}": cancelWorkRequestRequest.workRequestId
|
|
287
|
+
};
|
|
288
|
+
const queryParams = {};
|
|
289
|
+
let headerParams = {
|
|
290
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
291
|
+
"if-match": cancelWorkRequestRequest.ifMatch,
|
|
292
|
+
"opc-request-id": cancelWorkRequestRequest.opcRequestId
|
|
293
|
+
};
|
|
294
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
295
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
296
|
+
if (this.logger)
|
|
297
|
+
retrier.logger = this.logger;
|
|
298
|
+
const request = yield oci_common_1.composeRequest({
|
|
299
|
+
baseEndpoint: this._endpoint,
|
|
300
|
+
defaultHeaders: this._defaultHeaders,
|
|
301
|
+
path: "/workRequests/{workRequestId}",
|
|
302
|
+
method: "DELETE",
|
|
303
|
+
pathParams: pathParams,
|
|
304
|
+
headerParams: headerParams,
|
|
305
|
+
queryParams: queryParams
|
|
306
|
+
});
|
|
307
|
+
try {
|
|
308
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
309
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
310
|
+
responseObject: {},
|
|
311
|
+
responseHeaders: [
|
|
312
|
+
{
|
|
313
|
+
value: response.headers.get("opc-request-id"),
|
|
314
|
+
key: "opcRequestId",
|
|
315
|
+
dataType: "string"
|
|
316
|
+
}
|
|
317
|
+
]
|
|
318
|
+
});
|
|
319
|
+
return sdkResponse;
|
|
320
|
+
}
|
|
321
|
+
catch (err) {
|
|
322
|
+
throw err;
|
|
323
|
+
}
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* Moves a Stack into a different compartment within the same tenancy. For information about moving resources between
|
|
328
|
+
* compartments, see [Moving Resources to a Different Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
|
|
329
|
+
*
|
|
330
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
331
|
+
* @param ChangeStackCompartmentRequest
|
|
332
|
+
* @return ChangeStackCompartmentResponse
|
|
333
|
+
* @throws OciError when an error occurs
|
|
334
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dif/ChangeStackCompartment.ts.html |here} to see how to use ChangeStackCompartment API.
|
|
335
|
+
*/
|
|
336
|
+
changeStackCompartment(changeStackCompartmentRequest) {
|
|
337
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
338
|
+
if (this.logger)
|
|
339
|
+
this.logger.debug("Calling operation StackClient#changeStackCompartment.");
|
|
340
|
+
const operationName = "changeStackCompartment";
|
|
341
|
+
const apiReferenceLink = "";
|
|
342
|
+
const pathParams = {
|
|
343
|
+
"{stackId}": changeStackCompartmentRequest.stackId
|
|
344
|
+
};
|
|
345
|
+
const queryParams = {};
|
|
346
|
+
let headerParams = {
|
|
347
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
348
|
+
"if-match": changeStackCompartmentRequest.ifMatch,
|
|
349
|
+
"opc-request-id": changeStackCompartmentRequest.opcRequestId
|
|
350
|
+
};
|
|
351
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
352
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeStackCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
353
|
+
if (this.logger)
|
|
354
|
+
retrier.logger = this.logger;
|
|
355
|
+
const request = yield oci_common_1.composeRequest({
|
|
356
|
+
baseEndpoint: this._endpoint,
|
|
357
|
+
defaultHeaders: this._defaultHeaders,
|
|
358
|
+
path: "/stacks/{stackId}/actions/changeCompartment",
|
|
359
|
+
method: "POST",
|
|
360
|
+
bodyContent: common.ObjectSerializer.serialize(changeStackCompartmentRequest.changeStackCompartmentDetails, "ChangeStackCompartmentDetails", model.ChangeStackCompartmentDetails.getJsonObj),
|
|
361
|
+
pathParams: pathParams,
|
|
362
|
+
headerParams: headerParams,
|
|
363
|
+
queryParams: queryParams
|
|
364
|
+
});
|
|
365
|
+
try {
|
|
366
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
367
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
368
|
+
responseObject: {},
|
|
369
|
+
responseHeaders: [
|
|
370
|
+
{
|
|
371
|
+
value: response.headers.get("opc-work-request-id"),
|
|
372
|
+
key: "opcWorkRequestId",
|
|
373
|
+
dataType: "string"
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
value: response.headers.get("opc-request-id"),
|
|
377
|
+
key: "opcRequestId",
|
|
378
|
+
dataType: "string"
|
|
379
|
+
}
|
|
380
|
+
]
|
|
381
|
+
});
|
|
382
|
+
return sdkResponse;
|
|
383
|
+
}
|
|
384
|
+
catch (err) {
|
|
385
|
+
throw err;
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* Creates a Stack.
|
|
391
|
+
*
|
|
392
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
393
|
+
* @param CreateStackRequest
|
|
394
|
+
* @return CreateStackResponse
|
|
395
|
+
* @throws OciError when an error occurs
|
|
396
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dif/CreateStack.ts.html |here} to see how to use CreateStack API.
|
|
397
|
+
*/
|
|
398
|
+
createStack(createStackRequest) {
|
|
399
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
400
|
+
if (this.logger)
|
|
401
|
+
this.logger.debug("Calling operation StackClient#createStack.");
|
|
402
|
+
const operationName = "createStack";
|
|
403
|
+
const apiReferenceLink = "";
|
|
404
|
+
const pathParams = {};
|
|
405
|
+
const queryParams = {};
|
|
406
|
+
let headerParams = {
|
|
407
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
408
|
+
"opc-retry-token": createStackRequest.opcRetryToken,
|
|
409
|
+
"opc-request-id": createStackRequest.opcRequestId
|
|
410
|
+
};
|
|
411
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
412
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createStackRequest.retryConfiguration, specRetryConfiguration);
|
|
413
|
+
if (this.logger)
|
|
414
|
+
retrier.logger = this.logger;
|
|
415
|
+
const request = yield oci_common_1.composeRequest({
|
|
416
|
+
baseEndpoint: this._endpoint,
|
|
417
|
+
defaultHeaders: this._defaultHeaders,
|
|
418
|
+
path: "/stacks",
|
|
419
|
+
method: "POST",
|
|
420
|
+
bodyContent: common.ObjectSerializer.serialize(createStackRequest.createStackDetails, "CreateStackDetails", model.CreateStackDetails.getJsonObj),
|
|
421
|
+
pathParams: pathParams,
|
|
422
|
+
headerParams: headerParams,
|
|
423
|
+
queryParams: queryParams
|
|
424
|
+
});
|
|
425
|
+
try {
|
|
426
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
427
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
428
|
+
responseObject: {},
|
|
429
|
+
body: yield response.json(),
|
|
430
|
+
bodyKey: "stack",
|
|
431
|
+
bodyModel: model.Stack,
|
|
432
|
+
type: "model.Stack",
|
|
433
|
+
responseHeaders: [
|
|
434
|
+
{
|
|
435
|
+
value: response.headers.get("location"),
|
|
436
|
+
key: "location",
|
|
437
|
+
dataType: "string"
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
value: response.headers.get("content-location"),
|
|
441
|
+
key: "contentLocation",
|
|
442
|
+
dataType: "string"
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
value: response.headers.get("etag"),
|
|
446
|
+
key: "etag",
|
|
447
|
+
dataType: "string"
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
value: response.headers.get("opc-work-request-id"),
|
|
451
|
+
key: "opcWorkRequestId",
|
|
452
|
+
dataType: "string"
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
value: response.headers.get("opc-request-id"),
|
|
456
|
+
key: "opcRequestId",
|
|
457
|
+
dataType: "string"
|
|
458
|
+
}
|
|
459
|
+
]
|
|
460
|
+
});
|
|
461
|
+
return sdkResponse;
|
|
462
|
+
}
|
|
463
|
+
catch (err) {
|
|
464
|
+
throw err;
|
|
465
|
+
}
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* Deletes a Stack.
|
|
470
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
471
|
+
* @param DeleteStackRequest
|
|
472
|
+
* @return DeleteStackResponse
|
|
473
|
+
* @throws OciError when an error occurs
|
|
474
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dif/DeleteStack.ts.html |here} to see how to use DeleteStack API.
|
|
475
|
+
*/
|
|
476
|
+
deleteStack(deleteStackRequest) {
|
|
477
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
478
|
+
if (this.logger)
|
|
479
|
+
this.logger.debug("Calling operation StackClient#deleteStack.");
|
|
480
|
+
const operationName = "deleteStack";
|
|
481
|
+
const apiReferenceLink = "";
|
|
482
|
+
const pathParams = {
|
|
483
|
+
"{stackId}": deleteStackRequest.stackId
|
|
484
|
+
};
|
|
485
|
+
const queryParams = {};
|
|
486
|
+
let headerParams = {
|
|
487
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
488
|
+
"if-match": deleteStackRequest.ifMatch,
|
|
489
|
+
"opc-request-id": deleteStackRequest.opcRequestId
|
|
490
|
+
};
|
|
491
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
492
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteStackRequest.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: "/stacks/{stackId}",
|
|
499
|
+
method: "DELETE",
|
|
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
|
+
responseHeaders: [
|
|
509
|
+
{
|
|
510
|
+
value: response.headers.get("opc-work-request-id"),
|
|
511
|
+
key: "opcWorkRequestId",
|
|
512
|
+
dataType: "string"
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
value: response.headers.get("opc-request-id"),
|
|
516
|
+
key: "opcRequestId",
|
|
517
|
+
dataType: "string"
|
|
518
|
+
}
|
|
519
|
+
]
|
|
520
|
+
});
|
|
521
|
+
return sdkResponse;
|
|
522
|
+
}
|
|
523
|
+
catch (err) {
|
|
524
|
+
throw err;
|
|
525
|
+
}
|
|
526
|
+
});
|
|
527
|
+
}
|
|
528
|
+
/**
|
|
529
|
+
* DeployArtifacts
|
|
530
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
531
|
+
* @param DeployArtifactsRequest
|
|
532
|
+
* @return DeployArtifactsResponse
|
|
533
|
+
* @throws OciError when an error occurs
|
|
534
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dif/DeployArtifacts.ts.html |here} to see how to use DeployArtifacts API.
|
|
535
|
+
*/
|
|
536
|
+
deployArtifacts(deployArtifactsRequest) {
|
|
537
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
538
|
+
if (this.logger)
|
|
539
|
+
this.logger.debug("Calling operation StackClient#deployArtifacts.");
|
|
540
|
+
const operationName = "deployArtifacts";
|
|
541
|
+
const apiReferenceLink = "";
|
|
542
|
+
const pathParams = {
|
|
543
|
+
"{stackId}": deployArtifactsRequest.stackId
|
|
544
|
+
};
|
|
545
|
+
const queryParams = {};
|
|
546
|
+
let headerParams = {
|
|
547
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
548
|
+
"if-match": deployArtifactsRequest.ifMatch,
|
|
549
|
+
"opc-request-id": deployArtifactsRequest.opcRequestId,
|
|
550
|
+
"opc-retry-token": deployArtifactsRequest.opcRetryToken
|
|
551
|
+
};
|
|
552
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
553
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deployArtifactsRequest.retryConfiguration, specRetryConfiguration);
|
|
554
|
+
if (this.logger)
|
|
555
|
+
retrier.logger = this.logger;
|
|
556
|
+
const request = yield oci_common_1.composeRequest({
|
|
557
|
+
baseEndpoint: this._endpoint,
|
|
558
|
+
defaultHeaders: this._defaultHeaders,
|
|
559
|
+
path: "/stacks/{stackId}/actions/deployArtifacts",
|
|
560
|
+
method: "POST",
|
|
561
|
+
bodyContent: common.ObjectSerializer.serialize(deployArtifactsRequest.deployArtifactsDetails, "DeployArtifactsDetails", model.DeployArtifactsDetails.getJsonObj),
|
|
562
|
+
pathParams: pathParams,
|
|
563
|
+
headerParams: headerParams,
|
|
564
|
+
queryParams: queryParams
|
|
565
|
+
});
|
|
566
|
+
try {
|
|
567
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
568
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
569
|
+
responseObject: {},
|
|
570
|
+
responseHeaders: [
|
|
571
|
+
{
|
|
572
|
+
value: response.headers.get("opc-work-request-id"),
|
|
573
|
+
key: "opcWorkRequestId",
|
|
574
|
+
dataType: "string"
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
value: response.headers.get("opc-request-id"),
|
|
578
|
+
key: "opcRequestId",
|
|
579
|
+
dataType: "string"
|
|
580
|
+
}
|
|
581
|
+
]
|
|
582
|
+
});
|
|
583
|
+
return sdkResponse;
|
|
584
|
+
}
|
|
585
|
+
catch (err) {
|
|
586
|
+
throw err;
|
|
587
|
+
}
|
|
588
|
+
});
|
|
589
|
+
}
|
|
590
|
+
/**
|
|
591
|
+
* Gets information about a Stack.
|
|
592
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
593
|
+
* @param GetStackRequest
|
|
594
|
+
* @return GetStackResponse
|
|
595
|
+
* @throws OciError when an error occurs
|
|
596
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dif/GetStack.ts.html |here} to see how to use GetStack API.
|
|
597
|
+
*/
|
|
598
|
+
getStack(getStackRequest) {
|
|
599
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
600
|
+
if (this.logger)
|
|
601
|
+
this.logger.debug("Calling operation StackClient#getStack.");
|
|
602
|
+
const operationName = "getStack";
|
|
603
|
+
const apiReferenceLink = "";
|
|
604
|
+
const pathParams = {
|
|
605
|
+
"{stackId}": getStackRequest.stackId
|
|
606
|
+
};
|
|
607
|
+
const queryParams = {};
|
|
608
|
+
let headerParams = {
|
|
609
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
610
|
+
"opc-request-id": getStackRequest.opcRequestId
|
|
611
|
+
};
|
|
612
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
613
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getStackRequest.retryConfiguration, specRetryConfiguration);
|
|
614
|
+
if (this.logger)
|
|
615
|
+
retrier.logger = this.logger;
|
|
616
|
+
const request = yield oci_common_1.composeRequest({
|
|
617
|
+
baseEndpoint: this._endpoint,
|
|
618
|
+
defaultHeaders: this._defaultHeaders,
|
|
619
|
+
path: "/stacks/{stackId}",
|
|
620
|
+
method: "GET",
|
|
621
|
+
pathParams: pathParams,
|
|
622
|
+
headerParams: headerParams,
|
|
623
|
+
queryParams: queryParams
|
|
624
|
+
});
|
|
625
|
+
try {
|
|
626
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
627
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
628
|
+
responseObject: {},
|
|
629
|
+
body: yield response.json(),
|
|
630
|
+
bodyKey: "stack",
|
|
631
|
+
bodyModel: model.Stack,
|
|
632
|
+
type: "model.Stack",
|
|
633
|
+
responseHeaders: [
|
|
634
|
+
{
|
|
635
|
+
value: response.headers.get("etag"),
|
|
636
|
+
key: "etag",
|
|
637
|
+
dataType: "string"
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
value: response.headers.get("opc-request-id"),
|
|
641
|
+
key: "opcRequestId",
|
|
642
|
+
dataType: "string"
|
|
643
|
+
}
|
|
644
|
+
]
|
|
645
|
+
});
|
|
646
|
+
return sdkResponse;
|
|
647
|
+
}
|
|
648
|
+
catch (err) {
|
|
649
|
+
throw err;
|
|
650
|
+
}
|
|
651
|
+
});
|
|
652
|
+
}
|
|
653
|
+
/**
|
|
654
|
+
* Gets the details of a work request.
|
|
655
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
656
|
+
* @param GetWorkRequestRequest
|
|
657
|
+
* @return GetWorkRequestResponse
|
|
658
|
+
* @throws OciError when an error occurs
|
|
659
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dif/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
660
|
+
*/
|
|
661
|
+
getWorkRequest(getWorkRequestRequest) {
|
|
662
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
663
|
+
if (this.logger)
|
|
664
|
+
this.logger.debug("Calling operation StackClient#getWorkRequest.");
|
|
665
|
+
const operationName = "getWorkRequest";
|
|
666
|
+
const apiReferenceLink = "";
|
|
667
|
+
const pathParams = {
|
|
668
|
+
"{workRequestId}": getWorkRequestRequest.workRequestId
|
|
669
|
+
};
|
|
670
|
+
const queryParams = {};
|
|
671
|
+
let headerParams = {
|
|
672
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
673
|
+
"opc-request-id": getWorkRequestRequest.opcRequestId
|
|
674
|
+
};
|
|
675
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
676
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
677
|
+
if (this.logger)
|
|
678
|
+
retrier.logger = this.logger;
|
|
679
|
+
const request = yield oci_common_1.composeRequest({
|
|
680
|
+
baseEndpoint: this._endpoint,
|
|
681
|
+
defaultHeaders: this._defaultHeaders,
|
|
682
|
+
path: "/workRequests/{workRequestId}",
|
|
683
|
+
method: "GET",
|
|
684
|
+
pathParams: pathParams,
|
|
685
|
+
headerParams: headerParams,
|
|
686
|
+
queryParams: queryParams
|
|
687
|
+
});
|
|
688
|
+
try {
|
|
689
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
690
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
691
|
+
responseObject: {},
|
|
692
|
+
body: yield response.json(),
|
|
693
|
+
bodyKey: "workRequest",
|
|
694
|
+
bodyModel: model.WorkRequest,
|
|
695
|
+
type: "model.WorkRequest",
|
|
696
|
+
responseHeaders: [
|
|
697
|
+
{
|
|
698
|
+
value: response.headers.get("etag"),
|
|
699
|
+
key: "etag",
|
|
700
|
+
dataType: "string"
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
value: response.headers.get("opc-request-id"),
|
|
704
|
+
key: "opcRequestId",
|
|
705
|
+
dataType: "string"
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
value: response.headers.get("retry-after"),
|
|
709
|
+
key: "retryAfter",
|
|
710
|
+
dataType: "number"
|
|
711
|
+
}
|
|
712
|
+
]
|
|
713
|
+
});
|
|
714
|
+
return sdkResponse;
|
|
715
|
+
}
|
|
716
|
+
catch (err) {
|
|
717
|
+
throw err;
|
|
718
|
+
}
|
|
719
|
+
});
|
|
720
|
+
}
|
|
721
|
+
/**
|
|
722
|
+
* Gets a list of Stacks.
|
|
723
|
+
*
|
|
724
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
725
|
+
* @param ListStacksRequest
|
|
726
|
+
* @return ListStacksResponse
|
|
727
|
+
* @throws OciError when an error occurs
|
|
728
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dif/ListStacks.ts.html |here} to see how to use ListStacks API.
|
|
729
|
+
*/
|
|
730
|
+
listStacks(listStacksRequest) {
|
|
731
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
732
|
+
if (this.logger)
|
|
733
|
+
this.logger.debug("Calling operation StackClient#listStacks.");
|
|
734
|
+
const operationName = "listStacks";
|
|
735
|
+
const apiReferenceLink = "";
|
|
736
|
+
const pathParams = {};
|
|
737
|
+
const queryParams = {
|
|
738
|
+
"compartmentId": listStacksRequest.compartmentId,
|
|
739
|
+
"lifecycleState": listStacksRequest.lifecycleState,
|
|
740
|
+
"displayName": listStacksRequest.displayName,
|
|
741
|
+
"id": listStacksRequest.id,
|
|
742
|
+
"limit": listStacksRequest.limit,
|
|
743
|
+
"page": listStacksRequest.page,
|
|
744
|
+
"sortOrder": listStacksRequest.sortOrder,
|
|
745
|
+
"sortBy": listStacksRequest.sortBy
|
|
746
|
+
};
|
|
747
|
+
let headerParams = {
|
|
748
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
749
|
+
"opc-request-id": listStacksRequest.opcRequestId
|
|
750
|
+
};
|
|
751
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
752
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listStacksRequest.retryConfiguration, specRetryConfiguration);
|
|
753
|
+
if (this.logger)
|
|
754
|
+
retrier.logger = this.logger;
|
|
755
|
+
const request = yield oci_common_1.composeRequest({
|
|
756
|
+
baseEndpoint: this._endpoint,
|
|
757
|
+
defaultHeaders: this._defaultHeaders,
|
|
758
|
+
path: "/stacks",
|
|
759
|
+
method: "GET",
|
|
760
|
+
pathParams: pathParams,
|
|
761
|
+
headerParams: headerParams,
|
|
762
|
+
queryParams: queryParams
|
|
763
|
+
});
|
|
764
|
+
try {
|
|
765
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
766
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
767
|
+
responseObject: {},
|
|
768
|
+
body: yield response.json(),
|
|
769
|
+
bodyKey: "stackCollection",
|
|
770
|
+
bodyModel: model.StackCollection,
|
|
771
|
+
type: "model.StackCollection",
|
|
772
|
+
responseHeaders: [
|
|
773
|
+
{
|
|
774
|
+
value: response.headers.get("opc-request-id"),
|
|
775
|
+
key: "opcRequestId",
|
|
776
|
+
dataType: "string"
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
value: response.headers.get("opc-next-page"),
|
|
780
|
+
key: "opcNextPage",
|
|
781
|
+
dataType: "string"
|
|
782
|
+
}
|
|
783
|
+
]
|
|
784
|
+
});
|
|
785
|
+
return sdkResponse;
|
|
786
|
+
}
|
|
787
|
+
catch (err) {
|
|
788
|
+
throw err;
|
|
789
|
+
}
|
|
790
|
+
});
|
|
791
|
+
}
|
|
792
|
+
/**
|
|
793
|
+
* Lists the errors for a work request.
|
|
794
|
+
*
|
|
795
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
796
|
+
* @param ListWorkRequestErrorsRequest
|
|
797
|
+
* @return ListWorkRequestErrorsResponse
|
|
798
|
+
* @throws OciError when an error occurs
|
|
799
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dif/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
800
|
+
*/
|
|
801
|
+
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
802
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
803
|
+
if (this.logger)
|
|
804
|
+
this.logger.debug("Calling operation StackClient#listWorkRequestErrors.");
|
|
805
|
+
const operationName = "listWorkRequestErrors";
|
|
806
|
+
const apiReferenceLink = "";
|
|
807
|
+
const pathParams = {
|
|
808
|
+
"{workRequestId}": listWorkRequestErrorsRequest.workRequestId
|
|
809
|
+
};
|
|
810
|
+
const queryParams = {
|
|
811
|
+
"page": listWorkRequestErrorsRequest.page,
|
|
812
|
+
"limit": listWorkRequestErrorsRequest.limit,
|
|
813
|
+
"sortBy": listWorkRequestErrorsRequest.sortBy,
|
|
814
|
+
"sortOrder": listWorkRequestErrorsRequest.sortOrder
|
|
815
|
+
};
|
|
816
|
+
let headerParams = {
|
|
817
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
818
|
+
"opc-request-id": listWorkRequestErrorsRequest.opcRequestId
|
|
819
|
+
};
|
|
820
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
821
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
|
|
822
|
+
if (this.logger)
|
|
823
|
+
retrier.logger = this.logger;
|
|
824
|
+
const request = yield oci_common_1.composeRequest({
|
|
825
|
+
baseEndpoint: this._endpoint,
|
|
826
|
+
defaultHeaders: this._defaultHeaders,
|
|
827
|
+
path: "/workRequests/{workRequestId}/errors",
|
|
828
|
+
method: "GET",
|
|
829
|
+
pathParams: pathParams,
|
|
830
|
+
headerParams: headerParams,
|
|
831
|
+
queryParams: queryParams
|
|
832
|
+
});
|
|
833
|
+
try {
|
|
834
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
835
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
836
|
+
responseObject: {},
|
|
837
|
+
body: yield response.json(),
|
|
838
|
+
bodyKey: "workRequestErrorCollection",
|
|
839
|
+
bodyModel: model.WorkRequestErrorCollection,
|
|
840
|
+
type: "model.WorkRequestErrorCollection",
|
|
841
|
+
responseHeaders: [
|
|
842
|
+
{
|
|
843
|
+
value: response.headers.get("opc-next-page"),
|
|
844
|
+
key: "opcNextPage",
|
|
845
|
+
dataType: "string"
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
value: response.headers.get("opc-request-id"),
|
|
849
|
+
key: "opcRequestId",
|
|
850
|
+
dataType: "string"
|
|
851
|
+
}
|
|
852
|
+
]
|
|
853
|
+
});
|
|
854
|
+
return sdkResponse;
|
|
855
|
+
}
|
|
856
|
+
catch (err) {
|
|
857
|
+
throw err;
|
|
858
|
+
}
|
|
859
|
+
});
|
|
860
|
+
}
|
|
861
|
+
/**
|
|
862
|
+
* Lists the logs for a work request.
|
|
863
|
+
*
|
|
864
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
865
|
+
* @param ListWorkRequestLogsRequest
|
|
866
|
+
* @return ListWorkRequestLogsResponse
|
|
867
|
+
* @throws OciError when an error occurs
|
|
868
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dif/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
869
|
+
*/
|
|
870
|
+
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
871
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
872
|
+
if (this.logger)
|
|
873
|
+
this.logger.debug("Calling operation StackClient#listWorkRequestLogs.");
|
|
874
|
+
const operationName = "listWorkRequestLogs";
|
|
875
|
+
const apiReferenceLink = "";
|
|
876
|
+
const pathParams = {
|
|
877
|
+
"{workRequestId}": listWorkRequestLogsRequest.workRequestId
|
|
878
|
+
};
|
|
879
|
+
const queryParams = {
|
|
880
|
+
"page": listWorkRequestLogsRequest.page,
|
|
881
|
+
"limit": listWorkRequestLogsRequest.limit,
|
|
882
|
+
"sortBy": listWorkRequestLogsRequest.sortBy,
|
|
883
|
+
"sortOrder": listWorkRequestLogsRequest.sortOrder
|
|
884
|
+
};
|
|
885
|
+
let headerParams = {
|
|
886
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
887
|
+
"opc-request-id": listWorkRequestLogsRequest.opcRequestId
|
|
888
|
+
};
|
|
889
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
890
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
891
|
+
if (this.logger)
|
|
892
|
+
retrier.logger = this.logger;
|
|
893
|
+
const request = yield oci_common_1.composeRequest({
|
|
894
|
+
baseEndpoint: this._endpoint,
|
|
895
|
+
defaultHeaders: this._defaultHeaders,
|
|
896
|
+
path: "/workRequests/{workRequestId}/logs",
|
|
897
|
+
method: "GET",
|
|
898
|
+
pathParams: pathParams,
|
|
899
|
+
headerParams: headerParams,
|
|
900
|
+
queryParams: queryParams
|
|
901
|
+
});
|
|
902
|
+
try {
|
|
903
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
904
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
905
|
+
responseObject: {},
|
|
906
|
+
body: yield response.json(),
|
|
907
|
+
bodyKey: "workRequestLogEntryCollection",
|
|
908
|
+
bodyModel: model.WorkRequestLogEntryCollection,
|
|
909
|
+
type: "model.WorkRequestLogEntryCollection",
|
|
910
|
+
responseHeaders: [
|
|
911
|
+
{
|
|
912
|
+
value: response.headers.get("opc-next-page"),
|
|
913
|
+
key: "opcNextPage",
|
|
914
|
+
dataType: "string"
|
|
915
|
+
},
|
|
916
|
+
{
|
|
917
|
+
value: response.headers.get("opc-request-id"),
|
|
918
|
+
key: "opcRequestId",
|
|
919
|
+
dataType: "string"
|
|
920
|
+
}
|
|
921
|
+
]
|
|
922
|
+
});
|
|
923
|
+
return sdkResponse;
|
|
924
|
+
}
|
|
925
|
+
catch (err) {
|
|
926
|
+
throw err;
|
|
927
|
+
}
|
|
928
|
+
});
|
|
929
|
+
}
|
|
930
|
+
/**
|
|
931
|
+
* Lists the work requests in a compartment.
|
|
932
|
+
*
|
|
933
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
934
|
+
* @param ListWorkRequestsRequest
|
|
935
|
+
* @return ListWorkRequestsResponse
|
|
936
|
+
* @throws OciError when an error occurs
|
|
937
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dif/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
938
|
+
*/
|
|
939
|
+
listWorkRequests(listWorkRequestsRequest) {
|
|
940
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
941
|
+
if (this.logger)
|
|
942
|
+
this.logger.debug("Calling operation StackClient#listWorkRequests.");
|
|
943
|
+
const operationName = "listWorkRequests";
|
|
944
|
+
const apiReferenceLink = "";
|
|
945
|
+
const pathParams = {};
|
|
946
|
+
const queryParams = {
|
|
947
|
+
"compartmentId": listWorkRequestsRequest.compartmentId,
|
|
948
|
+
"workRequestId": listWorkRequestsRequest.workRequestId,
|
|
949
|
+
"status": listWorkRequestsRequest.status,
|
|
950
|
+
"resourceId": listWorkRequestsRequest.resourceId,
|
|
951
|
+
"page": listWorkRequestsRequest.page,
|
|
952
|
+
"limit": listWorkRequestsRequest.limit,
|
|
953
|
+
"sortOrder": listWorkRequestsRequest.sortOrder,
|
|
954
|
+
"sortBy": listWorkRequestsRequest.sortBy
|
|
955
|
+
};
|
|
956
|
+
let headerParams = {
|
|
957
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
958
|
+
"opc-request-id": listWorkRequestsRequest.opcRequestId
|
|
959
|
+
};
|
|
960
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
961
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
962
|
+
if (this.logger)
|
|
963
|
+
retrier.logger = this.logger;
|
|
964
|
+
const request = yield oci_common_1.composeRequest({
|
|
965
|
+
baseEndpoint: this._endpoint,
|
|
966
|
+
defaultHeaders: this._defaultHeaders,
|
|
967
|
+
path: "/workRequests",
|
|
968
|
+
method: "GET",
|
|
969
|
+
pathParams: pathParams,
|
|
970
|
+
headerParams: headerParams,
|
|
971
|
+
queryParams: queryParams
|
|
972
|
+
});
|
|
973
|
+
try {
|
|
974
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
975
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
976
|
+
responseObject: {},
|
|
977
|
+
body: yield response.json(),
|
|
978
|
+
bodyKey: "workRequestSummaryCollection",
|
|
979
|
+
bodyModel: model.WorkRequestSummaryCollection,
|
|
980
|
+
type: "model.WorkRequestSummaryCollection",
|
|
981
|
+
responseHeaders: [
|
|
982
|
+
{
|
|
983
|
+
value: response.headers.get("opc-request-id"),
|
|
984
|
+
key: "opcRequestId",
|
|
985
|
+
dataType: "string"
|
|
986
|
+
},
|
|
987
|
+
{
|
|
988
|
+
value: response.headers.get("opc-next-page"),
|
|
989
|
+
key: "opcNextPage",
|
|
990
|
+
dataType: "string"
|
|
991
|
+
}
|
|
992
|
+
]
|
|
993
|
+
});
|
|
994
|
+
return sdkResponse;
|
|
995
|
+
}
|
|
996
|
+
catch (err) {
|
|
997
|
+
throw err;
|
|
998
|
+
}
|
|
999
|
+
});
|
|
1000
|
+
}
|
|
1001
|
+
/**
|
|
1002
|
+
* Updates a Stack.
|
|
1003
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1004
|
+
* @param UpdateStackRequest
|
|
1005
|
+
* @return UpdateStackResponse
|
|
1006
|
+
* @throws OciError when an error occurs
|
|
1007
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dif/UpdateStack.ts.html |here} to see how to use UpdateStack API.
|
|
1008
|
+
*/
|
|
1009
|
+
updateStack(updateStackRequest) {
|
|
1010
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1011
|
+
if (this.logger)
|
|
1012
|
+
this.logger.debug("Calling operation StackClient#updateStack.");
|
|
1013
|
+
const operationName = "updateStack";
|
|
1014
|
+
const apiReferenceLink = "";
|
|
1015
|
+
const pathParams = {
|
|
1016
|
+
"{stackId}": updateStackRequest.stackId
|
|
1017
|
+
};
|
|
1018
|
+
const queryParams = {};
|
|
1019
|
+
let headerParams = {
|
|
1020
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1021
|
+
"if-match": updateStackRequest.ifMatch,
|
|
1022
|
+
"opc-request-id": updateStackRequest.opcRequestId
|
|
1023
|
+
};
|
|
1024
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1025
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateStackRequest.retryConfiguration, specRetryConfiguration);
|
|
1026
|
+
if (this.logger)
|
|
1027
|
+
retrier.logger = this.logger;
|
|
1028
|
+
const request = yield oci_common_1.composeRequest({
|
|
1029
|
+
baseEndpoint: this._endpoint,
|
|
1030
|
+
defaultHeaders: this._defaultHeaders,
|
|
1031
|
+
path: "/stacks/{stackId}",
|
|
1032
|
+
method: "PUT",
|
|
1033
|
+
bodyContent: common.ObjectSerializer.serialize(updateStackRequest.updateStackDetails, "UpdateStackDetails", model.UpdateStackDetails.getJsonObj),
|
|
1034
|
+
pathParams: pathParams,
|
|
1035
|
+
headerParams: headerParams,
|
|
1036
|
+
queryParams: queryParams
|
|
1037
|
+
});
|
|
1038
|
+
try {
|
|
1039
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1040
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1041
|
+
responseObject: {},
|
|
1042
|
+
responseHeaders: [
|
|
1043
|
+
{
|
|
1044
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1045
|
+
key: "opcWorkRequestId",
|
|
1046
|
+
dataType: "string"
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
value: response.headers.get("opc-request-id"),
|
|
1050
|
+
key: "opcRequestId",
|
|
1051
|
+
dataType: "string"
|
|
1052
|
+
}
|
|
1053
|
+
]
|
|
1054
|
+
});
|
|
1055
|
+
return sdkResponse;
|
|
1056
|
+
}
|
|
1057
|
+
catch (err) {
|
|
1058
|
+
throw err;
|
|
1059
|
+
}
|
|
1060
|
+
});
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
exports.StackClient = StackClient;
|
|
1064
|
+
StackClient.serviceEndpointTemplate = "https://dataintelligencefoundation.{region}.oci.{secondLevelDomain}";
|
|
1065
|
+
StackClient.endpointServiceName = "";
|
|
1066
|
+
//# sourceMappingURL=client.js.map
|