@azure/arm-elasticsan 1.0.0-beta.3 → 1.0.1-alpha.20240129.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 (71) hide show
  1. package/CHANGELOG.md +7 -65
  2. package/LICENSE +1 -1
  3. package/dist/index.js +429 -294
  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/elasticSansListByResourceGroupSample.js +6 -16
  10. package/dist-esm/samples-dev/elasticSansListByResourceGroupSample.js.map +1 -1
  11. package/dist-esm/samples-dev/elasticSansListBySubscriptionSample.js +6 -16
  12. package/dist-esm/samples-dev/elasticSansListBySubscriptionSample.js.map +1 -1
  13. package/dist-esm/samples-dev/elasticSansUpdateSample.js +5 -3
  14. package/dist-esm/samples-dev/elasticSansUpdateSample.js.map +1 -1
  15. package/dist-esm/samples-dev/operationsListSample.js +6 -16
  16. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  17. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js +9 -7
  18. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js.map +1 -1
  19. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +6 -16
  20. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +1 -1
  21. package/dist-esm/samples-dev/skusListSample.js +6 -16
  22. package/dist-esm/samples-dev/skusListSample.js.map +1 -1
  23. package/dist-esm/samples-dev/volumeGroupsCreateSample.js +19 -17
  24. package/dist-esm/samples-dev/volumeGroupsCreateSample.js.map +1 -1
  25. package/dist-esm/samples-dev/volumeGroupsListByElasticSanSample.js +6 -16
  26. package/dist-esm/samples-dev/volumeGroupsListByElasticSanSample.js.map +1 -1
  27. package/dist-esm/samples-dev/volumeGroupsUpdateSample.js +19 -17
  28. package/dist-esm/samples-dev/volumeGroupsUpdateSample.js.map +1 -1
  29. package/dist-esm/samples-dev/volumeSnapshotsCreateSample.js +8 -4
  30. package/dist-esm/samples-dev/volumeSnapshotsCreateSample.js.map +1 -1
  31. package/dist-esm/samples-dev/volumeSnapshotsListByVolumeGroupSample.js +6 -16
  32. package/dist-esm/samples-dev/volumeSnapshotsListByVolumeGroupSample.js.map +1 -1
  33. package/dist-esm/samples-dev/volumesCreateSample.js +6 -4
  34. package/dist-esm/samples-dev/volumesCreateSample.js.map +1 -1
  35. package/dist-esm/samples-dev/volumesListByVolumeGroupSample.js +6 -16
  36. package/dist-esm/samples-dev/volumesListByVolumeGroupSample.js.map +1 -1
  37. package/dist-esm/samples-dev/volumesUpdateSample.js +1 -1
  38. package/dist-esm/samples-dev/volumesUpdateSample.js.map +1 -1
  39. package/dist-esm/src/elasticSanManagement.js +1 -1
  40. package/dist-esm/src/elasticSanManagement.js.map +1 -1
  41. package/dist-esm/src/models/index.d.ts +169 -124
  42. package/dist-esm/src/models/index.d.ts.map +1 -1
  43. package/dist-esm/src/models/index.js.map +1 -1
  44. package/dist-esm/src/models/mappers.d.ts +9 -0
  45. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  46. package/dist-esm/src/models/mappers.js +393 -229
  47. package/dist-esm/src/models/mappers.js.map +1 -1
  48. package/dist-esm/src/operations/elasticSans.js +6 -16
  49. package/dist-esm/src/operations/elasticSans.js.map +1 -1
  50. package/dist-esm/src/operations/operations.js +3 -8
  51. package/dist-esm/src/operations/operations.js.map +1 -1
  52. package/dist-esm/src/operations/privateEndpointConnections.js +3 -8
  53. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  54. package/dist-esm/src/operations/skus.js +3 -8
  55. package/dist-esm/src/operations/skus.js.map +1 -1
  56. package/dist-esm/src/operations/volumeGroups.js +3 -8
  57. package/dist-esm/src/operations/volumeGroups.js.map +1 -1
  58. package/dist-esm/src/operations/volumeSnapshots.js +3 -8
  59. package/dist-esm/src/operations/volumeSnapshots.js.map +1 -1
  60. package/dist-esm/src/operations/volumes.js +3 -8
  61. package/dist-esm/src/operations/volumes.js.map +1 -1
  62. package/dist-esm/src/pagingHelper.js.map +1 -1
  63. package/dist-esm/test/elasticsan_examples.spec.js +40 -16
  64. package/dist-esm/test/elasticsan_examples.spec.js.map +1 -1
  65. package/package.json +8 -6
  66. package/review/arm-elasticsan.api.md +84 -39
  67. package/src/elasticSanManagement.ts +1 -1
  68. package/src/models/index.ts +178 -124
  69. package/src/models/mappers.ts +406 -262
  70. package/types/arm-elasticsan.d.ts +169 -115
  71. package/types/tsdoc-metadata.json +1 -1
