oci-core 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.
Files changed (43) hide show
  1. package/lib/client.d.ts +20 -0
  2. package/lib/client.js +44 -0
  3. package/lib/client.js.map +1 -1
  4. package/lib/model/compute-bare-metal-host.d.ts +12 -2
  5. package/lib/model/compute-bare-metal-host.js +10 -0
  6. package/lib/model/compute-bare-metal-host.js.map +1 -1
  7. package/lib/model/compute-hpc-island.d.ts +6 -1
  8. package/lib/model/compute-hpc-island.js +5 -0
  9. package/lib/model/compute-hpc-island.js.map +1 -1
  10. package/lib/model/compute-network-block.d.ts +6 -1
  11. package/lib/model/compute-network-block.js +5 -0
  12. package/lib/model/compute-network-block.js.map +1 -1
  13. package/lib/model/index.d.ts +10 -0
  14. package/lib/model/index.js +17 -7
  15. package/lib/model/index.js.map +1 -1
  16. package/lib/model/instance-configuration-launch-instance-details.d.ts +4 -0
  17. package/lib/model/instance-configuration-launch-instance-details.js +10 -0
  18. package/lib/model/instance-configuration-launch-instance-details.js.map +1 -1
  19. package/lib/model/instance.d.ts +4 -0
  20. package/lib/model/instance.js +10 -0
  21. package/lib/model/instance.js.map +1 -1
  22. package/lib/model/launch-instance-details.d.ts +4 -0
  23. package/lib/model/launch-instance-details.js +10 -0
  24. package/lib/model/launch-instance-details.js.map +1 -1
  25. package/lib/model/launch-instance-licensing-config.d.ts +45 -0
  26. package/lib/model/launch-instance-licensing-config.js +85 -0
  27. package/lib/model/launch-instance-licensing-config.js.map +1 -0
  28. package/lib/model/launch-instance-windows-licensing-config.d.ts +31 -0
  29. package/lib/model/launch-instance-windows-licensing-config.js +61 -0
  30. package/lib/model/launch-instance-windows-licensing-config.js.map +1 -0
  31. package/lib/model/licensing-config.d.ts +60 -0
  32. package/lib/model/licensing-config.js +55 -0
  33. package/lib/model/licensing-config.js.map +1 -0
  34. package/lib/model/update-instance-details.d.ts +4 -0
  35. package/lib/model/update-instance-details.js +10 -0
  36. package/lib/model/update-instance-details.js.map +1 -1
  37. package/lib/model/update-instance-licensing-config.d.ts +41 -0
  38. package/lib/model/update-instance-licensing-config.js +80 -0
  39. package/lib/model/update-instance-licensing-config.js.map +1 -0
  40. package/lib/model/update-instance-windows-licensing-config.d.ts +32 -0
  41. package/lib/model/update-instance-windows-licensing-config.js +61 -0
  42. package/lib/model/update-instance-windows-licensing-config.js.map +1 -0
  43. package/package.json +3 -3
