@azure/arm-elasticsan 1.0.0-alpha.20240118.1 → 1.0.0-alpha.20240126.1

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 (39) hide show
  1. package/CHANGELOG.md +1 -79
  2. package/LICENSE +1 -1
  3. package/dist/index.js +403 -230
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/elasticSansCreateSample.js +12 -8
  8. package/dist-esm/samples-dev/elasticSansCreateSample.js.map +1 -1
  9. package/dist-esm/samples-dev/elasticSansUpdateSample.js +5 -3
  10. package/dist-esm/samples-dev/elasticSansUpdateSample.js.map +1 -1
  11. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js +9 -7
  12. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js.map +1 -1
  13. package/dist-esm/samples-dev/volumeGroupsCreateSample.js +19 -17
  14. package/dist-esm/samples-dev/volumeGroupsCreateSample.js.map +1 -1
  15. package/dist-esm/samples-dev/volumeGroupsUpdateSample.js +19 -17
  16. package/dist-esm/samples-dev/volumeGroupsUpdateSample.js.map +1 -1
  17. package/dist-esm/samples-dev/volumeSnapshotsCreateSample.js +8 -4
  18. package/dist-esm/samples-dev/volumeSnapshotsCreateSample.js.map +1 -1
  19. package/dist-esm/samples-dev/volumesCreateSample.js +6 -4
  20. package/dist-esm/samples-dev/volumesCreateSample.js.map +1 -1
  21. package/dist-esm/samples-dev/volumesUpdateSample.js +1 -1
  22. package/dist-esm/samples-dev/volumesUpdateSample.js.map +1 -1
  23. package/dist-esm/src/elasticSanManagement.js +1 -1
  24. package/dist-esm/src/elasticSanManagement.js.map +1 -1
  25. package/dist-esm/src/models/index.d.ts +169 -124
  26. package/dist-esm/src/models/index.d.ts.map +1 -1
  27. package/dist-esm/src/models/index.js.map +1 -1
  28. package/dist-esm/src/models/mappers.d.ts +9 -0
  29. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  30. package/dist-esm/src/models/mappers.js +393 -229
  31. package/dist-esm/src/models/mappers.js.map +1 -1
  32. package/dist-esm/test/elasticsan_examples.spec.js +37 -8
  33. package/dist-esm/test/elasticsan_examples.spec.js.map +1 -1
  34. package/package.json +5 -3
  35. package/review/arm-elasticsan.api.md +84 -39
  36. package/src/elasticSanManagement.ts +1 -1
  37. package/src/models/index.ts +178 -124
  38. package/src/models/mappers.ts +406 -262
  39. package/types/arm-elasticsan.d.ts +169 -115
@@ -202,6 +202,55 @@ export interface ElasticSanList {
202
202
  readonly nextLink?: string;
203
203
  }
204
204
 
