oci-demandsignal 2.87.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 +160 -0
- package/lib/client.js +669 -0
- package/lib/client.js.map +1 -0
- package/lib/model/change-occ-demand-signal-compartment-details.d.ts +26 -0
- package/lib/model/change-occ-demand-signal-compartment-details.js +29 -0
- package/lib/model/change-occ-demand-signal-compartment-details.js.map +1 -0
- package/lib/model/create-occ-demand-signal-details.d.ts +61 -0
- package/lib/model/create-occ-demand-signal-details.js +61 -0
- package/lib/model/create-occ-demand-signal-details.js.map +1 -0
- package/lib/model/index.d.ts +50 -0
- package/lib/model/index.js +73 -0
- package/lib/model/index.js.map +1 -0
- package/lib/model/occ-demand-signal-collection.d.ts +26 -0
- package/lib/model/occ-demand-signal-collection.js +61 -0
- package/lib/model/occ-demand-signal-collection.js.map +1 -0
- package/lib/model/occ-demand-signal-data.d.ts +34 -0
- package/lib/model/occ-demand-signal-data.js +61 -0
- package/lib/model/occ-demand-signal-data.js.map +1 -0
- package/lib/model/occ-demand-signal-summary.d.ts +93 -0
- package/lib/model/occ-demand-signal-summary.js +29 -0
- package/lib/model/occ-demand-signal-summary.js.map +1 -0
- package/lib/model/occ-demand-signal-value.d.ts +33 -0
- package/lib/model/occ-demand-signal-value.js +29 -0
- package/lib/model/occ-demand-signal-value.js.map +1 -0
- package/lib/model/occ-demand-signal.d.ts +117 -0
- package/lib/model/occ-demand-signal.js +75 -0
- package/lib/model/occ-demand-signal.js.map +1 -0
- package/lib/model/patch-insert-instruction.d.ts +44 -0
- package/lib/model/patch-insert-instruction.js +59 -0
- package/lib/model/patch-insert-instruction.js.map +1 -0
- package/lib/model/patch-insert-multiple-instruction.d.ts +44 -0
- package/lib/model/patch-insert-multiple-instruction.js +59 -0
- package/lib/model/patch-insert-multiple-instruction.js.map +1 -0
- package/lib/model/patch-instruction.d.ts +29 -0
- package/lib/model/patch-instruction.js +96 -0
- package/lib/model/patch-instruction.js.map +1 -0
- package/lib/model/patch-merge-instruction.d.ts +35 -0
- package/lib/model/patch-merge-instruction.js +54 -0
- package/lib/model/patch-merge-instruction.js.map +1 -0
- package/lib/model/patch-move-instruction.d.ts +44 -0
- package/lib/model/patch-move-instruction.js +58 -0
- package/lib/model/patch-move-instruction.js.map +1 -0
- package/lib/model/patch-occ-demand-signal-details.d.ts +26 -0
- package/lib/model/patch-occ-demand-signal-details.js +61 -0
- package/lib/model/patch-occ-demand-signal-details.js.map +1 -0
- package/lib/model/patch-prohibit-instruction.d.ts +35 -0
- package/lib/model/patch-prohibit-instruction.js +54 -0
- package/lib/model/patch-prohibit-instruction.js.map +1 -0
- package/lib/model/patch-remove-instruction.d.ts +26 -0
- package/lib/model/patch-remove-instruction.js +54 -0
- package/lib/model/patch-remove-instruction.js.map +1 -0
- package/lib/model/patch-replace-instruction.d.ts +32 -0
- package/lib/model/patch-replace-instruction.js +54 -0
- package/lib/model/patch-replace-instruction.js.map +1 -0
- package/lib/model/patch-require-instruction.d.ts +34 -0
- package/lib/model/patch-require-instruction.js +54 -0
- package/lib/model/patch-require-instruction.js.map +1 -0
- package/lib/model/sort-order.d.ts +30 -0
- package/lib/model/sort-order.js +41 -0
- package/lib/model/sort-order.js.map +1 -0
- package/lib/model/update-occ-demand-signal-details.d.ts +51 -0
- package/lib/model/update-occ-demand-signal-details.js +29 -0
- package/lib/model/update-occ-demand-signal-details.js.map +1 -0
- package/lib/occdemandsignal-waiter.d.ts +29 -0
- package/lib/occdemandsignal-waiter.js +65 -0
- package/lib/occdemandsignal-waiter.js.map +1 -0
- package/lib/request/change-occ-demand-signal-compartment-request.d.ts +43 -0
- package/lib/request/change-occ-demand-signal-compartment-request.js +15 -0
- package/lib/request/change-occ-demand-signal-compartment-request.js.map +1 -0
- package/lib/request/create-occ-demand-signal-request.d.ts +40 -0
- package/lib/request/create-occ-demand-signal-request.js +15 -0
- package/lib/request/create-occ-demand-signal-request.js.map +1 -0
- package/lib/request/delete-occ-demand-signal-request.d.ts +38 -0
- package/lib/request/delete-occ-demand-signal-request.js +15 -0
- package/lib/request/delete-occ-demand-signal-request.js.map +1 -0
- package/lib/request/get-occ-demand-signal-request.d.ts +30 -0
- package/lib/request/get-occ-demand-signal-request.js +15 -0
- package/lib/request/get-occ-demand-signal-request.js.map +1 -0
- package/lib/request/index.d.ts +26 -0
- package/lib/request/index.js +37 -0
- package/lib/request/index.js.map +1 -0
- package/lib/request/list-occ-demand-signals-request.d.ts +75 -0
- package/lib/request/list-occ-demand-signals-request.js +24 -0
- package/lib/request/list-occ-demand-signals-request.js.map +1 -0
- package/lib/request/patch-occ-demand-signal-request.d.ts +43 -0
- package/lib/request/patch-occ-demand-signal-request.js +15 -0
- package/lib/request/patch-occ-demand-signal-request.js.map +1 -0
- package/lib/request/update-occ-demand-signal-request.d.ts +43 -0
- package/lib/request/update-occ-demand-signal-request.js +15 -0
- package/lib/request/update-occ-demand-signal-request.js.map +1 -0
- package/lib/response/change-occ-demand-signal-compartment-response.d.ts +26 -0
- package/lib/response/change-occ-demand-signal-compartment-response.js +15 -0
- package/lib/response/change-occ-demand-signal-compartment-response.js.map +1 -0
- package/lib/response/create-occ-demand-signal-response.d.ts +34 -0
- package/lib/response/create-occ-demand-signal-response.js +15 -0
- package/lib/response/create-occ-demand-signal-response.js.map +1 -0
- package/lib/response/delete-occ-demand-signal-response.d.ts +26 -0
- package/lib/response/delete-occ-demand-signal-response.js +15 -0
- package/lib/response/delete-occ-demand-signal-response.js.map +1 -0
- package/lib/response/get-occ-demand-signal-response.d.ts +30 -0
- package/lib/response/get-occ-demand-signal-response.js +15 -0
- package/lib/response/get-occ-demand-signal-response.js.map +1 -0
- package/lib/response/index.d.ts +26 -0
- package/lib/response/index.js +15 -0
- package/lib/response/index.js.map +1 -0
- package/lib/response/list-occ-demand-signals-response.d.ts +31 -0
- package/lib/response/list-occ-demand-signals-response.js +15 -0
- package/lib/response/list-occ-demand-signals-response.js.map +1 -0
- package/lib/response/patch-occ-demand-signal-response.d.ts +34 -0
- package/lib/response/patch-occ-demand-signal-response.js +15 -0
- package/lib/response/patch-occ-demand-signal-response.js.map +1 -0
- package/lib/response/update-occ-demand-signal-response.d.ts +34 -0
- package/lib/response/update-occ-demand-signal-response.js +15 -0
- package/lib/response/update-occ-demand-signal-response.js.map +1 -0
- package/package.json +29 -0
package/lib/client.js
ADDED
|
@@ -0,0 +1,669 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* OCI Control Center Demand Signal API
|
|
4
|
+
* Use the OCI Control Center Demand Signal API to manage Demand Signals.
|
|
5
|
+
* OpenAPI spec version: 20240430
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2024, 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.OccDemandSignalClient = exports.OccDemandSignalApiKeys = void 0;
|
|
44
|
+
const common = require("oci-common");
|
|
45
|
+
const model = __importStar(require("./model"));
|
|
46
|
+
const occdemandsignal_waiter_1 = require("./occdemandsignal-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 OccDemandSignalApiKeys;
|
|
53
|
+
(function (OccDemandSignalApiKeys) {
|
|
54
|
+
})(OccDemandSignalApiKeys = exports.OccDemandSignalApiKeys || (exports.OccDemandSignalApiKeys = {}));
|
|
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 OccDemandSignalClient {
|
|
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 = "OccDemandSignal";
|
|
67
|
+
this._regionId = "";
|
|
68
|
+
this._lastSetRegionOrRegionId = "";
|
|
69
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
70
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
71
|
+
: null;
|
|
72
|
+
if (clientConfiguration) {
|
|
73
|
+
this._clientConfiguration = clientConfiguration;
|
|
74
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
75
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
76
|
+
: null;
|
|
77
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
78
|
+
? clientConfiguration.httpOptions
|
|
79
|
+
: undefined;
|
|
80
|
+
this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
|
|
81
|
+
? clientConfiguration.bodyDuplexMode
|
|
82
|
+
: undefined;
|
|
83
|
+
}
|
|
84
|
+
if (!oci_common_1.developerToolConfiguration.isServiceEnabled("demandsignal")) {
|
|
85
|
+
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 : ";
|
|
86
|
+
throw errmsg.concat("demandsignal");
|
|
87
|
+
}
|
|
88
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
89
|
+
const specCircuitBreakerEnabled = true;
|
|
90
|
+
if (!this._circuitBreaker &&
|
|
91
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
92
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
93
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
94
|
+
}
|
|
95
|
+
this._httpClient =
|
|
96
|
+
params.httpClient ||
|
|
97
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
|
|
98
|
+
if (params.authenticationDetailsProvider &&
|
|
99
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
100
|
+
const provider = params.authenticationDetailsProvider;
|
|
101
|
+
if (provider.getRegion()) {
|
|
102
|
+
this.region = provider.getRegion();
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
108
|
+
*/
|
|
109
|
+
get endpoint() {
|
|
110
|
+
return this._endpoint;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
114
|
+
* @param endpoint The endpoint of the service.
|
|
115
|
+
*/
|
|
116
|
+
set endpoint(endpoint) {
|
|
117
|
+
this._endpoint = endpoint;
|
|
118
|
+
this._endpoint = this._endpoint + "/20240430";
|
|
119
|
+
if (this.logger)
|
|
120
|
+
this.logger.info(`OccDemandSignalClient endpoint set to ${this._endpoint}`);
|
|
121
|
+
}
|
|
122
|
+
get logger() {
|
|
123
|
+
return common.LOG.logger;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
127
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
128
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
129
|
+
*/
|
|
130
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
131
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
132
|
+
if (this.logger)
|
|
133
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
134
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
135
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(OccDemandSignalClient.serviceEndpointTemplate, this._region, OccDemandSignalClient.endpointServiceName);
|
|
136
|
+
}
|
|
137
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
138
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(OccDemandSignalClient.serviceEndpointTemplate, this._regionId, OccDemandSignalClient.endpointServiceName);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
143
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
144
|
+
* @param region The region of the service.
|
|
145
|
+
*/
|
|
146
|
+
set region(region) {
|
|
147
|
+
this._region = region;
|
|
148
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(OccDemandSignalClient.serviceEndpointTemplate, region, OccDemandSignalClient.endpointServiceName);
|
|
149
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
153
|
+
*
|
|
154
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
155
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
156
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
157
|
+
* @param regionId The public region ID.
|
|
158
|
+
*/
|
|
159
|
+
set regionId(regionId) {
|
|
160
|
+
this._regionId = regionId;
|
|
161
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(OccDemandSignalClient.serviceEndpointTemplate, regionId, OccDemandSignalClient.endpointServiceName);
|
|
162
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Creates a new OccDemandSignalWaiter for resources for this service.
|
|
166
|
+
*
|
|
167
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
168
|
+
* @return The service waiters.
|
|
169
|
+
*/
|
|
170
|
+
createWaiters(config) {
|
|
171
|
+
this._waiters = new occdemandsignal_waiter_1.OccDemandSignalWaiter(this, config);
|
|
172
|
+
return this._waiters;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Gets the waiters available for resources for this service.
|
|
176
|
+
*
|
|
177
|
+
* @return The service waiters.
|
|
178
|
+
*/
|
|
179
|
+
getWaiters() {
|
|
180
|
+
if (this._waiters) {
|
|
181
|
+
return this._waiters;
|
|
182
|
+
}
|
|
183
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
187
|
+
*/
|
|
188
|
+
shutdownCircuitBreaker() {
|
|
189
|
+
if (this._circuitBreaker) {
|
|
190
|
+
this._circuitBreaker.shutdown();
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Close the client once it is no longer needed
|
|
195
|
+
*/
|
|
196
|
+
close() {
|
|
197
|
+
this.shutdownCircuitBreaker();
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Moves a OccDemandSignal into a different compartment within the same tenancy. For information about moving resources between
|
|
201
|
+
* compartments, see [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
|
|
202
|
+
*
|
|
203
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
204
|
+
* @param ChangeOccDemandSignalCompartmentRequest
|
|
205
|
+
* @return ChangeOccDemandSignalCompartmentResponse
|
|
206
|
+
* @throws OciError when an error occurs
|
|
207
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.87.0/demandsignal/ChangeOccDemandSignalCompartment.ts.html |here} to see how to use ChangeOccDemandSignalCompartment API.
|
|
208
|
+
*/
|
|
209
|
+
changeOccDemandSignalCompartment(changeOccDemandSignalCompartmentRequest) {
|
|
210
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
211
|
+
if (this.logger)
|
|
212
|
+
this.logger.debug("Calling operation OccDemandSignalClient#changeOccDemandSignalCompartment.");
|
|
213
|
+
const operationName = "changeOccDemandSignalCompartment";
|
|
214
|
+
const apiReferenceLink = "";
|
|
215
|
+
const pathParams = {
|
|
216
|
+
"{occDemandSignalId}": changeOccDemandSignalCompartmentRequest.occDemandSignalId
|
|
217
|
+
};
|
|
218
|
+
const queryParams = {};
|
|
219
|
+
let headerParams = {
|
|
220
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
221
|
+
"if-match": changeOccDemandSignalCompartmentRequest.ifMatch,
|
|
222
|
+
"opc-request-id": changeOccDemandSignalCompartmentRequest.opcRequestId
|
|
223
|
+
};
|
|
224
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
225
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeOccDemandSignalCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
226
|
+
if (this.logger)
|
|
227
|
+
retrier.logger = this.logger;
|
|
228
|
+
const request = yield oci_common_1.composeRequest({
|
|
229
|
+
baseEndpoint: this._endpoint,
|
|
230
|
+
defaultHeaders: this._defaultHeaders,
|
|
231
|
+
path: "/occDemandSignals/{occDemandSignalId}/actions/changeCompartment",
|
|
232
|
+
method: "POST",
|
|
233
|
+
bodyContent: common.ObjectSerializer.serialize(changeOccDemandSignalCompartmentRequest.changeOccDemandSignalCompartmentDetails, "ChangeOccDemandSignalCompartmentDetails", model.ChangeOccDemandSignalCompartmentDetails.getJsonObj),
|
|
234
|
+
pathParams: pathParams,
|
|
235
|
+
headerParams: headerParams,
|
|
236
|
+
queryParams: queryParams
|
|
237
|
+
});
|
|
238
|
+
try {
|
|
239
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
240
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
241
|
+
responseObject: {},
|
|
242
|
+
responseHeaders: [
|
|
243
|
+
{
|
|
244
|
+
value: response.headers.get("opc-work-request-id"),
|
|
245
|
+
key: "opcWorkRequestId",
|
|
246
|
+
dataType: "string"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
value: response.headers.get("opc-request-id"),
|
|
250
|
+
key: "opcRequestId",
|
|
251
|
+
dataType: "string"
|
|
252
|
+
}
|
|
253
|
+
]
|
|
254
|
+
});
|
|
255
|
+
return sdkResponse;
|
|
256
|
+
}
|
|
257
|
+
catch (err) {
|
|
258
|
+
throw err;
|
|
259
|
+
}
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* Creates a OccDemandSignal.
|
|
264
|
+
*
|
|
265
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
266
|
+
* @param CreateOccDemandSignalRequest
|
|
267
|
+
* @return CreateOccDemandSignalResponse
|
|
268
|
+
* @throws OciError when an error occurs
|
|
269
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.87.0/demandsignal/CreateOccDemandSignal.ts.html |here} to see how to use CreateOccDemandSignal API.
|
|
270
|
+
*/
|
|
271
|
+
createOccDemandSignal(createOccDemandSignalRequest) {
|
|
272
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
273
|
+
if (this.logger)
|
|
274
|
+
this.logger.debug("Calling operation OccDemandSignalClient#createOccDemandSignal.");
|
|
275
|
+
const operationName = "createOccDemandSignal";
|
|
276
|
+
const apiReferenceLink = "";
|
|
277
|
+
const pathParams = {};
|
|
278
|
+
const queryParams = {};
|
|
279
|
+
let headerParams = {
|
|
280
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
281
|
+
"opc-retry-token": createOccDemandSignalRequest.opcRetryToken,
|
|
282
|
+
"opc-request-id": createOccDemandSignalRequest.opcRequestId
|
|
283
|
+
};
|
|
284
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
285
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createOccDemandSignalRequest.retryConfiguration, specRetryConfiguration);
|
|
286
|
+
if (this.logger)
|
|
287
|
+
retrier.logger = this.logger;
|
|
288
|
+
const request = yield oci_common_1.composeRequest({
|
|
289
|
+
baseEndpoint: this._endpoint,
|
|
290
|
+
defaultHeaders: this._defaultHeaders,
|
|
291
|
+
path: "/occDemandSignals",
|
|
292
|
+
method: "POST",
|
|
293
|
+
bodyContent: common.ObjectSerializer.serialize(createOccDemandSignalRequest.createOccDemandSignalDetails, "CreateOccDemandSignalDetails", model.CreateOccDemandSignalDetails.getJsonObj),
|
|
294
|
+
pathParams: pathParams,
|
|
295
|
+
headerParams: headerParams,
|
|
296
|
+
queryParams: queryParams
|
|
297
|
+
});
|
|
298
|
+
try {
|
|
299
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
300
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
301
|
+
responseObject: {},
|
|
302
|
+
body: yield response.json(),
|
|
303
|
+
bodyKey: "occDemandSignal",
|
|
304
|
+
bodyModel: model.OccDemandSignal,
|
|
305
|
+
type: "model.OccDemandSignal",
|
|
306
|
+
responseHeaders: [
|
|
307
|
+
{
|
|
308
|
+
value: response.headers.get("retry-after"),
|
|
309
|
+
key: "retryAfter",
|
|
310
|
+
dataType: "number"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
value: response.headers.get("etag"),
|
|
314
|
+
key: "etag",
|
|
315
|
+
dataType: "string"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
value: response.headers.get("opc-request-id"),
|
|
319
|
+
key: "opcRequestId",
|
|
320
|
+
dataType: "string"
|
|
321
|
+
}
|
|
322
|
+
]
|
|
323
|
+
});
|
|
324
|
+
return sdkResponse;
|
|
325
|
+
}
|
|
326
|
+
catch (err) {
|
|
327
|
+
throw err;
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* Deletes a OccDemandSignal.
|
|
333
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
334
|
+
* @param DeleteOccDemandSignalRequest
|
|
335
|
+
* @return DeleteOccDemandSignalResponse
|
|
336
|
+
* @throws OciError when an error occurs
|
|
337
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.87.0/demandsignal/DeleteOccDemandSignal.ts.html |here} to see how to use DeleteOccDemandSignal API.
|
|
338
|
+
*/
|
|
339
|
+
deleteOccDemandSignal(deleteOccDemandSignalRequest) {
|
|
340
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
341
|
+
if (this.logger)
|
|
342
|
+
this.logger.debug("Calling operation OccDemandSignalClient#deleteOccDemandSignal.");
|
|
343
|
+
const operationName = "deleteOccDemandSignal";
|
|
344
|
+
const apiReferenceLink = "";
|
|
345
|
+
const pathParams = {
|
|
346
|
+
"{occDemandSignalId}": deleteOccDemandSignalRequest.occDemandSignalId
|
|
347
|
+
};
|
|
348
|
+
const queryParams = {};
|
|
349
|
+
let headerParams = {
|
|
350
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
351
|
+
"if-match": deleteOccDemandSignalRequest.ifMatch,
|
|
352
|
+
"opc-request-id": deleteOccDemandSignalRequest.opcRequestId
|
|
353
|
+
};
|
|
354
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
355
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteOccDemandSignalRequest.retryConfiguration, specRetryConfiguration);
|
|
356
|
+
if (this.logger)
|
|
357
|
+
retrier.logger = this.logger;
|
|
358
|
+
const request = yield oci_common_1.composeRequest({
|
|
359
|
+
baseEndpoint: this._endpoint,
|
|
360
|
+
defaultHeaders: this._defaultHeaders,
|
|
361
|
+
path: "/occDemandSignals/{occDemandSignalId}",
|
|
362
|
+
method: "DELETE",
|
|
363
|
+
pathParams: pathParams,
|
|
364
|
+
headerParams: headerParams,
|
|
365
|
+
queryParams: queryParams
|
|
366
|
+
});
|
|
367
|
+
try {
|
|
368
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
369
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
370
|
+
responseObject: {},
|
|
371
|
+
responseHeaders: [
|
|
372
|
+
{
|
|
373
|
+
value: response.headers.get("opc-work-request-id"),
|
|
374
|
+
key: "opcWorkRequestId",
|
|
375
|
+
dataType: "string"
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
value: response.headers.get("opc-request-id"),
|
|
379
|
+
key: "opcRequestId",
|
|
380
|
+
dataType: "string"
|
|
381
|
+
}
|
|
382
|
+
]
|
|
383
|
+
});
|
|
384
|
+
return sdkResponse;
|
|
385
|
+
}
|
|
386
|
+
catch (err) {
|
|
387
|
+
throw err;
|
|
388
|
+
}
|
|
389
|
+
});
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* Gets information about a OccDemandSignal.
|
|
393
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
394
|
+
* @param GetOccDemandSignalRequest
|
|
395
|
+
* @return GetOccDemandSignalResponse
|
|
396
|
+
* @throws OciError when an error occurs
|
|
397
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.87.0/demandsignal/GetOccDemandSignal.ts.html |here} to see how to use GetOccDemandSignal API.
|
|
398
|
+
*/
|
|
399
|
+
getOccDemandSignal(getOccDemandSignalRequest) {
|
|
400
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
401
|
+
if (this.logger)
|
|
402
|
+
this.logger.debug("Calling operation OccDemandSignalClient#getOccDemandSignal.");
|
|
403
|
+
const operationName = "getOccDemandSignal";
|
|
404
|
+
const apiReferenceLink = "";
|
|
405
|
+
const pathParams = {
|
|
406
|
+
"{occDemandSignalId}": getOccDemandSignalRequest.occDemandSignalId
|
|
407
|
+
};
|
|
408
|
+
const queryParams = {};
|
|
409
|
+
let headerParams = {
|
|
410
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
411
|
+
"opc-request-id": getOccDemandSignalRequest.opcRequestId
|
|
412
|
+
};
|
|
413
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
414
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getOccDemandSignalRequest.retryConfiguration, specRetryConfiguration);
|
|
415
|
+
if (this.logger)
|
|
416
|
+
retrier.logger = this.logger;
|
|
417
|
+
const request = yield oci_common_1.composeRequest({
|
|
418
|
+
baseEndpoint: this._endpoint,
|
|
419
|
+
defaultHeaders: this._defaultHeaders,
|
|
420
|
+
path: "/occDemandSignals/{occDemandSignalId}",
|
|
421
|
+
method: "GET",
|
|
422
|
+
pathParams: pathParams,
|
|
423
|
+
headerParams: headerParams,
|
|
424
|
+
queryParams: queryParams
|
|
425
|
+
});
|
|
426
|
+
try {
|
|
427
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
428
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
429
|
+
responseObject: {},
|
|
430
|
+
body: yield response.json(),
|
|
431
|
+
bodyKey: "occDemandSignal",
|
|
432
|
+
bodyModel: model.OccDemandSignal,
|
|
433
|
+
type: "model.OccDemandSignal",
|
|
434
|
+
responseHeaders: [
|
|
435
|
+
{
|
|
436
|
+
value: response.headers.get("etag"),
|
|
437
|
+
key: "etag",
|
|
438
|
+
dataType: "string"
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
value: response.headers.get("opc-request-id"),
|
|
442
|
+
key: "opcRequestId",
|
|
443
|
+
dataType: "string"
|
|
444
|
+
}
|
|
445
|
+
]
|
|
446
|
+
});
|
|
447
|
+
return sdkResponse;
|
|
448
|
+
}
|
|
449
|
+
catch (err) {
|
|
450
|
+
throw err;
|
|
451
|
+
}
|
|
452
|
+
});
|
|
453
|
+
}
|
|
454
|
+
/**
|
|
455
|
+
* Gets a list of OccDemandSignals.
|
|
456
|
+
*
|
|
457
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
458
|
+
* @param ListOccDemandSignalsRequest
|
|
459
|
+
* @return ListOccDemandSignalsResponse
|
|
460
|
+
* @throws OciError when an error occurs
|
|
461
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.87.0/demandsignal/ListOccDemandSignals.ts.html |here} to see how to use ListOccDemandSignals API.
|
|
462
|
+
*/
|
|
463
|
+
listOccDemandSignals(listOccDemandSignalsRequest) {
|
|
464
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
465
|
+
if (this.logger)
|
|
466
|
+
this.logger.debug("Calling operation OccDemandSignalClient#listOccDemandSignals.");
|
|
467
|
+
const operationName = "listOccDemandSignals";
|
|
468
|
+
const apiReferenceLink = "";
|
|
469
|
+
const pathParams = {};
|
|
470
|
+
const queryParams = {
|
|
471
|
+
"compartmentId": listOccDemandSignalsRequest.compartmentId,
|
|
472
|
+
"lifecycleState": listOccDemandSignalsRequest.lifecycleState,
|
|
473
|
+
"displayName": listOccDemandSignalsRequest.displayName,
|
|
474
|
+
"id": listOccDemandSignalsRequest.id,
|
|
475
|
+
"limit": listOccDemandSignalsRequest.limit,
|
|
476
|
+
"page": listOccDemandSignalsRequest.page,
|
|
477
|
+
"sortOrder": listOccDemandSignalsRequest.sortOrder,
|
|
478
|
+
"sortBy": listOccDemandSignalsRequest.sortBy
|
|
479
|
+
};
|
|
480
|
+
let headerParams = {
|
|
481
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
482
|
+
"opc-request-id": listOccDemandSignalsRequest.opcRequestId
|
|
483
|
+
};
|
|
484
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
485
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listOccDemandSignalsRequest.retryConfiguration, specRetryConfiguration);
|
|
486
|
+
if (this.logger)
|
|
487
|
+
retrier.logger = this.logger;
|
|
488
|
+
const request = yield oci_common_1.composeRequest({
|
|
489
|
+
baseEndpoint: this._endpoint,
|
|
490
|
+
defaultHeaders: this._defaultHeaders,
|
|
491
|
+
path: "/occDemandSignals",
|
|
492
|
+
method: "GET",
|
|
493
|
+
pathParams: pathParams,
|
|
494
|
+
headerParams: headerParams,
|
|
495
|
+
queryParams: queryParams
|
|
496
|
+
});
|
|
497
|
+
try {
|
|
498
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
499
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
500
|
+
responseObject: {},
|
|
501
|
+
body: yield response.json(),
|
|
502
|
+
bodyKey: "occDemandSignalCollection",
|
|
503
|
+
bodyModel: model.OccDemandSignalCollection,
|
|
504
|
+
type: "model.OccDemandSignalCollection",
|
|
505
|
+
responseHeaders: [
|
|
506
|
+
{
|
|
507
|
+
value: response.headers.get("opc-request-id"),
|
|
508
|
+
key: "opcRequestId",
|
|
509
|
+
dataType: "string"
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
value: response.headers.get("opc-next-page"),
|
|
513
|
+
key: "opcNextPage",
|
|
514
|
+
dataType: "string"
|
|
515
|
+
}
|
|
516
|
+
]
|
|
517
|
+
});
|
|
518
|
+
return sdkResponse;
|
|
519
|
+
}
|
|
520
|
+
catch (err) {
|
|
521
|
+
throw err;
|
|
522
|
+
}
|
|
523
|
+
});
|
|
524
|
+
}
|
|
525
|
+
/**
|
|
526
|
+
* Updates the data of an OccDemandSignal.
|
|
527
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
528
|
+
* @param PatchOccDemandSignalRequest
|
|
529
|
+
* @return PatchOccDemandSignalResponse
|
|
530
|
+
* @throws OciError when an error occurs
|
|
531
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.87.0/demandsignal/PatchOccDemandSignal.ts.html |here} to see how to use PatchOccDemandSignal API.
|
|
532
|
+
*/
|
|
533
|
+
patchOccDemandSignal(patchOccDemandSignalRequest) {
|
|
534
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
535
|
+
if (this.logger)
|
|
536
|
+
this.logger.debug("Calling operation OccDemandSignalClient#patchOccDemandSignal.");
|
|
537
|
+
const operationName = "patchOccDemandSignal";
|
|
538
|
+
const apiReferenceLink = "";
|
|
539
|
+
const pathParams = {
|
|
540
|
+
"{occDemandSignalId}": patchOccDemandSignalRequest.occDemandSignalId
|
|
541
|
+
};
|
|
542
|
+
const queryParams = {};
|
|
543
|
+
let headerParams = {
|
|
544
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
545
|
+
"if-match": patchOccDemandSignalRequest.ifMatch,
|
|
546
|
+
"opc-request-id": patchOccDemandSignalRequest.opcRequestId
|
|
547
|
+
};
|
|
548
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
549
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, patchOccDemandSignalRequest.retryConfiguration, specRetryConfiguration);
|
|
550
|
+
if (this.logger)
|
|
551
|
+
retrier.logger = this.logger;
|
|
552
|
+
const request = yield oci_common_1.composeRequest({
|
|
553
|
+
baseEndpoint: this._endpoint,
|
|
554
|
+
defaultHeaders: this._defaultHeaders,
|
|
555
|
+
path: "/occDemandSignals/{occDemandSignalId}",
|
|
556
|
+
method: "PATCH",
|
|
557
|
+
bodyContent: common.ObjectSerializer.serialize(patchOccDemandSignalRequest.patchOccDemandSignalDetails, "PatchOccDemandSignalDetails", model.PatchOccDemandSignalDetails.getJsonObj),
|
|
558
|
+
pathParams: pathParams,
|
|
559
|
+
headerParams: headerParams,
|
|
560
|
+
queryParams: queryParams
|
|
561
|
+
});
|
|
562
|
+
try {
|
|
563
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
564
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
565
|
+
responseObject: {},
|
|
566
|
+
body: yield response.json(),
|
|
567
|
+
bodyKey: "occDemandSignal",
|
|
568
|
+
bodyModel: model.OccDemandSignal,
|
|
569
|
+
type: "model.OccDemandSignal",
|
|
570
|
+
responseHeaders: [
|
|
571
|
+
{
|
|
572
|
+
value: response.headers.get("retry-after"),
|
|
573
|
+
key: "retryAfter",
|
|
574
|
+
dataType: "number"
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
value: response.headers.get("etag"),
|
|
578
|
+
key: "etag",
|
|
579
|
+
dataType: "string"
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
value: response.headers.get("opc-request-id"),
|
|
583
|
+
key: "opcRequestId",
|
|
584
|
+
dataType: "string"
|
|
585
|
+
}
|
|
586
|
+
]
|
|
587
|
+
});
|
|
588
|
+
return sdkResponse;
|
|
589
|
+
}
|
|
590
|
+
catch (err) {
|
|
591
|
+
throw err;
|
|
592
|
+
}
|
|
593
|
+
});
|
|
594
|
+
}
|
|
595
|
+
/**
|
|
596
|
+
* Updates a OccDemandSignal.
|
|
597
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
598
|
+
* @param UpdateOccDemandSignalRequest
|
|
599
|
+
* @return UpdateOccDemandSignalResponse
|
|
600
|
+
* @throws OciError when an error occurs
|
|
601
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.87.0/demandsignal/UpdateOccDemandSignal.ts.html |here} to see how to use UpdateOccDemandSignal API.
|
|
602
|
+
*/
|
|
603
|
+
updateOccDemandSignal(updateOccDemandSignalRequest) {
|
|
604
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
605
|
+
if (this.logger)
|
|
606
|
+
this.logger.debug("Calling operation OccDemandSignalClient#updateOccDemandSignal.");
|
|
607
|
+
const operationName = "updateOccDemandSignal";
|
|
608
|
+
const apiReferenceLink = "";
|
|
609
|
+
const pathParams = {
|
|
610
|
+
"{occDemandSignalId}": updateOccDemandSignalRequest.occDemandSignalId
|
|
611
|
+
};
|
|
612
|
+
const queryParams = {};
|
|
613
|
+
let headerParams = {
|
|
614
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
615
|
+
"if-match": updateOccDemandSignalRequest.ifMatch,
|
|
616
|
+
"opc-request-id": updateOccDemandSignalRequest.opcRequestId
|
|
617
|
+
};
|
|
618
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
619
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateOccDemandSignalRequest.retryConfiguration, specRetryConfiguration);
|
|
620
|
+
if (this.logger)
|
|
621
|
+
retrier.logger = this.logger;
|
|
622
|
+
const request = yield oci_common_1.composeRequest({
|
|
623
|
+
baseEndpoint: this._endpoint,
|
|
624
|
+
defaultHeaders: this._defaultHeaders,
|
|
625
|
+
path: "/occDemandSignals/{occDemandSignalId}",
|
|
626
|
+
method: "PUT",
|
|
627
|
+
bodyContent: common.ObjectSerializer.serialize(updateOccDemandSignalRequest.updateOccDemandSignalDetails, "UpdateOccDemandSignalDetails", model.UpdateOccDemandSignalDetails.getJsonObj),
|
|
628
|
+
pathParams: pathParams,
|
|
629
|
+
headerParams: headerParams,
|
|
630
|
+
queryParams: queryParams
|
|
631
|
+
});
|
|
632
|
+
try {
|
|
633
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
634
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
635
|
+
responseObject: {},
|
|
636
|
+
body: yield response.json(),
|
|
637
|
+
bodyKey: "occDemandSignal",
|
|
638
|
+
bodyModel: model.OccDemandSignal,
|
|
639
|
+
type: "model.OccDemandSignal",
|
|
640
|
+
responseHeaders: [
|
|
641
|
+
{
|
|
642
|
+
value: response.headers.get("retry-after"),
|
|
643
|
+
key: "retryAfter",
|
|
644
|
+
dataType: "number"
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
value: response.headers.get("etag"),
|
|
648
|
+
key: "etag",
|
|
649
|
+
dataType: "string"
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
value: response.headers.get("opc-request-id"),
|
|
653
|
+
key: "opcRequestId",
|
|
654
|
+
dataType: "string"
|
|
655
|
+
}
|
|
656
|
+
]
|
|
657
|
+
});
|
|
658
|
+
return sdkResponse;
|
|
659
|
+
}
|
|
660
|
+
catch (err) {
|
|
661
|
+
throw err;
|
|
662
|
+
}
|
|
663
|
+
});
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
exports.OccDemandSignalClient = OccDemandSignalClient;
|
|
667
|
+
OccDemandSignalClient.serviceEndpointTemplate = "https://control-center-ds.{region}.oci.{secondLevelDomain}";
|
|
668
|
+
OccDemandSignalClient.endpointServiceName = "control-center-ds";
|
|
669
|
+
//# sourceMappingURL=client.js.map
|