oci-database 2.118.1 → 2.119.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 +13 -0
- package/lib/client.js +75 -0
- package/lib/client.js.map +1 -1
- package/lib/database-waiter.d.ts +10 -0
- package/lib/database-waiter.js +21 -0
- package/lib/database-waiter.js.map +1 -1
- package/lib/model/convert-standby-database-type-details.d.ts +51 -0
- package/lib/model/convert-standby-database-type-details.js +35 -0
- package/lib/model/convert-standby-database-type-details.js.map +1 -0
- package/lib/model/data-guard-association-summary.d.ts +2 -0
- package/lib/model/data-guard-association-summary.js +2 -0
- package/lib/model/data-guard-association-summary.js.map +1 -1
- package/lib/model/data-guard-association.d.ts +2 -0
- package/lib/model/data-guard-association.js +2 -0
- package/lib/model/data-guard-association.js.map +1 -1
- package/lib/model/data-guard-group-member.d.ts +1 -0
- package/lib/model/data-guard-group-member.js +1 -0
- package/lib/model/data-guard-group-member.js.map +1 -1
- package/lib/model/index.d.ts +2 -0
- package/lib/model/index.js +11 -9
- package/lib/model/index.js.map +1 -1
- package/lib/request/convert-standby-database-type-request.d.ts +48 -0
- package/lib/request/convert-standby-database-type-request.js +15 -0
- package/lib/request/convert-standby-database-type-request.js.map +1 -0
- package/lib/request/index.d.ts +2 -0
- package/lib/request/index.js.map +1 -1
- package/lib/response/convert-standby-database-type-response.d.ts +34 -0
- package/lib/response/convert-standby-database-type-response.js +15 -0
- package/lib/response/convert-standby-database-type-response.js.map +1 -0
- package/lib/response/index.d.ts +2 -0
- package/package.json +3 -3
package/lib/client.d.ts
CHANGED
|
@@ -635,6 +635,19 @@ export declare class DatabaseClient {
|
|
|
635
635
|
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/ConvertStandbyAutonomousContainerDatabase.ts.html |here} to see how to use ConvertStandbyAutonomousContainerDatabase API.
|
|
636
636
|
*/
|
|
637
637
|
convertStandbyAutonomousContainerDatabase(convertStandbyAutonomousContainerDatabaseRequest: requests.ConvertStandbyAutonomousContainerDatabaseRequest): Promise<responses.ConvertStandbyAutonomousContainerDatabaseResponse>;
|
|
638
|
+
/**
|
|
639
|
+
* Performs transition from standby database into a snapshot standby and vice versa.
|
|
640
|
+
* The transition performed based on the current role of the database, if the current role is standby then this operation will convert it to snapshot standby and if the current role is snapshot standby then this operation will convert it to standby.
|
|
641
|
+
* <p>
|
|
642
|
+
This operation should be performed on respective standby/snapshot standby database.
|
|
643
|
+
*
|
|
644
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
645
|
+
* @param ConvertStandbyDatabaseTypeRequest
|
|
646
|
+
* @return ConvertStandbyDatabaseTypeResponse
|
|
647
|
+
* @throws OciError when an error occurs
|
|
648
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/ConvertStandbyDatabaseType.ts.html |here} to see how to use ConvertStandbyDatabaseType API.
|
|
649
|
+
*/
|
|
650
|
+
convertStandbyDatabaseType(convertStandbyDatabaseTypeRequest: requests.ConvertStandbyDatabaseTypeRequest): Promise<responses.ConvertStandbyDatabaseTypeResponse>;
|
|
638
651
|
/**
|
|
639
652
|
* Converts a non-container database to a pluggable database.
|
|
640
653
|
*
|
package/lib/client.js
CHANGED
|
@@ -3636,6 +3636,81 @@ class DatabaseClient {
|
|
|
3636
3636
|
}
|
|
3637
3637
|
});
|
|
3638
3638
|
}
|
|
3639
|
+
/**
|
|
3640
|
+
* Performs transition from standby database into a snapshot standby and vice versa.
|
|
3641
|
+
* The transition performed based on the current role of the database, if the current role is standby then this operation will convert it to snapshot standby and if the current role is snapshot standby then this operation will convert it to standby.
|
|
3642
|
+
* <p>
|
|
3643
|
+
This operation should be performed on respective standby/snapshot standby database.
|
|
3644
|
+
*
|
|
3645
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
3646
|
+
* @param ConvertStandbyDatabaseTypeRequest
|
|
3647
|
+
* @return ConvertStandbyDatabaseTypeResponse
|
|
3648
|
+
* @throws OciError when an error occurs
|
|
3649
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/ConvertStandbyDatabaseType.ts.html |here} to see how to use ConvertStandbyDatabaseType API.
|
|
3650
|
+
*/
|
|
3651
|
+
convertStandbyDatabaseType(convertStandbyDatabaseTypeRequest) {
|
|
3652
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3653
|
+
if (this.logger)
|
|
3654
|
+
this.logger.debug("Calling operation DatabaseClient#convertStandbyDatabaseType.");
|
|
3655
|
+
const operationName = "convertStandbyDatabaseType";
|
|
3656
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/Database/ConvertStandbyDatabaseType";
|
|
3657
|
+
const pathParams = {
|
|
3658
|
+
"{databaseId}": convertStandbyDatabaseTypeRequest.databaseId
|
|
3659
|
+
};
|
|
3660
|
+
const queryParams = {};
|
|
3661
|
+
let headerParams = {
|
|
3662
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3663
|
+
"opc-retry-token": convertStandbyDatabaseTypeRequest.opcRetryToken,
|
|
3664
|
+
"opc-request-id": convertStandbyDatabaseTypeRequest.opcRequestId,
|
|
3665
|
+
"if-match": convertStandbyDatabaseTypeRequest.ifMatch
|
|
3666
|
+
};
|
|
3667
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3668
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, convertStandbyDatabaseTypeRequest.retryConfiguration, specRetryConfiguration);
|
|
3669
|
+
if (this.logger)
|
|
3670
|
+
retrier.logger = this.logger;
|
|
3671
|
+
const request = yield oci_common_2.composeRequest({
|
|
3672
|
+
baseEndpoint: this._endpoint,
|
|
3673
|
+
defaultHeaders: this._defaultHeaders,
|
|
3674
|
+
path: "/databases/{databaseId}/dataGuard/actions/convertStandbyDatabaseType",
|
|
3675
|
+
method: "POST",
|
|
3676
|
+
bodyContent: common.ObjectSerializer.serialize(convertStandbyDatabaseTypeRequest.convertStandbyDatabaseTypeDetails, "ConvertStandbyDatabaseTypeDetails", model.ConvertStandbyDatabaseTypeDetails.getJsonObj),
|
|
3677
|
+
pathParams: pathParams,
|
|
3678
|
+
headerParams: headerParams,
|
|
3679
|
+
queryParams: queryParams
|
|
3680
|
+
});
|
|
3681
|
+
try {
|
|
3682
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3683
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
3684
|
+
responseObject: {},
|
|
3685
|
+
body: yield response.json(),
|
|
3686
|
+
bodyKey: "database",
|
|
3687
|
+
bodyModel: model.Database,
|
|
3688
|
+
type: "model.Database",
|
|
3689
|
+
responseHeaders: [
|
|
3690
|
+
{
|
|
3691
|
+
value: response.headers.get("opc-work-request-id"),
|
|
3692
|
+
key: "opcWorkRequestId",
|
|
3693
|
+
dataType: "string"
|
|
3694
|
+
},
|
|
3695
|
+
{
|
|
3696
|
+
value: response.headers.get("etag"),
|
|
3697
|
+
key: "etag",
|
|
3698
|
+
dataType: "string"
|
|
3699
|
+
},
|
|
3700
|
+
{
|
|
3701
|
+
value: response.headers.get("opc-request-id"),
|
|
3702
|
+
key: "opcRequestId",
|
|
3703
|
+
dataType: "string"
|
|
3704
|
+
}
|
|
3705
|
+
]
|
|
3706
|
+
});
|
|
3707
|
+
return sdkResponse;
|
|
3708
|
+
}
|
|
3709
|
+
catch (err) {
|
|
3710
|
+
throw err;
|
|
3711
|
+
}
|
|
3712
|
+
});
|
|
3713
|
+
}
|
|
3639
3714
|
/**
|
|
3640
3715
|
* Converts a non-container database to a pluggable database.
|
|
3641
3716
|
*
|