oci-operatoraccesscontrol 2.79.1 → 2.81.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/lib/client.d.ts +60 -27
- package/lib/client.js +334 -58
- package/lib/client.js.map +1 -1
- package/lib/model/access-request-summary.d.ts +5 -0
- package/lib/model/access-request-summary.js.map +1 -1
- package/lib/model/access-request.d.ts +29 -0
- package/lib/model/access-request.js +44 -2
- package/lib/model/access-request.js.map +1 -1
- package/lib/model/approver-detail.d.ts +51 -0
- package/lib/model/approver-detail.js +33 -0
- package/lib/model/approver-detail.js.map +1 -0
- package/lib/model/assignment-validation-lifecycle-states.d.ts +33 -0
- package/lib/model/assignment-validation-lifecycle-states.js +44 -0
- package/lib/model/assignment-validation-lifecycle-states.js.map +1 -0
- package/lib/model/assignment-validation-status.d.ts +60 -0
- package/lib/model/assignment-validation-status.js +65 -0
- package/lib/model/assignment-validation-status.js.map +1 -0
- package/lib/model/audit-log-report.d.ts +43 -0
- package/lib/model/audit-log-report.js +33 -0
- package/lib/model/audit-log-report.js.map +1 -0
- package/lib/model/audit-report-status.d.ts +35 -0
- package/lib/model/audit-report-status.js +46 -0
- package/lib/model/audit-report-status.js.map +1 -0
- package/lib/model/create-operator-control-assignment-details.d.ts +4 -0
- package/lib/model/create-operator-control-assignment-details.js.map +1 -1
- package/lib/model/create-operator-control-details.d.ts +4 -0
- package/lib/model/create-operator-control-details.js.map +1 -1
- package/lib/model/index.d.ts +14 -0
- package/lib/model/index.js +15 -1
- package/lib/model/index.js.map +1 -1
- package/lib/model/operator-control-assignment-summary.d.ts +12 -0
- package/lib/model/operator-control-assignment-summary.js.map +1 -1
- package/lib/model/operator-control-assignment.d.ts +8 -0
- package/lib/model/operator-control-assignment.js.map +1 -1
- package/lib/model/operator-control-summary.d.ts +4 -0
- package/lib/model/operator-control-summary.js.map +1 -1
- package/lib/model/operator-control.d.ts +4 -0
- package/lib/model/operator-control.js.map +1 -1
- package/lib/model/status-detail.d.ts +42 -0
- package/lib/model/status-detail.js +33 -0
- package/lib/model/status-detail.js.map +1 -0
- package/lib/model/update-operator-control-assignment-details.d.ts +4 -0
- package/lib/model/update-operator-control-assignment-details.js.map +1 -1
- package/lib/model/update-operator-control-details.d.ts +4 -0
- package/lib/model/update-operator-control-details.js.map +1 -1
- package/lib/model/validate-operator-assignment-details.d.ts +29 -0
- package/lib/model/validate-operator-assignment-details.js +33 -0
- package/lib/model/validate-operator-assignment-details.js.map +1 -0
- package/lib/request/approve-access-request-request.d.ts +1 -1
- package/lib/request/change-operator-control-assignment-compartment-request.d.ts +1 -1
- package/lib/request/change-operator-control-compartment-request.d.ts +1 -1
- package/lib/request/create-operator-control-assignment-request.d.ts +1 -1
- package/lib/request/create-operator-control-request.d.ts +1 -1
- package/lib/request/delete-operator-control-assignment-request.d.ts +1 -1
- package/lib/request/delete-operator-control-request.d.ts +1 -1
- package/lib/request/get-access-request-request.d.ts +1 -1
- package/lib/request/get-assignment-validation-status-request.d.ts +26 -0
- package/lib/request/get-assignment-validation-status-request.js +15 -0
- package/lib/request/get-assignment-validation-status-request.js.map +1 -0
- package/lib/request/get-audit-log-report-request.d.ts +30 -0
- package/lib/request/get-audit-log-report-request.js +15 -0
- package/lib/request/get-audit-log-report-request.js.map +1 -0
- package/lib/request/get-operator-action-request.d.ts +1 -1
- package/lib/request/get-operator-control-assignment-request.d.ts +1 -1
- package/lib/request/get-operator-control-request.d.ts +1 -1
- package/lib/request/index.d.ts +6 -0
- package/lib/request/index.js.map +1 -1
- package/lib/request/interaction-request-request.d.ts +1 -1
- package/lib/request/list-access-request-histories-request.d.ts +1 -1
- package/lib/request/list-access-requests-request.d.ts +1 -1
- package/lib/request/list-interactions-request.d.ts +1 -1
- package/lib/request/list-operator-actions-request.d.ts +1 -1
- package/lib/request/list-operator-control-assignments-request.d.ts +1 -1
- package/lib/request/list-operator-controls-request.d.ts +1 -1
- package/lib/request/reject-access-request-request.d.ts +1 -1
- package/lib/request/review-access-request-request.d.ts +1 -1
- package/lib/request/revoke-access-request-request.d.ts +1 -1
- package/lib/request/update-operator-control-assignment-request.d.ts +1 -1
- package/lib/request/update-operator-control-request.d.ts +1 -1
- package/lib/request/validate-operator-assignment-request.d.ts +49 -0
- package/lib/request/validate-operator-assignment-request.js +15 -0
- package/lib/request/validate-operator-assignment-request.js.map +1 -0
- package/lib/response/get-assignment-validation-status-response.d.ts +32 -0
- package/lib/response/get-assignment-validation-status-response.js +15 -0
- package/lib/response/get-assignment-validation-status-response.js.map +1 -0
- package/lib/response/get-audit-log-report-response.d.ts +25 -0
- package/lib/response/get-audit-log-report-response.js +15 -0
- package/lib/response/get-audit-log-report-response.js.map +1 -0
- package/lib/response/index.d.ts +6 -0
- package/lib/response/validate-operator-assignment-response.d.ts +25 -0
- package/lib/response/validate-operator-assignment-response.js +15 -0
- package/lib/response/validate-operator-assignment-response.js.map +1 -0
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -63,7 +63,7 @@ var AccessRequestsApiKeys;
|
|
|
63
63
|
*/
|
|
64
64
|
class AccessRequestsClient {
|
|
65
65
|
constructor(params, clientConfiguration) {
|
|
66
|
-
this["_realmSpecificEndpointTemplateEnabled"] =
|
|
66
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
67
67
|
this["_endpoint"] = "";
|
|
68
68
|
this["_defaultHeaders"] = {};
|
|
69
69
|
this._circuitBreaker = null;
|
|
@@ -122,7 +122,11 @@ class AccessRequestsClient {
|
|
|
122
122
|
set endpoint(endpoint) {
|
|
123
123
|
this._endpoint = endpoint;
|
|
124
124
|
this._endpoint = this._endpoint + "/20200630";
|
|
125
|
-
|
|
125
|
+
if (this.logger)
|
|
126
|
+
this.logger.info(`AccessRequestsClient endpoint set to ${this._endpoint}`);
|
|
127
|
+
}
|
|
128
|
+
get logger() {
|
|
129
|
+
return common.LOG.logger;
|
|
126
130
|
}
|
|
127
131
|
/**
|
|
128
132
|
* Determines whether realm specific endpoint should be used or not.
|
|
@@ -131,7 +135,8 @@ class AccessRequestsClient {
|
|
|
131
135
|
*/
|
|
132
136
|
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
133
137
|
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
134
|
-
|
|
138
|
+
if (this.logger)
|
|
139
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
135
140
|
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
136
141
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(AccessRequestsClient.serviceEndpointTemplate, this._region, AccessRequestsClient.endpointServiceName);
|
|
137
142
|
}
|
|
@@ -198,11 +203,12 @@ class AccessRequestsClient {
|
|
|
198
203
|
* @param ApproveAccessRequestRequest
|
|
199
204
|
* @return ApproveAccessRequestResponse
|
|
200
205
|
* @throws OciError when an error occurs
|
|
201
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
206
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/operatoraccesscontrol/ApproveAccessRequest.ts.html |here} to see how to use ApproveAccessRequest API.
|
|
202
207
|
*/
|
|
203
208
|
approveAccessRequest(approveAccessRequestRequest) {
|
|
204
209
|
return __awaiter(this, void 0, void 0, function* () {
|
|
205
|
-
|
|
210
|
+
if (this.logger)
|
|
211
|
+
this.logger.debug("Calling operation AccessRequestsClient#approveAccessRequest.");
|
|
206
212
|
const operationName = "approveAccessRequest";
|
|
207
213
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/ApproveAccessRequest";
|
|
208
214
|
const pathParams = {
|
|
@@ -217,6 +223,8 @@ class AccessRequestsClient {
|
|
|
217
223
|
};
|
|
218
224
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
219
225
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, approveAccessRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
226
|
+
if (this.logger)
|
|
227
|
+
retrier.logger = this.logger;
|
|
220
228
|
const request = yield oci_common_1.composeRequest({
|
|
221
229
|
baseEndpoint: this._endpoint,
|
|
222
230
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -257,11 +265,12 @@ class AccessRequestsClient {
|
|
|
257
265
|
* @param GetAccessRequestRequest
|
|
258
266
|
* @return GetAccessRequestResponse
|
|
259
267
|
* @throws OciError when an error occurs
|
|
260
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
268
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/operatoraccesscontrol/GetAccessRequest.ts.html |here} to see how to use GetAccessRequest API.
|
|
261
269
|
*/
|
|
262
270
|
getAccessRequest(getAccessRequestRequest) {
|
|
263
271
|
return __awaiter(this, void 0, void 0, function* () {
|
|
264
|
-
|
|
272
|
+
if (this.logger)
|
|
273
|
+
this.logger.debug("Calling operation AccessRequestsClient#getAccessRequest.");
|
|
265
274
|
const operationName = "getAccessRequest";
|
|
266
275
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/GetAccessRequest";
|
|
267
276
|
const pathParams = {
|
|
@@ -274,6 +283,8 @@ class AccessRequestsClient {
|
|
|
274
283
|
};
|
|
275
284
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
276
285
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getAccessRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
286
|
+
if (this.logger)
|
|
287
|
+
retrier.logger = this.logger;
|
|
277
288
|
const request = yield oci_common_1.composeRequest({
|
|
278
289
|
baseEndpoint: this._endpoint,
|
|
279
290
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -306,6 +317,66 @@ class AccessRequestsClient {
|
|
|
306
317
|
}
|
|
307
318
|
});
|
|
308
319
|
}
|
|
320
|
+
/**
|
|
321
|
+
* Gets the Audit Log Report for the given access requestId.
|
|
322
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
323
|
+
* @param GetAuditLogReportRequest
|
|
324
|
+
* @return GetAuditLogReportResponse
|
|
325
|
+
* @throws OciError when an error occurs
|
|
326
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/operatoraccesscontrol/GetAuditLogReport.ts.html |here} to see how to use GetAuditLogReport API.
|
|
327
|
+
*/
|
|
328
|
+
getAuditLogReport(getAuditLogReportRequest) {
|
|
329
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
330
|
+
if (this.logger)
|
|
331
|
+
this.logger.debug("Calling operation AccessRequestsClient#getAuditLogReport.");
|
|
332
|
+
const operationName = "getAuditLogReport";
|
|
333
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AuditLogReport/GetAuditLogReport";
|
|
334
|
+
const pathParams = {
|
|
335
|
+
"{accessRequestId}": getAuditLogReportRequest.accessRequestId
|
|
336
|
+
};
|
|
337
|
+
const queryParams = {
|
|
338
|
+
"enableProcessTree": getAuditLogReportRequest.enableProcessTree
|
|
339
|
+
};
|
|
340
|
+
let headerParams = {
|
|
341
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
342
|
+
"opc-request-id": getAuditLogReportRequest.opcRequestId
|
|
343
|
+
};
|
|
344
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
345
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getAuditLogReportRequest.retryConfiguration, specRetryConfiguration);
|
|
346
|
+
if (this.logger)
|
|
347
|
+
retrier.logger = this.logger;
|
|
348
|
+
const request = yield oci_common_1.composeRequest({
|
|
349
|
+
baseEndpoint: this._endpoint,
|
|
350
|
+
defaultHeaders: this._defaultHeaders,
|
|
351
|
+
path: "/accessRequests/{accessRequestId}/auditLogReport",
|
|
352
|
+
method: "GET",
|
|
353
|
+
pathParams: pathParams,
|
|
354
|
+
headerParams: headerParams,
|
|
355
|
+
queryParams: queryParams
|
|
356
|
+
});
|
|
357
|
+
try {
|
|
358
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
359
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
360
|
+
responseObject: {},
|
|
361
|
+
body: yield response.json(),
|
|
362
|
+
bodyKey: "auditLogReport",
|
|
363
|
+
bodyModel: model.AuditLogReport,
|
|
364
|
+
type: "model.AuditLogReport",
|
|
365
|
+
responseHeaders: [
|
|
366
|
+
{
|
|
367
|
+
value: response.headers.get("opc-request-id"),
|
|
368
|
+
key: "opcRequestId",
|
|
369
|
+
dataType: "string"
|
|
370
|
+
}
|
|
371
|
+
]
|
|
372
|
+
});
|
|
373
|
+
return sdkResponse;
|
|
374
|
+
}
|
|
375
|
+
catch (err) {
|
|
376
|
+
throw err;
|
|
377
|
+
}
|
|
378
|
+
});
|
|
379
|
+
}
|
|
309
380
|
/**
|
|
310
381
|
* Posts query for additional information for the given access request.
|
|
311
382
|
*
|
|
@@ -313,11 +384,12 @@ class AccessRequestsClient {
|
|
|
313
384
|
* @param InteractionRequestRequest
|
|
314
385
|
* @return InteractionRequestResponse
|
|
315
386
|
* @throws OciError when an error occurs
|
|
316
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
387
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/operatoraccesscontrol/InteractionRequest.ts.html |here} to see how to use InteractionRequest API.
|
|
317
388
|
*/
|
|
318
389
|
interactionRequest(interactionRequestRequest) {
|
|
319
390
|
return __awaiter(this, void 0, void 0, function* () {
|
|
320
|
-
|
|
391
|
+
if (this.logger)
|
|
392
|
+
this.logger.debug("Calling operation AccessRequestsClient#interactionRequest.");
|
|
321
393
|
const operationName = "interactionRequest";
|
|
322
394
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/InteractionRequest";
|
|
323
395
|
const pathParams = {
|
|
@@ -332,6 +404,8 @@ class AccessRequestsClient {
|
|
|
332
404
|
};
|
|
333
405
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
334
406
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, interactionRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
407
|
+
if (this.logger)
|
|
408
|
+
retrier.logger = this.logger;
|
|
335
409
|
const request = yield oci_common_1.composeRequest({
|
|
336
410
|
baseEndpoint: this._endpoint,
|
|
337
411
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -377,11 +451,12 @@ class AccessRequestsClient {
|
|
|
377
451
|
* @param ListAccessRequestHistoriesRequest
|
|
378
452
|
* @return ListAccessRequestHistoriesResponse
|
|
379
453
|
* @throws OciError when an error occurs
|
|
380
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
454
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/operatoraccesscontrol/ListAccessRequestHistories.ts.html |here} to see how to use ListAccessRequestHistories API.
|
|
381
455
|
*/
|
|
382
456
|
listAccessRequestHistories(listAccessRequestHistoriesRequest) {
|
|
383
457
|
return __awaiter(this, void 0, void 0, function* () {
|
|
384
|
-
|
|
458
|
+
if (this.logger)
|
|
459
|
+
this.logger.debug("Calling operation AccessRequestsClient#listAccessRequestHistories.");
|
|
385
460
|
const operationName = "listAccessRequestHistories";
|
|
386
461
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/ListAccessRequestHistories";
|
|
387
462
|
const pathParams = {
|
|
@@ -397,6 +472,8 @@ class AccessRequestsClient {
|
|
|
397
472
|
};
|
|
398
473
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
399
474
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listAccessRequestHistoriesRequest.retryConfiguration, specRetryConfiguration);
|
|
475
|
+
if (this.logger)
|
|
476
|
+
retrier.logger = this.logger;
|
|
400
477
|
const request = yield oci_common_1.composeRequest({
|
|
401
478
|
baseEndpoint: this._endpoint,
|
|
402
479
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -441,11 +518,12 @@ class AccessRequestsClient {
|
|
|
441
518
|
* @param ListAccessRequestsRequest
|
|
442
519
|
* @return ListAccessRequestsResponse
|
|
443
520
|
* @throws OciError when an error occurs
|
|
444
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
521
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/operatoraccesscontrol/ListAccessRequests.ts.html |here} to see how to use ListAccessRequests API.
|
|
445
522
|
*/
|
|
446
523
|
listAccessRequests(listAccessRequestsRequest) {
|
|
447
524
|
return __awaiter(this, void 0, void 0, function* () {
|
|
448
|
-
|
|
525
|
+
if (this.logger)
|
|
526
|
+
this.logger.debug("Calling operation AccessRequestsClient#listAccessRequests.");
|
|
449
527
|
const operationName = "listAccessRequests";
|
|
450
528
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/ListAccessRequests";
|
|
451
529
|
const pathParams = {};
|
|
@@ -467,6 +545,8 @@ class AccessRequestsClient {
|
|
|
467
545
|
};
|
|
468
546
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
469
547
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listAccessRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
548
|
+
if (this.logger)
|
|
549
|
+
retrier.logger = this.logger;
|
|
470
550
|
const request = yield oci_common_1.composeRequest({
|
|
471
551
|
baseEndpoint: this._endpoint,
|
|
472
552
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -511,11 +591,12 @@ class AccessRequestsClient {
|
|
|
511
591
|
* @param ListInteractionsRequest
|
|
512
592
|
* @return ListInteractionsResponse
|
|
513
593
|
* @throws OciError when an error occurs
|
|
514
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
594
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/operatoraccesscontrol/ListInteractions.ts.html |here} to see how to use ListInteractions API.
|
|
515
595
|
*/
|
|
516
596
|
listInteractions(listInteractionsRequest) {
|
|
517
597
|
return __awaiter(this, void 0, void 0, function* () {
|
|
518
|
-
|
|
598
|
+
if (this.logger)
|
|
599
|
+
this.logger.debug("Calling operation AccessRequestsClient#listInteractions.");
|
|
519
600
|
const operationName = "listInteractions";
|
|
520
601
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/ListInteractions";
|
|
521
602
|
const pathParams = {
|
|
@@ -531,6 +612,8 @@ class AccessRequestsClient {
|
|
|
531
612
|
};
|
|
532
613
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
533
614
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listInteractionsRequest.retryConfiguration, specRetryConfiguration);
|
|
615
|
+
if (this.logger)
|
|
616
|
+
retrier.logger = this.logger;
|
|
534
617
|
const request = yield oci_common_1.composeRequest({
|
|
535
618
|
baseEndpoint: this._endpoint,
|
|
536
619
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -575,11 +658,12 @@ class AccessRequestsClient {
|
|
|
575
658
|
* @param RejectAccessRequestRequest
|
|
576
659
|
* @return RejectAccessRequestResponse
|
|
577
660
|
* @throws OciError when an error occurs
|
|
578
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
661
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/operatoraccesscontrol/RejectAccessRequest.ts.html |here} to see how to use RejectAccessRequest API.
|
|
579
662
|
*/
|
|
580
663
|
rejectAccessRequest(rejectAccessRequestRequest) {
|
|
581
664
|
return __awaiter(this, void 0, void 0, function* () {
|
|
582
|
-
|
|
665
|
+
if (this.logger)
|
|
666
|
+
this.logger.debug("Calling operation AccessRequestsClient#rejectAccessRequest.");
|
|
583
667
|
const operationName = "rejectAccessRequest";
|
|
584
668
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/RejectAccessRequest";
|
|
585
669
|
const pathParams = {
|
|
@@ -594,6 +678,8 @@ class AccessRequestsClient {
|
|
|
594
678
|
};
|
|
595
679
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
596
680
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, rejectAccessRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
681
|
+
if (this.logger)
|
|
682
|
+
retrier.logger = this.logger;
|
|
597
683
|
const request = yield oci_common_1.composeRequest({
|
|
598
684
|
baseEndpoint: this._endpoint,
|
|
599
685
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -635,11 +721,12 @@ class AccessRequestsClient {
|
|
|
635
721
|
* @param ReviewAccessRequestRequest
|
|
636
722
|
* @return ReviewAccessRequestResponse
|
|
637
723
|
* @throws OciError when an error occurs
|
|
638
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
724
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/operatoraccesscontrol/ReviewAccessRequest.ts.html |here} to see how to use ReviewAccessRequest API.
|
|
639
725
|
*/
|
|
640
726
|
reviewAccessRequest(reviewAccessRequestRequest) {
|
|
641
727
|
return __awaiter(this, void 0, void 0, function* () {
|
|
642
|
-
|
|
728
|
+
if (this.logger)
|
|
729
|
+
this.logger.debug("Calling operation AccessRequestsClient#reviewAccessRequest.");
|
|
643
730
|
const operationName = "reviewAccessRequest";
|
|
644
731
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/ReviewAccessRequest";
|
|
645
732
|
const pathParams = {
|
|
@@ -654,6 +741,8 @@ class AccessRequestsClient {
|
|
|
654
741
|
};
|
|
655
742
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
656
743
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, reviewAccessRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
744
|
+
if (this.logger)
|
|
745
|
+
retrier.logger = this.logger;
|
|
657
746
|
const request = yield oci_common_1.composeRequest({
|
|
658
747
|
baseEndpoint: this._endpoint,
|
|
659
748
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -699,11 +788,12 @@ class AccessRequestsClient {
|
|
|
699
788
|
* @param RevokeAccessRequestRequest
|
|
700
789
|
* @return RevokeAccessRequestResponse
|
|
701
790
|
* @throws OciError when an error occurs
|
|
702
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
791
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/operatoraccesscontrol/RevokeAccessRequest.ts.html |here} to see how to use RevokeAccessRequest API.
|
|
703
792
|
*/
|
|
704
793
|
revokeAccessRequest(revokeAccessRequestRequest) {
|
|
705
794
|
return __awaiter(this, void 0, void 0, function* () {
|
|
706
|
-
|
|
795
|
+
if (this.logger)
|
|
796
|
+
this.logger.debug("Calling operation AccessRequestsClient#revokeAccessRequest.");
|
|
707
797
|
const operationName = "revokeAccessRequest";
|
|
708
798
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/RevokeAccessRequest";
|
|
709
799
|
const pathParams = {
|
|
@@ -718,6 +808,8 @@ class AccessRequestsClient {
|
|
|
718
808
|
};
|
|
719
809
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
720
810
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, revokeAccessRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
811
|
+
if (this.logger)
|
|
812
|
+
retrier.logger = this.logger;
|
|
721
813
|
const request = yield oci_common_1.composeRequest({
|
|
722
814
|
baseEndpoint: this._endpoint,
|
|
723
815
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -764,7 +856,7 @@ var OperatorActionsApiKeys;
|
|
|
764
856
|
*/
|
|
765
857
|
class OperatorActionsClient {
|
|
766
858
|
constructor(params, clientConfiguration) {
|
|
767
|
-
this["_realmSpecificEndpointTemplateEnabled"] =
|
|
859
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
768
860
|
this["_endpoint"] = "";
|
|
769
861
|
this["_defaultHeaders"] = {};
|
|
770
862
|
this._circuitBreaker = null;
|
|
@@ -823,7 +915,11 @@ class OperatorActionsClient {
|
|
|
823
915
|
set endpoint(endpoint) {
|
|
824
916
|
this._endpoint = endpoint;
|
|
825
917
|
this._endpoint = this._endpoint + "/20200630";
|
|
826
|
-
|
|
918
|
+
if (this.logger)
|
|
919
|
+
this.logger.info(`OperatorActionsClient endpoint set to ${this._endpoint}`);
|
|
920
|
+
}
|
|
921
|
+
get logger() {
|
|
922
|
+
return common.LOG.logger;
|
|
827
923
|
}
|
|
828
924
|
/**
|
|
829
925
|
* Determines whether realm specific endpoint should be used or not.
|
|
@@ -832,7 +928,8 @@ class OperatorActionsClient {
|
|
|
832
928
|
*/
|
|
833
929
|
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
834
930
|
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
835
|
-
|
|
931
|
+
if (this.logger)
|
|
932
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
836
933
|
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
837
934
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(OperatorActionsClient.serviceEndpointTemplate, this._region, OperatorActionsClient.endpointServiceName);
|
|
838
935
|
}
|
|
@@ -877,11 +974,12 @@ class OperatorActionsClient {
|
|
|
877
974
|
* @param GetOperatorActionRequest
|
|
878
975
|
* @return GetOperatorActionResponse
|
|
879
976
|
* @throws OciError when an error occurs
|
|
880
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
977
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/operatoraccesscontrol/GetOperatorAction.ts.html |here} to see how to use GetOperatorAction API.
|
|
881
978
|
*/
|
|
882
979
|
getOperatorAction(getOperatorActionRequest) {
|
|
883
980
|
return __awaiter(this, void 0, void 0, function* () {
|
|
884
|
-
|
|
981
|
+
if (this.logger)
|
|
982
|
+
this.logger.debug("Calling operation OperatorActionsClient#getOperatorAction.");
|
|
885
983
|
const operationName = "getOperatorAction";
|
|
886
984
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorAction/GetOperatorAction";
|
|
887
985
|
const pathParams = {
|
|
@@ -894,6 +992,8 @@ class OperatorActionsClient {
|
|
|
894
992
|
};
|
|
895
993
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
896
994
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getOperatorActionRequest.retryConfiguration, specRetryConfiguration);
|
|
995
|
+
if (this.logger)
|
|
996
|
+
retrier.logger = this.logger;
|
|
897
997
|
const request = yield oci_common_1.composeRequest({
|
|
898
998
|
baseEndpoint: this._endpoint,
|
|
899
999
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -933,11 +1033,12 @@ class OperatorActionsClient {
|
|
|
933
1033
|
* @param ListOperatorActionsRequest
|
|
934
1034
|
* @return ListOperatorActionsResponse
|
|
935
1035
|
* @throws OciError when an error occurs
|
|
936
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1036
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/operatoraccesscontrol/ListOperatorActions.ts.html |here} to see how to use ListOperatorActions API.
|
|
937
1037
|
*/
|
|
938
1038
|
listOperatorActions(listOperatorActionsRequest) {
|
|
939
1039
|
return __awaiter(this, void 0, void 0, function* () {
|
|
940
|
-
|
|
1040
|
+
if (this.logger)
|
|
1041
|
+
this.logger.debug("Calling operation OperatorActionsClient#listOperatorActions.");
|
|
941
1042
|
const operationName = "listOperatorActions";
|
|
942
1043
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorAction/ListOperatorActions";
|
|
943
1044
|
const pathParams = {};
|
|
@@ -957,6 +1058,8 @@ class OperatorActionsClient {
|
|
|
957
1058
|
};
|
|
958
1059
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
959
1060
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listOperatorActionsRequest.retryConfiguration, specRetryConfiguration);
|
|
1061
|
+
if (this.logger)
|
|
1062
|
+
retrier.logger = this.logger;
|
|
960
1063
|
const request = yield oci_common_1.composeRequest({
|
|
961
1064
|
baseEndpoint: this._endpoint,
|
|
962
1065
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1006,7 +1109,7 @@ var OperatorControlApiKeys;
|
|
|
1006
1109
|
*/
|
|
1007
1110
|
class OperatorControlClient {
|
|
1008
1111
|
constructor(params, clientConfiguration) {
|
|
1009
|
-
this["_realmSpecificEndpointTemplateEnabled"] =
|
|
1112
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
1010
1113
|
this["_endpoint"] = "";
|
|
1011
1114
|
this["_defaultHeaders"] = {};
|
|
1012
1115
|
this._circuitBreaker = null;
|
|
@@ -1065,7 +1168,11 @@ class OperatorControlClient {
|
|
|
1065
1168
|
set endpoint(endpoint) {
|
|
1066
1169
|
this._endpoint = endpoint;
|
|
1067
1170
|
this._endpoint = this._endpoint + "/20200630";
|
|
1068
|
-
|
|
1171
|
+
if (this.logger)
|
|
1172
|
+
this.logger.info(`OperatorControlClient endpoint set to ${this._endpoint}`);
|
|
1173
|
+
}
|
|
1174
|
+
get logger() {
|
|
1175
|
+
return common.LOG.logger;
|
|
1069
1176
|
}
|
|
1070
1177
|
/**
|
|
1071
1178
|
* Determines whether realm specific endpoint should be used or not.
|
|
@@ -1074,7 +1181,8 @@ class OperatorControlClient {
|
|
|
1074
1181
|
*/
|
|
1075
1182
|
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
1076
1183
|
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
1077
|
-
|
|
1184
|
+
if (this.logger)
|
|
1185
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
1078
1186
|
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
1079
1187
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(OperatorControlClient.serviceEndpointTemplate, this._region, OperatorControlClient.endpointServiceName);
|
|
1080
1188
|
}
|
|
@@ -1141,11 +1249,12 @@ class OperatorControlClient {
|
|
|
1141
1249
|
* @param ChangeOperatorControlCompartmentRequest
|
|
1142
1250
|
* @return ChangeOperatorControlCompartmentResponse
|
|
1143
1251
|
* @throws OciError when an error occurs
|
|
1144
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1252
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/operatoraccesscontrol/ChangeOperatorControlCompartment.ts.html |here} to see how to use ChangeOperatorControlCompartment API.
|
|
1145
1253
|
*/
|
|
1146
1254
|
changeOperatorControlCompartment(changeOperatorControlCompartmentRequest) {
|
|
1147
1255
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1148
|
-
|
|
1256
|
+
if (this.logger)
|
|
1257
|
+
this.logger.debug("Calling operation OperatorControlClient#changeOperatorControlCompartment.");
|
|
1149
1258
|
const operationName = "changeOperatorControlCompartment";
|
|
1150
1259
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControl/ChangeOperatorControlCompartment";
|
|
1151
1260
|
const pathParams = {
|
|
@@ -1160,6 +1269,8 @@ class OperatorControlClient {
|
|
|
1160
1269
|
};
|
|
1161
1270
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1162
1271
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeOperatorControlCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
1272
|
+
if (this.logger)
|
|
1273
|
+
retrier.logger = this.logger;
|
|
1163
1274
|
const request = yield oci_common_1.composeRequest({
|
|
1164
1275
|
baseEndpoint: this._endpoint,
|
|
1165
1276
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1196,11 +1307,12 @@ class OperatorControlClient {
|
|
|
1196
1307
|
* @param CreateOperatorControlRequest
|
|
1197
1308
|
* @return CreateOperatorControlResponse
|
|
1198
1309
|
* @throws OciError when an error occurs
|
|
1199
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1310
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/operatoraccesscontrol/CreateOperatorControl.ts.html |here} to see how to use CreateOperatorControl API.
|
|
1200
1311
|
*/
|
|
1201
1312
|
createOperatorControl(createOperatorControlRequest) {
|
|
1202
1313
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1203
|
-
|
|
1314
|
+
if (this.logger)
|
|
1315
|
+
this.logger.debug("Calling operation OperatorControlClient#createOperatorControl.");
|
|
1204
1316
|
const operationName = "createOperatorControl";
|
|
1205
1317
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControl/CreateOperatorControl";
|
|
1206
1318
|
const pathParams = {};
|
|
@@ -1212,6 +1324,8 @@ class OperatorControlClient {
|
|
|
1212
1324
|
};
|
|
1213
1325
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1214
1326
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createOperatorControlRequest.retryConfiguration, specRetryConfiguration);
|
|
1327
|
+
if (this.logger)
|
|
1328
|
+
retrier.logger = this.logger;
|
|
1215
1329
|
const request = yield oci_common_1.composeRequest({
|
|
1216
1330
|
baseEndpoint: this._endpoint,
|
|
1217
1331
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1261,11 +1375,12 @@ class OperatorControlClient {
|
|
|
1261
1375
|
* @param DeleteOperatorControlRequest
|
|
1262
1376
|
* @return DeleteOperatorControlResponse
|
|
1263
1377
|
* @throws OciError when an error occurs
|
|
1264
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1378
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/operatoraccesscontrol/DeleteOperatorControl.ts.html |here} to see how to use DeleteOperatorControl API.
|
|
1265
1379
|
*/
|
|
1266
1380
|
deleteOperatorControl(deleteOperatorControlRequest) {
|
|
1267
1381
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1268
|
-
|
|
1382
|
+
if (this.logger)
|
|
1383
|
+
this.logger.debug("Calling operation OperatorControlClient#deleteOperatorControl.");
|
|
1269
1384
|
const operationName = "deleteOperatorControl";
|
|
1270
1385
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControl/DeleteOperatorControl";
|
|
1271
1386
|
const pathParams = {
|
|
@@ -1281,6 +1396,8 @@ class OperatorControlClient {
|
|
|
1281
1396
|
};
|
|
1282
1397
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1283
1398
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteOperatorControlRequest.retryConfiguration, specRetryConfiguration);
|
|
1399
|
+
if (this.logger)
|
|
1400
|
+
retrier.logger = this.logger;
|
|
1284
1401
|
const request = yield oci_common_1.composeRequest({
|
|
1285
1402
|
baseEndpoint: this._endpoint,
|
|
1286
1403
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1315,11 +1432,12 @@ class OperatorControlClient {
|
|
|
1315
1432
|
* @param GetOperatorControlRequest
|
|
1316
1433
|
* @return GetOperatorControlResponse
|
|
1317
1434
|
* @throws OciError when an error occurs
|
|
1318
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1435
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/operatoraccesscontrol/GetOperatorControl.ts.html |here} to see how to use GetOperatorControl API.
|
|
1319
1436
|
*/
|
|
1320
1437
|
getOperatorControl(getOperatorControlRequest) {
|
|
1321
1438
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1322
|
-
|
|
1439
|
+
if (this.logger)
|
|
1440
|
+
this.logger.debug("Calling operation OperatorControlClient#getOperatorControl.");
|
|
1323
1441
|
const operationName = "getOperatorControl";
|
|
1324
1442
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControl/GetOperatorControl";
|
|
1325
1443
|
const pathParams = {
|
|
@@ -1332,6 +1450,8 @@ class OperatorControlClient {
|
|
|
1332
1450
|
};
|
|
1333
1451
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1334
1452
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getOperatorControlRequest.retryConfiguration, specRetryConfiguration);
|
|
1453
|
+
if (this.logger)
|
|
1454
|
+
retrier.logger = this.logger;
|
|
1335
1455
|
const request = yield oci_common_1.composeRequest({
|
|
1336
1456
|
baseEndpoint: this._endpoint,
|
|
1337
1457
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1376,11 +1496,12 @@ class OperatorControlClient {
|
|
|
1376
1496
|
* @param ListOperatorControlsRequest
|
|
1377
1497
|
* @return ListOperatorControlsResponse
|
|
1378
1498
|
* @throws OciError when an error occurs
|
|
1379
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1499
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/operatoraccesscontrol/ListOperatorControls.ts.html |here} to see how to use ListOperatorControls API.
|
|
1380
1500
|
*/
|
|
1381
1501
|
listOperatorControls(listOperatorControlsRequest) {
|
|
1382
1502
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1383
|
-
|
|
1503
|
+
if (this.logger)
|
|
1504
|
+
this.logger.debug("Calling operation OperatorControlClient#listOperatorControls.");
|
|
1384
1505
|
const operationName = "listOperatorControls";
|
|
1385
1506
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControl/ListOperatorControls";
|
|
1386
1507
|
const pathParams = {};
|
|
@@ -1400,6 +1521,8 @@ class OperatorControlClient {
|
|
|
1400
1521
|
};
|
|
1401
1522
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1402
1523
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listOperatorControlsRequest.retryConfiguration, specRetryConfiguration);
|
|
1524
|
+
if (this.logger)
|
|
1525
|
+
retrier.logger = this.logger;
|
|
1403
1526
|
const request = yield oci_common_1.composeRequest({
|
|
1404
1527
|
baseEndpoint: this._endpoint,
|
|
1405
1528
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1444,11 +1567,12 @@ class OperatorControlClient {
|
|
|
1444
1567
|
* @param UpdateOperatorControlRequest
|
|
1445
1568
|
* @return UpdateOperatorControlResponse
|
|
1446
1569
|
* @throws OciError when an error occurs
|
|
1447
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1570
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/operatoraccesscontrol/UpdateOperatorControl.ts.html |here} to see how to use UpdateOperatorControl API.
|
|
1448
1571
|
*/
|
|
1449
1572
|
updateOperatorControl(updateOperatorControlRequest) {
|
|
1450
1573
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1451
|
-
|
|
1574
|
+
if (this.logger)
|
|
1575
|
+
this.logger.debug("Calling operation OperatorControlClient#updateOperatorControl.");
|
|
1452
1576
|
const operationName = "updateOperatorControl";
|
|
1453
1577
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControl/UpdateOperatorControl";
|
|
1454
1578
|
const pathParams = {
|
|
@@ -1462,6 +1586,8 @@ class OperatorControlClient {
|
|
|
1462
1586
|
};
|
|
1463
1587
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1464
1588
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateOperatorControlRequest.retryConfiguration, specRetryConfiguration);
|
|
1589
|
+
if (this.logger)
|
|
1590
|
+
retrier.logger = this.logger;
|
|
1465
1591
|
const request = yield oci_common_1.composeRequest({
|
|
1466
1592
|
baseEndpoint: this._endpoint,
|
|
1467
1593
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1512,7 +1638,7 @@ var OperatorControlAssignmentApiKeys;
|
|
|
1512
1638
|
*/
|
|
1513
1639
|
class OperatorControlAssignmentClient {
|
|
1514
1640
|
constructor(params, clientConfiguration) {
|
|
1515
|
-
this["_realmSpecificEndpointTemplateEnabled"] =
|
|
1641
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
1516
1642
|
this["_endpoint"] = "";
|
|
1517
1643
|
this["_defaultHeaders"] = {};
|
|
1518
1644
|
this._circuitBreaker = null;
|
|
@@ -1571,7 +1697,11 @@ class OperatorControlAssignmentClient {
|
|
|
1571
1697
|
set endpoint(endpoint) {
|
|
1572
1698
|
this._endpoint = endpoint;
|
|
1573
1699
|
this._endpoint = this._endpoint + "/20200630";
|
|
1574
|
-
|
|
1700
|
+
if (this.logger)
|
|
1701
|
+
this.logger.info(`OperatorControlAssignmentClient endpoint set to ${this._endpoint}`);
|
|
1702
|
+
}
|
|
1703
|
+
get logger() {
|
|
1704
|
+
return common.LOG.logger;
|
|
1575
1705
|
}
|
|
1576
1706
|
/**
|
|
1577
1707
|
* Determines whether realm specific endpoint should be used or not.
|
|
@@ -1580,7 +1710,8 @@ class OperatorControlAssignmentClient {
|
|
|
1580
1710
|
*/
|
|
1581
1711
|
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
1582
1712
|
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
1583
|
-
|
|
1713
|
+
if (this.logger)
|
|
1714
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
1584
1715
|
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
1585
1716
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(OperatorControlAssignmentClient.serviceEndpointTemplate, this._region, OperatorControlAssignmentClient.endpointServiceName);
|
|
1586
1717
|
}
|
|
@@ -1647,11 +1778,12 @@ class OperatorControlAssignmentClient {
|
|
|
1647
1778
|
* @param ChangeOperatorControlAssignmentCompartmentRequest
|
|
1648
1779
|
* @return ChangeOperatorControlAssignmentCompartmentResponse
|
|
1649
1780
|
* @throws OciError when an error occurs
|
|
1650
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1781
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/operatoraccesscontrol/ChangeOperatorControlAssignmentCompartment.ts.html |here} to see how to use ChangeOperatorControlAssignmentCompartment API.
|
|
1651
1782
|
*/
|
|
1652
1783
|
changeOperatorControlAssignmentCompartment(changeOperatorControlAssignmentCompartmentRequest) {
|
|
1653
1784
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1654
|
-
|
|
1785
|
+
if (this.logger)
|
|
1786
|
+
this.logger.debug("Calling operation OperatorControlAssignmentClient#changeOperatorControlAssignmentCompartment.");
|
|
1655
1787
|
const operationName = "changeOperatorControlAssignmentCompartment";
|
|
1656
1788
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/ChangeOperatorControlAssignmentCompartment";
|
|
1657
1789
|
const pathParams = {
|
|
@@ -1666,6 +1798,8 @@ class OperatorControlAssignmentClient {
|
|
|
1666
1798
|
};
|
|
1667
1799
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1668
1800
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeOperatorControlAssignmentCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
1801
|
+
if (this.logger)
|
|
1802
|
+
retrier.logger = this.logger;
|
|
1669
1803
|
const request = yield oci_common_1.composeRequest({
|
|
1670
1804
|
baseEndpoint: this._endpoint,
|
|
1671
1805
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1701,11 +1835,12 @@ class OperatorControlAssignmentClient {
|
|
|
1701
1835
|
* @param CreateOperatorControlAssignmentRequest
|
|
1702
1836
|
* @return CreateOperatorControlAssignmentResponse
|
|
1703
1837
|
* @throws OciError when an error occurs
|
|
1704
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1838
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/operatoraccesscontrol/CreateOperatorControlAssignment.ts.html |here} to see how to use CreateOperatorControlAssignment API.
|
|
1705
1839
|
*/
|
|
1706
1840
|
createOperatorControlAssignment(createOperatorControlAssignmentRequest) {
|
|
1707
1841
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1708
|
-
|
|
1842
|
+
if (this.logger)
|
|
1843
|
+
this.logger.debug("Calling operation OperatorControlAssignmentClient#createOperatorControlAssignment.");
|
|
1709
1844
|
const operationName = "createOperatorControlAssignment";
|
|
1710
1845
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/CreateOperatorControlAssignment";
|
|
1711
1846
|
const pathParams = {};
|
|
@@ -1717,6 +1852,8 @@ class OperatorControlAssignmentClient {
|
|
|
1717
1852
|
};
|
|
1718
1853
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1719
1854
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createOperatorControlAssignmentRequest.retryConfiguration, specRetryConfiguration);
|
|
1855
|
+
if (this.logger)
|
|
1856
|
+
retrier.logger = this.logger;
|
|
1720
1857
|
const request = yield oci_common_1.composeRequest({
|
|
1721
1858
|
baseEndpoint: this._endpoint,
|
|
1722
1859
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1766,11 +1903,12 @@ class OperatorControlAssignmentClient {
|
|
|
1766
1903
|
* @param DeleteOperatorControlAssignmentRequest
|
|
1767
1904
|
* @return DeleteOperatorControlAssignmentResponse
|
|
1768
1905
|
* @throws OciError when an error occurs
|
|
1769
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1906
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/operatoraccesscontrol/DeleteOperatorControlAssignment.ts.html |here} to see how to use DeleteOperatorControlAssignment API.
|
|
1770
1907
|
*/
|
|
1771
1908
|
deleteOperatorControlAssignment(deleteOperatorControlAssignmentRequest) {
|
|
1772
1909
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1773
|
-
|
|
1910
|
+
if (this.logger)
|
|
1911
|
+
this.logger.debug("Calling operation OperatorControlAssignmentClient#deleteOperatorControlAssignment.");
|
|
1774
1912
|
const operationName = "deleteOperatorControlAssignment";
|
|
1775
1913
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/DeleteOperatorControlAssignment";
|
|
1776
1914
|
const pathParams = {
|
|
@@ -1786,6 +1924,8 @@ class OperatorControlAssignmentClient {
|
|
|
1786
1924
|
};
|
|
1787
1925
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1788
1926
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteOperatorControlAssignmentRequest.retryConfiguration, specRetryConfiguration);
|
|
1927
|
+
if (this.logger)
|
|
1928
|
+
retrier.logger = this.logger;
|
|
1789
1929
|
const request = yield oci_common_1.composeRequest({
|
|
1790
1930
|
baseEndpoint: this._endpoint,
|
|
1791
1931
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1814,17 +1954,82 @@ class OperatorControlAssignmentClient {
|
|
|
1814
1954
|
}
|
|
1815
1955
|
});
|
|
1816
1956
|
}
|
|
1957
|
+
/**
|
|
1958
|
+
* Returns the status of assignment validation associated with the assignmentId and the executionId.
|
|
1959
|
+
*
|
|
1960
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1961
|
+
* @param GetAssignmentValidationStatusRequest
|
|
1962
|
+
* @return GetAssignmentValidationStatusResponse
|
|
1963
|
+
* @throws OciError when an error occurs
|
|
1964
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/operatoraccesscontrol/GetAssignmentValidationStatus.ts.html |here} to see how to use GetAssignmentValidationStatus API.
|
|
1965
|
+
*/
|
|
1966
|
+
getAssignmentValidationStatus(getAssignmentValidationStatusRequest) {
|
|
1967
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1968
|
+
if (this.logger)
|
|
1969
|
+
this.logger.debug("Calling operation OperatorControlAssignmentClient#getAssignmentValidationStatus.");
|
|
1970
|
+
const operationName = "getAssignmentValidationStatus";
|
|
1971
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/GetAssignmentValidationStatus";
|
|
1972
|
+
const pathParams = {
|
|
1973
|
+
"{operatorControlAssignmentId}": getAssignmentValidationStatusRequest.operatorControlAssignmentId
|
|
1974
|
+
};
|
|
1975
|
+
const queryParams = {};
|
|
1976
|
+
let headerParams = {
|
|
1977
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1978
|
+
"opc-request-id": getAssignmentValidationStatusRequest.opcRequestId
|
|
1979
|
+
};
|
|
1980
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1981
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getAssignmentValidationStatusRequest.retryConfiguration, specRetryConfiguration);
|
|
1982
|
+
if (this.logger)
|
|
1983
|
+
retrier.logger = this.logger;
|
|
1984
|
+
const request = yield oci_common_1.composeRequest({
|
|
1985
|
+
baseEndpoint: this._endpoint,
|
|
1986
|
+
defaultHeaders: this._defaultHeaders,
|
|
1987
|
+
path: "/operatorControlAssignments/{operatorControlAssignmentId}/actions/getAssignmentValidationStatus",
|
|
1988
|
+
method: "GET",
|
|
1989
|
+
pathParams: pathParams,
|
|
1990
|
+
headerParams: headerParams,
|
|
1991
|
+
queryParams: queryParams
|
|
1992
|
+
});
|
|
1993
|
+
try {
|
|
1994
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1995
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1996
|
+
responseObject: {},
|
|
1997
|
+
body: yield response.json(),
|
|
1998
|
+
bodyKey: "assignmentValidationStatus",
|
|
1999
|
+
bodyModel: model.AssignmentValidationStatus,
|
|
2000
|
+
type: "model.AssignmentValidationStatus",
|
|
2001
|
+
responseHeaders: [
|
|
2002
|
+
{
|
|
2003
|
+
value: response.headers.get("opc-request-id"),
|
|
2004
|
+
key: "opcRequestId",
|
|
2005
|
+
dataType: "string"
|
|
2006
|
+
},
|
|
2007
|
+
{
|
|
2008
|
+
value: response.headers.get("opc-next-page"),
|
|
2009
|
+
key: "opcNextPage",
|
|
2010
|
+
dataType: "string"
|
|
2011
|
+
}
|
|
2012
|
+
]
|
|
2013
|
+
});
|
|
2014
|
+
return sdkResponse;
|
|
2015
|
+
}
|
|
2016
|
+
catch (err) {
|
|
2017
|
+
throw err;
|
|
2018
|
+
}
|
|
2019
|
+
});
|
|
2020
|
+
}
|
|
1817
2021
|
/**
|
|
1818
2022
|
* Gets the details of an Operator Control Assignment of the specified ID.
|
|
1819
2023
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1820
2024
|
* @param GetOperatorControlAssignmentRequest
|
|
1821
2025
|
* @return GetOperatorControlAssignmentResponse
|
|
1822
2026
|
* @throws OciError when an error occurs
|
|
1823
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2027
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/operatoraccesscontrol/GetOperatorControlAssignment.ts.html |here} to see how to use GetOperatorControlAssignment API.
|
|
1824
2028
|
*/
|
|
1825
2029
|
getOperatorControlAssignment(getOperatorControlAssignmentRequest) {
|
|
1826
2030
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1827
|
-
|
|
2031
|
+
if (this.logger)
|
|
2032
|
+
this.logger.debug("Calling operation OperatorControlAssignmentClient#getOperatorControlAssignment.");
|
|
1828
2033
|
const operationName = "getOperatorControlAssignment";
|
|
1829
2034
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/GetOperatorControlAssignment";
|
|
1830
2035
|
const pathParams = {
|
|
@@ -1837,6 +2042,8 @@ class OperatorControlAssignmentClient {
|
|
|
1837
2042
|
};
|
|
1838
2043
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1839
2044
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getOperatorControlAssignmentRequest.retryConfiguration, specRetryConfiguration);
|
|
2045
|
+
if (this.logger)
|
|
2046
|
+
retrier.logger = this.logger;
|
|
1840
2047
|
const request = yield oci_common_1.composeRequest({
|
|
1841
2048
|
baseEndpoint: this._endpoint,
|
|
1842
2049
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1880,11 +2087,12 @@ class OperatorControlAssignmentClient {
|
|
|
1880
2087
|
* @param ListOperatorControlAssignmentsRequest
|
|
1881
2088
|
* @return ListOperatorControlAssignmentsResponse
|
|
1882
2089
|
* @throws OciError when an error occurs
|
|
1883
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2090
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/operatoraccesscontrol/ListOperatorControlAssignments.ts.html |here} to see how to use ListOperatorControlAssignments API.
|
|
1884
2091
|
*/
|
|
1885
2092
|
listOperatorControlAssignments(listOperatorControlAssignmentsRequest) {
|
|
1886
2093
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1887
|
-
|
|
2094
|
+
if (this.logger)
|
|
2095
|
+
this.logger.debug("Calling operation OperatorControlAssignmentClient#listOperatorControlAssignments.");
|
|
1888
2096
|
const operationName = "listOperatorControlAssignments";
|
|
1889
2097
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/ListOperatorControlAssignments";
|
|
1890
2098
|
const pathParams = {};
|
|
@@ -1905,6 +2113,8 @@ class OperatorControlAssignmentClient {
|
|
|
1905
2113
|
};
|
|
1906
2114
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1907
2115
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listOperatorControlAssignmentsRequest.retryConfiguration, specRetryConfiguration);
|
|
2116
|
+
if (this.logger)
|
|
2117
|
+
retrier.logger = this.logger;
|
|
1908
2118
|
const request = yield oci_common_1.composeRequest({
|
|
1909
2119
|
baseEndpoint: this._endpoint,
|
|
1910
2120
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1949,11 +2159,12 @@ class OperatorControlAssignmentClient {
|
|
|
1949
2159
|
* @param UpdateOperatorControlAssignmentRequest
|
|
1950
2160
|
* @return UpdateOperatorControlAssignmentResponse
|
|
1951
2161
|
* @throws OciError when an error occurs
|
|
1952
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2162
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/operatoraccesscontrol/UpdateOperatorControlAssignment.ts.html |here} to see how to use UpdateOperatorControlAssignment API.
|
|
1953
2163
|
*/
|
|
1954
2164
|
updateOperatorControlAssignment(updateOperatorControlAssignmentRequest) {
|
|
1955
2165
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1956
|
-
|
|
2166
|
+
if (this.logger)
|
|
2167
|
+
this.logger.debug("Calling operation OperatorControlAssignmentClient#updateOperatorControlAssignment.");
|
|
1957
2168
|
const operationName = "updateOperatorControlAssignment";
|
|
1958
2169
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/UpdateOperatorControlAssignment";
|
|
1959
2170
|
const pathParams = {
|
|
@@ -1967,6 +2178,8 @@ class OperatorControlAssignmentClient {
|
|
|
1967
2178
|
};
|
|
1968
2179
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1969
2180
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateOperatorControlAssignmentRequest.retryConfiguration, specRetryConfiguration);
|
|
2181
|
+
if (this.logger)
|
|
2182
|
+
retrier.logger = this.logger;
|
|
1970
2183
|
const request = yield oci_common_1.composeRequest({
|
|
1971
2184
|
baseEndpoint: this._endpoint,
|
|
1972
2185
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -2005,6 +2218,69 @@ class OperatorControlAssignmentClient {
|
|
|
2005
2218
|
}
|
|
2006
2219
|
});
|
|
2007
2220
|
}
|
|
2221
|
+
/**
|
|
2222
|
+
* Validates the assignment for the specified Operator Control Assignment ID.
|
|
2223
|
+
*
|
|
2224
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2225
|
+
* @param ValidateOperatorAssignmentRequest
|
|
2226
|
+
* @return ValidateOperatorAssignmentResponse
|
|
2227
|
+
* @throws OciError when an error occurs
|
|
2228
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/operatoraccesscontrol/ValidateOperatorAssignment.ts.html |here} to see how to use ValidateOperatorAssignment API.
|
|
2229
|
+
*/
|
|
2230
|
+
validateOperatorAssignment(validateOperatorAssignmentRequest) {
|
|
2231
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2232
|
+
if (this.logger)
|
|
2233
|
+
this.logger.debug("Calling operation OperatorControlAssignmentClient#validateOperatorAssignment.");
|
|
2234
|
+
const operationName = "validateOperatorAssignment";
|
|
2235
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/ValidateOperatorAssignment";
|
|
2236
|
+
const pathParams = {
|
|
2237
|
+
"{operatorControlAssignmentId}": validateOperatorAssignmentRequest.operatorControlAssignmentId
|
|
2238
|
+
};
|
|
2239
|
+
const queryParams = {};
|
|
2240
|
+
let headerParams = {
|
|
2241
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2242
|
+
"opc-retry-token": validateOperatorAssignmentRequest.opcRetryToken,
|
|
2243
|
+
"if-match": validateOperatorAssignmentRequest.ifMatch,
|
|
2244
|
+
"opc-request-id": validateOperatorAssignmentRequest.opcRequestId
|
|
2245
|
+
};
|
|
2246
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2247
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, validateOperatorAssignmentRequest.retryConfiguration, specRetryConfiguration);
|
|
2248
|
+
if (this.logger)
|
|
2249
|
+
retrier.logger = this.logger;
|
|
2250
|
+
const request = yield oci_common_1.composeRequest({
|
|
2251
|
+
baseEndpoint: this._endpoint,
|
|
2252
|
+
defaultHeaders: this._defaultHeaders,
|
|
2253
|
+
path: "/operatorControlAssignments/{operatorControlAssignmentId}/actions/validateAssignment",
|
|
2254
|
+
method: "POST",
|
|
2255
|
+
bodyContent: common.ObjectSerializer.serialize(validateOperatorAssignmentRequest.validateOperatorAssignmentDetails, "ValidateOperatorAssignmentDetails", model.ValidateOperatorAssignmentDetails.getJsonObj),
|
|
2256
|
+
pathParams: pathParams,
|
|
2257
|
+
headerParams: headerParams,
|
|
2258
|
+
queryParams: queryParams
|
|
2259
|
+
});
|
|
2260
|
+
try {
|
|
2261
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2262
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2263
|
+
responseObject: {},
|
|
2264
|
+
responseHeaders: [
|
|
2265
|
+
{
|
|
2266
|
+
value: response.headers.get("opc-work-request-id"),
|
|
2267
|
+
key: "opcWorkRequestId",
|
|
2268
|
+
dataType: "string"
|
|
2269
|
+
},
|
|
2270
|
+
{
|
|
2271
|
+
value: response.headers.get("opc-request-id"),
|
|
2272
|
+
key: "opcRequestId",
|
|
2273
|
+
dataType: "string"
|
|
2274
|
+
}
|
|
2275
|
+
]
|
|
2276
|
+
});
|
|
2277
|
+
return sdkResponse;
|
|
2278
|
+
}
|
|
2279
|
+
catch (err) {
|
|
2280
|
+
throw err;
|
|
2281
|
+
}
|
|
2282
|
+
});
|
|
2283
|
+
}
|
|
2008
2284
|
}
|
|
2009
2285
|
exports.OperatorControlAssignmentClient = OperatorControlAssignmentClient;
|
|
2010
2286
|
OperatorControlAssignmentClient.serviceEndpointTemplate = "https://operator-access-control.{region}.oci.{secondLevelDomain}";
|