@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,536 @@
1
+ ## API Report File for "@azure/arm-elasticsan"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ import * as coreAuth from '@azure/core-auth';
8
+ import * as coreClient from '@azure/core-client';
9
+ import { PagedAsyncIterableIterator } from '@azure/core-paging';
10
+ import { PollerLike } from '@azure/core-lro';
11
+ import { PollOperationState } from '@azure/core-lro';
12
+
13
+ // @public
14
+ export type CreatedByType = string;
15
+
16
+ // @public
17
+ export interface ElasticSan extends TrackedResource {
18
+ availabilityZones?: string[];
19
+ baseSizeTiB: number;
20
+ extendedCapacitySizeTiB: number;
21
+ readonly provisioningState?: ProvisioningStates;
22
+ sku: Sku;
23
+ readonly systemData?: SystemData;
24
+ readonly totalIops?: number;
25
+ readonly totalMBps?: number;
26
+ readonly totalSizeTiB?: number;
27
+ readonly totalVolumeSizeGiB?: number;
28
+ readonly volumeGroupCount?: number;
29
+ }
30
+
31
+ // @public
32
+ export interface ElasticSanList {
33
+ readonly nextLink?: string;
34
+ value: ElasticSan[];
35
+ }
36
+
37
+ // @public (undocumented)
38
+ export class ElasticSanManagement extends coreClient.ServiceClient {
39
+ // (undocumented)
40
+ $host: string;
41
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ElasticSanManagementOptionalParams);
42
+ // (undocumented)
43
+ apiVersion: string;
44
+ // (undocumented)
45
+ elasticSans: ElasticSans;
46
+ // (undocumented)
47
+ operations: Operations;
48
+ // (undocumented)
49
+ skus: Skus;
50
+ // (undocumented)
51
+ subscriptionId: string;
52
+ // (undocumented)
53
+ volumeGroups: VolumeGroups;
54
+ // (undocumented)
55
+ volumes: Volumes;
56
+ }
57
+
58
+ // @public
59
+ export interface ElasticSanManagementOptionalParams extends coreClient.ServiceClientOptions {
60
+ $host?: string;
61
+ apiVersion?: string;
62
+ endpoint?: string;
63
+ }
64
+
65
+ // @public
66
+ export interface ElasticSanOperationDisplay {
67
+ description: string;
68
+ operation: string;
69
+ provider: string;
70
+ resource: string;
71
+ }
72
+
73
+ // @public
74
+ export interface ElasticSanOperationListResult {
75
+ nextLink?: string;
76
+ value: ElasticSanRPOperation[];
77
+ }
78
+
79
+ // @public
80
+ export interface ElasticSanRPOperation {
81
+ readonly display?: ElasticSanOperationDisplay;
82
+ readonly isDataAction?: boolean;
83
+ name: string;
84
+ }
85
+
86
+ // @public
87
+ export interface ElasticSans {
88
+ beginCreate(resourceGroupName: string, elasticSanName: string, parameters: ElasticSan, options?: ElasticSansCreateOptionalParams): Promise<PollerLike<PollOperationState<ElasticSansCreateResponse>, ElasticSansCreateResponse>>;
89
+ beginCreateAndWait(resourceGroupName: string, elasticSanName: string, parameters: ElasticSan, options?: ElasticSansCreateOptionalParams): Promise<ElasticSansCreateResponse>;
90
+ beginDelete(resourceGroupName: string, elasticSanName: string, options?: ElasticSansDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
91
+ beginDeleteAndWait(resourceGroupName: string, elasticSanName: string, options?: ElasticSansDeleteOptionalParams): Promise<void>;
92
+ beginUpdate(resourceGroupName: string, elasticSanName: string, parameters: ElasticSanUpdate, options?: ElasticSansUpdateOptionalParams): Promise<PollerLike<PollOperationState<ElasticSansUpdateResponse>, ElasticSansUpdateResponse>>;
93
+ beginUpdateAndWait(resourceGroupName: string, elasticSanName: string, parameters: ElasticSanUpdate, options?: ElasticSansUpdateOptionalParams): Promise<ElasticSansUpdateResponse>;
94
+ get(resourceGroupName: string, elasticSanName: string, options?: ElasticSansGetOptionalParams): Promise<ElasticSansGetResponse>;
95
+ listByResourceGroup(resourceGroupName: string, options?: ElasticSansListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ElasticSan>;
96
+ listBySubscription(options?: ElasticSansListBySubscriptionOptionalParams): PagedAsyncIterableIterator<ElasticSan>;
97
+ }
98
+
99
+ // @public
100
+ export interface ElasticSansCreateOptionalParams extends coreClient.OperationOptions {
101
+ resumeFrom?: string;
102
+ updateIntervalInMs?: number;
103
+ }
104
+
105
+ // @public
106
+ export type ElasticSansCreateResponse = ElasticSan;
107
+
108
+ // @public
109
+ export interface ElasticSansDeleteOptionalParams extends coreClient.OperationOptions {
110
+ resumeFrom?: string;
111
+ updateIntervalInMs?: number;
112
+ }
113
+
114
+ // @public
115
+ export interface ElasticSansGetOptionalParams extends coreClient.OperationOptions {
116
+ }
117
+
118
+ // @public
119
+ export type ElasticSansGetResponse = ElasticSan;
120
+
121
+ // @public
122
+ export interface ElasticSansListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
123
+ }
124
+
125
+ // @public
126
+ export type ElasticSansListByResourceGroupNextResponse = ElasticSanList;
127
+
128
+ // @public
129
+ export interface ElasticSansListByResourceGroupOptionalParams extends coreClient.OperationOptions {
130
+ }
131
+
132
+ // @public
133
+ export type ElasticSansListByResourceGroupResponse = ElasticSanList;
134
+
135
+ // @public
136
+ export interface ElasticSansListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {
137
+ }
138
+
139
+ // @public
140
+ export type ElasticSansListBySubscriptionNextResponse = ElasticSanList;
141
+
142
+ // @public
143
+ export interface ElasticSansListBySubscriptionOptionalParams extends coreClient.OperationOptions {
144
+ }
145
+
146
+ // @public
147
+ export type ElasticSansListBySubscriptionResponse = ElasticSanList;
148
+
149
+ // @public
150
+ export interface ElasticSansUpdateOptionalParams extends coreClient.OperationOptions {
151
+ resumeFrom?: string;
152
+ updateIntervalInMs?: number;
153
+ }
154
+
155
+ // @public
156
+ export type ElasticSansUpdateResponse = ElasticSan;
157
+
158
+ // @public
159
+ export interface ElasticSanUpdate {
160
+ baseSizeTiB?: number;
161
+ extendedCapacitySizeTiB?: number;
162
+ tags?: {
163
+ [propertyName: string]: string;
164
+ };
165
+ }
166
+
167
+ // @public
168
+ export type EncryptionType = string;
169
+
170
+ // @public
171
+ export interface ErrorAdditionalInfo {
172
+ readonly info?: Record<string, unknown>;
173
+ readonly type?: string;
174
+ }
175
+
176
+ // @public
177
+ export interface ErrorModel {
178
+ error?: ErrorResponse;
179
+ }
180
+
181
+ // @public
182
+ export interface ErrorResponse {
183
+ readonly additionalInfo?: ErrorAdditionalInfo[];
184
+ readonly code?: string;
185
+ readonly details?: ErrorResponse[];
186
+ readonly message?: string;
187
+ readonly target?: string;
188
+ }
189
+
190
+ // @public
191
+ export interface IscsiTargetInfo {
192
+ readonly provisioningState?: ProvisioningStates;
193
+ status?: OperationalStatus;
194
+ readonly targetIqn?: string;
195
+ readonly targetPortalHostname?: string;
196
+ readonly targetPortalPort?: number;
197
+ }
198
+
199
+ // @public
200
+ export enum KnownCreatedByType {
201
+ Application = "Application",
202
+ Key = "Key",
203
+ ManagedIdentity = "ManagedIdentity",
204
+ User = "User"
205
+ }
206
+
207
+ // @public
208
+ export enum KnownEncryptionType {
209
+ EncryptionAtRestWithPlatformKey = "EncryptionAtRestWithPlatformKey"
210
+ }
211
+
212
+ // @public
213
+ export enum KnownOperationalStatus {
214
+ Healthy = "Healthy",
215
+ Invalid = "Invalid",
216
+ Running = "Running",
217
+ Stopped = "Stopped",
218
+ StoppedDeallocated = "Stopped (deallocated)",
219
+ Unhealthy = "Unhealthy",
220
+ Unknown = "Unknown",
221
+ Updating = "Updating"
222
+ }
223
+
224
+ // @public
225
+ export enum KnownProvisioningStates {
226
+ Canceled = "Canceled",
227
+ Creating = "Creating",
228
+ Deleting = "Deleting",
229
+ Failed = "Failed",
230
+ Invalid = "Invalid",
231
+ Pending = "Pending",
232
+ Succeeded = "Succeeded",
233
+ Updating = "Updating"
234
+ }
235
+
236
+ // @public
237
+ export enum KnownSkuName {
238
+ PremiumLRS = "Premium_LRS",
239
+ PremiumZRS = "Premium_ZRS"
240
+ }
241
+
242
+ // @public
243
+ export enum KnownSkuTier {
244
+ Premium = "Premium"
245
+ }
246
+
247
+ // @public
248
+ export enum KnownStorageTargetType {
249
+ Iscsi = "Iscsi",
250
+ None = "None"
251
+ }
252
+
253
+ // @public
254
+ export interface NetworkRuleSet {
255
+ virtualNetworkRules?: VirtualNetworkRule[];
256
+ }
257
+
258
+ // @public
259
+ export type OperationalStatus = string;
260
+
261
+ // @public
262
+ export interface Operations {
263
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<ElasticSanRPOperation>;
264
+ }
265
+
266
+ // @public
267
+ export interface OperationsListOptionalParams extends coreClient.OperationOptions {
268
+ }
269
+
270
+ // @public
271
+ export type OperationsListResponse = ElasticSanOperationListResult;
272
+
273
+ // @public
274
+ export type ProvisioningStates = string;
275
+
276
+ // @public
277
+ export interface Resource {
278
+ readonly id?: string;
279
+ readonly name?: string;
280
+ tags?: {
281
+ [propertyName: string]: string;
282
+ };
283
+ readonly type?: string;
284
+ }
285
+
286
+ // @public
287
+ export interface Sku {
288
+ name: SkuName;
289
+ tier?: SkuTier;
290
+ }
291
+
292
+ // @public
293
+ export interface SKUCapability {
294
+ readonly name?: string;
295
+ readonly value?: string;
296
+ }
297
+
298
+ // @public
299
+ export interface SkuInformation {
300
+ readonly capabilities?: SKUCapability[];
301
+ readonly locationInfo?: SkuLocationInfo[];
302
+ readonly locations?: string[];
303
+ name: SkuName;
304
+ readonly resourceType?: string;
305
+ tier?: SkuTier;
306
+ }
307
+
308
+ // @public
309
+ export interface SkuInformationList {
310
+ readonly value?: SkuInformation[];
311
+ }
312
+
313
+ // @public
314
+ export interface SkuLocationInfo {
315
+ readonly location?: string;
316
+ readonly zones?: string[];
317
+ }
318
+
319
+ // @public
320
+ export type SkuName = string;
321
+
322
+ // @public
323
+ export interface Skus {
324
+ list(options?: SkusListOptionalParams): PagedAsyncIterableIterator<SkuInformation>;
325
+ }
326
+
327
+ // @public
328
+ export interface SkusListOptionalParams extends coreClient.OperationOptions {
329
+ filter?: string;
330
+ }
331
+
332
+ // @public
333
+ export type SkusListResponse = SkuInformationList;
334
+
335
+ // @public
336
+ export type SkuTier = string;
337
+
338
+ // @public
339
+ export interface SourceCreationData {
340
+ createSource?: "None";
341
+ sourceUri?: string;
342
+ }
343
+
344
+ // @public
345
+ export type State = "provisioning" | "deprovisioning" | "succeeded" | "failed" | "networkSourceDeleted";
346
+
347
+ // @public
348
+ export type StorageTargetType = string;
349
+
350
+ // @public
351
+ export interface SystemData {
352
+ createdAt?: Date;
353
+ createdBy?: string;
354
+ createdByType?: CreatedByType;
355
+ lastModifiedAt?: Date;
356
+ lastModifiedBy?: string;
357
+ lastModifiedByType?: CreatedByType;
358
+ }
359
+
360
+ // @public
361
+ export interface TrackedResource extends Resource {
362
+ location?: string;
363
+ }
364
+
365
+ // @public
366
+ export interface VirtualNetworkRule {
367
+ action?: "Allow";
368
+ readonly state?: State;
369
+ virtualNetworkResourceId: string;
370
+ }
371
+
372
+ // @public
373
+ export interface Volume extends Resource {
374
+ creationData?: SourceCreationData;
375
+ sizeGiB?: number;
376
+ readonly storageTarget?: IscsiTargetInfo;
377
+ readonly systemData?: SystemData;
378
+ readonly volumeId?: string;
379
+ }
380
+
381
+ // @public
382
+ export interface VolumeGroup extends Resource {
383
+ encryption?: EncryptionType;
384
+ networkAcls?: NetworkRuleSet;
385
+ protocolType?: StorageTargetType;
386
+ readonly provisioningState?: ProvisioningStates;
387
+ readonly systemData?: SystemData;
388
+ }
389
+
390
+ // @public
391
+ export interface VolumeGroupList {
392
+ readonly nextLink?: string;
393
+ value: VolumeGroup[];
394
+ }
395
+
396
+ // @public
397
+ export interface VolumeGroups {
398
+ beginCreate(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, parameters: VolumeGroup, options?: VolumeGroupsCreateOptionalParams): Promise<PollerLike<PollOperationState<VolumeGroupsCreateResponse>, VolumeGroupsCreateResponse>>;
399
+ beginCreateAndWait(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, parameters: VolumeGroup, options?: VolumeGroupsCreateOptionalParams): Promise<VolumeGroupsCreateResponse>;
400
+ beginDelete(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, options?: VolumeGroupsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
401
+ beginDeleteAndWait(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, options?: VolumeGroupsDeleteOptionalParams): Promise<void>;
402
+ beginUpdate(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, parameters: VolumeGroupUpdate, options?: VolumeGroupsUpdateOptionalParams): Promise<PollerLike<PollOperationState<VolumeGroupsUpdateResponse>, VolumeGroupsUpdateResponse>>;
403
+ beginUpdateAndWait(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, parameters: VolumeGroupUpdate, options?: VolumeGroupsUpdateOptionalParams): Promise<VolumeGroupsUpdateResponse>;
404
+ get(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, options?: VolumeGroupsGetOptionalParams): Promise<VolumeGroupsGetResponse>;
405
+ listByElasticSan(resourceGroupName: string, elasticSanName: string, options?: VolumeGroupsListByElasticSanOptionalParams): PagedAsyncIterableIterator<VolumeGroup>;
406
+ }
407
+
408
+ // @public
409
+ export interface VolumeGroupsCreateOptionalParams extends coreClient.OperationOptions {
410
+ resumeFrom?: string;
411
+ updateIntervalInMs?: number;
412
+ }
413
+
414
+ // @public
415
+ export type VolumeGroupsCreateResponse = VolumeGroup;
416
+
417
+ // @public
418
+ export interface VolumeGroupsDeleteOptionalParams extends coreClient.OperationOptions {
419
+ resumeFrom?: string;
420
+ updateIntervalInMs?: number;
421
+ }
422
+
423
+ // @public
424
+ export interface VolumeGroupsGetOptionalParams extends coreClient.OperationOptions {
425
+ }
426
+
427
+ // @public
428
+ export type VolumeGroupsGetResponse = VolumeGroup;
429
+
430
+ // @public
431
+ export interface VolumeGroupsListByElasticSanNextOptionalParams extends coreClient.OperationOptions {
432
+ }
433
+
434
+ // @public
435
+ export type VolumeGroupsListByElasticSanNextResponse = VolumeGroupList;
436
+
437
+ // @public
438
+ export interface VolumeGroupsListByElasticSanOptionalParams extends coreClient.OperationOptions {
439
+ }
440
+
441
+ // @public
442
+ export type VolumeGroupsListByElasticSanResponse = VolumeGroupList;
443
+
444
+ // @public
445
+ export interface VolumeGroupsUpdateOptionalParams extends coreClient.OperationOptions {
446
+ resumeFrom?: string;
447
+ updateIntervalInMs?: number;
448
+ }
449
+
450
+ // @public
451
+ export type VolumeGroupsUpdateResponse = VolumeGroup;
452
+
453
+ // @public
454
+ export interface VolumeGroupUpdate {
455
+ encryption?: EncryptionType;
456
+ networkAcls?: NetworkRuleSet;
457
+ protocolType?: StorageTargetType;
458
+ tags?: {
459
+ [propertyName: string]: string;
460
+ };
461
+ }
462
+
463
+ // @public
464
+ export interface VolumeList {
465
+ readonly nextLink?: string;
466
+ value: Volume[];
467
+ }
468
+
469
+ // @public
470
+ export interface Volumes {
471
+ beginCreate(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, volumeName: string, parameters: Volume, options?: VolumesCreateOptionalParams): Promise<PollerLike<PollOperationState<VolumesCreateResponse>, VolumesCreateResponse>>;
472
+ beginCreateAndWait(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, volumeName: string, parameters: Volume, options?: VolumesCreateOptionalParams): Promise<VolumesCreateResponse>;
473
+ beginDelete(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, volumeName: string, options?: VolumesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
474
+ beginDeleteAndWait(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, volumeName: string, options?: VolumesDeleteOptionalParams): Promise<void>;
475
+ beginUpdate(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, volumeName: string, parameters: VolumeUpdate, options?: VolumesUpdateOptionalParams): Promise<PollerLike<PollOperationState<VolumesUpdateResponse>, VolumesUpdateResponse>>;
476
+ beginUpdateAndWait(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, volumeName: string, parameters: VolumeUpdate, options?: VolumesUpdateOptionalParams): Promise<VolumesUpdateResponse>;
477
+ get(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, volumeName: string, options?: VolumesGetOptionalParams): Promise<VolumesGetResponse>;
478
+ listByVolumeGroup(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, options?: VolumesListByVolumeGroupOptionalParams): PagedAsyncIterableIterator<Volume>;
479
+ }
480
+
481
+ // @public
482
+ export interface VolumesCreateOptionalParams extends coreClient.OperationOptions {
483
+ resumeFrom?: string;
484
+ updateIntervalInMs?: number;
485
+ }
486
+
487
+ // @public
488
+ export type VolumesCreateResponse = Volume;
489
+
490
+ // @public
491
+ export interface VolumesDeleteOptionalParams extends coreClient.OperationOptions {
492
+ resumeFrom?: string;
493
+ updateIntervalInMs?: number;
494
+ }
495
+
496
+ // @public
497
+ export interface VolumesGetOptionalParams extends coreClient.OperationOptions {
498
+ }
499
+
500
+ // @public
501
+ export type VolumesGetResponse = Volume;
502
+
503
+ // @public
504
+ export interface VolumesListByVolumeGroupNextOptionalParams extends coreClient.OperationOptions {
505
+ }
506
+
507
+ // @public
508
+ export type VolumesListByVolumeGroupNextResponse = VolumeList;
509
+
510
+ // @public
511
+ export interface VolumesListByVolumeGroupOptionalParams extends coreClient.OperationOptions {
512
+ }
513
+
514
+ // @public
515
+ export type VolumesListByVolumeGroupResponse = VolumeList;
516
+
517
+ // @public
518
+ export interface VolumesUpdateOptionalParams extends coreClient.OperationOptions {
519
+ resumeFrom?: string;
520
+ updateIntervalInMs?: number;
521
+ }
522
+
523
+ // @public
524
+ export type VolumesUpdateResponse = Volume;
525
+
526
+ // @public
527
+ export interface VolumeUpdate {
528
+ sizeGiB?: number;
529
+ tags?: {
530
+ [propertyName: string]: string;
531
+ };
532
+ }
533
+
534
+ // (No @packageDocumentation comment for this package)
535
+
536
+ ```
@@ -0,0 +1,122 @@
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"));