@azure/arm-imagebuilder 1.0.0

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 (77) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/LICENSE +21 -0
  3. package/README.md +98 -0
  4. package/dist/index.js +2270 -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/src/imageBuilderClient.d.ts +20 -0
  9. package/dist-esm/src/imageBuilderClient.d.ts.map +1 -0
  10. package/dist-esm/src/imageBuilderClient.js +53 -0
  11. package/dist-esm/src/imageBuilderClient.js.map +1 -0
  12. package/dist-esm/src/index.d.ts +5 -0
  13. package/dist-esm/src/index.d.ts.map +1 -0
  14. package/dist-esm/src/index.js +12 -0
  15. package/dist-esm/src/index.js.map +1 -0
  16. package/dist-esm/src/lroImpl.d.ts +16 -0
  17. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  18. package/dist-esm/src/lroImpl.js +29 -0
  19. package/dist-esm/src/lroImpl.js.map +1 -0
  20. package/dist-esm/src/models/index.d.ts +562 -0
  21. package/dist-esm/src/models/index.d.ts.map +1 -0
  22. package/dist-esm/src/models/index.js +37 -0
  23. package/dist-esm/src/models/index.js.map +1 -0
  24. package/dist-esm/src/models/mappers.d.ts +53 -0
  25. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  26. package/dist-esm/src/models/mappers.js +1092 -0
  27. package/dist-esm/src/models/mappers.js.map +1 -0
  28. package/dist-esm/src/models/parameters.d.ts +13 -0
  29. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  30. package/dist-esm/src/models/parameters.js +118 -0
  31. package/dist-esm/src/models/parameters.js.map +1 -0
  32. package/dist-esm/src/operations/index.d.ts +3 -0
  33. package/dist-esm/src/operations/index.d.ts.map +1 -0
  34. package/dist-esm/src/operations/index.js +10 -0
  35. package/dist-esm/src/operations/index.js.map +1 -0
  36. package/dist-esm/src/operations/operations.d.ts +32 -0
  37. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  38. package/dist-esm/src/operations/operations.js +120 -0
  39. package/dist-esm/src/operations/operations.js.map +1 -0
  40. package/dist-esm/src/operations/virtualMachineImageTemplates.d.ts +167 -0
  41. package/dist-esm/src/operations/virtualMachineImageTemplates.d.ts.map +1 -0
  42. package/dist-esm/src/operations/virtualMachineImageTemplates.js +791 -0
  43. package/dist-esm/src/operations/virtualMachineImageTemplates.js.map +1 -0
  44. package/dist-esm/src/operationsInterfaces/index.d.ts +3 -0
  45. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  46. package/dist-esm/src/operationsInterfaces/index.js +10 -0
  47. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  48. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  49. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  50. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  51. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  52. package/dist-esm/src/operationsInterfaces/virtualMachineImageTemplates.d.ts +114 -0
  53. package/dist-esm/src/operationsInterfaces/virtualMachineImageTemplates.d.ts.map +1 -0
  54. package/dist-esm/src/operationsInterfaces/virtualMachineImageTemplates.js +9 -0
  55. package/dist-esm/src/operationsInterfaces/virtualMachineImageTemplates.js.map +1 -0
  56. package/dist-esm/test/imagebuilder_examples.d.ts +4 -0
  57. package/dist-esm/test/imagebuilder_examples.d.ts.map +1 -0
  58. package/dist-esm/test/imagebuilder_examples.js +201 -0
  59. package/dist-esm/test/imagebuilder_examples.js.map +1 -0
  60. package/package.json +95 -0
  61. package/review/arm-imagebuilder.api.md +509 -0
  62. package/rollup.config.js +188 -0
  63. package/src/imageBuilderClient.ts +83 -0
  64. package/src/index.ts +12 -0
  65. package/src/lroImpl.ts +34 -0
  66. package/src/models/index.ts +668 -0
  67. package/src/models/mappers.ts +1214 -0
  68. package/src/models/parameters.ts +137 -0
  69. package/src/operations/index.ts +10 -0
  70. package/src/operations/operations.ts +137 -0
  71. package/src/operations/virtualMachineImageTemplates.ts +1085 -0
  72. package/src/operationsInterfaces/index.ts +10 -0
  73. package/src/operationsInterfaces/operations.ts +22 -0
  74. package/src/operationsInterfaces/virtualMachineImageTemplates.ts +213 -0
  75. package/tsconfig.json +19 -0
  76. package/types/arm-imagebuilder.d.ts +779 -0
  77. package/types/tsdoc-metadata.json +11 -0
