oci-operatoraccesscontrol 2.80.0 → 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 +52 -23
- package/lib/client.js +210 -23
- 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
|
@@ -203,7 +203,7 @@ class AccessRequestsClient {
|
|
|
203
203
|
* @param ApproveAccessRequestRequest
|
|
204
204
|
* @return ApproveAccessRequestResponse
|
|
205
205
|
* @throws OciError when an error occurs
|
|
206
|
-
* @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.
|
|
207
207
|
*/
|
|
208
208
|
approveAccessRequest(approveAccessRequestRequest) {
|
|
209
209
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -265,7 +265,7 @@ class AccessRequestsClient {
|
|
|
265
265
|
* @param GetAccessRequestRequest
|
|
266
266
|
* @return GetAccessRequestResponse
|
|
267
267
|
* @throws OciError when an error occurs
|
|
268
|
-
* @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.
|
|
269
269
|
*/
|
|
270
270
|
getAccessRequest(getAccessRequestRequest) {
|
|
271
271
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -317,6 +317,66 @@ class AccessRequestsClient {
|
|
|
317
317
|
}
|
|
318
318
|
});
|
|
319
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
|
+
}
|
|
320
380
|
/**
|
|
321
381
|
* Posts query for additional information for the given access request.
|
|
322
382
|
*
|
|
@@ -324,7 +384,7 @@ class AccessRequestsClient {
|
|
|
324
384
|
* @param InteractionRequestRequest
|
|
325
385
|
* @return InteractionRequestResponse
|
|
326
386
|
* @throws OciError when an error occurs
|
|
327
|
-
* @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.
|
|
328
388
|
*/
|
|
329
389
|
interactionRequest(interactionRequestRequest) {
|
|
330
390
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -391,7 +451,7 @@ class AccessRequestsClient {
|
|
|
391
451
|
* @param ListAccessRequestHistoriesRequest
|
|
392
452
|
* @return ListAccessRequestHistoriesResponse
|
|
393
453
|
* @throws OciError when an error occurs
|
|
394
|
-
* @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.
|
|
395
455
|
*/
|
|
396
456
|
listAccessRequestHistories(listAccessRequestHistoriesRequest) {
|
|
397
457
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -458,7 +518,7 @@ class AccessRequestsClient {
|
|
|
458
518
|
* @param ListAccessRequestsRequest
|
|
459
519
|
* @return ListAccessRequestsResponse
|
|
460
520
|
* @throws OciError when an error occurs
|
|
461
|
-
* @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.
|
|
462
522
|
*/
|
|
463
523
|
listAccessRequests(listAccessRequestsRequest) {
|
|
464
524
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -531,7 +591,7 @@ class AccessRequestsClient {
|
|
|
531
591
|
* @param ListInteractionsRequest
|
|
532
592
|
* @return ListInteractionsResponse
|
|
533
593
|
* @throws OciError when an error occurs
|
|
534
|
-
* @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.
|
|
535
595
|
*/
|
|
536
596
|
listInteractions(listInteractionsRequest) {
|
|
537
597
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -598,7 +658,7 @@ class AccessRequestsClient {
|
|
|
598
658
|
* @param RejectAccessRequestRequest
|
|
599
659
|
* @return RejectAccessRequestResponse
|
|
600
660
|
* @throws OciError when an error occurs
|
|
601
|
-
* @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.
|
|
602
662
|
*/
|
|
603
663
|
rejectAccessRequest(rejectAccessRequestRequest) {
|
|
604
664
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -661,7 +721,7 @@ class AccessRequestsClient {
|
|
|
661
721
|
* @param ReviewAccessRequestRequest
|
|
662
722
|
* @return ReviewAccessRequestResponse
|
|
663
723
|
* @throws OciError when an error occurs
|
|
664
|
-
* @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.
|
|
665
725
|
*/
|
|
666
726
|
reviewAccessRequest(reviewAccessRequestRequest) {
|
|
667
727
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -728,7 +788,7 @@ class AccessRequestsClient {
|
|
|
728
788
|
* @param RevokeAccessRequestRequest
|
|
729
789
|
* @return RevokeAccessRequestResponse
|
|
730
790
|
* @throws OciError when an error occurs
|
|
731
|
-
* @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.
|
|
732
792
|
*/
|
|
733
793
|
revokeAccessRequest(revokeAccessRequestRequest) {
|
|
734
794
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -914,7 +974,7 @@ class OperatorActionsClient {
|
|
|
914
974
|
* @param GetOperatorActionRequest
|
|
915
975
|
* @return GetOperatorActionResponse
|
|
916
976
|
* @throws OciError when an error occurs
|
|
917
|
-
* @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.
|
|
918
978
|
*/
|
|
919
979
|
getOperatorAction(getOperatorActionRequest) {
|
|
920
980
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -973,7 +1033,7 @@ class OperatorActionsClient {
|
|
|
973
1033
|
* @param ListOperatorActionsRequest
|
|
974
1034
|
* @return ListOperatorActionsResponse
|
|
975
1035
|
* @throws OciError when an error occurs
|
|
976
|
-
* @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.
|
|
977
1037
|
*/
|
|
978
1038
|
listOperatorActions(listOperatorActionsRequest) {
|
|
979
1039
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1189,7 +1249,7 @@ class OperatorControlClient {
|
|
|
1189
1249
|
* @param ChangeOperatorControlCompartmentRequest
|
|
1190
1250
|
* @return ChangeOperatorControlCompartmentResponse
|
|
1191
1251
|
* @throws OciError when an error occurs
|
|
1192
|
-
* @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.
|
|
1193
1253
|
*/
|
|
1194
1254
|
changeOperatorControlCompartment(changeOperatorControlCompartmentRequest) {
|
|
1195
1255
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1247,7 +1307,7 @@ class OperatorControlClient {
|
|
|
1247
1307
|
* @param CreateOperatorControlRequest
|
|
1248
1308
|
* @return CreateOperatorControlResponse
|
|
1249
1309
|
* @throws OciError when an error occurs
|
|
1250
|
-
* @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.
|
|
1251
1311
|
*/
|
|
1252
1312
|
createOperatorControl(createOperatorControlRequest) {
|
|
1253
1313
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1315,7 +1375,7 @@ class OperatorControlClient {
|
|
|
1315
1375
|
* @param DeleteOperatorControlRequest
|
|
1316
1376
|
* @return DeleteOperatorControlResponse
|
|
1317
1377
|
* @throws OciError when an error occurs
|
|
1318
|
-
* @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.
|
|
1319
1379
|
*/
|
|
1320
1380
|
deleteOperatorControl(deleteOperatorControlRequest) {
|
|
1321
1381
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1372,7 +1432,7 @@ class OperatorControlClient {
|
|
|
1372
1432
|
* @param GetOperatorControlRequest
|
|
1373
1433
|
* @return GetOperatorControlResponse
|
|
1374
1434
|
* @throws OciError when an error occurs
|
|
1375
|
-
* @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.
|
|
1376
1436
|
*/
|
|
1377
1437
|
getOperatorControl(getOperatorControlRequest) {
|
|
1378
1438
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1436,7 +1496,7 @@ class OperatorControlClient {
|
|
|
1436
1496
|
* @param ListOperatorControlsRequest
|
|
1437
1497
|
* @return ListOperatorControlsResponse
|
|
1438
1498
|
* @throws OciError when an error occurs
|
|
1439
|
-
* @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.
|
|
1440
1500
|
*/
|
|
1441
1501
|
listOperatorControls(listOperatorControlsRequest) {
|
|
1442
1502
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1507,7 +1567,7 @@ class OperatorControlClient {
|
|
|
1507
1567
|
* @param UpdateOperatorControlRequest
|
|
1508
1568
|
* @return UpdateOperatorControlResponse
|
|
1509
1569
|
* @throws OciError when an error occurs
|
|
1510
|
-
* @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.
|
|
1511
1571
|
*/
|
|
1512
1572
|
updateOperatorControl(updateOperatorControlRequest) {
|
|
1513
1573
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1718,7 +1778,7 @@ class OperatorControlAssignmentClient {
|
|
|
1718
1778
|
* @param ChangeOperatorControlAssignmentCompartmentRequest
|
|
1719
1779
|
* @return ChangeOperatorControlAssignmentCompartmentResponse
|
|
1720
1780
|
* @throws OciError when an error occurs
|
|
1721
|
-
* @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.
|
|
1722
1782
|
*/
|
|
1723
1783
|
changeOperatorControlAssignmentCompartment(changeOperatorControlAssignmentCompartmentRequest) {
|
|
1724
1784
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1775,7 +1835,7 @@ class OperatorControlAssignmentClient {
|
|
|
1775
1835
|
* @param CreateOperatorControlAssignmentRequest
|
|
1776
1836
|
* @return CreateOperatorControlAssignmentResponse
|
|
1777
1837
|
* @throws OciError when an error occurs
|
|
1778
|
-
* @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.
|
|
1779
1839
|
*/
|
|
1780
1840
|
createOperatorControlAssignment(createOperatorControlAssignmentRequest) {
|
|
1781
1841
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1843,7 +1903,7 @@ class OperatorControlAssignmentClient {
|
|
|
1843
1903
|
* @param DeleteOperatorControlAssignmentRequest
|
|
1844
1904
|
* @return DeleteOperatorControlAssignmentResponse
|
|
1845
1905
|
* @throws OciError when an error occurs
|
|
1846
|
-
* @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.
|
|
1847
1907
|
*/
|
|
1848
1908
|
deleteOperatorControlAssignment(deleteOperatorControlAssignmentRequest) {
|
|
1849
1909
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1894,13 +1954,77 @@ class OperatorControlAssignmentClient {
|
|
|
1894
1954
|
}
|
|
1895
1955
|
});
|
|
1896
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
|
+
}
|
|
1897
2021
|
/**
|
|
1898
2022
|
* Gets the details of an Operator Control Assignment of the specified ID.
|
|
1899
2023
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1900
2024
|
* @param GetOperatorControlAssignmentRequest
|
|
1901
2025
|
* @return GetOperatorControlAssignmentResponse
|
|
1902
2026
|
* @throws OciError when an error occurs
|
|
1903
|
-
* @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.
|
|
1904
2028
|
*/
|
|
1905
2029
|
getOperatorControlAssignment(getOperatorControlAssignmentRequest) {
|
|
1906
2030
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1963,7 +2087,7 @@ class OperatorControlAssignmentClient {
|
|
|
1963
2087
|
* @param ListOperatorControlAssignmentsRequest
|
|
1964
2088
|
* @return ListOperatorControlAssignmentsResponse
|
|
1965
2089
|
* @throws OciError when an error occurs
|
|
1966
|
-
* @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.
|
|
1967
2091
|
*/
|
|
1968
2092
|
listOperatorControlAssignments(listOperatorControlAssignmentsRequest) {
|
|
1969
2093
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2035,7 +2159,7 @@ class OperatorControlAssignmentClient {
|
|
|
2035
2159
|
* @param UpdateOperatorControlAssignmentRequest
|
|
2036
2160
|
* @return UpdateOperatorControlAssignmentResponse
|
|
2037
2161
|
* @throws OciError when an error occurs
|
|
2038
|
-
* @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.
|
|
2039
2163
|
*/
|
|
2040
2164
|
updateOperatorControlAssignment(updateOperatorControlAssignmentRequest) {
|
|
2041
2165
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2094,6 +2218,69 @@ class OperatorControlAssignmentClient {
|
|
|
2094
2218
|
}
|
|
2095
2219
|
});
|
|
2096
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
|
+
}
|
|
2097
2284
|
}
|
|
2098
2285
|
exports.OperatorControlAssignmentClient = OperatorControlAssignmentClient;
|
|
2099
2286
|
OperatorControlAssignmentClient.serviceEndpointTemplate = "https://operator-access-control.{region}.oci.{secondLevelDomain}";
|