oci-opa 2.35.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/LICENSE.txt +89 -0
  2. package/NOTICE.txt +1 -0
  3. package/README.md +22 -0
  4. package/THIRD_PARTY_LICENSES.txt +576 -0
  5. package/index.d.ts +22 -0
  6. package/index.js +45 -0
  7. package/index.js.map +1 -0
  8. package/lib/client.d.ts +176 -0
  9. package/lib/client.js +865 -0
  10. package/lib/client.js.map +1 -0
  11. package/lib/model/action-type.d.ts +32 -0
  12. package/lib/model/action-type.js +43 -0
  13. package/lib/model/action-type.js.map +1 -0
  14. package/lib/model/change-opa-instance-compartment-details.d.ts +27 -0
  15. package/lib/model/change-opa-instance-compartment-details.js +29 -0
  16. package/lib/model/change-opa-instance-compartment-details.js.map +1 -0
  17. package/lib/model/create-opa-instance-details.d.ts +71 -0
  18. package/lib/model/create-opa-instance-details.js +29 -0
  19. package/lib/model/create-opa-instance-details.js.map +1 -0
  20. package/lib/model/index.d.ts +50 -0
  21. package/lib/model/index.js +73 -0
  22. package/lib/model/index.js.map +1 -0
  23. package/lib/model/opa-instance-collection.d.ts +26 -0
  24. package/lib/model/opa-instance-collection.js +61 -0
  25. package/lib/model/opa-instance-collection.js.map +1 -0
  26. package/lib/model/opa-instance-summary.d.ts +97 -0
  27. package/lib/model/opa-instance-summary.js +29 -0
  28. package/lib/model/opa-instance-summary.js.map +1 -0
  29. package/lib/model/opa-instance.d.ts +156 -0
  30. package/lib/model/opa-instance.js +76 -0
  31. package/lib/model/opa-instance.js.map +1 -0
  32. package/lib/model/operation-status.d.ts +33 -0
  33. package/lib/model/operation-status.js +44 -0
  34. package/lib/model/operation-status.js.map +1 -0
  35. package/lib/model/operation-type.d.ts +30 -0
  36. package/lib/model/operation-type.js +41 -0
  37. package/lib/model/operation-type.js.map +1 -0
  38. package/lib/model/sort-order.d.ts +23 -0
  39. package/lib/model/sort-order.js +34 -0
  40. package/lib/model/sort-order.js.map +1 -0
  41. package/lib/model/update-opa-instance-details.d.ts +47 -0
  42. package/lib/model/update-opa-instance-details.js +29 -0
  43. package/lib/model/update-opa-instance-details.js.map +1 -0
  44. package/lib/model/work-request-error-collection.d.ts +26 -0
  45. package/lib/model/work-request-error-collection.js +61 -0
  46. package/lib/model/work-request-error-collection.js.map +1 -0
  47. package/lib/model/work-request-error.d.ts +35 -0
  48. package/lib/model/work-request-error.js +29 -0
  49. package/lib/model/work-request-error.js.map +1 -0
  50. package/lib/model/work-request-log-entry-collection.d.ts +26 -0
  51. package/lib/model/work-request-log-entry-collection.js +61 -0
  52. package/lib/model/work-request-log-entry-collection.js.map +1 -0
  53. package/lib/model/work-request-log-entry.d.ts +29 -0
  54. package/lib/model/work-request-log-entry.js +29 -0
  55. package/lib/model/work-request-log-entry.js.map +1 -0
  56. package/lib/model/work-request-resource-metadata-key.d.ts +27 -0
  57. package/lib/model/work-request-resource-metadata-key.js +38 -0
  58. package/lib/model/work-request-resource-metadata-key.js.map +1 -0
  59. package/lib/model/work-request-resource.d.ts +48 -0
  60. package/lib/model/work-request-resource.js +29 -0
  61. package/lib/model/work-request-resource.js.map +1 -0
  62. package/lib/model/work-request-summary-collection.d.ts +26 -0
  63. package/lib/model/work-request-summary-collection.js +61 -0
  64. package/lib/model/work-request-summary-collection.js.map +1 -0
  65. package/lib/model/work-request-summary.d.ts +67 -0
  66. package/lib/model/work-request-summary.js +61 -0
  67. package/lib/model/work-request-summary.js.map +1 -0
  68. package/lib/model/work-request.d.ts +67 -0
  69. package/lib/model/work-request.js +61 -0
  70. package/lib/model/work-request.js.map +1 -0
  71. package/lib/opainstance-waiter.d.ts +36 -0
  72. package/lib/opainstance-waiter.js +76 -0
  73. package/lib/opainstance-waiter.js.map +1 -0
  74. package/lib/request/cancel-work-request-request.d.ts +35 -0
  75. package/lib/request/cancel-work-request-request.js +15 -0
  76. package/lib/request/cancel-work-request-request.js.map +1 -0
  77. package/lib/request/change-opa-instance-compartment-request.d.ts +40 -0
  78. package/lib/request/change-opa-instance-compartment-request.js +15 -0
  79. package/lib/request/change-opa-instance-compartment-request.js.map +1 -0
  80. package/lib/request/create-opa-instance-request.d.ts +36 -0
  81. package/lib/request/create-opa-instance-request.js +15 -0
  82. package/lib/request/create-opa-instance-request.js.map +1 -0
  83. package/lib/request/delete-opa-instance-request.d.ts +35 -0
  84. package/lib/request/delete-opa-instance-request.js +15 -0
  85. package/lib/request/delete-opa-instance-request.js.map +1 -0
  86. package/lib/request/get-opa-instance-request.d.ts +26 -0
  87. package/lib/request/get-opa-instance-request.js +15 -0
  88. package/lib/request/get-opa-instance-request.js.map +1 -0
  89. package/lib/request/get-work-request-request.d.ts +26 -0
  90. package/lib/request/get-work-request-request.js +15 -0
  91. package/lib/request/get-work-request-request.js.map +1 -0
  92. package/lib/request/index.d.ts +34 -0
  93. package/lib/request/index.js +43 -0
  94. package/lib/request/index.js.map +1 -0
  95. package/lib/request/list-opa-instances-request.d.ts +62 -0
  96. package/lib/request/list-opa-instances-request.js +24 -0
  97. package/lib/request/list-opa-instances-request.js.map +1 -0
  98. package/lib/request/list-work-request-errors-request.d.ts +49 -0
  99. package/lib/request/list-work-request-errors-request.js +23 -0
  100. package/lib/request/list-work-request-errors-request.js.map +1 -0
  101. package/lib/request/list-work-request-logs-request.d.ts +49 -0
  102. package/lib/request/list-work-request-logs-request.js +23 -0
  103. package/lib/request/list-work-request-logs-request.js.map +1 -0
  104. package/lib/request/list-work-requests-request.d.ts +61 -0
  105. package/lib/request/list-work-requests-request.js +23 -0
  106. package/lib/request/list-work-requests-request.js.map +1 -0
  107. package/lib/request/update-opa-instance-request.d.ts +40 -0
  108. package/lib/request/update-opa-instance-request.js +15 -0
  109. package/lib/request/update-opa-instance-request.js.map +1 -0
  110. package/lib/response/cancel-work-request-response.d.ts +20 -0
  111. package/lib/response/cancel-work-request-response.js +15 -0
  112. package/lib/response/cancel-work-request-response.js.map +1 -0
  113. package/lib/response/change-opa-instance-compartment-response.d.ts +25 -0
  114. package/lib/response/change-opa-instance-compartment-response.js +15 -0
  115. package/lib/response/change-opa-instance-compartment-response.js.map +1 -0
  116. package/lib/response/create-opa-instance-response.d.ts +25 -0
  117. package/lib/response/create-opa-instance-response.js +15 -0
  118. package/lib/response/create-opa-instance-response.js.map +1 -0
  119. package/lib/response/delete-opa-instance-response.d.ts +25 -0
  120. package/lib/response/delete-opa-instance-response.js +15 -0
  121. package/lib/response/delete-opa-instance-response.js.map +1 -0
  122. package/lib/response/get-opa-instance-response.d.ts +30 -0
  123. package/lib/response/get-opa-instance-response.js +15 -0
  124. package/lib/response/get-opa-instance-response.js.map +1 -0
  125. package/lib/response/get-work-request-response.d.ts +34 -0
  126. package/lib/response/get-work-request-response.js +15 -0
  127. package/lib/response/get-work-request-response.js.map +1 -0
  128. package/lib/response/index.d.ts +34 -0
  129. package/lib/response/index.js +15 -0
  130. package/lib/response/index.js.map +1 -0
  131. package/lib/response/list-opa-instances-response.d.ts +32 -0
  132. package/lib/response/list-opa-instances-response.js +15 -0
  133. package/lib/response/list-opa-instances-response.js.map +1 -0
  134. package/lib/response/list-work-request-errors-response.d.ts +32 -0
  135. package/lib/response/list-work-request-errors-response.js +15 -0
  136. package/lib/response/list-work-request-errors-response.js.map +1 -0
  137. package/lib/response/list-work-request-logs-response.d.ts +32 -0
  138. package/lib/response/list-work-request-logs-response.js +15 -0
  139. package/lib/response/list-work-request-logs-response.js.map +1 -0
  140. package/lib/response/list-work-requests-response.d.ts +32 -0
  141. package/lib/response/list-work-requests-response.js +15 -0
  142. package/lib/response/list-work-requests-response.js.map +1 -0
  143. package/lib/response/update-opa-instance-response.d.ts +25 -0
  144. package/lib/response/update-opa-instance-response.js +15 -0
  145. package/lib/response/update-opa-instance-response.js.map +1 -0
  146. package/package.json +29 -0
