oci-apiaccesscontrol 2.111.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +89 -0
- package/NOTICE.txt +1 -0
- package/README.md +22 -0
- package/THIRD_PARTY_LICENSES.txt +576 -0
- package/index.d.ts +37 -0
- package/index.js +60 -0
- package/index.js.map +1 -0
- package/lib/apimetadata-waiter.d.ts +35 -0
- package/lib/apimetadata-waiter.js +71 -0
- package/lib/apimetadata-waiter.js.map +1 -0
- package/lib/client.d.ts +551 -0
- package/lib/client.js +2115 -0
- package/lib/client.js.map +1 -0
- package/lib/model/action-type.d.ts +38 -0
- package/lib/model/action-type.js +49 -0
- package/lib/model/action-type.js.map +1 -0
- package/lib/model/api-metadata-by-entity-type-collection.d.ts +32 -0
- package/lib/model/api-metadata-by-entity-type-collection.js +67 -0
- package/lib/model/api-metadata-by-entity-type-collection.js.map +1 -0
- package/lib/model/api-metadata-by-entity-type-summary.d.ts +69 -0
- package/lib/model/api-metadata-by-entity-type-summary.js +67 -0
- package/lib/model/api-metadata-by-entity-type-summary.js.map +1 -0
- package/lib/model/api-metadata-collection.d.ts +32 -0
- package/lib/model/api-metadata-collection.js +67 -0
- package/lib/model/api-metadata-collection.js.map +1 -0
- package/lib/model/api-metadata-summary.d.ts +107 -0
- package/lib/model/api-metadata-summary.js +35 -0
- package/lib/model/api-metadata-summary.js.map +1 -0
- package/lib/model/api-metadata.d.ts +137 -0
- package/lib/model/api-metadata.js +49 -0
- package/lib/model/api-metadata.js.map +1 -0
- package/lib/model/approve-privileged-api-request-details.d.ts +36 -0
- package/lib/model/approve-privileged-api-request-details.js +35 -0
- package/lib/model/approve-privileged-api-request-details.js.map +1 -0
- package/lib/model/approver-detail.d.ts +49 -0
- package/lib/model/approver-detail.js +35 -0
- package/lib/model/approver-detail.js.map +1 -0
- package/lib/model/change-privileged-api-control-compartment-details.d.ts +32 -0
- package/lib/model/change-privileged-api-control-compartment-details.js +35 -0
- package/lib/model/change-privileged-api-control-compartment-details.js.map +1 -0
- package/lib/model/close-privileged-api-request-details.d.ts +31 -0
- package/lib/model/close-privileged-api-request-details.js +35 -0
- package/lib/model/close-privileged-api-request-details.js.map +1 -0
- package/lib/model/create-privileged-api-control-details.d.ts +88 -0
- package/lib/model/create-privileged-api-control-details.js +67 -0
- package/lib/model/create-privileged-api-control-details.js.map +1 -0
- package/lib/model/create-privileged-api-request-details.d.ts +107 -0
- package/lib/model/create-privileged-api-request-details.js +67 -0
- package/lib/model/create-privileged-api-request-details.js.map +1 -0
- package/lib/model/index.d.ts +90 -0
- package/lib/model/index.js +113 -0
- package/lib/model/index.js.map +1 -0
- package/lib/model/operation-status.d.ts +40 -0
- package/lib/model/operation-status.js +51 -0
- package/lib/model/operation-status.js.map +1 -0
- package/lib/model/operation-type.d.ts +55 -0
- package/lib/model/operation-type.js +66 -0
- package/lib/model/operation-type.js.map +1 -0
- package/lib/model/privileged-api-control-collection.d.ts +32 -0
- package/lib/model/privileged-api-control-collection.js +67 -0
- package/lib/model/privileged-api-control-collection.js.map +1 -0
- package/lib/model/privileged-api-control-summary.d.ts +108 -0
- package/lib/model/privileged-api-control-summary.js +35 -0
- package/lib/model/privileged-api-control-summary.js.map +1 -0
- package/lib/model/privileged-api-control.d.ts +162 -0
- package/lib/model/privileged-api-control.js +82 -0
- package/lib/model/privileged-api-control.js.map +1 -0
- package/lib/model/privileged-api-details.d.ts +39 -0
- package/lib/model/privileged-api-details.js +35 -0
- package/lib/model/privileged-api-details.js.map +1 -0
- package/lib/model/privileged-api-request-collection.d.ts +32 -0
- package/lib/model/privileged-api-request-collection.js +67 -0
- package/lib/model/privileged-api-request-collection.js.map +1 -0
- package/lib/model/privileged-api-request-operation-details.d.ts +35 -0
- package/lib/model/privileged-api-request-operation-details.js +35 -0
- package/lib/model/privileged-api-request-operation-details.js.map +1 -0
- package/lib/model/privileged-api-request-severity.d.ts +36 -0
- package/lib/model/privileged-api-request-severity.js +47 -0
- package/lib/model/privileged-api-request-severity.js.map +1 -0
- package/lib/model/privileged-api-request-summary.d.ts +139 -0
- package/lib/model/privileged-api-request-summary.js +67 -0
- package/lib/model/privileged-api-request-summary.js.map +1 -0
- package/lib/model/privileged-api-request.d.ts +232 -0
- package/lib/model/privileged-api-request.js +116 -0
- package/lib/model/privileged-api-request.js.map +1 -0
- package/lib/model/reject-privileged-api-request-details.d.ts +31 -0
- package/lib/model/reject-privileged-api-request-details.js +35 -0
- package/lib/model/reject-privileged-api-request-details.js.map +1 -0
- package/lib/model/revoke-privileged-api-request-details.d.ts +31 -0
- package/lib/model/revoke-privileged-api-request-details.js +35 -0
- package/lib/model/revoke-privileged-api-request-details.js.map +1 -0
- package/lib/model/sort-order.d.ts +36 -0
- package/lib/model/sort-order.js +47 -0
- package/lib/model/sort-order.js.map +1 -0
- package/lib/model/update-privileged-api-control-details.d.ts +83 -0
- package/lib/model/update-privileged-api-control-details.js +67 -0
- package/lib/model/update-privileged-api-control-details.js.map +1 -0
- package/lib/model/work-request-error-collection.d.ts +32 -0
- package/lib/model/work-request-error-collection.js +67 -0
- package/lib/model/work-request-error-collection.js.map +1 -0
- package/lib/model/work-request-error.d.ts +43 -0
- package/lib/model/work-request-error.js +35 -0
- package/lib/model/work-request-error.js.map +1 -0
- package/lib/model/work-request-log-entry-collection.d.ts +32 -0
- package/lib/model/work-request-log-entry-collection.js +67 -0
- package/lib/model/work-request-log-entry-collection.js.map +1 -0
- package/lib/model/work-request-log-entry.d.ts +37 -0
- package/lib/model/work-request-log-entry.js +35 -0
- package/lib/model/work-request-log-entry.js.map +1 -0
- package/lib/model/work-request-resource-metadata-key.d.ts +33 -0
- package/lib/model/work-request-resource-metadata-key.js +44 -0
- package/lib/model/work-request-resource-metadata-key.js.map +1 -0
- package/lib/model/work-request-resource.d.ts +54 -0
- package/lib/model/work-request-resource.js +35 -0
- package/lib/model/work-request-resource.js.map +1 -0
- package/lib/model/work-request-summary-collection.d.ts +32 -0
- package/lib/model/work-request-summary-collection.js +67 -0
- package/lib/model/work-request-summary-collection.js.map +1 -0
- package/lib/model/work-request-summary.d.ts +79 -0
- package/lib/model/work-request-summary.js +67 -0
- package/lib/model/work-request-summary.js.map +1 -0
- package/lib/model/work-request.d.ts +82 -0
- package/lib/model/work-request.js +67 -0
- package/lib/model/work-request.js.map +1 -0
- package/lib/privilegedapicontrol-waiter.d.ts +35 -0
- package/lib/privilegedapicontrol-waiter.js +71 -0
- package/lib/privilegedapicontrol-waiter.js.map +1 -0
- package/lib/privilegedapirequests-waiter.d.ts +35 -0
- package/lib/privilegedapirequests-waiter.js +51 -0
- package/lib/privilegedapirequests-waiter.js.map +1 -0
- package/lib/privilegedapiworkrequest-waiter.d.ts +33 -0
- package/lib/privilegedapiworkrequest-waiter.js +50 -0
- package/lib/privilegedapiworkrequest-waiter.js.map +1 -0
- package/lib/request/approve-privileged-api-request-request.d.ts +52 -0
- package/lib/request/approve-privileged-api-request-request.js +15 -0
- package/lib/request/approve-privileged-api-request-request.js.map +1 -0
- package/lib/request/cancel-work-request-request.d.ts +38 -0
- package/lib/request/cancel-work-request-request.js +15 -0
- package/lib/request/cancel-work-request-request.js.map +1 -0
- package/lib/request/change-privileged-api-control-compartment-request.d.ts +52 -0
- package/lib/request/change-privileged-api-control-compartment-request.js +15 -0
- package/lib/request/change-privileged-api-control-compartment-request.js.map +1 -0
- package/lib/request/close-privileged-api-request-request.d.ts +52 -0
- package/lib/request/close-privileged-api-request-request.js +15 -0
- package/lib/request/close-privileged-api-request-request.js.map +1 -0
- package/lib/request/create-privileged-api-control-request.d.ts +40 -0
- package/lib/request/create-privileged-api-control-request.js +15 -0
- package/lib/request/create-privileged-api-control-request.js.map +1 -0
- package/lib/request/create-privileged-api-request-request.d.ts +40 -0
- package/lib/request/create-privileged-api-request-request.js +15 -0
- package/lib/request/create-privileged-api-request-request.js.map +1 -0
- package/lib/request/delete-privileged-api-control-request.d.ts +42 -0
- package/lib/request/delete-privileged-api-control-request.js +15 -0
- package/lib/request/delete-privileged-api-control-request.js.map +1 -0
- package/lib/request/get-api-metadata-request.d.ts +30 -0
- package/lib/request/get-api-metadata-request.js +15 -0
- package/lib/request/get-api-metadata-request.js.map +1 -0
- package/lib/request/get-privileged-api-control-request.d.ts +30 -0
- package/lib/request/get-privileged-api-control-request.js +15 -0
- package/lib/request/get-privileged-api-control-request.js.map +1 -0
- package/lib/request/get-privileged-api-request-request.d.ts +30 -0
- package/lib/request/get-privileged-api-request-request.js +15 -0
- package/lib/request/get-privileged-api-request-request.js.map +1 -0
- package/lib/request/get-work-request-request.d.ts +30 -0
- package/lib/request/get-work-request-request.js +15 -0
- package/lib/request/get-work-request-request.js.map +1 -0
- package/lib/request/index.d.ts +60 -0
- package/lib/request/index.js +55 -0
- package/lib/request/index.js.map +1 -0
- package/lib/request/list-api-metadata-by-entity-types-request.d.ts +75 -0
- package/lib/request/list-api-metadata-by-entity-types-request.js +24 -0
- package/lib/request/list-api-metadata-by-entity-types-request.js.map +1 -0
- package/lib/request/list-api-metadata-request.d.ts +75 -0
- package/lib/request/list-api-metadata-request.js +24 -0
- package/lib/request/list-api-metadata-request.js.map +1 -0
- package/lib/request/list-privileged-api-controls-request.d.ts +79 -0
- package/lib/request/list-privileged-api-controls-request.js +24 -0
- package/lib/request/list-privileged-api-controls-request.js.map +1 -0
- package/lib/request/list-privileged-api-requests-request.d.ts +89 -0
- package/lib/request/list-privileged-api-requests-request.js +24 -0
- package/lib/request/list-privileged-api-requests-request.js.map +1 -0
- package/lib/request/list-work-request-errors-request.d.ts +59 -0
- package/lib/request/list-work-request-errors-request.js +23 -0
- package/lib/request/list-work-request-errors-request.js.map +1 -0
- package/lib/request/list-work-request-logs-request.d.ts +59 -0
- package/lib/request/list-work-request-logs-request.js +23 -0
- package/lib/request/list-work-request-logs-request.js.map +1 -0
- package/lib/request/list-work-requests-request.d.ts +71 -0
- package/lib/request/list-work-requests-request.js +23 -0
- package/lib/request/list-work-requests-request.js.map +1 -0
- package/lib/request/reject-privileged-api-request-request.d.ts +52 -0
- package/lib/request/reject-privileged-api-request-request.js +15 -0
- package/lib/request/reject-privileged-api-request-request.js.map +1 -0
- package/lib/request/revoke-privileged-api-request-request.d.ts +52 -0
- package/lib/request/revoke-privileged-api-request-request.js +15 -0
- package/lib/request/revoke-privileged-api-request-request.js.map +1 -0
- package/lib/request/update-privileged-api-control-request.d.ts +43 -0
- package/lib/request/update-privileged-api-control-request.js +15 -0
- package/lib/request/update-privileged-api-control-request.js.map +1 -0
- package/lib/response/approve-privileged-api-request-response.d.ts +26 -0
- package/lib/response/approve-privileged-api-request-response.js +15 -0
- package/lib/response/approve-privileged-api-request-response.js.map +1 -0
- package/lib/response/cancel-work-request-response.d.ts +20 -0
- package/lib/response/cancel-work-request-response.js +15 -0
- package/lib/response/cancel-work-request-response.js.map +1 -0
- package/lib/response/change-privileged-api-control-compartment-response.d.ts +26 -0
- package/lib/response/change-privileged-api-control-compartment-response.js +15 -0
- package/lib/response/change-privileged-api-control-compartment-response.js.map +1 -0
- package/lib/response/close-privileged-api-request-response.d.ts +26 -0
- package/lib/response/close-privileged-api-request-response.js +15 -0
- package/lib/response/close-privileged-api-request-response.js.map +1 -0
- package/lib/response/create-privileged-api-control-response.d.ts +44 -0
- package/lib/response/create-privileged-api-control-response.js +15 -0
- package/lib/response/create-privileged-api-control-response.js.map +1 -0
- package/lib/response/create-privileged-api-request-response.d.ts +44 -0
- package/lib/response/create-privileged-api-request-response.js +15 -0
- package/lib/response/create-privileged-api-request-response.js.map +1 -0
- package/lib/response/delete-privileged-api-control-response.d.ts +26 -0
- package/lib/response/delete-privileged-api-control-response.js +15 -0
- package/lib/response/delete-privileged-api-control-response.js.map +1 -0
- package/lib/response/get-api-metadata-response.d.ts +30 -0
- package/lib/response/get-api-metadata-response.js +15 -0
- package/lib/response/get-api-metadata-response.js.map +1 -0
- package/lib/response/get-privileged-api-control-response.d.ts +30 -0
- package/lib/response/get-privileged-api-control-response.js +15 -0
- package/lib/response/get-privileged-api-control-response.js.map +1 -0
- package/lib/response/get-privileged-api-request-response.d.ts +30 -0
- package/lib/response/get-privileged-api-request-response.js +15 -0
- package/lib/response/get-privileged-api-request-response.js.map +1 -0
- package/lib/response/get-work-request-response.d.ts +34 -0
- package/lib/response/get-work-request-response.js +15 -0
- package/lib/response/get-work-request-response.js.map +1 -0
- package/lib/response/index.d.ts +60 -0
- package/lib/response/index.js +21 -0
- package/lib/response/index.js.map +1 -0
- package/lib/response/list-api-metadata-by-entity-types-response.d.ts +31 -0
- package/lib/response/list-api-metadata-by-entity-types-response.js +15 -0
- package/lib/response/list-api-metadata-by-entity-types-response.js.map +1 -0
- package/lib/response/list-api-metadata-response.d.ts +31 -0
- package/lib/response/list-api-metadata-response.js +15 -0
- package/lib/response/list-api-metadata-response.js.map +1 -0
- package/lib/response/list-privileged-api-controls-response.d.ts +31 -0
- package/lib/response/list-privileged-api-controls-response.js +15 -0
- package/lib/response/list-privileged-api-controls-response.js.map +1 -0
- package/lib/response/list-privileged-api-requests-response.d.ts +31 -0
- package/lib/response/list-privileged-api-requests-response.js +15 -0
- package/lib/response/list-privileged-api-requests-response.js.map +1 -0
- package/lib/response/list-work-request-errors-response.d.ts +31 -0
- package/lib/response/list-work-request-errors-response.js +15 -0
- package/lib/response/list-work-request-errors-response.js.map +1 -0
- package/lib/response/list-work-request-logs-response.d.ts +31 -0
- package/lib/response/list-work-request-logs-response.js +15 -0
- package/lib/response/list-work-request-logs-response.js.map +1 -0
- package/lib/response/list-work-requests-response.d.ts +31 -0
- package/lib/response/list-work-requests-response.js +15 -0
- package/lib/response/list-work-requests-response.js.map +1 -0
- package/lib/response/reject-privileged-api-request-response.d.ts +26 -0
- package/lib/response/reject-privileged-api-request-response.js +15 -0
- package/lib/response/reject-privileged-api-request-response.js.map +1 -0
- package/lib/response/revoke-privileged-api-request-response.d.ts +26 -0
- package/lib/response/revoke-privileged-api-request-response.js +15 -0
- package/lib/response/revoke-privileged-api-request-response.js.map +1 -0
- package/lib/response/update-privileged-api-control-response.d.ts +26 -0
- package/lib/response/update-privileged-api-control-response.js +15 -0
- package/lib/response/update-privileged-api-control-response.js.map +1 -0
- package/package.json +29 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Oracle API Access Control
|
|
3
|
+
* This service is used to restrict the control plane service apis; so that everybody won't be
|
|
4
|
+
able to access those apis.
|
|
5
|
+
There are two main resouces defined as a part of this service
|
|
6
|
+
1. PrivilegedApiControl: This is created by the customer which defines which service apis are
|
|
7
|
+
controlled and who can access it.
|
|
8
|
+
2. PrivilegedApiRequest: This is a request object again created by the customer operators who seek access to those privileged apis. After a request is obtained based on the PrivilegedAccessControl for which the api belongs to, either it can be approved so that the requested person can execute the service apis or it will wait for the customer to approve it.
|
|
9
|
+
|
|
10
|
+
* OpenAPI spec version: 20241130
|
|
11
|
+
*
|
|
12
|
+
*
|
|
13
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
14
|
+
* Do not edit the class manually.
|
|
15
|
+
*
|
|
16
|
+
* Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
|
|
17
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
18
|
+
*/
|
|
19
|
+
import * as serviceRequests from "./request";
|
|
20
|
+
import * as serviceResponses from "./response";
|
|
21
|
+
import * as models from "./model";
|
|
22
|
+
import { ApiMetadataClient } from "./client";
|
|
23
|
+
export declare class ApiMetadataWaiter {
|
|
24
|
+
private client;
|
|
25
|
+
private readonly config?;
|
|
26
|
+
constructor(client: ApiMetadataClient, config?: Partial<import("oci-common/lib/waiter").WaiterConfigurationDetails> | undefined);
|
|
27
|
+
/**
|
|
28
|
+
* Waits forApiMetadata till it reaches any of the provided states
|
|
29
|
+
*
|
|
30
|
+
* @param request the request to send
|
|
31
|
+
* @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states
|
|
32
|
+
* @return response returns GetApiMetadataResponse | null (null in case of 404 response)
|
|
33
|
+
*/
|
|
34
|
+
forApiMetadata(request: serviceRequests.GetApiMetadataRequest, ...targetStates: models.ApiMetadata.LifecycleState[]): Promise<serviceResponses.GetApiMetadataResponse | null>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Oracle API Access Control
|
|
4
|
+
* This service is used to restrict the control plane service apis; so that everybody won't be
|
|
5
|
+
able to access those apis.
|
|
6
|
+
There are two main resouces defined as a part of this service
|
|
7
|
+
1. PrivilegedApiControl: This is created by the customer which defines which service apis are
|
|
8
|
+
controlled and who can access it.
|
|
9
|
+
2. PrivilegedApiRequest: This is a request object again created by the customer operators who seek access to those privileged apis. After a request is obtained based on the PrivilegedAccessControl for which the api belongs to, either it can be approved so that the requested person can execute the service apis or it will wait for the customer to approve it.
|
|
10
|
+
|
|
11
|
+
* OpenAPI spec version: 20241130
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
15
|
+
* Do not edit the class manually.
|
|
16
|
+
*
|
|
17
|
+
* Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
|
|
18
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
19
|
+
*/
|
|
20
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
23
|
+
}) : (function(o, m, k, k2) {
|
|
24
|
+
if (k2 === undefined) k2 = k;
|
|
25
|
+
o[k2] = m[k];
|
|
26
|
+
}));
|
|
27
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
28
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
29
|
+
}) : function(o, v) {
|
|
30
|
+
o["default"] = v;
|
|
31
|
+
});
|
|
32
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
33
|
+
if (mod && mod.__esModule) return mod;
|
|
34
|
+
var result = {};
|
|
35
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
36
|
+
__setModuleDefault(result, mod);
|
|
37
|
+
return result;
|
|
38
|
+
};
|
|
39
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
40
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
41
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
42
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
43
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
44
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
45
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
+
exports.ApiMetadataWaiter = void 0;
|
|
50
|
+
const models = __importStar(require("./model"));
|
|
51
|
+
const oci_common_1 = require("oci-common");
|
|
52
|
+
class ApiMetadataWaiter {
|
|
53
|
+
constructor(client, config) {
|
|
54
|
+
this.client = client;
|
|
55
|
+
this.config = config;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Waits forApiMetadata till it reaches any of the provided states
|
|
59
|
+
*
|
|
60
|
+
* @param request the request to send
|
|
61
|
+
* @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states
|
|
62
|
+
* @return response returns GetApiMetadataResponse | null (null in case of 404 response)
|
|
63
|
+
*/
|
|
64
|
+
forApiMetadata(request, ...targetStates) {
|
|
65
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
66
|
+
return oci_common_1.genericTerminalConditionWaiter(this.config, () => this.client.getApiMetadata(request), response => targetStates.includes(response.apiMetadata.lifecycleState), targetStates.includes(models.ApiMetadata.LifecycleState.Deleted));
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.ApiMetadataWaiter = ApiMetadataWaiter;
|
|
71
|
+
//# sourceMappingURL=apimetadata-waiter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apimetadata-waiter.js","sourceRoot":"","sources":["../../../../lib/apiaccesscontrol/lib/apimetadata-waiter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIH,gDAAkC;AAElC,2CAAgG;AAEhG,MAAa,iBAAiB;IAC5B,YACU,MAAyB,EAChB,MAA4B;QADrC,WAAM,GAAN,MAAM,CAAmB;QAChB,WAAM,GAAN,MAAM,CAAsB;IAC5C,CAAC;IAEJ;;;;;;OAMG;IACU,cAAc,CACzB,OAA8C,EAC9C,GAAG,YAAiD;;YAEpD,OAAO,2CAA8B,CACnC,IAAI,CAAC,MAAM,EACX,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,OAAO,CAAC,EACzC,QAAQ,CAAC,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC,cAAe,CAAC,EACvE,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,WAAW,CAAC,cAAc,CAAC,OAAO,CAAC,CACjE,CAAC;QACJ,CAAC;KAAA;CACF;AAxBD,8CAwBC"}
|
package/lib/client.d.ts
ADDED
|
@@ -0,0 +1,551 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Oracle API Access Control
|
|
3
|
+
* This service is used to restrict the control plane service apis; so that everybody won't be
|
|
4
|
+
able to access those apis.
|
|
5
|
+
There are two main resouces defined as a part of this service
|
|
6
|
+
1. PrivilegedApiControl: This is created by the customer which defines which service apis are
|
|
7
|
+
controlled and who can access it.
|
|
8
|
+
2. PrivilegedApiRequest: This is a request object again created by the customer operators who seek access to those privileged apis. After a request is obtained based on the PrivilegedAccessControl for which the api belongs to, either it can be approved so that the requested person can execute the service apis or it will wait for the customer to approve it.
|
|
9
|
+
|
|
10
|
+
* OpenAPI spec version: 20241130
|
|
11
|
+
*
|
|
12
|
+
*
|
|
13
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
14
|
+
* Do not edit the class manually.
|
|
15
|
+
*
|
|
16
|
+
* Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
|
|
17
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
18
|
+
*/
|
|
19
|
+
import common = require("oci-common");
|
|
20
|
+
import * as requests from "./request";
|
|
21
|
+
import * as responses from "./response";
|
|
22
|
+
import { ApiMetadataWaiter } from "./apimetadata-waiter";
|
|
23
|
+
import { PrivilegedApiControlWaiter } from "./privilegedapicontrol-waiter";
|
|
24
|
+
import { PrivilegedApiRequestsWaiter } from "./privilegedapirequests-waiter";
|
|
25
|
+
import { PrivilegedApiWorkRequestWaiter } from "./privilegedapiworkrequest-waiter";
|
|
26
|
+
declare const Breaker: any;
|
|
27
|
+
export declare enum ApiMetadataApiKeys {
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
31
|
+
*/
|
|
32
|
+
export declare class ApiMetadataClient {
|
|
33
|
+
protected static serviceEndpointTemplate: string;
|
|
34
|
+
protected static endpointServiceName: string;
|
|
35
|
+
protected "_realmSpecificEndpointTemplateEnabled": boolean | undefined;
|
|
36
|
+
protected "_endpoint": string;
|
|
37
|
+
protected "_defaultHeaders": any;
|
|
38
|
+
protected "_waiters": ApiMetadataWaiter;
|
|
39
|
+
protected "_clientConfiguration": common.ClientConfiguration;
|
|
40
|
+
protected _circuitBreaker: typeof Breaker | null;
|
|
41
|
+
protected _httpOptions: any;
|
|
42
|
+
protected _bodyDuplexMode: any;
|
|
43
|
+
targetService: string;
|
|
44
|
+
protected _regionId: string;
|
|
45
|
+
protected "_region": common.Region;
|
|
46
|
+
protected _lastSetRegionOrRegionId: string;
|
|
47
|
+
protected _httpClient: common.HttpClient;
|
|
48
|
+
protected _authProvider: common.AuthenticationDetailsProvider | undefined;
|
|
49
|
+
constructor(params: common.AuthParams, clientConfiguration?: common.ClientConfiguration);
|
|
50
|
+
/**
|
|
51
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
52
|
+
*/
|
|
53
|
+
get endpoint(): string;
|
|
54
|
+
/**
|
|
55
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
56
|
+
* @param endpoint The endpoint of the service.
|
|
57
|
+
*/
|
|
58
|
+
set endpoint(endpoint: string);
|
|
59
|
+
get logger(): import("oci-common/lib/log").Logger;
|
|
60
|
+
/**
|
|
61
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
62
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
63
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
64
|
+
*/
|
|
65
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled: boolean);
|
|
66
|
+
/**
|
|
67
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
68
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
69
|
+
* @param region The region of the service.
|
|
70
|
+
*/
|
|
71
|
+
set region(region: common.Region);
|
|
72
|
+
/**
|
|
73
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
74
|
+
*
|
|
75
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
76
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
77
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
78
|
+
* @param regionId The public region ID.
|
|
79
|
+
*/
|
|
80
|
+
set regionId(regionId: string);
|
|
81
|
+
/**
|
|
82
|
+
* Creates a new ApiMetadataWaiter for resources for this service.
|
|
83
|
+
*
|
|
84
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
85
|
+
* @return The service waiters.
|
|
86
|
+
*/
|
|
87
|
+
createWaiters(config?: common.WaiterConfiguration): ApiMetadataWaiter;
|
|
88
|
+
/**
|
|
89
|
+
* Gets the waiters available for resources for this service.
|
|
90
|
+
*
|
|
91
|
+
* @return The service waiters.
|
|
92
|
+
*/
|
|
93
|
+
getWaiters(): ApiMetadataWaiter;
|
|
94
|
+
/**
|
|
95
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
96
|
+
*/
|
|
97
|
+
shutdownCircuitBreaker(): void;
|
|
98
|
+
/**
|
|
99
|
+
* Close the provider if possible which in turn shuts down any associated circuit breaker
|
|
100
|
+
*/
|
|
101
|
+
closeProvider(): void;
|
|
102
|
+
/**
|
|
103
|
+
* Close the client once it is no longer needed
|
|
104
|
+
*/
|
|
105
|
+
close(): void;
|
|
106
|
+
/**
|
|
107
|
+
* Gets information about a ApiMetadata.
|
|
108
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
109
|
+
* @param GetApiMetadataRequest
|
|
110
|
+
* @return GetApiMetadataResponse
|
|
111
|
+
* @throws OciError when an error occurs
|
|
112
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apiaccesscontrol/GetApiMetadata.ts.html |here} to see how to use GetApiMetadata API.
|
|
113
|
+
*/
|
|
114
|
+
getApiMetadata(getApiMetadataRequest: requests.GetApiMetadataRequest): Promise<responses.GetApiMetadataResponse>;
|
|
115
|
+
/**
|
|
116
|
+
* Gets a list of ApiMetadata.
|
|
117
|
+
*
|
|
118
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
119
|
+
* @param ListApiMetadataRequest
|
|
120
|
+
* @return ListApiMetadataResponse
|
|
121
|
+
* @throws OciError when an error occurs
|
|
122
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apiaccesscontrol/ListApiMetadata.ts.html |here} to see how to use ListApiMetadata API.
|
|
123
|
+
*/
|
|
124
|
+
listApiMetadata(listApiMetadataRequest: requests.ListApiMetadataRequest): Promise<responses.ListApiMetadataResponse>;
|
|
125
|
+
/**
|
|
126
|
+
* Gets a list of ApiMetadata Grouped By Entity Types.
|
|
127
|
+
*
|
|
128
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
129
|
+
* @param ListApiMetadataByEntityTypesRequest
|
|
130
|
+
* @return ListApiMetadataByEntityTypesResponse
|
|
131
|
+
* @throws OciError when an error occurs
|
|
132
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apiaccesscontrol/ListApiMetadataByEntityTypes.ts.html |here} to see how to use ListApiMetadataByEntityTypes API.
|
|
133
|
+
*/
|
|
134
|
+
listApiMetadataByEntityTypes(listApiMetadataByEntityTypesRequest: requests.ListApiMetadataByEntityTypesRequest): Promise<responses.ListApiMetadataByEntityTypesResponse>;
|
|
135
|
+
}
|
|
136
|
+
export declare enum PrivilegedApiControlApiKeys {
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
140
|
+
*/
|
|
141
|
+
export declare class PrivilegedApiControlClient {
|
|
142
|
+
protected static serviceEndpointTemplate: string;
|
|
143
|
+
protected static endpointServiceName: string;
|
|
144
|
+
protected "_realmSpecificEndpointTemplateEnabled": boolean | undefined;
|
|
145
|
+
protected "_endpoint": string;
|
|
146
|
+
protected "_defaultHeaders": any;
|
|
147
|
+
protected "_waiters": PrivilegedApiControlWaiter;
|
|
148
|
+
protected "_clientConfiguration": common.ClientConfiguration;
|
|
149
|
+
protected _circuitBreaker: typeof Breaker | null;
|
|
150
|
+
protected _httpOptions: any;
|
|
151
|
+
protected _bodyDuplexMode: any;
|
|
152
|
+
targetService: string;
|
|
153
|
+
protected _regionId: string;
|
|
154
|
+
protected "_region": common.Region;
|
|
155
|
+
protected _lastSetRegionOrRegionId: string;
|
|
156
|
+
protected _httpClient: common.HttpClient;
|
|
157
|
+
protected _authProvider: common.AuthenticationDetailsProvider | undefined;
|
|
158
|
+
constructor(params: common.AuthParams, clientConfiguration?: common.ClientConfiguration);
|
|
159
|
+
/**
|
|
160
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
161
|
+
*/
|
|
162
|
+
get endpoint(): string;
|
|
163
|
+
/**
|
|
164
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
165
|
+
* @param endpoint The endpoint of the service.
|
|
166
|
+
*/
|
|
167
|
+
set endpoint(endpoint: string);
|
|
168
|
+
get logger(): import("oci-common/lib/log").Logger;
|
|
169
|
+
/**
|
|
170
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
171
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
172
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
173
|
+
*/
|
|
174
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled: boolean);
|
|
175
|
+
/**
|
|
176
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
177
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
178
|
+
* @param region The region of the service.
|
|
179
|
+
*/
|
|
180
|
+
set region(region: common.Region);
|
|
181
|
+
/**
|
|
182
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
183
|
+
*
|
|
184
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
185
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
186
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
187
|
+
* @param regionId The public region ID.
|
|
188
|
+
*/
|
|
189
|
+
set regionId(regionId: string);
|
|
190
|
+
/**
|
|
191
|
+
* Creates a new PrivilegedApiControlWaiter for resources for this service.
|
|
192
|
+
*
|
|
193
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
194
|
+
* @return The service waiters.
|
|
195
|
+
*/
|
|
196
|
+
createWaiters(config?: common.WaiterConfiguration): PrivilegedApiControlWaiter;
|
|
197
|
+
/**
|
|
198
|
+
* Gets the waiters available for resources for this service.
|
|
199
|
+
*
|
|
200
|
+
* @return The service waiters.
|
|
201
|
+
*/
|
|
202
|
+
getWaiters(): PrivilegedApiControlWaiter;
|
|
203
|
+
/**
|
|
204
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
205
|
+
*/
|
|
206
|
+
shutdownCircuitBreaker(): void;
|
|
207
|
+
/**
|
|
208
|
+
* Close the provider if possible which in turn shuts down any associated circuit breaker
|
|
209
|
+
*/
|
|
210
|
+
closeProvider(): void;
|
|
211
|
+
/**
|
|
212
|
+
* Close the client once it is no longer needed
|
|
213
|
+
*/
|
|
214
|
+
close(): void;
|
|
215
|
+
/**
|
|
216
|
+
* Moves a PrivilegedApiControl into a different compartment within the same tenancy. For information about moving resources between
|
|
217
|
+
* compartments, see [Moving Resources to a Different Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
|
|
218
|
+
*
|
|
219
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
220
|
+
* @param ChangePrivilegedApiControlCompartmentRequest
|
|
221
|
+
* @return ChangePrivilegedApiControlCompartmentResponse
|
|
222
|
+
* @throws OciError when an error occurs
|
|
223
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apiaccesscontrol/ChangePrivilegedApiControlCompartment.ts.html |here} to see how to use ChangePrivilegedApiControlCompartment API.
|
|
224
|
+
*/
|
|
225
|
+
changePrivilegedApiControlCompartment(changePrivilegedApiControlCompartmentRequest: requests.ChangePrivilegedApiControlCompartmentRequest): Promise<responses.ChangePrivilegedApiControlCompartmentResponse>;
|
|
226
|
+
/**
|
|
227
|
+
* Creates a PrivilegedApiControl.
|
|
228
|
+
*
|
|
229
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
230
|
+
* @param CreatePrivilegedApiControlRequest
|
|
231
|
+
* @return CreatePrivilegedApiControlResponse
|
|
232
|
+
* @throws OciError when an error occurs
|
|
233
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apiaccesscontrol/CreatePrivilegedApiControl.ts.html |here} to see how to use CreatePrivilegedApiControl API.
|
|
234
|
+
*/
|
|
235
|
+
createPrivilegedApiControl(createPrivilegedApiControlRequest: requests.CreatePrivilegedApiControlRequest): Promise<responses.CreatePrivilegedApiControlResponse>;
|
|
236
|
+
/**
|
|
237
|
+
* Deletes a PrivilegedApiControl.
|
|
238
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
239
|
+
* @param DeletePrivilegedApiControlRequest
|
|
240
|
+
* @return DeletePrivilegedApiControlResponse
|
|
241
|
+
* @throws OciError when an error occurs
|
|
242
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apiaccesscontrol/DeletePrivilegedApiControl.ts.html |here} to see how to use DeletePrivilegedApiControl API.
|
|
243
|
+
*/
|
|
244
|
+
deletePrivilegedApiControl(deletePrivilegedApiControlRequest: requests.DeletePrivilegedApiControlRequest): Promise<responses.DeletePrivilegedApiControlResponse>;
|
|
245
|
+
/**
|
|
246
|
+
* Gets information about a PrivilegedApiControl.
|
|
247
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
248
|
+
* @param GetPrivilegedApiControlRequest
|
|
249
|
+
* @return GetPrivilegedApiControlResponse
|
|
250
|
+
* @throws OciError when an error occurs
|
|
251
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apiaccesscontrol/GetPrivilegedApiControl.ts.html |here} to see how to use GetPrivilegedApiControl API.
|
|
252
|
+
*/
|
|
253
|
+
getPrivilegedApiControl(getPrivilegedApiControlRequest: requests.GetPrivilegedApiControlRequest): Promise<responses.GetPrivilegedApiControlResponse>;
|
|
254
|
+
/**
|
|
255
|
+
* Gets a list of PrivilegedApiControls.
|
|
256
|
+
*
|
|
257
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
258
|
+
* @param ListPrivilegedApiControlsRequest
|
|
259
|
+
* @return ListPrivilegedApiControlsResponse
|
|
260
|
+
* @throws OciError when an error occurs
|
|
261
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apiaccesscontrol/ListPrivilegedApiControls.ts.html |here} to see how to use ListPrivilegedApiControls API.
|
|
262
|
+
*/
|
|
263
|
+
listPrivilegedApiControls(listPrivilegedApiControlsRequest: requests.ListPrivilegedApiControlsRequest): Promise<responses.ListPrivilegedApiControlsResponse>;
|
|
264
|
+
/**
|
|
265
|
+
* Updates a PrivilegedApiControl.
|
|
266
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
267
|
+
* @param UpdatePrivilegedApiControlRequest
|
|
268
|
+
* @return UpdatePrivilegedApiControlResponse
|
|
269
|
+
* @throws OciError when an error occurs
|
|
270
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apiaccesscontrol/UpdatePrivilegedApiControl.ts.html |here} to see how to use UpdatePrivilegedApiControl API.
|
|
271
|
+
*/
|
|
272
|
+
updatePrivilegedApiControl(updatePrivilegedApiControlRequest: requests.UpdatePrivilegedApiControlRequest): Promise<responses.UpdatePrivilegedApiControlResponse>;
|
|
273
|
+
}
|
|
274
|
+
export declare enum PrivilegedApiRequestsApiKeys {
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
278
|
+
*/
|
|
279
|
+
export declare class PrivilegedApiRequestsClient {
|
|
280
|
+
protected static serviceEndpointTemplate: string;
|
|
281
|
+
protected static endpointServiceName: string;
|
|
282
|
+
protected "_realmSpecificEndpointTemplateEnabled": boolean | undefined;
|
|
283
|
+
protected "_endpoint": string;
|
|
284
|
+
protected "_defaultHeaders": any;
|
|
285
|
+
protected "_waiters": PrivilegedApiRequestsWaiter;
|
|
286
|
+
protected "_clientConfiguration": common.ClientConfiguration;
|
|
287
|
+
protected _circuitBreaker: typeof Breaker | null;
|
|
288
|
+
protected _httpOptions: any;
|
|
289
|
+
protected _bodyDuplexMode: any;
|
|
290
|
+
targetService: string;
|
|
291
|
+
protected _regionId: string;
|
|
292
|
+
protected "_region": common.Region;
|
|
293
|
+
protected _lastSetRegionOrRegionId: string;
|
|
294
|
+
protected _httpClient: common.HttpClient;
|
|
295
|
+
protected _authProvider: common.AuthenticationDetailsProvider | undefined;
|
|
296
|
+
constructor(params: common.AuthParams, clientConfiguration?: common.ClientConfiguration);
|
|
297
|
+
/**
|
|
298
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
299
|
+
*/
|
|
300
|
+
get endpoint(): string;
|
|
301
|
+
/**
|
|
302
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
303
|
+
* @param endpoint The endpoint of the service.
|
|
304
|
+
*/
|
|
305
|
+
set endpoint(endpoint: string);
|
|
306
|
+
get logger(): import("oci-common/lib/log").Logger;
|
|
307
|
+
/**
|
|
308
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
309
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
310
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
311
|
+
*/
|
|
312
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled: boolean);
|
|
313
|
+
/**
|
|
314
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
315
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
316
|
+
* @param region The region of the service.
|
|
317
|
+
*/
|
|
318
|
+
set region(region: common.Region);
|
|
319
|
+
/**
|
|
320
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
321
|
+
*
|
|
322
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
323
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
324
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
325
|
+
* @param regionId The public region ID.
|
|
326
|
+
*/
|
|
327
|
+
set regionId(regionId: string);
|
|
328
|
+
/**
|
|
329
|
+
* Creates a new PrivilegedApiRequestsWaiter for resources for this service.
|
|
330
|
+
*
|
|
331
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
332
|
+
* @return The service waiters.
|
|
333
|
+
*/
|
|
334
|
+
createWaiters(config?: common.WaiterConfiguration): PrivilegedApiRequestsWaiter;
|
|
335
|
+
/**
|
|
336
|
+
* Gets the waiters available for resources for this service.
|
|
337
|
+
*
|
|
338
|
+
* @return The service waiters.
|
|
339
|
+
*/
|
|
340
|
+
getWaiters(): PrivilegedApiRequestsWaiter;
|
|
341
|
+
/**
|
|
342
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
343
|
+
*/
|
|
344
|
+
shutdownCircuitBreaker(): void;
|
|
345
|
+
/**
|
|
346
|
+
* Close the provider if possible which in turn shuts down any associated circuit breaker
|
|
347
|
+
*/
|
|
348
|
+
closeProvider(): void;
|
|
349
|
+
/**
|
|
350
|
+
* Close the client once it is no longer needed
|
|
351
|
+
*/
|
|
352
|
+
close(): void;
|
|
353
|
+
/**
|
|
354
|
+
* Approves privilegedApi request.
|
|
355
|
+
*
|
|
356
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
357
|
+
* @param ApprovePrivilegedApiRequestRequest
|
|
358
|
+
* @return ApprovePrivilegedApiRequestResponse
|
|
359
|
+
* @throws OciError when an error occurs
|
|
360
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apiaccesscontrol/ApprovePrivilegedApiRequest.ts.html |here} to see how to use ApprovePrivilegedApiRequest API.
|
|
361
|
+
*/
|
|
362
|
+
approvePrivilegedApiRequest(approvePrivilegedApiRequestRequest: requests.ApprovePrivilegedApiRequestRequest): Promise<responses.ApprovePrivilegedApiRequestResponse>;
|
|
363
|
+
/**
|
|
364
|
+
* Closes privilegedApi request.
|
|
365
|
+
*
|
|
366
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
367
|
+
* @param ClosePrivilegedApiRequestRequest
|
|
368
|
+
* @return ClosePrivilegedApiRequestResponse
|
|
369
|
+
* @throws OciError when an error occurs
|
|
370
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apiaccesscontrol/ClosePrivilegedApiRequest.ts.html |here} to see how to use ClosePrivilegedApiRequest API.
|
|
371
|
+
*/
|
|
372
|
+
closePrivilegedApiRequest(closePrivilegedApiRequestRequest: requests.ClosePrivilegedApiRequestRequest): Promise<responses.ClosePrivilegedApiRequestResponse>;
|
|
373
|
+
/**
|
|
374
|
+
* Creates a PrivilegedApiRequest.
|
|
375
|
+
*
|
|
376
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
377
|
+
* @param CreatePrivilegedApiRequestRequest
|
|
378
|
+
* @return CreatePrivilegedApiRequestResponse
|
|
379
|
+
* @throws OciError when an error occurs
|
|
380
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apiaccesscontrol/CreatePrivilegedApiRequest.ts.html |here} to see how to use CreatePrivilegedApiRequest API.
|
|
381
|
+
*/
|
|
382
|
+
createPrivilegedApiRequest(createPrivilegedApiRequestRequest: requests.CreatePrivilegedApiRequestRequest): Promise<responses.CreatePrivilegedApiRequestResponse>;
|
|
383
|
+
/**
|
|
384
|
+
* Gets information about a PrivilegedApiRequest.
|
|
385
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
386
|
+
* @param GetPrivilegedApiRequestRequest
|
|
387
|
+
* @return GetPrivilegedApiRequestResponse
|
|
388
|
+
* @throws OciError when an error occurs
|
|
389
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apiaccesscontrol/GetPrivilegedApiRequest.ts.html |here} to see how to use GetPrivilegedApiRequest API.
|
|
390
|
+
*/
|
|
391
|
+
getPrivilegedApiRequest(getPrivilegedApiRequestRequest: requests.GetPrivilegedApiRequestRequest): Promise<responses.GetPrivilegedApiRequestResponse>;
|
|
392
|
+
/**
|
|
393
|
+
* Lists all privilegedApi requests in the compartment.
|
|
394
|
+
*
|
|
395
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
396
|
+
* @param ListPrivilegedApiRequestsRequest
|
|
397
|
+
* @return ListPrivilegedApiRequestsResponse
|
|
398
|
+
* @throws OciError when an error occurs
|
|
399
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apiaccesscontrol/ListPrivilegedApiRequests.ts.html |here} to see how to use ListPrivilegedApiRequests API.
|
|
400
|
+
*/
|
|
401
|
+
listPrivilegedApiRequests(listPrivilegedApiRequestsRequest: requests.ListPrivilegedApiRequestsRequest): Promise<responses.ListPrivilegedApiRequestsResponse>;
|
|
402
|
+
/**
|
|
403
|
+
* Rejects privilegedApi request.
|
|
404
|
+
*
|
|
405
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
406
|
+
* @param RejectPrivilegedApiRequestRequest
|
|
407
|
+
* @return RejectPrivilegedApiRequestResponse
|
|
408
|
+
* @throws OciError when an error occurs
|
|
409
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apiaccesscontrol/RejectPrivilegedApiRequest.ts.html |here} to see how to use RejectPrivilegedApiRequest API.
|
|
410
|
+
*/
|
|
411
|
+
rejectPrivilegedApiRequest(rejectPrivilegedApiRequestRequest: requests.RejectPrivilegedApiRequestRequest): Promise<responses.RejectPrivilegedApiRequestResponse>;
|
|
412
|
+
/**
|
|
413
|
+
* Revokes an already approved privilegedApi request.
|
|
414
|
+
*
|
|
415
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
416
|
+
* @param RevokePrivilegedApiRequestRequest
|
|
417
|
+
* @return RevokePrivilegedApiRequestResponse
|
|
418
|
+
* @throws OciError when an error occurs
|
|
419
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apiaccesscontrol/RevokePrivilegedApiRequest.ts.html |here} to see how to use RevokePrivilegedApiRequest API.
|
|
420
|
+
*/
|
|
421
|
+
revokePrivilegedApiRequest(revokePrivilegedApiRequestRequest: requests.RevokePrivilegedApiRequestRequest): Promise<responses.RevokePrivilegedApiRequestResponse>;
|
|
422
|
+
}
|
|
423
|
+
export declare enum PrivilegedApiWorkRequestApiKeys {
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
427
|
+
*/
|
|
428
|
+
export declare class PrivilegedApiWorkRequestClient {
|
|
429
|
+
protected static serviceEndpointTemplate: string;
|
|
430
|
+
protected static endpointServiceName: string;
|
|
431
|
+
protected "_realmSpecificEndpointTemplateEnabled": boolean | undefined;
|
|
432
|
+
protected "_endpoint": string;
|
|
433
|
+
protected "_defaultHeaders": any;
|
|
434
|
+
protected "_waiters": PrivilegedApiWorkRequestWaiter;
|
|
435
|
+
protected "_clientConfiguration": common.ClientConfiguration;
|
|
436
|
+
protected _circuitBreaker: typeof Breaker | null;
|
|
437
|
+
protected _httpOptions: any;
|
|
438
|
+
protected _bodyDuplexMode: any;
|
|
439
|
+
targetService: string;
|
|
440
|
+
protected _regionId: string;
|
|
441
|
+
protected "_region": common.Region;
|
|
442
|
+
protected _lastSetRegionOrRegionId: string;
|
|
443
|
+
protected _httpClient: common.HttpClient;
|
|
444
|
+
protected _authProvider: common.AuthenticationDetailsProvider | undefined;
|
|
445
|
+
constructor(params: common.AuthParams, clientConfiguration?: common.ClientConfiguration);
|
|
446
|
+
/**
|
|
447
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
448
|
+
*/
|
|
449
|
+
get endpoint(): string;
|
|
450
|
+
/**
|
|
451
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
452
|
+
* @param endpoint The endpoint of the service.
|
|
453
|
+
*/
|
|
454
|
+
set endpoint(endpoint: string);
|
|
455
|
+
get logger(): import("oci-common/lib/log").Logger;
|
|
456
|
+
/**
|
|
457
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
458
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
459
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
460
|
+
*/
|
|
461
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled: boolean);
|
|
462
|
+
/**
|
|
463
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
464
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
465
|
+
* @param region The region of the service.
|
|
466
|
+
*/
|
|
467
|
+
set region(region: common.Region);
|
|
468
|
+
/**
|
|
469
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
470
|
+
*
|
|
471
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
472
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
473
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
474
|
+
* @param regionId The public region ID.
|
|
475
|
+
*/
|
|
476
|
+
set regionId(regionId: string);
|
|
477
|
+
/**
|
|
478
|
+
* Creates a new PrivilegedApiWorkRequestWaiter for resources for this service.
|
|
479
|
+
*
|
|
480
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
481
|
+
* @return The service waiters.
|
|
482
|
+
*/
|
|
483
|
+
createWaiters(config?: common.WaiterConfiguration): PrivilegedApiWorkRequestWaiter;
|
|
484
|
+
/**
|
|
485
|
+
* Gets the waiters available for resources for this service.
|
|
486
|
+
*
|
|
487
|
+
* @return The service waiters.
|
|
488
|
+
*/
|
|
489
|
+
getWaiters(): PrivilegedApiWorkRequestWaiter;
|
|
490
|
+
/**
|
|
491
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
492
|
+
*/
|
|
493
|
+
shutdownCircuitBreaker(): void;
|
|
494
|
+
/**
|
|
495
|
+
* Close the provider if possible which in turn shuts down any associated circuit breaker
|
|
496
|
+
*/
|
|
497
|
+
closeProvider(): void;
|
|
498
|
+
/**
|
|
499
|
+
* Close the client once it is no longer needed
|
|
500
|
+
*/
|
|
501
|
+
close(): void;
|
|
502
|
+
/**
|
|
503
|
+
* Cancels a work request.
|
|
504
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
505
|
+
* @param CancelWorkRequestRequest
|
|
506
|
+
* @return CancelWorkRequestResponse
|
|
507
|
+
* @throws OciError when an error occurs
|
|
508
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apiaccesscontrol/CancelWorkRequest.ts.html |here} to see how to use CancelWorkRequest API.
|
|
509
|
+
*/
|
|
510
|
+
cancelWorkRequest(cancelWorkRequestRequest: requests.CancelWorkRequestRequest): Promise<responses.CancelWorkRequestResponse>;
|
|
511
|
+
/**
|
|
512
|
+
* Gets the details of a work request.
|
|
513
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
514
|
+
* @param GetWorkRequestRequest
|
|
515
|
+
* @return GetWorkRequestResponse
|
|
516
|
+
* @throws OciError when an error occurs
|
|
517
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apiaccesscontrol/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
518
|
+
*/
|
|
519
|
+
getWorkRequest(getWorkRequestRequest: requests.GetWorkRequestRequest): Promise<responses.GetWorkRequestResponse>;
|
|
520
|
+
/**
|
|
521
|
+
* Lists the errors for a work request.
|
|
522
|
+
*
|
|
523
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
524
|
+
* @param ListWorkRequestErrorsRequest
|
|
525
|
+
* @return ListWorkRequestErrorsResponse
|
|
526
|
+
* @throws OciError when an error occurs
|
|
527
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apiaccesscontrol/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
528
|
+
*/
|
|
529
|
+
listWorkRequestErrors(listWorkRequestErrorsRequest: requests.ListWorkRequestErrorsRequest): Promise<responses.ListWorkRequestErrorsResponse>;
|
|
530
|
+
/**
|
|
531
|
+
* Lists the logs for a work request.
|
|
532
|
+
*
|
|
533
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
534
|
+
* @param ListWorkRequestLogsRequest
|
|
535
|
+
* @return ListWorkRequestLogsResponse
|
|
536
|
+
* @throws OciError when an error occurs
|
|
537
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apiaccesscontrol/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
538
|
+
*/
|
|
539
|
+
listWorkRequestLogs(listWorkRequestLogsRequest: requests.ListWorkRequestLogsRequest): Promise<responses.ListWorkRequestLogsResponse>;
|
|
540
|
+
/**
|
|
541
|
+
* Lists the work requests in a compartment.
|
|
542
|
+
*
|
|
543
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
544
|
+
* @param ListWorkRequestsRequest
|
|
545
|
+
* @return ListWorkRequestsResponse
|
|
546
|
+
* @throws OciError when an error occurs
|
|
547
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apiaccesscontrol/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
548
|
+
*/
|
|
549
|
+
listWorkRequests(listWorkRequestsRequest: requests.ListWorkRequestsRequest): Promise<responses.ListWorkRequestsResponse>;
|
|
550
|
+
}
|
|
551
|
+
export {};
|