oci-computecloudatcustomer 2.68.2
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 +25 -0
- package/index.js +48 -0
- package/index.js.map +1 -0
- package/lib/client.d.ts +210 -0
- package/lib/client.js +965 -0
- package/lib/client.js.map +1 -0
- package/lib/computecloudatcustomer-waiter.d.ts +40 -0
- package/lib/computecloudatcustomer-waiter.js +80 -0
- package/lib/computecloudatcustomer-waiter.js.map +1 -0
- package/lib/model/ccc-infrastructure-collection.d.ts +30 -0
- package/lib/model/ccc-infrastructure-collection.js +64 -0
- package/lib/model/ccc-infrastructure-collection.js.map +1 -0
- package/lib/model/ccc-infrastructure-inventory.d.ts +53 -0
- package/lib/model/ccc-infrastructure-inventory.js +32 -0
- package/lib/model/ccc-infrastructure-inventory.js.map +1 -0
- package/lib/model/ccc-infrastructure-management-node.d.ts +33 -0
- package/lib/model/ccc-infrastructure-management-node.js +32 -0
- package/lib/model/ccc-infrastructure-management-node.js.map +1 -0
- package/lib/model/ccc-infrastructure-network-configuration.d.ts +117 -0
- package/lib/model/ccc-infrastructure-network-configuration.js +89 -0
- package/lib/model/ccc-infrastructure-network-configuration.js.map +1 -0
- package/lib/model/ccc-infrastructure-routing-dynamic-details.d.ts +51 -0
- package/lib/model/ccc-infrastructure-routing-dynamic-details.js +75 -0
- package/lib/model/ccc-infrastructure-routing-dynamic-details.js.map +1 -0
- package/lib/model/ccc-infrastructure-routing-static-details.d.ts +36 -0
- package/lib/model/ccc-infrastructure-routing-static-details.js +32 -0
- package/lib/model/ccc-infrastructure-routing-static-details.js.map +1 -0
- package/lib/model/ccc-infrastructure-summary.d.ts +101 -0
- package/lib/model/ccc-infrastructure-summary.js +32 -0
- package/lib/model/ccc-infrastructure-summary.js.map +1 -0
- package/lib/model/ccc-infrastructure.d.ts +173 -0
- package/lib/model/ccc-infrastructure.js +97 -0
- package/lib/model/ccc-infrastructure.js.map +1 -0
- package/lib/model/ccc-schedule-event.d.ts +54 -0
- package/lib/model/ccc-schedule-event.js +32 -0
- package/lib/model/ccc-schedule-event.js.map +1 -0
- package/lib/model/ccc-upgrade-information.d.ts +50 -0
- package/lib/model/ccc-upgrade-information.js +32 -0
- package/lib/model/ccc-upgrade-information.js.map +1 -0
- package/lib/model/ccc-upgrade-schedule-collection.d.ts +32 -0
- package/lib/model/ccc-upgrade-schedule-collection.js +64 -0
- package/lib/model/ccc-upgrade-schedule-collection.js.map +1 -0
- package/lib/model/ccc-upgrade-schedule-summary.d.ts +82 -0
- package/lib/model/ccc-upgrade-schedule-summary.js +32 -0
- package/lib/model/ccc-upgrade-schedule-summary.js.map +1 -0
- package/lib/model/ccc-upgrade-schedule.d.ts +122 -0
- package/lib/model/ccc-upgrade-schedule.js +76 -0
- package/lib/model/ccc-upgrade-schedule.js.map +1 -0
- package/lib/model/change-ccc-infrastructure-compartment-details.d.ts +30 -0
- package/lib/model/change-ccc-infrastructure-compartment-details.js +32 -0
- package/lib/model/change-ccc-infrastructure-compartment-details.js.map +1 -0
- package/lib/model/change-ccc-upgrade-schedule-compartment-details.d.ts +30 -0
- package/lib/model/change-ccc-upgrade-schedule-compartment-details.js +32 -0
- package/lib/model/change-ccc-upgrade-schedule-compartment-details.js.map +1 -0
- package/lib/model/create-ccc-infrastructure-details.d.ts +83 -0
- package/lib/model/create-ccc-infrastructure-details.js +32 -0
- package/lib/model/create-ccc-infrastructure-details.js.map +1 -0
- package/lib/model/create-ccc-schedule-event.d.ts +50 -0
- package/lib/model/create-ccc-schedule-event.js +32 -0
- package/lib/model/create-ccc-schedule-event.js.map +1 -0
- package/lib/model/create-ccc-upgrade-schedule-details.d.ts +70 -0
- package/lib/model/create-ccc-upgrade-schedule-details.js +64 -0
- package/lib/model/create-ccc-upgrade-schedule-details.js.map +1 -0
- package/lib/model/index.d.ts +61 -0
- package/lib/model/index.js +84 -0
- package/lib/model/index.js.map +1 -0
- package/lib/model/peer-information.d.ts +35 -0
- package/lib/model/peer-information.js +32 -0
- package/lib/model/peer-information.js.map +1 -0
- package/lib/model/sort-order.d.ts +26 -0
- package/lib/model/sort-order.js +37 -0
- package/lib/model/sort-order.js.map +1 -0
- package/lib/model/update-ccc-infrastructure-details.d.ts +77 -0
- package/lib/model/update-ccc-infrastructure-details.js +32 -0
- package/lib/model/update-ccc-infrastructure-details.js.map +1 -0
- package/lib/model/update-ccc-schedule-event.d.ts +50 -0
- package/lib/model/update-ccc-schedule-event.js +32 -0
- package/lib/model/update-ccc-schedule-event.js.map +1 -0
- package/lib/model/update-ccc-upgrade-schedule-details.d.ts +62 -0
- package/lib/model/update-ccc-upgrade-schedule-details.js +64 -0
- package/lib/model/update-ccc-upgrade-schedule-details.js.map +1 -0
- package/lib/request/change-ccc-infrastructure-compartment-request.d.ts +54 -0
- package/lib/request/change-ccc-infrastructure-compartment-request.js +15 -0
- package/lib/request/change-ccc-infrastructure-compartment-request.js.map +1 -0
- package/lib/request/change-ccc-upgrade-schedule-compartment-request.d.ts +54 -0
- package/lib/request/change-ccc-upgrade-schedule-compartment-request.js +15 -0
- package/lib/request/change-ccc-upgrade-schedule-compartment-request.js.map +1 -0
- package/lib/request/create-ccc-infrastructure-request.d.ts +37 -0
- package/lib/request/create-ccc-infrastructure-request.js +15 -0
- package/lib/request/create-ccc-infrastructure-request.js.map +1 -0
- package/lib/request/create-ccc-upgrade-schedule-request.d.ts +37 -0
- package/lib/request/create-ccc-upgrade-schedule-request.js +15 -0
- package/lib/request/create-ccc-upgrade-schedule-request.js.map +1 -0
- package/lib/request/delete-ccc-infrastructure-request.d.ts +38 -0
- package/lib/request/delete-ccc-infrastructure-request.js +15 -0
- package/lib/request/delete-ccc-infrastructure-request.js.map +1 -0
- package/lib/request/delete-ccc-upgrade-schedule-request.d.ts +38 -0
- package/lib/request/delete-ccc-upgrade-schedule-request.js +15 -0
- package/lib/request/delete-ccc-upgrade-schedule-request.js.map +1 -0
- package/lib/request/get-ccc-infrastructure-request.d.ts +29 -0
- package/lib/request/get-ccc-infrastructure-request.js +15 -0
- package/lib/request/get-ccc-infrastructure-request.js.map +1 -0
- package/lib/request/get-ccc-upgrade-schedule-request.d.ts +29 -0
- package/lib/request/get-ccc-upgrade-schedule-request.js +15 -0
- package/lib/request/get-ccc-upgrade-schedule-request.js.map +1 -0
- package/lib/request/index.d.ts +39 -0
- package/lib/request/index.js +42 -0
- package/lib/request/index.js.map +1 -0
- package/lib/request/list-ccc-infrastructures-request.d.ts +92 -0
- package/lib/request/list-ccc-infrastructures-request.js +29 -0
- package/lib/request/list-ccc-infrastructures-request.js.map +1 -0
- package/lib/request/list-ccc-upgrade-schedules-request.d.ts +93 -0
- package/lib/request/list-ccc-upgrade-schedules-request.js +29 -0
- package/lib/request/list-ccc-upgrade-schedules-request.js.map +1 -0
- package/lib/request/update-ccc-infrastructure-request.d.ts +43 -0
- package/lib/request/update-ccc-infrastructure-request.js +15 -0
- package/lib/request/update-ccc-infrastructure-request.js.map +1 -0
- package/lib/request/update-ccc-upgrade-schedule-request.d.ts +43 -0
- package/lib/request/update-ccc-upgrade-schedule-request.js +15 -0
- package/lib/request/update-ccc-upgrade-schedule-request.js.map +1 -0
- package/lib/response/change-ccc-infrastructure-compartment-response.d.ts +20 -0
- package/lib/response/change-ccc-infrastructure-compartment-response.js +15 -0
- package/lib/response/change-ccc-infrastructure-compartment-response.js.map +1 -0
- package/lib/response/change-ccc-upgrade-schedule-compartment-response.d.ts +20 -0
- package/lib/response/change-ccc-upgrade-schedule-compartment-response.js +15 -0
- package/lib/response/change-ccc-upgrade-schedule-compartment-response.js.map +1 -0
- package/lib/response/create-ccc-infrastructure-response.d.ts +30 -0
- package/lib/response/create-ccc-infrastructure-response.js +15 -0
- package/lib/response/create-ccc-infrastructure-response.js.map +1 -0
- package/lib/response/create-ccc-upgrade-schedule-response.d.ts +30 -0
- package/lib/response/create-ccc-upgrade-schedule-response.js +15 -0
- package/lib/response/create-ccc-upgrade-schedule-response.js.map +1 -0
- package/lib/response/delete-ccc-infrastructure-response.d.ts +20 -0
- package/lib/response/delete-ccc-infrastructure-response.js +15 -0
- package/lib/response/delete-ccc-infrastructure-response.js.map +1 -0
- package/lib/response/delete-ccc-upgrade-schedule-response.d.ts +20 -0
- package/lib/response/delete-ccc-upgrade-schedule-response.js +15 -0
- package/lib/response/delete-ccc-upgrade-schedule-response.js.map +1 -0
- package/lib/response/get-ccc-infrastructure-response.d.ts +30 -0
- package/lib/response/get-ccc-infrastructure-response.js +15 -0
- package/lib/response/get-ccc-infrastructure-response.js.map +1 -0
- package/lib/response/get-ccc-upgrade-schedule-response.d.ts +30 -0
- package/lib/response/get-ccc-upgrade-schedule-response.js +15 -0
- package/lib/response/get-ccc-upgrade-schedule-response.js.map +1 -0
- package/lib/response/index.d.ts +39 -0
- package/lib/response/index.js +18 -0
- package/lib/response/index.js.map +1 -0
- package/lib/response/list-ccc-infrastructures-response.d.ts +39 -0
- package/lib/response/list-ccc-infrastructures-response.js +15 -0
- package/lib/response/list-ccc-infrastructures-response.js.map +1 -0
- package/lib/response/list-ccc-upgrade-schedules-response.d.ts +39 -0
- package/lib/response/list-ccc-upgrade-schedules-response.js +15 -0
- package/lib/response/list-ccc-upgrade-schedules-response.js.map +1 -0
- package/lib/response/update-ccc-infrastructure-response.d.ts +30 -0
- package/lib/response/update-ccc-infrastructure-response.js +15 -0
- package/lib/response/update-ccc-infrastructure-response.js.map +1 -0
- package/lib/response/update-ccc-upgrade-schedule-response.d.ts +30 -0
- package/lib/response/update-ccc-upgrade-schedule-response.js +15 -0
- package/lib/response/update-ccc-upgrade-schedule-response.js.map +1 -0
- package/package.json +29 -0
package/lib/client.js
ADDED
|
@@ -0,0 +1,965 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Compute Cloud@Customer API
|
|
4
|
+
* Use the Compute Cloud@Customer API to manage Compute Cloud@Customer Infrastructure deployments
|
|
5
|
+
and scheduled upgrades. For more information see
|
|
6
|
+
[Compute Cloud@Customer documentation](/iaas/Content/compute-cloud-at-customer/home.htm).
|
|
7
|
+
|
|
8
|
+
* OpenAPI spec version: 20221208
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
|
|
15
|
+
* 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.
|
|
16
|
+
*/
|
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
+
exports.ComputeCloudAtCustomerClient = exports.ComputeCloudAtCustomerApiKeys = void 0;
|
|
47
|
+
const common = require("oci-common");
|
|
48
|
+
const model = __importStar(require("./model"));
|
|
49
|
+
const computecloudatcustomer_waiter_1 = require("./computecloudatcustomer-waiter");
|
|
50
|
+
const oci_common_1 = require("oci-common");
|
|
51
|
+
// ===============================================
|
|
52
|
+
// This file is autogenerated - Please do not edit
|
|
53
|
+
// ===============================================
|
|
54
|
+
var ComputeCloudAtCustomerApiKeys;
|
|
55
|
+
(function (ComputeCloudAtCustomerApiKeys) {
|
|
56
|
+
})(ComputeCloudAtCustomerApiKeys = exports.ComputeCloudAtCustomerApiKeys || (exports.ComputeCloudAtCustomerApiKeys = {}));
|
|
57
|
+
/**
|
|
58
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
59
|
+
*/
|
|
60
|
+
class ComputeCloudAtCustomerClient {
|
|
61
|
+
constructor(params, clientConfiguration) {
|
|
62
|
+
this["_realmSpecificEndpointTemplateEnabled"] = false;
|
|
63
|
+
this["_endpoint"] = "";
|
|
64
|
+
this["_defaultHeaders"] = {};
|
|
65
|
+
this._circuitBreaker = null;
|
|
66
|
+
this._httpOptions = undefined;
|
|
67
|
+
this._bodyDuplexMode = undefined;
|
|
68
|
+
this.targetService = "ComputeCloudAtCustomer";
|
|
69
|
+
this._regionId = "";
|
|
70
|
+
this._lastSetRegionOrRegionId = "";
|
|
71
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
72
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
73
|
+
: null;
|
|
74
|
+
if (clientConfiguration) {
|
|
75
|
+
this._clientConfiguration = clientConfiguration;
|
|
76
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
77
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
78
|
+
: null;
|
|
79
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
80
|
+
? clientConfiguration.httpOptions
|
|
81
|
+
: undefined;
|
|
82
|
+
this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
|
|
83
|
+
? clientConfiguration.bodyDuplexMode
|
|
84
|
+
: undefined;
|
|
85
|
+
}
|
|
86
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
87
|
+
const specCircuitBreakerEnabled = true;
|
|
88
|
+
if (!this._circuitBreaker &&
|
|
89
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
90
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
91
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
92
|
+
}
|
|
93
|
+
this._httpClient =
|
|
94
|
+
params.httpClient ||
|
|
95
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
|
|
96
|
+
if (params.authenticationDetailsProvider &&
|
|
97
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
98
|
+
const provider = params.authenticationDetailsProvider;
|
|
99
|
+
if (provider.getRegion()) {
|
|
100
|
+
this.region = provider.getRegion();
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
106
|
+
*/
|
|
107
|
+
get endpoint() {
|
|
108
|
+
return this._endpoint;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
112
|
+
* @param endpoint The endpoint of the service.
|
|
113
|
+
*/
|
|
114
|
+
set endpoint(endpoint) {
|
|
115
|
+
this._endpoint = endpoint;
|
|
116
|
+
this._endpoint = this._endpoint + "/20221208";
|
|
117
|
+
if (this.logger)
|
|
118
|
+
this.logger.info(`ComputeCloudAtCustomerClient endpoint set to ${this._endpoint}`);
|
|
119
|
+
}
|
|
120
|
+
get logger() {
|
|
121
|
+
return common.LOG.logger;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
125
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
126
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
127
|
+
*/
|
|
128
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
129
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
130
|
+
if (this.logger)
|
|
131
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
132
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
133
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(ComputeCloudAtCustomerClient.serviceEndpointTemplate, this._region, ComputeCloudAtCustomerClient.endpointServiceName);
|
|
134
|
+
}
|
|
135
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
136
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(ComputeCloudAtCustomerClient.serviceEndpointTemplate, this._regionId, ComputeCloudAtCustomerClient.endpointServiceName);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
141
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
142
|
+
* @param region The region of the service.
|
|
143
|
+
*/
|
|
144
|
+
set region(region) {
|
|
145
|
+
this._region = region;
|
|
146
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(ComputeCloudAtCustomerClient.serviceEndpointTemplate, region, ComputeCloudAtCustomerClient.endpointServiceName);
|
|
147
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
151
|
+
*
|
|
152
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
153
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
154
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
155
|
+
* @param regionId The public region ID.
|
|
156
|
+
*/
|
|
157
|
+
set regionId(regionId) {
|
|
158
|
+
this._regionId = regionId;
|
|
159
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(ComputeCloudAtCustomerClient.serviceEndpointTemplate, regionId, ComputeCloudAtCustomerClient.endpointServiceName);
|
|
160
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Creates a new ComputeCloudAtCustomerWaiter for resources for this service.
|
|
164
|
+
*
|
|
165
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
166
|
+
* @return The service waiters.
|
|
167
|
+
*/
|
|
168
|
+
createWaiters(config) {
|
|
169
|
+
this._waiters = new computecloudatcustomer_waiter_1.ComputeCloudAtCustomerWaiter(this, config);
|
|
170
|
+
return this._waiters;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Gets the waiters available for resources for this service.
|
|
174
|
+
*
|
|
175
|
+
* @return The service waiters.
|
|
176
|
+
*/
|
|
177
|
+
getWaiters() {
|
|
178
|
+
if (this._waiters) {
|
|
179
|
+
return this._waiters;
|
|
180
|
+
}
|
|
181
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Moves a Compute Cloud@Customer infrastructure resource from one compartment to another.
|
|
185
|
+
*
|
|
186
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
187
|
+
* @param ChangeCccInfrastructureCompartmentRequest
|
|
188
|
+
* @return ChangeCccInfrastructureCompartmentResponse
|
|
189
|
+
* @throws OciError when an error occurs
|
|
190
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.2/computecloudatcustomer/ChangeCccInfrastructureCompartment.ts.html |here} to see how to use ChangeCccInfrastructureCompartment API.
|
|
191
|
+
*/
|
|
192
|
+
changeCccInfrastructureCompartment(changeCccInfrastructureCompartmentRequest) {
|
|
193
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
194
|
+
if (this.logger)
|
|
195
|
+
this.logger.debug("Calling operation ComputeCloudAtCustomerClient#changeCccInfrastructureCompartment.");
|
|
196
|
+
const operationName = "changeCccInfrastructureCompartment";
|
|
197
|
+
const apiReferenceLink = "";
|
|
198
|
+
const pathParams = {
|
|
199
|
+
"{cccInfrastructureId}": changeCccInfrastructureCompartmentRequest.cccInfrastructureId
|
|
200
|
+
};
|
|
201
|
+
const queryParams = {};
|
|
202
|
+
let headerParams = {
|
|
203
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
204
|
+
"if-match": changeCccInfrastructureCompartmentRequest.ifMatch,
|
|
205
|
+
"opc-retry-token": changeCccInfrastructureCompartmentRequest.opcRetryToken,
|
|
206
|
+
"opc-request-id": changeCccInfrastructureCompartmentRequest.opcRequestId
|
|
207
|
+
};
|
|
208
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
209
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeCccInfrastructureCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
210
|
+
if (this.logger)
|
|
211
|
+
retrier.logger = this.logger;
|
|
212
|
+
const request = yield oci_common_1.composeRequest({
|
|
213
|
+
baseEndpoint: this._endpoint,
|
|
214
|
+
defaultHeaders: this._defaultHeaders,
|
|
215
|
+
path: "/cccInfrastructures/{cccInfrastructureId}/actions/changeCompartment",
|
|
216
|
+
method: "POST",
|
|
217
|
+
bodyContent: common.ObjectSerializer.serialize(changeCccInfrastructureCompartmentRequest.changeCccInfrastructureCompartmentDetails, "ChangeCccInfrastructureCompartmentDetails", model.ChangeCccInfrastructureCompartmentDetails.getJsonObj),
|
|
218
|
+
pathParams: pathParams,
|
|
219
|
+
headerParams: headerParams,
|
|
220
|
+
queryParams: queryParams
|
|
221
|
+
});
|
|
222
|
+
try {
|
|
223
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
224
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
225
|
+
responseObject: {},
|
|
226
|
+
responseHeaders: [
|
|
227
|
+
{
|
|
228
|
+
value: response.headers.get("opc-request-id"),
|
|
229
|
+
key: "opcRequestId",
|
|
230
|
+
dataType: "string"
|
|
231
|
+
}
|
|
232
|
+
]
|
|
233
|
+
});
|
|
234
|
+
return sdkResponse;
|
|
235
|
+
}
|
|
236
|
+
catch (err) {
|
|
237
|
+
throw err;
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Moves a Compute Cloud@Customer upgrade schedule from one compartment to another using the
|
|
243
|
+
* specified [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
|
|
244
|
+
*
|
|
245
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
246
|
+
* @param ChangeCccUpgradeScheduleCompartmentRequest
|
|
247
|
+
* @return ChangeCccUpgradeScheduleCompartmentResponse
|
|
248
|
+
* @throws OciError when an error occurs
|
|
249
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.2/computecloudatcustomer/ChangeCccUpgradeScheduleCompartment.ts.html |here} to see how to use ChangeCccUpgradeScheduleCompartment API.
|
|
250
|
+
*/
|
|
251
|
+
changeCccUpgradeScheduleCompartment(changeCccUpgradeScheduleCompartmentRequest) {
|
|
252
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
253
|
+
if (this.logger)
|
|
254
|
+
this.logger.debug("Calling operation ComputeCloudAtCustomerClient#changeCccUpgradeScheduleCompartment.");
|
|
255
|
+
const operationName = "changeCccUpgradeScheduleCompartment";
|
|
256
|
+
const apiReferenceLink = "";
|
|
257
|
+
const pathParams = {
|
|
258
|
+
"{cccUpgradeScheduleId}": changeCccUpgradeScheduleCompartmentRequest.cccUpgradeScheduleId
|
|
259
|
+
};
|
|
260
|
+
const queryParams = {};
|
|
261
|
+
let headerParams = {
|
|
262
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
263
|
+
"if-match": changeCccUpgradeScheduleCompartmentRequest.ifMatch,
|
|
264
|
+
"opc-retry-token": changeCccUpgradeScheduleCompartmentRequest.opcRetryToken,
|
|
265
|
+
"opc-request-id": changeCccUpgradeScheduleCompartmentRequest.opcRequestId
|
|
266
|
+
};
|
|
267
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
268
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeCccUpgradeScheduleCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
269
|
+
if (this.logger)
|
|
270
|
+
retrier.logger = this.logger;
|
|
271
|
+
const request = yield oci_common_1.composeRequest({
|
|
272
|
+
baseEndpoint: this._endpoint,
|
|
273
|
+
defaultHeaders: this._defaultHeaders,
|
|
274
|
+
path: "/cccUpgradeSchedules/{cccUpgradeScheduleId}/actions/changeCompartment",
|
|
275
|
+
method: "POST",
|
|
276
|
+
bodyContent: common.ObjectSerializer.serialize(changeCccUpgradeScheduleCompartmentRequest.changeCccUpgradeScheduleCompartmentDetails, "ChangeCccUpgradeScheduleCompartmentDetails", model.ChangeCccUpgradeScheduleCompartmentDetails.getJsonObj),
|
|
277
|
+
pathParams: pathParams,
|
|
278
|
+
headerParams: headerParams,
|
|
279
|
+
queryParams: queryParams
|
|
280
|
+
});
|
|
281
|
+
try {
|
|
282
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
283
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
284
|
+
responseObject: {},
|
|
285
|
+
responseHeaders: [
|
|
286
|
+
{
|
|
287
|
+
value: response.headers.get("opc-request-id"),
|
|
288
|
+
key: "opcRequestId",
|
|
289
|
+
dataType: "string"
|
|
290
|
+
}
|
|
291
|
+
]
|
|
292
|
+
});
|
|
293
|
+
return sdkResponse;
|
|
294
|
+
}
|
|
295
|
+
catch (err) {
|
|
296
|
+
throw err;
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* Creates a Compute Cloud@Customer infrastructure. Once created, Oracle Services
|
|
302
|
+
* must connect the rack in the data center to this Oracle Cloud Infrastructure resource.
|
|
303
|
+
*
|
|
304
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
305
|
+
* @param CreateCccInfrastructureRequest
|
|
306
|
+
* @return CreateCccInfrastructureResponse
|
|
307
|
+
* @throws OciError when an error occurs
|
|
308
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.2/computecloudatcustomer/CreateCccInfrastructure.ts.html |here} to see how to use CreateCccInfrastructure API.
|
|
309
|
+
*/
|
|
310
|
+
createCccInfrastructure(createCccInfrastructureRequest) {
|
|
311
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
312
|
+
if (this.logger)
|
|
313
|
+
this.logger.debug("Calling operation ComputeCloudAtCustomerClient#createCccInfrastructure.");
|
|
314
|
+
const operationName = "createCccInfrastructure";
|
|
315
|
+
const apiReferenceLink = "";
|
|
316
|
+
const pathParams = {};
|
|
317
|
+
const queryParams = {};
|
|
318
|
+
let headerParams = {
|
|
319
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
320
|
+
"opc-retry-token": createCccInfrastructureRequest.opcRetryToken,
|
|
321
|
+
"opc-request-id": createCccInfrastructureRequest.opcRequestId
|
|
322
|
+
};
|
|
323
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
324
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createCccInfrastructureRequest.retryConfiguration, specRetryConfiguration);
|
|
325
|
+
if (this.logger)
|
|
326
|
+
retrier.logger = this.logger;
|
|
327
|
+
const request = yield oci_common_1.composeRequest({
|
|
328
|
+
baseEndpoint: this._endpoint,
|
|
329
|
+
defaultHeaders: this._defaultHeaders,
|
|
330
|
+
path: "/cccInfrastructures",
|
|
331
|
+
method: "POST",
|
|
332
|
+
bodyContent: common.ObjectSerializer.serialize(createCccInfrastructureRequest.createCccInfrastructureDetails, "CreateCccInfrastructureDetails", model.CreateCccInfrastructureDetails.getJsonObj),
|
|
333
|
+
pathParams: pathParams,
|
|
334
|
+
headerParams: headerParams,
|
|
335
|
+
queryParams: queryParams
|
|
336
|
+
});
|
|
337
|
+
try {
|
|
338
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
339
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
340
|
+
responseObject: {},
|
|
341
|
+
body: yield response.json(),
|
|
342
|
+
bodyKey: "cccInfrastructure",
|
|
343
|
+
bodyModel: model.CccInfrastructure,
|
|
344
|
+
type: "model.CccInfrastructure",
|
|
345
|
+
responseHeaders: [
|
|
346
|
+
{
|
|
347
|
+
value: response.headers.get("etag"),
|
|
348
|
+
key: "etag",
|
|
349
|
+
dataType: "string"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
value: response.headers.get("opc-request-id"),
|
|
353
|
+
key: "opcRequestId",
|
|
354
|
+
dataType: "string"
|
|
355
|
+
}
|
|
356
|
+
]
|
|
357
|
+
});
|
|
358
|
+
return sdkResponse;
|
|
359
|
+
}
|
|
360
|
+
catch (err) {
|
|
361
|
+
throw err;
|
|
362
|
+
}
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* Creates a new Compute Cloud@Customer upgrade schedule.
|
|
367
|
+
*
|
|
368
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
369
|
+
* @param CreateCccUpgradeScheduleRequest
|
|
370
|
+
* @return CreateCccUpgradeScheduleResponse
|
|
371
|
+
* @throws OciError when an error occurs
|
|
372
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.2/computecloudatcustomer/CreateCccUpgradeSchedule.ts.html |here} to see how to use CreateCccUpgradeSchedule API.
|
|
373
|
+
*/
|
|
374
|
+
createCccUpgradeSchedule(createCccUpgradeScheduleRequest) {
|
|
375
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
376
|
+
if (this.logger)
|
|
377
|
+
this.logger.debug("Calling operation ComputeCloudAtCustomerClient#createCccUpgradeSchedule.");
|
|
378
|
+
const operationName = "createCccUpgradeSchedule";
|
|
379
|
+
const apiReferenceLink = "";
|
|
380
|
+
const pathParams = {};
|
|
381
|
+
const queryParams = {};
|
|
382
|
+
let headerParams = {
|
|
383
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
384
|
+
"opc-retry-token": createCccUpgradeScheduleRequest.opcRetryToken,
|
|
385
|
+
"opc-request-id": createCccUpgradeScheduleRequest.opcRequestId
|
|
386
|
+
};
|
|
387
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
388
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createCccUpgradeScheduleRequest.retryConfiguration, specRetryConfiguration);
|
|
389
|
+
if (this.logger)
|
|
390
|
+
retrier.logger = this.logger;
|
|
391
|
+
const request = yield oci_common_1.composeRequest({
|
|
392
|
+
baseEndpoint: this._endpoint,
|
|
393
|
+
defaultHeaders: this._defaultHeaders,
|
|
394
|
+
path: "/cccUpgradeSchedules",
|
|
395
|
+
method: "POST",
|
|
396
|
+
bodyContent: common.ObjectSerializer.serialize(createCccUpgradeScheduleRequest.createCccUpgradeScheduleDetails, "CreateCccUpgradeScheduleDetails", model.CreateCccUpgradeScheduleDetails.getJsonObj),
|
|
397
|
+
pathParams: pathParams,
|
|
398
|
+
headerParams: headerParams,
|
|
399
|
+
queryParams: queryParams
|
|
400
|
+
});
|
|
401
|
+
try {
|
|
402
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
403
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
404
|
+
responseObject: {},
|
|
405
|
+
body: yield response.json(),
|
|
406
|
+
bodyKey: "cccUpgradeSchedule",
|
|
407
|
+
bodyModel: model.CccUpgradeSchedule,
|
|
408
|
+
type: "model.CccUpgradeSchedule",
|
|
409
|
+
responseHeaders: [
|
|
410
|
+
{
|
|
411
|
+
value: response.headers.get("etag"),
|
|
412
|
+
key: "etag",
|
|
413
|
+
dataType: "string"
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
value: response.headers.get("opc-request-id"),
|
|
417
|
+
key: "opcRequestId",
|
|
418
|
+
dataType: "string"
|
|
419
|
+
}
|
|
420
|
+
]
|
|
421
|
+
});
|
|
422
|
+
return sdkResponse;
|
|
423
|
+
}
|
|
424
|
+
catch (err) {
|
|
425
|
+
throw err;
|
|
426
|
+
}
|
|
427
|
+
});
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
* Deletes a Compute Cloud@Customer infrastructure resource specified by the resource
|
|
431
|
+
* [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
|
|
432
|
+
*
|
|
433
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
434
|
+
* @param DeleteCccInfrastructureRequest
|
|
435
|
+
* @return DeleteCccInfrastructureResponse
|
|
436
|
+
* @throws OciError when an error occurs
|
|
437
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.2/computecloudatcustomer/DeleteCccInfrastructure.ts.html |here} to see how to use DeleteCccInfrastructure API.
|
|
438
|
+
*/
|
|
439
|
+
deleteCccInfrastructure(deleteCccInfrastructureRequest) {
|
|
440
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
441
|
+
if (this.logger)
|
|
442
|
+
this.logger.debug("Calling operation ComputeCloudAtCustomerClient#deleteCccInfrastructure.");
|
|
443
|
+
const operationName = "deleteCccInfrastructure";
|
|
444
|
+
const apiReferenceLink = "";
|
|
445
|
+
const pathParams = {
|
|
446
|
+
"{cccInfrastructureId}": deleteCccInfrastructureRequest.cccInfrastructureId
|
|
447
|
+
};
|
|
448
|
+
const queryParams = {};
|
|
449
|
+
let headerParams = {
|
|
450
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
451
|
+
"if-match": deleteCccInfrastructureRequest.ifMatch,
|
|
452
|
+
"opc-request-id": deleteCccInfrastructureRequest.opcRequestId
|
|
453
|
+
};
|
|
454
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
455
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteCccInfrastructureRequest.retryConfiguration, specRetryConfiguration);
|
|
456
|
+
if (this.logger)
|
|
457
|
+
retrier.logger = this.logger;
|
|
458
|
+
const request = yield oci_common_1.composeRequest({
|
|
459
|
+
baseEndpoint: this._endpoint,
|
|
460
|
+
defaultHeaders: this._defaultHeaders,
|
|
461
|
+
path: "/cccInfrastructures/{cccInfrastructureId}",
|
|
462
|
+
method: "DELETE",
|
|
463
|
+
pathParams: pathParams,
|
|
464
|
+
headerParams: headerParams,
|
|
465
|
+
queryParams: queryParams
|
|
466
|
+
});
|
|
467
|
+
try {
|
|
468
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
469
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
470
|
+
responseObject: {},
|
|
471
|
+
responseHeaders: [
|
|
472
|
+
{
|
|
473
|
+
value: response.headers.get("opc-request-id"),
|
|
474
|
+
key: "opcRequestId",
|
|
475
|
+
dataType: "string"
|
|
476
|
+
}
|
|
477
|
+
]
|
|
478
|
+
});
|
|
479
|
+
return sdkResponse;
|
|
480
|
+
}
|
|
481
|
+
catch (err) {
|
|
482
|
+
throw err;
|
|
483
|
+
}
|
|
484
|
+
});
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
* Deletes a Compute Cloud@Customer upgrade schedule by the specified
|
|
488
|
+
* [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
|
|
489
|
+
*
|
|
490
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
491
|
+
* @param DeleteCccUpgradeScheduleRequest
|
|
492
|
+
* @return DeleteCccUpgradeScheduleResponse
|
|
493
|
+
* @throws OciError when an error occurs
|
|
494
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.2/computecloudatcustomer/DeleteCccUpgradeSchedule.ts.html |here} to see how to use DeleteCccUpgradeSchedule API.
|
|
495
|
+
*/
|
|
496
|
+
deleteCccUpgradeSchedule(deleteCccUpgradeScheduleRequest) {
|
|
497
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
498
|
+
if (this.logger)
|
|
499
|
+
this.logger.debug("Calling operation ComputeCloudAtCustomerClient#deleteCccUpgradeSchedule.");
|
|
500
|
+
const operationName = "deleteCccUpgradeSchedule";
|
|
501
|
+
const apiReferenceLink = "";
|
|
502
|
+
const pathParams = {
|
|
503
|
+
"{cccUpgradeScheduleId}": deleteCccUpgradeScheduleRequest.cccUpgradeScheduleId
|
|
504
|
+
};
|
|
505
|
+
const queryParams = {};
|
|
506
|
+
let headerParams = {
|
|
507
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
508
|
+
"if-match": deleteCccUpgradeScheduleRequest.ifMatch,
|
|
509
|
+
"opc-request-id": deleteCccUpgradeScheduleRequest.opcRequestId
|
|
510
|
+
};
|
|
511
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
512
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteCccUpgradeScheduleRequest.retryConfiguration, specRetryConfiguration);
|
|
513
|
+
if (this.logger)
|
|
514
|
+
retrier.logger = this.logger;
|
|
515
|
+
const request = yield oci_common_1.composeRequest({
|
|
516
|
+
baseEndpoint: this._endpoint,
|
|
517
|
+
defaultHeaders: this._defaultHeaders,
|
|
518
|
+
path: "/cccUpgradeSchedules/{cccUpgradeScheduleId}",
|
|
519
|
+
method: "DELETE",
|
|
520
|
+
pathParams: pathParams,
|
|
521
|
+
headerParams: headerParams,
|
|
522
|
+
queryParams: queryParams
|
|
523
|
+
});
|
|
524
|
+
try {
|
|
525
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
526
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
527
|
+
responseObject: {},
|
|
528
|
+
responseHeaders: [
|
|
529
|
+
{
|
|
530
|
+
value: response.headers.get("opc-request-id"),
|
|
531
|
+
key: "opcRequestId",
|
|
532
|
+
dataType: "string"
|
|
533
|
+
}
|
|
534
|
+
]
|
|
535
|
+
});
|
|
536
|
+
return sdkResponse;
|
|
537
|
+
}
|
|
538
|
+
catch (err) {
|
|
539
|
+
throw err;
|
|
540
|
+
}
|
|
541
|
+
});
|
|
542
|
+
}
|
|
543
|
+
/**
|
|
544
|
+
* Gets a Compute Cloud@Customer infrastructure using the infrastructure
|
|
545
|
+
* [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
|
|
546
|
+
*
|
|
547
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
548
|
+
* @param GetCccInfrastructureRequest
|
|
549
|
+
* @return GetCccInfrastructureResponse
|
|
550
|
+
* @throws OciError when an error occurs
|
|
551
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.2/computecloudatcustomer/GetCccInfrastructure.ts.html |here} to see how to use GetCccInfrastructure API.
|
|
552
|
+
*/
|
|
553
|
+
getCccInfrastructure(getCccInfrastructureRequest) {
|
|
554
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
555
|
+
if (this.logger)
|
|
556
|
+
this.logger.debug("Calling operation ComputeCloudAtCustomerClient#getCccInfrastructure.");
|
|
557
|
+
const operationName = "getCccInfrastructure";
|
|
558
|
+
const apiReferenceLink = "";
|
|
559
|
+
const pathParams = {
|
|
560
|
+
"{cccInfrastructureId}": getCccInfrastructureRequest.cccInfrastructureId
|
|
561
|
+
};
|
|
562
|
+
const queryParams = {};
|
|
563
|
+
let headerParams = {
|
|
564
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
565
|
+
"opc-request-id": getCccInfrastructureRequest.opcRequestId
|
|
566
|
+
};
|
|
567
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
568
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getCccInfrastructureRequest.retryConfiguration, specRetryConfiguration);
|
|
569
|
+
if (this.logger)
|
|
570
|
+
retrier.logger = this.logger;
|
|
571
|
+
const request = yield oci_common_1.composeRequest({
|
|
572
|
+
baseEndpoint: this._endpoint,
|
|
573
|
+
defaultHeaders: this._defaultHeaders,
|
|
574
|
+
path: "/cccInfrastructures/{cccInfrastructureId}",
|
|
575
|
+
method: "GET",
|
|
576
|
+
pathParams: pathParams,
|
|
577
|
+
headerParams: headerParams,
|
|
578
|
+
queryParams: queryParams
|
|
579
|
+
});
|
|
580
|
+
try {
|
|
581
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
582
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
583
|
+
responseObject: {},
|
|
584
|
+
body: yield response.json(),
|
|
585
|
+
bodyKey: "cccInfrastructure",
|
|
586
|
+
bodyModel: model.CccInfrastructure,
|
|
587
|
+
type: "model.CccInfrastructure",
|
|
588
|
+
responseHeaders: [
|
|
589
|
+
{
|
|
590
|
+
value: response.headers.get("etag"),
|
|
591
|
+
key: "etag",
|
|
592
|
+
dataType: "string"
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
value: response.headers.get("opc-request-id"),
|
|
596
|
+
key: "opcRequestId",
|
|
597
|
+
dataType: "string"
|
|
598
|
+
}
|
|
599
|
+
]
|
|
600
|
+
});
|
|
601
|
+
return sdkResponse;
|
|
602
|
+
}
|
|
603
|
+
catch (err) {
|
|
604
|
+
throw err;
|
|
605
|
+
}
|
|
606
|
+
});
|
|
607
|
+
}
|
|
608
|
+
/**
|
|
609
|
+
* Gets a Compute Cloud@Customer upgrade schedule by the specified
|
|
610
|
+
* [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
|
|
611
|
+
*
|
|
612
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
613
|
+
* @param GetCccUpgradeScheduleRequest
|
|
614
|
+
* @return GetCccUpgradeScheduleResponse
|
|
615
|
+
* @throws OciError when an error occurs
|
|
616
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.2/computecloudatcustomer/GetCccUpgradeSchedule.ts.html |here} to see how to use GetCccUpgradeSchedule API.
|
|
617
|
+
*/
|
|
618
|
+
getCccUpgradeSchedule(getCccUpgradeScheduleRequest) {
|
|
619
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
620
|
+
if (this.logger)
|
|
621
|
+
this.logger.debug("Calling operation ComputeCloudAtCustomerClient#getCccUpgradeSchedule.");
|
|
622
|
+
const operationName = "getCccUpgradeSchedule";
|
|
623
|
+
const apiReferenceLink = "";
|
|
624
|
+
const pathParams = {
|
|
625
|
+
"{cccUpgradeScheduleId}": getCccUpgradeScheduleRequest.cccUpgradeScheduleId
|
|
626
|
+
};
|
|
627
|
+
const queryParams = {};
|
|
628
|
+
let headerParams = {
|
|
629
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
630
|
+
"opc-request-id": getCccUpgradeScheduleRequest.opcRequestId
|
|
631
|
+
};
|
|
632
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
633
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getCccUpgradeScheduleRequest.retryConfiguration, specRetryConfiguration);
|
|
634
|
+
if (this.logger)
|
|
635
|
+
retrier.logger = this.logger;
|
|
636
|
+
const request = yield oci_common_1.composeRequest({
|
|
637
|
+
baseEndpoint: this._endpoint,
|
|
638
|
+
defaultHeaders: this._defaultHeaders,
|
|
639
|
+
path: "/cccUpgradeSchedules/{cccUpgradeScheduleId}",
|
|
640
|
+
method: "GET",
|
|
641
|
+
pathParams: pathParams,
|
|
642
|
+
headerParams: headerParams,
|
|
643
|
+
queryParams: queryParams
|
|
644
|
+
});
|
|
645
|
+
try {
|
|
646
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
647
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
648
|
+
responseObject: {},
|
|
649
|
+
body: yield response.json(),
|
|
650
|
+
bodyKey: "cccUpgradeSchedule",
|
|
651
|
+
bodyModel: model.CccUpgradeSchedule,
|
|
652
|
+
type: "model.CccUpgradeSchedule",
|
|
653
|
+
responseHeaders: [
|
|
654
|
+
{
|
|
655
|
+
value: response.headers.get("etag"),
|
|
656
|
+
key: "etag",
|
|
657
|
+
dataType: "string"
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
value: response.headers.get("opc-request-id"),
|
|
661
|
+
key: "opcRequestId",
|
|
662
|
+
dataType: "string"
|
|
663
|
+
}
|
|
664
|
+
]
|
|
665
|
+
});
|
|
666
|
+
return sdkResponse;
|
|
667
|
+
}
|
|
668
|
+
catch (err) {
|
|
669
|
+
throw err;
|
|
670
|
+
}
|
|
671
|
+
});
|
|
672
|
+
}
|
|
673
|
+
/**
|
|
674
|
+
* Returns a list of Compute Cloud@Customer infrastructures.
|
|
675
|
+
*
|
|
676
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
677
|
+
* @param ListCccInfrastructuresRequest
|
|
678
|
+
* @return ListCccInfrastructuresResponse
|
|
679
|
+
* @throws OciError when an error occurs
|
|
680
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.2/computecloudatcustomer/ListCccInfrastructures.ts.html |here} to see how to use ListCccInfrastructures API.
|
|
681
|
+
*/
|
|
682
|
+
listCccInfrastructures(listCccInfrastructuresRequest) {
|
|
683
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
684
|
+
if (this.logger)
|
|
685
|
+
this.logger.debug("Calling operation ComputeCloudAtCustomerClient#listCccInfrastructures.");
|
|
686
|
+
const operationName = "listCccInfrastructures";
|
|
687
|
+
const apiReferenceLink = "";
|
|
688
|
+
const pathParams = {};
|
|
689
|
+
const queryParams = {
|
|
690
|
+
"compartmentId": listCccInfrastructuresRequest.compartmentId,
|
|
691
|
+
"compartmentIdInSubtree": listCccInfrastructuresRequest.compartmentIdInSubtree,
|
|
692
|
+
"accessLevel": listCccInfrastructuresRequest.accessLevel,
|
|
693
|
+
"lifecycleState": listCccInfrastructuresRequest.lifecycleState,
|
|
694
|
+
"displayName": listCccInfrastructuresRequest.displayName,
|
|
695
|
+
"displayNameContains": listCccInfrastructuresRequest.displayNameContains,
|
|
696
|
+
"cccInfrastructureId": listCccInfrastructuresRequest.cccInfrastructureId,
|
|
697
|
+
"limit": listCccInfrastructuresRequest.limit,
|
|
698
|
+
"page": listCccInfrastructuresRequest.page,
|
|
699
|
+
"sortOrder": listCccInfrastructuresRequest.sortOrder,
|
|
700
|
+
"sortBy": listCccInfrastructuresRequest.sortBy
|
|
701
|
+
};
|
|
702
|
+
let headerParams = {
|
|
703
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
704
|
+
"opc-request-id": listCccInfrastructuresRequest.opcRequestId
|
|
705
|
+
};
|
|
706
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
707
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listCccInfrastructuresRequest.retryConfiguration, specRetryConfiguration);
|
|
708
|
+
if (this.logger)
|
|
709
|
+
retrier.logger = this.logger;
|
|
710
|
+
const request = yield oci_common_1.composeRequest({
|
|
711
|
+
baseEndpoint: this._endpoint,
|
|
712
|
+
defaultHeaders: this._defaultHeaders,
|
|
713
|
+
path: "/cccInfrastructures",
|
|
714
|
+
method: "GET",
|
|
715
|
+
pathParams: pathParams,
|
|
716
|
+
headerParams: headerParams,
|
|
717
|
+
queryParams: queryParams
|
|
718
|
+
});
|
|
719
|
+
try {
|
|
720
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
721
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
722
|
+
responseObject: {},
|
|
723
|
+
body: yield response.json(),
|
|
724
|
+
bodyKey: "cccInfrastructureCollection",
|
|
725
|
+
bodyModel: model.CccInfrastructureCollection,
|
|
726
|
+
type: "model.CccInfrastructureCollection",
|
|
727
|
+
responseHeaders: [
|
|
728
|
+
{
|
|
729
|
+
value: response.headers.get("opc-request-id"),
|
|
730
|
+
key: "opcRequestId",
|
|
731
|
+
dataType: "string"
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
value: response.headers.get("opc-next-page"),
|
|
735
|
+
key: "opcNextPage",
|
|
736
|
+
dataType: "string"
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
value: response.headers.get("opc-prev-page"),
|
|
740
|
+
key: "opcPrevPage",
|
|
741
|
+
dataType: "string"
|
|
742
|
+
}
|
|
743
|
+
]
|
|
744
|
+
});
|
|
745
|
+
return sdkResponse;
|
|
746
|
+
}
|
|
747
|
+
catch (err) {
|
|
748
|
+
throw err;
|
|
749
|
+
}
|
|
750
|
+
});
|
|
751
|
+
}
|
|
752
|
+
/**
|
|
753
|
+
* Returns a list of Compute Cloud@Customer upgrade schedules.
|
|
754
|
+
*
|
|
755
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
756
|
+
* @param ListCccUpgradeSchedulesRequest
|
|
757
|
+
* @return ListCccUpgradeSchedulesResponse
|
|
758
|
+
* @throws OciError when an error occurs
|
|
759
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.2/computecloudatcustomer/ListCccUpgradeSchedules.ts.html |here} to see how to use ListCccUpgradeSchedules API.
|
|
760
|
+
*/
|
|
761
|
+
listCccUpgradeSchedules(listCccUpgradeSchedulesRequest) {
|
|
762
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
763
|
+
if (this.logger)
|
|
764
|
+
this.logger.debug("Calling operation ComputeCloudAtCustomerClient#listCccUpgradeSchedules.");
|
|
765
|
+
const operationName = "listCccUpgradeSchedules";
|
|
766
|
+
const apiReferenceLink = "";
|
|
767
|
+
const pathParams = {};
|
|
768
|
+
const queryParams = {
|
|
769
|
+
"cccUpgradeScheduleId": listCccUpgradeSchedulesRequest.cccUpgradeScheduleId,
|
|
770
|
+
"compartmentId": listCccUpgradeSchedulesRequest.compartmentId,
|
|
771
|
+
"compartmentIdInSubtree": listCccUpgradeSchedulesRequest.compartmentIdInSubtree,
|
|
772
|
+
"accessLevel": listCccUpgradeSchedulesRequest.accessLevel,
|
|
773
|
+
"lifecycleState": listCccUpgradeSchedulesRequest.lifecycleState,
|
|
774
|
+
"displayName": listCccUpgradeSchedulesRequest.displayName,
|
|
775
|
+
"displayNameContains": listCccUpgradeSchedulesRequest.displayNameContains,
|
|
776
|
+
"limit": listCccUpgradeSchedulesRequest.limit,
|
|
777
|
+
"page": listCccUpgradeSchedulesRequest.page,
|
|
778
|
+
"sortOrder": listCccUpgradeSchedulesRequest.sortOrder,
|
|
779
|
+
"sortBy": listCccUpgradeSchedulesRequest.sortBy
|
|
780
|
+
};
|
|
781
|
+
let headerParams = {
|
|
782
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
783
|
+
"opc-request-id": listCccUpgradeSchedulesRequest.opcRequestId
|
|
784
|
+
};
|
|
785
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
786
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listCccUpgradeSchedulesRequest.retryConfiguration, specRetryConfiguration);
|
|
787
|
+
if (this.logger)
|
|
788
|
+
retrier.logger = this.logger;
|
|
789
|
+
const request = yield oci_common_1.composeRequest({
|
|
790
|
+
baseEndpoint: this._endpoint,
|
|
791
|
+
defaultHeaders: this._defaultHeaders,
|
|
792
|
+
path: "/cccUpgradeSchedules",
|
|
793
|
+
method: "GET",
|
|
794
|
+
pathParams: pathParams,
|
|
795
|
+
headerParams: headerParams,
|
|
796
|
+
queryParams: queryParams
|
|
797
|
+
});
|
|
798
|
+
try {
|
|
799
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
800
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
801
|
+
responseObject: {},
|
|
802
|
+
body: yield response.json(),
|
|
803
|
+
bodyKey: "cccUpgradeScheduleCollection",
|
|
804
|
+
bodyModel: model.CccUpgradeScheduleCollection,
|
|
805
|
+
type: "model.CccUpgradeScheduleCollection",
|
|
806
|
+
responseHeaders: [
|
|
807
|
+
{
|
|
808
|
+
value: response.headers.get("opc-request-id"),
|
|
809
|
+
key: "opcRequestId",
|
|
810
|
+
dataType: "string"
|
|
811
|
+
},
|
|
812
|
+
{
|
|
813
|
+
value: response.headers.get("opc-next-page"),
|
|
814
|
+
key: "opcNextPage",
|
|
815
|
+
dataType: "string"
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
value: response.headers.get("opc-prev-page"),
|
|
819
|
+
key: "opcPrevPage",
|
|
820
|
+
dataType: "string"
|
|
821
|
+
}
|
|
822
|
+
]
|
|
823
|
+
});
|
|
824
|
+
return sdkResponse;
|
|
825
|
+
}
|
|
826
|
+
catch (err) {
|
|
827
|
+
throw err;
|
|
828
|
+
}
|
|
829
|
+
});
|
|
830
|
+
}
|
|
831
|
+
/**
|
|
832
|
+
* Updates Compute Cloud@Customer infrastructure resource.
|
|
833
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
834
|
+
* @param UpdateCccInfrastructureRequest
|
|
835
|
+
* @return UpdateCccInfrastructureResponse
|
|
836
|
+
* @throws OciError when an error occurs
|
|
837
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.2/computecloudatcustomer/UpdateCccInfrastructure.ts.html |here} to see how to use UpdateCccInfrastructure API.
|
|
838
|
+
*/
|
|
839
|
+
updateCccInfrastructure(updateCccInfrastructureRequest) {
|
|
840
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
841
|
+
if (this.logger)
|
|
842
|
+
this.logger.debug("Calling operation ComputeCloudAtCustomerClient#updateCccInfrastructure.");
|
|
843
|
+
const operationName = "updateCccInfrastructure";
|
|
844
|
+
const apiReferenceLink = "";
|
|
845
|
+
const pathParams = {
|
|
846
|
+
"{cccInfrastructureId}": updateCccInfrastructureRequest.cccInfrastructureId
|
|
847
|
+
};
|
|
848
|
+
const queryParams = {};
|
|
849
|
+
let headerParams = {
|
|
850
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
851
|
+
"if-match": updateCccInfrastructureRequest.ifMatch,
|
|
852
|
+
"opc-request-id": updateCccInfrastructureRequest.opcRequestId
|
|
853
|
+
};
|
|
854
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
855
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateCccInfrastructureRequest.retryConfiguration, specRetryConfiguration);
|
|
856
|
+
if (this.logger)
|
|
857
|
+
retrier.logger = this.logger;
|
|
858
|
+
const request = yield oci_common_1.composeRequest({
|
|
859
|
+
baseEndpoint: this._endpoint,
|
|
860
|
+
defaultHeaders: this._defaultHeaders,
|
|
861
|
+
path: "/cccInfrastructures/{cccInfrastructureId}",
|
|
862
|
+
method: "PUT",
|
|
863
|
+
bodyContent: common.ObjectSerializer.serialize(updateCccInfrastructureRequest.updateCccInfrastructureDetails, "UpdateCccInfrastructureDetails", model.UpdateCccInfrastructureDetails.getJsonObj),
|
|
864
|
+
pathParams: pathParams,
|
|
865
|
+
headerParams: headerParams,
|
|
866
|
+
queryParams: queryParams
|
|
867
|
+
});
|
|
868
|
+
try {
|
|
869
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
870
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
871
|
+
responseObject: {},
|
|
872
|
+
body: yield response.json(),
|
|
873
|
+
bodyKey: "cccInfrastructure",
|
|
874
|
+
bodyModel: model.CccInfrastructure,
|
|
875
|
+
type: "model.CccInfrastructure",
|
|
876
|
+
responseHeaders: [
|
|
877
|
+
{
|
|
878
|
+
value: response.headers.get("etag"),
|
|
879
|
+
key: "etag",
|
|
880
|
+
dataType: "string"
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
value: response.headers.get("opc-request-id"),
|
|
884
|
+
key: "opcRequestId",
|
|
885
|
+
dataType: "string"
|
|
886
|
+
}
|
|
887
|
+
]
|
|
888
|
+
});
|
|
889
|
+
return sdkResponse;
|
|
890
|
+
}
|
|
891
|
+
catch (err) {
|
|
892
|
+
throw err;
|
|
893
|
+
}
|
|
894
|
+
});
|
|
895
|
+
}
|
|
896
|
+
/**
|
|
897
|
+
* Updates the Compute Cloud@Customer upgrade schedule.
|
|
898
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
899
|
+
* @param UpdateCccUpgradeScheduleRequest
|
|
900
|
+
* @return UpdateCccUpgradeScheduleResponse
|
|
901
|
+
* @throws OciError when an error occurs
|
|
902
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.2/computecloudatcustomer/UpdateCccUpgradeSchedule.ts.html |here} to see how to use UpdateCccUpgradeSchedule API.
|
|
903
|
+
*/
|
|
904
|
+
updateCccUpgradeSchedule(updateCccUpgradeScheduleRequest) {
|
|
905
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
906
|
+
if (this.logger)
|
|
907
|
+
this.logger.debug("Calling operation ComputeCloudAtCustomerClient#updateCccUpgradeSchedule.");
|
|
908
|
+
const operationName = "updateCccUpgradeSchedule";
|
|
909
|
+
const apiReferenceLink = "";
|
|
910
|
+
const pathParams = {
|
|
911
|
+
"{cccUpgradeScheduleId}": updateCccUpgradeScheduleRequest.cccUpgradeScheduleId
|
|
912
|
+
};
|
|
913
|
+
const queryParams = {};
|
|
914
|
+
let headerParams = {
|
|
915
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
916
|
+
"if-match": updateCccUpgradeScheduleRequest.ifMatch,
|
|
917
|
+
"opc-request-id": updateCccUpgradeScheduleRequest.opcRequestId
|
|
918
|
+
};
|
|
919
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
920
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateCccUpgradeScheduleRequest.retryConfiguration, specRetryConfiguration);
|
|
921
|
+
if (this.logger)
|
|
922
|
+
retrier.logger = this.logger;
|
|
923
|
+
const request = yield oci_common_1.composeRequest({
|
|
924
|
+
baseEndpoint: this._endpoint,
|
|
925
|
+
defaultHeaders: this._defaultHeaders,
|
|
926
|
+
path: "/cccUpgradeSchedules/{cccUpgradeScheduleId}",
|
|
927
|
+
method: "PUT",
|
|
928
|
+
bodyContent: common.ObjectSerializer.serialize(updateCccUpgradeScheduleRequest.updateCccUpgradeScheduleDetails, "UpdateCccUpgradeScheduleDetails", model.UpdateCccUpgradeScheduleDetails.getJsonObj),
|
|
929
|
+
pathParams: pathParams,
|
|
930
|
+
headerParams: headerParams,
|
|
931
|
+
queryParams: queryParams
|
|
932
|
+
});
|
|
933
|
+
try {
|
|
934
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
935
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
936
|
+
responseObject: {},
|
|
937
|
+
body: yield response.json(),
|
|
938
|
+
bodyKey: "cccUpgradeSchedule",
|
|
939
|
+
bodyModel: model.CccUpgradeSchedule,
|
|
940
|
+
type: "model.CccUpgradeSchedule",
|
|
941
|
+
responseHeaders: [
|
|
942
|
+
{
|
|
943
|
+
value: response.headers.get("etag"),
|
|
944
|
+
key: "etag",
|
|
945
|
+
dataType: "string"
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
value: response.headers.get("opc-request-id"),
|
|
949
|
+
key: "opcRequestId",
|
|
950
|
+
dataType: "string"
|
|
951
|
+
}
|
|
952
|
+
]
|
|
953
|
+
});
|
|
954
|
+
return sdkResponse;
|
|
955
|
+
}
|
|
956
|
+
catch (err) {
|
|
957
|
+
throw err;
|
|
958
|
+
}
|
|
959
|
+
});
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
exports.ComputeCloudAtCustomerClient = ComputeCloudAtCustomerClient;
|
|
963
|
+
ComputeCloudAtCustomerClient.serviceEndpointTemplate = "https://ccc.{region}.oci.{secondLevelDomain}";
|
|
964
|
+
ComputeCloudAtCustomerClient.endpointServiceName = "";
|
|
965
|
+
//# sourceMappingURL=client.js.map
|