@@ -36,6 +36,56 @@ export declare type CreatedByType = string;
36
36
 
37
37
  /** Response for ElasticSan request. */
38
38
  export declare interface ElasticSan extends TrackedResource {
39
+ /** Properties of ElasticSan. */
40
+ properties: ElasticSanProperties;
41
+ }
42
+
43
+ /** List of Elastic Sans */
44
+ export declare interface ElasticSanList {
45
+ /** An array of Elastic San objects. */
46
+ value?: ElasticSan[];
47
+ /**
48
+ * URI to fetch the next section of the paginated response.
49
+ * NOTE: This property will not be serialized. It can only be populated by the server.
50
+ */
51
+ readonly nextLink?: string;
52
+ }
53
+
54
+ export declare class ElasticSanManagement extends coreClient.ServiceClient {
55
+ $host: string;
56
+ apiVersion: string;
57
+ subscriptionId: string;
58
+ /**
59
+ * Initializes a new instance of the ElasticSanManagement class.
60
+ * @param credentials Subscription credentials which uniquely identify client subscription.
61
+ * @param subscriptionId The ID of the target subscription.
62
+ * @param options The parameter options
63
+ */
64
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ElasticSanManagementOptionalParams);
65
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
66
+ private addCustomApiVersionPolicy;
67
+ operations: Operations;
68
+ skus: Skus;
69
+ elasticSans: ElasticSans;
70
+ volumeGroups: VolumeGroups;
71
+ volumes: Volumes;
72
+ privateEndpointConnections: PrivateEndpointConnections;
73
+ privateLinkResources: PrivateLinkResources;
74
+ volumeSnapshots: VolumeSnapshots;
75
+ }
76
+
77
+ /** Optional parameters. */
78
+ export declare interface ElasticSanManagementOptionalParams extends coreClient.ServiceClientOptions {
79
+ /** server parameter */
80
+ $host?: string;
81
+ /** Api Version */
82
+ apiVersion?: string;
83
+ /** Overrides client endpoint. */
84
+ endpoint?: string;
85
+ }
86
+
87
+ /** Elastic San response properties. */
88
+ export declare interface ElasticSanProperties {
39
89
  /** resource sku */
40
90
  sku: Sku;
41
91
  /** Logical zone for Elastic San resource; example: ["1"]. */
@@ -83,50 +133,6 @@ export declare interface ElasticSan extends TrackedResource {
83
133
  publicNetworkAccess?: PublicNetworkAccess;
84
134
  }
85
135
 
86
- /** List of Elastic Sans */
87
- export declare interface ElasticSanList {
88
- /** An array of Elastic San objects. */
89
- value?: ElasticSan[];
90
- /**
91
- * URI to fetch the next section of the paginated response.
92
- * NOTE: This property will not be serialized. It can only be populated by the server.
93
- */
94
- readonly nextLink?: string;
95
- }
96
-
97
- export declare class ElasticSanManagement extends coreClient.ServiceClient {
98
- $host: string;
99
- apiVersion: string;
100
- subscriptionId: string;
101
- /**
102
- * Initializes a new instance of the ElasticSanManagement class.
103
- * @param credentials Subscription credentials which uniquely identify client subscription.
104
- * @param subscriptionId The ID of the target subscription.
105
- * @param options The parameter options
106
- */
107
- constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ElasticSanManagementOptionalParams);
108
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
109
- private addCustomApiVersionPolicy;
110
- operations: Operations;
111
- skus: Skus;
112
- elasticSans: ElasticSans;
113
- volumeGroups: VolumeGroups;
114
- volumes: Volumes;
115
- privateEndpointConnections: PrivateEndpointConnections;
116
- privateLinkResources: PrivateLinkResources;
117
- volumeSnapshots: VolumeSnapshots;
118
- }
119
-
120
- /** Optional parameters. */
121
- export declare interface ElasticSanManagementOptionalParams extends coreClient.ServiceClientOptions {
122
- /** server parameter */
123
- $host?: string;
124
- /** Api Version */
125
- apiVersion?: string;
126
- /** Overrides client endpoint. */
127
- endpoint?: string;
128
- }
129
-
130
136
  /** Interface representing a ElasticSans. */