205
+ /** Elastic San response properties. */
206
+ export interface ElasticSanProperties {
207
+ /** resource sku */
208
+ sku: Sku;
209
+ /** Logical zone for Elastic San resource; example: ["1"]. */
210
+ availabilityZones?: string[];
211
+ /**
212
+ * State of the operation on the resource.
213
+ * NOTE: This property will not be serialized. It can only be populated by the server.
214
+ */
215
+ readonly provisioningState?: ProvisioningStates;
216
+ /** Base size of the Elastic San appliance in TiB. */
217
+ baseSizeTiB: number;
218
+ /** Extended size of the Elastic San appliance in TiB. */
219
+ extendedCapacitySizeTiB: number;
220
+ /**
221
+ * Total size of the provisioned Volumes in GiB.
222
+ * NOTE: This property will not be serialized. It can only be populated by the server.
223
+ */
224
+ readonly totalVolumeSizeGiB?: number;
225
+ /**
226
+ * Total number of volume groups in this Elastic San appliance.
227
+ * NOTE: This property will not be serialized. It can only be populated by the server.
228
+ */
229
+ readonly volumeGroupCount?: number;
230
+ /**
231
+ * Total Provisioned IOPS of the Elastic San appliance.
232
+ * NOTE: This property will not be serialized. It can only be populated by the server.
233
+ */
234
+ readonly totalIops?: number;
235
+ /**
236
+ * Total Provisioned MBps Elastic San appliance.
237
+ * NOTE: This property will not be serialized. It can only be populated by the server.
238
+ */
239
+ readonly totalMBps?: number;
240
+ /**
241
+ * Total size of the Elastic San appliance in TB.
242
+ * NOTE: This property will not be serialized. It can only be populated by the server.
243
+ */
244
+ readonly totalSizeTiB?: number;
245
+ /**
246
+ * The list of Private Endpoint Connections.
247
+ * NOTE: This property will not be serialized. It can only be populated by the server.
248
+ */
249
+ readonly privateEndpointConnections?: PrivateEndpointConnection[];
250
+ /** Allow or disallow public network access to ElasticSan. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. */
251
+ publicNetworkAccess?: PublicNetworkAccess;
252
+ }
253
+
205
254
  /** The SKU name. Required for account creation; optional for update. */
