@azure/arm-elasticsan 1.0.0-beta.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 (179) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/LICENSE +21 -0
  3. package/README.md +109 -0
  4. package/dist/index.js +2897 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/samples-dev/elasticSansCreateSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/elasticSansCreateSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/elasticSansCreateSample.js +62 -0
  11. package/dist-esm/samples-dev/elasticSansCreateSample.js.map +1 -0
  12. package/dist-esm/samples-dev/elasticSansDeleteSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/elasticSansDeleteSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/elasticSansDeleteSample.js +49 -0
  15. package/dist-esm/samples-dev/elasticSansDeleteSample.js.map +1 -0
  16. package/dist-esm/samples-dev/elasticSansGetSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/elasticSansGetSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/elasticSansGetSample.js +49 -0
  19. package/dist-esm/samples-dev/elasticSansGetSample.js.map +1 -0
  20. package/dist-esm/samples-dev/elasticSansListByResourceGroupSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/elasticSansListByResourceGroupSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/elasticSansListByResourceGroupSample.js +75 -0
  23. package/dist-esm/samples-dev/elasticSansListByResourceGroupSample.js.map +1 -0
  24. package/dist-esm/samples-dev/elasticSansListBySubscriptionSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/elasticSansListBySubscriptionSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/elasticSansListBySubscriptionSample.js +73 -0
  27. package/dist-esm/samples-dev/elasticSansListBySubscriptionSample.js.map +1 -0
  28. package/dist-esm/samples-dev/elasticSansUpdateSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/elasticSansUpdateSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/elasticSansUpdateSample.js +55 -0
  31. package/dist-esm/samples-dev/elasticSansUpdateSample.js.map +1 -0
  32. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/operationsListSample.js +73 -0
  35. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  36. package/dist-esm/samples-dev/skusListSample.d.ts +2 -0
  37. package/dist-esm/samples-dev/skusListSample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/skusListSample.js +75 -0
  39. package/dist-esm/samples-dev/skusListSample.js.map +1 -0
  40. package/dist-esm/samples-dev/volumeGroupsCreateSample.d.ts +2 -0
  41. package/dist-esm/samples-dev/volumeGroupsCreateSample.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/volumeGroupsCreateSample.js +62 -0
  43. package/dist-esm/samples-dev/volumeGroupsCreateSample.js.map +1 -0
  44. package/dist-esm/samples-dev/volumeGroupsDeleteSample.d.ts +2 -0
  45. package/dist-esm/samples-dev/volumeGroupsDeleteSample.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/volumeGroupsDeleteSample.js +51 -0
  47. package/dist-esm/samples-dev/volumeGroupsDeleteSample.js.map +1 -0
  48. package/dist-esm/samples-dev/volumeGroupsGetSample.d.ts +2 -0
  49. package/dist-esm/samples-dev/volumeGroupsGetSample.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/volumeGroupsGetSample.js +51 -0
  51. package/dist-esm/samples-dev/volumeGroupsGetSample.js.map +1 -0
  52. package/dist-esm/samples-dev/volumeGroupsListByElasticSanSample.d.ts +2 -0
  53. package/dist-esm/samples-dev/volumeGroupsListByElasticSanSample.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/volumeGroupsListByElasticSanSample.js +77 -0
  55. package/dist-esm/samples-dev/volumeGroupsListByElasticSanSample.js.map +1 -0
  56. package/dist-esm/samples-dev/volumeGroupsUpdateSample.d.ts +2 -0
  57. package/dist-esm/samples-dev/volumeGroupsUpdateSample.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/volumeGroupsUpdateSample.js +62 -0
  59. package/dist-esm/samples-dev/volumeGroupsUpdateSample.js.map +1 -0
  60. package/dist-esm/samples-dev/volumesCreateSample.d.ts +2 -0
  61. package/dist-esm/samples-dev/volumesCreateSample.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/volumesCreateSample.js +59 -0
  63. package/dist-esm/samples-dev/volumesCreateSample.js.map +1 -0
  64. package/dist-esm/samples-dev/volumesDeleteSample.d.ts +2 -0
  65. package/dist-esm/samples-dev/volumesDeleteSample.d.ts.map +1 -0
  66. package/dist-esm/samples-dev/volumesDeleteSample.js +53 -0
  67. package/dist-esm/samples-dev/volumesDeleteSample.js.map +1 -0
  68. package/dist-esm/samples-dev/volumesGetSample.d.ts +2 -0
  69. package/dist-esm/samples-dev/volumesGetSample.d.ts.map +1 -0
  70. package/dist-esm/samples-dev/volumesGetSample.js +53 -0
  71. package/dist-esm/samples-dev/volumesGetSample.js.map +1 -0
  72. package/dist-esm/samples-dev/volumesListByVolumeGroupSample.d.ts +2 -0
  73. package/dist-esm/samples-dev/volumesListByVolumeGroupSample.d.ts.map +1 -0
  74. package/dist-esm/samples-dev/volumesListByVolumeGroupSample.js +79 -0
  75. package/dist-esm/samples-dev/volumesListByVolumeGroupSample.js.map +1 -0
  76. package/dist-esm/samples-dev/volumesUpdateSample.d.ts +2 -0
  77. package/dist-esm/samples-dev/volumesUpdateSample.d.ts.map +1 -0
  78. package/dist-esm/samples-dev/volumesUpdateSample.js +58 -0
  79. package/dist-esm/samples-dev/volumesUpdateSample.js.map +1 -0
  80. package/dist-esm/src/elasticSanManagement.d.ts +24 -0
  81. package/dist-esm/src/elasticSanManagement.d.ts.map +1 -0
  82. package/dist-esm/src/elasticSanManagement.js +107 -0
  83. package/dist-esm/src/elasticSanManagement.js.map +1 -0
  84. package/dist-esm/src/index.d.ts +5 -0
  85. package/dist-esm/src/index.d.ts.map +1 -0
  86. package/dist-esm/src/index.js +12 -0
  87. package/dist-esm/src/index.js.map +1 -0
  88. package/dist-esm/src/lroImpl.d.ts +16 -0
  89. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  90. package/dist-esm/src/lroImpl.js +29 -0
  91. package/dist-esm/src/lroImpl.js.map +1 -0
  92. package/dist-esm/src/models/index.d.ts +691 -0
  93. package/dist-esm/src/models/index.d.ts.map +1 -0
  94. package/dist-esm/src/models/index.js +88 -0
  95. package/dist-esm/src/models/index.js.map +1 -0
  96. package/dist-esm/src/models/mappers.d.ts +29 -0
  97. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  98. package/dist-esm/src/models/mappers.js +877 -0
  99. package/dist-esm/src/models/mappers.js.map +1 -0
  100. package/dist-esm/src/models/parameters.d.ts +19 -0
  101. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  102. package/dist-esm/src/models/parameters.js +170 -0
  103. package/dist-esm/src/models/parameters.js.map +1 -0
  104. package/dist-esm/src/operations/elasticSans.d.ts +107 -0
  105. package/dist-esm/src/operations/elasticSans.d.ts.map +1 -0
  106. package/dist-esm/src/operations/elasticSans.js +509 -0
  107. package/dist-esm/src/operations/elasticSans.js.map +1 -0
  108. package/dist-esm/src/operations/index.d.ts +6 -0
  109. package/dist-esm/src/operations/index.d.ts.map +1 -0
  110. package/dist-esm/src/operations/index.js +13 -0
  111. package/dist-esm/src/operations/index.js.map +1 -0
  112. package/dist-esm/src/operations/operations.d.ts +26 -0
  113. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  114. package/dist-esm/src/operations/operations.js +90 -0
  115. package/dist-esm/src/operations/operations.js.map +1 -0
  116. package/dist-esm/src/operations/skus.d.ts +26 -0
  117. package/dist-esm/src/operations/skus.d.ts.map +1 -0
  118. package/dist-esm/src/operations/skus.js +90 -0
  119. package/dist-esm/src/operations/skus.js.map +1 -0
  120. package/dist-esm/src/operations/volumeGroups.d.ts +99 -0
  121. package/dist-esm/src/operations/volumeGroups.d.ts.map +1 -0
  122. package/dist-esm/src/operations/volumeGroups.js +438 -0
  123. package/dist-esm/src/operations/volumeGroups.js.map +1 -0
  124. package/dist-esm/src/operations/volumes.d.ts +109 -0
  125. package/dist-esm/src/operations/volumes.d.ts.map +1 -0
  126. package/dist-esm/src/operations/volumes.js +468 -0
  127. package/dist-esm/src/operations/volumes.js.map +1 -0
  128. package/dist-esm/src/operationsInterfaces/elasticSans.d.ts +71 -0
  129. package/dist-esm/src/operationsInterfaces/elasticSans.d.ts.map +1 -0
  130. package/dist-esm/src/operationsInterfaces/elasticSans.js +9 -0
  131. package/dist-esm/src/operationsInterfaces/elasticSans.js.map +1 -0
  132. package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
  133. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  134. package/dist-esm/src/operationsInterfaces/index.js +13 -0
  135. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  136. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  137. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  138. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  139. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  140. package/dist-esm/src/operationsInterfaces/skus.d.ts +11 -0
  141. package/dist-esm/src/operationsInterfaces/skus.d.ts.map +1 -0
  142. package/dist-esm/src/operationsInterfaces/skus.js +9 -0
  143. package/dist-esm/src/operationsInterfaces/skus.js.map +1 -0
  144. package/dist-esm/src/operationsInterfaces/volumeGroups.d.ts +74 -0
  145. package/dist-esm/src/operationsInterfaces/volumeGroups.d.ts.map +1 -0
  146. package/dist-esm/src/operationsInterfaces/volumeGroups.js +9 -0
  147. package/dist-esm/src/operationsInterfaces/volumeGroups.js.map +1 -0
  148. package/dist-esm/src/operationsInterfaces/volumes.d.ts +82 -0
  149. package/dist-esm/src/operationsInterfaces/volumes.d.ts.map +1 -0
  150. package/dist-esm/src/operationsInterfaces/volumes.js +9 -0
  151. package/dist-esm/src/operationsInterfaces/volumes.js.map +1 -0
  152. package/dist-esm/test/elasticsan_examples.spec.d.ts +4 -0
  153. package/dist-esm/test/elasticsan_examples.spec.d.ts.map +1 -0
  154. package/dist-esm/test/elasticsan_examples.spec.js +80 -0
  155. package/dist-esm/test/elasticsan_examples.spec.js.map +1 -0
  156. package/package.json +122 -0
  157. package/review/arm-elasticsan.api.md +536 -0
  158. package/rollup.config.js +122 -0
  159. package/src/elasticSanManagement.ts +161 -0
  160. package/src/index.ts +12 -0
  161. package/src/lroImpl.ts +34 -0
  162. package/src/models/index.ts +787 -0
  163. package/src/models/mappers.ts +935 -0
  164. package/src/models/parameters.ts +199 -0
  165. package/src/operations/elasticSans.ts +683 -0
  166. package/src/operations/index.ts +13 -0
  167. package/src/operations/operations.ts +98 -0
  168. package/src/operations/skus.ts +96 -0
  169. package/src/operations/volumeGroups.ts +629 -0
  170. package/src/operations/volumes.ts +673 -0
  171. package/src/operationsInterfaces/elasticSans.ts +139 -0
  172. package/src/operationsInterfaces/index.ts +13 -0
  173. package/src/operationsInterfaces/operations.ts +22 -0
  174. package/src/operationsInterfaces/skus.ts +22 -0
  175. package/src/operationsInterfaces/volumeGroups.ts +147 -0
  176. package/src/operationsInterfaces/volumes.ts +157 -0
  177. package/tsconfig.json +33 -0
  178. package/types/arm-elasticsan.d.ts +1036 -0
  179. package/types/tsdoc-metadata.json +11 -0