131
137
  export declare interface ElasticSans {
132
138
  /**
@@ -272,10 +278,16 @@ export declare type ElasticSansUpdateResponse = ElasticSan;
272
278
 
273
279
  /** Response for ElasticSan update request. */
274
280
  export declare interface ElasticSanUpdate {
281
+ /** Properties of ElasticSan. */
282
+ properties?: ElasticSanUpdateProperties;
275
283
  /** Update tags */
276
284
  tags?: {
277
285
  [propertyName: string]: string;
278
286
  };
287
+ }
288
+
289
+ /** Elastic San update properties. */
290
+ export declare interface ElasticSanUpdateProperties {
279
291
  /** Base size of the Elastic San appliance in TiB. */
280
292
  baseSizeTiB?: number;
281
293
  /** Extended size of the Elastic San appliance in TiB. */
@@ -742,17 +754,8 @@ export declare interface PrivateEndpoint {
742
754
 
743
755
  /** Response for PrivateEndpoint Connection object */
744
756
  export declare interface PrivateEndpointConnection extends Resource {
745
- /**
746
- * Provisioning State of Private Endpoint connection resource
747
- * NOTE: This property will not be serialized. It can only be populated by the server.
748
- */
749
- readonly provisioningState?: ProvisioningStates;
750
- /** Private Endpoint resource */
751
- privateEndpoint?: PrivateEndpoint;
752
- /** Private Link Service Connection State. */
753
- privateLinkServiceConnectionState: PrivateLinkServiceConnectionState;
754
- /** List of resources private endpoint is mapped */
755
- groupIds?: string[];
757
+ /** Private Endpoint Connection Properties. */
758
+ properties: PrivateEndpointConnectionProperties;
756
759
  }
757
760
 
758
761
  /** List of private endpoint connections associated with SAN */
@@ -766,6 +769,21 @@ export declare interface PrivateEndpointConnectionListResult {
766
769
  readonly nextLink?: string;
767
770
  }
768
771
 
772
+ /** Response for PrivateEndpoint connection properties */
773
+ export declare interface PrivateEndpointConnectionProperties {
774
+ /**
775
+ * Provisioning State of Private Endpoint connection resource
776
+ * NOTE: This property will not be serialized. It can only be populated by the server.
777
+ */
778
+ readonly provisioningState?: ProvisioningStates;
779
+ /** Private Endpoint resource */
780
+ privateEndpoint?: PrivateEndpoint;
781
+ /** Private Link Service Connection State. */
782
+ privateLinkServiceConnectionState: PrivateLinkServiceConnectionState;
783
+ /** List of resources private endpoint is mapped */
784
+ groupIds?: string[];
785
+ }
786
+
769
787
  /** Interface representing a PrivateEndpointConnections. */
770
788
  export declare interface PrivateEndpointConnections {
771
789
  /**
@@ -871,6 +889,23 @@ export declare type PrivateEndpointServiceConnectionStatus = string;
871
889
 
872
890
  /** A private link resource */
873
891
  export declare interface PrivateLinkResource extends Resource {
892
+ /** Resource properties. */
893
+ properties?: PrivateLinkResourceProperties;
894
+ }
895
+
896
+ /** A list of private link resources */
897
+ export declare interface PrivateLinkResourceListResult {
898
+ /** Array of private link resources */
899
+ value?: PrivateLinkResource[];
900
+ /**
901
+ * URI to fetch the next section of the paginated response.
902
+ * NOTE: This property will not be serialized. It can only be populated by the server.
903
+ */
904
+ readonly nextLink?: string;
905
+ }
906
+
907
+ /** Properties of a private link resource. */
908
+ export declare interface PrivateLinkResourceProperties {
874
909
  /**
875
910
  * The private link resource group id.
876
911
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -885,17 +920,6 @@ export declare interface PrivateLinkResource extends Resource {
885
920
  requiredZoneNames?: string[];
886
921
  }
887
922
 
888
- /** A list of private link resources */
889
- export declare interface PrivateLinkResourceListResult {
890
- /** Array of private link resources */
891
- value?: PrivateLinkResource[];
892
- /**
893
- * URI to fetch the next section of the paginated response.
894
- * NOTE: This property will not be serialized. It can only be populated by the server.
895
- */
896
- readonly nextLink?: string;
897
- }
898
-
899
923
  /** Interface representing a PrivateLinkResources. */
900
924
  export declare interface PrivateLinkResources {
901
925
  /**
@@ -1095,23 +1119,8 @@ export declare type SkuTier = string;
1095
1119
 
1096
1120
  /** Response for Volume Snapshot request. */
1097
1121
  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;
1122
+ /** Properties of Volume Snapshot. */
1123
+ properties: SnapshotProperties;
1115
1124
  }
1116
1125
 
1117
1126
  /** Data used when creating a volume snapshot. */
@@ -1131,6 +1140,27 @@ export declare interface SnapshotList {
1131
1140
  readonly nextLink?: string;
1132
1141
  }
1133
1142
 
1143
+ /** Properties for Snapshot. */
1144
+ export declare interface SnapshotProperties {
1145
+ /** Data used when creating a volume snapshot. */
1146
+ creationData: SnapshotCreationData;
1147
+ /**
1148
+ * State of the operation on the resource.
1149
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1150
+ */
1151
+ readonly provisioningState?: ProvisioningStates;
1152
+ /**
1153
+ * Size of Source Volume
1154
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1155
+ */
1156
+ readonly sourceVolumeSizeGiB?: number;
1157
+ /**
1158
+ * Source Volume Name of a snapshot
1159
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1160
+ */
1161
+ readonly volumeName?: string;
1162
+ }
1163
+
1134
1164
  /** Data source used when creating the volume. */
1135
1165
  export declare interface SourceCreationData {
1136
1166
  /** This enumerates the possible sources of a volume creation. */
@@ -1199,27 +1229,8 @@ export declare interface VirtualNetworkRule {
1199
1229
 
1200
1230
  /** Response for Volume request. */
1201
1231
  export declare interface Volume extends ProxyResource {
1202
- /**
1203
- * Unique Id of the volume in GUID format
1204
- * NOTE: This property will not be serialized. It can only be populated by the server.
1205
- */
1206
- readonly volumeId?: string;
1207
- /** State of the operation on the resource. */
1208
- creationData?: SourceCreationData;
1209
- /** Volume size. */
1210
- sizeGiB: number;
1211
- /**
1212
- * Storage target information
1213
- * NOTE: This property will not be serialized. It can only be populated by the server.
1214
- */
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;
1232
+ /** Properties of Volume. */
1233
+ properties: VolumeProperties;
1223
1234
  }
1224
1235
 
1225
1236
  /**
@@ -1239,6 +1250,23 @@ export declare type VolumeCreateOption = string;
1239
1250
  export declare interface VolumeGroup extends ProxyResource {
1240
1251
  /** The identity of the resource. */
1241
1252
  identity?: Identity;
1253
+ /** Properties of VolumeGroup. */
1254
+ properties?: VolumeGroupProperties;
1255
+ }
1256
+
1257
+ /** List of Volume Groups */
1258
+ export declare interface VolumeGroupList {
1259
+ /** An array of Volume Groups objects. */
1260
+ value?: VolumeGroup[];
1261
+ /**
1262
+ * URI to fetch the next section of the paginated response.
1263
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1264
+ */
1265
+ readonly nextLink?: string;
1266
+ }
1267
+
1268
+ /** VolumeGroup response properties. */
1269
+ export declare interface VolumeGroupProperties {
1242
1270
  /**
1243
1271
  * State of the operation on the resource.
1244
1272
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -1259,17 +1287,6 @@ export declare interface VolumeGroup extends ProxyResource {
1259
1287
  readonly privateEndpointConnections?: PrivateEndpointConnection[];
1260
1288
  }
1261
1289
 
1262
- /** List of Volume Groups */
1263
- export declare interface VolumeGroupList {
1264
- /** An array of Volume Groups objects. */
1265
- value?: VolumeGroup[];
1266
- /**
1267
- * URI to fetch the next section of the paginated response.
1268
- * NOTE: This property will not be serialized. It can only be populated by the server.
1269
- */
1270
- readonly nextLink?: string;
1271
- }
1272
-
1273
1290
  /** Interface representing a VolumeGroups. */
1274
1291
  export declare interface VolumeGroups {
1275
1292
  /**
@@ -1406,6 +1423,12 @@ export declare type VolumeGroupsUpdateResponse = VolumeGroup;
1406
1423
  export declare interface VolumeGroupUpdate {
1407
1424
  /** The identity of the resource. */
1408
1425
  identity?: Identity;
1426
+ /** Properties of VolumeGroup. */
1427
+ properties?: VolumeGroupUpdateProperties;
1428
+ }
1429
+
1430
+ /** VolumeGroup response properties. */
1431
+ export declare interface VolumeGroupUpdateProperties {
1409
1432
  /** Type of storage target */
1410
1433
  protocolType?: StorageTargetType;
1411
1434
  /** Type of encryption */
@@ -1427,6 +1450,31 @@ export declare interface VolumeList {
1427
1450
  readonly nextLink?: string;
1428
1451
  }
1429
1452
 
1453
+ /** Volume response properties. */
1454
+ export declare interface VolumeProperties {
1455
+ /**
1456
+ * Unique Id of the volume in GUID format
1457
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1458
+ */
1459
+ readonly volumeId?: string;
1460
+ /** State of the operation on the resource. */
1461
+ creationData?: SourceCreationData;
1462
+ /** Volume size. */
1463
+ sizeGiB: number;
1464
+ /**
1465
+ * Storage target information
1466
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1467
+ */
1468
+ readonly storageTarget?: IscsiTargetInfo;
1469
+ /** Parent resource information. */
1470
+ managedBy?: ManagedByInfo;
1471
+ /**
1472
+ * State of the operation on the resource.
1473
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1474
+ */
1475
+ readonly provisioningState?: ProvisioningStates;
1476
+ }
1477
+
1430
1478
  /** Interface representing a Volumes. */
1431
1479
  export declare interface Volumes {
1432
1480
  /**
@@ -1679,6 +1727,12 @@ export declare type VolumesUpdateResponse = Volume;
1679
1727
 
1680
1728
  /** Response for Volume request. */
1681
1729
  export declare interface VolumeUpdate {
1730
+ /** Properties of Volume. */
1731
+ properties?: VolumeUpdateProperties;
1732
+ }
1733
+
1734
+ /** Volume response properties. */
1735
+ export declare interface VolumeUpdateProperties {
1682
1736
  /** Volume size. */
1683
1737
  sizeGiB?: number;
1684
1738
  /** Parent resource information. */
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.38.0"
8
+ "packageVersion": "7.39.1"
9
9
  }
10
10
  ]
11
11
  }