oci-psa 2.121.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +89 -0
- package/NOTICE.txt +1 -0
- package/README.md +22 -0
- package/THIRD_PARTY_LICENSES.txt +576 -0
- package/index.d.ts +22 -0
- package/index.js +45 -0
- package/index.js.map +1 -0
- package/lib/client.d.ts +216 -0
- package/lib/client.js +1017 -0
- package/lib/client.js.map +1 -0
- package/lib/model/action-type.d.ts +32 -0
- package/lib/model/action-type.js +43 -0
- package/lib/model/action-type.js.map +1 -0
- package/lib/model/change-private-service-access-compartment-details.d.ts +27 -0
- package/lib/model/change-private-service-access-compartment-details.js +29 -0
- package/lib/model/change-private-service-access-compartment-details.js.map +1 -0
- package/lib/model/create-private-service-access-details.d.ts +98 -0
- package/lib/model/create-private-service-access-details.js +29 -0
- package/lib/model/create-private-service-access-details.js.map +1 -0
- package/lib/model/index.d.ts +54 -0
- package/lib/model/index.js +77 -0
- package/lib/model/index.js.map +1 -0
- package/lib/model/operation-status.d.ts +34 -0
- package/lib/model/operation-status.js +45 -0
- package/lib/model/operation-status.js.map +1 -0
- package/lib/model/operation-type.d.ts +30 -0
- package/lib/model/operation-type.js +41 -0
- package/lib/model/operation-type.js.map +1 -0
- package/lib/model/private-service-access-collection.d.ts +26 -0
- package/lib/model/private-service-access-collection.js +61 -0
- package/lib/model/private-service-access-collection.js.map +1 -0
- package/lib/model/private-service-access-summary.d.ts +151 -0
- package/lib/model/private-service-access-summary.js +29 -0
- package/lib/model/private-service-access-summary.js.map +1 -0
- package/lib/model/private-service-access.d.ts +164 -0
- package/lib/model/private-service-access.js +43 -0
- package/lib/model/private-service-access.js.map +1 -0
- package/lib/model/psa-service-collection.d.ts +26 -0
- package/lib/model/psa-service-collection.js +61 -0
- package/lib/model/psa-service-collection.js.map +1 -0
- package/lib/model/psa-service-summary.d.ts +52 -0
- package/lib/model/psa-service-summary.js +29 -0
- package/lib/model/psa-service-summary.js.map +1 -0
- package/lib/model/sort-order.d.ts +30 -0
- package/lib/model/sort-order.js +41 -0
- package/lib/model/sort-order.js.map +1 -0
- package/lib/model/update-private-service-access-details.d.ts +74 -0
- package/lib/model/update-private-service-access-details.js +29 -0
- package/lib/model/update-private-service-access-details.js.map +1 -0
- package/lib/model/work-request-error-collection.d.ts +26 -0
- package/lib/model/work-request-error-collection.js +61 -0
- package/lib/model/work-request-error-collection.js.map +1 -0
- package/lib/model/work-request-error.d.ts +37 -0
- package/lib/model/work-request-error.js +29 -0
- package/lib/model/work-request-error.js.map +1 -0
- package/lib/model/work-request-log-entry-collection.d.ts +26 -0
- package/lib/model/work-request-log-entry-collection.js +61 -0
- package/lib/model/work-request-log-entry-collection.js.map +1 -0
- package/lib/model/work-request-log-entry.d.ts +31 -0
- package/lib/model/work-request-log-entry.js +29 -0
- package/lib/model/work-request-log-entry.js.map +1 -0
- package/lib/model/work-request-resource-metadata-key.d.ts +27 -0
- package/lib/model/work-request-resource-metadata-key.js +38 -0
- package/lib/model/work-request-resource-metadata-key.js.map +1 -0
- package/lib/model/work-request-resource.d.ts +48 -0
- package/lib/model/work-request-resource.js +29 -0
- package/lib/model/work-request-resource.js.map +1 -0
- package/lib/model/work-request-summary-collection.d.ts +26 -0
- package/lib/model/work-request-summary-collection.js +61 -0
- package/lib/model/work-request-summary-collection.js.map +1 -0
- package/lib/model/work-request-summary.d.ts +73 -0
- package/lib/model/work-request-summary.js +61 -0
- package/lib/model/work-request-summary.js.map +1 -0
- package/lib/model/work-request.d.ts +76 -0
- package/lib/model/work-request.js +61 -0
- package/lib/model/work-request.js.map +1 -0
- package/lib/privateserviceaccess-waiter.d.ts +29 -0
- package/lib/privateserviceaccess-waiter.js +65 -0
- package/lib/privateserviceaccess-waiter.js.map +1 -0
- package/lib/request/cancel-psa-work-request-request.d.ts +38 -0
- package/lib/request/cancel-psa-work-request-request.js +15 -0
- package/lib/request/cancel-psa-work-request-request.js.map +1 -0
- package/lib/request/change-private-service-access-compartment-request.d.ts +52 -0
- package/lib/request/change-private-service-access-compartment-request.js +15 -0
- package/lib/request/change-private-service-access-compartment-request.js.map +1 -0
- package/lib/request/create-private-service-access-request.d.ts +40 -0
- package/lib/request/create-private-service-access-request.js +15 -0
- package/lib/request/create-private-service-access-request.js.map +1 -0
- package/lib/request/delete-private-service-access-request.d.ts +38 -0
- package/lib/request/delete-private-service-access-request.js +15 -0
- package/lib/request/delete-private-service-access-request.js.map +1 -0
- package/lib/request/get-private-service-access-request.d.ts +30 -0
- package/lib/request/get-private-service-access-request.js +15 -0
- package/lib/request/get-private-service-access-request.js.map +1 -0
- package/lib/request/get-psa-work-request-request.d.ts +30 -0
- package/lib/request/get-psa-work-request-request.js +15 -0
- package/lib/request/get-psa-work-request-request.js.map +1 -0
- package/lib/request/index.d.ts +36 -0
- package/lib/request/index.js +45 -0
- package/lib/request/index.js.map +1 -0
- package/lib/request/list-private-service-accesses-request.d.ts +83 -0
- package/lib/request/list-private-service-accesses-request.js +24 -0
- package/lib/request/list-private-service-accesses-request.js.map +1 -0
- package/lib/request/list-psa-services-request.d.ts +63 -0
- package/lib/request/list-psa-services-request.js +23 -0
- package/lib/request/list-psa-services-request.js.map +1 -0
- package/lib/request/list-psa-work-request-errors-request.d.ts +59 -0
- package/lib/request/list-psa-work-request-errors-request.js +23 -0
- package/lib/request/list-psa-work-request-errors-request.js.map +1 -0
- package/lib/request/list-psa-work-request-logs-request.d.ts +59 -0
- package/lib/request/list-psa-work-request-logs-request.js +23 -0
- package/lib/request/list-psa-work-request-logs-request.js.map +1 -0
- package/lib/request/list-psa-work-requests-request.d.ts +71 -0
- package/lib/request/list-psa-work-requests-request.js +23 -0
- package/lib/request/list-psa-work-requests-request.js.map +1 -0
- package/lib/request/update-private-service-access-request.d.ts +43 -0
- package/lib/request/update-private-service-access-request.js +15 -0
- package/lib/request/update-private-service-access-request.js.map +1 -0
- package/lib/response/cancel-psa-work-request-response.d.ts +20 -0
- package/lib/response/cancel-psa-work-request-response.js +15 -0
- package/lib/response/cancel-psa-work-request-response.js.map +1 -0
- package/lib/response/change-private-service-access-compartment-response.d.ts +26 -0
- package/lib/response/change-private-service-access-compartment-response.js +15 -0
- package/lib/response/change-private-service-access-compartment-response.js.map +1 -0
- package/lib/response/create-private-service-access-response.d.ts +44 -0
- package/lib/response/create-private-service-access-response.js +15 -0
- package/lib/response/create-private-service-access-response.js.map +1 -0
- package/lib/response/delete-private-service-access-response.d.ts +26 -0
- package/lib/response/delete-private-service-access-response.js +15 -0
- package/lib/response/delete-private-service-access-response.js.map +1 -0
- package/lib/response/get-private-service-access-response.d.ts +30 -0
- package/lib/response/get-private-service-access-response.js +15 -0
- package/lib/response/get-private-service-access-response.js.map +1 -0
- package/lib/response/get-psa-work-request-response.d.ts +34 -0
- package/lib/response/get-psa-work-request-response.js +15 -0
- package/lib/response/get-psa-work-request-response.js.map +1 -0
- package/lib/response/index.d.ts +36 -0
- package/lib/response/index.js +15 -0
- package/lib/response/index.js.map +1 -0
- package/lib/response/list-private-service-accesses-response.d.ts +31 -0
- package/lib/response/list-private-service-accesses-response.js +15 -0
- package/lib/response/list-private-service-accesses-response.js.map +1 -0
- package/lib/response/list-psa-services-response.d.ts +31 -0
- package/lib/response/list-psa-services-response.js +15 -0
- package/lib/response/list-psa-services-response.js.map +1 -0
- package/lib/response/list-psa-work-request-errors-response.d.ts +31 -0
- package/lib/response/list-psa-work-request-errors-response.js +15 -0
- package/lib/response/list-psa-work-request-errors-response.js.map +1 -0
- package/lib/response/list-psa-work-request-logs-response.d.ts +31 -0
- package/lib/response/list-psa-work-request-logs-response.js +15 -0
- package/lib/response/list-psa-work-request-logs-response.js.map +1 -0
- package/lib/response/list-psa-work-requests-response.d.ts +31 -0
- package/lib/response/list-psa-work-requests-response.js +15 -0
- package/lib/response/list-psa-work-requests-response.js.map +1 -0
- package/lib/response/update-private-service-access-response.d.ts +26 -0
- package/lib/response/update-private-service-access-response.js +15 -0
- package/lib/response/update-private-service-access-response.js.map +1 -0
- package/package.json +29 -0
package/lib/client.js
ADDED
|
@@ -0,0 +1,1017 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* PrivateServiceAccess Control Plane API
|
|
4
|
+
* Use the PrivateServiceAccess Control Plane API to manage privateServiceAccess.
|
|
5
|
+
* OpenAPI spec version: 20240301
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
|
|
12
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
13
|
+
*/
|
|
14
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17
|
+
}) : (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
o[k2] = m[k];
|
|
20
|
+
}));
|
|
21
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
22
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
23
|
+
}) : function(o, v) {
|
|
24
|
+
o["default"] = v;
|
|
25
|
+
});
|
|
26
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
27
|
+
if (mod && mod.__esModule) return mod;
|
|
28
|
+
var result = {};
|
|
29
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
30
|
+
__setModuleDefault(result, mod);
|
|
31
|
+
return result;
|
|
32
|
+
};
|
|
33
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
34
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
35
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
36
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
37
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
38
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
39
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
+
exports.PrivateServiceAccessClient = exports.PrivateServiceAccessApiKeys = void 0;
|
|
44
|
+
const common = require("oci-common");
|
|
45
|
+
const model = __importStar(require("./model"));
|
|
46
|
+
const privateserviceaccess_waiter_1 = require("./privateserviceaccess-waiter");
|
|
47
|
+
const oci_common_1 = require("oci-common");
|
|
48
|
+
const Breaker = require("opossum");
|
|
49
|
+
// ===============================================
|
|
50
|
+
// This file is autogenerated - Please do not edit
|
|
51
|
+
// ===============================================
|
|
52
|
+
var PrivateServiceAccessApiKeys;
|
|
53
|
+
(function (PrivateServiceAccessApiKeys) {
|
|
54
|
+
})(PrivateServiceAccessApiKeys = exports.PrivateServiceAccessApiKeys || (exports.PrivateServiceAccessApiKeys = {}));
|
|
55
|
+
/**
|
|
56
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
57
|
+
*/
|
|
58
|
+
class PrivateServiceAccessClient {
|
|
59
|
+
constructor(params, clientConfiguration) {
|
|
60
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
61
|
+
this["_endpoint"] = "";
|
|
62
|
+
this["_defaultHeaders"] = {};
|
|
63
|
+
this._circuitBreaker = null;
|
|
64
|
+
this._httpOptions = undefined;
|
|
65
|
+
this._bodyDuplexMode = undefined;
|
|
66
|
+
this.targetService = "PrivateServiceAccess";
|
|
67
|
+
this._regionId = "";
|
|
68
|
+
this._lastSetRegionOrRegionId = "";
|
|
69
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
70
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
71
|
+
: null;
|
|
72
|
+
this._authProvider = params.authenticationDetailsProvider;
|
|
73
|
+
if (clientConfiguration) {
|
|
74
|
+
this._clientConfiguration = clientConfiguration;
|
|
75
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
76
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
77
|
+
: null;
|
|
78
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
79
|
+
? clientConfiguration.httpOptions
|
|
80
|
+
: undefined;
|
|
81
|
+
this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
|
|
82
|
+
? clientConfiguration.bodyDuplexMode
|
|
83
|
+
: undefined;
|
|
84
|
+
}
|
|
85
|
+
if (!oci_common_1.developerToolConfiguration.isServiceEnabled("psa")) {
|
|
86
|
+
let errmsg = "The developerToolConfiguration configuration disabled this service, this behavior is controlled by developerToolConfiguration.ociEnabledServiceSet variable. Please check if your local developer_tool_configuration file has configured the service you're targeting or contact the cloud provider on the availability of this service : ";
|
|
87
|
+
throw errmsg.concat("psa");
|
|
88
|
+
}
|
|
89
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
90
|
+
const specCircuitBreakerEnabled = true;
|
|
91
|
+
if (!this._circuitBreaker &&
|
|
92
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
93
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
94
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
95
|
+
}
|
|
96
|
+
this._httpClient =
|
|
97
|
+
params.httpClient ||
|
|
98
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
|
|
99
|
+
if (params.authenticationDetailsProvider &&
|
|
100
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
101
|
+
const provider = params.authenticationDetailsProvider;
|
|
102
|
+
if (provider.getRegion()) {
|
|
103
|
+
this.region = provider.getRegion();
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
109
|
+
*/
|
|
110
|
+
get endpoint() {
|
|
111
|
+
return this._endpoint;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
115
|
+
* @param endpoint The endpoint of the service.
|
|
116
|
+
*/
|
|
117
|
+
set endpoint(endpoint) {
|
|
118
|
+
this._endpoint = endpoint;
|
|
119
|
+
this._endpoint = this._endpoint + "/20240301";
|
|
120
|
+
if (this.logger)
|
|
121
|
+
this.logger.info(`PrivateServiceAccessClient endpoint set to ${this._endpoint}`);
|
|
122
|
+
}
|
|
123
|
+
get logger() {
|
|
124
|
+
return common.LOG.logger;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
128
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
129
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
130
|
+
*/
|
|
131
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
132
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
133
|
+
if (this.logger)
|
|
134
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
135
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
136
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(PrivateServiceAccessClient.serviceEndpointTemplate, this._region, PrivateServiceAccessClient.endpointServiceName);
|
|
137
|
+
}
|
|
138
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
139
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(PrivateServiceAccessClient.serviceEndpointTemplate, this._regionId, PrivateServiceAccessClient.endpointServiceName);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
144
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
145
|
+
* @param region The region of the service.
|
|
146
|
+
*/
|
|
147
|
+
set region(region) {
|
|
148
|
+
this._region = region;
|
|
149
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(PrivateServiceAccessClient.serviceEndpointTemplate, region, PrivateServiceAccessClient.endpointServiceName);
|
|
150
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
154
|
+
*
|
|
155
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
156
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
157
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
158
|
+
* @param regionId The public region ID.
|
|
159
|
+
*/
|
|
160
|
+
set regionId(regionId) {
|
|
161
|
+
this._regionId = regionId;
|
|
162
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(PrivateServiceAccessClient.serviceEndpointTemplate, regionId, PrivateServiceAccessClient.endpointServiceName);
|
|
163
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Creates a new PrivateServiceAccessWaiter for resources for this service.
|
|
167
|
+
*
|
|
168
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
169
|
+
* @return The service waiters.
|
|
170
|
+
*/
|
|
171
|
+
createWaiters(config) {
|
|
172
|
+
this._waiters = new privateserviceaccess_waiter_1.PrivateServiceAccessWaiter(this, config);
|
|
173
|
+
return this._waiters;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Gets the waiters available for resources for this service.
|
|
177
|
+
*
|
|
178
|
+
* @return The service waiters.
|
|
179
|
+
*/
|
|
180
|
+
getWaiters() {
|
|
181
|
+
if (this._waiters) {
|
|
182
|
+
return this._waiters;
|
|
183
|
+
}
|
|
184
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
188
|
+
*/
|
|
189
|
+
shutdownCircuitBreaker() {
|
|
190
|
+
if (this._circuitBreaker) {
|
|
191
|
+
this._circuitBreaker.shutdown();
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Close the provider if possible which in turn shuts down any associated circuit breaker
|
|
196
|
+
*/
|
|
197
|
+
closeProvider() {
|
|
198
|
+
if (this._authProvider) {
|
|
199
|
+
if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
|
|
200
|
+
(this._authProvider).closeProvider();
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Close the client once it is no longer needed
|
|
205
|
+
*/
|
|
206
|
+
close() {
|
|
207
|
+
this.shutdownCircuitBreaker();
|
|
208
|
+
this.closeProvider();
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Cancels a PrivateServiceAccess work request.
|
|
212
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
213
|
+
* @param CancelPsaWorkRequestRequest
|
|
214
|
+
* @return CancelPsaWorkRequestResponse
|
|
215
|
+
* @throws OciError when an error occurs
|
|
216
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/psa/CancelPsaWorkRequest.ts.html |here} to see how to use CancelPsaWorkRequest API.
|
|
217
|
+
*/
|
|
218
|
+
cancelPsaWorkRequest(cancelPsaWorkRequestRequest) {
|
|
219
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
220
|
+
if (this.logger)
|
|
221
|
+
this.logger.debug("Calling operation PrivateServiceAccessClient#cancelPsaWorkRequest.");
|
|
222
|
+
const operationName = "cancelPsaWorkRequest";
|
|
223
|
+
const apiReferenceLink = "";
|
|
224
|
+
const pathParams = {
|
|
225
|
+
"{workRequestId}": cancelPsaWorkRequestRequest.workRequestId
|
|
226
|
+
};
|
|
227
|
+
const queryParams = {};
|
|
228
|
+
let headerParams = {
|
|
229
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
230
|
+
"if-match": cancelPsaWorkRequestRequest.ifMatch,
|
|
231
|
+
"opc-request-id": cancelPsaWorkRequestRequest.opcRequestId
|
|
232
|
+
};
|
|
233
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
234
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelPsaWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
235
|
+
if (this.logger)
|
|
236
|
+
retrier.logger = this.logger;
|
|
237
|
+
const request = yield oci_common_1.composeRequest({
|
|
238
|
+
baseEndpoint: this._endpoint,
|
|
239
|
+
defaultHeaders: this._defaultHeaders,
|
|
240
|
+
path: "/psaWorkRequests/{workRequestId}",
|
|
241
|
+
method: "DELETE",
|
|
242
|
+
pathParams: pathParams,
|
|
243
|
+
headerParams: headerParams,
|
|
244
|
+
queryParams: queryParams
|
|
245
|
+
});
|
|
246
|
+
try {
|
|
247
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
248
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
249
|
+
responseObject: {},
|
|
250
|
+
responseHeaders: [
|
|
251
|
+
{
|
|
252
|
+
value: response.headers.get("opc-request-id"),
|
|
253
|
+
key: "opcRequestId",
|
|
254
|
+
dataType: "string"
|
|
255
|
+
}
|
|
256
|
+
]
|
|
257
|
+
});
|
|
258
|
+
return sdkResponse;
|
|
259
|
+
}
|
|
260
|
+
catch (err) {
|
|
261
|
+
throw err;
|
|
262
|
+
}
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* Moves a PrivateServiceAccess into a different compartment within the same tenancy. For information about moving resources between
|
|
267
|
+
* compartments, see [Moving Resources to a Different Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
|
|
268
|
+
*
|
|
269
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
270
|
+
* @param ChangePrivateServiceAccessCompartmentRequest
|
|
271
|
+
* @return ChangePrivateServiceAccessCompartmentResponse
|
|
272
|
+
* @throws OciError when an error occurs
|
|
273
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/psa/ChangePrivateServiceAccessCompartment.ts.html |here} to see how to use ChangePrivateServiceAccessCompartment API.
|
|
274
|
+
*/
|
|
275
|
+
changePrivateServiceAccessCompartment(changePrivateServiceAccessCompartmentRequest) {
|
|
276
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
277
|
+
if (this.logger)
|
|
278
|
+
this.logger.debug("Calling operation PrivateServiceAccessClient#changePrivateServiceAccessCompartment.");
|
|
279
|
+
const operationName = "changePrivateServiceAccessCompartment";
|
|
280
|
+
const apiReferenceLink = "";
|
|
281
|
+
const pathParams = {
|
|
282
|
+
"{privateServiceAccessId}": changePrivateServiceAccessCompartmentRequest.privateServiceAccessId
|
|
283
|
+
};
|
|
284
|
+
const queryParams = {};
|
|
285
|
+
let headerParams = {
|
|
286
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
287
|
+
"if-match": changePrivateServiceAccessCompartmentRequest.ifMatch,
|
|
288
|
+
"opc-request-id": changePrivateServiceAccessCompartmentRequest.opcRequestId,
|
|
289
|
+
"opc-retry-token": changePrivateServiceAccessCompartmentRequest.opcRetryToken
|
|
290
|
+
};
|
|
291
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
292
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changePrivateServiceAccessCompartmentRequest.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: "/privateServiceAccess/{privateServiceAccessId}/actions/changeCompartment",
|
|
299
|
+
method: "POST",
|
|
300
|
+
bodyContent: common.ObjectSerializer.serialize(changePrivateServiceAccessCompartmentRequest.changePrivateServiceAccessCompartmentDetails, "ChangePrivateServiceAccessCompartmentDetails", model.ChangePrivateServiceAccessCompartmentDetails.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
|
+
* Creates a private service access in the specified subnet (in the consumer's VCN) and the specified
|
|
331
|
+
* compartment for a particular service.
|
|
332
|
+
*
|
|
333
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
334
|
+
* @param CreatePrivateServiceAccessRequest
|
|
335
|
+
* @return CreatePrivateServiceAccessResponse
|
|
336
|
+
* @throws OciError when an error occurs
|
|
337
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/psa/CreatePrivateServiceAccess.ts.html |here} to see how to use CreatePrivateServiceAccess API.
|
|
338
|
+
*/
|
|
339
|
+
createPrivateServiceAccess(createPrivateServiceAccessRequest) {
|
|
340
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
341
|
+
if (this.logger)
|
|
342
|
+
this.logger.debug("Calling operation PrivateServiceAccessClient#createPrivateServiceAccess.");
|
|
343
|
+
const operationName = "createPrivateServiceAccess";
|
|
344
|
+
const apiReferenceLink = "";
|
|
345
|
+
const pathParams = {};
|
|
346
|
+
const queryParams = {};
|
|
347
|
+
let headerParams = {
|
|
348
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
349
|
+
"opc-retry-token": createPrivateServiceAccessRequest.opcRetryToken,
|
|
350
|
+
"opc-request-id": createPrivateServiceAccessRequest.opcRequestId
|
|
351
|
+
};
|
|
352
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
353
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createPrivateServiceAccessRequest.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: "/privateServiceAccess",
|
|
360
|
+
method: "POST",
|
|
361
|
+
bodyContent: common.ObjectSerializer.serialize(createPrivateServiceAccessRequest.createPrivateServiceAccessDetails, "CreatePrivateServiceAccessDetails", model.CreatePrivateServiceAccessDetails.getJsonObj),
|
|
362
|
+
pathParams: pathParams,
|
|
363
|
+
headerParams: headerParams,
|
|
364
|
+
queryParams: queryParams
|
|
365
|
+
});
|
|
366
|
+
try {
|
|
367
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
368
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
369
|
+
responseObject: {},
|
|
370
|
+
body: yield response.json(),
|
|
371
|
+
bodyKey: "privateServiceAccess",
|
|
372
|
+
bodyModel: model.PrivateServiceAccess,
|
|
373
|
+
type: "model.PrivateServiceAccess",
|
|
374
|
+
responseHeaders: [
|
|
375
|
+
{
|
|
376
|
+
value: response.headers.get("location"),
|
|
377
|
+
key: "location",
|
|
378
|
+
dataType: "string"
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
value: response.headers.get("content-location"),
|
|
382
|
+
key: "contentLocation",
|
|
383
|
+
dataType: "string"
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
value: response.headers.get("etag"),
|
|
387
|
+
key: "etag",
|
|
388
|
+
dataType: "string"
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
value: response.headers.get("opc-work-request-id"),
|
|
392
|
+
key: "opcWorkRequestId",
|
|
393
|
+
dataType: "string"
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
value: response.headers.get("opc-request-id"),
|
|
397
|
+
key: "opcRequestId",
|
|
398
|
+
dataType: "string"
|
|
399
|
+
}
|
|
400
|
+
]
|
|
401
|
+
});
|
|
402
|
+
return sdkResponse;
|
|
403
|
+
}
|
|
404
|
+
catch (err) {
|
|
405
|
+
throw err;
|
|
406
|
+
}
|
|
407
|
+
});
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* Deletes a PrivateServiceAccess.
|
|
411
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
412
|
+
* @param DeletePrivateServiceAccessRequest
|
|
413
|
+
* @return DeletePrivateServiceAccessResponse
|
|
414
|
+
* @throws OciError when an error occurs
|
|
415
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/psa/DeletePrivateServiceAccess.ts.html |here} to see how to use DeletePrivateServiceAccess API.
|
|
416
|
+
*/
|
|
417
|
+
deletePrivateServiceAccess(deletePrivateServiceAccessRequest) {
|
|
418
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
419
|
+
if (this.logger)
|
|
420
|
+
this.logger.debug("Calling operation PrivateServiceAccessClient#deletePrivateServiceAccess.");
|
|
421
|
+
const operationName = "deletePrivateServiceAccess";
|
|
422
|
+
const apiReferenceLink = "";
|
|
423
|
+
const pathParams = {
|
|
424
|
+
"{privateServiceAccessId}": deletePrivateServiceAccessRequest.privateServiceAccessId
|
|
425
|
+
};
|
|
426
|
+
const queryParams = {};
|
|
427
|
+
let headerParams = {
|
|
428
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
429
|
+
"if-match": deletePrivateServiceAccessRequest.ifMatch,
|
|
430
|
+
"opc-request-id": deletePrivateServiceAccessRequest.opcRequestId
|
|
431
|
+
};
|
|
432
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
433
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deletePrivateServiceAccessRequest.retryConfiguration, specRetryConfiguration);
|
|
434
|
+
if (this.logger)
|
|
435
|
+
retrier.logger = this.logger;
|
|
436
|
+
const request = yield oci_common_1.composeRequest({
|
|
437
|
+
baseEndpoint: this._endpoint,
|
|
438
|
+
defaultHeaders: this._defaultHeaders,
|
|
439
|
+
path: "/privateServiceAccess/{privateServiceAccessId}",
|
|
440
|
+
method: "DELETE",
|
|
441
|
+
pathParams: pathParams,
|
|
442
|
+
headerParams: headerParams,
|
|
443
|
+
queryParams: queryParams
|
|
444
|
+
});
|
|
445
|
+
try {
|
|
446
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
447
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
448
|
+
responseObject: {},
|
|
449
|
+
responseHeaders: [
|
|
450
|
+
{
|
|
451
|
+
value: response.headers.get("opc-work-request-id"),
|
|
452
|
+
key: "opcWorkRequestId",
|
|
453
|
+
dataType: "string"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
value: response.headers.get("opc-request-id"),
|
|
457
|
+
key: "opcRequestId",
|
|
458
|
+
dataType: "string"
|
|
459
|
+
}
|
|
460
|
+
]
|
|
461
|
+
});
|
|
462
|
+
return sdkResponse;
|
|
463
|
+
}
|
|
464
|
+
catch (err) {
|
|
465
|
+
throw err;
|
|
466
|
+
}
|
|
467
|
+
});
|
|
468
|
+
}
|
|
469
|
+
/**
|
|
470
|
+
* Gets information about a PrivateServiceAccess.
|
|
471
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
472
|
+
* @param GetPrivateServiceAccessRequest
|
|
473
|
+
* @return GetPrivateServiceAccessResponse
|
|
474
|
+
* @throws OciError when an error occurs
|
|
475
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/psa/GetPrivateServiceAccess.ts.html |here} to see how to use GetPrivateServiceAccess API.
|
|
476
|
+
*/
|
|
477
|
+
getPrivateServiceAccess(getPrivateServiceAccessRequest) {
|
|
478
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
479
|
+
if (this.logger)
|
|
480
|
+
this.logger.debug("Calling operation PrivateServiceAccessClient#getPrivateServiceAccess.");
|
|
481
|
+
const operationName = "getPrivateServiceAccess";
|
|
482
|
+
const apiReferenceLink = "";
|
|
483
|
+
const pathParams = {
|
|
484
|
+
"{privateServiceAccessId}": getPrivateServiceAccessRequest.privateServiceAccessId
|
|
485
|
+
};
|
|
486
|
+
const queryParams = {};
|
|
487
|
+
let headerParams = {
|
|
488
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
489
|
+
"opc-request-id": getPrivateServiceAccessRequest.opcRequestId
|
|
490
|
+
};
|
|
491
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
492
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getPrivateServiceAccessRequest.retryConfiguration, specRetryConfiguration);
|
|
493
|
+
if (this.logger)
|
|
494
|
+
retrier.logger = this.logger;
|
|
495
|
+
const request = yield oci_common_1.composeRequest({
|
|
496
|
+
baseEndpoint: this._endpoint,
|
|
497
|
+
defaultHeaders: this._defaultHeaders,
|
|
498
|
+
path: "/privateServiceAccess/{privateServiceAccessId}",
|
|
499
|
+
method: "GET",
|
|
500
|
+
pathParams: pathParams,
|
|
501
|
+
headerParams: headerParams,
|
|
502
|
+
queryParams: queryParams
|
|
503
|
+
});
|
|
504
|
+
try {
|
|
505
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
506
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
507
|
+
responseObject: {},
|
|
508
|
+
body: yield response.json(),
|
|
509
|
+
bodyKey: "privateServiceAccess",
|
|
510
|
+
bodyModel: model.PrivateServiceAccess,
|
|
511
|
+
type: "model.PrivateServiceAccess",
|
|
512
|
+
responseHeaders: [
|
|
513
|
+
{
|
|
514
|
+
value: response.headers.get("etag"),
|
|
515
|
+
key: "etag",
|
|
516
|
+
dataType: "string"
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
value: response.headers.get("opc-request-id"),
|
|
520
|
+
key: "opcRequestId",
|
|
521
|
+
dataType: "string"
|
|
522
|
+
}
|
|
523
|
+
]
|
|
524
|
+
});
|
|
525
|
+
return sdkResponse;
|
|
526
|
+
}
|
|
527
|
+
catch (err) {
|
|
528
|
+
throw err;
|
|
529
|
+
}
|
|
530
|
+
});
|
|
531
|
+
}
|
|
532
|
+
/**
|
|
533
|
+
* Gets the details of a PrivateServiceAccess work request.
|
|
534
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
535
|
+
* @param GetPsaWorkRequestRequest
|
|
536
|
+
* @return GetPsaWorkRequestResponse
|
|
537
|
+
* @throws OciError when an error occurs
|
|
538
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/psa/GetPsaWorkRequest.ts.html |here} to see how to use GetPsaWorkRequest API.
|
|
539
|
+
*/
|
|
540
|
+
getPsaWorkRequest(getPsaWorkRequestRequest) {
|
|
541
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
542
|
+
if (this.logger)
|
|
543
|
+
this.logger.debug("Calling operation PrivateServiceAccessClient#getPsaWorkRequest.");
|
|
544
|
+
const operationName = "getPsaWorkRequest";
|
|
545
|
+
const apiReferenceLink = "";
|
|
546
|
+
const pathParams = {
|
|
547
|
+
"{workRequestId}": getPsaWorkRequestRequest.workRequestId
|
|
548
|
+
};
|
|
549
|
+
const queryParams = {};
|
|
550
|
+
let headerParams = {
|
|
551
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
552
|
+
"opc-request-id": getPsaWorkRequestRequest.opcRequestId
|
|
553
|
+
};
|
|
554
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
555
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getPsaWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
556
|
+
if (this.logger)
|
|
557
|
+
retrier.logger = this.logger;
|
|
558
|
+
const request = yield oci_common_1.composeRequest({
|
|
559
|
+
baseEndpoint: this._endpoint,
|
|
560
|
+
defaultHeaders: this._defaultHeaders,
|
|
561
|
+
path: "/psaWorkRequests/{workRequestId}",
|
|
562
|
+
method: "GET",
|
|
563
|
+
pathParams: pathParams,
|
|
564
|
+
headerParams: headerParams,
|
|
565
|
+
queryParams: queryParams
|
|
566
|
+
});
|
|
567
|
+
try {
|
|
568
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
569
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
570
|
+
responseObject: {},
|
|
571
|
+
body: yield response.json(),
|
|
572
|
+
bodyKey: "workRequest",
|
|
573
|
+
bodyModel: model.WorkRequest,
|
|
574
|
+
type: "model.WorkRequest",
|
|
575
|
+
responseHeaders: [
|
|
576
|
+
{
|
|
577
|
+
value: response.headers.get("etag"),
|
|
578
|
+
key: "etag",
|
|
579
|
+
dataType: "string"
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
value: response.headers.get("opc-request-id"),
|
|
583
|
+
key: "opcRequestId",
|
|
584
|
+
dataType: "string"
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
value: response.headers.get("retry-after"),
|
|
588
|
+
key: "retryAfter",
|
|
589
|
+
dataType: "number"
|
|
590
|
+
}
|
|
591
|
+
]
|
|
592
|
+
});
|
|
593
|
+
return sdkResponse;
|
|
594
|
+
}
|
|
595
|
+
catch (err) {
|
|
596
|
+
throw err;
|
|
597
|
+
}
|
|
598
|
+
});
|
|
599
|
+
}
|
|
600
|
+
/**
|
|
601
|
+
* List the private service accesses in the specified compartment. You can optionally filter the list by
|
|
602
|
+
* specifying the [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a subnet in the cunsumer's VCN.
|
|
603
|
+
*
|
|
604
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
605
|
+
* @param ListPrivateServiceAccessesRequest
|
|
606
|
+
* @return ListPrivateServiceAccessesResponse
|
|
607
|
+
* @throws OciError when an error occurs
|
|
608
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/psa/ListPrivateServiceAccesses.ts.html |here} to see how to use ListPrivateServiceAccesses API.
|
|
609
|
+
*/
|
|
610
|
+
listPrivateServiceAccesses(listPrivateServiceAccessesRequest) {
|
|
611
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
612
|
+
if (this.logger)
|
|
613
|
+
this.logger.debug("Calling operation PrivateServiceAccessClient#listPrivateServiceAccesses.");
|
|
614
|
+
const operationName = "listPrivateServiceAccesses";
|
|
615
|
+
const apiReferenceLink = "";
|
|
616
|
+
const pathParams = {};
|
|
617
|
+
const queryParams = {
|
|
618
|
+
"compartmentId": listPrivateServiceAccessesRequest.compartmentId,
|
|
619
|
+
"lifecycleState": listPrivateServiceAccessesRequest.lifecycleState,
|
|
620
|
+
"displayName": listPrivateServiceAccessesRequest.displayName,
|
|
621
|
+
"id": listPrivateServiceAccessesRequest.id,
|
|
622
|
+
"vcnId": listPrivateServiceAccessesRequest.vcnId,
|
|
623
|
+
"serviceId": listPrivateServiceAccessesRequest.serviceId,
|
|
624
|
+
"limit": listPrivateServiceAccessesRequest.limit,
|
|
625
|
+
"page": listPrivateServiceAccessesRequest.page,
|
|
626
|
+
"sortBy": listPrivateServiceAccessesRequest.sortBy,
|
|
627
|
+
"sortOrder": listPrivateServiceAccessesRequest.sortOrder
|
|
628
|
+
};
|
|
629
|
+
let headerParams = {
|
|
630
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
631
|
+
"opc-request-id": listPrivateServiceAccessesRequest.opcRequestId
|
|
632
|
+
};
|
|
633
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
634
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listPrivateServiceAccessesRequest.retryConfiguration, specRetryConfiguration);
|
|
635
|
+
if (this.logger)
|
|
636
|
+
retrier.logger = this.logger;
|
|
637
|
+
const request = yield oci_common_1.composeRequest({
|
|
638
|
+
baseEndpoint: this._endpoint,
|
|
639
|
+
defaultHeaders: this._defaultHeaders,
|
|
640
|
+
path: "/privateServiceAccess",
|
|
641
|
+
method: "GET",
|
|
642
|
+
pathParams: pathParams,
|
|
643
|
+
headerParams: headerParams,
|
|
644
|
+
queryParams: queryParams
|
|
645
|
+
});
|
|
646
|
+
try {
|
|
647
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
648
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
649
|
+
responseObject: {},
|
|
650
|
+
body: yield response.json(),
|
|
651
|
+
bodyKey: "privateServiceAccessCollection",
|
|
652
|
+
bodyModel: model.PrivateServiceAccessCollection,
|
|
653
|
+
type: "model.PrivateServiceAccessCollection",
|
|
654
|
+
responseHeaders: [
|
|
655
|
+
{
|
|
656
|
+
value: response.headers.get("opc-request-id"),
|
|
657
|
+
key: "opcRequestId",
|
|
658
|
+
dataType: "string"
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
value: response.headers.get("opc-next-page"),
|
|
662
|
+
key: "opcNextPage",
|
|
663
|
+
dataType: "string"
|
|
664
|
+
}
|
|
665
|
+
]
|
|
666
|
+
});
|
|
667
|
+
return sdkResponse;
|
|
668
|
+
}
|
|
669
|
+
catch (err) {
|
|
670
|
+
throw err;
|
|
671
|
+
}
|
|
672
|
+
});
|
|
673
|
+
}
|
|
674
|
+
/**
|
|
675
|
+
* List the OCI services available for Private Service Access catalog in the region, sorted by service name.
|
|
676
|
+
*
|
|
677
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
678
|
+
* @param ListPsaServicesRequest
|
|
679
|
+
* @return ListPsaServicesResponse
|
|
680
|
+
* @throws OciError when an error occurs
|
|
681
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/psa/ListPsaServices.ts.html |here} to see how to use ListPsaServices API.
|
|
682
|
+
*/
|
|
683
|
+
listPsaServices(listPsaServicesRequest) {
|
|
684
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
685
|
+
if (this.logger)
|
|
686
|
+
this.logger.debug("Calling operation PrivateServiceAccessClient#listPsaServices.");
|
|
687
|
+
const operationName = "listPsaServices";
|
|
688
|
+
const apiReferenceLink = "";
|
|
689
|
+
const pathParams = {};
|
|
690
|
+
const queryParams = {
|
|
691
|
+
"displayName": listPsaServicesRequest.displayName,
|
|
692
|
+
"serviceId": listPsaServicesRequest.serviceId,
|
|
693
|
+
"limit": listPsaServicesRequest.limit,
|
|
694
|
+
"page": listPsaServicesRequest.page,
|
|
695
|
+
"sortBy": listPsaServicesRequest.sortBy,
|
|
696
|
+
"sortOrder": listPsaServicesRequest.sortOrder
|
|
697
|
+
};
|
|
698
|
+
let headerParams = {
|
|
699
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
700
|
+
"opc-request-id": listPsaServicesRequest.opcRequestId
|
|
701
|
+
};
|
|
702
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
703
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listPsaServicesRequest.retryConfiguration, specRetryConfiguration);
|
|
704
|
+
if (this.logger)
|
|
705
|
+
retrier.logger = this.logger;
|
|
706
|
+
const request = yield oci_common_1.composeRequest({
|
|
707
|
+
baseEndpoint: this._endpoint,
|
|
708
|
+
defaultHeaders: this._defaultHeaders,
|
|
709
|
+
path: "/psaServices",
|
|
710
|
+
method: "GET",
|
|
711
|
+
pathParams: pathParams,
|
|
712
|
+
headerParams: headerParams,
|
|
713
|
+
queryParams: queryParams
|
|
714
|
+
});
|
|
715
|
+
try {
|
|
716
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
717
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
718
|
+
responseObject: {},
|
|
719
|
+
body: yield response.json(),
|
|
720
|
+
bodyKey: "psaServiceCollection",
|
|
721
|
+
bodyModel: model.PsaServiceCollection,
|
|
722
|
+
type: "model.PsaServiceCollection",
|
|
723
|
+
responseHeaders: [
|
|
724
|
+
{
|
|
725
|
+
value: response.headers.get("opc-request-id"),
|
|
726
|
+
key: "opcRequestId",
|
|
727
|
+
dataType: "string"
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
value: response.headers.get("opc-next-page"),
|
|
731
|
+
key: "opcNextPage",
|
|
732
|
+
dataType: "string"
|
|
733
|
+
}
|
|
734
|
+
]
|
|
735
|
+
});
|
|
736
|
+
return sdkResponse;
|
|
737
|
+
}
|
|
738
|
+
catch (err) {
|
|
739
|
+
throw err;
|
|
740
|
+
}
|
|
741
|
+
});
|
|
742
|
+
}
|
|
743
|
+
/**
|
|
744
|
+
* Lists the errors for a PrivateServiceAccess work request.
|
|
745
|
+
*
|
|
746
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
747
|
+
* @param ListPsaWorkRequestErrorsRequest
|
|
748
|
+
* @return ListPsaWorkRequestErrorsResponse
|
|
749
|
+
* @throws OciError when an error occurs
|
|
750
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/psa/ListPsaWorkRequestErrors.ts.html |here} to see how to use ListPsaWorkRequestErrors API.
|
|
751
|
+
*/
|
|
752
|
+
listPsaWorkRequestErrors(listPsaWorkRequestErrorsRequest) {
|
|
753
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
754
|
+
if (this.logger)
|
|
755
|
+
this.logger.debug("Calling operation PrivateServiceAccessClient#listPsaWorkRequestErrors.");
|
|
756
|
+
const operationName = "listPsaWorkRequestErrors";
|
|
757
|
+
const apiReferenceLink = "";
|
|
758
|
+
const pathParams = {
|
|
759
|
+
"{workRequestId}": listPsaWorkRequestErrorsRequest.workRequestId
|
|
760
|
+
};
|
|
761
|
+
const queryParams = {
|
|
762
|
+
"page": listPsaWorkRequestErrorsRequest.page,
|
|
763
|
+
"limit": listPsaWorkRequestErrorsRequest.limit,
|
|
764
|
+
"sortBy": listPsaWorkRequestErrorsRequest.sortBy,
|
|
765
|
+
"sortOrder": listPsaWorkRequestErrorsRequest.sortOrder
|
|
766
|
+
};
|
|
767
|
+
let headerParams = {
|
|
768
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
769
|
+
"opc-request-id": listPsaWorkRequestErrorsRequest.opcRequestId
|
|
770
|
+
};
|
|
771
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
772
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listPsaWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
|
|
773
|
+
if (this.logger)
|
|
774
|
+
retrier.logger = this.logger;
|
|
775
|
+
const request = yield oci_common_1.composeRequest({
|
|
776
|
+
baseEndpoint: this._endpoint,
|
|
777
|
+
defaultHeaders: this._defaultHeaders,
|
|
778
|
+
path: "/psaWorkRequests/{workRequestId}/errors",
|
|
779
|
+
method: "GET",
|
|
780
|
+
pathParams: pathParams,
|
|
781
|
+
headerParams: headerParams,
|
|
782
|
+
queryParams: queryParams
|
|
783
|
+
});
|
|
784
|
+
try {
|
|
785
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
786
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
787
|
+
responseObject: {},
|
|
788
|
+
body: yield response.json(),
|
|
789
|
+
bodyKey: "workRequestErrorCollection",
|
|
790
|
+
bodyModel: model.WorkRequestErrorCollection,
|
|
791
|
+
type: "model.WorkRequestErrorCollection",
|
|
792
|
+
responseHeaders: [
|
|
793
|
+
{
|
|
794
|
+
value: response.headers.get("opc-next-page"),
|
|
795
|
+
key: "opcNextPage",
|
|
796
|
+
dataType: "string"
|
|
797
|
+
},
|
|
798
|
+
{
|
|
799
|
+
value: response.headers.get("opc-request-id"),
|
|
800
|
+
key: "opcRequestId",
|
|
801
|
+
dataType: "string"
|
|
802
|
+
}
|
|
803
|
+
]
|
|
804
|
+
});
|
|
805
|
+
return sdkResponse;
|
|
806
|
+
}
|
|
807
|
+
catch (err) {
|
|
808
|
+
throw err;
|
|
809
|
+
}
|
|
810
|
+
});
|
|
811
|
+
}
|
|
812
|
+
/**
|
|
813
|
+
* Lists the logs for a PrivateServiceAccess work request.
|
|
814
|
+
*
|
|
815
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
816
|
+
* @param ListPsaWorkRequestLogsRequest
|
|
817
|
+
* @return ListPsaWorkRequestLogsResponse
|
|
818
|
+
* @throws OciError when an error occurs
|
|
819
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/psa/ListPsaWorkRequestLogs.ts.html |here} to see how to use ListPsaWorkRequestLogs API.
|
|
820
|
+
*/
|
|
821
|
+
listPsaWorkRequestLogs(listPsaWorkRequestLogsRequest) {
|
|
822
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
823
|
+
if (this.logger)
|
|
824
|
+
this.logger.debug("Calling operation PrivateServiceAccessClient#listPsaWorkRequestLogs.");
|
|
825
|
+
const operationName = "listPsaWorkRequestLogs";
|
|
826
|
+
const apiReferenceLink = "";
|
|
827
|
+
const pathParams = {
|
|
828
|
+
"{workRequestId}": listPsaWorkRequestLogsRequest.workRequestId
|
|
829
|
+
};
|
|
830
|
+
const queryParams = {
|
|
831
|
+
"page": listPsaWorkRequestLogsRequest.page,
|
|
832
|
+
"limit": listPsaWorkRequestLogsRequest.limit,
|
|
833
|
+
"sortBy": listPsaWorkRequestLogsRequest.sortBy,
|
|
834
|
+
"sortOrder": listPsaWorkRequestLogsRequest.sortOrder
|
|
835
|
+
};
|
|
836
|
+
let headerParams = {
|
|
837
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
838
|
+
"opc-request-id": listPsaWorkRequestLogsRequest.opcRequestId
|
|
839
|
+
};
|
|
840
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
841
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listPsaWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
842
|
+
if (this.logger)
|
|
843
|
+
retrier.logger = this.logger;
|
|
844
|
+
const request = yield oci_common_1.composeRequest({
|
|
845
|
+
baseEndpoint: this._endpoint,
|
|
846
|
+
defaultHeaders: this._defaultHeaders,
|
|
847
|
+
path: "/psaWorkRequests/{workRequestId}/logs",
|
|
848
|
+
method: "GET",
|
|
849
|
+
pathParams: pathParams,
|
|
850
|
+
headerParams: headerParams,
|
|
851
|
+
queryParams: queryParams
|
|
852
|
+
});
|
|
853
|
+
try {
|
|
854
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
855
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
856
|
+
responseObject: {},
|
|
857
|
+
body: yield response.json(),
|
|
858
|
+
bodyKey: "workRequestLogEntryCollection",
|
|
859
|
+
bodyModel: model.WorkRequestLogEntryCollection,
|
|
860
|
+
type: "model.WorkRequestLogEntryCollection",
|
|
861
|
+
responseHeaders: [
|
|
862
|
+
{
|
|
863
|
+
value: response.headers.get("opc-next-page"),
|
|
864
|
+
key: "opcNextPage",
|
|
865
|
+
dataType: "string"
|
|
866
|
+
},
|
|
867
|
+
{
|
|
868
|
+
value: response.headers.get("opc-request-id"),
|
|
869
|
+
key: "opcRequestId",
|
|
870
|
+
dataType: "string"
|
|
871
|
+
}
|
|
872
|
+
]
|
|
873
|
+
});
|
|
874
|
+
return sdkResponse;
|
|
875
|
+
}
|
|
876
|
+
catch (err) {
|
|
877
|
+
throw err;
|
|
878
|
+
}
|
|
879
|
+
});
|
|
880
|
+
}
|
|
881
|
+
/**
|
|
882
|
+
* Lists the PrivateServiceAccess work requests in a compartment.
|
|
883
|
+
*
|
|
884
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
885
|
+
* @param ListPsaWorkRequestsRequest
|
|
886
|
+
* @return ListPsaWorkRequestsResponse
|
|
887
|
+
* @throws OciError when an error occurs
|
|
888
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/psa/ListPsaWorkRequests.ts.html |here} to see how to use ListPsaWorkRequests API.
|
|
889
|
+
*/
|
|
890
|
+
listPsaWorkRequests(listPsaWorkRequestsRequest) {
|
|
891
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
892
|
+
if (this.logger)
|
|
893
|
+
this.logger.debug("Calling operation PrivateServiceAccessClient#listPsaWorkRequests.");
|
|
894
|
+
const operationName = "listPsaWorkRequests";
|
|
895
|
+
const apiReferenceLink = "";
|
|
896
|
+
const pathParams = {};
|
|
897
|
+
const queryParams = {
|
|
898
|
+
"compartmentId": listPsaWorkRequestsRequest.compartmentId,
|
|
899
|
+
"workRequestId": listPsaWorkRequestsRequest.workRequestId,
|
|
900
|
+
"status": listPsaWorkRequestsRequest.status,
|
|
901
|
+
"resourceId": listPsaWorkRequestsRequest.resourceId,
|
|
902
|
+
"page": listPsaWorkRequestsRequest.page,
|
|
903
|
+
"limit": listPsaWorkRequestsRequest.limit,
|
|
904
|
+
"sortOrder": listPsaWorkRequestsRequest.sortOrder,
|
|
905
|
+
"sortBy": listPsaWorkRequestsRequest.sortBy
|
|
906
|
+
};
|
|
907
|
+
let headerParams = {
|
|
908
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
909
|
+
"opc-request-id": listPsaWorkRequestsRequest.opcRequestId
|
|
910
|
+
};
|
|
911
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
912
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listPsaWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
913
|
+
if (this.logger)
|
|
914
|
+
retrier.logger = this.logger;
|
|
915
|
+
const request = yield oci_common_1.composeRequest({
|
|
916
|
+
baseEndpoint: this._endpoint,
|
|
917
|
+
defaultHeaders: this._defaultHeaders,
|
|
918
|
+
path: "/psaWorkRequests",
|
|
919
|
+
method: "GET",
|
|
920
|
+
pathParams: pathParams,
|
|
921
|
+
headerParams: headerParams,
|
|
922
|
+
queryParams: queryParams
|
|
923
|
+
});
|
|
924
|
+
try {
|
|
925
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
926
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
927
|
+
responseObject: {},
|
|
928
|
+
body: yield response.json(),
|
|
929
|
+
bodyKey: "workRequestSummaryCollection",
|
|
930
|
+
bodyModel: model.WorkRequestSummaryCollection,
|
|
931
|
+
type: "model.WorkRequestSummaryCollection",
|
|
932
|
+
responseHeaders: [
|
|
933
|
+
{
|
|
934
|
+
value: response.headers.get("opc-request-id"),
|
|
935
|
+
key: "opcRequestId",
|
|
936
|
+
dataType: "string"
|
|
937
|
+
},
|
|
938
|
+
{
|
|
939
|
+
value: response.headers.get("opc-next-page"),
|
|
940
|
+
key: "opcNextPage",
|
|
941
|
+
dataType: "string"
|
|
942
|
+
}
|
|
943
|
+
]
|
|
944
|
+
});
|
|
945
|
+
return sdkResponse;
|
|
946
|
+
}
|
|
947
|
+
catch (err) {
|
|
948
|
+
throw err;
|
|
949
|
+
}
|
|
950
|
+
});
|
|
951
|
+
}
|
|
952
|
+
/**
|
|
953
|
+
* Updates a PrivateServiceAccess.
|
|
954
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
955
|
+
* @param UpdatePrivateServiceAccessRequest
|
|
956
|
+
* @return UpdatePrivateServiceAccessResponse
|
|
957
|
+
* @throws OciError when an error occurs
|
|
958
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/psa/UpdatePrivateServiceAccess.ts.html |here} to see how to use UpdatePrivateServiceAccess API.
|
|
959
|
+
*/
|
|
960
|
+
updatePrivateServiceAccess(updatePrivateServiceAccessRequest) {
|
|
961
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
962
|
+
if (this.logger)
|
|
963
|
+
this.logger.debug("Calling operation PrivateServiceAccessClient#updatePrivateServiceAccess.");
|
|
964
|
+
const operationName = "updatePrivateServiceAccess";
|
|
965
|
+
const apiReferenceLink = "";
|
|
966
|
+
const pathParams = {
|
|
967
|
+
"{privateServiceAccessId}": updatePrivateServiceAccessRequest.privateServiceAccessId
|
|
968
|
+
};
|
|
969
|
+
const queryParams = {};
|
|
970
|
+
let headerParams = {
|
|
971
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
972
|
+
"if-match": updatePrivateServiceAccessRequest.ifMatch,
|
|
973
|
+
"opc-request-id": updatePrivateServiceAccessRequest.opcRequestId
|
|
974
|
+
};
|
|
975
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
976
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updatePrivateServiceAccessRequest.retryConfiguration, specRetryConfiguration);
|
|
977
|
+
if (this.logger)
|
|
978
|
+
retrier.logger = this.logger;
|
|
979
|
+
const request = yield oci_common_1.composeRequest({
|
|
980
|
+
baseEndpoint: this._endpoint,
|
|
981
|
+
defaultHeaders: this._defaultHeaders,
|
|
982
|
+
path: "/privateServiceAccess/{privateServiceAccessId}",
|
|
983
|
+
method: "PUT",
|
|
984
|
+
bodyContent: common.ObjectSerializer.serialize(updatePrivateServiceAccessRequest.updatePrivateServiceAccessDetails, "UpdatePrivateServiceAccessDetails", model.UpdatePrivateServiceAccessDetails.getJsonObj),
|
|
985
|
+
pathParams: pathParams,
|
|
986
|
+
headerParams: headerParams,
|
|
987
|
+
queryParams: queryParams
|
|
988
|
+
});
|
|
989
|
+
try {
|
|
990
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
991
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
992
|
+
responseObject: {},
|
|
993
|
+
responseHeaders: [
|
|
994
|
+
{
|
|
995
|
+
value: response.headers.get("opc-work-request-id"),
|
|
996
|
+
key: "opcWorkRequestId",
|
|
997
|
+
dataType: "string"
|
|
998
|
+
},
|
|
999
|
+
{
|
|
1000
|
+
value: response.headers.get("opc-request-id"),
|
|
1001
|
+
key: "opcRequestId",
|
|
1002
|
+
dataType: "string"
|
|
1003
|
+
}
|
|
1004
|
+
]
|
|
1005
|
+
});
|
|
1006
|
+
return sdkResponse;
|
|
1007
|
+
}
|
|
1008
|
+
catch (err) {
|
|
1009
|
+
throw err;
|
|
1010
|
+
}
|
|
1011
|
+
});
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
exports.PrivateServiceAccessClient = PrivateServiceAccessClient;
|
|
1015
|
+
PrivateServiceAccessClient.serviceEndpointTemplate = "https://psasvc.{region}.oci.{secondLevelDomain}";
|
|
1016
|
+
PrivateServiceAccessClient.endpointServiceName = "psasvc";
|
|
1017
|
+
//# sourceMappingURL=client.js.map
|