@@ -0,0 +1,509 @@
1
+ ## API Report File for "@azure/arm-imagebuilder"
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 interface CloudError {
15
+ error?: CloudErrorBody;
16
+ }
17
+
18
+ // @public
19
+ export interface CloudErrorBody {
20
+ code?: string;
21
+ details?: CloudErrorBody[];
22
+ message?: string;
23
+ target?: string;
24
+ }
25
+
26
+ // @public (undocumented)
27
+ export interface ComponentsVrq145SchemasImagetemplateidentityPropertiesUserassignedidentitiesAdditionalproperties {
28
+ readonly clientId?: string;
29
+ readonly principalId?: string;
30
+ }
31
+
32
+ // @public
33
+ export type CreatedByType = string;
34
+
35
+ // @public (undocumented)
36
+ export class ImageBuilderClient extends coreClient.ServiceClient {
37
+ // (undocumented)
38
+ $host: string;
39
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ImageBuilderClientOptionalParams);
40
+ // (undocumented)
41
+ apiVersion: string;
42
+ // (undocumented)
43
+ operations: Operations;
44
+ // (undocumented)
45
+ subscriptionId: string;
46
+ // (undocumented)
47
+ virtualMachineImageTemplates: VirtualMachineImageTemplates;
48
+ }
49
+
50
+ // @public
51
+ export interface ImageBuilderClientOptionalParams extends coreClient.ServiceClientOptions {
52
+ $host?: string;
53
+ apiVersion?: string;
54
+ endpoint?: string;
55
+ }
56
+
57
+ // @public
58
+ export type ImageTemplate = TrackedResource & {
59
+ identity: ImageTemplateIdentity;
60
+ readonly systemData?: SystemData;
61
+ source?: ImageTemplateSourceUnion;
62
+ customize?: ImageTemplateCustomizerUnion[];
63
+ distribute?: ImageTemplateDistributorUnion[];
64
+ readonly provisioningState?: ProvisioningState;
65
+ readonly provisioningError?: ProvisioningError;
66
+ readonly lastRunStatus?: ImageTemplateLastRunStatus;
67
+ buildTimeoutInMinutes?: number;
68
+ vmProfile?: ImageTemplateVmProfile;
69
+ };
70
+
71
+ // @public
72
+ export interface ImageTemplateCustomizer {
73
+ name?: string;
74
+ type: "Shell" | "WindowsRestart" | "WindowsUpdate" | "PowerShell" | "File";
75
+ }
76
+
77
+ // @public (undocumented)
78
+ export type ImageTemplateCustomizerUnion = ImageTemplateCustomizer | ImageTemplateShellCustomizer | ImageTemplateRestartCustomizer | ImageTemplateWindowsUpdateCustomizer | ImageTemplatePowerShellCustomizer | ImageTemplateFileCustomizer;
79
+
80
+ // @public
81
+ export interface ImageTemplateDistributor {
82
+ artifactTags?: {
83
+ [propertyName: string]: string;
84
+ };
85
+ runOutputName: string;
86
+ type: "ManagedImage" | "SharedImage" | "VHD";
87
+ }
88
+
89
+ // @public (undocumented)
90
+ export type ImageTemplateDistributorUnion = ImageTemplateDistributor | ImageTemplateManagedImageDistributor | ImageTemplateSharedImageDistributor | ImageTemplateVhdDistributor;
91
+
92
+ // @public
93
+ export type ImageTemplateFileCustomizer = ImageTemplateCustomizer & {
94
+ type: "File";
95
+ sourceUri?: string;
96
+ sha256Checksum?: string;
97
+ destination?: string;
98
+ };
99
+
100
+ // @public
101
+ export interface ImageTemplateIdentity {
102
+ type?: ResourceIdentityType;
103
+ userAssignedIdentities?: {
104
+ [propertyName: string]: ComponentsVrq145SchemasImagetemplateidentityPropertiesUserassignedidentitiesAdditionalproperties;
105
+ };
106
+ }
107
+
108
+ // @public
109
+ export interface ImageTemplateLastRunStatus {
110
+ endTime?: Date;
111
+ message?: string;
112
+ runState?: RunState;
113
+ runSubState?: RunSubState;
114
+ startTime?: Date;
115
+ }
116
+
117
+ // @public
118
+ export interface ImageTemplateListResult {
119
+ nextLink?: string;
120
+ value?: ImageTemplate[];
121
+ }
122
+
123
+ // @public
124
+ export type ImageTemplateManagedImageDistributor = ImageTemplateDistributor & {
125
+ type: "ManagedImage";
126
+ imageId: string;
127
+ location: string;
128
+ };
129
+
130
+ // @public
131
+ export type ImageTemplateManagedImageSource = ImageTemplateSource & {
132
+ type: "ManagedImage";
133
+ imageId: string;
134
+ };
135
+
136
+ // @public
137
+ export type ImageTemplatePlatformImageSource = ImageTemplateSource & {
138
+ type: "PlatformImage";
139
+ publisher?: string;
140
+ offer?: string;
141
+ sku?: string;
142
+ version?: string;
143
+ readonly exactVersion?: string;
144
+ planInfo?: PlatformImagePurchasePlan;
145
+ };
146
+
147
+ // @public
148
+ export type ImageTemplatePowerShellCustomizer = ImageTemplateCustomizer & {
149
+ type: "PowerShell";
150
+ scriptUri?: string;
151
+ sha256Checksum?: string;
152
+ inline?: string[];
153
+ runElevated?: boolean;
154
+ runAsSystem?: boolean;
155
+ validExitCodes?: number[];
156
+ };
157
+
158
+ // @public
159
+ export type ImageTemplateRestartCustomizer = ImageTemplateCustomizer & {
160
+ type: "WindowsRestart";
161
+ restartCommand?: string;
162
+ restartCheckCommand?: string;
163
+ restartTimeout?: string;
164
+ };
165
+
166
+ // @public
167
+ export type ImageTemplateSharedImageDistributor = ImageTemplateDistributor & {
168
+ type: "SharedImage";
169
+ galleryImageId: string;
170
+ replicationRegions: string[];
171
+ excludeFromLatest?: boolean;
172
+ storageAccountType?: SharedImageStorageAccountType;
173
+ };
174
+
175
+ // @public
176
+ export type ImageTemplateSharedImageVersionSource = ImageTemplateSource & {
177
+ type: "SharedImageVersion";
178
+ imageVersionId: string;
179
+ };
180
+
181
+ // @public
182
+ export type ImageTemplateShellCustomizer = ImageTemplateCustomizer & {
183
+ type: "Shell";
184
+ scriptUri?: string;
185
+ sha256Checksum?: string;
186
+ inline?: string[];
187
+ };
188
+
189
+ // @public
190
+ export interface ImageTemplateSource {
191
+ type: "PlatformImage" | "ManagedImage" | "SharedImageVersion";
192
+ }
193
+
194
+ // @public (undocumented)
195
+ export type ImageTemplateSourceUnion = ImageTemplateSource | ImageTemplatePlatformImageSource | ImageTemplateManagedImageSource | ImageTemplateSharedImageVersionSource;
196
+
197
+ // @public
198
+ export interface ImageTemplateUpdateParameters {
199
+ identity?: ImageTemplateIdentity;
200
+ tags?: {
201
+ [propertyName: string]: string;
202
+ };
203
+ }
204
+
205
+ // @public
206
+ export type ImageTemplateVhdDistributor = ImageTemplateDistributor & {
207
+ type: "VHD";
208
+ };
209
+
210
+ // @public
211
+ export interface ImageTemplateVmProfile {
212
+ osDiskSizeGB?: number;
213
+ userAssignedIdentities?: string[];
214
+ vmSize?: string;
215
+ vnetConfig?: VirtualNetworkConfig;
216
+ }
217
+
218
+ // @public
219
+ export type ImageTemplateWindowsUpdateCustomizer = ImageTemplateCustomizer & {
220
+ type: "WindowsUpdate";
221
+ searchCriteria?: string;
222
+ filters?: string[];
223
+ updateLimit?: number;
224
+ };
225
+
226
+ // @public
227
+ export enum KnownCreatedByType {
228
+ // (undocumented)
229
+ Application = "Application",
230
+ // (undocumented)
231
+ Key = "Key",
232
+ // (undocumented)
233
+ ManagedIdentity = "ManagedIdentity",
234
+ // (undocumented)
235
+ User = "User"
236
+ }
237
+
238
+ // @public
239
+ export enum KnownProvisioningErrorCode {
240
+ // (undocumented)
241
+ BadCustomizerType = "BadCustomizerType",
242
+ // (undocumented)
243
+ BadDistributeType = "BadDistributeType",
244
+ // (undocumented)
245
+ BadManagedImageSource = "BadManagedImageSource",
246
+ // (undocumented)
247
+ BadPIRSource = "BadPIRSource",
248
+ // (undocumented)
249
+ BadSharedImageDistribute = "BadSharedImageDistribute",
250
+ // (undocumented)
251
+ BadSharedImageVersionSource = "BadSharedImageVersionSource",
252
+ // (undocumented)
253
+ BadSourceType = "BadSourceType",
254
+ // (undocumented)
255
+ NoCustomizerScript = "NoCustomizerScript",
256
+ // (undocumented)
257
+ Other = "Other",
258
+ // (undocumented)
259
+ ServerError = "ServerError",
260
+ // (undocumented)
261
+ UnsupportedCustomizerType = "UnsupportedCustomizerType"
262
+ }
263
+
264
+ // @public
265
+ export enum KnownSharedImageStorageAccountType {
266
+ // (undocumented)
267
+ StandardLRS = "Standard_LRS",
268
+ // (undocumented)
269
+ StandardZRS = "Standard_ZRS"
270
+ }
271
+
272
+ // @public
273
+ export interface Operation {
274
+ display?: OperationDisplay;
275
+ isDataAction?: boolean;
276
+ name?: string;
277
+ origin?: string;
278
+ properties?: Record<string, unknown>;
279
+ }
280
+
281
+ // @public
282
+ export interface OperationDisplay {
283
+ description?: string;
284
+ operation?: string;
285
+ provider?: string;
286
+ resource?: string;
287
+ }
288
+
289
+ // @public
290
+ export interface OperationListResult {
291
+ nextLink?: string;
292
+ value?: Operation[];
293
+ }
294
+
295
+ // @public
296
+ export interface Operations {
297
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
298
+ }
299
+
300
+ // @public
301
+ export interface OperationsListNextOptionalParams extends coreClient.OperationOptions {
302
+ }
303
+
304
+ // @public
305
+ export type OperationsListNextResponse = OperationListResult;
306
+
307
+ // @public
308
+ export interface OperationsListOptionalParams extends coreClient.OperationOptions {
309
+ }
310
+
311
+ // @public
312
+ export type OperationsListResponse = OperationListResult;
313
+
314
+ // @public
315
+ export interface PlatformImagePurchasePlan {
316
+ planName: string;
317
+ planProduct: string;
318
+ planPublisher: string;
319
+ }
320
+
321
+ // @public
322
+ export interface ProvisioningError {
323
+ message?: string;
324
+ provisioningErrorCode?: ProvisioningErrorCode;
325
+ }
326
+
327
+ // @public
328
+ export type ProvisioningErrorCode = string;
329
+
330
+ // @public
331
+ export type ProvisioningState = "Creating" | "Updating" | "Succeeded" | "Failed" | "Deleting";
332
+
333
+ // @public
334
+ export interface Resource {
335
+ readonly id?: string;
336
+ readonly name?: string;
337
+ readonly type?: string;
338
+ }
339
+
340
+ // @public
341
+ export type ResourceIdentityType = "UserAssigned" | "None";
342
+
343
+ // @public
344
+ export type RunOutput = SubResource & {
345
+ artifactId?: string;
346
+ artifactUri?: string;
347
+ readonly provisioningState?: ProvisioningState;
348
+ };
349
+
350
+ // @public
351
+ export interface RunOutputCollection {
352
+ nextLink?: string;
353
+ value?: RunOutput[];
354
+ }
355
+
356
+ // @public
357
+ export type RunState = "Running" | "Canceling" | "Succeeded" | "PartiallySucceeded" | "Failed" | "Canceled";
358
+
359
+ // @public
360
+ export type RunSubState = "Queued" | "Building" | "Customizing" | "Distributing";
361
+
362
+ // @public
363
+ export type SharedImageStorageAccountType = string;
364
+
365
+ // @public
366
+ export interface SubResource {
367
+ readonly id?: string;
368
+ name: string;
369
+ readonly type?: string;
370
+ }
371
+
372
+ // @public
373
+ export interface SystemData {
374
+ createdAt?: Date;
375
+ createdBy?: string;
376
+ createdByType?: CreatedByType;
377
+ lastModifiedAt?: Date;
378
+ lastModifiedBy?: string;
379
+ lastModifiedByType?: CreatedByType;
380
+ }
381
+
382
+ // @public
383
+ export type TrackedResource = Resource & {
384
+ tags?: {
385
+ [propertyName: string]: string;
386
+ };
387
+ location: string;
388
+ };
389
+
390
+ // @public
391
+ export interface VirtualMachineImageTemplates {
392
+ beginCancel(resourceGroupName: string, imageTemplateName: string, options?: VirtualMachineImageTemplatesCancelOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
393
+ beginCancelAndWait(resourceGroupName: string, imageTemplateName: string, options?: VirtualMachineImageTemplatesCancelOptionalParams): Promise<void>;
394
+ beginCreateOrUpdate(resourceGroupName: string, imageTemplateName: string, parameters: ImageTemplate, options?: VirtualMachineImageTemplatesCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<VirtualMachineImageTemplatesCreateOrUpdateResponse>, VirtualMachineImageTemplatesCreateOrUpdateResponse>>;
395
+ beginCreateOrUpdateAndWait(resourceGroupName: string, imageTemplateName: string, parameters: ImageTemplate, options?: VirtualMachineImageTemplatesCreateOrUpdateOptionalParams): Promise<VirtualMachineImageTemplatesCreateOrUpdateResponse>;
396
+ beginDelete(resourceGroupName: string, imageTemplateName: string, options?: VirtualMachineImageTemplatesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
397
+ beginDeleteAndWait(resourceGroupName: string, imageTemplateName: string, options?: VirtualMachineImageTemplatesDeleteOptionalParams): Promise<void>;
398
+ beginRun(resourceGroupName: string, imageTemplateName: string, options?: VirtualMachineImageTemplatesRunOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
399
+ beginRunAndWait(resourceGroupName: string, imageTemplateName: string, options?: VirtualMachineImageTemplatesRunOptionalParams): Promise<void>;
400
+ beginUpdate(resourceGroupName: string, imageTemplateName: string, parameters: ImageTemplateUpdateParameters, options?: VirtualMachineImageTemplatesUpdateOptionalParams): Promise<PollerLike<PollOperationState<VirtualMachineImageTemplatesUpdateResponse>, VirtualMachineImageTemplatesUpdateResponse>>;
401
+ beginUpdateAndWait(resourceGroupName: string, imageTemplateName: string, parameters: ImageTemplateUpdateParameters, options?: VirtualMachineImageTemplatesUpdateOptionalParams): Promise<VirtualMachineImageTemplatesUpdateResponse>;
402
+ get(resourceGroupName: string, imageTemplateName: string, options?: VirtualMachineImageTemplatesGetOptionalParams): Promise<VirtualMachineImageTemplatesGetResponse>;
403
+ getRunOutput(resourceGroupName: string, imageTemplateName: string, runOutputName: string, options?: VirtualMachineImageTemplatesGetRunOutputOptionalParams): Promise<VirtualMachineImageTemplatesGetRunOutputResponse>;
404
+ list(options?: VirtualMachineImageTemplatesListOptionalParams): PagedAsyncIterableIterator<ImageTemplate>;
405
+ listByResourceGroup(resourceGroupName: string, options?: VirtualMachineImageTemplatesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ImageTemplate>;
406
+ listRunOutputs(resourceGroupName: string, imageTemplateName: string, options?: VirtualMachineImageTemplatesListRunOutputsOptionalParams): PagedAsyncIterableIterator<RunOutput>;
407
+ }
408
+
409
+ // @public
410
+ export interface VirtualMachineImageTemplatesCancelOptionalParams extends coreClient.OperationOptions {
411
+ resumeFrom?: string;
412
+ updateIntervalInMs?: number;
413
+ }
414
+
415
+ // @public
416
+ export interface VirtualMachineImageTemplatesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
417
+ resumeFrom?: string;
418
+ updateIntervalInMs?: number;
419
+ }
420
+
421
+ // @public
422
+ export type VirtualMachineImageTemplatesCreateOrUpdateResponse = ImageTemplate;
423
+
424
+ // @public
425
+ export interface VirtualMachineImageTemplatesDeleteOptionalParams extends coreClient.OperationOptions {
426
+ resumeFrom?: string;
427
+ updateIntervalInMs?: number;
428
+ }
429
+
430
+ // @public
431
+ export interface VirtualMachineImageTemplatesGetOptionalParams extends coreClient.OperationOptions {
432
+ }
433
+
434
+ // @public
435
+ export type VirtualMachineImageTemplatesGetResponse = ImageTemplate;
436
+
437
+ // @public
438
+ export interface VirtualMachineImageTemplatesGetRunOutputOptionalParams extends coreClient.OperationOptions {
439
+ }
440
+
441
+ // @public
442
+ export type VirtualMachineImageTemplatesGetRunOutputResponse = RunOutput;
443
+
444
+ // @public
445
+ export interface VirtualMachineImageTemplatesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
446
+ }
447
+
448
+ // @public
449
+ export type VirtualMachineImageTemplatesListByResourceGroupNextResponse = ImageTemplateListResult;
450
+
451
+ // @public
452
+ export interface VirtualMachineImageTemplatesListByResourceGroupOptionalParams extends coreClient.OperationOptions {
453
+ }
454
+
455
+ // @public
456
+ export type VirtualMachineImageTemplatesListByResourceGroupResponse = ImageTemplateListResult;
457
+
458
+ // @public
459
+ export interface VirtualMachineImageTemplatesListNextOptionalParams extends coreClient.OperationOptions {
460
+ }
461
+
462
+ // @public
463
+ export type VirtualMachineImageTemplatesListNextResponse = ImageTemplateListResult;
464
+
465
+ // @public
466
+ export interface VirtualMachineImageTemplatesListOptionalParams extends coreClient.OperationOptions {
467
+ }
468
+
469
+ // @public
470
+ export type VirtualMachineImageTemplatesListResponse = ImageTemplateListResult;
471
+
472
+ // @public
473
+ export interface VirtualMachineImageTemplatesListRunOutputsNextOptionalParams extends coreClient.OperationOptions {
474
+ }
475
+
476
+ // @public
477
+ export type VirtualMachineImageTemplatesListRunOutputsNextResponse = RunOutputCollection;
478
+
479
+ // @public
480
+ export interface VirtualMachineImageTemplatesListRunOutputsOptionalParams extends coreClient.OperationOptions {
481
+ }
482
+
483
+ // @public
484
+ export type VirtualMachineImageTemplatesListRunOutputsResponse = RunOutputCollection;
485
+
486
+ // @public
487
+ export interface VirtualMachineImageTemplatesRunOptionalParams extends coreClient.OperationOptions {
488
+ resumeFrom?: string;
489
+ updateIntervalInMs?: number;
490
+ }
491
+
492
+ // @public
493
+ export interface VirtualMachineImageTemplatesUpdateOptionalParams extends coreClient.OperationOptions {
494
+ resumeFrom?: string;
495
+ updateIntervalInMs?: number;
496
+ }
497
+
498
+ // @public
499
+ export type VirtualMachineImageTemplatesUpdateResponse = ImageTemplate;
500
+
501
+ // @public
502
+ export interface VirtualNetworkConfig {
503
+ proxyVmSize?: string;
504
+ subnetId?: string;
505
+ }
506
+
507
+ // (No @packageDocumentation comment for this package)
508
+
509
+ ```
@@ -0,0 +1,188 @@
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
+ /**
18
+ * Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api.
19
+ *
20
+ * NOTE: this manual configuration is only needed because OpenTelemetry uses an
21
+ * __exportStar downleveled helper function to declare its exports which confuses
22
+ * rollup's automatic discovery mechanism.
23
+ *
24
+ * @returns an object reference that can be `...`'d into your cjs() configuration.
25
+ */
26
+ export function openTelemetryCommonJs() {
27
+ const namedExports = {};
28
+
29
+ for (const key of [
30
+ "@opentelemetry/api",
31
+ "@azure/core-tracing/node_modules/@opentelemetry/api"
32
+ ]) {
33
+ namedExports[key] = [
34
+ "SpanKind",
35
+ "TraceFlags",
36
+ "getSpan",
37
+ "setSpan",
38
+ "SpanStatusCode",
39
+ "getSpanContext",
40
+ "setSpanContext"
41
+ ];
42
+ }
43
+
44
+ const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"];
45
+
46
+ for (const version of releasedOpenTelemetryVersions) {
47
+ namedExports[
48
+ // working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path.
49
+ `../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js`
50
+ ] = [
51
+ "SpanKind",
52
+ "TraceFlags",
53
+ "getSpan",
54
+ "setSpan",
55
+ "StatusCode",
56
+ "CanonicalCode",
57
+ "getSpanContext",
58
+ "setSpanContext"
59
+ ];
60
+ }
61
+
62
+ return namedExports;
63
+ }
64
+
65
+ // #region Warning Handler
66
+
67
+ /**
68
+ * A function that can determine whether a rollupwarning should be ignored. If
69
+ * the function returns `true`, then the warning will not be displayed.
70
+ */
71
+
72
+ function ignoreNiseSinonEvalWarnings(warning) {
73
+ return (
74
+ warning.code === "EVAL" &&
75
+ warning.id &&
76
+ (warning.id.includes("node_modules/nise") ||
77
+ warning.id.includes("node_modules/sinon")) === true
78
+ );
79
+ }
80
+
81
+ function ignoreChaiCircularDependencyWarnings(warning) {
82
+ return (
83
+ warning.code === "CIRCULAR_DEPENDENCY" &&
84
+ warning.importer && warning.importer.includes("node_modules/chai") === true
85
+ );
86
+ }
87
+
88
+ const warningInhibitors = [
89
+ ignoreChaiCircularDependencyWarnings,
90
+ ignoreNiseSinonEvalWarnings
91
+ ];
92
+
93
+ /**
94
+ * Construct a warning handler for the shared rollup configuration
95
+ * that ignores certain warnings that are not relevant to testing.
96
+ */
97
+ function makeOnWarnForTesting() {
98
+ return (warning, warn) => {
99
+ // If every inhibitor returns false (i.e. no inhibitors), then show the warning
100
+ if (warningInhibitors.every((inhib) => !inhib(warning))) {
101
+ warn(warning);
102
+ }
103
+ };
104
+ }
105
+
106
+ // #endregion
107
+
108
+ function makeBrowserTestConfig() {
109
+ const config = {
110
+ input: {
111
+ include: ["dist-esm/test/**/*.spec.js"],
112
+ exclude: ["dist-esm/test/**/node/**"]
113
+ },
114
+ output: {
115
+ file: `dist-test/index.browser.js`,
116
+ format: "umd",
117
+ sourcemap: true
118
+ },
119
+ preserveSymlinks: false,
120
+ plugins: [
121
+ multiEntry({ exports: false }),
122
+ nodeResolve({
123
+ mainFields: ["module", "browser"]
124
+ }),
125
+ cjs({
126
+ namedExports: {
127
+ // Chai's strange internal architecture makes it impossible to statically
128
+ // analyze its exports.
129
+ chai: [
130
+ "version",
131
+ "use",
132
+ "util",
133
+ "config",
134
+ "expect",
135
+ "should",
136
+ "assert"
137
+ ],
138
+ ...openTelemetryCommonJs()
139
+ }
140
+ }),
141
+ json(),
142
+ sourcemaps()
143
+ //viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
144
+ ],
145
+ onwarn: makeOnWarnForTesting(),
146
+ // Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0,
147
+ // rollup started respecting the "sideEffects" field in package.json. Since
148
+ // our package.json sets "sideEffects=false", this also applies to test
149
+ // code, which causes all tests to be removed by tree-shaking.
150
+ treeshake: false
151
+ };
152
+
153
+ return config;
154
+ }
155
+
156
+ const defaultConfigurationOptions = {
157
+ disableBrowserBundle: false
158
+ };
159
+
160
+ export function makeConfig(pkg, options) {
161
+ options = {
162
+ ...defaultConfigurationOptions,
163
+ ...(options || {})
164
+ };
165
+
166
+ const baseConfig = {
167
+ // Use the package's module field if it has one
168
+ input: pkg["module"] || "dist-esm/src/index.js",
169
+ external: [
170
+ ...nodeBuiltins,
171
+ ...Object.keys(pkg.dependencies),
172
+ ...Object.keys(pkg.devDependencies)
173
+ ],
174
+ output: { file: "dist/index.js", format: "cjs", sourcemap: true },
175
+ preserveSymlinks: false,
176
+ plugins: [sourcemaps(), nodeResolve(), cjs()]
177
+ };
178
+
179
+ const config = [baseConfig];
180
+
181
+ if (!options.disableBrowserBundle) {
182
+ config.push(makeBrowserTestConfig());
183
+ }
184
+
185
+ return config;
186
+ }
187
+
188
+ export default makeConfig(require("./package.json"));