oci-waa 2.31.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 +28 -0
- package/index.js +51 -0
- package/index.js.map +1 -0
- package/lib/client.d.ts +298 -0
- package/lib/client.js +1388 -0
- package/lib/client.js.map +1 -0
- package/lib/model/backend-type.d.ts +30 -0
- package/lib/model/backend-type.js +41 -0
- package/lib/model/backend-type.js.map +1 -0
- package/lib/model/change-resource-compartment-details.d.ts +30 -0
- package/lib/model/change-resource-compartment-details.js +32 -0
- package/lib/model/change-resource-compartment-details.js.map +1 -0
- package/lib/model/change-web-app-acceleration-compartment-details.d.ts +30 -0
- package/lib/model/change-web-app-acceleration-compartment-details.js +32 -0
- package/lib/model/change-web-app-acceleration-compartment-details.js.map +1 -0
- package/lib/model/change-web-app-acceleration-policy-compartment-details.d.ts +30 -0
- package/lib/model/change-web-app-acceleration-policy-compartment-details.js +32 -0
- package/lib/model/change-web-app-acceleration-policy-compartment-details.js.map +1 -0
- package/lib/model/create-web-app-acceleration-details.d.ts +65 -0
- package/lib/model/create-web-app-acceleration-details.js +68 -0
- package/lib/model/create-web-app-acceleration-details.js.map +1 -0
- package/lib/model/create-web-app-acceleration-load-balancer-details.d.ts +31 -0
- package/lib/model/create-web-app-acceleration-load-balancer-details.js +57 -0
- package/lib/model/create-web-app-acceleration-load-balancer-details.js.map +1 -0
- package/lib/model/create-web-app-acceleration-policy-details.d.ts +63 -0
- package/lib/model/create-web-app-acceleration-policy-details.js +66 -0
- package/lib/model/create-web-app-acceleration-policy-details.js.map +1 -0
- package/lib/model/gzip-compression-policy.d.ts +34 -0
- package/lib/model/gzip-compression-policy.js +32 -0
- package/lib/model/gzip-compression-policy.js.map +1 -0
- package/lib/model/index.d.ts +75 -0
- package/lib/model/index.js +98 -0
- package/lib/model/index.js.map +1 -0
- package/lib/model/purge-entire-web-app-acceleration-cache-details.d.ts +27 -0
- package/lib/model/purge-entire-web-app-acceleration-cache-details.js +57 -0
- package/lib/model/purge-entire-web-app-acceleration-cache-details.js.map +1 -0
- package/lib/model/purge-web-app-acceleration-cache-details.d.ts +25 -0
- package/lib/model/purge-web-app-acceleration-cache-details.js +68 -0
- package/lib/model/purge-web-app-acceleration-cache-details.js.map +1 -0
- package/lib/model/response-caching-policy.d.ts +46 -0
- package/lib/model/response-caching-policy.js +32 -0
- package/lib/model/response-caching-policy.js.map +1 -0
- package/lib/model/response-compression-policy.d.ts +33 -0
- package/lib/model/response-compression-policy.js +60 -0
- package/lib/model/response-compression-policy.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-web-app-acceleration-details.d.ts +62 -0
- package/lib/model/update-web-app-acceleration-details.js +32 -0
- package/lib/model/update-web-app-acceleration-details.js.map +1 -0
- package/lib/model/update-web-app-acceleration-policy-details.d.ts +63 -0
- package/lib/model/update-web-app-acceleration-policy-details.js +66 -0
- package/lib/model/update-web-app-acceleration-policy-details.js.map +1 -0
- package/lib/model/web-app-acceleration-collection.d.ts +29 -0
- package/lib/model/web-app-acceleration-collection.js +64 -0
- package/lib/model/web-app-acceleration-collection.js.map +1 -0
- package/lib/model/web-app-acceleration-load-balancer-summary.d.ts +31 -0
- package/lib/model/web-app-acceleration-load-balancer-summary.js +57 -0
- package/lib/model/web-app-acceleration-load-balancer-summary.js.map +1 -0
- package/lib/model/web-app-acceleration-load-balancer.d.ts +31 -0
- package/lib/model/web-app-acceleration-load-balancer.js +57 -0
- package/lib/model/web-app-acceleration-load-balancer.js.map +1 -0
- package/lib/model/web-app-acceleration-policy-collection.d.ts +29 -0
- package/lib/model/web-app-acceleration-policy-collection.js +64 -0
- package/lib/model/web-app-acceleration-policy-collection.js.map +1 -0
- package/lib/model/web-app-acceleration-policy-summary.d.ts +82 -0
- package/lib/model/web-app-acceleration-policy-summary.js +32 -0
- package/lib/model/web-app-acceleration-policy-summary.js.map +1 -0
- package/lib/model/web-app-acceleration-policy.d.ts +102 -0
- package/lib/model/web-app-acceleration-policy.js +80 -0
- package/lib/model/web-app-acceleration-policy.js.map +1 -0
- package/lib/model/web-app-acceleration-summary.d.ts +87 -0
- package/lib/model/web-app-acceleration-summary.js +68 -0
- package/lib/model/web-app-acceleration-summary.js.map +1 -0
- package/lib/model/web-app-acceleration.d.ts +100 -0
- package/lib/model/web-app-acceleration.js +82 -0
- package/lib/model/web-app-acceleration.js.map +1 -0
- package/lib/model/work-request-collection.d.ts +29 -0
- package/lib/model/work-request-collection.js +64 -0
- package/lib/model/work-request-collection.js.map +1 -0
- package/lib/model/work-request-error-collection.d.ts +29 -0
- package/lib/model/work-request-error-collection.js +64 -0
- package/lib/model/work-request-error-collection.js.map +1 -0
- package/lib/model/work-request-error.d.ts +38 -0
- package/lib/model/work-request-error.js +32 -0
- package/lib/model/work-request-error.js.map +1 -0
- package/lib/model/work-request-log-entry-collection.d.ts +29 -0
- package/lib/model/work-request-log-entry-collection.js +64 -0
- package/lib/model/work-request-log-entry-collection.js.map +1 -0
- package/lib/model/work-request-log-entry.d.ts +32 -0
- package/lib/model/work-request-log-entry.js +32 -0
- package/lib/model/work-request-log-entry.js.map +1 -0
- package/lib/model/work-request-resource.d.ts +56 -0
- package/lib/model/work-request-resource.js +45 -0
- package/lib/model/work-request-resource.js.map +1 -0
- package/lib/model/work-request.d.ts +97 -0
- package/lib/model/work-request.js +95 -0
- package/lib/model/work-request.js.map +1 -0
- package/lib/request/change-web-app-acceleration-compartment-request.d.ts +38 -0
- package/lib/request/change-web-app-acceleration-compartment-request.js +15 -0
- package/lib/request/change-web-app-acceleration-compartment-request.js.map +1 -0
- package/lib/request/change-web-app-acceleration-policy-compartment-request.d.ts +38 -0
- package/lib/request/change-web-app-acceleration-policy-compartment-request.js +15 -0
- package/lib/request/change-web-app-acceleration-policy-compartment-request.js.map +1 -0
- package/lib/request/create-web-app-acceleration-policy-request.d.ts +35 -0
- package/lib/request/create-web-app-acceleration-policy-request.js +15 -0
- package/lib/request/create-web-app-acceleration-policy-request.js.map +1 -0
- package/lib/request/create-web-app-acceleration-request.d.ts +35 -0
- package/lib/request/create-web-app-acceleration-request.js +15 -0
- package/lib/request/create-web-app-acceleration-request.js.map +1 -0
- package/lib/request/delete-web-app-acceleration-policy-request.d.ts +33 -0
- package/lib/request/delete-web-app-acceleration-policy-request.js +15 -0
- package/lib/request/delete-web-app-acceleration-policy-request.js.map +1 -0
- package/lib/request/delete-web-app-acceleration-request.d.ts +33 -0
- package/lib/request/delete-web-app-acceleration-request.js +15 -0
- package/lib/request/delete-web-app-acceleration-request.js.map +1 -0
- package/lib/request/get-web-app-acceleration-policy-request.d.ts +26 -0
- package/lib/request/get-web-app-acceleration-policy-request.js +15 -0
- package/lib/request/get-web-app-acceleration-policy-request.js.map +1 -0
- package/lib/request/get-web-app-acceleration-request.d.ts +26 -0
- package/lib/request/get-web-app-acceleration-request.js +15 -0
- package/lib/request/get-web-app-acceleration-request.js.map +1 -0
- package/lib/request/get-work-request-request.d.ts +26 -0
- package/lib/request/get-work-request-request.js +15 -0
- package/lib/request/get-work-request-request.js.map +1 -0
- package/lib/request/index.d.ts +49 -0
- package/lib/request/index.js +42 -0
- package/lib/request/index.js.map +1 -0
- package/lib/request/list-web-app-acceleration-policies-request.d.ts +67 -0
- package/lib/request/list-web-app-acceleration-policies-request.js +24 -0
- package/lib/request/list-web-app-acceleration-policies-request.js.map +1 -0
- package/lib/request/list-web-app-accelerations-request.d.ts +73 -0
- package/lib/request/list-web-app-accelerations-request.js +24 -0
- package/lib/request/list-web-app-accelerations-request.js.map +1 -0
- package/lib/request/list-work-request-errors-request.d.ts +36 -0
- package/lib/request/list-work-request-errors-request.js +15 -0
- package/lib/request/list-work-request-errors-request.js.map +1 -0
- package/lib/request/list-work-request-logs-request.d.ts +36 -0
- package/lib/request/list-work-request-logs-request.js +15 -0
- package/lib/request/list-work-request-logs-request.js.map +1 -0
- package/lib/request/list-work-requests-request.d.ts +40 -0
- package/lib/request/list-work-requests-request.js +15 -0
- package/lib/request/list-work-requests-request.js.map +1 -0
- package/lib/request/purge-web-app-acceleration-cache-request.d.ts +31 -0
- package/lib/request/purge-web-app-acceleration-cache-request.js +15 -0
- package/lib/request/purge-web-app-acceleration-cache-request.js.map +1 -0
- package/lib/request/update-web-app-acceleration-policy-request.d.ts +38 -0
- package/lib/request/update-web-app-acceleration-policy-request.js +15 -0
- package/lib/request/update-web-app-acceleration-policy-request.js.map +1 -0
- package/lib/request/update-web-app-acceleration-request.d.ts +38 -0
- package/lib/request/update-web-app-acceleration-request.js +15 -0
- package/lib/request/update-web-app-acceleration-request.js.map +1 -0
- package/lib/response/change-web-app-acceleration-compartment-response.d.ts +25 -0
- package/lib/response/change-web-app-acceleration-compartment-response.js +15 -0
- package/lib/response/change-web-app-acceleration-compartment-response.js.map +1 -0
- package/lib/response/change-web-app-acceleration-policy-compartment-response.d.ts +25 -0
- package/lib/response/change-web-app-acceleration-policy-compartment-response.js +15 -0
- package/lib/response/change-web-app-acceleration-policy-compartment-response.js.map +1 -0
- package/lib/response/create-web-app-acceleration-policy-response.d.ts +45 -0
- package/lib/response/create-web-app-acceleration-policy-response.js +15 -0
- package/lib/response/create-web-app-acceleration-policy-response.js.map +1 -0
- package/lib/response/create-web-app-acceleration-response.d.ts +45 -0
- package/lib/response/create-web-app-acceleration-response.js +15 -0
- package/lib/response/create-web-app-acceleration-response.js.map +1 -0
- package/lib/response/delete-web-app-acceleration-policy-response.d.ts +25 -0
- package/lib/response/delete-web-app-acceleration-policy-response.js +15 -0
- package/lib/response/delete-web-app-acceleration-policy-response.js.map +1 -0
- package/lib/response/delete-web-app-acceleration-response.d.ts +25 -0
- package/lib/response/delete-web-app-acceleration-response.js +15 -0
- package/lib/response/delete-web-app-acceleration-response.js.map +1 -0
- package/lib/response/get-web-app-acceleration-policy-response.d.ts +30 -0
- package/lib/response/get-web-app-acceleration-policy-response.js +15 -0
- package/lib/response/get-web-app-acceleration-policy-response.js.map +1 -0
- package/lib/response/get-web-app-acceleration-response.d.ts +30 -0
- package/lib/response/get-web-app-acceleration-response.js +15 -0
- package/lib/response/get-web-app-acceleration-response.js.map +1 -0
- package/lib/response/get-work-request-response.d.ts +29 -0
- package/lib/response/get-work-request-response.js +15 -0
- package/lib/response/get-work-request-response.js.map +1 -0
- package/lib/response/index.d.ts +49 -0
- package/lib/response/index.js +18 -0
- package/lib/response/index.js.map +1 -0
- package/lib/response/list-web-app-acceleration-policies-response.d.ts +32 -0
- package/lib/response/list-web-app-acceleration-policies-response.js +15 -0
- package/lib/response/list-web-app-acceleration-policies-response.js.map +1 -0
- package/lib/response/list-web-app-accelerations-response.d.ts +32 -0
- package/lib/response/list-web-app-accelerations-response.js +15 -0
- package/lib/response/list-web-app-accelerations-response.js.map +1 -0
- package/lib/response/list-work-request-errors-response.d.ts +32 -0
- package/lib/response/list-work-request-errors-response.js +15 -0
- package/lib/response/list-work-request-errors-response.js.map +1 -0
- package/lib/response/list-work-request-logs-response.d.ts +32 -0
- package/lib/response/list-work-request-logs-response.js +15 -0
- package/lib/response/list-work-request-logs-response.js.map +1 -0
- package/lib/response/list-work-requests-response.d.ts +32 -0
- package/lib/response/list-work-requests-response.js +15 -0
- package/lib/response/list-work-requests-response.js.map +1 -0
- package/lib/response/purge-web-app-acceleration-cache-response.d.ts +25 -0
- package/lib/response/purge-web-app-acceleration-cache-response.js +15 -0
- package/lib/response/purge-web-app-acceleration-cache-response.js.map +1 -0
- package/lib/response/update-web-app-acceleration-policy-response.d.ts +25 -0
- package/lib/response/update-web-app-acceleration-policy-response.js +15 -0
- package/lib/response/update-web-app-acceleration-policy-response.js.map +1 -0
- package/lib/response/update-web-app-acceleration-response.d.ts +25 -0
- package/lib/response/update-web-app-acceleration-response.js +15 -0
- package/lib/response/update-web-app-acceleration-response.js.map +1 -0
- package/lib/waa-waiter.d.ts +40 -0
- package/lib/waa-waiter.js +80 -0
- package/lib/waa-waiter.js.map +1 -0
- package/lib/workrequest-waiter.d.ts +30 -0
- package/lib/workrequest-waiter.js +47 -0
- package/lib/workrequest-waiter.js.map +1 -0
- package/package.json +29 -0
package/lib/client.js
ADDED
|
@@ -0,0 +1,1388 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Web Application Acceleration (WAA) API
|
|
4
|
+
* API for the Web Application Acceleration service.
|
|
5
|
+
Use this API to manage regional Web App Acceleration policies such as Caching and Compression
|
|
6
|
+
for accelerating HTTP services.
|
|
7
|
+
|
|
8
|
+
* OpenAPI spec version: 20211230
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) 2020, 2022, 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.WorkRequestClient = exports.WorkRequestApiKeys = exports.WaaClient = exports.WaaApiKeys = void 0;
|
|
47
|
+
const common = require("oci-common");
|
|
48
|
+
const model = __importStar(require("./model"));
|
|
49
|
+
const waa_waiter_1 = require("./waa-waiter");
|
|
50
|
+
const workrequest_waiter_1 = require("./workrequest-waiter");
|
|
51
|
+
const oci_common_1 = require("oci-common");
|
|
52
|
+
// ===============================================
|
|
53
|
+
// This file is autogenerated - Please do not edit
|
|
54
|
+
// ===============================================
|
|
55
|
+
var WaaApiKeys;
|
|
56
|
+
(function (WaaApiKeys) {
|
|
57
|
+
})(WaaApiKeys = exports.WaaApiKeys || (exports.WaaApiKeys = {}));
|
|
58
|
+
/**
|
|
59
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
60
|
+
*/
|
|
61
|
+
class WaaClient {
|
|
62
|
+
constructor(params, clientConfiguration) {
|
|
63
|
+
this["_endpoint"] = "";
|
|
64
|
+
this["_defaultHeaders"] = {};
|
|
65
|
+
this._circuitBreaker = null;
|
|
66
|
+
this._httpOptions = undefined;
|
|
67
|
+
this.targetService = "Waa";
|
|
68
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
69
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
70
|
+
: null;
|
|
71
|
+
if (clientConfiguration) {
|
|
72
|
+
this._clientConfiguration = clientConfiguration;
|
|
73
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
74
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
75
|
+
: null;
|
|
76
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
77
|
+
? clientConfiguration.httpOptions
|
|
78
|
+
: undefined;
|
|
79
|
+
}
|
|
80
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
81
|
+
const specCircuitBreakerEnabled = true;
|
|
82
|
+
if (!this._circuitBreaker &&
|
|
83
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
84
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
85
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
86
|
+
}
|
|
87
|
+
this._httpClient =
|
|
88
|
+
params.httpClient ||
|
|
89
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions);
|
|
90
|
+
if (params.authenticationDetailsProvider &&
|
|
91
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
92
|
+
const provider = params.authenticationDetailsProvider;
|
|
93
|
+
if (provider.getRegion()) {
|
|
94
|
+
this.region = provider.getRegion();
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
100
|
+
*/
|
|
101
|
+
get endpoint() {
|
|
102
|
+
return this._endpoint;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
106
|
+
* @param endpoint The endpoint of the service.
|
|
107
|
+
*/
|
|
108
|
+
set endpoint(endpoint) {
|
|
109
|
+
this._endpoint = endpoint;
|
|
110
|
+
this._endpoint = this._endpoint + "/20211230";
|
|
111
|
+
if (this.logger)
|
|
112
|
+
this.logger.info(`WaaClient endpoint set to ${this._endpoint}`);
|
|
113
|
+
}
|
|
114
|
+
get logger() {
|
|
115
|
+
return common.LOG.logger;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
119
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
120
|
+
* @param region The region of the service.
|
|
121
|
+
*/
|
|
122
|
+
set region(region) {
|
|
123
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(WaaClient.serviceEndpointTemplate, region, WaaClient.endpointServiceName);
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
127
|
+
*
|
|
128
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
129
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
130
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
131
|
+
* @param regionId The public region ID.
|
|
132
|
+
*/
|
|
133
|
+
set regionId(regionId) {
|
|
134
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(WaaClient.serviceEndpointTemplate, regionId, WaaClient.endpointServiceName);
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Creates a new WaaWaiter for resources for this service.
|
|
138
|
+
*
|
|
139
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
140
|
+
* @return The service waiters.
|
|
141
|
+
*/
|
|
142
|
+
createWaiters(config) {
|
|
143
|
+
this._waiters = new waa_waiter_1.WaaWaiter(this, config);
|
|
144
|
+
return this._waiters;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Gets the waiters available for resources for this service.
|
|
148
|
+
*
|
|
149
|
+
* @return The service waiters.
|
|
150
|
+
*/
|
|
151
|
+
getWaiters() {
|
|
152
|
+
if (this._waiters) {
|
|
153
|
+
return this._waiters;
|
|
154
|
+
}
|
|
155
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Moves a Web App Acceleration resource from one compartment to another.
|
|
159
|
+
* When provided, If-Match is checked against ETag values of the resource.
|
|
160
|
+
*
|
|
161
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
162
|
+
* @param ChangeWebAppAccelerationCompartmentRequest
|
|
163
|
+
* @return ChangeWebAppAccelerationCompartmentResponse
|
|
164
|
+
* @throws OciError when an error occurs
|
|
165
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.31.0/waa/ChangeWebAppAccelerationCompartment.ts.html |here} to see how to use ChangeWebAppAccelerationCompartment API.
|
|
166
|
+
*/
|
|
167
|
+
changeWebAppAccelerationCompartment(changeWebAppAccelerationCompartmentRequest) {
|
|
168
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
169
|
+
if (this.logger)
|
|
170
|
+
this.logger.debug("Calling operation WaaClient#changeWebAppAccelerationCompartment.");
|
|
171
|
+
const operationName = "changeWebAppAccelerationCompartment";
|
|
172
|
+
const apiReferenceLink = "";
|
|
173
|
+
const pathParams = {
|
|
174
|
+
"{webAppAccelerationId}": changeWebAppAccelerationCompartmentRequest.webAppAccelerationId
|
|
175
|
+
};
|
|
176
|
+
const queryParams = {};
|
|
177
|
+
let headerParams = {
|
|
178
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
179
|
+
"if-match": changeWebAppAccelerationCompartmentRequest.ifMatch,
|
|
180
|
+
"opc-request-id": changeWebAppAccelerationCompartmentRequest.opcRequestId
|
|
181
|
+
};
|
|
182
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
183
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeWebAppAccelerationCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
184
|
+
if (this.logger)
|
|
185
|
+
retrier.logger = this.logger;
|
|
186
|
+
const request = yield oci_common_1.composeRequest({
|
|
187
|
+
baseEndpoint: this._endpoint,
|
|
188
|
+
defaultHeaders: this._defaultHeaders,
|
|
189
|
+
path: "/webAppAccelerations/{webAppAccelerationId}/actions/changeCompartment",
|
|
190
|
+
method: "POST",
|
|
191
|
+
bodyContent: common.ObjectSerializer.serialize(changeWebAppAccelerationCompartmentRequest.changeWebAppAccelerationCompartmentDetails, "ChangeWebAppAccelerationCompartmentDetails", model.ChangeWebAppAccelerationCompartmentDetails.getJsonObj),
|
|
192
|
+
pathParams: pathParams,
|
|
193
|
+
headerParams: headerParams,
|
|
194
|
+
queryParams: queryParams
|
|
195
|
+
});
|
|
196
|
+
try {
|
|
197
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
198
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
199
|
+
responseObject: {},
|
|
200
|
+
responseHeaders: [
|
|
201
|
+
{
|
|
202
|
+
value: response.headers.get("opc-work-request-id"),
|
|
203
|
+
key: "opcWorkRequestId",
|
|
204
|
+
dataType: "string"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
value: response.headers.get("opc-request-id"),
|
|
208
|
+
key: "opcRequestId",
|
|
209
|
+
dataType: "string"
|
|
210
|
+
}
|
|
211
|
+
]
|
|
212
|
+
});
|
|
213
|
+
return sdkResponse;
|
|
214
|
+
}
|
|
215
|
+
catch (err) {
|
|
216
|
+
throw err;
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Moves a WebAppAccelerationfPolicy resource from one compartment to another.
|
|
222
|
+
* When provided, If-Match is checked against ETag values of the resource.
|
|
223
|
+
*
|
|
224
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
225
|
+
* @param ChangeWebAppAccelerationPolicyCompartmentRequest
|
|
226
|
+
* @return ChangeWebAppAccelerationPolicyCompartmentResponse
|
|
227
|
+
* @throws OciError when an error occurs
|
|
228
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.31.0/waa/ChangeWebAppAccelerationPolicyCompartment.ts.html |here} to see how to use ChangeWebAppAccelerationPolicyCompartment API.
|
|
229
|
+
*/
|
|
230
|
+
changeWebAppAccelerationPolicyCompartment(changeWebAppAccelerationPolicyCompartmentRequest) {
|
|
231
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
232
|
+
if (this.logger)
|
|
233
|
+
this.logger.debug("Calling operation WaaClient#changeWebAppAccelerationPolicyCompartment.");
|
|
234
|
+
const operationName = "changeWebAppAccelerationPolicyCompartment";
|
|
235
|
+
const apiReferenceLink = "";
|
|
236
|
+
const pathParams = {
|
|
237
|
+
"{webAppAccelerationPolicyId}": changeWebAppAccelerationPolicyCompartmentRequest.webAppAccelerationPolicyId
|
|
238
|
+
};
|
|
239
|
+
const queryParams = {};
|
|
240
|
+
let headerParams = {
|
|
241
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
242
|
+
"if-match": changeWebAppAccelerationPolicyCompartmentRequest.ifMatch,
|
|
243
|
+
"opc-request-id": changeWebAppAccelerationPolicyCompartmentRequest.opcRequestId
|
|
244
|
+
};
|
|
245
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
246
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeWebAppAccelerationPolicyCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
247
|
+
if (this.logger)
|
|
248
|
+
retrier.logger = this.logger;
|
|
249
|
+
const request = yield oci_common_1.composeRequest({
|
|
250
|
+
baseEndpoint: this._endpoint,
|
|
251
|
+
defaultHeaders: this._defaultHeaders,
|
|
252
|
+
path: "/webAppAccelerationPolicies/{webAppAccelerationPolicyId}/actions/changeCompartment",
|
|
253
|
+
method: "POST",
|
|
254
|
+
bodyContent: common.ObjectSerializer.serialize(changeWebAppAccelerationPolicyCompartmentRequest.changeWebAppAccelerationPolicyCompartmentDetails, "ChangeWebAppAccelerationPolicyCompartmentDetails", model.ChangeWebAppAccelerationPolicyCompartmentDetails.getJsonObj),
|
|
255
|
+
pathParams: pathParams,
|
|
256
|
+
headerParams: headerParams,
|
|
257
|
+
queryParams: queryParams
|
|
258
|
+
});
|
|
259
|
+
try {
|
|
260
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
261
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
262
|
+
responseObject: {},
|
|
263
|
+
responseHeaders: [
|
|
264
|
+
{
|
|
265
|
+
value: response.headers.get("opc-work-request-id"),
|
|
266
|
+
key: "opcWorkRequestId",
|
|
267
|
+
dataType: "string"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
value: response.headers.get("opc-request-id"),
|
|
271
|
+
key: "opcRequestId",
|
|
272
|
+
dataType: "string"
|
|
273
|
+
}
|
|
274
|
+
]
|
|
275
|
+
});
|
|
276
|
+
return sdkResponse;
|
|
277
|
+
}
|
|
278
|
+
catch (err) {
|
|
279
|
+
throw err;
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* Creates a new WebAppAcceleration.
|
|
285
|
+
*
|
|
286
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
287
|
+
* @param CreateWebAppAccelerationRequest
|
|
288
|
+
* @return CreateWebAppAccelerationResponse
|
|
289
|
+
* @throws OciError when an error occurs
|
|
290
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.31.0/waa/CreateWebAppAcceleration.ts.html |here} to see how to use CreateWebAppAcceleration API.
|
|
291
|
+
*/
|
|
292
|
+
createWebAppAcceleration(createWebAppAccelerationRequest) {
|
|
293
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
294
|
+
if (this.logger)
|
|
295
|
+
this.logger.debug("Calling operation WaaClient#createWebAppAcceleration.");
|
|
296
|
+
const operationName = "createWebAppAcceleration";
|
|
297
|
+
const apiReferenceLink = "";
|
|
298
|
+
const pathParams = {};
|
|
299
|
+
const queryParams = {};
|
|
300
|
+
let headerParams = {
|
|
301
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
302
|
+
"opc-retry-token": createWebAppAccelerationRequest.opcRetryToken,
|
|
303
|
+
"opc-request-id": createWebAppAccelerationRequest.opcRequestId
|
|
304
|
+
};
|
|
305
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
306
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createWebAppAccelerationRequest.retryConfiguration, specRetryConfiguration);
|
|
307
|
+
if (this.logger)
|
|
308
|
+
retrier.logger = this.logger;
|
|
309
|
+
const request = yield oci_common_1.composeRequest({
|
|
310
|
+
baseEndpoint: this._endpoint,
|
|
311
|
+
defaultHeaders: this._defaultHeaders,
|
|
312
|
+
path: "/webAppAccelerations",
|
|
313
|
+
method: "POST",
|
|
314
|
+
bodyContent: common.ObjectSerializer.serialize(createWebAppAccelerationRequest.createWebAppAccelerationDetails, "CreateWebAppAccelerationDetails", model.CreateWebAppAccelerationDetails.getJsonObj),
|
|
315
|
+
pathParams: pathParams,
|
|
316
|
+
headerParams: headerParams,
|
|
317
|
+
queryParams: queryParams
|
|
318
|
+
});
|
|
319
|
+
try {
|
|
320
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
321
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
322
|
+
responseObject: {},
|
|
323
|
+
body: yield response.json(),
|
|
324
|
+
bodyKey: "webAppAcceleration",
|
|
325
|
+
bodyModel: model.WebAppAcceleration,
|
|
326
|
+
type: "model.WebAppAcceleration",
|
|
327
|
+
responseHeaders: [
|
|
328
|
+
{
|
|
329
|
+
value: response.headers.get("etag"),
|
|
330
|
+
key: "etag",
|
|
331
|
+
dataType: "string"
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
value: response.headers.get("opc-work-request-id"),
|
|
335
|
+
key: "opcWorkRequestId",
|
|
336
|
+
dataType: "string"
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
value: response.headers.get("opc-request-id"),
|
|
340
|
+
key: "opcRequestId",
|
|
341
|
+
dataType: "string"
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
value: response.headers.get("location"),
|
|
345
|
+
key: "location",
|
|
346
|
+
dataType: "string"
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
value: response.headers.get("content-location"),
|
|
350
|
+
key: "contentLocation",
|
|
351
|
+
dataType: "string"
|
|
352
|
+
}
|
|
353
|
+
]
|
|
354
|
+
});
|
|
355
|
+
return sdkResponse;
|
|
356
|
+
}
|
|
357
|
+
catch (err) {
|
|
358
|
+
throw err;
|
|
359
|
+
}
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* Creates a new WebAppAccelerationPolicy.
|
|
364
|
+
*
|
|
365
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
366
|
+
* @param CreateWebAppAccelerationPolicyRequest
|
|
367
|
+
* @return CreateWebAppAccelerationPolicyResponse
|
|
368
|
+
* @throws OciError when an error occurs
|
|
369
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.31.0/waa/CreateWebAppAccelerationPolicy.ts.html |here} to see how to use CreateWebAppAccelerationPolicy API.
|
|
370
|
+
*/
|
|
371
|
+
createWebAppAccelerationPolicy(createWebAppAccelerationPolicyRequest) {
|
|
372
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
373
|
+
if (this.logger)
|
|
374
|
+
this.logger.debug("Calling operation WaaClient#createWebAppAccelerationPolicy.");
|
|
375
|
+
const operationName = "createWebAppAccelerationPolicy";
|
|
376
|
+
const apiReferenceLink = "";
|
|
377
|
+
const pathParams = {};
|
|
378
|
+
const queryParams = {};
|
|
379
|
+
let headerParams = {
|
|
380
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
381
|
+
"opc-retry-token": createWebAppAccelerationPolicyRequest.opcRetryToken,
|
|
382
|
+
"opc-request-id": createWebAppAccelerationPolicyRequest.opcRequestId
|
|
383
|
+
};
|
|
384
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
385
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createWebAppAccelerationPolicyRequest.retryConfiguration, specRetryConfiguration);
|
|
386
|
+
if (this.logger)
|
|
387
|
+
retrier.logger = this.logger;
|
|
388
|
+
const request = yield oci_common_1.composeRequest({
|
|
389
|
+
baseEndpoint: this._endpoint,
|
|
390
|
+
defaultHeaders: this._defaultHeaders,
|
|
391
|
+
path: "/webAppAccelerationPolicies",
|
|
392
|
+
method: "POST",
|
|
393
|
+
bodyContent: common.ObjectSerializer.serialize(createWebAppAccelerationPolicyRequest.createWebAppAccelerationPolicyDetails, "CreateWebAppAccelerationPolicyDetails", model.CreateWebAppAccelerationPolicyDetails.getJsonObj),
|
|
394
|
+
pathParams: pathParams,
|
|
395
|
+
headerParams: headerParams,
|
|
396
|
+
queryParams: queryParams
|
|
397
|
+
});
|
|
398
|
+
try {
|
|
399
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
400
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
401
|
+
responseObject: {},
|
|
402
|
+
body: yield response.json(),
|
|
403
|
+
bodyKey: "webAppAccelerationPolicy",
|
|
404
|
+
bodyModel: model.WebAppAccelerationPolicy,
|
|
405
|
+
type: "model.WebAppAccelerationPolicy",
|
|
406
|
+
responseHeaders: [
|
|
407
|
+
{
|
|
408
|
+
value: response.headers.get("etag"),
|
|
409
|
+
key: "etag",
|
|
410
|
+
dataType: "string"
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
value: response.headers.get("opc-work-request-id"),
|
|
414
|
+
key: "opcWorkRequestId",
|
|
415
|
+
dataType: "string"
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
value: response.headers.get("opc-request-id"),
|
|
419
|
+
key: "opcRequestId",
|
|
420
|
+
dataType: "string"
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
value: response.headers.get("location"),
|
|
424
|
+
key: "location",
|
|
425
|
+
dataType: "string"
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
value: response.headers.get("content-location"),
|
|
429
|
+
key: "contentLocation",
|
|
430
|
+
dataType: "string"
|
|
431
|
+
}
|
|
432
|
+
]
|
|
433
|
+
});
|
|
434
|
+
return sdkResponse;
|
|
435
|
+
}
|
|
436
|
+
catch (err) {
|
|
437
|
+
throw err;
|
|
438
|
+
}
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
/**
|
|
442
|
+
* Deletes a WebAppAcceleration resource identified by the OCID.
|
|
443
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
444
|
+
* @param DeleteWebAppAccelerationRequest
|
|
445
|
+
* @return DeleteWebAppAccelerationResponse
|
|
446
|
+
* @throws OciError when an error occurs
|
|
447
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.31.0/waa/DeleteWebAppAcceleration.ts.html |here} to see how to use DeleteWebAppAcceleration API.
|
|
448
|
+
*/
|
|
449
|
+
deleteWebAppAcceleration(deleteWebAppAccelerationRequest) {
|
|
450
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
451
|
+
if (this.logger)
|
|
452
|
+
this.logger.debug("Calling operation WaaClient#deleteWebAppAcceleration.");
|
|
453
|
+
const operationName = "deleteWebAppAcceleration";
|
|
454
|
+
const apiReferenceLink = "";
|
|
455
|
+
const pathParams = {
|
|
456
|
+
"{webAppAccelerationId}": deleteWebAppAccelerationRequest.webAppAccelerationId
|
|
457
|
+
};
|
|
458
|
+
const queryParams = {};
|
|
459
|
+
let headerParams = {
|
|
460
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
461
|
+
"if-match": deleteWebAppAccelerationRequest.ifMatch,
|
|
462
|
+
"opc-request-id": deleteWebAppAccelerationRequest.opcRequestId
|
|
463
|
+
};
|
|
464
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
465
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteWebAppAccelerationRequest.retryConfiguration, specRetryConfiguration);
|
|
466
|
+
if (this.logger)
|
|
467
|
+
retrier.logger = this.logger;
|
|
468
|
+
const request = yield oci_common_1.composeRequest({
|
|
469
|
+
baseEndpoint: this._endpoint,
|
|
470
|
+
defaultHeaders: this._defaultHeaders,
|
|
471
|
+
path: "/webAppAccelerations/{webAppAccelerationId}",
|
|
472
|
+
method: "DELETE",
|
|
473
|
+
pathParams: pathParams,
|
|
474
|
+
headerParams: headerParams,
|
|
475
|
+
queryParams: queryParams
|
|
476
|
+
});
|
|
477
|
+
try {
|
|
478
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
479
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
480
|
+
responseObject: {},
|
|
481
|
+
responseHeaders: [
|
|
482
|
+
{
|
|
483
|
+
value: response.headers.get("opc-work-request-id"),
|
|
484
|
+
key: "opcWorkRequestId",
|
|
485
|
+
dataType: "string"
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
value: response.headers.get("opc-request-id"),
|
|
489
|
+
key: "opcRequestId",
|
|
490
|
+
dataType: "string"
|
|
491
|
+
}
|
|
492
|
+
]
|
|
493
|
+
});
|
|
494
|
+
return sdkResponse;
|
|
495
|
+
}
|
|
496
|
+
catch (err) {
|
|
497
|
+
throw err;
|
|
498
|
+
}
|
|
499
|
+
});
|
|
500
|
+
}
|
|
501
|
+
/**
|
|
502
|
+
* Deletes a WebAppAccelerationPolicy resource identified by the OCID.
|
|
503
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
504
|
+
* @param DeleteWebAppAccelerationPolicyRequest
|
|
505
|
+
* @return DeleteWebAppAccelerationPolicyResponse
|
|
506
|
+
* @throws OciError when an error occurs
|
|
507
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.31.0/waa/DeleteWebAppAccelerationPolicy.ts.html |here} to see how to use DeleteWebAppAccelerationPolicy API.
|
|
508
|
+
*/
|
|
509
|
+
deleteWebAppAccelerationPolicy(deleteWebAppAccelerationPolicyRequest) {
|
|
510
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
511
|
+
if (this.logger)
|
|
512
|
+
this.logger.debug("Calling operation WaaClient#deleteWebAppAccelerationPolicy.");
|
|
513
|
+
const operationName = "deleteWebAppAccelerationPolicy";
|
|
514
|
+
const apiReferenceLink = "";
|
|
515
|
+
const pathParams = {
|
|
516
|
+
"{webAppAccelerationPolicyId}": deleteWebAppAccelerationPolicyRequest.webAppAccelerationPolicyId
|
|
517
|
+
};
|
|
518
|
+
const queryParams = {};
|
|
519
|
+
let headerParams = {
|
|
520
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
521
|
+
"if-match": deleteWebAppAccelerationPolicyRequest.ifMatch,
|
|
522
|
+
"opc-request-id": deleteWebAppAccelerationPolicyRequest.opcRequestId
|
|
523
|
+
};
|
|
524
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
525
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteWebAppAccelerationPolicyRequest.retryConfiguration, specRetryConfiguration);
|
|
526
|
+
if (this.logger)
|
|
527
|
+
retrier.logger = this.logger;
|
|
528
|
+
const request = yield oci_common_1.composeRequest({
|
|
529
|
+
baseEndpoint: this._endpoint,
|
|
530
|
+
defaultHeaders: this._defaultHeaders,
|
|
531
|
+
path: "/webAppAccelerationPolicies/{webAppAccelerationPolicyId}",
|
|
532
|
+
method: "DELETE",
|
|
533
|
+
pathParams: pathParams,
|
|
534
|
+
headerParams: headerParams,
|
|
535
|
+
queryParams: queryParams
|
|
536
|
+
});
|
|
537
|
+
try {
|
|
538
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
539
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
540
|
+
responseObject: {},
|
|
541
|
+
responseHeaders: [
|
|
542
|
+
{
|
|
543
|
+
value: response.headers.get("opc-work-request-id"),
|
|
544
|
+
key: "opcWorkRequestId",
|
|
545
|
+
dataType: "string"
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
value: response.headers.get("opc-request-id"),
|
|
549
|
+
key: "opcRequestId",
|
|
550
|
+
dataType: "string"
|
|
551
|
+
}
|
|
552
|
+
]
|
|
553
|
+
});
|
|
554
|
+
return sdkResponse;
|
|
555
|
+
}
|
|
556
|
+
catch (err) {
|
|
557
|
+
throw err;
|
|
558
|
+
}
|
|
559
|
+
});
|
|
560
|
+
}
|
|
561
|
+
/**
|
|
562
|
+
* Gets a WebAppAcceleration by OCID.
|
|
563
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
564
|
+
* @param GetWebAppAccelerationRequest
|
|
565
|
+
* @return GetWebAppAccelerationResponse
|
|
566
|
+
* @throws OciError when an error occurs
|
|
567
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.31.0/waa/GetWebAppAcceleration.ts.html |here} to see how to use GetWebAppAcceleration API.
|
|
568
|
+
*/
|
|
569
|
+
getWebAppAcceleration(getWebAppAccelerationRequest) {
|
|
570
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
571
|
+
if (this.logger)
|
|
572
|
+
this.logger.debug("Calling operation WaaClient#getWebAppAcceleration.");
|
|
573
|
+
const operationName = "getWebAppAcceleration";
|
|
574
|
+
const apiReferenceLink = "";
|
|
575
|
+
const pathParams = {
|
|
576
|
+
"{webAppAccelerationId}": getWebAppAccelerationRequest.webAppAccelerationId
|
|
577
|
+
};
|
|
578
|
+
const queryParams = {};
|
|
579
|
+
let headerParams = {
|
|
580
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
581
|
+
"opc-request-id": getWebAppAccelerationRequest.opcRequestId
|
|
582
|
+
};
|
|
583
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
584
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWebAppAccelerationRequest.retryConfiguration, specRetryConfiguration);
|
|
585
|
+
if (this.logger)
|
|
586
|
+
retrier.logger = this.logger;
|
|
587
|
+
const request = yield oci_common_1.composeRequest({
|
|
588
|
+
baseEndpoint: this._endpoint,
|
|
589
|
+
defaultHeaders: this._defaultHeaders,
|
|
590
|
+
path: "/webAppAccelerations/{webAppAccelerationId}",
|
|
591
|
+
method: "GET",
|
|
592
|
+
pathParams: pathParams,
|
|
593
|
+
headerParams: headerParams,
|
|
594
|
+
queryParams: queryParams
|
|
595
|
+
});
|
|
596
|
+
try {
|
|
597
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
598
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
599
|
+
responseObject: {},
|
|
600
|
+
body: yield response.json(),
|
|
601
|
+
bodyKey: "webAppAcceleration",
|
|
602
|
+
bodyModel: model.WebAppAcceleration,
|
|
603
|
+
type: "model.WebAppAcceleration",
|
|
604
|
+
responseHeaders: [
|
|
605
|
+
{
|
|
606
|
+
value: response.headers.get("etag"),
|
|
607
|
+
key: "etag",
|
|
608
|
+
dataType: "string"
|
|
609
|
+
},
|
|
610
|
+
{
|
|
611
|
+
value: response.headers.get("opc-request-id"),
|
|
612
|
+
key: "opcRequestId",
|
|
613
|
+
dataType: "string"
|
|
614
|
+
}
|
|
615
|
+
]
|
|
616
|
+
});
|
|
617
|
+
return sdkResponse;
|
|
618
|
+
}
|
|
619
|
+
catch (err) {
|
|
620
|
+
throw err;
|
|
621
|
+
}
|
|
622
|
+
});
|
|
623
|
+
}
|
|
624
|
+
/**
|
|
625
|
+
* Gets a WebAppAccelerationPolicy with the given OCID.
|
|
626
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
627
|
+
* @param GetWebAppAccelerationPolicyRequest
|
|
628
|
+
* @return GetWebAppAccelerationPolicyResponse
|
|
629
|
+
* @throws OciError when an error occurs
|
|
630
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.31.0/waa/GetWebAppAccelerationPolicy.ts.html |here} to see how to use GetWebAppAccelerationPolicy API.
|
|
631
|
+
*/
|
|
632
|
+
getWebAppAccelerationPolicy(getWebAppAccelerationPolicyRequest) {
|
|
633
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
634
|
+
if (this.logger)
|
|
635
|
+
this.logger.debug("Calling operation WaaClient#getWebAppAccelerationPolicy.");
|
|
636
|
+
const operationName = "getWebAppAccelerationPolicy";
|
|
637
|
+
const apiReferenceLink = "";
|
|
638
|
+
const pathParams = {
|
|
639
|
+
"{webAppAccelerationPolicyId}": getWebAppAccelerationPolicyRequest.webAppAccelerationPolicyId
|
|
640
|
+
};
|
|
641
|
+
const queryParams = {};
|
|
642
|
+
let headerParams = {
|
|
643
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
644
|
+
"opc-request-id": getWebAppAccelerationPolicyRequest.opcRequestId
|
|
645
|
+
};
|
|
646
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
647
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWebAppAccelerationPolicyRequest.retryConfiguration, specRetryConfiguration);
|
|
648
|
+
if (this.logger)
|
|
649
|
+
retrier.logger = this.logger;
|
|
650
|
+
const request = yield oci_common_1.composeRequest({
|
|
651
|
+
baseEndpoint: this._endpoint,
|
|
652
|
+
defaultHeaders: this._defaultHeaders,
|
|
653
|
+
path: "/webAppAccelerationPolicies/{webAppAccelerationPolicyId}",
|
|
654
|
+
method: "GET",
|
|
655
|
+
pathParams: pathParams,
|
|
656
|
+
headerParams: headerParams,
|
|
657
|
+
queryParams: queryParams
|
|
658
|
+
});
|
|
659
|
+
try {
|
|
660
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
661
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
662
|
+
responseObject: {},
|
|
663
|
+
body: yield response.json(),
|
|
664
|
+
bodyKey: "webAppAccelerationPolicy",
|
|
665
|
+
bodyModel: model.WebAppAccelerationPolicy,
|
|
666
|
+
type: "model.WebAppAccelerationPolicy",
|
|
667
|
+
responseHeaders: [
|
|
668
|
+
{
|
|
669
|
+
value: response.headers.get("etag"),
|
|
670
|
+
key: "etag",
|
|
671
|
+
dataType: "string"
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
value: response.headers.get("opc-request-id"),
|
|
675
|
+
key: "opcRequestId",
|
|
676
|
+
dataType: "string"
|
|
677
|
+
}
|
|
678
|
+
]
|
|
679
|
+
});
|
|
680
|
+
return sdkResponse;
|
|
681
|
+
}
|
|
682
|
+
catch (err) {
|
|
683
|
+
throw err;
|
|
684
|
+
}
|
|
685
|
+
});
|
|
686
|
+
}
|
|
687
|
+
/**
|
|
688
|
+
* Gets a list of all WebAppAccelerationPolicies in a compartment.
|
|
689
|
+
*
|
|
690
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
691
|
+
* @param ListWebAppAccelerationPoliciesRequest
|
|
692
|
+
* @return ListWebAppAccelerationPoliciesResponse
|
|
693
|
+
* @throws OciError when an error occurs
|
|
694
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.31.0/waa/ListWebAppAccelerationPolicies.ts.html |here} to see how to use ListWebAppAccelerationPolicies API.
|
|
695
|
+
*/
|
|
696
|
+
listWebAppAccelerationPolicies(listWebAppAccelerationPoliciesRequest) {
|
|
697
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
698
|
+
if (this.logger)
|
|
699
|
+
this.logger.debug("Calling operation WaaClient#listWebAppAccelerationPolicies.");
|
|
700
|
+
const operationName = "listWebAppAccelerationPolicies";
|
|
701
|
+
const apiReferenceLink = "";
|
|
702
|
+
const pathParams = {};
|
|
703
|
+
const queryParams = {
|
|
704
|
+
"compartmentId": listWebAppAccelerationPoliciesRequest.compartmentId,
|
|
705
|
+
"lifecycleState": listWebAppAccelerationPoliciesRequest.lifecycleState,
|
|
706
|
+
"displayName": listWebAppAccelerationPoliciesRequest.displayName,
|
|
707
|
+
"id": listWebAppAccelerationPoliciesRequest.id,
|
|
708
|
+
"limit": listWebAppAccelerationPoliciesRequest.limit,
|
|
709
|
+
"page": listWebAppAccelerationPoliciesRequest.page,
|
|
710
|
+
"sortOrder": listWebAppAccelerationPoliciesRequest.sortOrder,
|
|
711
|
+
"sortBy": listWebAppAccelerationPoliciesRequest.sortBy
|
|
712
|
+
};
|
|
713
|
+
let headerParams = {
|
|
714
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
715
|
+
"opc-request-id": listWebAppAccelerationPoliciesRequest.opcRequestId
|
|
716
|
+
};
|
|
717
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
718
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWebAppAccelerationPoliciesRequest.retryConfiguration, specRetryConfiguration);
|
|
719
|
+
if (this.logger)
|
|
720
|
+
retrier.logger = this.logger;
|
|
721
|
+
const request = yield oci_common_1.composeRequest({
|
|
722
|
+
baseEndpoint: this._endpoint,
|
|
723
|
+
defaultHeaders: this._defaultHeaders,
|
|
724
|
+
path: "/webAppAccelerationPolicies",
|
|
725
|
+
method: "GET",
|
|
726
|
+
pathParams: pathParams,
|
|
727
|
+
headerParams: headerParams,
|
|
728
|
+
queryParams: queryParams
|
|
729
|
+
});
|
|
730
|
+
try {
|
|
731
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
732
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
733
|
+
responseObject: {},
|
|
734
|
+
body: yield response.json(),
|
|
735
|
+
bodyKey: "webAppAccelerationPolicyCollection",
|
|
736
|
+
bodyModel: model.WebAppAccelerationPolicyCollection,
|
|
737
|
+
type: "model.WebAppAccelerationPolicyCollection",
|
|
738
|
+
responseHeaders: [
|
|
739
|
+
{
|
|
740
|
+
value: response.headers.get("opc-request-id"),
|
|
741
|
+
key: "opcRequestId",
|
|
742
|
+
dataType: "string"
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
value: response.headers.get("opc-next-page"),
|
|
746
|
+
key: "opcNextPage",
|
|
747
|
+
dataType: "string"
|
|
748
|
+
}
|
|
749
|
+
]
|
|
750
|
+
});
|
|
751
|
+
return sdkResponse;
|
|
752
|
+
}
|
|
753
|
+
catch (err) {
|
|
754
|
+
throw err;
|
|
755
|
+
}
|
|
756
|
+
});
|
|
757
|
+
}
|
|
758
|
+
/**
|
|
759
|
+
* Gets a list of all WebAppAccelerations in a compartment.
|
|
760
|
+
*
|
|
761
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
762
|
+
* @param ListWebAppAccelerationsRequest
|
|
763
|
+
* @return ListWebAppAccelerationsResponse
|
|
764
|
+
* @throws OciError when an error occurs
|
|
765
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.31.0/waa/ListWebAppAccelerations.ts.html |here} to see how to use ListWebAppAccelerations API.
|
|
766
|
+
*/
|
|
767
|
+
listWebAppAccelerations(listWebAppAccelerationsRequest) {
|
|
768
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
769
|
+
if (this.logger)
|
|
770
|
+
this.logger.debug("Calling operation WaaClient#listWebAppAccelerations.");
|
|
771
|
+
const operationName = "listWebAppAccelerations";
|
|
772
|
+
const apiReferenceLink = "";
|
|
773
|
+
const pathParams = {};
|
|
774
|
+
const queryParams = {
|
|
775
|
+
"compartmentId": listWebAppAccelerationsRequest.compartmentId,
|
|
776
|
+
"id": listWebAppAccelerationsRequest.id,
|
|
777
|
+
"webAppAccelerationPolicyId": listWebAppAccelerationsRequest.webAppAccelerationPolicyId,
|
|
778
|
+
"lifecycleState": listWebAppAccelerationsRequest.lifecycleState,
|
|
779
|
+
"displayName": listWebAppAccelerationsRequest.displayName,
|
|
780
|
+
"limit": listWebAppAccelerationsRequest.limit,
|
|
781
|
+
"page": listWebAppAccelerationsRequest.page,
|
|
782
|
+
"sortOrder": listWebAppAccelerationsRequest.sortOrder,
|
|
783
|
+
"sortBy": listWebAppAccelerationsRequest.sortBy
|
|
784
|
+
};
|
|
785
|
+
let headerParams = {
|
|
786
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
787
|
+
"opc-request-id": listWebAppAccelerationsRequest.opcRequestId
|
|
788
|
+
};
|
|
789
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
790
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWebAppAccelerationsRequest.retryConfiguration, specRetryConfiguration);
|
|
791
|
+
if (this.logger)
|
|
792
|
+
retrier.logger = this.logger;
|
|
793
|
+
const request = yield oci_common_1.composeRequest({
|
|
794
|
+
baseEndpoint: this._endpoint,
|
|
795
|
+
defaultHeaders: this._defaultHeaders,
|
|
796
|
+
path: "/webAppAccelerations",
|
|
797
|
+
method: "GET",
|
|
798
|
+
pathParams: pathParams,
|
|
799
|
+
headerParams: headerParams,
|
|
800
|
+
queryParams: queryParams
|
|
801
|
+
});
|
|
802
|
+
try {
|
|
803
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
804
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
805
|
+
responseObject: {},
|
|
806
|
+
body: yield response.json(),
|
|
807
|
+
bodyKey: "webAppAccelerationCollection",
|
|
808
|
+
bodyModel: model.WebAppAccelerationCollection,
|
|
809
|
+
type: "model.WebAppAccelerationCollection",
|
|
810
|
+
responseHeaders: [
|
|
811
|
+
{
|
|
812
|
+
value: response.headers.get("opc-request-id"),
|
|
813
|
+
key: "opcRequestId",
|
|
814
|
+
dataType: "string"
|
|
815
|
+
},
|
|
816
|
+
{
|
|
817
|
+
value: response.headers.get("opc-next-page"),
|
|
818
|
+
key: "opcNextPage",
|
|
819
|
+
dataType: "string"
|
|
820
|
+
}
|
|
821
|
+
]
|
|
822
|
+
});
|
|
823
|
+
return sdkResponse;
|
|
824
|
+
}
|
|
825
|
+
catch (err) {
|
|
826
|
+
throw err;
|
|
827
|
+
}
|
|
828
|
+
});
|
|
829
|
+
}
|
|
830
|
+
/**
|
|
831
|
+
* Clears resources from the cache of the WebAppAcceleration. Each new request for a purged resource will be
|
|
832
|
+
* forwarded to the origin server to fetch a new version of the resource.
|
|
833
|
+
*
|
|
834
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
835
|
+
* @param PurgeWebAppAccelerationCacheRequest
|
|
836
|
+
* @return PurgeWebAppAccelerationCacheResponse
|
|
837
|
+
* @throws OciError when an error occurs
|
|
838
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.31.0/waa/PurgeWebAppAccelerationCache.ts.html |here} to see how to use PurgeWebAppAccelerationCache API.
|
|
839
|
+
*/
|
|
840
|
+
purgeWebAppAccelerationCache(purgeWebAppAccelerationCacheRequest) {
|
|
841
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
842
|
+
if (this.logger)
|
|
843
|
+
this.logger.debug("Calling operation WaaClient#purgeWebAppAccelerationCache.");
|
|
844
|
+
const operationName = "purgeWebAppAccelerationCache";
|
|
845
|
+
const apiReferenceLink = "";
|
|
846
|
+
const pathParams = {
|
|
847
|
+
"{webAppAccelerationId}": purgeWebAppAccelerationCacheRequest.webAppAccelerationId
|
|
848
|
+
};
|
|
849
|
+
const queryParams = {};
|
|
850
|
+
let headerParams = {
|
|
851
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
852
|
+
"opc-request-id": purgeWebAppAccelerationCacheRequest.opcRequestId
|
|
853
|
+
};
|
|
854
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
855
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, purgeWebAppAccelerationCacheRequest.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: "/webAppAccelerations/{webAppAccelerationId}/actions/purgeCache",
|
|
862
|
+
method: "POST",
|
|
863
|
+
bodyContent: common.ObjectSerializer.serialize(purgeWebAppAccelerationCacheRequest.purgeWebAppAccelerationCacheDetails, "PurgeWebAppAccelerationCacheDetails", model.PurgeWebAppAccelerationCacheDetails.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
|
+
responseHeaders: [
|
|
873
|
+
{
|
|
874
|
+
value: response.headers.get("opc-work-request-id"),
|
|
875
|
+
key: "opcWorkRequestId",
|
|
876
|
+
dataType: "string"
|
|
877
|
+
},
|
|
878
|
+
{
|
|
879
|
+
value: response.headers.get("opc-request-id"),
|
|
880
|
+
key: "opcRequestId",
|
|
881
|
+
dataType: "string"
|
|
882
|
+
}
|
|
883
|
+
]
|
|
884
|
+
});
|
|
885
|
+
return sdkResponse;
|
|
886
|
+
}
|
|
887
|
+
catch (err) {
|
|
888
|
+
throw err;
|
|
889
|
+
}
|
|
890
|
+
});
|
|
891
|
+
}
|
|
892
|
+
/**
|
|
893
|
+
* Updates the WebAppAcceleration identified by the OCID.
|
|
894
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
895
|
+
* @param UpdateWebAppAccelerationRequest
|
|
896
|
+
* @return UpdateWebAppAccelerationResponse
|
|
897
|
+
* @throws OciError when an error occurs
|
|
898
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.31.0/waa/UpdateWebAppAcceleration.ts.html |here} to see how to use UpdateWebAppAcceleration API.
|
|
899
|
+
*/
|
|
900
|
+
updateWebAppAcceleration(updateWebAppAccelerationRequest) {
|
|
901
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
902
|
+
if (this.logger)
|
|
903
|
+
this.logger.debug("Calling operation WaaClient#updateWebAppAcceleration.");
|
|
904
|
+
const operationName = "updateWebAppAcceleration";
|
|
905
|
+
const apiReferenceLink = "";
|
|
906
|
+
const pathParams = {
|
|
907
|
+
"{webAppAccelerationId}": updateWebAppAccelerationRequest.webAppAccelerationId
|
|
908
|
+
};
|
|
909
|
+
const queryParams = {};
|
|
910
|
+
let headerParams = {
|
|
911
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
912
|
+
"if-match": updateWebAppAccelerationRequest.ifMatch,
|
|
913
|
+
"opc-request-id": updateWebAppAccelerationRequest.opcRequestId
|
|
914
|
+
};
|
|
915
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
916
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateWebAppAccelerationRequest.retryConfiguration, specRetryConfiguration);
|
|
917
|
+
if (this.logger)
|
|
918
|
+
retrier.logger = this.logger;
|
|
919
|
+
const request = yield oci_common_1.composeRequest({
|
|
920
|
+
baseEndpoint: this._endpoint,
|
|
921
|
+
defaultHeaders: this._defaultHeaders,
|
|
922
|
+
path: "/webAppAccelerations/{webAppAccelerationId}",
|
|
923
|
+
method: "PUT",
|
|
924
|
+
bodyContent: common.ObjectSerializer.serialize(updateWebAppAccelerationRequest.updateWebAppAccelerationDetails, "UpdateWebAppAccelerationDetails", model.UpdateWebAppAccelerationDetails.getJsonObj),
|
|
925
|
+
pathParams: pathParams,
|
|
926
|
+
headerParams: headerParams,
|
|
927
|
+
queryParams: queryParams
|
|
928
|
+
});
|
|
929
|
+
try {
|
|
930
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
931
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
932
|
+
responseObject: {},
|
|
933
|
+
responseHeaders: [
|
|
934
|
+
{
|
|
935
|
+
value: response.headers.get("opc-work-request-id"),
|
|
936
|
+
key: "opcWorkRequestId",
|
|
937
|
+
dataType: "string"
|
|
938
|
+
},
|
|
939
|
+
{
|
|
940
|
+
value: response.headers.get("opc-request-id"),
|
|
941
|
+
key: "opcRequestId",
|
|
942
|
+
dataType: "string"
|
|
943
|
+
}
|
|
944
|
+
]
|
|
945
|
+
});
|
|
946
|
+
return sdkResponse;
|
|
947
|
+
}
|
|
948
|
+
catch (err) {
|
|
949
|
+
throw err;
|
|
950
|
+
}
|
|
951
|
+
});
|
|
952
|
+
}
|
|
953
|
+
/**
|
|
954
|
+
* Update the WebAppAccelerationPolicy identified by the OCID.
|
|
955
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
956
|
+
* @param UpdateWebAppAccelerationPolicyRequest
|
|
957
|
+
* @return UpdateWebAppAccelerationPolicyResponse
|
|
958
|
+
* @throws OciError when an error occurs
|
|
959
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.31.0/waa/UpdateWebAppAccelerationPolicy.ts.html |here} to see how to use UpdateWebAppAccelerationPolicy API.
|
|
960
|
+
*/
|
|
961
|
+
updateWebAppAccelerationPolicy(updateWebAppAccelerationPolicyRequest) {
|
|
962
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
963
|
+
if (this.logger)
|
|
964
|
+
this.logger.debug("Calling operation WaaClient#updateWebAppAccelerationPolicy.");
|
|
965
|
+
const operationName = "updateWebAppAccelerationPolicy";
|
|
966
|
+
const apiReferenceLink = "";
|
|
967
|
+
const pathParams = {
|
|
968
|
+
"{webAppAccelerationPolicyId}": updateWebAppAccelerationPolicyRequest.webAppAccelerationPolicyId
|
|
969
|
+
};
|
|
970
|
+
const queryParams = {};
|
|
971
|
+
let headerParams = {
|
|
972
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
973
|
+
"if-match": updateWebAppAccelerationPolicyRequest.ifMatch,
|
|
974
|
+
"opc-request-id": updateWebAppAccelerationPolicyRequest.opcRequestId
|
|
975
|
+
};
|
|
976
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
977
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateWebAppAccelerationPolicyRequest.retryConfiguration, specRetryConfiguration);
|
|
978
|
+
if (this.logger)
|
|
979
|
+
retrier.logger = this.logger;
|
|
980
|
+
const request = yield oci_common_1.composeRequest({
|
|
981
|
+
baseEndpoint: this._endpoint,
|
|
982
|
+
defaultHeaders: this._defaultHeaders,
|
|
983
|
+
path: "/webAppAccelerationPolicies/{webAppAccelerationPolicyId}",
|
|
984
|
+
method: "PUT",
|
|
985
|
+
bodyContent: common.ObjectSerializer.serialize(updateWebAppAccelerationPolicyRequest.updateWebAppAccelerationPolicyDetails, "UpdateWebAppAccelerationPolicyDetails", model.UpdateWebAppAccelerationPolicyDetails.getJsonObj),
|
|
986
|
+
pathParams: pathParams,
|
|
987
|
+
headerParams: headerParams,
|
|
988
|
+
queryParams: queryParams
|
|
989
|
+
});
|
|
990
|
+
try {
|
|
991
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
992
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
993
|
+
responseObject: {},
|
|
994
|
+
responseHeaders: [
|
|
995
|
+
{
|
|
996
|
+
value: response.headers.get("opc-work-request-id"),
|
|
997
|
+
key: "opcWorkRequestId",
|
|
998
|
+
dataType: "string"
|
|
999
|
+
},
|
|
1000
|
+
{
|
|
1001
|
+
value: response.headers.get("opc-request-id"),
|
|
1002
|
+
key: "opcRequestId",
|
|
1003
|
+
dataType: "string"
|
|
1004
|
+
}
|
|
1005
|
+
]
|
|
1006
|
+
});
|
|
1007
|
+
return sdkResponse;
|
|
1008
|
+
}
|
|
1009
|
+
catch (err) {
|
|
1010
|
+
throw err;
|
|
1011
|
+
}
|
|
1012
|
+
});
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
exports.WaaClient = WaaClient;
|
|
1016
|
+
WaaClient.serviceEndpointTemplate = "https://waa.{region}.oci.{secondLevelDomain}";
|
|
1017
|
+
WaaClient.endpointServiceName = "";
|
|
1018
|
+
var WorkRequestApiKeys;
|
|
1019
|
+
(function (WorkRequestApiKeys) {
|
|
1020
|
+
})(WorkRequestApiKeys = exports.WorkRequestApiKeys || (exports.WorkRequestApiKeys = {}));
|
|
1021
|
+
/**
|
|
1022
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
1023
|
+
*/
|
|
1024
|
+
class WorkRequestClient {
|
|
1025
|
+
constructor(params, clientConfiguration) {
|
|
1026
|
+
this["_endpoint"] = "";
|
|
1027
|
+
this["_defaultHeaders"] = {};
|
|
1028
|
+
this._circuitBreaker = null;
|
|
1029
|
+
this._httpOptions = undefined;
|
|
1030
|
+
this.targetService = "WorkRequest";
|
|
1031
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
1032
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
1033
|
+
: null;
|
|
1034
|
+
if (clientConfiguration) {
|
|
1035
|
+
this._clientConfiguration = clientConfiguration;
|
|
1036
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
1037
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
1038
|
+
: null;
|
|
1039
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
1040
|
+
? clientConfiguration.httpOptions
|
|
1041
|
+
: undefined;
|
|
1042
|
+
}
|
|
1043
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
1044
|
+
const specCircuitBreakerEnabled = true;
|
|
1045
|
+
if (!this._circuitBreaker &&
|
|
1046
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
1047
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
1048
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
1049
|
+
}
|
|
1050
|
+
this._httpClient =
|
|
1051
|
+
params.httpClient ||
|
|
1052
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions);
|
|
1053
|
+
if (params.authenticationDetailsProvider &&
|
|
1054
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
1055
|
+
const provider = params.authenticationDetailsProvider;
|
|
1056
|
+
if (provider.getRegion()) {
|
|
1057
|
+
this.region = provider.getRegion();
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
/**
|
|
1062
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
1063
|
+
*/
|
|
1064
|
+
get endpoint() {
|
|
1065
|
+
return this._endpoint;
|
|
1066
|
+
}
|
|
1067
|
+
/**
|
|
1068
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
1069
|
+
* @param endpoint The endpoint of the service.
|
|
1070
|
+
*/
|
|
1071
|
+
set endpoint(endpoint) {
|
|
1072
|
+
this._endpoint = endpoint;
|
|
1073
|
+
this._endpoint = this._endpoint + "/20211230";
|
|
1074
|
+
if (this.logger)
|
|
1075
|
+
this.logger.info(`WorkRequestClient endpoint set to ${this._endpoint}`);
|
|
1076
|
+
}
|
|
1077
|
+
get logger() {
|
|
1078
|
+
return common.LOG.logger;
|
|
1079
|
+
}
|
|
1080
|
+
/**
|
|
1081
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
1082
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
1083
|
+
* @param region The region of the service.
|
|
1084
|
+
*/
|
|
1085
|
+
set region(region) {
|
|
1086
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(WorkRequestClient.serviceEndpointTemplate, region, WorkRequestClient.endpointServiceName);
|
|
1087
|
+
}
|
|
1088
|
+
/**
|
|
1089
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
1090
|
+
*
|
|
1091
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
1092
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
1093
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
1094
|
+
* @param regionId The public region ID.
|
|
1095
|
+
*/
|
|
1096
|
+
set regionId(regionId) {
|
|
1097
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(WorkRequestClient.serviceEndpointTemplate, regionId, WorkRequestClient.endpointServiceName);
|
|
1098
|
+
}
|
|
1099
|
+
/**
|
|
1100
|
+
* Creates a new WorkRequestWaiter for resources for this service.
|
|
1101
|
+
*
|
|
1102
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
1103
|
+
* @return The service waiters.
|
|
1104
|
+
*/
|
|
1105
|
+
createWaiters(config) {
|
|
1106
|
+
this._waiters = new workrequest_waiter_1.WorkRequestWaiter(this, config);
|
|
1107
|
+
return this._waiters;
|
|
1108
|
+
}
|
|
1109
|
+
/**
|
|
1110
|
+
* Gets the waiters available for resources for this service.
|
|
1111
|
+
*
|
|
1112
|
+
* @return The service waiters.
|
|
1113
|
+
*/
|
|
1114
|
+
getWaiters() {
|
|
1115
|
+
if (this._waiters) {
|
|
1116
|
+
return this._waiters;
|
|
1117
|
+
}
|
|
1118
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
1119
|
+
}
|
|
1120
|
+
/**
|
|
1121
|
+
* Gets the status of the WorkRequest with the given OCID.
|
|
1122
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1123
|
+
* @param GetWorkRequestRequest
|
|
1124
|
+
* @return GetWorkRequestResponse
|
|
1125
|
+
* @throws OciError when an error occurs
|
|
1126
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.31.0/waa/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
1127
|
+
*/
|
|
1128
|
+
getWorkRequest(getWorkRequestRequest) {
|
|
1129
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1130
|
+
if (this.logger)
|
|
1131
|
+
this.logger.debug("Calling operation WorkRequestClient#getWorkRequest.");
|
|
1132
|
+
const operationName = "getWorkRequest";
|
|
1133
|
+
const apiReferenceLink = "";
|
|
1134
|
+
const pathParams = {
|
|
1135
|
+
"{workRequestId}": getWorkRequestRequest.workRequestId
|
|
1136
|
+
};
|
|
1137
|
+
const queryParams = {};
|
|
1138
|
+
let headerParams = {
|
|
1139
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1140
|
+
"opc-request-id": getWorkRequestRequest.opcRequestId
|
|
1141
|
+
};
|
|
1142
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1143
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
1144
|
+
if (this.logger)
|
|
1145
|
+
retrier.logger = this.logger;
|
|
1146
|
+
const request = yield oci_common_1.composeRequest({
|
|
1147
|
+
baseEndpoint: this._endpoint,
|
|
1148
|
+
defaultHeaders: this._defaultHeaders,
|
|
1149
|
+
path: "/workRequests/{workRequestId}",
|
|
1150
|
+
method: "GET",
|
|
1151
|
+
pathParams: pathParams,
|
|
1152
|
+
headerParams: headerParams,
|
|
1153
|
+
queryParams: queryParams
|
|
1154
|
+
});
|
|
1155
|
+
try {
|
|
1156
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1157
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1158
|
+
responseObject: {},
|
|
1159
|
+
body: yield response.json(),
|
|
1160
|
+
bodyKey: "workRequest",
|
|
1161
|
+
bodyModel: model.WorkRequest,
|
|
1162
|
+
type: "model.WorkRequest",
|
|
1163
|
+
responseHeaders: [
|
|
1164
|
+
{
|
|
1165
|
+
value: response.headers.get("opc-request-id"),
|
|
1166
|
+
key: "opcRequestId",
|
|
1167
|
+
dataType: "string"
|
|
1168
|
+
},
|
|
1169
|
+
{
|
|
1170
|
+
value: response.headers.get("retry-after"),
|
|
1171
|
+
key: "retryAfter",
|
|
1172
|
+
dataType: "number"
|
|
1173
|
+
}
|
|
1174
|
+
]
|
|
1175
|
+
});
|
|
1176
|
+
return sdkResponse;
|
|
1177
|
+
}
|
|
1178
|
+
catch (err) {
|
|
1179
|
+
throw err;
|
|
1180
|
+
}
|
|
1181
|
+
});
|
|
1182
|
+
}
|
|
1183
|
+
/**
|
|
1184
|
+
* Return a (paginated) list of errors for a given WorkRequest.
|
|
1185
|
+
*
|
|
1186
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1187
|
+
* @param ListWorkRequestErrorsRequest
|
|
1188
|
+
* @return ListWorkRequestErrorsResponse
|
|
1189
|
+
* @throws OciError when an error occurs
|
|
1190
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.31.0/waa/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
1191
|
+
*/
|
|
1192
|
+
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
1193
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1194
|
+
if (this.logger)
|
|
1195
|
+
this.logger.debug("Calling operation WorkRequestClient#listWorkRequestErrors.");
|
|
1196
|
+
const operationName = "listWorkRequestErrors";
|
|
1197
|
+
const apiReferenceLink = "";
|
|
1198
|
+
const pathParams = {
|
|
1199
|
+
"{workRequestId}": listWorkRequestErrorsRequest.workRequestId
|
|
1200
|
+
};
|
|
1201
|
+
const queryParams = {
|
|
1202
|
+
"page": listWorkRequestErrorsRequest.page,
|
|
1203
|
+
"limit": listWorkRequestErrorsRequest.limit
|
|
1204
|
+
};
|
|
1205
|
+
let headerParams = {
|
|
1206
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1207
|
+
"opc-request-id": listWorkRequestErrorsRequest.opcRequestId
|
|
1208
|
+
};
|
|
1209
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1210
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
|
|
1211
|
+
if (this.logger)
|
|
1212
|
+
retrier.logger = this.logger;
|
|
1213
|
+
const request = yield oci_common_1.composeRequest({
|
|
1214
|
+
baseEndpoint: this._endpoint,
|
|
1215
|
+
defaultHeaders: this._defaultHeaders,
|
|
1216
|
+
path: "/workRequests/{workRequestId}/errors",
|
|
1217
|
+
method: "GET",
|
|
1218
|
+
pathParams: pathParams,
|
|
1219
|
+
headerParams: headerParams,
|
|
1220
|
+
queryParams: queryParams
|
|
1221
|
+
});
|
|
1222
|
+
try {
|
|
1223
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1224
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1225
|
+
responseObject: {},
|
|
1226
|
+
body: yield response.json(),
|
|
1227
|
+
bodyKey: "workRequestErrorCollection",
|
|
1228
|
+
bodyModel: model.WorkRequestErrorCollection,
|
|
1229
|
+
type: "model.WorkRequestErrorCollection",
|
|
1230
|
+
responseHeaders: [
|
|
1231
|
+
{
|
|
1232
|
+
value: response.headers.get("opc-next-page"),
|
|
1233
|
+
key: "opcNextPage",
|
|
1234
|
+
dataType: "string"
|
|
1235
|
+
},
|
|
1236
|
+
{
|
|
1237
|
+
value: response.headers.get("opc-request-id"),
|
|
1238
|
+
key: "opcRequestId",
|
|
1239
|
+
dataType: "string"
|
|
1240
|
+
}
|
|
1241
|
+
]
|
|
1242
|
+
});
|
|
1243
|
+
return sdkResponse;
|
|
1244
|
+
}
|
|
1245
|
+
catch (err) {
|
|
1246
|
+
throw err;
|
|
1247
|
+
}
|
|
1248
|
+
});
|
|
1249
|
+
}
|
|
1250
|
+
/**
|
|
1251
|
+
* Return a (paginated) list of logs for a given WorkRequest.
|
|
1252
|
+
*
|
|
1253
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1254
|
+
* @param ListWorkRequestLogsRequest
|
|
1255
|
+
* @return ListWorkRequestLogsResponse
|
|
1256
|
+
* @throws OciError when an error occurs
|
|
1257
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.31.0/waa/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
1258
|
+
*/
|
|
1259
|
+
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
1260
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1261
|
+
if (this.logger)
|
|
1262
|
+
this.logger.debug("Calling operation WorkRequestClient#listWorkRequestLogs.");
|
|
1263
|
+
const operationName = "listWorkRequestLogs";
|
|
1264
|
+
const apiReferenceLink = "";
|
|
1265
|
+
const pathParams = {
|
|
1266
|
+
"{workRequestId}": listWorkRequestLogsRequest.workRequestId
|
|
1267
|
+
};
|
|
1268
|
+
const queryParams = {
|
|
1269
|
+
"page": listWorkRequestLogsRequest.page,
|
|
1270
|
+
"limit": listWorkRequestLogsRequest.limit
|
|
1271
|
+
};
|
|
1272
|
+
let headerParams = {
|
|
1273
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1274
|
+
"opc-request-id": listWorkRequestLogsRequest.opcRequestId
|
|
1275
|
+
};
|
|
1276
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1277
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
1278
|
+
if (this.logger)
|
|
1279
|
+
retrier.logger = this.logger;
|
|
1280
|
+
const request = yield oci_common_1.composeRequest({
|
|
1281
|
+
baseEndpoint: this._endpoint,
|
|
1282
|
+
defaultHeaders: this._defaultHeaders,
|
|
1283
|
+
path: "/workRequests/{workRequestId}/logs",
|
|
1284
|
+
method: "GET",
|
|
1285
|
+
pathParams: pathParams,
|
|
1286
|
+
headerParams: headerParams,
|
|
1287
|
+
queryParams: queryParams
|
|
1288
|
+
});
|
|
1289
|
+
try {
|
|
1290
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1291
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1292
|
+
responseObject: {},
|
|
1293
|
+
body: yield response.json(),
|
|
1294
|
+
bodyKey: "workRequestLogEntryCollection",
|
|
1295
|
+
bodyModel: model.WorkRequestLogEntryCollection,
|
|
1296
|
+
type: "model.WorkRequestLogEntryCollection",
|
|
1297
|
+
responseHeaders: [
|
|
1298
|
+
{
|
|
1299
|
+
value: response.headers.get("opc-next-page"),
|
|
1300
|
+
key: "opcNextPage",
|
|
1301
|
+
dataType: "string"
|
|
1302
|
+
},
|
|
1303
|
+
{
|
|
1304
|
+
value: response.headers.get("opc-request-id"),
|
|
1305
|
+
key: "opcRequestId",
|
|
1306
|
+
dataType: "string"
|
|
1307
|
+
}
|
|
1308
|
+
]
|
|
1309
|
+
});
|
|
1310
|
+
return sdkResponse;
|
|
1311
|
+
}
|
|
1312
|
+
catch (err) {
|
|
1313
|
+
throw err;
|
|
1314
|
+
}
|
|
1315
|
+
});
|
|
1316
|
+
}
|
|
1317
|
+
/**
|
|
1318
|
+
* Lists the WorkRequests in a compartment.
|
|
1319
|
+
*
|
|
1320
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1321
|
+
* @param ListWorkRequestsRequest
|
|
1322
|
+
* @return ListWorkRequestsResponse
|
|
1323
|
+
* @throws OciError when an error occurs
|
|
1324
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.31.0/waa/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
1325
|
+
*/
|
|
1326
|
+
listWorkRequests(listWorkRequestsRequest) {
|
|
1327
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1328
|
+
if (this.logger)
|
|
1329
|
+
this.logger.debug("Calling operation WorkRequestClient#listWorkRequests.");
|
|
1330
|
+
const operationName = "listWorkRequests";
|
|
1331
|
+
const apiReferenceLink = "";
|
|
1332
|
+
const pathParams = {};
|
|
1333
|
+
const queryParams = {
|
|
1334
|
+
"compartmentId": listWorkRequestsRequest.compartmentId,
|
|
1335
|
+
"workRequestId": listWorkRequestsRequest.workRequestId,
|
|
1336
|
+
"page": listWorkRequestsRequest.page,
|
|
1337
|
+
"limit": listWorkRequestsRequest.limit
|
|
1338
|
+
};
|
|
1339
|
+
let headerParams = {
|
|
1340
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1341
|
+
"opc-request-id": listWorkRequestsRequest.opcRequestId
|
|
1342
|
+
};
|
|
1343
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1344
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
1345
|
+
if (this.logger)
|
|
1346
|
+
retrier.logger = this.logger;
|
|
1347
|
+
const request = yield oci_common_1.composeRequest({
|
|
1348
|
+
baseEndpoint: this._endpoint,
|
|
1349
|
+
defaultHeaders: this._defaultHeaders,
|
|
1350
|
+
path: "/workRequests",
|
|
1351
|
+
method: "GET",
|
|
1352
|
+
pathParams: pathParams,
|
|
1353
|
+
headerParams: headerParams,
|
|
1354
|
+
queryParams: queryParams
|
|
1355
|
+
});
|
|
1356
|
+
try {
|
|
1357
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1358
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1359
|
+
responseObject: {},
|
|
1360
|
+
body: yield response.json(),
|
|
1361
|
+
bodyKey: "workRequestCollection",
|
|
1362
|
+
bodyModel: model.WorkRequestCollection,
|
|
1363
|
+
type: "model.WorkRequestCollection",
|
|
1364
|
+
responseHeaders: [
|
|
1365
|
+
{
|
|
1366
|
+
value: response.headers.get("opc-request-id"),
|
|
1367
|
+
key: "opcRequestId",
|
|
1368
|
+
dataType: "string"
|
|
1369
|
+
},
|
|
1370
|
+
{
|
|
1371
|
+
value: response.headers.get("opc-next-page"),
|
|
1372
|
+
key: "opcNextPage",
|
|
1373
|
+
dataType: "string"
|
|
1374
|
+
}
|
|
1375
|
+
]
|
|
1376
|
+
});
|
|
1377
|
+
return sdkResponse;
|
|
1378
|
+
}
|
|
1379
|
+
catch (err) {
|
|
1380
|
+
throw err;
|
|
1381
|
+
}
|
|
1382
|
+
});
|
|
1383
|
+
}
|
|
1384
|
+
}
|
|
1385
|
+
exports.WorkRequestClient = WorkRequestClient;
|
|
1386
|
+
WorkRequestClient.serviceEndpointTemplate = "https://waa.{region}.oci.{secondLevelDomain}";
|
|
1387
|
+
WorkRequestClient.endpointServiceName = "";
|
|
1388
|
+
//# sourceMappingURL=client.js.map
|