@@ -0,0 +1,787 @@
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 * as coreClient from "@azure/core-client";
10
+
11
+ /** List of operations supported by the RP. */
12
+ export interface ElasticSanOperationListResult {
13
+ /** An array of operations supported by the ElasticSan RP. */
14
+ value: ElasticSanRPOperation[];
15
+ /** URI to fetch the next section of the paginated response. */
16
+ nextLink?: string;
17
+ }
18
+
19
+ /** Description of a ElasticSan RP Operation */
20
+ export interface ElasticSanRPOperation {
21
+ /** The name of the operation being performed on this particular object */
22
+ name: string;
23
+ /**
24
+ * Indicates whether the operation applies to data-plane.
25
+ * NOTE: This property will not be serialized. It can only be populated by the server.
26
+ */
27
+ readonly isDataAction?: boolean;
28
+ /**
29
+ * Additional metadata about RP operation.
30
+ * NOTE: This property will not be serialized. It can only be populated by the server.
31
+ */
32
+ readonly display?: ElasticSanOperationDisplay;
33
+ }
34
+
35
+ /** Metadata about an operation. */
36
+ export interface ElasticSanOperationDisplay {
37
+ /** Localized friendly form of the resource provider name. */
38
+ provider: string;
39
+ /** Localized friendly form of the resource type related to this action/operation. */
40
+ resource: string;
41
+ /** Localized friendly name for the operation, as it should be shown to the user. */
42
+ operation: string;
43
+ /** Localized friendly description for the operation, as it should be shown to the user. */
44
+ description: string;
45
+ }
46
+
47
+ /** The resource management error response. */
48
+ export interface ErrorModel {
49
+ /** RP error response. */
50
+ error?: ErrorResponse;
51
+ }
52
+
53
+ /** The resource management error response. */
54
+ export interface ErrorResponse {
55
+ /**
56
+ * The error code.
57
+ * NOTE: This property will not be serialized. It can only be populated by the server.
58
+ */
59
+ readonly code?: string;
60
+ /**
61
+ * The error message.
62
+ * NOTE: This property will not be serialized. It can only be populated by the server.
63
+ */
64
+ readonly message?: string;
65
+ /**
66
+ * The error target.
67
+ * NOTE: This property will not be serialized. It can only be populated by the server.
68
+ */
69
+ readonly target?: string;
70
+ /**
71
+ * The error details.
72
+ * NOTE: This property will not be serialized. It can only be populated by the server.
73
+ */
74
+ readonly details?: ErrorResponse[];
75
+ /**
76
+ * The error additional info.
77
+ * NOTE: This property will not be serialized. It can only be populated by the server.
78
+ */
79
+ readonly additionalInfo?: ErrorAdditionalInfo[];
80
+ }
81
+
82
+ /** The resource management error additional info. */
83
+ export interface ErrorAdditionalInfo {
84
+ /**
85
+ * The additional info type.
86
+ * NOTE: This property will not be serialized. It can only be populated by the server.
87
+ */
88
+ readonly type?: string;
89
+ /**
90
+ * The additional info.
91
+ * NOTE: This property will not be serialized. It can only be populated by the server.
92
+ */
93
+ readonly info?: Record<string, unknown>;
94
+ }
95
+
96
+ /** List of SKU Information objects */
97
+ export interface SkuInformationList {
98
+ /**
99
+ * List of ResourceType Sku
100
+ * NOTE: This property will not be serialized. It can only be populated by the server.
101
+ */
102
+ readonly value?: SkuInformation[];
103
+ }
104
+
105
+ /** ElasticSAN SKU and its properties */
106
+ export interface SkuInformation {
107
+ /** Sku Name */
108
+ name: SkuName;
109
+ /** Sku Tier */
110
+ tier?: SkuTier;
111
+ /**
112
+ * The type of the resource.
113
+ * NOTE: This property will not be serialized. It can only be populated by the server.
114
+ */
115
+ readonly resourceType?: string;
116
+ /**
117
+ * The set of locations that the SKU is available. This will be supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.).
118
+ * NOTE: This property will not be serialized. It can only be populated by the server.
119
+ */
120
+ readonly locations?: string[];
121
+ /**
122
+ * Availability of the SKU for the location/zone
123
+ * NOTE: This property will not be serialized. It can only be populated by the server.
124
+ */
125
+ readonly locationInfo?: SkuLocationInfo[];
126
+ /**
127
+ * The capability information in the specified SKU.
128
+ * NOTE: This property will not be serialized. It can only be populated by the server.
129
+ */
130
+ readonly capabilities?: SKUCapability[];
131
+ }
132
+
133
+ /** The location info. */
134
+ export interface SkuLocationInfo {
135
+ /**
136
+ * The location.
137
+ * NOTE: This property will not be serialized. It can only be populated by the server.
138
+ */
139
+ readonly location?: string;
140
+ /**
141
+ * The zones.
142
+ * NOTE: This property will not be serialized. It can only be populated by the server.
143
+ */
144
+ readonly zones?: string[];
145
+ }
146
+
147
+ /** The capability information in the specified SKU. */
148
+ export interface SKUCapability {
149
+ /**
150
+ * The name of capability.
151
+ * NOTE: This property will not be serialized. It can only be populated by the server.
152
+ */
153
+ readonly name?: string;
154
+ /**
155
+ * A string value to indicate states of given capability.
156
+ * NOTE: This property will not be serialized. It can only be populated by the server.
157
+ */
158
+ readonly value?: string;
159
+ }
160
+
161
+ /** List of Elastic Sans */
162
+ export interface ElasticSanList {
163
+ /** An array of Elastic San objects. */
164
+ value: ElasticSan[];
165
+ /**
166
+ * URI to fetch the next section of the paginated response.
167
+ * NOTE: This property will not be serialized. It can only be populated by the server.
168
+ */
169
+ readonly nextLink?: string;
170
+ }
171
+
172
+ /** The SKU name. Required for account creation; optional for update. */
173
+ export interface Sku {
174
+ /** The sku name. */
175
+ name: SkuName;
176
+ /** The sku tier. */
177
+ tier?: SkuTier;
178
+ }
179
+
180
+ /** Metadata pertaining to creation and last modification of the resource. */
181
+ export interface SystemData {
182
+ /** The identity that created the resource. */
183
+ createdBy?: string;
184
+ /** The type of identity that created the resource. */
185
+ createdByType?: CreatedByType;
186
+ /** The timestamp of resource creation (UTC). */
187
+ createdAt?: Date;
188
+ /** The identity that last modified the resource. */
189
+ lastModifiedBy?: string;
190
+ /** The type of identity that last modified the resource. */
191
+ lastModifiedByType?: CreatedByType;
192
+ /** The timestamp of resource last modification (UTC) */
193
+ lastModifiedAt?: Date;
194
+ }
195
+
196
+ /** The resource model definition. */
197
+ export interface Resource {
198
+ /**
199
+ * Azure resource identifier.
200
+ * NOTE: This property will not be serialized. It can only be populated by the server.
201
+ */
202
+ readonly id?: string;
203
+ /**
204
+ * Azure resource name.
205
+ * NOTE: This property will not be serialized. It can only be populated by the server.
206
+ */
207
+ readonly name?: string;
208
+ /**
209
+ * Azure resource type.
210
+ * NOTE: This property will not be serialized. It can only be populated by the server.
211
+ */
212
+ readonly type?: string;
213
+ /** Azure resource tags. */
214
+ tags?: { [propertyName: string]: string };
215
+ }
216
+
217
+ /** Response for ElasticSan update request. */
218
+ export interface ElasticSanUpdate {
219
+ /** Update tags */
220
+ tags?: { [propertyName: string]: string };
221
+ /** Base size of the Elastic San appliance in TiB. */
222
+ baseSizeTiB?: number;
223
+ /** Extended size of the Elastic San appliance in TiB. */
224
+ extendedCapacitySizeTiB?: number;
225
+ }
226
+
227
+ /** List of Volume Groups */
228
+ export interface VolumeGroupList {
229
+ /** An array of Volume Groups objects. */
230
+ value: VolumeGroup[];
231
+ /**
232
+ * URI to fetch the next section of the paginated response.
233
+ * NOTE: This property will not be serialized. It can only be populated by the server.
234
+ */
235
+ readonly nextLink?: string;
236
+ }
237
+
238
+ /** A set of rules governing the network accessibility. */
239
+ export interface NetworkRuleSet {
240
+ /** The list of virtual network rules. */
241
+ virtualNetworkRules?: VirtualNetworkRule[];
242
+ }
243
+
244
+ /** Virtual Network rule. */
245
+ export interface VirtualNetworkRule {
246
+ /** Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. */
247
+ virtualNetworkResourceId: string;
248
+ /** The action of virtual network rule. */
249
+ action?: "Allow";
250
+ /**
251
+ * Gets the state of virtual network rule.
252
+ * NOTE: This property will not be serialized. It can only be populated by the server.
253
+ */
254
+ readonly state?: State;
255
+ }
256
+
257
+ /** Volume Group request. */
258
+ export interface VolumeGroupUpdate {
259
+ /** Resource tags. */
260
+ tags?: { [propertyName: string]: string };
261
+ /** Type of storage target */
262
+ protocolType?: StorageTargetType;
263
+ /** Type of encryption */
264
+ encryption?: EncryptionType;
265
+ /** A collection of rules governing the accessibility from specific network locations. */
266
+ networkAcls?: NetworkRuleSet;
267
+ }
268
+
269
+ /** Data source used when creating the volume. */
270
+ export interface SourceCreationData {
271
+ /** This enumerates the possible sources of a volume creation. */
272
+ createSource?: "None";
273
+ /** If createOption is Copy, this is the ARM id of the source snapshot or disk. If createOption is Restore, this is the ARM-like id of the source disk restore point. */
274
+ sourceUri?: string;
275
+ }
276
+
277
+ /** Iscsi target information */
278
+ export interface IscsiTargetInfo {
279
+ /**
280
+ * iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server".
281
+ * NOTE: This property will not be serialized. It can only be populated by the server.
282
+ */
283
+ readonly targetIqn?: string;
284
+ /**
285
+ * iSCSI Target Portal Host Name
286
+ * NOTE: This property will not be serialized. It can only be populated by the server.
287
+ */
288
+ readonly targetPortalHostname?: string;
289
+ /**
290
+ * iSCSI Target Portal Port
291
+ * NOTE: This property will not be serialized. It can only be populated by the server.
292
+ */
293
+ readonly targetPortalPort?: number;
294
+ /**
295
+ * State of the operation on the resource.
296
+ * NOTE: This property will not be serialized. It can only be populated by the server.
297
+ */
298
+ readonly provisioningState?: ProvisioningStates;
299
+ /** Operational status of the iSCSI Target. */
300
+ status?: OperationalStatus;
301
+ }
302
+
303
+ /** Response for Volume request. */
304
+ export interface VolumeUpdate {
305
+ /** Resource tags. */
306
+ tags?: { [propertyName: string]: string };
307
+ /** Volume size. */
308
+ sizeGiB?: number;
309
+ }
310
+
311
+ /** List of Volumes */
312
+ export interface VolumeList {
313
+ /** An array of Volume objects. */
314
+ value: Volume[];
315
+ /**
316
+ * URI to fetch the next section of the paginated response.
317
+ * NOTE: This property will not be serialized. It can only be populated by the server.
318
+ */
319
+ readonly nextLink?: string;
320
+ }
321
+
322
+ /** The resource model definition for a ARM tracked top level resource. */
323
+ export interface TrackedResource extends Resource {
324
+ /** The geo-location where the resource lives. */
325
+ location?: string;
326
+ }
327
+
328
+ /** Response for Volume Group request. */
329
+ export interface VolumeGroup extends Resource {
330
+ /**
331
+ * Resource metadata required by ARM RPC
332
+ * NOTE: This property will not be serialized. It can only be populated by the server.
333
+ */
334
+ readonly systemData?: SystemData;
335
+ /**
336
+ * State of the operation on the resource.
337
+ * NOTE: This property will not be serialized. It can only be populated by the server.
338
+ */
339
+ readonly provisioningState?: ProvisioningStates;
340
+ /** Type of storage target */
341
+ protocolType?: StorageTargetType;
342
+ /** Type of encryption */
343
+ encryption?: EncryptionType;
344
+ /** A collection of rules governing the accessibility from specific network locations. */
345
+ networkAcls?: NetworkRuleSet;
346
+ }
347
+
348
+ /** Response for Volume request. */
349
+ export interface Volume extends Resource {
350
+ /**
351
+ * Resource metadata required by ARM RPC
352
+ * NOTE: This property will not be serialized. It can only be populated by the server.
353
+ */
354
+ readonly systemData?: SystemData;
355
+ /**
356
+ * Unique Id of the volume in GUID format
357
+ * NOTE: This property will not be serialized. It can only be populated by the server.
358
+ */
359
+ readonly volumeId?: string;
360
+ /** State of the operation on the resource. */
361
+ creationData?: SourceCreationData;
362
+ /** Volume size. */
363
+ sizeGiB?: number;
364
+ /**
365
+ * Storage target information
366
+ * NOTE: This property will not be serialized. It can only be populated by the server.
367
+ */
368
+ readonly storageTarget?: IscsiTargetInfo;
369
+ }
370
+
371
+ /** Response for ElasticSan request. */
372
+ export interface ElasticSan extends TrackedResource {
373
+ /**
374
+ * Resource metadata required by ARM RPC
375
+ * NOTE: This property will not be serialized. It can only be populated by the server.
376
+ */
377
+ readonly systemData?: SystemData;
378
+ /** resource sku */
379
+ sku: Sku;
380
+ /** Logical zone for Elastic San resource; example: ["1"]. */
381
+ availabilityZones?: string[];
382
+ /**
383
+ * State of the operation on the resource.
384
+ * NOTE: This property will not be serialized. It can only be populated by the server.
385
+ */
386
+ readonly provisioningState?: ProvisioningStates;
387
+ /** Base size of the Elastic San appliance in TiB. */
388
+ baseSizeTiB: number;
389
+ /** Extended size of the Elastic San appliance in TiB. */
390
+ extendedCapacitySizeTiB: number;
391
+ /**
392
+ * Total size of the provisioned Volumes in GiB.
393
+ * NOTE: This property will not be serialized. It can only be populated by the server.
394
+ */
395
+ readonly totalVolumeSizeGiB?: number;
396
+ /**
397
+ * Total number of volume groups in this Elastic San appliance.
398
+ * NOTE: This property will not be serialized. It can only be populated by the server.
399
+ */
400
+ readonly volumeGroupCount?: number;
401
+ /**
402
+ * Total Provisioned IOPS of the Elastic San appliance.
403
+ * NOTE: This property will not be serialized. It can only be populated by the server.
404
+ */
405
+ readonly totalIops?: number;
406
+ /**
407
+ * Total Provisioned MBps Elastic San appliance.
408
+ * NOTE: This property will not be serialized. It can only be populated by the server.
409
+ */
410
+ readonly totalMBps?: number;
411
+ /**
412
+ * Total size of the Elastic San appliance in TB.
413
+ * NOTE: This property will not be serialized. It can only be populated by the server.
414
+ */
415
+ readonly totalSizeTiB?: number;
416
+ }
417
+
418
+ /** Known values of {@link SkuName} that the service accepts. */
419
+ export enum KnownSkuName {
420
+ /** Premium locally redundant storage */
421
+ PremiumLRS = "Premium_LRS",
422
+ /** Premium zone redundant storage */
423
+ PremiumZRS = "Premium_ZRS"
424
+ }
425
+
426
+ /**
427
+ * Defines values for SkuName. \
428
+ * {@link KnownSkuName} can be used interchangeably with SkuName,
429
+ * this enum contains the known values that the service supports.
430
+ * ### Known values supported by the service
431
+ * **Premium_LRS**: Premium locally redundant storage \
432
+ * **Premium_ZRS**: Premium zone redundant storage
433
+ */
434
+ export type SkuName = string;
435
+
436
+ /** Known values of {@link SkuTier} that the service accepts. */
437
+ export enum KnownSkuTier {
438
+ /** Premium Tier */
439
+ Premium = "Premium"
440
+ }
441
+
442
+ /**
443
+ * Defines values for SkuTier. \
444
+ * {@link KnownSkuTier} can be used interchangeably with SkuTier,
445
+ * this enum contains the known values that the service supports.
446
+ * ### Known values supported by the service
447
+ * **Premium**: Premium Tier
448
+ */
449
+ export type SkuTier = string;
450
+
451
+ /** Known values of {@link ProvisioningStates} that the service accepts. */
452
+ export enum KnownProvisioningStates {
453
+ /** Invalid */
454
+ Invalid = "Invalid",
455
+ /** Succeeded */
456
+ Succeeded = "Succeeded",
457
+ /** Failed */
458
+ Failed = "Failed",
459
+ /** Canceled */
460
+ Canceled = "Canceled",
461
+ /** Pending */
462
+ Pending = "Pending",
463
+ /** Creating */
464
+ Creating = "Creating",
465
+ /** Updating */
466
+ Updating = "Updating",
467
+ /** Deleting */
468
+ Deleting = "Deleting"
469
+ }
470
+
471
+ /**
472
+ * Defines values for ProvisioningStates. \
473
+ * {@link KnownProvisioningStates} can be used interchangeably with ProvisioningStates,
474
+ * this enum contains the known values that the service supports.
475
+ * ### Known values supported by the service
476
+ * **Invalid** \
477
+ * **Succeeded** \
478
+ * **Failed** \
479
+ * **Canceled** \
480
+ * **Pending** \
481
+ * **Creating** \
482
+ * **Updating** \
483
+ * **Deleting**
484
+ */
485
+ export type ProvisioningStates = string;
486
+
487
+ /** Known values of {@link CreatedByType} that the service accepts. */
488
+ export enum KnownCreatedByType {
489
+ /** User */
490
+ User = "User",
491
+ /** Application */
492
+ Application = "Application",
493
+ /** ManagedIdentity */
494
+ ManagedIdentity = "ManagedIdentity",
495
+ /** Key */
496
+ Key = "Key"
497
+ }
498
+
499
+ /**
500
+ * Defines values for CreatedByType. \
501
+ * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
502
+ * this enum contains the known values that the service supports.
503
+ * ### Known values supported by the service
504
+ * **User** \
505
+ * **Application** \
506
+ * **ManagedIdentity** \
507
+ * **Key**
508
+ */
509
+ export type CreatedByType = string;
510
+
511
+ /** Known values of {@link StorageTargetType} that the service accepts. */
512
+ export enum KnownStorageTargetType {
513
+ /** Iscsi */
514
+ Iscsi = "Iscsi",
515
+ /** None */
516
+ None = "None"
517
+ }
518
+
519
+ /**
520
+ * Defines values for StorageTargetType. \
521
+ * {@link KnownStorageTargetType} can be used interchangeably with StorageTargetType,
522
+ * this enum contains the known values that the service supports.
523
+ * ### Known values supported by the service
524
+ * **Iscsi** \
525
+ * **None**
526
+ */
527
+ export type StorageTargetType = string;
528
+
529
+ /** Known values of {@link EncryptionType} that the service accepts. */
530
+ export enum KnownEncryptionType {
531
+ /** Volume is encrypted at rest with Platform managed key. It is the default encryption type. */
532
+ EncryptionAtRestWithPlatformKey = "EncryptionAtRestWithPlatformKey"
533
+ }
534
+
535
+ /**
536
+ * Defines values for EncryptionType. \
537
+ * {@link KnownEncryptionType} can be used interchangeably with EncryptionType,
538
+ * this enum contains the known values that the service supports.
539
+ * ### Known values supported by the service
540
+ * **EncryptionAtRestWithPlatformKey**: Volume is encrypted at rest with Platform managed key. It is the default encryption type.
541
+ */
542
+ export type EncryptionType = string;
543
+
544
+ /** Known values of {@link OperationalStatus} that the service accepts. */
545
+ export enum KnownOperationalStatus {
546
+ /** Invalid */
547
+ Invalid = "Invalid",
548
+ /** Unknown */
549
+ Unknown = "Unknown",
550
+ /** Healthy */
551
+ Healthy = "Healthy",
552
+ /** Unhealthy */
553
+ Unhealthy = "Unhealthy",
554
+ /** Updating */
555
+ Updating = "Updating",
556
+ /** Running */
557
+ Running = "Running",
558
+ /** Stopped */
559
+ Stopped = "Stopped",
560
+ /** StoppedDeallocated */
561
+ StoppedDeallocated = "Stopped (deallocated)"
562
+ }
563
+
564
+ /**
565
+ * Defines values for OperationalStatus. \
566
+ * {@link KnownOperationalStatus} can be used interchangeably with OperationalStatus,
567
+ * this enum contains the known values that the service supports.
568
+ * ### Known values supported by the service
569
+ * **Invalid** \
570
+ * **Unknown** \
571
+ * **Healthy** \
572
+ * **Unhealthy** \
573
+ * **Updating** \
574
+ * **Running** \
575
+ * **Stopped** \
576
+ * **Stopped (deallocated)**
577
+ */
578
+ export type OperationalStatus = string;
579
+ /** Defines values for State. */
580
+ export type State =
581
+ | "provisioning"
582
+ | "deprovisioning"
583
+ | "succeeded"
584
+ | "failed"
585
+ | "networkSourceDeleted";
586
+
587
+ /** Optional parameters. */
588
+ export interface OperationsListOptionalParams
589
+ extends coreClient.OperationOptions {}
590
+
591
+ /** Contains response data for the list operation. */
592
+ export type OperationsListResponse = ElasticSanOperationListResult;
593
+
594
+ /** Optional parameters. */
595
+ export interface SkusListOptionalParams extends coreClient.OperationOptions {
596
+ /** Specify $filter='location eq <location>' to filter on location. */
597
+ filter?: string;
598
+ }
599
+
600
+ /** Contains response data for the list operation. */
601
+ export type SkusListResponse = SkuInformationList;
602
+
603
+ /** Optional parameters. */
604
+ export interface ElasticSansListBySubscriptionOptionalParams
605
+ extends coreClient.OperationOptions {}
606
+
607
+ /** Contains response data for the listBySubscription operation. */
608
+ export type ElasticSansListBySubscriptionResponse = ElasticSanList;
609
+
610
+ /** Optional parameters. */
611
+ export interface ElasticSansListByResourceGroupOptionalParams
612
+ extends coreClient.OperationOptions {}
613
+
614
+ /** Contains response data for the listByResourceGroup operation. */
615
+ export type ElasticSansListByResourceGroupResponse = ElasticSanList;
616
+
617
+ /** Optional parameters. */
618
+ export interface ElasticSansCreateOptionalParams
619
+ extends coreClient.OperationOptions {
620
+ /** Delay to wait until next poll, in milliseconds. */
621
+ updateIntervalInMs?: number;
622
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
623
+ resumeFrom?: string;
624
+ }
625
+
626
+ /** Contains response data for the create operation. */
627
+ export type ElasticSansCreateResponse = ElasticSan;
628
+
629
+ /** Optional parameters. */
630
+ export interface ElasticSansUpdateOptionalParams
631
+ extends coreClient.OperationOptions {
632
+ /** Delay to wait until next poll, in milliseconds. */
633
+ updateIntervalInMs?: number;
634
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
635
+ resumeFrom?: string;
636
+ }
637
+
638
+ /** Contains response data for the update operation. */
639
+ export type ElasticSansUpdateResponse = ElasticSan;
640
+
641
+ /** Optional parameters. */
642
+ export interface ElasticSansDeleteOptionalParams
643
+ extends coreClient.OperationOptions {
644
+ /** Delay to wait until next poll, in milliseconds. */
645
+ updateIntervalInMs?: number;
646
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
647
+ resumeFrom?: string;
648
+ }
649
+
650
+ /** Optional parameters. */
651
+ export interface ElasticSansGetOptionalParams
652
+ extends coreClient.OperationOptions {}
653
+
654
+ /** Contains response data for the get operation. */
655
+ export type ElasticSansGetResponse = ElasticSan;
656
+
657
+ /** Optional parameters. */
658
+ export interface ElasticSansListBySubscriptionNextOptionalParams
659
+ extends coreClient.OperationOptions {}
660
+
661
+ /** Contains response data for the listBySubscriptionNext operation. */
662
+ export type ElasticSansListBySubscriptionNextResponse = ElasticSanList;
663
+
664
+ /** Optional parameters. */
665
+ export interface ElasticSansListByResourceGroupNextOptionalParams
666
+ extends coreClient.OperationOptions {}
667
+
668
+ /** Contains response data for the listByResourceGroupNext operation. */
669
+ export type ElasticSansListByResourceGroupNextResponse = ElasticSanList;
670
+
671
+ /** Optional parameters. */
672
+ export interface VolumeGroupsListByElasticSanOptionalParams
673
+ extends coreClient.OperationOptions {}
674
+
675
+ /** Contains response data for the listByElasticSan operation. */
676
+ export type VolumeGroupsListByElasticSanResponse = VolumeGroupList;
677
+
678
+ /** Optional parameters. */
679
+ export interface VolumeGroupsCreateOptionalParams
680
+ extends coreClient.OperationOptions {
681
+ /** Delay to wait until next poll, in milliseconds. */
682
+ updateIntervalInMs?: number;
683
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
684
+ resumeFrom?: string;
685
+ }
686
+
687
+ /** Contains response data for the create operation. */
688
+ export type VolumeGroupsCreateResponse = VolumeGroup;
689
+
690
+ /** Optional parameters. */
691
+ export interface VolumeGroupsUpdateOptionalParams
692
+ extends coreClient.OperationOptions {
693
+ /** Delay to wait until next poll, in milliseconds. */
694
+ updateIntervalInMs?: number;
695
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
696
+ resumeFrom?: string;
697
+ }
698
+
699
+ /** Contains response data for the update operation. */
700
+ export type VolumeGroupsUpdateResponse = VolumeGroup;
701
+
702
+ /** Optional parameters. */
703
+ export interface VolumeGroupsDeleteOptionalParams
704
+ extends coreClient.OperationOptions {
705
+ /** Delay to wait until next poll, in milliseconds. */
706
+ updateIntervalInMs?: number;
707
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
708
+ resumeFrom?: string;
709
+ }
710
+
711
+ /** Optional parameters. */
712
+ export interface VolumeGroupsGetOptionalParams
713
+ extends coreClient.OperationOptions {}
714
+
715
+ /** Contains response data for the get operation. */
716
+ export type VolumeGroupsGetResponse = VolumeGroup;
717
+
718
+ /** Optional parameters. */
719
+ export interface VolumeGroupsListByElasticSanNextOptionalParams
720
+ extends coreClient.OperationOptions {}
721
+
722
+ /** Contains response data for the listByElasticSanNext operation. */
723
+ export type VolumeGroupsListByElasticSanNextResponse = VolumeGroupList;
724
+
725
+ /** Optional parameters. */
726
+ export interface VolumesCreateOptionalParams
727
+ extends coreClient.OperationOptions {
728
+ /** Delay to wait until next poll, in milliseconds. */
729
+ updateIntervalInMs?: number;
730
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
731
+ resumeFrom?: string;
732
+ }
733
+
734
+ /** Contains response data for the create operation. */
735
+ export type VolumesCreateResponse = Volume;
736
+
737
+ /** Optional parameters. */
738
+ export interface VolumesUpdateOptionalParams
739
+ extends coreClient.OperationOptions {
740
+ /** Delay to wait until next poll, in milliseconds. */
741
+ updateIntervalInMs?: number;
742
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
743
+ resumeFrom?: string;
744
+ }
745
+
746
+ /** Contains response data for the update operation. */
747
+ export type VolumesUpdateResponse = Volume;
748
+
749
+ /** Optional parameters. */
750
+ export interface VolumesDeleteOptionalParams
751
+ extends coreClient.OperationOptions {
752
+ /** Delay to wait until next poll, in milliseconds. */
753
+ updateIntervalInMs?: number;
754
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
755
+ resumeFrom?: string;
756
+ }
757
+
758
+ /** Optional parameters. */
759
+ export interface VolumesGetOptionalParams extends coreClient.OperationOptions {}
760
+
761
+ /** Contains response data for the get operation. */
762
+ export type VolumesGetResponse = Volume;
763
+
764
+ /** Optional parameters. */
765
+ export interface VolumesListByVolumeGroupOptionalParams
766
+ extends coreClient.OperationOptions {}
767
+
768
+ /** Contains response data for the listByVolumeGroup operation. */
769
+ export type VolumesListByVolumeGroupResponse = VolumeList;
770
+
771
+ /** Optional parameters. */
772
+ export interface VolumesListByVolumeGroupNextOptionalParams
773
+ extends coreClient.OperationOptions {}
774
+
775
+ /** Contains response data for the listByVolumeGroupNext operation. */
776
+ export type VolumesListByVolumeGroupNextResponse = VolumeList;
777
+
778
+ /** Optional parameters. */
779
+ export interface ElasticSanManagementOptionalParams
780
+ extends coreClient.ServiceClientOptions {
781
+ /** server parameter */
782
+ $host?: string;
783
+ /** Api Version */
784
+ apiVersion?: string;
785
+ /** Overrides client endpoint. */
786
+ endpoint?: string;
787
+ }