oci-database 2.98.1 → 2.100.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 +15 -0
- package/lib/client.js +87 -1
- 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/autonomous-database-summary.d.ts +3 -1
- package/lib/model/autonomous-database-summary.js.map +1 -1
- package/lib/model/autonomous-database.d.ts +3 -1
- package/lib/model/autonomous-database.js.map +1 -1
- package/lib/model/configure-exascale-exadata-infrastructure-details.d.ts +27 -0
- package/lib/model/configure-exascale-exadata-infrastructure-details.js +30 -0
- package/lib/model/configure-exascale-exadata-infrastructure-details.js.map +1 -0
- package/lib/model/create-autonomous-database-base.d.ts +1 -1
- package/lib/model/create-db-home-details.d.ts +5 -0
- package/lib/model/create-db-home-details.js.map +1 -1
- package/lib/model/create-db-home-from-backup-details.d.ts +5 -0
- package/lib/model/create-db-home-from-backup-details.js.map +1 -1
- package/lib/model/create-db-home-from-database-details.d.ts +5 -0
- package/lib/model/create-db-home-from-database-details.js.map +1 -1
- package/lib/model/create-exascale-db-storage-vault-details.d.ts +4 -0
- package/lib/model/create-exascale-db-storage-vault-details.js.map +1 -1
- package/lib/model/create-pluggable-database-creation-type-details.d.ts +2 -2
- package/lib/model/create-vm-cluster-details.d.ts +4 -0
- package/lib/model/create-vm-cluster-details.js.map +1 -1
- package/lib/model/exadata-infrastructure-summary.d.ts +1 -0
- package/lib/model/exadata-infrastructure-summary.js +6 -0
- package/lib/model/exadata-infrastructure-summary.js.map +1 -1
- package/lib/model/exadata-infrastructure.d.ts +1 -0
- package/lib/model/exadata-infrastructure.js +6 -0
- package/lib/model/exadata-infrastructure.js.map +1 -1
- package/lib/model/exascale-config-details.d.ts +31 -0
- package/lib/model/exascale-config-details.js +30 -0
- package/lib/model/exascale-config-details.js.map +1 -0
- package/lib/model/exascale-db-storage-vault-summary.d.ts +4 -0
- package/lib/model/exascale-db-storage-vault-summary.js.map +1 -1
- package/lib/model/exascale-db-storage-vault.d.ts +4 -0
- package/lib/model/exascale-db-storage-vault.js.map +1 -1
- package/lib/model/external-database-base.d.ts +18 -3
- package/lib/model/external-database-base.js +15 -0
- package/lib/model/external-database-base.js.map +1 -1
- package/lib/model/index.d.ts +8 -0
- package/lib/model/index.js +16 -8
- package/lib/model/index.js.map +1 -1
- package/lib/model/infrastructure-target-version-summary.d.ts +6 -1
- package/lib/model/infrastructure-target-version-summary.js +5 -0
- package/lib/model/infrastructure-target-version-summary.js.map +1 -1
- package/lib/model/rotate-autonomous-container-database-encryption-key-details.d.ts +26 -0
- package/lib/model/rotate-autonomous-container-database-encryption-key-details.js +30 -0
- package/lib/model/rotate-autonomous-container-database-encryption-key-details.js.map +1 -0
- package/lib/model/rotate-autonomous-database-encryption-key-details.d.ts +26 -0
- package/lib/model/rotate-autonomous-database-encryption-key-details.js +30 -0
- package/lib/model/rotate-autonomous-database-encryption-key-details.js.map +1 -0
- package/lib/model/update-autonomous-database-details.d.ts +1 -1
- package/lib/model/vm-cluster-summary.d.ts +17 -0
- package/lib/model/vm-cluster-summary.js +10 -0
- package/lib/model/vm-cluster-summary.js.map +1 -1
- package/lib/model/vm-cluster.d.ts +17 -0
- package/lib/model/vm-cluster.js +10 -0
- package/lib/model/vm-cluster.js.map +1 -1
- package/lib/request/configure-exascale-exadata-infrastructure-request.d.ts +48 -0
- package/lib/request/configure-exascale-exadata-infrastructure-request.js +15 -0
- package/lib/request/configure-exascale-exadata-infrastructure-request.js.map +1 -0
- package/lib/request/index.d.ts +2 -0
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-exascale-db-storage-vaults-request.d.ts +4 -0
- package/lib/request/list-exascale-db-storage-vaults-request.js.map +1 -1
- package/lib/request/rotate-autonomous-container-database-encryption-key-request.d.ts +5 -0
- package/lib/request/rotate-autonomous-database-encryption-key-request.d.ts +5 -0
- package/lib/response/configure-exascale-exadata-infrastructure-response.d.ts +34 -0
- package/lib/response/configure-exascale-exadata-infrastructure-response.js +15 -0
- package/lib/response/configure-exascale-exadata-infrastructure-response.js.map +1 -0
- package/lib/response/index.d.ts +2 -0
- package/package.json +3 -3
package/lib/client.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ export declare class DatabaseClient {
|
|
|
39
39
|
protected "_region": common.Region;
|
|
40
40
|
protected _lastSetRegionOrRegionId: string;
|
|
41
41
|
protected _httpClient: common.HttpClient;
|
|
42
|
+
protected _authProvider: common.AuthenticationDetailsProvider | undefined;
|
|
42
43
|
constructor(params: common.AuthParams, clientConfiguration?: common.ClientConfiguration);
|
|
43
44
|
/**
|
|
44
45
|
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
@@ -89,6 +90,10 @@ export declare class DatabaseClient {
|
|
|
89
90
|
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
90
91
|
*/
|
|
91
92
|
shutdownCircuitBreaker(): void;
|
|
93
|
+
/**
|
|
94
|
+
* Close the provider if possible which in turn shuts down any associated circuit breaker
|
|
95
|
+
*/
|
|
96
|
+
closeProvider(): void;
|
|
92
97
|
/**
|
|
93
98
|
* Close the client once it is no longer needed
|
|
94
99
|
*/
|
|
@@ -519,6 +524,16 @@ export declare class DatabaseClient {
|
|
|
519
524
|
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/ConfigureAutonomousDatabaseVaultKey.ts.html |here} to see how to use ConfigureAutonomousDatabaseVaultKey API.
|
|
520
525
|
*/
|
|
521
526
|
configureAutonomousDatabaseVaultKey(configureAutonomousDatabaseVaultKeyRequest: requests.ConfigureAutonomousDatabaseVaultKeyRequest): Promise<responses.ConfigureAutonomousDatabaseVaultKeyResponse>;
|
|
527
|
+
/**
|
|
528
|
+
* Configures Exascale on Exadata infrastructure resource. Applies to Exadata Cloud@Customer instances only.
|
|
529
|
+
*
|
|
530
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
531
|
+
* @param ConfigureExascaleExadataInfrastructureRequest
|
|
532
|
+
* @return ConfigureExascaleExadataInfrastructureResponse
|
|
533
|
+
* @throws OciError when an error occurs
|
|
534
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/ConfigureExascaleExadataInfrastructure.ts.html |here} to see how to use ConfigureExascaleExadataInfrastructure API.
|
|
535
|
+
*/
|
|
536
|
+
configureExascaleExadataInfrastructure(configureExascaleExadataInfrastructureRequest: requests.ConfigureExascaleExadataInfrastructureRequest): Promise<responses.ConfigureExascaleExadataInfrastructureResponse>;
|
|
522
537
|
/**
|
|
523
538
|
* This operation updates SaaS administrative user configuration of the Autonomous Database.
|
|
524
539
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
package/lib/client.js
CHANGED
|
@@ -71,6 +71,7 @@ class DatabaseClient {
|
|
|
71
71
|
const requestSigner = params.authenticationDetailsProvider
|
|
72
72
|
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
73
73
|
: null;
|
|
74
|
+
this._authProvider = params.authenticationDetailsProvider;
|
|
74
75
|
if (clientConfiguration) {
|
|
75
76
|
this._clientConfiguration = clientConfiguration;
|
|
76
77
|
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
@@ -193,11 +194,21 @@ class DatabaseClient {
|
|
|
193
194
|
this._circuitBreaker.shutdown();
|
|
194
195
|
}
|
|
195
196
|
}
|
|
197
|
+
/**
|
|
198
|
+
* Close the provider if possible which in turn shuts down any associated circuit breaker
|
|
199
|
+
*/
|
|
200
|
+
closeProvider() {
|
|
201
|
+
if (this._authProvider) {
|
|
202
|
+
if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
|
|
203
|
+
(this._authProvider).closeProvider();
|
|
204
|
+
}
|
|
205
|
+
}
|
|
196
206
|
/**
|
|
197
207
|
* Close the client once it is no longer needed
|
|
198
208
|
*/
|
|
199
209
|
close() {
|
|
200
210
|
this.shutdownCircuitBreaker();
|
|
211
|
+
this.closeProvider();
|
|
201
212
|
}
|
|
202
213
|
/**
|
|
203
214
|
* Activates the specified Exadata infrastructure resource. Applies to Exadata Cloud@Customer instances only.
|
|
@@ -2882,6 +2893,78 @@ class DatabaseClient {
|
|
|
2882
2893
|
}
|
|
2883
2894
|
});
|
|
2884
2895
|
}
|
|
2896
|
+
/**
|
|
2897
|
+
* Configures Exascale on Exadata infrastructure resource. Applies to Exadata Cloud@Customer instances only.
|
|
2898
|
+
*
|
|
2899
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2900
|
+
* @param ConfigureExascaleExadataInfrastructureRequest
|
|
2901
|
+
* @return ConfigureExascaleExadataInfrastructureResponse
|
|
2902
|
+
* @throws OciError when an error occurs
|
|
2903
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/database/ConfigureExascaleExadataInfrastructure.ts.html |here} to see how to use ConfigureExascaleExadataInfrastructure API.
|
|
2904
|
+
*/
|
|
2905
|
+
configureExascaleExadataInfrastructure(configureExascaleExadataInfrastructureRequest) {
|
|
2906
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2907
|
+
if (this.logger)
|
|
2908
|
+
this.logger.debug("Calling operation DatabaseClient#configureExascaleExadataInfrastructure.");
|
|
2909
|
+
const operationName = "configureExascaleExadataInfrastructure";
|
|
2910
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExadataInfrastructure/ConfigureExascaleExadataInfrastructure";
|
|
2911
|
+
const pathParams = {
|
|
2912
|
+
"{exadataInfrastructureId}": configureExascaleExadataInfrastructureRequest.exadataInfrastructureId
|
|
2913
|
+
};
|
|
2914
|
+
const queryParams = {};
|
|
2915
|
+
let headerParams = {
|
|
2916
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2917
|
+
"if-match": configureExascaleExadataInfrastructureRequest.ifMatch,
|
|
2918
|
+
"opc-request-id": configureExascaleExadataInfrastructureRequest.opcRequestId,
|
|
2919
|
+
"opc-retry-token": configureExascaleExadataInfrastructureRequest.opcRetryToken
|
|
2920
|
+
};
|
|
2921
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2922
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, configureExascaleExadataInfrastructureRequest.retryConfiguration, specRetryConfiguration);
|
|
2923
|
+
if (this.logger)
|
|
2924
|
+
retrier.logger = this.logger;
|
|
2925
|
+
const request = yield oci_common_2.composeRequest({
|
|
2926
|
+
baseEndpoint: this._endpoint,
|
|
2927
|
+
defaultHeaders: this._defaultHeaders,
|
|
2928
|
+
path: "/exadataInfrastructures/{exadataInfrastructureId}/actions/configureExascale",
|
|
2929
|
+
method: "POST",
|
|
2930
|
+
bodyContent: common.ObjectSerializer.serialize(configureExascaleExadataInfrastructureRequest.configureExascaleExadataInfrastructureDetails, "ConfigureExascaleExadataInfrastructureDetails", model.ConfigureExascaleExadataInfrastructureDetails.getJsonObj),
|
|
2931
|
+
pathParams: pathParams,
|
|
2932
|
+
headerParams: headerParams,
|
|
2933
|
+
queryParams: queryParams
|
|
2934
|
+
});
|
|
2935
|
+
try {
|
|
2936
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2937
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
2938
|
+
responseObject: {},
|
|
2939
|
+
body: yield response.json(),
|
|
2940
|
+
bodyKey: "exadataInfrastructure",
|
|
2941
|
+
bodyModel: model.ExadataInfrastructure,
|
|
2942
|
+
type: "model.ExadataInfrastructure",
|
|
2943
|
+
responseHeaders: [
|
|
2944
|
+
{
|
|
2945
|
+
value: response.headers.get("opc-work-request-id"),
|
|
2946
|
+
key: "opcWorkRequestId",
|
|
2947
|
+
dataType: "string"
|
|
2948
|
+
},
|
|
2949
|
+
{
|
|
2950
|
+
value: response.headers.get("etag"),
|
|
2951
|
+
key: "etag",
|
|
2952
|
+
dataType: "string"
|
|
2953
|
+
},
|
|
2954
|
+
{
|
|
2955
|
+
value: response.headers.get("opc-request-id"),
|
|
2956
|
+
key: "opcRequestId",
|
|
2957
|
+
dataType: "string"
|
|
2958
|
+
}
|
|
2959
|
+
]
|
|
2960
|
+
});
|
|
2961
|
+
return sdkResponse;
|
|
2962
|
+
}
|
|
2963
|
+
catch (err) {
|
|
2964
|
+
throw err;
|
|
2965
|
+
}
|
|
2966
|
+
});
|
|
2967
|
+
}
|
|
2885
2968
|
/**
|
|
2886
2969
|
* This operation updates SaaS administrative user configuration of the Autonomous Database.
|
|
2887
2970
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
@@ -20211,7 +20294,8 @@ class DatabaseClient {
|
|
|
20211
20294
|
"sortBy": listExascaleDbStorageVaultsRequest.sortBy,
|
|
20212
20295
|
"sortOrder": listExascaleDbStorageVaultsRequest.sortOrder,
|
|
20213
20296
|
"lifecycleState": listExascaleDbStorageVaultsRequest.lifecycleState,
|
|
20214
|
-
"displayName": listExascaleDbStorageVaultsRequest.displayName
|
|
20297
|
+
"displayName": listExascaleDbStorageVaultsRequest.displayName,
|
|
20298
|
+
"exadataInfrastructureId": listExascaleDbStorageVaultsRequest.exadataInfrastructureId
|
|
20215
20299
|
};
|
|
20216
20300
|
let headerParams = {
|
|
20217
20301
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
@@ -24737,6 +24821,7 @@ class DatabaseClient {
|
|
|
24737
24821
|
defaultHeaders: this._defaultHeaders,
|
|
24738
24822
|
path: "/autonomousContainerDatabases/{autonomousContainerDatabaseId}/actions/rotateKey",
|
|
24739
24823
|
method: "POST",
|
|
24824
|
+
bodyContent: common.ObjectSerializer.serialize(rotateAutonomousContainerDatabaseEncryptionKeyRequest.rotateAutonomousContainerDatabaseEncryptionKeyDetails, "RotateAutonomousContainerDatabaseEncryptionKeyDetails", model.RotateAutonomousContainerDatabaseEncryptionKeyDetails.getJsonObj),
|
|
24740
24825
|
pathParams: pathParams,
|
|
24741
24826
|
headerParams: headerParams,
|
|
24742
24827
|
queryParams: queryParams
|
|
@@ -24807,6 +24892,7 @@ class DatabaseClient {
|
|
|
24807
24892
|
defaultHeaders: this._defaultHeaders,
|
|
24808
24893
|
path: "/autonomousDatabases/{autonomousDatabaseId}/actions/rotateKey",
|
|
24809
24894
|
method: "POST",
|
|
24895
|
+
bodyContent: common.ObjectSerializer.serialize(rotateAutonomousDatabaseEncryptionKeyRequest.rotateAutonomousDatabaseEncryptionKeyDetails, "RotateAutonomousDatabaseEncryptionKeyDetails", model.RotateAutonomousDatabaseEncryptionKeyDetails.getJsonObj),
|
|
24810
24896
|
pathParams: pathParams,
|
|
24811
24897
|
headerParams: headerParams,
|
|
24812
24898
|
queryParams: queryParams
|