oci-database 2.99.0 → 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 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
  */
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.
@@ -24810,6 +24821,7 @@ class DatabaseClient {
24810
24821
  defaultHeaders: this._defaultHeaders,
24811
24822
  path: "/autonomousContainerDatabases/{autonomousContainerDatabaseId}/actions/rotateKey",
24812
24823
  method: "POST",
24824
+ bodyContent: common.ObjectSerializer.serialize(rotateAutonomousContainerDatabaseEncryptionKeyRequest.rotateAutonomousContainerDatabaseEncryptionKeyDetails, "RotateAutonomousContainerDatabaseEncryptionKeyDetails", model.RotateAutonomousContainerDatabaseEncryptionKeyDetails.getJsonObj),
24813
24825
  pathParams: pathParams,
24814
24826
  headerParams: headerParams,
24815
24827
  queryParams: queryParams
@@ -24880,6 +24892,7 @@ class DatabaseClient {
24880
24892
  defaultHeaders: this._defaultHeaders,
24881
24893
  path: "/autonomousDatabases/{autonomousDatabaseId}/actions/rotateKey",
24882
24894
  method: "POST",
24895
+ bodyContent: common.ObjectSerializer.serialize(rotateAutonomousDatabaseEncryptionKeyRequest.rotateAutonomousDatabaseEncryptionKeyDetails, "RotateAutonomousDatabaseEncryptionKeyDetails", model.RotateAutonomousDatabaseEncryptionKeyDetails.getJsonObj),
24883
24896
  pathParams: pathParams,
24884
24897
  headerParams: headerParams,
24885
24898
  queryParams: queryParams