|
6 | 6 |
|
7 | 7 | import type { AbortSignalLike } from '@azure/abort-controller'; |
8 | 8 | import type { ClientOptions } from '@azure-rest/core-client'; |
| 9 | +import { isRestError } from '@azure/core-rest-pipeline'; |
9 | 10 | import type { OperationOptions } from '@azure-rest/core-client'; |
10 | 11 | import type { OperationState } from '@azure/core-lro'; |
11 | 12 | import type { PathUncheckedResponse } from '@azure-rest/core-client'; |
12 | 13 | import type { Pipeline } from '@azure/core-rest-pipeline'; |
13 | 14 | import type { PollerLike } from '@azure/core-lro'; |
| 15 | +import { RestError } from '@azure/core-rest-pipeline'; |
14 | 16 | import type { TokenCredential } from '@azure/core-auth'; |
15 | 17 |
|
16 | 18 | // @public |
@@ -200,6 +202,8 @@ export type IdentityProviderType = string; |
200 | 202 | // @public |
201 | 203 | export type IdentityProviderUnion = EntraIdentityProvider | IdentityProvider; |
202 | 204 |
|
| 205 | +export { isRestError } |
| 206 | + |
203 | 207 | // @public |
204 | 208 | export interface KeyEncryptionKeyIdentity { |
205 | 209 | identityType?: KeyEncryptionKeyIdentityType; |
@@ -290,6 +294,12 @@ export enum KnownMongoClusterStatus { |
290 | 294 | Updating = "Updating" |
291 | 295 | } |
292 | 296 |
|
| 297 | +// @public |
| 298 | +export enum KnownNetworkBypassMode { |
| 299 | + AzureCosmosDB = "AzureCosmosDB", |
| 300 | + None = "None" |
| 301 | +} |
| 302 | + |
293 | 303 | // @public |
294 | 304 | export enum KnownOrigin { |
295 | 305 | System = "system", |
@@ -373,8 +383,15 @@ export enum KnownUserRole { |
373 | 383 |
|
374 | 384 | // @public |
375 | 385 | export enum KnownVersions { |
| 386 | + V20240301Preview = "2024-03-01-preview", |
| 387 | + V20240601Preview = "2024-06-01-preview", |
376 | 388 | V20240701 = "2024-07-01", |
377 | | - V20250901 = "2025-09-01" |
| 389 | + V20241001Preview = "2024-10-01-preview", |
| 390 | + V20250401Preview = "2025-04-01-preview", |
| 391 | + V20250701Preview = "2025-07-01-preview", |
| 392 | + V20250801Preview = "2025-08-01-preview", |
| 393 | + V20250901 = "2025-09-01", |
| 394 | + V20260201Preview = "2026-02-01-preview" |
378 | 395 | } |
379 | 396 |
|
380 | 397 | // @public |
@@ -431,6 +448,7 @@ export interface MongoClusterProperties { |
431 | 448 | encryption?: EncryptionProperties; |
432 | 449 | highAvailability?: HighAvailabilityProperties; |
433 | 450 | readonly infrastructureVersion?: string; |
| 451 | + networkBypassMode?: NetworkBypassMode; |
434 | 452 | previewFeatures?: PreviewFeature[]; |
435 | 453 | readonly privateEndpointConnections?: PrivateEndpointConnection[]; |
436 | 454 | readonly provisioningState?: ProvisioningState; |
@@ -527,13 +545,17 @@ export interface MongoClusterUpdateProperties { |
527 | 545 | dataApi?: DataApiProperties; |
528 | 546 | encryption?: EncryptionProperties; |
529 | 547 | highAvailability?: HighAvailabilityProperties; |
| 548 | + networkBypassMode?: NetworkBypassMode; |
530 | 549 | previewFeatures?: PreviewFeature[]; |
531 | 550 | publicNetworkAccess?: PublicNetworkAccess; |
532 | 551 | serverVersion?: string; |
533 | 552 | sharding?: ShardingProperties; |
534 | 553 | storage?: StorageProperties; |
535 | 554 | } |
536 | 555 |
|
| 556 | +// @public |
| 557 | +export type NetworkBypassMode = string; |
| 558 | + |
537 | 559 | // @public |
538 | 560 | export interface Operation { |
539 | 561 | readonly actionType?: ActionType; |
@@ -718,6 +740,8 @@ export interface Resource { |
718 | 740 | readonly type?: string; |
719 | 741 | } |
720 | 742 |
|
| 743 | +export { RestError } |
| 744 | + |
721 | 745 | // @public |
722 | 746 | export function restorePoller<TResponse extends PathUncheckedResponse, TResult>(client: MongoClusterManagementClient, serializedState: string, sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>, options?: RestorePollerOptions<TResult>): PollerLike<OperationState<TResult>, TResult>; |
723 | 747 |
|
|
0 commit comments