@azure/arm-elasticsan 1.0.0-beta.2 → 1.0.0-beta.3
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/CHANGELOG.md +6 -2
- package/README.md +1 -1
- package/dist/index.js +899 -123
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/elasticSansCreateSample.js +7 -6
- package/dist-esm/samples-dev/elasticSansCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/elasticSansDeleteSample.js +2 -2
- package/dist-esm/samples-dev/elasticSansGetSample.js +2 -2
- package/dist-esm/samples-dev/elasticSansListByResourceGroupSample.js +2 -2
- package/dist-esm/samples-dev/elasticSansListBySubscriptionSample.js +2 -2
- package/dist-esm/samples-dev/elasticSansUpdateSample.js +6 -5
- package/dist-esm/samples-dev/elasticSansUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +2 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js +6 -10
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +2 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +2 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +2 -2
- package/dist-esm/samples-dev/privateLinkResourcesListByElasticSanSample.js +2 -2
- package/dist-esm/samples-dev/skusListSample.js +3 -3
- package/dist-esm/samples-dev/skusListSample.js.map +1 -1
- package/dist-esm/samples-dev/volumeGroupsCreateSample.js +12 -3
- package/dist-esm/samples-dev/volumeGroupsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/volumeGroupsDeleteSample.js +2 -2
- package/dist-esm/samples-dev/volumeGroupsGetSample.js +2 -2
- package/dist-esm/samples-dev/volumeGroupsListByElasticSanSample.js +2 -2
- package/dist-esm/samples-dev/volumeGroupsUpdateSample.js +11 -2
- package/dist-esm/samples-dev/volumeGroupsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/volumeSnapshotsCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/volumeSnapshotsCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/volumeSnapshotsCreateSample.js +70 -0
- package/dist-esm/samples-dev/volumeSnapshotsCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/volumeSnapshotsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/volumeSnapshotsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/volumeSnapshotsDeleteSample.js +60 -0
- package/dist-esm/samples-dev/volumeSnapshotsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/volumeSnapshotsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/volumeSnapshotsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/volumeSnapshotsGetSample.js +60 -0
- package/dist-esm/samples-dev/volumeSnapshotsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/volumeSnapshotsListByVolumeGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/volumeSnapshotsListByVolumeGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/volumeSnapshotsListByVolumeGroupSample.js +102 -0
- package/dist-esm/samples-dev/volumeSnapshotsListByVolumeGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/volumesCreateSample.js +6 -5
- package/dist-esm/samples-dev/volumesCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/volumesDeleteSample.js +9 -3
- package/dist-esm/samples-dev/volumesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/volumesGetSample.js +2 -2
- package/dist-esm/samples-dev/volumesListByVolumeGroupSample.js +2 -2
- package/dist-esm/samples-dev/volumesUpdateSample.js +2 -2
- package/dist-esm/src/elasticSanManagement.d.ts +2 -1
- package/dist-esm/src/elasticSanManagement.d.ts.map +1 -1
- package/dist-esm/src/elasticSanManagement.js +4 -3
- package/dist-esm/src/elasticSanManagement.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +284 -13
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +56 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +10 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +303 -20
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +4 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +39 -2
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +1 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +1 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/volumeSnapshots.d.ts +89 -0
- package/dist-esm/src/operations/volumeSnapshots.d.ts.map +1 -0
- package/dist-esm/src/operations/volumeSnapshots.js +395 -0
- package/dist-esm/src/operations/volumeSnapshots.js.map +1 -0
- package/dist-esm/src/operations/volumes.js +5 -1
- package/dist-esm/src/operations/volumes.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +1 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/volumeSnapshots.d.ts +62 -0
- package/dist-esm/src/operationsInterfaces/volumeSnapshots.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/volumeSnapshots.js +9 -0
- package/dist-esm/src/operationsInterfaces/volumeSnapshots.js.map +1 -0
- package/package.json +12 -18
- package/review/arm-elasticsan.api.md +187 -6
- package/src/elasticSanManagement.ts +8 -4
- package/src/models/index.ts +316 -18
- package/src/models/mappers.ts +323 -19
- package/src/models/parameters.ts +44 -2
- package/src/operations/index.ts +1 -0
- package/src/operations/volumeSnapshots.ts +551 -0
- package/src/operations/volumes.ts +5 -1
- package/src/operationsInterfaces/index.ts +1 -0
- package/src/operationsInterfaces/volumeSnapshots.ts +121 -0
- package/types/arm-elasticsan.d.ts +375 -14
- package/types/tsdoc-metadata.json +1 -1
- package/rollup.config.js +0 -122
|
@@ -4,6 +4,15 @@ import { OperationState } from '@azure/core-lro';
|
|
|
4
4
|
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
5
5
|
import { SimplePollerLike } from '@azure/core-lro';
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* Defines values for Action. \
|
|
9
|
+
* {@link KnownAction} can be used interchangeably with Action,
|
|
10
|
+
* this enum contains the known values that the service supports.
|
|
11
|
+
* ### Known values supported by the service
|
|
12
|
+
* **Allow**
|
|
13
|
+
*/
|
|
14
|
+
export declare type Action = string;
|
|
15
|
+
|
|
7
16
|
/**
|
|
8
17
|
* Defines values for ActionType. \
|
|
9
18
|
* {@link KnownActionType} can be used interchangeably with ActionType,
|
|
@@ -70,6 +79,8 @@ export declare interface ElasticSan extends TrackedResource {
|
|
|
70
79
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
71
80
|
*/
|
|
72
81
|
readonly privateEndpointConnections?: PrivateEndpointConnection[];
|
|
82
|
+
/** Allow or disallow public network access to ElasticSan. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. */
|
|
83
|
+
publicNetworkAccess?: PublicNetworkAccess;
|
|
73
84
|
}
|
|
74
85
|
|
|
75
86
|
/** List of Elastic Sans */
|
|
@@ -103,6 +114,7 @@ export declare class ElasticSanManagement extends coreClient.ServiceClient {
|
|
|
103
114
|
volumes: Volumes;
|
|
104
115
|
privateEndpointConnections: PrivateEndpointConnections;
|
|
105
116
|
privateLinkResources: PrivateLinkResources;
|
|
117
|
+
volumeSnapshots: VolumeSnapshots;
|
|
106
118
|
}
|
|
107
119
|
|
|
108
120
|
/** Optional parameters. */
|
|
@@ -268,6 +280,22 @@ export declare interface ElasticSanUpdate {
|
|
|
268
280
|
baseSizeTiB?: number;
|
|
269
281
|
/** Extended size of the Elastic San appliance in TiB. */
|
|
270
282
|
extendedCapacitySizeTiB?: number;
|
|
283
|
+
/** Allow or disallow public network access to ElasticSan Account. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. */
|
|
284
|
+
publicNetworkAccess?: PublicNetworkAccess;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/** Encryption identity for the volume group. */
|
|
288
|
+
export declare interface EncryptionIdentity {
|
|
289
|
+
/** Resource identifier of the UserAssigned identity to be associated with server-side encryption on the volume group. */
|
|
290
|
+
encryptionUserAssignedIdentity?: string;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
/** The encryption settings on the volume group. */
|
|
294
|
+
export declare interface EncryptionProperties {
|
|
295
|
+
/** Properties provided by key vault. */
|
|
296
|
+
keyVaultProperties?: KeyVaultProperties;
|
|
297
|
+
/** The identity to be used with service-side encryption at rest. */
|
|
298
|
+
encryptionIdentity?: EncryptionIdentity;
|
|
271
299
|
}
|
|
272
300
|
|
|
273
301
|
/**
|
|
@@ -275,7 +303,8 @@ export declare interface ElasticSanUpdate {
|
|
|
275
303
|
* {@link KnownEncryptionType} can be used interchangeably with EncryptionType,
|
|
276
304
|
* this enum contains the known values that the service supports.
|
|
277
305
|
* ### Known values supported by the service
|
|
278
|
-
* **EncryptionAtRestWithPlatformKey**: Volume is encrypted at rest with Platform managed key. It is the default encryption type.
|
|
306
|
+
* **EncryptionAtRestWithPlatformKey**: Volume is encrypted at rest with Platform managed key. It is the default encryption type. \
|
|
307
|
+
* **EncryptionAtRestWithCustomerManagedKey**: Volume is encrypted at rest with Customer managed key that can be changed and revoked by a customer.
|
|
279
308
|
*/
|
|
280
309
|
export declare type EncryptionType = string;
|
|
281
310
|
|
|
@@ -337,6 +366,37 @@ export declare interface ErrorResponse {
|
|
|
337
366
|
*/
|
|
338
367
|
export declare function getContinuationToken(page: unknown): string | undefined;
|
|
339
368
|
|
|
369
|
+
/** Identity for the resource. */
|
|
370
|
+
export declare interface Identity {
|
|
371
|
+
/**
|
|
372
|
+
* The principal ID of resource identity.
|
|
373
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
374
|
+
*/
|
|
375
|
+
readonly principalId?: string;
|
|
376
|
+
/**
|
|
377
|
+
* The tenant ID of resource.
|
|
378
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
379
|
+
*/
|
|
380
|
+
readonly tenantId?: string;
|
|
381
|
+
/** The identity type. */
|
|
382
|
+
type: IdentityType;
|
|
383
|
+
/** Gets or sets a list of key value pairs that describe the set of User Assigned identities that will be used with this volume group. The key is the ARM resource identifier of the identity. */
|
|
384
|
+
userAssignedIdentities?: {
|
|
385
|
+
[propertyName: string]: UserAssignedIdentity;
|
|
386
|
+
};
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* Defines values for IdentityType. \
|
|
391
|
+
* {@link KnownIdentityType} can be used interchangeably with IdentityType,
|
|
392
|
+
* this enum contains the known values that the service supports.
|
|
393
|
+
* ### Known values supported by the service
|
|
394
|
+
* **None** \
|
|
395
|
+
* **SystemAssigned** \
|
|
396
|
+
* **UserAssigned**
|
|
397
|
+
*/
|
|
398
|
+
export declare type IdentityType = string;
|
|
399
|
+
|
|
340
400
|
/** Iscsi target information */
|
|
341
401
|
export declare interface IscsiTargetInfo {
|
|
342
402
|
/**
|
|
@@ -363,6 +423,37 @@ export declare interface IscsiTargetInfo {
|
|
|
363
423
|
status?: OperationalStatus;
|
|
364
424
|
}
|
|
365
425
|
|
|
426
|
+
/** Properties of key vault. */
|
|
427
|
+
export declare interface KeyVaultProperties {
|
|
428
|
+
/** The name of KeyVault key. */
|
|
429
|
+
keyName?: string;
|
|
430
|
+
/** The version of KeyVault key. */
|
|
431
|
+
keyVersion?: string;
|
|
432
|
+
/** The Uri of KeyVault. */
|
|
433
|
+
keyVaultUri?: string;
|
|
434
|
+
/**
|
|
435
|
+
* The object identifier of the current versioned Key Vault Key in use.
|
|
436
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
437
|
+
*/
|
|
438
|
+
readonly currentVersionedKeyIdentifier?: string;
|
|
439
|
+
/**
|
|
440
|
+
* Timestamp of last rotation of the Key Vault Key.
|
|
441
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
442
|
+
*/
|
|
443
|
+
readonly lastKeyRotationTimestamp?: Date;
|
|
444
|
+
/**
|
|
445
|
+
* This is a read only property that represents the expiration time of the current version of the customer managed key used for encryption.
|
|
446
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
447
|
+
*/
|
|
448
|
+
readonly currentVersionedKeyExpirationTimestamp?: Date;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
/** Known values of {@link Action} that the service accepts. */
|
|
452
|
+
export declare enum KnownAction {
|
|
453
|
+
/** Allow */
|
|
454
|
+
Allow = "Allow"
|
|
455
|
+
}
|
|
456
|
+
|
|
366
457
|
/** Known values of {@link ActionType} that the service accepts. */
|
|
367
458
|
export declare enum KnownActionType {
|
|
368
459
|
/** Internal */
|
|
@@ -384,7 +475,19 @@ export declare enum KnownCreatedByType {
|
|
|
384
475
|
/** Known values of {@link EncryptionType} that the service accepts. */
|
|
385
476
|
export declare enum KnownEncryptionType {
|
|
386
477
|
/** Volume is encrypted at rest with Platform managed key. It is the default encryption type. */
|
|
387
|
-
EncryptionAtRestWithPlatformKey = "EncryptionAtRestWithPlatformKey"
|
|
478
|
+
EncryptionAtRestWithPlatformKey = "EncryptionAtRestWithPlatformKey",
|
|
479
|
+
/** Volume is encrypted at rest with Customer managed key that can be changed and revoked by a customer. */
|
|
480
|
+
EncryptionAtRestWithCustomerManagedKey = "EncryptionAtRestWithCustomerManagedKey"
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
/** Known values of {@link IdentityType} that the service accepts. */
|
|
484
|
+
export declare enum KnownIdentityType {
|
|
485
|
+
/** None */
|
|
486
|
+
None = "None",
|
|
487
|
+
/** SystemAssigned */
|
|
488
|
+
SystemAssigned = "SystemAssigned",
|
|
489
|
+
/** UserAssigned */
|
|
490
|
+
UserAssigned = "UserAssigned"
|
|
388
491
|
}
|
|
389
492
|
|
|
390
493
|
/** Known values of {@link OperationalStatus} that the service accepts. */
|
|
@@ -449,6 +552,14 @@ export declare enum KnownProvisioningStates {
|
|
|
449
552
|
Deleting = "Deleting"
|
|
450
553
|
}
|
|
451
554
|
|
|
555
|
+
/** Known values of {@link PublicNetworkAccess} that the service accepts. */
|
|
556
|
+
export declare enum KnownPublicNetworkAccess {
|
|
557
|
+
/** Enabled */
|
|
558
|
+
Enabled = "Enabled",
|
|
559
|
+
/** Disabled */
|
|
560
|
+
Disabled = "Disabled"
|
|
561
|
+
}
|
|
562
|
+
|
|
452
563
|
/** Known values of {@link SkuName} that the service accepts. */
|
|
453
564
|
export declare enum KnownSkuName {
|
|
454
565
|
/** Premium locally redundant storage */
|
|
@@ -471,6 +582,42 @@ export declare enum KnownStorageTargetType {
|
|
|
471
582
|
None = "None"
|
|
472
583
|
}
|
|
473
584
|
|
|
585
|
+
/** Known values of {@link VolumeCreateOption} that the service accepts. */
|
|
586
|
+
export declare enum KnownVolumeCreateOption {
|
|
587
|
+
/** None */
|
|
588
|
+
None = "None",
|
|
589
|
+
/** VolumeSnapshot */
|
|
590
|
+
VolumeSnapshot = "VolumeSnapshot",
|
|
591
|
+
/** DiskSnapshot */
|
|
592
|
+
DiskSnapshot = "DiskSnapshot",
|
|
593
|
+
/** Disk */
|
|
594
|
+
Disk = "Disk",
|
|
595
|
+
/** DiskRestorePoint */
|
|
596
|
+
DiskRestorePoint = "DiskRestorePoint"
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
/** Known values of {@link XMsDeleteSnapshots} that the service accepts. */
|
|
600
|
+
export declare enum KnownXMsDeleteSnapshots {
|
|
601
|
+
/** True */
|
|
602
|
+
True = "true",
|
|
603
|
+
/** False */
|
|
604
|
+
False = "false"
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
/** Known values of {@link XMsForceDelete} that the service accepts. */
|
|
608
|
+
export declare enum KnownXMsForceDelete {
|
|
609
|
+
/** True */
|
|
610
|
+
True = "true",
|
|
611
|
+
/** False */
|
|
612
|
+
False = "false"
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
/** Parent resource information. */
|
|
616
|
+
export declare interface ManagedByInfo {
|
|
617
|
+
/** Resource ID of the resource managing the volume, this is a restricted field and can only be set for internal use. */
|
|
618
|
+
resourceId?: string;
|
|
619
|
+
}
|
|
620
|
+
|
|
474
621
|
/** A set of rules governing the network accessibility. */
|
|
475
622
|
export declare interface NetworkRuleSet {
|
|
476
623
|
/** The list of virtual network rules. */
|
|
@@ -797,6 +944,16 @@ export declare type ProvisioningStates = string;
|
|
|
797
944
|
export declare interface ProxyResource extends Resource {
|
|
798
945
|
}
|
|
799
946
|
|
|
947
|
+
/**
|
|
948
|
+
* Defines values for PublicNetworkAccess. \
|
|
949
|
+
* {@link KnownPublicNetworkAccess} can be used interchangeably with PublicNetworkAccess,
|
|
950
|
+
* this enum contains the known values that the service supports.
|
|
951
|
+
* ### Known values supported by the service
|
|
952
|
+
* **Enabled** \
|
|
953
|
+
* **Disabled**
|
|
954
|
+
*/
|
|
955
|
+
export declare type PublicNetworkAccess = string;
|
|
956
|
+
|
|
800
957
|
/** Common fields that are returned in the response for all Azure Resource Manager resources */
|
|
801
958
|
export declare interface Resource {
|
|
802
959
|
/**
|
|
@@ -936,17 +1093,52 @@ export declare type SkusListResponse = SkuInformationList;
|
|
|
936
1093
|
*/
|
|
937
1094
|
export declare type SkuTier = string;
|
|
938
1095
|
|
|
1096
|
+
/** Response for Volume Snapshot request. */
|
|
1097
|
+
export declare interface Snapshot extends ProxyResource {
|
|
1098
|
+
/** Data used when creating a volume snapshot. */
|
|
1099
|
+
creationData: SnapshotCreationData;
|
|
1100
|
+
/**
|
|
1101
|
+
* State of the operation on the resource.
|
|
1102
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1103
|
+
*/
|
|
1104
|
+
readonly provisioningState?: ProvisioningStates;
|
|
1105
|
+
/**
|
|
1106
|
+
* Size of Source Volume
|
|
1107
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1108
|
+
*/
|
|
1109
|
+
readonly sourceVolumeSizeGiB?: number;
|
|
1110
|
+
/**
|
|
1111
|
+
* Source Volume Name of a snapshot
|
|
1112
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1113
|
+
*/
|
|
1114
|
+
readonly volumeName?: string;
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
/** Data used when creating a volume snapshot. */
|
|
1118
|
+
export declare interface SnapshotCreationData {
|
|
1119
|
+
/** Fully qualified resource ID of the volume. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes/{volumeName}" */
|
|
1120
|
+
sourceId: string;
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
/** List of Snapshots */
|
|
1124
|
+
export declare interface SnapshotList {
|
|
1125
|
+
/** An array of Snapshot objects. */
|
|
1126
|
+
value?: Snapshot[];
|
|
1127
|
+
/**
|
|
1128
|
+
* URI to fetch the next section of the paginated response.
|
|
1129
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1130
|
+
*/
|
|
1131
|
+
readonly nextLink?: string;
|
|
1132
|
+
}
|
|
1133
|
+
|
|
939
1134
|
/** Data source used when creating the volume. */
|
|
940
1135
|
export declare interface SourceCreationData {
|
|
941
1136
|
/** This enumerates the possible sources of a volume creation. */
|
|
942
|
-
createSource?:
|
|
943
|
-
/**
|
|
944
|
-
|
|
1137
|
+
createSource?: VolumeCreateOption;
|
|
1138
|
+
/** Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" */
|
|
1139
|
+
sourceId?: string;
|
|
945
1140
|
}
|
|
946
1141
|
|
|
947
|
-
/** Defines values for State. */
|
|
948
|
-
export declare type State = "provisioning" | "deprovisioning" | "succeeded" | "failed" | "networkSourceDeleted";
|
|
949
|
-
|
|
950
1142
|
/**
|
|
951
1143
|
* Defines values for StorageTargetType. \
|
|
952
1144
|
* {@link KnownStorageTargetType} can be used interchangeably with StorageTargetType,
|
|
@@ -983,17 +1175,26 @@ export declare interface TrackedResource extends Resource {
|
|
|
983
1175
|
location: string;
|
|
984
1176
|
}
|
|
985
1177
|
|
|
1178
|
+
/** UserAssignedIdentity for the resource. */
|
|
1179
|
+
export declare interface UserAssignedIdentity {
|
|
1180
|
+
/**
|
|
1181
|
+
* The principal ID of the identity.
|
|
1182
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1183
|
+
*/
|
|
1184
|
+
readonly principalId?: string;
|
|
1185
|
+
/**
|
|
1186
|
+
* The client ID of the identity.
|
|
1187
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1188
|
+
*/
|
|
1189
|
+
readonly clientId?: string;
|
|
1190
|
+
}
|
|
1191
|
+
|
|
986
1192
|
/** Virtual Network rule. */
|
|
987
1193
|
export declare interface VirtualNetworkRule {
|
|
988
1194
|
/** Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. */
|
|
989
1195
|
virtualNetworkResourceId: string;
|
|
990
1196
|
/** The action of virtual network rule. */
|
|
991
|
-
action?:
|
|
992
|
-
/**
|
|
993
|
-
* Gets the state of virtual network rule.
|
|
994
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
995
|
-
*/
|
|
996
|
-
readonly state?: State;
|
|
1197
|
+
action?: Action;
|
|
997
1198
|
}
|
|
998
1199
|
|
|
999
1200
|
/** Response for Volume request. */
|
|
@@ -1012,10 +1213,32 @@ export declare interface Volume extends ProxyResource {
|
|
|
1012
1213
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1013
1214
|
*/
|
|
1014
1215
|
readonly storageTarget?: IscsiTargetInfo;
|
|
1216
|
+
/** Parent resource information. */
|
|
1217
|
+
managedBy?: ManagedByInfo;
|
|
1218
|
+
/**
|
|
1219
|
+
* State of the operation on the resource.
|
|
1220
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1221
|
+
*/
|
|
1222
|
+
readonly provisioningState?: ProvisioningStates;
|
|
1015
1223
|
}
|
|
1016
1224
|
|
|
1225
|
+
/**
|
|
1226
|
+
* Defines values for VolumeCreateOption. \
|
|
1227
|
+
* {@link KnownVolumeCreateOption} can be used interchangeably with VolumeCreateOption,
|
|
1228
|
+
* this enum contains the known values that the service supports.
|
|
1229
|
+
* ### Known values supported by the service
|
|
1230
|
+
* **None** \
|
|
1231
|
+
* **VolumeSnapshot** \
|
|
1232
|
+
* **DiskSnapshot** \
|
|
1233
|
+
* **Disk** \
|
|
1234
|
+
* **DiskRestorePoint**
|
|
1235
|
+
*/
|
|
1236
|
+
export declare type VolumeCreateOption = string;
|
|
1237
|
+
|
|
1017
1238
|
/** Response for Volume Group request. */
|
|
1018
1239
|
export declare interface VolumeGroup extends ProxyResource {
|
|
1240
|
+
/** The identity of the resource. */
|
|
1241
|
+
identity?: Identity;
|
|
1019
1242
|
/**
|
|
1020
1243
|
* State of the operation on the resource.
|
|
1021
1244
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
@@ -1025,6 +1248,8 @@ export declare interface VolumeGroup extends ProxyResource {
|
|
|
1025
1248
|
protocolType?: StorageTargetType;
|
|
1026
1249
|
/** Type of encryption */
|
|
1027
1250
|
encryption?: EncryptionType;
|
|
1251
|
+
/** Encryption Properties describing Key Vault and Identity information */
|
|
1252
|
+
encryptionProperties?: EncryptionProperties;
|
|
1028
1253
|
/** A collection of rules governing the accessibility from specific network locations. */
|
|
1029
1254
|
networkAcls?: NetworkRuleSet;
|
|
1030
1255
|
/**
|
|
@@ -1179,10 +1404,14 @@ export declare type VolumeGroupsUpdateResponse = VolumeGroup;
|
|
|
1179
1404
|
|
|
1180
1405
|
/** Volume Group request. */
|
|
1181
1406
|
export declare interface VolumeGroupUpdate {
|
|
1407
|
+
/** The identity of the resource. */
|
|
1408
|
+
identity?: Identity;
|
|
1182
1409
|
/** Type of storage target */
|
|
1183
1410
|
protocolType?: StorageTargetType;
|
|
1184
1411
|
/** Type of encryption */
|
|
1185
1412
|
encryption?: EncryptionType;
|
|
1413
|
+
/** Encryption Properties describing Key Vault and Identity information */
|
|
1414
|
+
encryptionProperties?: EncryptionProperties;
|
|
1186
1415
|
/** A collection of rules governing the accessibility from specific network locations. */
|
|
1187
1416
|
networkAcls?: NetworkRuleSet;
|
|
1188
1417
|
}
|
|
@@ -1295,6 +1524,10 @@ export declare interface VolumesDeleteHeaders {
|
|
|
1295
1524
|
|
|
1296
1525
|
/** Optional parameters. */
|
|
1297
1526
|
export declare interface VolumesDeleteOptionalParams extends coreClient.OperationOptions {
|
|
1527
|
+
/** Optional, used to delete snapshots under volume. Allowed value are only true or false. Default value is false. */
|
|
1528
|
+
xMsDeleteSnapshots?: XMsDeleteSnapshots;
|
|
1529
|
+
/** Optional, used to delete volume if active sessions present. Allowed value are only true or false. Default value is false. */
|
|
1530
|
+
xMsForceDelete?: XMsForceDelete;
|
|
1298
1531
|
/** Delay to wait until next poll, in milliseconds. */
|
|
1299
1532
|
updateIntervalInMs?: number;
|
|
1300
1533
|
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
|
|
@@ -1322,6 +1555,112 @@ export declare interface VolumesListByVolumeGroupOptionalParams extends coreClie
|
|
|
1322
1555
|
/** Contains response data for the listByVolumeGroup operation. */
|
|
1323
1556
|
export declare type VolumesListByVolumeGroupResponse = VolumeList;
|
|
1324
1557
|
|
|
1558
|
+
/** Interface representing a VolumeSnapshots. */
|
|
1559
|
+
export declare interface VolumeSnapshots {
|
|
1560
|
+
/**
|
|
1561
|
+
* List Snapshots in a VolumeGroup or List Snapshots by Volume (name) in a VolumeGroup using filter
|
|
1562
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1563
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
1564
|
+
* @param volumeGroupName The name of the VolumeGroup.
|
|
1565
|
+
* @param options The options parameters.
|
|
1566
|
+
*/
|
|
1567
|
+
listByVolumeGroup(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, options?: VolumeSnapshotsListByVolumeGroupOptionalParams): PagedAsyncIterableIterator<Snapshot>;
|
|
1568
|
+
/**
|
|
1569
|
+
* Create a Volume Snapshot.
|
|
1570
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1571
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
1572
|
+
* @param volumeGroupName The name of the VolumeGroup.
|
|
1573
|
+
* @param snapshotName The name of the volume snapshot within the given volume group.
|
|
1574
|
+
* @param parameters Snapshot object.
|
|
1575
|
+
* @param options The options parameters.
|
|
1576
|
+
*/
|
|
1577
|
+
beginCreate(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, snapshotName: string, parameters: Snapshot, options?: VolumeSnapshotsCreateOptionalParams): Promise<SimplePollerLike<OperationState<VolumeSnapshotsCreateResponse>, VolumeSnapshotsCreateResponse>>;
|
|
1578
|
+
/**
|
|
1579
|
+
* Create a Volume Snapshot.
|
|
1580
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1581
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
1582
|
+
* @param volumeGroupName The name of the VolumeGroup.
|
|
1583
|
+
* @param snapshotName The name of the volume snapshot within the given volume group.
|
|
1584
|
+
* @param parameters Snapshot object.
|
|
1585
|
+
* @param options The options parameters.
|
|
1586
|
+
*/
|
|
1587
|
+
beginCreateAndWait(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, snapshotName: string, parameters: Snapshot, options?: VolumeSnapshotsCreateOptionalParams): Promise<VolumeSnapshotsCreateResponse>;
|
|
1588
|
+
/**
|
|
1589
|
+
* Delete a Volume Snapshot.
|
|
1590
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1591
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
1592
|
+
* @param volumeGroupName The name of the VolumeGroup.
|
|
1593
|
+
* @param snapshotName The name of the volume snapshot within the given volume group.
|
|
1594
|
+
* @param options The options parameters.
|
|
1595
|
+
*/
|
|
1596
|
+
beginDelete(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, snapshotName: string, options?: VolumeSnapshotsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
1597
|
+
/**
|
|
1598
|
+
* Delete a Volume Snapshot.
|
|
1599
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1600
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
1601
|
+
* @param volumeGroupName The name of the VolumeGroup.
|
|
1602
|
+
* @param snapshotName The name of the volume snapshot within the given volume group.
|
|
1603
|
+
* @param options The options parameters.
|
|
1604
|
+
*/
|
|
1605
|
+
beginDeleteAndWait(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, snapshotName: string, options?: VolumeSnapshotsDeleteOptionalParams): Promise<void>;
|
|
1606
|
+
/**
|
|
1607
|
+
* Get a Volume Snapshot.
|
|
1608
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1609
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
1610
|
+
* @param volumeGroupName The name of the VolumeGroup.
|
|
1611
|
+
* @param snapshotName The name of the volume snapshot within the given volume group.
|
|
1612
|
+
* @param options The options parameters.
|
|
1613
|
+
*/
|
|
1614
|
+
get(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, snapshotName: string, options?: VolumeSnapshotsGetOptionalParams): Promise<VolumeSnapshotsGetResponse>;
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1617
|
+
/** Optional parameters. */
|
|
1618
|
+
export declare interface VolumeSnapshotsCreateOptionalParams extends coreClient.OperationOptions {
|
|
1619
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
1620
|
+
updateIntervalInMs?: number;
|
|
1621
|
+
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
|
|
1622
|
+
resumeFrom?: string;
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1625
|
+
/** Contains response data for the create operation. */
|
|
1626
|
+
export declare type VolumeSnapshotsCreateResponse = Snapshot;
|
|
1627
|
+
|
|
1628
|
+
/** Defines headers for VolumeSnapshots_delete operation. */
|
|
1629
|
+
export declare interface VolumeSnapshotsDeleteHeaders {
|
|
1630
|
+
location?: string;
|
|
1631
|
+
}
|
|
1632
|
+
|
|
1633
|
+
/** Optional parameters. */
|
|
1634
|
+
export declare interface VolumeSnapshotsDeleteOptionalParams extends coreClient.OperationOptions {
|
|
1635
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
1636
|
+
updateIntervalInMs?: number;
|
|
1637
|
+
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
|
|
1638
|
+
resumeFrom?: string;
|
|
1639
|
+
}
|
|
1640
|
+
|
|
1641
|
+
/** Optional parameters. */
|
|
1642
|
+
export declare interface VolumeSnapshotsGetOptionalParams extends coreClient.OperationOptions {
|
|
1643
|
+
}
|
|
1644
|
+
|
|
1645
|
+
/** Contains response data for the get operation. */
|
|
1646
|
+
export declare type VolumeSnapshotsGetResponse = Snapshot;
|
|
1647
|
+
|
|
1648
|
+
/** Optional parameters. */
|
|
1649
|
+
export declare interface VolumeSnapshotsListByVolumeGroupNextOptionalParams extends coreClient.OperationOptions {
|
|
1650
|
+
}
|
|
1651
|
+
|
|
1652
|
+
/** Contains response data for the listByVolumeGroupNext operation. */
|
|
1653
|
+
export declare type VolumeSnapshotsListByVolumeGroupNextResponse = SnapshotList;
|
|
1654
|
+
|
|
1655
|
+
/** Optional parameters. */
|
|
1656
|
+
export declare interface VolumeSnapshotsListByVolumeGroupOptionalParams extends coreClient.OperationOptions {
|
|
1657
|
+
/** Specify $filter='volumeName eq <volume name>' to filter on volume. */
|
|
1658
|
+
filter?: string;
|
|
1659
|
+
}
|
|
1660
|
+
|
|
1661
|
+
/** Contains response data for the listByVolumeGroup operation. */
|
|
1662
|
+
export declare type VolumeSnapshotsListByVolumeGroupResponse = SnapshotList;
|
|
1663
|
+
|
|
1325
1664
|
/** Defines headers for Volumes_update operation. */
|
|
1326
1665
|
export declare interface VolumesUpdateHeaders {
|
|
1327
1666
|
location?: string;
|
|
@@ -1342,6 +1681,28 @@ export declare type VolumesUpdateResponse = Volume;
|
|
|
1342
1681
|
export declare interface VolumeUpdate {
|
|
1343
1682
|
/** Volume size. */
|
|
1344
1683
|
sizeGiB?: number;
|
|
1684
|
+
/** Parent resource information. */
|
|
1685
|
+
managedBy?: ManagedByInfo;
|
|
1345
1686
|
}
|
|
1346
1687
|
|
|
1688
|
+
/**
|
|
1689
|
+
* Defines values for XMsDeleteSnapshots. \
|
|
1690
|
+
* {@link KnownXMsDeleteSnapshots} can be used interchangeably with XMsDeleteSnapshots,
|
|
1691
|
+
* this enum contains the known values that the service supports.
|
|
1692
|
+
* ### Known values supported by the service
|
|
1693
|
+
* **true** \
|
|
1694
|
+
* **false**
|
|
1695
|
+
*/
|
|
1696
|
+
export declare type XMsDeleteSnapshots = string;
|
|
1697
|
+
|
|
1698
|
+
/**
|
|
1699
|
+
* Defines values for XMsForceDelete. \
|
|
1700
|
+
* {@link KnownXMsForceDelete} can be used interchangeably with XMsForceDelete,
|
|
1701
|
+
* this enum contains the known values that the service supports.
|
|
1702
|
+
* ### Known values supported by the service
|
|
1703
|
+
* **true** \
|
|
1704
|
+
* **false**
|
|
1705
|
+
*/
|
|
1706
|
+
export declare type XMsForceDelete = string;
|
|
1707
|
+
|
|
1347
1708
|
export { }
|
package/rollup.config.js
DELETED
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import nodeResolve from "@rollup/plugin-node-resolve";
|
|
10
|
-
import cjs from "@rollup/plugin-commonjs";
|
|
11
|
-
import sourcemaps from "rollup-plugin-sourcemaps";
|
|
12
|
-
import multiEntry from "@rollup/plugin-multi-entry";
|
|
13
|
-
import json from "@rollup/plugin-json";
|
|
14
|
-
|
|
15
|
-
import nodeBuiltins from "builtin-modules";
|
|
16
|
-
|
|
17
|
-
// #region Warning Handler
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* A function that can determine whether a rollup warning should be ignored. If
|
|
21
|
-
* the function returns `true`, then the warning will not be displayed.
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
function ignoreNiseSinonEval(warning) {
|
|
25
|
-
return (
|
|
26
|
-
warning.code === "EVAL" &&
|
|
27
|
-
warning.id &&
|
|
28
|
-
(warning.id.includes("node_modules/nise") ||
|
|
29
|
-
warning.id.includes("node_modules/sinon")) === true
|
|
30
|
-
);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
function ignoreChaiCircularDependency(warning) {
|
|
34
|
-
return (
|
|
35
|
-
warning.code === "CIRCULAR_DEPENDENCY" &&
|
|
36
|
-
warning.importer && warning.importer.includes("node_modules/chai") === true
|
|
37
|
-
);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval];
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Construct a warning handler for the shared rollup configuration
|
|
44
|
-
* that ignores certain warnings that are not relevant to testing.
|
|
45
|
-
*/
|
|
46
|
-
function makeOnWarnForTesting() {
|
|
47
|
-
return (warning, warn) => {
|
|
48
|
-
// If every inhibitor returns false (i.e. no inhibitors), then show the warning
|
|
49
|
-
if (warningInhibitors.every((inhib) => !inhib(warning))) {
|
|
50
|
-
warn(warning);
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
// #endregion
|
|
56
|
-
|
|
57
|
-
function makeBrowserTestConfig() {
|
|
58
|
-
const config = {
|
|
59
|
-
input: {
|
|
60
|
-
include: ["dist-esm/test/**/*.spec.js"],
|
|
61
|
-
exclude: ["dist-esm/test/**/node/**"]
|
|
62
|
-
},
|
|
63
|
-
output: {
|
|
64
|
-
file: `dist-test/index.browser.js`,
|
|
65
|
-
format: "umd",
|
|
66
|
-
sourcemap: true
|
|
67
|
-
},
|
|
68
|
-
preserveSymlinks: false,
|
|
69
|
-
plugins: [
|
|
70
|
-
multiEntry({ exports: false }),
|
|
71
|
-
nodeResolve({
|
|
72
|
-
mainFields: ["module", "browser"]
|
|
73
|
-
}),
|
|
74
|
-
cjs(),
|
|
75
|
-
json(),
|
|
76
|
-
sourcemaps()
|
|
77
|
-
//viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
|
|
78
|
-
],
|
|
79
|
-
onwarn: makeOnWarnForTesting(),
|
|
80
|
-
// Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0,
|
|
81
|
-
// rollup started respecting the "sideEffects" field in package.json. Since
|
|
82
|
-
// our package.json sets "sideEffects=false", this also applies to test
|
|
83
|
-
// code, which causes all tests to be removed by tree-shaking.
|
|
84
|
-
treeshake: false
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
return config;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
const defaultConfigurationOptions = {
|
|
91
|
-
disableBrowserBundle: false
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
export function makeConfig(pkg, options) {
|
|
95
|
-
options = {
|
|
96
|
-
...defaultConfigurationOptions,
|
|
97
|
-
...(options || {})
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
const baseConfig = {
|
|
101
|
-
// Use the package's module field if it has one
|
|
102
|
-
input: pkg["module"] || "dist-esm/src/index.js",
|
|
103
|
-
external: [
|
|
104
|
-
...nodeBuiltins,
|
|
105
|
-
...Object.keys(pkg.dependencies),
|
|
106
|
-
...Object.keys(pkg.devDependencies)
|
|
107
|
-
],
|
|
108
|
-
output: { file: "dist/index.js", format: "cjs", sourcemap: true },
|
|
109
|
-
preserveSymlinks: false,
|
|
110
|
-
plugins: [sourcemaps(), nodeResolve()]
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
const config = [baseConfig];
|
|
114
|
-
|
|
115
|
-
if (!options.disableBrowserBundle) {
|
|
116
|
-
config.push(makeBrowserTestConfig());
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
return config;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
export default makeConfig(require("./package.json"));
|