206
255
  export interface Sku {
207
256
  /** The sku name. */
@@ -210,6 +259,21 @@ export interface Sku {
210
259
  tier?: SkuTier;
211
260
  }
212
261
 
262
+ /** Response for PrivateEndpoint connection properties */
263
+ export interface PrivateEndpointConnectionProperties {
264
+ /**
265
+ * Provisioning State of Private Endpoint connection resource
266
+ * NOTE: This property will not be serialized. It can only be populated by the server.
267
+ */
268
+ readonly provisioningState?: ProvisioningStates;
269
+ /** Private Endpoint resource */
270
+ privateEndpoint?: PrivateEndpoint;
271
+ /** Private Link Service Connection State. */
272
+ privateLinkServiceConnectionState: PrivateLinkServiceConnectionState;
273
+ /** List of resources private endpoint is mapped */
274
+ groupIds?: string[];
275
+ }
276
+
213
277
  /** Response for PrivateEndpoint */
214
278
  export interface PrivateEndpoint {
215
279
  /**
@@ -271,8 +335,14 @@ export interface SystemData {
271
335
 
272
336
  /** Response for ElasticSan update request. */
273
337
  export interface ElasticSanUpdate {
338
+ /** Properties of ElasticSan. */
339
+ properties?: ElasticSanUpdateProperties;
274
340
  /** Update tags */
275
341
  tags?: { [propertyName: string]: string };
342
+ }
343
+
344
+ /** Elastic San update properties. */
345
+ export interface ElasticSanUpdateProperties {
276
346
  /** Base size of the Elastic San appliance in TiB. */
277
347
  baseSizeTiB?: number;
278
348
  /** Extended size of the Elastic San appliance in TiB. */
@@ -324,6 +394,28 @@ export interface UserAssignedIdentity {
324
394
  readonly clientId?: string;
325
395
  }
326
396
 
397
+ /** VolumeGroup response properties. */
398
+ export interface VolumeGroupProperties {
399
+ /**
400
+ * State of the operation on the resource.
401
+ * NOTE: This property will not be serialized. It can only be populated by the server.
402
+ */
403
+ readonly provisioningState?: ProvisioningStates;
404
+ /** Type of storage target */
405
+ protocolType?: StorageTargetType;
406
+ /** Type of encryption */
407
+ encryption?: EncryptionType;
408
+ /** Encryption Properties describing Key Vault and Identity information */
409
+ encryptionProperties?: EncryptionProperties;
410
+ /** A collection of rules governing the accessibility from specific network locations. */
411
+ networkAcls?: NetworkRuleSet;
412
+ /**
413
+ * The list of Private Endpoint Connections.
414
+ * NOTE: This property will not be serialized. It can only be populated by the server.
415
+ */
416
+ readonly privateEndpointConnections?: PrivateEndpointConnection[];
417
+ }
418
+
327
419
  /** The encryption settings on the volume group. */
328
420
  export interface EncryptionProperties {
329
421
  /** Properties provided by key vault. */
@@ -381,6 +473,12 @@ export interface VirtualNetworkRule {
381
473
  export interface VolumeGroupUpdate {
382
474
  /** The identity of the resource. */
383
475
  identity?: Identity;
476
+ /** Properties of VolumeGroup. */
477
+ properties?: VolumeGroupUpdateProperties;
478
+ }
479
+
480
+ /** VolumeGroup response properties. */
481
+ export interface VolumeGroupUpdateProperties {
384
482
  /** Type of storage target */
385
483
  protocolType?: StorageTargetType;
386
484
  /** Type of encryption */
@@ -391,6 +489,31 @@ export interface VolumeGroupUpdate {
391
489
  networkAcls?: NetworkRuleSet;
392
490
  }
393
491
 
492
+ /** Volume response properties. */
493
+ export interface VolumeProperties {
494
+ /**
495
+ * Unique Id of the volume in GUID format
496
+ * NOTE: This property will not be serialized. It can only be populated by the server.
497
+ */
498
+ readonly volumeId?: string;
499
+ /** State of the operation on the resource. */
500
+ creationData?: SourceCreationData;
501
+ /** Volume size. */
502
+ sizeGiB: number;
503
+ /**
504
+ * Storage target information
505
+ * NOTE: This property will not be serialized. It can only be populated by the server.
506
+ */
507
+ readonly storageTarget?: IscsiTargetInfo;
508
+ /** Parent resource information. */
509
+ managedBy?: ManagedByInfo;
510
+ /**
511
+ * State of the operation on the resource.
512
+ * NOTE: This property will not be serialized. It can only be populated by the server.
513
+ */
514
+ readonly provisioningState?: ProvisioningStates;
515
+ }
516
+
394
517
  /** Data source used when creating the volume. */
395
518
  export interface SourceCreationData {
396
519
  /** This enumerates the possible sources of a volume creation. */
@@ -433,6 +556,12 @@ export interface ManagedByInfo {
433
556
 
434
557
  /** Response for Volume request. */
435
558
  export interface VolumeUpdate {
559
+ /** Properties of Volume. */
560
+ properties?: VolumeUpdateProperties;
561
+ }
562
+
563
+ /** Volume response properties. */
564
+ export interface VolumeUpdateProperties {
436
565
  /** Volume size. */
437
566
  sizeGiB?: number;
438
567
  /** Parent resource information. */
@@ -472,6 +601,22 @@ export interface PrivateLinkResourceListResult {
472
601
  readonly nextLink?: string;
473
602
  }
474
603
 
604
+ /** Properties of a private link resource. */
605
+ export interface PrivateLinkResourceProperties {
606
+ /**
607
+ * The private link resource group id.
608
+ * NOTE: This property will not be serialized. It can only be populated by the server.
609
+ */
610
+ readonly groupId?: string;
611
+ /**
612
+ * The private link resource required member names.
613
+ * NOTE: This property will not be serialized. It can only be populated by the server.
614
+ */
615
+ readonly requiredMembers?: string[];
616
+ /** The private link resource Private link DNS zone name. */
617
+ requiredZoneNames?: string[];
618
+ }
619
+
475
620
  /** List of Snapshots */
476
621
  export interface SnapshotList {
477
622
  /** An array of Snapshot objects. */
@@ -483,6 +628,27 @@ export interface SnapshotList {
483
628
  readonly nextLink?: string;
484
629
  }
485
630
 
631
+ /** Properties for Snapshot. */
632
+ export interface SnapshotProperties {
633
+ /** Data used when creating a volume snapshot. */
634
+ creationData: SnapshotCreationData;
635
+ /**
636
+ * State of the operation on the resource.
637
+ * NOTE: This property will not be serialized. It can only be populated by the server.
638
+ */
639
+ readonly provisioningState?: ProvisioningStates;
640
+ /**
641
+ * Size of Source Volume
642
+ * NOTE: This property will not be serialized. It can only be populated by the server.
643
+ */
644
+ readonly sourceVolumeSizeGiB?: number;
645
+ /**
646
+ * Source Volume Name of a snapshot
647
+ * NOTE: This property will not be serialized. It can only be populated by the server.
648
+ */
649
+ readonly volumeName?: string;
650
+ }
651
+
486
652
  /** Data used when creating a volume snapshot. */
487
653
  export interface SnapshotCreationData {
488
654
  /** Fully qualified resource ID of the volume. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes/{volumeName}" */
@@ -491,17 +657,8 @@ export interface SnapshotCreationData {
491
657
 
492
658
  /** Response for PrivateEndpoint Connection object */
493
659
  export interface PrivateEndpointConnection extends Resource {
494
- /**
495
- * Provisioning State of Private Endpoint connection resource
496
- * NOTE: This property will not be serialized. It can only be populated by the server.
497
- */
498
- readonly provisioningState?: ProvisioningStates;
499
- /** Private Endpoint resource */
500
- privateEndpoint?: PrivateEndpoint;
501
- /** Private Link Service Connection State. */
502
- privateLinkServiceConnectionState: PrivateLinkServiceConnectionState;
503
- /** List of resources private endpoint is mapped */
504
- groupIds?: string[];
660
+ /** Private Endpoint Connection Properties. */
661
+ properties: PrivateEndpointConnectionProperties;
505
662
  }
506
663
 
507
664
  /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
@@ -517,137 +674,34 @@ export interface ProxyResource extends Resource {}
517
674
 
518
675
  /** A private link resource */
519
676
  export interface PrivateLinkResource extends Resource {
520
- /**
521
- * The private link resource group id.
522
- * NOTE: This property will not be serialized. It can only be populated by the server.
523
- */
524
- readonly groupId?: string;
525
- /**
526
- * The private link resource required member names.
527
- * NOTE: This property will not be serialized. It can only be populated by the server.
528
- */
529
- readonly requiredMembers?: string[];
530
- /** The private link resource Private link DNS zone name. */
531
- requiredZoneNames?: string[];
677
+ /** Resource properties. */
678
+ properties?: PrivateLinkResourceProperties;
532
679
  }
533
680
 
534
681
  /** Response for ElasticSan request. */
535
682
  export interface ElasticSan extends TrackedResource {
536
- /** resource sku */
537
- sku: Sku;
538
- /** Logical zone for Elastic San resource; example: ["1"]. */
539
- availabilityZones?: string[];
540
- /**
541
- * State of the operation on the resource.
542
- * NOTE: This property will not be serialized. It can only be populated by the server.
543
- */
544
- readonly provisioningState?: ProvisioningStates;
545
- /** Base size of the Elastic San appliance in TiB. */
546
- baseSizeTiB: number;
547
- /** Extended size of the Elastic San appliance in TiB. */
548
- extendedCapacitySizeTiB: number;
549
- /**
550
- * Total size of the provisioned Volumes in GiB.
551
- * NOTE: This property will not be serialized. It can only be populated by the server.
552
- */
553
- readonly totalVolumeSizeGiB?: number;
554
- /**
555
- * Total number of volume groups in this Elastic San appliance.
556
- * NOTE: This property will not be serialized. It can only be populated by the server.
557
- */
558
- readonly volumeGroupCount?: number;
559
- /**
560
- * Total Provisioned IOPS of the Elastic San appliance.
561
- * NOTE: This property will not be serialized. It can only be populated by the server.
562
- */
563
- readonly totalIops?: number;
564
- /**
565
- * Total Provisioned MBps Elastic San appliance.
566
- * NOTE: This property will not be serialized. It can only be populated by the server.
567
- */
568
- readonly totalMBps?: number;
569
- /**
570
- * Total size of the Elastic San appliance in TB.
571
- * NOTE: This property will not be serialized. It can only be populated by the server.
572
- */
573
- readonly totalSizeTiB?: number;
574
- /**
575
- * The list of Private Endpoint Connections.
576
- * NOTE: This property will not be serialized. It can only be populated by the server.
577
- */
578
- readonly privateEndpointConnections?: PrivateEndpointConnection[];
579
- /** Allow or disallow public network access to ElasticSan. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. */
580
- publicNetworkAccess?: PublicNetworkAccess;
683
+ /** Properties of ElasticSan. */
684
+ properties: ElasticSanProperties;
581
685
  }
582
686
 
583
687
  /** Response for Volume Group request. */
584
688
  export interface VolumeGroup extends ProxyResource {
585
689
  /** The identity of the resource. */
586
690
  identity?: Identity;
587
- /**
588
- * State of the operation on the resource.
589
- * NOTE: This property will not be serialized. It can only be populated by the server.
590
- */
591
- readonly provisioningState?: ProvisioningStates;
592
- /** Type of storage target */
593
- protocolType?: StorageTargetType;
594
- /** Type of encryption */
595
- encryption?: EncryptionType;
596
- /** Encryption Properties describing Key Vault and Identity information */
597
- encryptionProperties?: EncryptionProperties;
598
- /** A collection of rules governing the accessibility from specific network locations. */
599
- networkAcls?: NetworkRuleSet;
600
- /**
601
- * The list of Private Endpoint Connections.
602
- * NOTE: This property will not be serialized. It can only be populated by the server.
603
- */
604
- readonly privateEndpointConnections?: PrivateEndpointConnection[];
691
+ /** Properties of VolumeGroup. */
692
+ properties?: VolumeGroupProperties;
605
693
  }
606
694
 
607
695
  /** Response for Volume request. */
608
696
  export interface Volume extends ProxyResource {
609
- /**
610
- * Unique Id of the volume in GUID format
611
- * NOTE: This property will not be serialized. It can only be populated by the server.
612
- */
613
- readonly volumeId?: string;
614
- /** State of the operation on the resource. */
615
- creationData?: SourceCreationData;
616
- /** Volume size. */
617
- sizeGiB: number;
618
- /**
619
- * Storage target information
620
- * NOTE: This property will not be serialized. It can only be populated by the server.
621
- */
622
- readonly storageTarget?: IscsiTargetInfo;
623
- /** Parent resource information. */
624
- managedBy?: ManagedByInfo;
625
- /**
626
- * State of the operation on the resource.
627
- * NOTE: This property will not be serialized. It can only be populated by the server.
628
- */
629
- readonly provisioningState?: ProvisioningStates;
697
+ /** Properties of Volume. */
698
+ properties: VolumeProperties;
630
699
  }
631
700
 
632
701
  /** Response for Volume Snapshot request. */
633
702
  export interface Snapshot extends ProxyResource {
634
- /** Data used when creating a volume snapshot. */
635
- creationData: SnapshotCreationData;
636
- /**
637
- * State of the operation on the resource.
638
- * NOTE: This property will not be serialized. It can only be populated by the server.
639
- */
640
- readonly provisioningState?: ProvisioningStates;
641
- /**
642
- * Size of Source Volume
643
- * NOTE: This property will not be serialized. It can only be populated by the server.
644
- */
645
- readonly sourceVolumeSizeGiB?: number;
646
- /**
647
- * Source Volume Name of a snapshot
648
- * NOTE: This property will not be serialized. It can only be populated by the server.
649
- */
650
- readonly volumeName?: string;
703
+ /** Properties of Volume Snapshot. */
704
+ properties: SnapshotProperties;
651
705
  }
652
706
 
653
707
  /** Defines headers for ElasticSans_update operation. */