oci-database 2.115.0 → 2.116.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 +72 -0
- package/lib/client.js +306 -0
- package/lib/client.js.map +1 -1
- package/lib/database-waiter.d.ts +28 -0
- package/lib/database-waiter.js +54 -0
- package/lib/database-waiter.js.map +1 -1
- package/lib/model/create-pluggable-database-creation-type-details.d.ts +2 -0
- package/lib/model/create-pluggable-database-creation-type-details.js.map +1 -1
- package/lib/model/create-pluggable-database-from-local-clone-details.d.ts +4 -0
- package/lib/model/create-pluggable-database-from-local-clone-details.js.map +1 -1
- package/lib/model/create-pluggable-database-from-remote-clone-details.d.ts +4 -0
- package/lib/model/create-pluggable-database-from-remote-clone-details.js.map +1 -1
- package/lib/model/create-pluggable-database-snapshot-details.d.ts +51 -0
- package/lib/model/create-pluggable-database-snapshot-details.js +30 -0
- package/lib/model/create-pluggable-database-snapshot-details.js.map +1 -0
- package/lib/model/index.d.ts +6 -0
- package/lib/model/index.js +13 -7
- package/lib/model/index.js.map +1 -1
- package/lib/model/pluggable-database-snapshot-summary.d.ts +86 -0
- package/lib/model/pluggable-database-snapshot-summary.js +30 -0
- package/lib/model/pluggable-database-snapshot-summary.js.map +1 -0
- package/lib/model/pluggable-database-snapshot.d.ts +98 -0
- package/lib/model/pluggable-database-snapshot.js +43 -0
- package/lib/model/pluggable-database-snapshot.js.map +1 -0
- package/lib/request/create-pluggable-database-snapshot-request.d.ts +38 -0
- package/lib/request/create-pluggable-database-snapshot-request.js +15 -0
- package/lib/request/create-pluggable-database-snapshot-request.js.map +1 -0
- package/lib/request/delete-pluggable-database-snapshot-request.d.ts +34 -0
- package/lib/request/delete-pluggable-database-snapshot-request.js +15 -0
- package/lib/request/delete-pluggable-database-snapshot-request.js.map +1 -0
- package/lib/request/get-pluggable-database-snapshot-request.d.ts +27 -0
- package/lib/request/get-pluggable-database-snapshot-request.js +15 -0
- package/lib/request/get-pluggable-database-snapshot-request.js.map +1 -0
- package/lib/request/index.d.ts +8 -0
- package/lib/request/index.js +4 -2
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-pluggable-database-snapshots-request.d.ts +70 -0
- package/lib/request/list-pluggable-database-snapshots-request.js +29 -0
- package/lib/request/list-pluggable-database-snapshots-request.js.map +1 -0
- package/lib/response/create-pluggable-database-snapshot-response.d.ts +34 -0
- package/lib/response/create-pluggable-database-snapshot-response.js +15 -0
- package/lib/response/create-pluggable-database-snapshot-response.js.map +1 -0
- package/lib/response/delete-pluggable-database-snapshot-response.d.ts +25 -0
- package/lib/response/delete-pluggable-database-snapshot-response.js +15 -0
- package/lib/response/delete-pluggable-database-snapshot-response.js.map +1 -0
- package/lib/response/get-pluggable-database-snapshot-response.d.ts +29 -0
- package/lib/response/get-pluggable-database-snapshot-response.js +15 -0
- package/lib/response/get-pluggable-database-snapshot-response.js.map +1 -0
- package/lib/response/index.d.ts +8 -0
- package/lib/response/list-pluggable-database-snapshots-response.d.ts +33 -0
- package/lib/response/list-pluggable-database-snapshots-response.js +15 -0
- package/lib/response/list-pluggable-database-snapshots-response.js.map +1 -0
- package/package.json +3 -3
package/lib/client.d.ts
CHANGED
|
@@ -987,6 +987,16 @@ export declare class DatabaseClient {
|
|
|
987
987
|
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/CreatePluggableDatabase.ts.html |here} to see how to use CreatePluggableDatabase API.
|
|
988
988
|
*/
|
|
989
989
|
createPluggableDatabase(createPluggableDatabaseRequest: requests.CreatePluggableDatabaseRequest): Promise<responses.CreatePluggableDatabaseResponse>;
|
|
990
|
+
/**
|
|
991
|
+
* Creates a Pluggable Database Snapshot
|
|
992
|
+
*
|
|
993
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
994
|
+
* @param CreatePluggableDatabaseSnapshotRequest
|
|
995
|
+
* @return CreatePluggableDatabaseSnapshotResponse
|
|
996
|
+
* @throws OciError when an error occurs
|
|
997
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/CreatePluggableDatabaseSnapshot.ts.html |here} to see how to use CreatePluggableDatabaseSnapshot API.
|
|
998
|
+
*/
|
|
999
|
+
createPluggableDatabaseSnapshot(createPluggableDatabaseSnapshotRequest: requests.CreatePluggableDatabaseSnapshotRequest): Promise<responses.CreatePluggableDatabaseSnapshotResponse>;
|
|
990
1000
|
/**
|
|
991
1001
|
* Creates a Scheduled Action resource.
|
|
992
1002
|
*
|
|
@@ -1343,6 +1353,16 @@ export declare class DatabaseClient {
|
|
|
1343
1353
|
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/DeletePluggableDatabase.ts.html |here} to see how to use DeletePluggableDatabase API.
|
|
1344
1354
|
*/
|
|
1345
1355
|
deletePluggableDatabase(deletePluggableDatabaseRequest: requests.DeletePluggableDatabaseRequest): Promise<responses.DeletePluggableDatabaseResponse>;
|
|
1356
|
+
/**
|
|
1357
|
+
* Deletes the specified Exadata Pluggable Database Snapshot.
|
|
1358
|
+
*
|
|
1359
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1360
|
+
* @param DeletePluggableDatabaseSnapshotRequest
|
|
1361
|
+
* @return DeletePluggableDatabaseSnapshotResponse
|
|
1362
|
+
* @throws OciError when an error occurs
|
|
1363
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/DeletePluggableDatabaseSnapshot.ts.html |here} to see how to use DeletePluggableDatabaseSnapshot API.
|
|
1364
|
+
*/
|
|
1365
|
+
deletePluggableDatabaseSnapshot(deletePluggableDatabaseSnapshotRequest: requests.DeletePluggableDatabaseSnapshotRequest): Promise<responses.DeletePluggableDatabaseSnapshotResponse>;
|
|
1346
1366
|
/**
|
|
1347
1367
|
* Deletes the scheduled action.
|
|
1348
1368
|
*
|
|
@@ -2432,6 +2452,16 @@ export declare class DatabaseClient {
|
|
|
2432
2452
|
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/GetPluggableDatabase.ts.html |here} to see how to use GetPluggableDatabase API.
|
|
2433
2453
|
*/
|
|
2434
2454
|
getPluggableDatabase(getPluggableDatabaseRequest: requests.GetPluggableDatabaseRequest): Promise<responses.GetPluggableDatabaseResponse>;
|
|
2455
|
+
/**
|
|
2456
|
+
* Gets information about the specified Exadata Pluggable Database Snapshot in the specified compartment.
|
|
2457
|
+
*
|
|
2458
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2459
|
+
* @param GetPluggableDatabaseSnapshotRequest
|
|
2460
|
+
* @return GetPluggableDatabaseSnapshotResponse
|
|
2461
|
+
* @throws OciError when an error occurs
|
|
2462
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/GetPluggableDatabaseSnapshot.ts.html |here} to see how to use GetPluggableDatabaseSnapshot API.
|
|
2463
|
+
*/
|
|
2464
|
+
getPluggableDatabaseSnapshot(getPluggableDatabaseSnapshotRequest: requests.GetPluggableDatabaseSnapshotRequest): Promise<responses.GetPluggableDatabaseSnapshotResponse>;
|
|
2435
2465
|
/**
|
|
2436
2466
|
* Gets information about the specified Scheduled Action.
|
|
2437
2467
|
*
|
|
@@ -5109,6 +5139,48 @@ export declare class DatabaseClient {
|
|
|
5109
5139
|
* @param request a request which can be sent to the service operation
|
|
5110
5140
|
*/
|
|
5111
5141
|
listPdbConversionHistoryEntriesResponseIterator(request: requests.ListPdbConversionHistoryEntriesRequest): AsyncIterableIterator<responses.ListPdbConversionHistoryEntriesResponse>;
|
|
5142
|
+
/**
|
|
5143
|
+
* Gets a list of the Exadata Pluggable Database Snapshots in the specified compartment.
|
|
5144
|
+
*
|
|
5145
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
5146
|
+
* @param ListPluggableDatabaseSnapshotsRequest
|
|
5147
|
+
* @return ListPluggableDatabaseSnapshotsResponse
|
|
5148
|
+
* @throws OciError when an error occurs
|
|
5149
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/ListPluggableDatabaseSnapshots.ts.html |here} to see how to use ListPluggableDatabaseSnapshots API.
|
|
5150
|
+
*/
|
|
5151
|
+
listPluggableDatabaseSnapshots(listPluggableDatabaseSnapshotsRequest: requests.ListPluggableDatabaseSnapshotsRequest): Promise<responses.ListPluggableDatabaseSnapshotsResponse>;
|
|
5152
|
+
/**
|
|
5153
|
+
* NOTE: This function is deprecated in favor of listPluggableDatabaseSnapshotsRecordIterator function.
|
|
5154
|
+
* Creates a new async iterator which will iterate over the models.PluggableDatabaseSnapshotSummary objects
|
|
5155
|
+
* contained in responses from the listPluggableDatabaseSnapshots operation. This iterator will fetch more data from the
|
|
5156
|
+
* server as needed.
|
|
5157
|
+
*
|
|
5158
|
+
* @param request a request which can be sent to the service operation
|
|
5159
|
+
*/
|
|
5160
|
+
listAllPluggableDatabaseSnapshots(request: requests.ListPluggableDatabaseSnapshotsRequest): AsyncIterableIterator<model.PluggableDatabaseSnapshotSummary>;
|
|
5161
|
+
/**
|
|
5162
|
+
* NOTE: This function is deprecated in favor of listPluggableDatabaseSnapshotsResponseIterator function.
|
|
5163
|
+
* Creates a new async iterator which will iterate over the responses received from the listPluggableDatabaseSnapshots operation. This iterator
|
|
5164
|
+
* will fetch more data from the server as needed.
|
|
5165
|
+
*
|
|
5166
|
+
* @param request a request which can be sent to the service operation
|
|
5167
|
+
*/
|
|
5168
|
+
listAllPluggableDatabaseSnapshotsResponses(request: requests.ListPluggableDatabaseSnapshotsRequest): AsyncIterableIterator<responses.ListPluggableDatabaseSnapshotsResponse>;
|
|
5169
|
+
/**
|
|
5170
|
+
* Creates a new async iterator which will iterate over the models.PluggableDatabaseSnapshotSummary objects
|
|
5171
|
+
* contained in responses from the listPluggableDatabaseSnapshots operation. This iterator will fetch more data from the
|
|
5172
|
+
* server as needed.
|
|
5173
|
+
*
|
|
5174
|
+
* @param request a request which can be sent to the service operation
|
|
5175
|
+
*/
|
|
5176
|
+
listPluggableDatabaseSnapshotsRecordIterator(request: requests.ListPluggableDatabaseSnapshotsRequest): AsyncIterableIterator<model.PluggableDatabaseSnapshotSummary>;
|
|
5177
|
+
/**
|
|
5178
|
+
* Creates a new async iterator which will iterate over the responses received from the listPluggableDatabaseSnapshots operation. This iterator
|
|
5179
|
+
* will fetch more data from the server as needed.
|
|
5180
|
+
*
|
|
5181
|
+
* @param request a request which can be sent to the service operation
|
|
5182
|
+
*/
|
|
5183
|
+
listPluggableDatabaseSnapshotsResponseIterator(request: requests.ListPluggableDatabaseSnapshotsRequest): AsyncIterableIterator<responses.ListPluggableDatabaseSnapshotsResponse>;
|
|
5112
5184
|
/**
|
|
5113
5185
|
* Gets a list of the pluggable databases in a database or compartment. You must provide either a `databaseId` or `compartmentId` value.
|
|
5114
5186
|
*
|
package/lib/client.js
CHANGED
|
@@ -5937,6 +5937,75 @@ class DatabaseClient {
|
|
|
5937
5937
|
}
|
|
5938
5938
|
});
|
|
5939
5939
|
}
|
|
5940
|
+
/**
|
|
5941
|
+
* Creates a Pluggable Database Snapshot
|
|
5942
|
+
*
|
|
5943
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
5944
|
+
* @param CreatePluggableDatabaseSnapshotRequest
|
|
5945
|
+
* @return CreatePluggableDatabaseSnapshotResponse
|
|
5946
|
+
* @throws OciError when an error occurs
|
|
5947
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/CreatePluggableDatabaseSnapshot.ts.html |here} to see how to use CreatePluggableDatabaseSnapshot API.
|
|
5948
|
+
*/
|
|
5949
|
+
createPluggableDatabaseSnapshot(createPluggableDatabaseSnapshotRequest) {
|
|
5950
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5951
|
+
if (this.logger)
|
|
5952
|
+
this.logger.debug("Calling operation DatabaseClient#createPluggableDatabaseSnapshot.");
|
|
5953
|
+
const operationName = "createPluggableDatabaseSnapshot";
|
|
5954
|
+
const apiReferenceLink = "";
|
|
5955
|
+
const pathParams = {};
|
|
5956
|
+
const queryParams = {};
|
|
5957
|
+
let headerParams = {
|
|
5958
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
5959
|
+
"opc-retry-token": createPluggableDatabaseSnapshotRequest.opcRetryToken,
|
|
5960
|
+
"opc-request-id": createPluggableDatabaseSnapshotRequest.opcRequestId
|
|
5961
|
+
};
|
|
5962
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
5963
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createPluggableDatabaseSnapshotRequest.retryConfiguration, specRetryConfiguration);
|
|
5964
|
+
if (this.logger)
|
|
5965
|
+
retrier.logger = this.logger;
|
|
5966
|
+
const request = yield oci_common_2.composeRequest({
|
|
5967
|
+
baseEndpoint: this._endpoint,
|
|
5968
|
+
defaultHeaders: this._defaultHeaders,
|
|
5969
|
+
path: "/pluggableDatabaseSnapshots",
|
|
5970
|
+
method: "POST",
|
|
5971
|
+
bodyContent: common.ObjectSerializer.serialize(createPluggableDatabaseSnapshotRequest.createPluggableDatabaseSnapshotDetails, "CreatePluggableDatabaseSnapshotDetails", model.CreatePluggableDatabaseSnapshotDetails.getJsonObj),
|
|
5972
|
+
pathParams: pathParams,
|
|
5973
|
+
headerParams: headerParams,
|
|
5974
|
+
queryParams: queryParams
|
|
5975
|
+
});
|
|
5976
|
+
try {
|
|
5977
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
5978
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
5979
|
+
responseObject: {},
|
|
5980
|
+
body: yield response.json(),
|
|
5981
|
+
bodyKey: "pluggableDatabaseSnapshot",
|
|
5982
|
+
bodyModel: model.PluggableDatabaseSnapshot,
|
|
5983
|
+
type: "model.PluggableDatabaseSnapshot",
|
|
5984
|
+
responseHeaders: [
|
|
5985
|
+
{
|
|
5986
|
+
value: response.headers.get("opc-work-request-id"),
|
|
5987
|
+
key: "opcWorkRequestId",
|
|
5988
|
+
dataType: "string"
|
|
5989
|
+
},
|
|
5990
|
+
{
|
|
5991
|
+
value: response.headers.get("etag"),
|
|
5992
|
+
key: "etag",
|
|
5993
|
+
dataType: "string"
|
|
5994
|
+
},
|
|
5995
|
+
{
|
|
5996
|
+
value: response.headers.get("opc-request-id"),
|
|
5997
|
+
key: "opcRequestId",
|
|
5998
|
+
dataType: "string"
|
|
5999
|
+
}
|
|
6000
|
+
]
|
|
6001
|
+
});
|
|
6002
|
+
return sdkResponse;
|
|
6003
|
+
}
|
|
6004
|
+
catch (err) {
|
|
6005
|
+
throw err;
|
|
6006
|
+
}
|
|
6007
|
+
});
|
|
6008
|
+
}
|
|
5940
6009
|
/**
|
|
5941
6010
|
* Creates a Scheduled Action resource.
|
|
5942
6011
|
*
|
|
@@ -8081,6 +8150,67 @@ class DatabaseClient {
|
|
|
8081
8150
|
}
|
|
8082
8151
|
});
|
|
8083
8152
|
}
|
|
8153
|
+
/**
|
|
8154
|
+
* Deletes the specified Exadata Pluggable Database Snapshot.
|
|
8155
|
+
*
|
|
8156
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
8157
|
+
* @param DeletePluggableDatabaseSnapshotRequest
|
|
8158
|
+
* @return DeletePluggableDatabaseSnapshotResponse
|
|
8159
|
+
* @throws OciError when an error occurs
|
|
8160
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/DeletePluggableDatabaseSnapshot.ts.html |here} to see how to use DeletePluggableDatabaseSnapshot API.
|
|
8161
|
+
*/
|
|
8162
|
+
deletePluggableDatabaseSnapshot(deletePluggableDatabaseSnapshotRequest) {
|
|
8163
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8164
|
+
if (this.logger)
|
|
8165
|
+
this.logger.debug("Calling operation DatabaseClient#deletePluggableDatabaseSnapshot.");
|
|
8166
|
+
const operationName = "deletePluggableDatabaseSnapshot";
|
|
8167
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/PluggableDatabaseSnapshot/DeletePluggableDatabaseSnapshot";
|
|
8168
|
+
const pathParams = {
|
|
8169
|
+
"{pluggableDatabaseSnapshotId}": deletePluggableDatabaseSnapshotRequest.pluggableDatabaseSnapshotId
|
|
8170
|
+
};
|
|
8171
|
+
const queryParams = {};
|
|
8172
|
+
let headerParams = {
|
|
8173
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
8174
|
+
"if-match": deletePluggableDatabaseSnapshotRequest.ifMatch,
|
|
8175
|
+
"opc-request-id": deletePluggableDatabaseSnapshotRequest.opcRequestId
|
|
8176
|
+
};
|
|
8177
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
8178
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deletePluggableDatabaseSnapshotRequest.retryConfiguration, specRetryConfiguration);
|
|
8179
|
+
if (this.logger)
|
|
8180
|
+
retrier.logger = this.logger;
|
|
8181
|
+
const request = yield oci_common_2.composeRequest({
|
|
8182
|
+
baseEndpoint: this._endpoint,
|
|
8183
|
+
defaultHeaders: this._defaultHeaders,
|
|
8184
|
+
path: "/pluggableDatabaseSnapshots/{pluggableDatabaseSnapshotId}",
|
|
8185
|
+
method: "DELETE",
|
|
8186
|
+
pathParams: pathParams,
|
|
8187
|
+
headerParams: headerParams,
|
|
8188
|
+
queryParams: queryParams
|
|
8189
|
+
});
|
|
8190
|
+
try {
|
|
8191
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
8192
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
8193
|
+
responseObject: {},
|
|
8194
|
+
responseHeaders: [
|
|
8195
|
+
{
|
|
8196
|
+
value: response.headers.get("opc-work-request-id"),
|
|
8197
|
+
key: "opcWorkRequestId",
|
|
8198
|
+
dataType: "string"
|
|
8199
|
+
},
|
|
8200
|
+
{
|
|
8201
|
+
value: response.headers.get("opc-request-id"),
|
|
8202
|
+
key: "opcRequestId",
|
|
8203
|
+
dataType: "string"
|
|
8204
|
+
}
|
|
8205
|
+
]
|
|
8206
|
+
});
|
|
8207
|
+
return sdkResponse;
|
|
8208
|
+
}
|
|
8209
|
+
catch (err) {
|
|
8210
|
+
throw err;
|
|
8211
|
+
}
|
|
8212
|
+
});
|
|
8213
|
+
}
|
|
8084
8214
|
/**
|
|
8085
8215
|
* Deletes the scheduled action.
|
|
8086
8216
|
*
|
|
@@ -14952,6 +15082,70 @@ class DatabaseClient {
|
|
|
14952
15082
|
}
|
|
14953
15083
|
});
|
|
14954
15084
|
}
|
|
15085
|
+
/**
|
|
15086
|
+
* Gets information about the specified Exadata Pluggable Database Snapshot in the specified compartment.
|
|
15087
|
+
*
|
|
15088
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
15089
|
+
* @param GetPluggableDatabaseSnapshotRequest
|
|
15090
|
+
* @return GetPluggableDatabaseSnapshotResponse
|
|
15091
|
+
* @throws OciError when an error occurs
|
|
15092
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/GetPluggableDatabaseSnapshot.ts.html |here} to see how to use GetPluggableDatabaseSnapshot API.
|
|
15093
|
+
*/
|
|
15094
|
+
getPluggableDatabaseSnapshot(getPluggableDatabaseSnapshotRequest) {
|
|
15095
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15096
|
+
if (this.logger)
|
|
15097
|
+
this.logger.debug("Calling operation DatabaseClient#getPluggableDatabaseSnapshot.");
|
|
15098
|
+
const operationName = "getPluggableDatabaseSnapshot";
|
|
15099
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/PluggableDatabaseSnapshot/GetPluggableDatabaseSnapshot";
|
|
15100
|
+
const pathParams = {
|
|
15101
|
+
"{pluggableDatabaseSnapshotId}": getPluggableDatabaseSnapshotRequest.pluggableDatabaseSnapshotId
|
|
15102
|
+
};
|
|
15103
|
+
const queryParams = {};
|
|
15104
|
+
let headerParams = {
|
|
15105
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
15106
|
+
"opc-request-id": getPluggableDatabaseSnapshotRequest.opcRequestId
|
|
15107
|
+
};
|
|
15108
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
15109
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getPluggableDatabaseSnapshotRequest.retryConfiguration, specRetryConfiguration);
|
|
15110
|
+
if (this.logger)
|
|
15111
|
+
retrier.logger = this.logger;
|
|
15112
|
+
const request = yield oci_common_2.composeRequest({
|
|
15113
|
+
baseEndpoint: this._endpoint,
|
|
15114
|
+
defaultHeaders: this._defaultHeaders,
|
|
15115
|
+
path: "/pluggableDatabaseSnapshots/{pluggableDatabaseSnapshotId}",
|
|
15116
|
+
method: "GET",
|
|
15117
|
+
pathParams: pathParams,
|
|
15118
|
+
headerParams: headerParams,
|
|
15119
|
+
queryParams: queryParams
|
|
15120
|
+
});
|
|
15121
|
+
try {
|
|
15122
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
15123
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
15124
|
+
responseObject: {},
|
|
15125
|
+
body: yield response.json(),
|
|
15126
|
+
bodyKey: "pluggableDatabaseSnapshot",
|
|
15127
|
+
bodyModel: model.PluggableDatabaseSnapshot,
|
|
15128
|
+
type: "model.PluggableDatabaseSnapshot",
|
|
15129
|
+
responseHeaders: [
|
|
15130
|
+
{
|
|
15131
|
+
value: response.headers.get("etag"),
|
|
15132
|
+
key: "etag",
|
|
15133
|
+
dataType: "string"
|
|
15134
|
+
},
|
|
15135
|
+
{
|
|
15136
|
+
value: response.headers.get("opc-request-id"),
|
|
15137
|
+
key: "opcRequestId",
|
|
15138
|
+
dataType: "string"
|
|
15139
|
+
}
|
|
15140
|
+
]
|
|
15141
|
+
});
|
|
15142
|
+
return sdkResponse;
|
|
15143
|
+
}
|
|
15144
|
+
catch (err) {
|
|
15145
|
+
throw err;
|
|
15146
|
+
}
|
|
15147
|
+
});
|
|
15148
|
+
}
|
|
14955
15149
|
/**
|
|
14956
15150
|
* Gets information about the specified Scheduled Action.
|
|
14957
15151
|
*
|
|
@@ -22856,6 +23050,118 @@ class DatabaseClient {
|
|
|
22856
23050
|
listPdbConversionHistoryEntriesResponseIterator(request) {
|
|
22857
23051
|
return oci_common_1.paginateResponses(request, req => this.listPdbConversionHistoryEntries(req));
|
|
22858
23052
|
}
|
|
23053
|
+
/**
|
|
23054
|
+
* Gets a list of the Exadata Pluggable Database Snapshots in the specified compartment.
|
|
23055
|
+
*
|
|
23056
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
23057
|
+
* @param ListPluggableDatabaseSnapshotsRequest
|
|
23058
|
+
* @return ListPluggableDatabaseSnapshotsResponse
|
|
23059
|
+
* @throws OciError when an error occurs
|
|
23060
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/ListPluggableDatabaseSnapshots.ts.html |here} to see how to use ListPluggableDatabaseSnapshots API.
|
|
23061
|
+
*/
|
|
23062
|
+
listPluggableDatabaseSnapshots(listPluggableDatabaseSnapshotsRequest) {
|
|
23063
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23064
|
+
if (this.logger)
|
|
23065
|
+
this.logger.debug("Calling operation DatabaseClient#listPluggableDatabaseSnapshots.");
|
|
23066
|
+
const operationName = "listPluggableDatabaseSnapshots";
|
|
23067
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/PluggableDatabaseSnapshot/ListPluggableDatabaseSnapshots";
|
|
23068
|
+
const pathParams = {};
|
|
23069
|
+
const queryParams = {
|
|
23070
|
+
"compartmentId": listPluggableDatabaseSnapshotsRequest.compartmentId,
|
|
23071
|
+
"limit": listPluggableDatabaseSnapshotsRequest.limit,
|
|
23072
|
+
"page": listPluggableDatabaseSnapshotsRequest.page,
|
|
23073
|
+
"sortBy": listPluggableDatabaseSnapshotsRequest.sortBy,
|
|
23074
|
+
"name": listPluggableDatabaseSnapshotsRequest.name,
|
|
23075
|
+
"sortOrder": listPluggableDatabaseSnapshotsRequest.sortOrder,
|
|
23076
|
+
"lifecycleState": listPluggableDatabaseSnapshotsRequest.lifecycleState,
|
|
23077
|
+
"clusterId": listPluggableDatabaseSnapshotsRequest.clusterId,
|
|
23078
|
+
"pluggableDatabaseId": listPluggableDatabaseSnapshotsRequest.pluggableDatabaseId
|
|
23079
|
+
};
|
|
23080
|
+
let headerParams = {
|
|
23081
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
23082
|
+
"opc-request-id": listPluggableDatabaseSnapshotsRequest.opcRequestId
|
|
23083
|
+
};
|
|
23084
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
23085
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listPluggableDatabaseSnapshotsRequest.retryConfiguration, specRetryConfiguration);
|
|
23086
|
+
if (this.logger)
|
|
23087
|
+
retrier.logger = this.logger;
|
|
23088
|
+
const request = yield oci_common_2.composeRequest({
|
|
23089
|
+
baseEndpoint: this._endpoint,
|
|
23090
|
+
defaultHeaders: this._defaultHeaders,
|
|
23091
|
+
path: "/pluggableDatabaseSnapshots",
|
|
23092
|
+
method: "GET",
|
|
23093
|
+
pathParams: pathParams,
|
|
23094
|
+
headerParams: headerParams,
|
|
23095
|
+
queryParams: queryParams
|
|
23096
|
+
});
|
|
23097
|
+
try {
|
|
23098
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
23099
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
23100
|
+
responseObject: {},
|
|
23101
|
+
body: yield response.json(),
|
|
23102
|
+
bodyKey: "items",
|
|
23103
|
+
bodyModel: model.PluggableDatabaseSnapshotSummary,
|
|
23104
|
+
type: "Array<model.PluggableDatabaseSnapshotSummary>",
|
|
23105
|
+
responseHeaders: [
|
|
23106
|
+
{
|
|
23107
|
+
value: response.headers.get("opc-request-id"),
|
|
23108
|
+
key: "opcRequestId",
|
|
23109
|
+
dataType: "string"
|
|
23110
|
+
},
|
|
23111
|
+
{
|
|
23112
|
+
value: response.headers.get("opc-next-page"),
|
|
23113
|
+
key: "opcNextPage",
|
|
23114
|
+
dataType: "string"
|
|
23115
|
+
}
|
|
23116
|
+
]
|
|
23117
|
+
});
|
|
23118
|
+
return sdkResponse;
|
|
23119
|
+
}
|
|
23120
|
+
catch (err) {
|
|
23121
|
+
throw err;
|
|
23122
|
+
}
|
|
23123
|
+
});
|
|
23124
|
+
}
|
|
23125
|
+
/**
|
|
23126
|
+
* NOTE: This function is deprecated in favor of listPluggableDatabaseSnapshotsRecordIterator function.
|
|
23127
|
+
* Creates a new async iterator which will iterate over the models.PluggableDatabaseSnapshotSummary objects
|
|
23128
|
+
* contained in responses from the listPluggableDatabaseSnapshots operation. This iterator will fetch more data from the
|
|
23129
|
+
* server as needed.
|
|
23130
|
+
*
|
|
23131
|
+
* @param request a request which can be sent to the service operation
|
|
23132
|
+
*/
|
|
23133
|
+
listAllPluggableDatabaseSnapshots(request) {
|
|
23134
|
+
return oci_common_1.paginateRecords(request, req => this.listPluggableDatabaseSnapshots(req));
|
|
23135
|
+
}
|
|
23136
|
+
/**
|
|
23137
|
+
* NOTE: This function is deprecated in favor of listPluggableDatabaseSnapshotsResponseIterator function.
|
|
23138
|
+
* Creates a new async iterator which will iterate over the responses received from the listPluggableDatabaseSnapshots operation. This iterator
|
|
23139
|
+
* will fetch more data from the server as needed.
|
|
23140
|
+
*
|
|
23141
|
+
* @param request a request which can be sent to the service operation
|
|
23142
|
+
*/
|
|
23143
|
+
listAllPluggableDatabaseSnapshotsResponses(request) {
|
|
23144
|
+
return oci_common_1.paginateResponses(request, req => this.listPluggableDatabaseSnapshots(req));
|
|
23145
|
+
}
|
|
23146
|
+
/**
|
|
23147
|
+
* Creates a new async iterator which will iterate over the models.PluggableDatabaseSnapshotSummary objects
|
|
23148
|
+
* contained in responses from the listPluggableDatabaseSnapshots operation. This iterator will fetch more data from the
|
|
23149
|
+
* server as needed.
|
|
23150
|
+
*
|
|
23151
|
+
* @param request a request which can be sent to the service operation
|
|
23152
|
+
*/
|
|
23153
|
+
listPluggableDatabaseSnapshotsRecordIterator(request) {
|
|
23154
|
+
return oci_common_1.paginateRecords(request, req => this.listPluggableDatabaseSnapshots(req));
|
|
23155
|
+
}
|
|
23156
|
+
/**
|
|
23157
|
+
* Creates a new async iterator which will iterate over the responses received from the listPluggableDatabaseSnapshots operation. This iterator
|
|
23158
|
+
* will fetch more data from the server as needed.
|
|
23159
|
+
*
|
|
23160
|
+
* @param request a request which can be sent to the service operation
|
|
23161
|
+
*/
|
|
23162
|
+
listPluggableDatabaseSnapshotsResponseIterator(request) {
|
|
23163
|
+
return oci_common_1.paginateResponses(request, req => this.listPluggableDatabaseSnapshots(req));
|
|
23164
|
+
}
|
|
22859
23165
|
/**
|
|
22860
23166
|
* Gets a list of the pluggable databases in a database or compartment. You must provide either a `databaseId` or `compartmentId` value.
|
|
22861
23167
|
*
|