package/lib/client.js ADDED
@@ -0,0 +1,865 @@
1
+ "use strict";
2
+ /**
3
+ * OracleProcessAutomation API
4
+ * A description of the OracleProcessAutomation API
5
+ * OpenAPI spec version: 20210621
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OracleSDKGenerator.
9
+ * Do not edit the class manually.
10
+ *
11
+ * Copyright (c) 2020, 2022, 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.OpaInstanceClient = exports.OpaInstanceApiKeys = void 0;
44
+ const common = require("oci-common");
45
+ const model = __importStar(require("./model"));
46
+ const opainstance_waiter_1 = require("./opainstance-waiter");
47
+ const oci_common_1 = require("oci-common");
48
+ // ===============================================
49
+ // This file is autogenerated - Please do not edit
50
+ // ===============================================
51
+ var OpaInstanceApiKeys;
52
+ (function (OpaInstanceApiKeys) {
53
+ })(OpaInstanceApiKeys = exports.OpaInstanceApiKeys || (exports.OpaInstanceApiKeys = {}));
54
+ /**
55
+ * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
56
+ */
57
+ class OpaInstanceClient {
58
+ constructor(params, clientConfiguration) {
59
+ this["_endpoint"] = "";
60
+ this["_defaultHeaders"] = {};
61
+ this._circuitBreaker = null;
62
+ this._httpOptions = undefined;
63
+ this.targetService = "OpaInstance";
64
+ const requestSigner = params.authenticationDetailsProvider
65
+ ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
66
+ : null;
67
+ if (clientConfiguration) {
68
+ this._clientConfiguration = clientConfiguration;
69
+ this._circuitBreaker = clientConfiguration.circuitBreaker
70
+ ? clientConfiguration.circuitBreaker.circuit
71
+ : null;
72
+ this._httpOptions = clientConfiguration.httpOptions
73
+ ? clientConfiguration.httpOptions
74
+ : undefined;
75
+ }
76
+ // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
77
+ const specCircuitBreakerEnabled = true;
78
+ if (!this._circuitBreaker &&
79
+ common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
80
+ (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
81
+ this._circuitBreaker = new common.CircuitBreaker().circuit;
82
+ }
83
+ this._httpClient =
84
+ params.httpClient ||
85
+ new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions);
86
+ if (params.authenticationDetailsProvider &&
87
+ common.isRegionProvider(params.authenticationDetailsProvider)) {
88
+ const provider = params.authenticationDetailsProvider;
89
+ if (provider.getRegion()) {
90
+ this.region = provider.getRegion();
91
+ }
92
+ }
93
+ }
94
+ /**
95
+ * Get the endpoint that is being used to call (ex, https://www.example.com).
96
+ */
97
+ get endpoint() {
98
+ return this._endpoint;
99
+ }
100
+ /**
101
+ * Sets the endpoint to call (ex, https://www.example.com).
102
+ * @param endpoint The endpoint of the service.
103
+ */
104
+ set endpoint(endpoint) {
105
+ this._endpoint = endpoint;
106
+ this._endpoint = this._endpoint + "/20210621";
107
+ if (this.logger)
108
+ this.logger.info(`OpaInstanceClient endpoint set to ${this._endpoint}`);
109
+ }
110
+ get logger() {
111
+ return common.LOG.logger;
112
+ }
113
+ /**
114
+ * Sets the region to call (ex, Region.US_PHOENIX_1).
115
+ * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
116
+ * @param region The region of the service.
117
+ */
118
+ set region(region) {
119
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(OpaInstanceClient.serviceEndpointTemplate, region, OpaInstanceClient.endpointServiceName);
120
+ }
121
+ /**
122
+ * Sets the regionId to call (ex, 'us-phoenix-1').
123
+ *
124
+ * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
125
+ * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
126
+ * and then call {@link #endpoint(String) endpoint}.
127
+ * @param regionId The public region ID.
128
+ */
129
+ set regionId(regionId) {
130
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(OpaInstanceClient.serviceEndpointTemplate, regionId, OpaInstanceClient.endpointServiceName);
131
+ }
132
+ /**
133
+ * Creates a new OpaInstanceWaiter for resources for this service.
134
+ *
135
+ * @param config The waiter configuration for termination and delay strategy
136
+ * @return The service waiters.
137
+ */
138
+ createWaiters(config) {
139
+ this._waiters = new opainstance_waiter_1.OpaInstanceWaiter(this, config);
140
+ return this._waiters;
141
+ }
142
+ /**
143
+ * Gets the waiters available for resources for this service.
144
+ *
145
+ * @return The service waiters.
146
+ */
147
+ getWaiters() {
148
+ if (this._waiters) {
149
+ return this._waiters;
150
+ }
151
+ throw Error("Waiters do not exist. Please create waiters.");
152
+ }
153
+ /**
154
+ * Cancel work request with the given ID.
155
+ * This operation does not retry by default if the user has not defined a retry configuration.
156
+ * @param CancelWorkRequestRequest
157
+ * @return CancelWorkRequestResponse
158
+ * @throws OciError when an error occurs
159
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/opa/CancelWorkRequest.ts.html |here} to see how to use CancelWorkRequest API.
160
+ */
161
+ cancelWorkRequest(cancelWorkRequestRequest) {
162
+ return __awaiter(this, void 0, void 0, function* () {
163
+ if (this.logger)
164
+ this.logger.debug("Calling operation OpaInstanceClient#cancelWorkRequest.");
165
+ const operationName = "cancelWorkRequest";
166
+ const apiReferenceLink = "";
167
+ const pathParams = {
168
+ "{workRequestId}": cancelWorkRequestRequest.workRequestId
169
+ };
170
+ const queryParams = {};
171
+ let headerParams = {
172
+ "Content-Type": common.Constants.APPLICATION_JSON,
173
+ "if-match": cancelWorkRequestRequest.ifMatch,
174
+ "opc-request-id": cancelWorkRequestRequest.opcRequestId
175
+ };
176
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
177
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelWorkRequestRequest.retryConfiguration, specRetryConfiguration);
178
+ if (this.logger)
179
+ retrier.logger = this.logger;
180
+ const request = yield oci_common_1.composeRequest({
181
+ baseEndpoint: this._endpoint,
182
+ defaultHeaders: this._defaultHeaders,
183
+ path: "/workRequests/{workRequestId}",
184
+ method: "DELETE",
185
+ pathParams: pathParams,
186
+ headerParams: headerParams,
187
+ queryParams: queryParams
188
+ });
189
+ try {
190
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
191
+ const sdkResponse = oci_common_1.composeResponse({
192
+ responseObject: {},
193
+ responseHeaders: [
194
+ {
195
+ value: response.headers.get("opc-request-id"),
196
+ key: "opcRequestId",
197
+ dataType: "string"
198
+ }
199
+ ]
200
+ });
201
+ return sdkResponse;
202
+ }
203
+ catch (err) {
204
+ throw err;
205
+ }
206
+ });
207
+ }
208
+ /**
209
+ * Moves a OpaInstance resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource.
210
+ * This operation does not retry by default if the user has not defined a retry configuration.
211
+ * @param ChangeOpaInstanceCompartmentRequest
212
+ * @return ChangeOpaInstanceCompartmentResponse
213
+ * @throws OciError when an error occurs
214
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/opa/ChangeOpaInstanceCompartment.ts.html |here} to see how to use ChangeOpaInstanceCompartment API.
215
+ */
216
+ changeOpaInstanceCompartment(changeOpaInstanceCompartmentRequest) {
217
+ return __awaiter(this, void 0, void 0, function* () {
218
+ if (this.logger)
219
+ this.logger.debug("Calling operation OpaInstanceClient#changeOpaInstanceCompartment.");
220
+ const operationName = "changeOpaInstanceCompartment";
221
+ const apiReferenceLink = "";
222
+ const pathParams = {
223
+ "{opaInstanceId}": changeOpaInstanceCompartmentRequest.opaInstanceId
224
+ };
225
+ const queryParams = {};
226
+ let headerParams = {
227
+ "Content-Type": common.Constants.APPLICATION_JSON,
228
+ "if-match": changeOpaInstanceCompartmentRequest.ifMatch,
229
+ "opc-request-id": changeOpaInstanceCompartmentRequest.opcRequestId
230
+ };
231
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
232
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeOpaInstanceCompartmentRequest.retryConfiguration, specRetryConfiguration);
233
+ if (this.logger)
234
+ retrier.logger = this.logger;
235
+ const request = yield oci_common_1.composeRequest({
236
+ baseEndpoint: this._endpoint,
237
+ defaultHeaders: this._defaultHeaders,
238
+ path: "/opaInstances/{opaInstanceId}/actions/changeCompartment",
239
+ method: "POST",
240
+ bodyContent: common.ObjectSerializer.serialize(changeOpaInstanceCompartmentRequest.changeOpaInstanceCompartmentDetails, "ChangeOpaInstanceCompartmentDetails", model.ChangeOpaInstanceCompartmentDetails.getJsonObj),
241
+ pathParams: pathParams,
242
+ headerParams: headerParams,
243
+ queryParams: queryParams
244
+ });
245
+ try {
246
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
247
+ const sdkResponse = oci_common_1.composeResponse({
248
+ responseObject: {},
249
+ responseHeaders: [
250
+ {
251
+ value: response.headers.get("opc-work-request-id"),
252
+ key: "opcWorkRequestId",
253
+ dataType: "string"
254
+ },
255
+ {
256
+ value: response.headers.get("opc-request-id"),
257
+ key: "opcRequestId",
258
+ dataType: "string"
259
+ }
260
+ ]
261
+ });
262
+ return sdkResponse;
263
+ }
264
+ catch (err) {
265
+ throw err;
266
+ }
267
+ });
268
+ }
269
+ /**
270
+ * Creates a new OpaInstance.
271
+ *
272
+ * This operation does not retry by default if the user has not defined a retry configuration.
273
+ * @param CreateOpaInstanceRequest
274
+ * @return CreateOpaInstanceResponse
275
+ * @throws OciError when an error occurs
276
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/opa/CreateOpaInstance.ts.html |here} to see how to use CreateOpaInstance API.
277
+ */
278
+ createOpaInstance(createOpaInstanceRequest) {
279
+ return __awaiter(this, void 0, void 0, function* () {
280
+ if (this.logger)
281
+ this.logger.debug("Calling operation OpaInstanceClient#createOpaInstance.");
282
+ const operationName = "createOpaInstance";
283
+ const apiReferenceLink = "";
284
+ const pathParams = {};
285
+ const queryParams = {};
286
+ let headerParams = {
287
+ "Content-Type": common.Constants.APPLICATION_JSON,
288
+ "opc-retry-token": createOpaInstanceRequest.opcRetryToken,
289
+ "opc-request-id": createOpaInstanceRequest.opcRequestId
290
+ };
291
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
292
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createOpaInstanceRequest.retryConfiguration, specRetryConfiguration);
293
+ if (this.logger)
294
+ retrier.logger = this.logger;
295
+ const request = yield oci_common_1.composeRequest({
296
+ baseEndpoint: this._endpoint,
297
+ defaultHeaders: this._defaultHeaders,
298
+ path: "/opaInstances",
299
+ method: "POST",
300
+ bodyContent: common.ObjectSerializer.serialize(createOpaInstanceRequest.createOpaInstanceDetails, "CreateOpaInstanceDetails", model.CreateOpaInstanceDetails.getJsonObj),
301
+ pathParams: pathParams,
302
+ headerParams: headerParams,
303
+ queryParams: queryParams
304
+ });
305
+ try {
306
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
307
+ const sdkResponse = oci_common_1.composeResponse({
308
+ responseObject: {},
309
+ responseHeaders: [
310
+ {
311
+ value: response.headers.get("opc-work-request-id"),
312
+ key: "opcWorkRequestId",
313
+ dataType: "string"
314
+ },
315
+ {
316
+ value: response.headers.get("opc-request-id"),
317
+ key: "opcRequestId",
318
+ dataType: "string"
319
+ }
320
+ ]
321
+ });
322
+ return sdkResponse;
323
+ }
324
+ catch (err) {
325
+ throw err;
326
+ }
327
+ });
328
+ }
329
+ /**
330
+ * Deletes a OpaInstance resource by identifier
331
+ * This operation does not retry by default if the user has not defined a retry configuration.
332
+ * @param DeleteOpaInstanceRequest
333
+ * @return DeleteOpaInstanceResponse
334
+ * @throws OciError when an error occurs
335
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/opa/DeleteOpaInstance.ts.html |here} to see how to use DeleteOpaInstance API.
336
+ */
337
+ deleteOpaInstance(deleteOpaInstanceRequest) {
338
+ return __awaiter(this, void 0, void 0, function* () {
339
+ if (this.logger)
340
+ this.logger.debug("Calling operation OpaInstanceClient#deleteOpaInstance.");
341
+ const operationName = "deleteOpaInstance";
342
+ const apiReferenceLink = "";
343
+ const pathParams = {
344
+ "{opaInstanceId}": deleteOpaInstanceRequest.opaInstanceId
345
+ };
346
+ const queryParams = {};
347
+ let headerParams = {
348
+ "Content-Type": common.Constants.APPLICATION_JSON,
349
+ "if-match": deleteOpaInstanceRequest.ifMatch,
350
+ "opc-request-id": deleteOpaInstanceRequest.opcRequestId
351
+ };
352
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
353
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteOpaInstanceRequest.retryConfiguration, specRetryConfiguration);
354
+ if (this.logger)
355
+ retrier.logger = this.logger;
356
+ const request = yield oci_common_1.composeRequest({
357
+ baseEndpoint: this._endpoint,
358
+ defaultHeaders: this._defaultHeaders,
359
+ path: "/opaInstances/{opaInstanceId}",
360
+ method: "DELETE",
361
+ pathParams: pathParams,
362
+ headerParams: headerParams,
363
+ queryParams: queryParams
364
+ });
365
+ try {
366
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
367
+ const sdkResponse = oci_common_1.composeResponse({
368
+ responseObject: {},
369
+ responseHeaders: [
370
+ {
371
+ value: response.headers.get("opc-work-request-id"),
372
+ key: "opcWorkRequestId",
373
+ dataType: "string"
374
+ },
375
+ {
376
+ value: response.headers.get("opc-request-id"),
377
+ key: "opcRequestId",
378
+ dataType: "string"
379
+ }
380
+ ]
381
+ });
382
+ return sdkResponse;
383
+ }
384
+ catch (err) {
385
+ throw err;
386
+ }
387
+ });
388
+ }
389
+ /**
390
+ * Gets a OpaInstance by identifier
391
+ * This operation does not retry by default if the user has not defined a retry configuration.
392
+ * @param GetOpaInstanceRequest
393
+ * @return GetOpaInstanceResponse
394
+ * @throws OciError when an error occurs
395
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/opa/GetOpaInstance.ts.html |here} to see how to use GetOpaInstance API.
396
+ */
397
+ getOpaInstance(getOpaInstanceRequest) {
398
+ return __awaiter(this, void 0, void 0, function* () {
399
+ if (this.logger)
400
+ this.logger.debug("Calling operation OpaInstanceClient#getOpaInstance.");
401
+ const operationName = "getOpaInstance";
402
+ const apiReferenceLink = "";
403
+ const pathParams = {
404
+ "{opaInstanceId}": getOpaInstanceRequest.opaInstanceId
405
+ };
406
+ const queryParams = {};
407
+ let headerParams = {
408
+ "Content-Type": common.Constants.APPLICATION_JSON,
409
+ "opc-request-id": getOpaInstanceRequest.opcRequestId
410
+ };
411
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
412
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getOpaInstanceRequest.retryConfiguration, specRetryConfiguration);
413
+ if (this.logger)
414
+ retrier.logger = this.logger;
415
+ const request = yield oci_common_1.composeRequest({
416
+ baseEndpoint: this._endpoint,
417
+ defaultHeaders: this._defaultHeaders,
418
+ path: "/opaInstances/{opaInstanceId}",
419
+ method: "GET",
420
+ pathParams: pathParams,
421
+ headerParams: headerParams,
422
+ queryParams: queryParams
423
+ });
424
+ try {
425
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
426
+ const sdkResponse = oci_common_1.composeResponse({
427
+ responseObject: {},
428
+ body: yield response.json(),
429
+ bodyKey: "opaInstance",
430
+ bodyModel: model.OpaInstance,
431
+ type: "model.OpaInstance",
432
+ responseHeaders: [
433
+ {
434
+ value: response.headers.get("etag"),
435
+ key: "etag",
436
+ dataType: "string"
437
+ },
438
+ {
439
+ value: response.headers.get("opc-request-id"),
440
+ key: "opcRequestId",
441
+ dataType: "string"
442
+ }
443
+ ]
444
+ });
445
+ return sdkResponse;
446
+ }
447
+ catch (err) {
448
+ throw err;
449
+ }
450
+ });
451
+ }
452
+ /**
453
+ * Gets the status of the work request with the given ID.
454
+ * This operation does not retry by default if the user has not defined a retry configuration.
455
+ * @param GetWorkRequestRequest
456
+ * @return GetWorkRequestResponse
457
+ * @throws OciError when an error occurs
458
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/opa/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
459
+ */
460
+ getWorkRequest(getWorkRequestRequest) {
461
+ return __awaiter(this, void 0, void 0, function* () {
462
+ if (this.logger)
463
+ this.logger.debug("Calling operation OpaInstanceClient#getWorkRequest.");
464
+ const operationName = "getWorkRequest";
465
+ const apiReferenceLink = "";
466
+ const pathParams = {
467
+ "{workRequestId}": getWorkRequestRequest.workRequestId
468
+ };
469
+ const queryParams = {};
470
+ let headerParams = {
471
+ "Content-Type": common.Constants.APPLICATION_JSON,
472
+ "opc-request-id": getWorkRequestRequest.opcRequestId
473
+ };
474
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
475
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
476
+ if (this.logger)
477
+ retrier.logger = this.logger;
478
+ const request = yield oci_common_1.composeRequest({
479
+ baseEndpoint: this._endpoint,
480
+ defaultHeaders: this._defaultHeaders,
481
+ path: "/workRequests/{workRequestId}",
482
+ method: "GET",
483
+ pathParams: pathParams,
484
+ headerParams: headerParams,
485
+ queryParams: queryParams
486
+ });
487
+ try {
488
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
489
+ const sdkResponse = oci_common_1.composeResponse({
490
+ responseObject: {},
491
+ body: yield response.json(),
492
+ bodyKey: "workRequest",
493
+ bodyModel: model.WorkRequest,
494
+ type: "model.WorkRequest",
495
+ responseHeaders: [
496
+ {
497
+ value: response.headers.get("etag"),
498
+ key: "etag",
499
+ dataType: "string"
500
+ },
501
+ {
502
+ value: response.headers.get("opc-request-id"),
503
+ key: "opcRequestId",
504
+ dataType: "string"
505
+ },
506
+ {
507
+ value: response.headers.get("retry-after"),
508
+ key: "retryAfter",
509
+ dataType: "number"
510
+ }
511
+ ]
512
+ });
513
+ return sdkResponse;
514
+ }
515
+ catch (err) {
516
+ throw err;
517
+ }
518
+ });
519
+ }
520
+ /**
521
+ * Returns a list of OpaInstances.
522
+ *
523
+ * This operation does not retry by default if the user has not defined a retry configuration.
524
+ * @param ListOpaInstancesRequest
525
+ * @return ListOpaInstancesResponse
526
+ * @throws OciError when an error occurs
527
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/opa/ListOpaInstances.ts.html |here} to see how to use ListOpaInstances API.
528
+ */
529
+ listOpaInstances(listOpaInstancesRequest) {
530
+ return __awaiter(this, void 0, void 0, function* () {
531
+ if (this.logger)
532
+ this.logger.debug("Calling operation OpaInstanceClient#listOpaInstances.");
533
+ const operationName = "listOpaInstances";
534
+ const apiReferenceLink = "";
535
+ const pathParams = {};
536
+ const queryParams = {
537
+ "compartmentId": listOpaInstancesRequest.compartmentId,
538
+ "lifecycleState": listOpaInstancesRequest.lifecycleState,
539
+ "displayName": listOpaInstancesRequest.displayName,
540
+ "id": listOpaInstancesRequest.id,
541
+ "limit": listOpaInstancesRequest.limit,
542
+ "page": listOpaInstancesRequest.page,
543
+ "sortOrder": listOpaInstancesRequest.sortOrder,
544
+ "sortBy": listOpaInstancesRequest.sortBy
545
+ };
546
+ let headerParams = {
547
+ "Content-Type": common.Constants.APPLICATION_JSON,
548
+ "opc-request-id": listOpaInstancesRequest.opcRequestId
549
+ };
550
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
551
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listOpaInstancesRequest.retryConfiguration, specRetryConfiguration);
552
+ if (this.logger)
553
+ retrier.logger = this.logger;
554
+ const request = yield oci_common_1.composeRequest({
555
+ baseEndpoint: this._endpoint,
556
+ defaultHeaders: this._defaultHeaders,
557
+ path: "/opaInstances",
558
+ method: "GET",
559
+ pathParams: pathParams,
560
+ headerParams: headerParams,
561
+ queryParams: queryParams
562
+ });
563
+ try {
564
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
565
+ const sdkResponse = oci_common_1.composeResponse({
566
+ responseObject: {},
567
+ body: yield response.json(),
568
+ bodyKey: "opaInstanceCollection",
569
+ bodyModel: model.OpaInstanceCollection,
570
+ type: "model.OpaInstanceCollection",
571
+ responseHeaders: [
572
+ {
573
+ value: response.headers.get("opc-request-id"),
574
+ key: "opcRequestId",
575
+ dataType: "string"
576
+ },
577
+ {
578
+ value: response.headers.get("opc-next-page"),
579
+ key: "opcNextPage",
580
+ dataType: "string"
581
+ }
582
+ ]
583
+ });
584
+ return sdkResponse;
585
+ }
586
+ catch (err) {
587
+ throw err;
588
+ }
589
+ });
590
+ }
591
+ /**
592
+ * Return a (paginated) list of errors for a given work request.
593
+ *
594
+ * This operation does not retry by default if the user has not defined a retry configuration.
595
+ * @param ListWorkRequestErrorsRequest
596
+ * @return ListWorkRequestErrorsResponse
597
+ * @throws OciError when an error occurs
598
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/opa/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
599
+ */
600
+ listWorkRequestErrors(listWorkRequestErrorsRequest) {
601
+ return __awaiter(this, void 0, void 0, function* () {
602
+ if (this.logger)
603
+ this.logger.debug("Calling operation OpaInstanceClient#listWorkRequestErrors.");
604
+ const operationName = "listWorkRequestErrors";
605
+ const apiReferenceLink = "";
606
+ const pathParams = {
607
+ "{workRequestId}": listWorkRequestErrorsRequest.workRequestId
608
+ };
609
+ const queryParams = {
610
+ "page": listWorkRequestErrorsRequest.page,
611
+ "limit": listWorkRequestErrorsRequest.limit,
612
+ "sortBy": listWorkRequestErrorsRequest.sortBy,
613
+ "sortOrder": listWorkRequestErrorsRequest.sortOrder
614
+ };
615
+ let headerParams = {
616
+ "Content-Type": common.Constants.APPLICATION_JSON,
617
+ "opc-request-id": listWorkRequestErrorsRequest.opcRequestId
618
+ };
619
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
620
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
621
+ if (this.logger)
622
+ retrier.logger = this.logger;
623
+ const request = yield oci_common_1.composeRequest({
624
+ baseEndpoint: this._endpoint,
625
+ defaultHeaders: this._defaultHeaders,
626
+ path: "/workRequests/{workRequestId}/errors",
627
+ method: "GET",
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: "workRequestErrorCollection",
638
+ bodyModel: model.WorkRequestErrorCollection,
639
+ type: "model.WorkRequestErrorCollection",
640
+ responseHeaders: [
641
+ {
642
+ value: response.headers.get("opc-next-page"),
643
+ key: "opcNextPage",
644
+ dataType: "string"
645
+ },
646
+ {
647
+ value: response.headers.get("opc-request-id"),
648
+ key: "opcRequestId",
649
+ dataType: "string"
650
+ }
651
+ ]
652
+ });
653
+ return sdkResponse;
654
+ }
655
+ catch (err) {
656
+ throw err;
657
+ }
658
+ });
659
+ }
660
+ /**
661
+ * Return a (paginated) list of logs for a given work request.
662
+ *
663
+ * This operation does not retry by default if the user has not defined a retry configuration.
664
+ * @param ListWorkRequestLogsRequest
665
+ * @return ListWorkRequestLogsResponse
666
+ * @throws OciError when an error occurs
667
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/opa/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
668
+ */
669
+ listWorkRequestLogs(listWorkRequestLogsRequest) {
670
+ return __awaiter(this, void 0, void 0, function* () {
671
+ if (this.logger)
672
+ this.logger.debug("Calling operation OpaInstanceClient#listWorkRequestLogs.");
673
+ const operationName = "listWorkRequestLogs";
674
+ const apiReferenceLink = "";
675
+ const pathParams = {
676
+ "{workRequestId}": listWorkRequestLogsRequest.workRequestId
677
+ };
678
+ const queryParams = {
679
+ "page": listWorkRequestLogsRequest.page,
680
+ "limit": listWorkRequestLogsRequest.limit,
681
+ "sortBy": listWorkRequestLogsRequest.sortBy,
682
+ "sortOrder": listWorkRequestLogsRequest.sortOrder
683
+ };
684
+ let headerParams = {
685
+ "Content-Type": common.Constants.APPLICATION_JSON,
686
+ "opc-request-id": listWorkRequestLogsRequest.opcRequestId
687
+ };
688
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
689
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
690
+ if (this.logger)
691
+ retrier.logger = this.logger;
692
+ const request = yield oci_common_1.composeRequest({
693
+ baseEndpoint: this._endpoint,
694
+ defaultHeaders: this._defaultHeaders,
695
+ path: "/workRequests/{workRequestId}/logs",
696
+ method: "GET",
697
+ pathParams: pathParams,
698
+ headerParams: headerParams,
699
+ queryParams: queryParams
700
+ });
701
+ try {
702
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
703
+ const sdkResponse = oci_common_1.composeResponse({
704
+ responseObject: {},
705
+ body: yield response.json(),
706
+ bodyKey: "workRequestLogEntryCollection",
707
+ bodyModel: model.WorkRequestLogEntryCollection,
708
+ type: "model.WorkRequestLogEntryCollection",
709
+ responseHeaders: [
710
+ {
711
+ value: response.headers.get("opc-next-page"),
712
+ key: "opcNextPage",
713
+ dataType: "string"
714
+ },
715
+ {
716
+ value: response.headers.get("opc-request-id"),
717
+ key: "opcRequestId",
718
+ dataType: "string"
719
+ }
720
+ ]
721
+ });
722
+ return sdkResponse;
723
+ }
724
+ catch (err) {
725
+ throw err;
726
+ }
727
+ });
728
+ }
729
+ /**
730
+ * Lists the work requests in a compartment.
731
+ *
732
+ * This operation does not retry by default if the user has not defined a retry configuration.
733
+ * @param ListWorkRequestsRequest
734
+ * @return ListWorkRequestsResponse
735
+ * @throws OciError when an error occurs
736
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/opa/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
737
+ */
738
+ listWorkRequests(listWorkRequestsRequest) {
739
+ return __awaiter(this, void 0, void 0, function* () {
740
+ if (this.logger)
741
+ this.logger.debug("Calling operation OpaInstanceClient#listWorkRequests.");
742
+ const operationName = "listWorkRequests";
743
+ const apiReferenceLink = "";
744
+ const pathParams = {};
745
+ const queryParams = {
746
+ "compartmentId": listWorkRequestsRequest.compartmentId,
747
+ "workRequestId": listWorkRequestsRequest.workRequestId,
748
+ "status": listWorkRequestsRequest.status,
749
+ "resourceId": listWorkRequestsRequest.resourceId,
750
+ "page": listWorkRequestsRequest.page,
751
+ "limit": listWorkRequestsRequest.limit,
752
+ "sortOrder": listWorkRequestsRequest.sortOrder,
753
+ "sortBy": listWorkRequestsRequest.sortBy
754
+ };
755
+ let headerParams = {
756
+ "Content-Type": common.Constants.APPLICATION_JSON,
757
+ "opc-request-id": listWorkRequestsRequest.opcRequestId
758
+ };
759
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
760
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
761
+ if (this.logger)
762
+ retrier.logger = this.logger;
763
+ const request = yield oci_common_1.composeRequest({
764
+ baseEndpoint: this._endpoint,
765
+ defaultHeaders: this._defaultHeaders,
766
+ path: "/workRequests",
767
+ method: "GET",
768
+ pathParams: pathParams,
769
+ headerParams: headerParams,
770
+ queryParams: queryParams
771
+ });
772
+ try {
773
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
774
+ const sdkResponse = oci_common_1.composeResponse({
775
+ responseObject: {},
776
+ body: yield response.json(),
777
+ bodyKey: "workRequestSummaryCollection",
778
+ bodyModel: model.WorkRequestSummaryCollection,
779
+ type: "model.WorkRequestSummaryCollection",
780
+ responseHeaders: [
781
+ {
782
+ value: response.headers.get("opc-request-id"),
783
+ key: "opcRequestId",
784
+ dataType: "string"
785
+ },
786
+ {
787
+ value: response.headers.get("opc-next-page"),
788
+ key: "opcNextPage",
789
+ dataType: "string"
790
+ }
791
+ ]
792
+ });
793
+ return sdkResponse;
794
+ }
795
+ catch (err) {
796
+ throw err;
797
+ }
798
+ });
799
+ }
800
+ /**
801
+ * Updates the OpaInstance
802
+ * This operation does not retry by default if the user has not defined a retry configuration.
803
+ * @param UpdateOpaInstanceRequest
804
+ * @return UpdateOpaInstanceResponse
805
+ * @throws OciError when an error occurs
806
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/opa/UpdateOpaInstance.ts.html |here} to see how to use UpdateOpaInstance API.
807
+ */
808
+ updateOpaInstance(updateOpaInstanceRequest) {
809
+ return __awaiter(this, void 0, void 0, function* () {
810
+ if (this.logger)
811
+ this.logger.debug("Calling operation OpaInstanceClient#updateOpaInstance.");
812
+ const operationName = "updateOpaInstance";
813
+ const apiReferenceLink = "";
814
+ const pathParams = {
815
+ "{opaInstanceId}": updateOpaInstanceRequest.opaInstanceId
816
+ };
817
+ const queryParams = {};
818
+ let headerParams = {
819
+ "Content-Type": common.Constants.APPLICATION_JSON,
820
+ "if-match": updateOpaInstanceRequest.ifMatch,
821
+ "opc-request-id": updateOpaInstanceRequest.opcRequestId
822
+ };
823
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
824
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateOpaInstanceRequest.retryConfiguration, specRetryConfiguration);
825
+ if (this.logger)
826
+ retrier.logger = this.logger;
827
+ const request = yield oci_common_1.composeRequest({
828
+ baseEndpoint: this._endpoint,
829
+ defaultHeaders: this._defaultHeaders,
830
+ path: "/opaInstances/{opaInstanceId}",
831
+ method: "PUT",
832
+ bodyContent: common.ObjectSerializer.serialize(updateOpaInstanceRequest.updateOpaInstanceDetails, "UpdateOpaInstanceDetails", model.UpdateOpaInstanceDetails.getJsonObj),
833
+ pathParams: pathParams,
834
+ headerParams: headerParams,
835
+ queryParams: queryParams
836
+ });
837
+ try {
838
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
839
+ const sdkResponse = oci_common_1.composeResponse({
840
+ responseObject: {},
841
+ responseHeaders: [
842
+ {
843
+ value: response.headers.get("opc-work-request-id"),
844
+ key: "opcWorkRequestId",
845
+ dataType: "string"
846
+ },
847
+ {
848
+ value: response.headers.get("opc-request-id"),
849
+ key: "opcRequestId",
850
+ dataType: "string"
851
+ }
852
+ ]
853
+ });
854
+ return sdkResponse;
855
+ }
856
+ catch (err) {
857
+ throw err;
858
+ }
859
+ });
860
+ }
861
+ }
862
+ exports.OpaInstanceClient = OpaInstanceClient;
863
+ OpaInstanceClient.serviceEndpointTemplate = "https://process-automation.{region}.oci.{secondLevelDomain}";
864
+ OpaInstanceClient.endpointServiceName = "";
865
+ //# sourceMappingURL=client.js.map