package/lib/client.d.ts CHANGED
@@ -48,6 +48,7 @@ export declare class BlockstorageClient {
48
48
  protected "_region": common.Region;
49
49
  protected _lastSetRegionOrRegionId: string;
50
50
  protected _httpClient: common.HttpClient;
51
+ protected _authProvider: common.AuthenticationDetailsProvider | undefined;
51
52
  constructor(params: common.AuthParams, clientConfiguration?: common.ClientConfiguration);
52
53
  /**
53
54
  * Get the endpoint that is being used to call (ex, https://www.example.com).
@@ -98,6 +99,10 @@ export declare class BlockstorageClient {
98
99
  * Shutdown the circuit breaker used by the client when it is no longer needed
99
100
  */
100
101
  shutdownCircuitBreaker(): void;
102
+ /**
103
+ * Close the provider if possible which in turn shuts down any associated circuit breaker
104
+ */
105
+ closeProvider(): void;
101
106
  /**
102
107
  * Close the client once it is no longer needed
103
108
  */
@@ -1145,6 +1150,7 @@ export declare class ComputeClient {
1145
1150
  protected "_region": common.Region;
1146
1151
  protected _lastSetRegionOrRegionId: string;
1147
1152
  protected _httpClient: common.HttpClient;
1153
+ protected _authProvider: common.AuthenticationDetailsProvider | undefined;
1148
1154
  constructor(params: common.AuthParams, clientConfiguration?: common.ClientConfiguration);
1149
1155
  /**
1150
1156
  * Get the endpoint that is being used to call (ex, https://www.example.com).
@@ -1195,6 +1201,10 @@ export declare class ComputeClient {
1195
1201
  * Shutdown the circuit breaker used by the client when it is no longer needed
1196
1202
  */
1197
1203
  shutdownCircuitBreaker(): void;
1204
+ /**
1205
+ * Close the provider if possible which in turn shuts down any associated circuit breaker
1206
+ */
1207
+ closeProvider(): void;
1198
1208
  /**
1199
1209
  * Close the client once it is no longer needed
1200
1210
  */
@@ -3253,6 +3263,7 @@ export declare class ComputeManagementClient {
3253
3263
  protected "_region": common.Region;
3254
3264
  protected _lastSetRegionOrRegionId: string;
3255
3265
  protected _httpClient: common.HttpClient;
3266
+ protected _authProvider: common.AuthenticationDetailsProvider | undefined;
3256
3267
  constructor(params: common.AuthParams, clientConfiguration?: common.ClientConfiguration);
3257
3268
  /**
3258
3269
  * Get the endpoint that is being used to call (ex, https://www.example.com).
@@ -3303,6 +3314,10 @@ export declare class ComputeManagementClient {
3303
3314
  * Shutdown the circuit breaker used by the client when it is no longer needed
3304
3315
  */
3305
3316
  shutdownCircuitBreaker(): void;
3317
+ /**
3318
+ * Close the provider if possible which in turn shuts down any associated circuit breaker
3319
+ */
3320
+ closeProvider(): void;
3306
3321
  /**
3307
3322
  * Close the client once it is no longer needed
3308
3323
  */
@@ -3881,6 +3896,7 @@ export declare class VirtualNetworkClient {
3881
3896
  protected "_region": common.Region;
3882
3897
  protected _lastSetRegionOrRegionId: string;
3883
3898
  protected _httpClient: common.HttpClient;
3899
+ protected _authProvider: common.AuthenticationDetailsProvider | undefined;
3884
3900
  constructor(params: common.AuthParams, clientConfiguration?: common.ClientConfiguration);
3885
3901
  /**
3886
3902
  * Get the endpoint that is being used to call (ex, https://www.example.com).
@@ -3931,6 +3947,10 @@ export declare class VirtualNetworkClient {
3931
3947
  * Shutdown the circuit breaker used by the client when it is no longer needed
3932
3948
  */
3933
3949
  shutdownCircuitBreaker(): void;
3950
+ /**
3951
+ * Close the provider if possible which in turn shuts down any associated circuit breaker
3952
+ */
3953
+ closeProvider(): void;
3934
3954
  /**
3935
3955
  * Close the client once it is no longer needed
3936
3956
  */
package/lib/client.js CHANGED
@@ -80,6 +80,7 @@ class BlockstorageClient {
80
80
  const requestSigner = params.authenticationDetailsProvider
81
81
  ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
82
82
  : null;
83
+ this._authProvider = params.authenticationDetailsProvider;
83
84
  if (clientConfiguration) {
84
85
  this._clientConfiguration = clientConfiguration;
85
86
  this._circuitBreaker = clientConfiguration.circuitBreaker
@@ -202,11 +203,21 @@ class BlockstorageClient {
202
203
  this._circuitBreaker.shutdown();
203
204
  }
204
205
  }
206
+ /**
207
+ * Close the provider if possible which in turn shuts down any associated circuit breaker
208
+ */
209
+ closeProvider() {
210
+ if (this._authProvider) {
211
+ if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
212
+ (this._authProvider).closeProvider();
213
+ }
214
+ }
205
215
  /**
206
216
  * Close the client once it is no longer needed
207
217
  */
208
218
  close() {
209
219
  this.shutdownCircuitBreaker();
220
+ this.closeProvider();
210
221
  }
211
222
  /**
212
223
  * Moves a boot volume backup into a different compartment within the same tenancy.
@@ -4547,6 +4558,7 @@ class ComputeClient {
4547
4558
  const requestSigner = params.authenticationDetailsProvider
4548
4559
  ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
4549
4560
  : null;
4561
+ this._authProvider = params.authenticationDetailsProvider;
4550
4562
  if (clientConfiguration) {
4551
4563
  this._clientConfiguration = clientConfiguration;
4552
4564
  this._circuitBreaker = clientConfiguration.circuitBreaker
@@ -4669,11 +4681,21 @@ class ComputeClient {
4669
4681
  this._circuitBreaker.shutdown();
4670
4682
  }
4671
4683
  }
4684
+ /**
4685
+ * Close the provider if possible which in turn shuts down any associated circuit breaker
4686
+ */
4687
+ closeProvider() {
4688
+ if (this._authProvider) {
4689
+ if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
4690
+ (this._authProvider).closeProvider();
4691
+ }
4692
+ }
4672
4693
  /**
4673
4694
  * Close the client once it is no longer needed
4674
4695
  */
4675
4696
  close() {
4676
4697
  this.shutdownCircuitBreaker();
4698
+ this.closeProvider();
4677
4699
  }
4678
4700
  /**
4679
4701
  * Accept the changes to the PCR values in the measured boot report.
@@ -12497,6 +12519,7 @@ class ComputeManagementClient {
12497
12519
  const requestSigner = params.authenticationDetailsProvider
12498
12520
  ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
12499
12521
  : null;
12522
+ this._authProvider = params.authenticationDetailsProvider;
12500
12523
  if (clientConfiguration) {
12501
12524
  this._clientConfiguration = clientConfiguration;
12502
12525
  this._circuitBreaker = clientConfiguration.circuitBreaker
@@ -12619,11 +12642,21 @@ class ComputeManagementClient {
12619
12642
  this._circuitBreaker.shutdown();
12620
12643
  }
12621
12644
  }
12645
+ /**
12646
+ * Close the provider if possible which in turn shuts down any associated circuit breaker
12647
+ */
12648
+ closeProvider() {
12649
+ if (this._authProvider) {
12650
+ if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
12651
+ (this._authProvider).closeProvider();
12652
+ }
12653
+ }
12622
12654
  /**
12623
12655
  * Close the client once it is no longer needed
12624
12656
  */
12625
12657
  close() {
12626
12658
  this.shutdownCircuitBreaker();
12659
+ this.closeProvider();
12627
12660
  }
12628
12661
  /**
12629
12662
  * Attaches an instance to an instance pool. For information about the prerequisites
@@ -14992,6 +15025,7 @@ class VirtualNetworkClient {
14992
15025
  const requestSigner = params.authenticationDetailsProvider
14993
15026
  ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
14994
15027
  : null;
15028
+ this._authProvider = params.authenticationDetailsProvider;
14995
15029
  if (clientConfiguration) {
14996
15030
  this._clientConfiguration = clientConfiguration;
14997
15031
  this._circuitBreaker = clientConfiguration.circuitBreaker
@@ -15114,11 +15148,21 @@ class VirtualNetworkClient {
15114
15148
  this._circuitBreaker.shutdown();
15115
15149
  }
15116
15150
  }
15151
+ /**
15152
+ * Close the provider if possible which in turn shuts down any associated circuit breaker
15153
+ */
15154
+ closeProvider() {
15155
+ if (this._authProvider) {
15156
+ if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
15157
+ (this._authProvider).closeProvider();
15158
+ }
15159
+ }
15117
15160
  /**
15118
15161
  * Close the client once it is no longer needed
15119
15162
  */
15120
15163
  close() {
15121
15164
  this.shutdownCircuitBreaker();
15165
+ this.closeProvider();
15122
15166
  }
15123
15167
  /**
15124
15168
  * Adds one or more route distribution statements to the specified route distribution.