@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.
- package/CHANGELOG.md +5 -0
- package/LICENSE +21 -0
- package/README.md +98 -0
- package/dist/index.js +2270 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/imageBuilderClient.d.ts +20 -0
- package/dist-esm/src/imageBuilderClient.d.ts.map +1 -0
- package/dist-esm/src/imageBuilderClient.js +53 -0
- package/dist-esm/src/imageBuilderClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +562 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +37 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +53 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +1092 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +13 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +118 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +3 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +10 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/virtualMachineImageTemplates.d.ts +167 -0
- package/dist-esm/src/operations/virtualMachineImageTemplates.d.ts.map +1 -0
- package/dist-esm/src/operations/virtualMachineImageTemplates.js +791 -0
- package/dist-esm/src/operations/virtualMachineImageTemplates.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +3 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +10 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineImageTemplates.d.ts +114 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineImageTemplates.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineImageTemplates.js +9 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineImageTemplates.js.map +1 -0
- package/dist-esm/test/imagebuilder_examples.d.ts +4 -0
- package/dist-esm/test/imagebuilder_examples.d.ts.map +1 -0
- package/dist-esm/test/imagebuilder_examples.js +201 -0
- package/dist-esm/test/imagebuilder_examples.js.map +1 -0
- package/package.json +95 -0
- package/review/arm-imagebuilder.api.md +509 -0
- package/rollup.config.js +188 -0
- package/src/imageBuilderClient.ts +83 -0
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +668 -0
- package/src/models/mappers.ts +1214 -0
- package/src/models/parameters.ts +137 -0
- package/src/operations/index.ts +10 -0
- package/src/operations/operations.ts +137 -0
- package/src/operations/virtualMachineImageTemplates.ts +1085 -0
- package/src/operationsInterfaces/index.ts +10 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/virtualMachineImageTemplates.ts +213 -0
- package/tsconfig.json +19 -0
- package/types/arm-imagebuilder.d.ts +779 -0
- package/types/tsdoc-metadata.json +11 -0
|
@@ -0,0 +1,779 @@
|
|
|
1
|
+
import * as coreAuth from '@azure/core-auth';
|
|
2
|
+
import * as coreClient from '@azure/core-client';
|
|
3
|
+
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
4
|
+
import { PollerLike } from '@azure/core-lro';
|
|
5
|
+
import { PollOperationState } from '@azure/core-lro';
|
|
6
|
+
|
|
7
|
+
/** An error response from the Azure VM Image Builder service. */
|
|
8
|
+
export declare interface CloudError {
|
|
9
|
+
/** Details about the error. */
|
|
10
|
+
error?: CloudErrorBody;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/** An error response from the Azure VM Image Builder service. */
|
|
14
|
+
export declare interface CloudErrorBody {
|
|
15
|
+
/** An identifier for the error. Codes are invariant and are intended to be consumed programmatically. */
|
|
16
|
+
code?: string;
|
|
17
|
+
/** A message describing the error, intended to be suitable for display in a user interface. */
|
|
18
|
+
message?: string;
|
|
19
|
+
/** The target of the particular error. For example, the name of the property in error. */
|
|
20
|
+
target?: string;
|
|
21
|
+
/** A list of additional details about the error. */
|
|
22
|
+
details?: CloudErrorBody[];
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export declare interface ComponentsVrq145SchemasImagetemplateidentityPropertiesUserassignedidentitiesAdditionalproperties {
|
|
26
|
+
/**
|
|
27
|
+
* The principal id of user assigned identity.
|
|
28
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
29
|
+
*/
|
|
30
|
+
readonly principalId?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The client id of user assigned identity.
|
|
33
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
34
|
+
*/
|
|
35
|
+
readonly clientId?: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Defines values for CreatedByType. \
|
|
40
|
+
* {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
|
|
41
|
+
* this enum contains the known values that the service supports.
|
|
42
|
+
* ### Known values supported by the service
|
|
43
|
+
* **User** \
|
|
44
|
+
* **Application** \
|
|
45
|
+
* **ManagedIdentity** \
|
|
46
|
+
* **Key**
|
|
47
|
+
*/
|
|
48
|
+
export declare type CreatedByType = string;
|
|
49
|
+
|
|
50
|
+
export declare class ImageBuilderClient extends coreClient.ServiceClient {
|
|
51
|
+
$host: string;
|
|
52
|
+
subscriptionId: string;
|
|
53
|
+
apiVersion: string;
|
|
54
|
+
/**
|
|
55
|
+
* Initializes a new instance of the ImageBuilderClient class.
|
|
56
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
57
|
+
* @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription.
|
|
58
|
+
* The subscription Id forms part of the URI for every service call.
|
|
59
|
+
* @param options The parameter options
|
|
60
|
+
*/
|
|
61
|
+
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ImageBuilderClientOptionalParams);
|
|
62
|
+
virtualMachineImageTemplates: VirtualMachineImageTemplates;
|
|
63
|
+
operations: Operations;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/** Optional parameters. */
|
|
67
|
+
export declare interface ImageBuilderClientOptionalParams extends coreClient.ServiceClientOptions {
|
|
68
|
+
/** server parameter */
|
|
69
|
+
$host?: string;
|
|
70
|
+
/** Api Version */
|
|
71
|
+
apiVersion?: string;
|
|
72
|
+
/** Overrides client endpoint. */
|
|
73
|
+
endpoint?: string;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/** Image template is an ARM resource managed by Microsoft.VirtualMachineImages provider */
|
|
77
|
+
export declare type ImageTemplate = TrackedResource & {
|
|
78
|
+
/** The identity of the image template, if configured. */
|
|
79
|
+
identity: ImageTemplateIdentity;
|
|
80
|
+
/**
|
|
81
|
+
* Metadata pertaining to creation and last modification of the resource.
|
|
82
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
83
|
+
*/
|
|
84
|
+
readonly systemData?: SystemData;
|
|
85
|
+
/** Specifies the properties used to describe the source image. */
|
|
86
|
+
source?: ImageTemplateSourceUnion;
|
|
87
|
+
/** Specifies the properties used to describe the customization steps of the image, like Image source etc */
|
|
88
|
+
customize?: ImageTemplateCustomizerUnion[];
|
|
89
|
+
/** The distribution targets where the image output needs to go to. */
|
|
90
|
+
distribute?: ImageTemplateDistributorUnion[];
|
|
91
|
+
/**
|
|
92
|
+
* Provisioning state of the resource
|
|
93
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
94
|
+
*/
|
|
95
|
+
readonly provisioningState?: ProvisioningState;
|
|
96
|
+
/**
|
|
97
|
+
* Provisioning error, if any
|
|
98
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
99
|
+
*/
|
|
100
|
+
readonly provisioningError?: ProvisioningError;
|
|
101
|
+
/**
|
|
102
|
+
* State of 'run' that is currently executing or was last executed.
|
|
103
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
104
|
+
*/
|
|
105
|
+
readonly lastRunStatus?: ImageTemplateLastRunStatus;
|
|
106
|
+
/** Maximum duration to wait while building the image template. Omit or specify 0 to use the default (4 hours). */
|
|
107
|
+
buildTimeoutInMinutes?: number;
|
|
108
|
+
/** Describes how virtual machine is set up to build images */
|
|
109
|
+
vmProfile?: ImageTemplateVmProfile;
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
/** Describes a unit of image customization */
|
|
113
|
+
export declare interface ImageTemplateCustomizer {
|
|
114
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
115
|
+
type: "Shell" | "WindowsRestart" | "WindowsUpdate" | "PowerShell" | "File";
|
|
116
|
+
/** Friendly Name to provide context on what this customization step does */
|
|
117
|
+
name?: string;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export declare type ImageTemplateCustomizerUnion = ImageTemplateCustomizer | ImageTemplateShellCustomizer | ImageTemplateRestartCustomizer | ImageTemplateWindowsUpdateCustomizer | ImageTemplatePowerShellCustomizer | ImageTemplateFileCustomizer;
|
|
121
|
+
|
|
122
|
+
/** Generic distribution object */
|
|
123
|
+
export declare interface ImageTemplateDistributor {
|
|
124
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
125
|
+
type: "ManagedImage" | "SharedImage" | "VHD";
|
|
126
|
+
/** The name to be used for the associated RunOutput. */
|
|
127
|
+
runOutputName: string;
|
|
128
|
+
/** Tags that will be applied to the artifact once it has been created/updated by the distributor. */
|
|
129
|
+
artifactTags?: {
|
|
130
|
+
[propertyName: string]: string;
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export declare type ImageTemplateDistributorUnion = ImageTemplateDistributor | ImageTemplateManagedImageDistributor | ImageTemplateSharedImageDistributor | ImageTemplateVhdDistributor;
|
|
135
|
+
|
|
136
|
+
/** Uploads files to VMs (Linux, Windows). Corresponds to Packer file provisioner */
|
|
137
|
+
export declare type ImageTemplateFileCustomizer = ImageTemplateCustomizer & {
|
|
138
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
139
|
+
type: "File";
|
|
140
|
+
/** The URI of the file to be uploaded for customizing the VM. It can be a github link, SAS URI for Azure Storage, etc */
|
|
141
|
+
sourceUri?: string;
|
|
142
|
+
/** SHA256 checksum of the file provided in the sourceUri field above */
|
|
143
|
+
sha256Checksum?: string;
|
|
144
|
+
/** The absolute path to a file (with nested directory structures already created) where the file (from sourceUri) will be uploaded to in the VM */
|
|
145
|
+
destination?: string;
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
/** Identity for the image template. */
|
|
149
|
+
export declare interface ImageTemplateIdentity {
|
|
150
|
+
/** The type of identity used for the image template. The type 'None' will remove any identities from the image template. */
|
|
151
|
+
type?: ResourceIdentityType;
|
|
152
|
+
/** The list of user identities associated with the image template. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. */
|
|
153
|
+
userAssignedIdentities?: {
|
|
154
|
+
[propertyName: string]: ComponentsVrq145SchemasImagetemplateidentityPropertiesUserassignedidentitiesAdditionalproperties;
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/** Describes the latest status of running an image template */
|
|
159
|
+
export declare interface ImageTemplateLastRunStatus {
|
|
160
|
+
/** Start time of the last run (UTC) */
|
|
161
|
+
startTime?: Date;
|
|
162
|
+
/** End time of the last run (UTC) */
|
|
163
|
+
endTime?: Date;
|
|
164
|
+
/** State of the last run */
|
|
165
|
+
runState?: RunState;
|
|
166
|
+
/** Sub-state of the last run */
|
|
167
|
+
runSubState?: RunSubState;
|
|
168
|
+
/** Verbose information about the last run state */
|
|
169
|
+
message?: string;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/** The result of List image templates operation */
|
|
173
|
+
export declare interface ImageTemplateListResult {
|
|
174
|
+
/** An array of image templates */
|
|
175
|
+
value?: ImageTemplate[];
|
|
176
|
+
/** The continuation token. */
|
|
177
|
+
nextLink?: string;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/** Distribute as a Managed Disk Image. */
|
|
181
|
+
export declare type ImageTemplateManagedImageDistributor = ImageTemplateDistributor & {
|
|
182
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
183
|
+
type: "ManagedImage";
|
|
184
|
+
/** Resource Id of the Managed Disk Image */
|
|
185
|
+
imageId: string;
|
|
186
|
+
/** Azure location for the image, should match if image already exists */
|
|
187
|
+
location: string;
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
/** Describes an image source that is a managed image in customer subscription. */
|
|
191
|
+
export declare type ImageTemplateManagedImageSource = ImageTemplateSource & {
|
|
192
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
193
|
+
type: "ManagedImage";
|
|
194
|
+
/** ARM resource id of the managed image in customer subscription */
|
|
195
|
+
imageId: string;
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
/** Describes an image source from [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). */
|
|
199
|
+
export declare type ImageTemplatePlatformImageSource = ImageTemplateSource & {
|
|
200
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
201
|
+
type: "PlatformImage";
|
|
202
|
+
/** Image Publisher in [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). */
|
|
203
|
+
publisher?: string;
|
|
204
|
+
/** Image offer from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). */
|
|
205
|
+
offer?: string;
|
|
206
|
+
/** Image sku from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). */
|
|
207
|
+
sku?: string;
|
|
208
|
+
/** Image version from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). If 'latest' is specified here, the version is evaluated when the image build takes place, not when the template is submitted. */
|
|
209
|
+
version?: string;
|
|
210
|
+
/**
|
|
211
|
+
* Image version from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). This readonly field differs from 'version', only if the value specified in 'version' field is 'latest'.
|
|
212
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
213
|
+
*/
|
|
214
|
+
readonly exactVersion?: string;
|
|
215
|
+
/** Optional configuration of purchase plan for platform image. */
|
|
216
|
+
planInfo?: PlatformImagePurchasePlan;
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
/** Runs the specified PowerShell on the VM (Windows). Corresponds to Packer powershell provisioner. Exactly one of 'scriptUri' or 'inline' can be specified. */
|
|
220
|
+
export declare type ImageTemplatePowerShellCustomizer = ImageTemplateCustomizer & {
|
|
221
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
222
|
+
type: "PowerShell";
|
|
223
|
+
/** URI of the PowerShell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc */
|
|
224
|
+
scriptUri?: string;
|
|
225
|
+
/** SHA256 checksum of the power shell script provided in the scriptUri field above */
|
|
226
|
+
sha256Checksum?: string;
|
|
227
|
+
/** Array of PowerShell commands to execute */
|
|
228
|
+
inline?: string[];
|
|
229
|
+
/** If specified, the PowerShell script will be run with elevated privileges */
|
|
230
|
+
runElevated?: boolean;
|
|
231
|
+
/** If specified, the PowerShell script will be run with elevated privileges using the Local System user. Can only be true when the runElevated field above is set to true. */
|
|
232
|
+
runAsSystem?: boolean;
|
|
233
|
+
/** Valid exit codes for the PowerShell script. [Default: 0] */
|
|
234
|
+
validExitCodes?: number[];
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
/** Reboots a VM and waits for it to come back online (Windows). Corresponds to Packer windows-restart provisioner */
|
|
238
|
+
export declare type ImageTemplateRestartCustomizer = ImageTemplateCustomizer & {
|
|
239
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
240
|
+
type: "WindowsRestart";
|
|
241
|
+
/** Command to execute the restart [Default: 'shutdown /r /f /t 0 /c "packer restart"'] */
|
|
242
|
+
restartCommand?: string;
|
|
243
|
+
/** Command to check if restart succeeded [Default: ''] */
|
|
244
|
+
restartCheckCommand?: string;
|
|
245
|
+
/** Restart timeout specified as a string of magnitude and unit, e.g. '5m' (5 minutes) or '2h' (2 hours) [Default: '5m'] */
|
|
246
|
+
restartTimeout?: string;
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
/** Distribute via Shared Image Gallery. */
|
|
250
|
+
export declare type ImageTemplateSharedImageDistributor = ImageTemplateDistributor & {
|
|
251
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
252
|
+
type: "SharedImage";
|
|
253
|
+
/** Resource Id of the Shared Image Gallery image */
|
|
254
|
+
galleryImageId: string;
|
|
255
|
+
/** A list of regions that the image will be replicated to */
|
|
256
|
+
replicationRegions: string[];
|
|
257
|
+
/** Flag that indicates whether created image version should be excluded from latest. Omit to use the default (false). */
|
|
258
|
+
excludeFromLatest?: boolean;
|
|
259
|
+
/** Storage account type to be used to store the shared image. Omit to use the default (Standard_LRS). */
|
|
260
|
+
storageAccountType?: SharedImageStorageAccountType;
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
/** Describes an image source that is an image version in a shared image gallery. */
|
|
264
|
+
export declare type ImageTemplateSharedImageVersionSource = ImageTemplateSource & {
|
|
265
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
266
|
+
type: "SharedImageVersion";
|
|
267
|
+
/** ARM resource id of the image version in the shared image gallery */
|
|
268
|
+
imageVersionId: string;
|
|
269
|
+
};
|
|
270
|
+
|
|
271
|
+
/** Runs a shell script during the customization phase (Linux). Corresponds to Packer shell provisioner. Exactly one of 'scriptUri' or 'inline' can be specified. */
|
|
272
|
+
export declare type ImageTemplateShellCustomizer = ImageTemplateCustomizer & {
|
|
273
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
274
|
+
type: "Shell";
|
|
275
|
+
/** URI of the shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc */
|
|
276
|
+
scriptUri?: string;
|
|
277
|
+
/** SHA256 checksum of the shell script provided in the scriptUri field */
|
|
278
|
+
sha256Checksum?: string;
|
|
279
|
+
/** Array of shell commands to execute */
|
|
280
|
+
inline?: string[];
|
|
281
|
+
};
|
|
282
|
+
|
|
283
|
+
/** Describes a virtual machine image source for building, customizing and distributing */
|
|
284
|
+
export declare interface ImageTemplateSource {
|
|
285
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
286
|
+
type: "PlatformImage" | "ManagedImage" | "SharedImageVersion";
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
export declare type ImageTemplateSourceUnion = ImageTemplateSource | ImageTemplatePlatformImageSource | ImageTemplateManagedImageSource | ImageTemplateSharedImageVersionSource;
|
|
290
|
+
|
|
291
|
+
/** Parameters for updating an image template. */
|
|
292
|
+
export declare interface ImageTemplateUpdateParameters {
|
|
293
|
+
/** The identity of the image template, if configured. */
|
|
294
|
+
identity?: ImageTemplateIdentity;
|
|
295
|
+
/** The user-specified tags associated with the image template. */
|
|
296
|
+
tags?: {
|
|
297
|
+
[propertyName: string]: string;
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
/** Distribute via VHD in a storage account. */
|
|
302
|
+
export declare type ImageTemplateVhdDistributor = ImageTemplateDistributor & {
|
|
303
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
304
|
+
type: "VHD";
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
/** Describes the virtual machine used to build, customize and capture images */
|
|
308
|
+
export declare interface ImageTemplateVmProfile {
|
|
309
|
+
/** Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default (Standard_D2ds_v4). */
|
|
310
|
+
vmSize?: string;
|
|
311
|
+
/** Size of the OS disk in GB. Omit or specify 0 to use Azure's default OS disk size. */
|
|
312
|
+
osDiskSizeGB?: number;
|
|
313
|
+
/** Optional array of resource IDs of user assigned managed identities to be configured on the build VM. This may include the identity of the image template. */
|
|
314
|
+
userAssignedIdentities?: string[];
|
|
315
|
+
/** Optional configuration of the virtual network to use to deploy the build virtual machine in. Omit if no specific virtual network needs to be used. */
|
|
316
|
+
vnetConfig?: VirtualNetworkConfig;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/** Installs Windows Updates. Corresponds to Packer Windows Update Provisioner (https://github.com/rgl/packer-provisioner-windows-update) */
|
|
320
|
+
export declare type ImageTemplateWindowsUpdateCustomizer = ImageTemplateCustomizer & {
|
|
321
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
322
|
+
type: "WindowsUpdate";
|
|
323
|
+
/** Criteria to search updates. Omit or specify empty string to use the default (search all). Refer to above link for examples and detailed description of this field. */
|
|
324
|
+
searchCriteria?: string;
|
|
325
|
+
/** Array of filters to select updates to apply. Omit or specify empty array to use the default (no filter). Refer to above link for examples and detailed description of this field. */
|
|
326
|
+
filters?: string[];
|
|
327
|
+
/** Maximum number of updates to apply at a time. Omit or specify 0 to use the default (1000) */
|
|
328
|
+
updateLimit?: number;
|
|
329
|
+
};
|
|
330
|
+
|
|
331
|
+
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
332
|
+
export declare enum KnownCreatedByType {
|
|
333
|
+
User = "User",
|
|
334
|
+
Application = "Application",
|
|
335
|
+
ManagedIdentity = "ManagedIdentity",
|
|
336
|
+
Key = "Key"
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
/** Known values of {@link ProvisioningErrorCode} that the service accepts. */
|
|
340
|
+
export declare enum KnownProvisioningErrorCode {
|
|
341
|
+
BadSourceType = "BadSourceType",
|
|
342
|
+
BadPIRSource = "BadPIRSource",
|
|
343
|
+
BadManagedImageSource = "BadManagedImageSource",
|
|
344
|
+
BadSharedImageVersionSource = "BadSharedImageVersionSource",
|
|
345
|
+
BadCustomizerType = "BadCustomizerType",
|
|
346
|
+
UnsupportedCustomizerType = "UnsupportedCustomizerType",
|
|
347
|
+
NoCustomizerScript = "NoCustomizerScript",
|
|
348
|
+
BadDistributeType = "BadDistributeType",
|
|
349
|
+
BadSharedImageDistribute = "BadSharedImageDistribute",
|
|
350
|
+
ServerError = "ServerError",
|
|
351
|
+
Other = "Other"
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
/** Known values of {@link SharedImageStorageAccountType} that the service accepts. */
|
|
355
|
+
export declare enum KnownSharedImageStorageAccountType {
|
|
356
|
+
StandardLRS = "Standard_LRS",
|
|
357
|
+
StandardZRS = "Standard_ZRS"
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
/** A REST API operation */
|
|
361
|
+
export declare interface Operation {
|
|
362
|
+
/** This is of the format {provider}/{resource}/{operation} */
|
|
363
|
+
name?: string;
|
|
364
|
+
/** The object that describes the operation. */
|
|
365
|
+
display?: OperationDisplay;
|
|
366
|
+
/** The intended executor of the operation. */
|
|
367
|
+
origin?: string;
|
|
368
|
+
/** Any object */
|
|
369
|
+
properties?: Record<string, unknown>;
|
|
370
|
+
/** The flag that indicates whether the operation applies to data plane. */
|
|
371
|
+
isDataAction?: boolean;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
/** The object that describes the operation. */
|
|
375
|
+
export declare interface OperationDisplay {
|
|
376
|
+
/** Friendly name of the resource provider. */
|
|
377
|
+
provider?: string;
|
|
378
|
+
/** For example: read, write, delete, or listKeys/action */
|
|
379
|
+
operation?: string;
|
|
380
|
+
/** The resource type on which the operation is performed. */
|
|
381
|
+
resource?: string;
|
|
382
|
+
/** The friendly name of the operation */
|
|
383
|
+
description?: string;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
/** Result of the request to list REST API operations. It contains a list of operations and a URL nextLink to get the next set of results. */
|
|
387
|
+
export declare interface OperationListResult {
|
|
388
|
+
/** The list of operations supported by the resource provider. */
|
|
389
|
+
value?: Operation[];
|
|
390
|
+
/** The URL to get the next set of operation list results if there are any. */
|
|
391
|
+
nextLink?: string;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
/** Interface representing a Operations. */
|
|
395
|
+
export declare interface Operations {
|
|
396
|
+
/**
|
|
397
|
+
* Lists available operations for the Microsoft.VirtualMachineImages provider
|
|
398
|
+
* @param options The options parameters.
|
|
399
|
+
*/
|
|
400
|
+
list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
/** Optional parameters. */
|
|
404
|
+
export declare interface OperationsListNextOptionalParams extends coreClient.OperationOptions {
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
/** Contains response data for the listNext operation. */
|
|
408
|
+
export declare type OperationsListNextResponse = OperationListResult;
|
|
409
|
+
|
|
410
|
+
/** Optional parameters. */
|
|
411
|
+
export declare interface OperationsListOptionalParams extends coreClient.OperationOptions {
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
/** Contains response data for the list operation. */
|
|
415
|
+
export declare type OperationsListResponse = OperationListResult;
|
|
416
|
+
|
|
417
|
+
/** Purchase plan configuration for platform image. */
|
|
418
|
+
export declare interface PlatformImagePurchasePlan {
|
|
419
|
+
/** Name of the purchase plan. */
|
|
420
|
+
planName: string;
|
|
421
|
+
/** Product of the purchase plan. */
|
|
422
|
+
planProduct: string;
|
|
423
|
+
/** Publisher of the purchase plan. */
|
|
424
|
+
planPublisher: string;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
/** Describes the error happened when create or update an image template */
|
|
428
|
+
export declare interface ProvisioningError {
|
|
429
|
+
/** Error code of the provisioning failure */
|
|
430
|
+
provisioningErrorCode?: ProvisioningErrorCode;
|
|
431
|
+
/** Verbose error message about the provisioning failure */
|
|
432
|
+
message?: string;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* Defines values for ProvisioningErrorCode. \
|
|
437
|
+
* {@link KnownProvisioningErrorCode} can be used interchangeably with ProvisioningErrorCode,
|
|
438
|
+
* this enum contains the known values that the service supports.
|
|
439
|
+
* ### Known values supported by the service
|
|
440
|
+
* **BadSourceType** \
|
|
441
|
+
* **BadPIRSource** \
|
|
442
|
+
* **BadManagedImageSource** \
|
|
443
|
+
* **BadSharedImageVersionSource** \
|
|
444
|
+
* **BadCustomizerType** \
|
|
445
|
+
* **UnsupportedCustomizerType** \
|
|
446
|
+
* **NoCustomizerScript** \
|
|
447
|
+
* **BadDistributeType** \
|
|
448
|
+
* **BadSharedImageDistribute** \
|
|
449
|
+
* **ServerError** \
|
|
450
|
+
* **Other**
|
|
451
|
+
*/
|
|
452
|
+
export declare type ProvisioningErrorCode = string;
|
|
453
|
+
|
|
454
|
+
/** Defines values for ProvisioningState. */
|
|
455
|
+
export declare type ProvisioningState = "Creating" | "Updating" | "Succeeded" | "Failed" | "Deleting";
|
|
456
|
+
|
|
457
|
+
/** Common fields that are returned in the response for all Azure Resource Manager resources */
|
|
458
|
+
export declare interface Resource {
|
|
459
|
+
/**
|
|
460
|
+
* Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
|
|
461
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
462
|
+
*/
|
|
463
|
+
readonly id?: string;
|
|
464
|
+
/**
|
|
465
|
+
* The name of the resource
|
|
466
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
467
|
+
*/
|
|
468
|
+
readonly name?: string;
|
|
469
|
+
/**
|
|
470
|
+
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
|
|
471
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
472
|
+
*/
|
|
473
|
+
readonly type?: string;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
/** Defines values for ResourceIdentityType. */
|
|
477
|
+
export declare type ResourceIdentityType = "UserAssigned" | "None";
|
|
478
|
+
|
|
479
|
+
/** Represents an output that was created by running an image template. */
|
|
480
|
+
export declare type RunOutput = SubResource & {
|
|
481
|
+
/** The resource id of the artifact. */
|
|
482
|
+
artifactId?: string;
|
|
483
|
+
/** The location URI of the artifact. */
|
|
484
|
+
artifactUri?: string;
|
|
485
|
+
/**
|
|
486
|
+
* Provisioning state of the resource
|
|
487
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
488
|
+
*/
|
|
489
|
+
readonly provisioningState?: ProvisioningState;
|
|
490
|
+
};
|
|
491
|
+
|
|
492
|
+
/** The result of List run outputs operation */
|
|
493
|
+
export declare interface RunOutputCollection {
|
|
494
|
+
/** An array of run outputs */
|
|
495
|
+
value?: RunOutput[];
|
|
496
|
+
/** The continuation token. */
|
|
497
|
+
nextLink?: string;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
/** Defines values for RunState. */
|
|
501
|
+
export declare type RunState = "Running" | "Canceling" | "Succeeded" | "PartiallySucceeded" | "Failed" | "Canceled";
|
|
502
|
+
|
|
503
|
+
/** Defines values for RunSubState. */
|
|
504
|
+
export declare type RunSubState = "Queued" | "Building" | "Customizing" | "Distributing";
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* Defines values for SharedImageStorageAccountType. \
|
|
508
|
+
* {@link KnownSharedImageStorageAccountType} can be used interchangeably with SharedImageStorageAccountType,
|
|
509
|
+
* this enum contains the known values that the service supports.
|
|
510
|
+
* ### Known values supported by the service
|
|
511
|
+
* **Standard_LRS** \
|
|
512
|
+
* **Standard_ZRS**
|
|
513
|
+
*/
|
|
514
|
+
export declare type SharedImageStorageAccountType = string;
|
|
515
|
+
|
|
516
|
+
/** The Sub Resource model definition. */
|
|
517
|
+
export declare interface SubResource {
|
|
518
|
+
/**
|
|
519
|
+
* Resource Id
|
|
520
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
521
|
+
*/
|
|
522
|
+
readonly id?: string;
|
|
523
|
+
/** Resource name */
|
|
524
|
+
name: string;
|
|
525
|
+
/**
|
|
526
|
+
* Resource type
|
|
527
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
528
|
+
*/
|
|
529
|
+
readonly type?: string;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
/** Metadata pertaining to creation and last modification of the resource. */
|
|
533
|
+
export declare interface SystemData {
|
|
534
|
+
/** The identity that created the resource. */
|
|
535
|
+
createdBy?: string;
|
|
536
|
+
/** The type of identity that created the resource. */
|
|
537
|
+
createdByType?: CreatedByType;
|
|
538
|
+
/** The timestamp of resource creation (UTC). */
|
|
539
|
+
createdAt?: Date;
|
|
540
|
+
/** The identity that last modified the resource. */
|
|
541
|
+
lastModifiedBy?: string;
|
|
542
|
+
/** The type of identity that last modified the resource. */
|
|
543
|
+
lastModifiedByType?: CreatedByType;
|
|
544
|
+
/** The timestamp of resource last modification (UTC) */
|
|
545
|
+
lastModifiedAt?: Date;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
|
|
549
|
+
export declare type TrackedResource = Resource & {
|
|
550
|
+
/** Resource tags. */
|
|
551
|
+
tags?: {
|
|
552
|
+
[propertyName: string]: string;
|
|
553
|
+
};
|
|
554
|
+
/** The geo-location where the resource lives */
|
|
555
|
+
location: string;
|
|
556
|
+
};
|
|
557
|
+
|
|
558
|
+
/** Interface representing a VirtualMachineImageTemplates. */
|
|
559
|
+
export declare interface VirtualMachineImageTemplates {
|
|
560
|
+
/**
|
|
561
|
+
* Gets information about the VM image templates associated with the subscription.
|
|
562
|
+
* @param options The options parameters.
|
|
563
|
+
*/
|
|
564
|
+
list(options?: VirtualMachineImageTemplatesListOptionalParams): PagedAsyncIterableIterator<ImageTemplate>;
|
|
565
|
+
/**
|
|
566
|
+
* Gets information about the VM image templates associated with the specified resource group.
|
|
567
|
+
* @param resourceGroupName The name of the resource group.
|
|
568
|
+
* @param options The options parameters.
|
|
569
|
+
*/
|
|
570
|
+
listByResourceGroup(resourceGroupName: string, options?: VirtualMachineImageTemplatesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ImageTemplate>;
|
|
571
|
+
/**
|
|
572
|
+
* List all run outputs for the specified Image Template resource
|
|
573
|
+
* @param resourceGroupName The name of the resource group.
|
|
574
|
+
* @param imageTemplateName The name of the image Template
|
|
575
|
+
* @param options The options parameters.
|
|
576
|
+
*/
|
|
577
|
+
listRunOutputs(resourceGroupName: string, imageTemplateName: string, options?: VirtualMachineImageTemplatesListRunOutputsOptionalParams): PagedAsyncIterableIterator<RunOutput>;
|
|
578
|
+
/**
|
|
579
|
+
* Create or update a virtual machine image template
|
|
580
|
+
* @param resourceGroupName The name of the resource group.
|
|
581
|
+
* @param imageTemplateName The name of the image Template
|
|
582
|
+
* @param parameters Parameters supplied to the CreateImageTemplate operation
|
|
583
|
+
* @param options The options parameters.
|
|
584
|
+
*/
|
|
585
|
+
beginCreateOrUpdate(resourceGroupName: string, imageTemplateName: string, parameters: ImageTemplate, options?: VirtualMachineImageTemplatesCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<VirtualMachineImageTemplatesCreateOrUpdateResponse>, VirtualMachineImageTemplatesCreateOrUpdateResponse>>;
|
|
586
|
+
/**
|
|
587
|
+
* Create or update a virtual machine image template
|
|
588
|
+
* @param resourceGroupName The name of the resource group.
|
|
589
|
+
* @param imageTemplateName The name of the image Template
|
|
590
|
+
* @param parameters Parameters supplied to the CreateImageTemplate operation
|
|
591
|
+
* @param options The options parameters.
|
|
592
|
+
*/
|
|
593
|
+
beginCreateOrUpdateAndWait(resourceGroupName: string, imageTemplateName: string, parameters: ImageTemplate, options?: VirtualMachineImageTemplatesCreateOrUpdateOptionalParams): Promise<VirtualMachineImageTemplatesCreateOrUpdateResponse>;
|
|
594
|
+
/**
|
|
595
|
+
* Update the tags for this Virtual Machine Image Template
|
|
596
|
+
* @param resourceGroupName The name of the resource group.
|
|
597
|
+
* @param imageTemplateName The name of the image Template
|
|
598
|
+
* @param parameters Additional parameters for Image Template update.
|
|
599
|
+
* @param options The options parameters.
|
|
600
|
+
*/
|
|
601
|
+
beginUpdate(resourceGroupName: string, imageTemplateName: string, parameters: ImageTemplateUpdateParameters, options?: VirtualMachineImageTemplatesUpdateOptionalParams): Promise<PollerLike<PollOperationState<VirtualMachineImageTemplatesUpdateResponse>, VirtualMachineImageTemplatesUpdateResponse>>;
|
|
602
|
+
/**
|
|
603
|
+
* Update the tags for this Virtual Machine Image Template
|
|
604
|
+
* @param resourceGroupName The name of the resource group.
|
|
605
|
+
* @param imageTemplateName The name of the image Template
|
|
606
|
+
* @param parameters Additional parameters for Image Template update.
|
|
607
|
+
* @param options The options parameters.
|
|
608
|
+
*/
|
|
609
|
+
beginUpdateAndWait(resourceGroupName: string, imageTemplateName: string, parameters: ImageTemplateUpdateParameters, options?: VirtualMachineImageTemplatesUpdateOptionalParams): Promise<VirtualMachineImageTemplatesUpdateResponse>;
|
|
610
|
+
/**
|
|
611
|
+
* Get information about a virtual machine image template
|
|
612
|
+
* @param resourceGroupName The name of the resource group.
|
|
613
|
+
* @param imageTemplateName The name of the image Template
|
|
614
|
+
* @param options The options parameters.
|
|
615
|
+
*/
|
|
616
|
+
get(resourceGroupName: string, imageTemplateName: string, options?: VirtualMachineImageTemplatesGetOptionalParams): Promise<VirtualMachineImageTemplatesGetResponse>;
|
|
617
|
+
/**
|
|
618
|
+
* Delete a virtual machine image template
|
|
619
|
+
* @param resourceGroupName The name of the resource group.
|
|
620
|
+
* @param imageTemplateName The name of the image Template
|
|
621
|
+
* @param options The options parameters.
|
|
622
|
+
*/
|
|
623
|
+
beginDelete(resourceGroupName: string, imageTemplateName: string, options?: VirtualMachineImageTemplatesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
624
|
+
/**
|
|
625
|
+
* Delete a virtual machine image template
|
|
626
|
+
* @param resourceGroupName The name of the resource group.
|
|
627
|
+
* @param imageTemplateName The name of the image Template
|
|
628
|
+
* @param options The options parameters.
|
|
629
|
+
*/
|
|
630
|
+
beginDeleteAndWait(resourceGroupName: string, imageTemplateName: string, options?: VirtualMachineImageTemplatesDeleteOptionalParams): Promise<void>;
|
|
631
|
+
/**
|
|
632
|
+
* Create artifacts from a existing image template
|
|
633
|
+
* @param resourceGroupName The name of the resource group.
|
|
634
|
+
* @param imageTemplateName The name of the image Template
|
|
635
|
+
* @param options The options parameters.
|
|
636
|
+
*/
|
|
637
|
+
beginRun(resourceGroupName: string, imageTemplateName: string, options?: VirtualMachineImageTemplatesRunOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
638
|
+
/**
|
|
639
|
+
* Create artifacts from a existing image template
|
|
640
|
+
* @param resourceGroupName The name of the resource group.
|
|
641
|
+
* @param imageTemplateName The name of the image Template
|
|
642
|
+
* @param options The options parameters.
|
|
643
|
+
*/
|
|
644
|
+
beginRunAndWait(resourceGroupName: string, imageTemplateName: string, options?: VirtualMachineImageTemplatesRunOptionalParams): Promise<void>;
|
|
645
|
+
/**
|
|
646
|
+
* Cancel the long running image build based on the image template
|
|
647
|
+
* @param resourceGroupName The name of the resource group.
|
|
648
|
+
* @param imageTemplateName The name of the image Template
|
|
649
|
+
* @param options The options parameters.
|
|
650
|
+
*/
|
|
651
|
+
beginCancel(resourceGroupName: string, imageTemplateName: string, options?: VirtualMachineImageTemplatesCancelOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
652
|
+
/**
|
|
653
|
+
* Cancel the long running image build based on the image template
|
|
654
|
+
* @param resourceGroupName The name of the resource group.
|
|
655
|
+
* @param imageTemplateName The name of the image Template
|
|
656
|
+
* @param options The options parameters.
|
|
657
|
+
*/
|
|
658
|
+
beginCancelAndWait(resourceGroupName: string, imageTemplateName: string, options?: VirtualMachineImageTemplatesCancelOptionalParams): Promise<void>;
|
|
659
|
+
/**
|
|
660
|
+
* Get the specified run output for the specified image template resource
|
|
661
|
+
* @param resourceGroupName The name of the resource group.
|
|
662
|
+
* @param imageTemplateName The name of the image Template
|
|
663
|
+
* @param runOutputName The name of the run output
|
|
664
|
+
* @param options The options parameters.
|
|
665
|
+
*/
|
|
666
|
+
getRunOutput(resourceGroupName: string, imageTemplateName: string, runOutputName: string, options?: VirtualMachineImageTemplatesGetRunOutputOptionalParams): Promise<VirtualMachineImageTemplatesGetRunOutputResponse>;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
/** Optional parameters. */
|
|
670
|
+
export declare interface VirtualMachineImageTemplatesCancelOptionalParams extends coreClient.OperationOptions {
|
|
671
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
672
|
+
updateIntervalInMs?: number;
|
|
673
|
+
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
|
|
674
|
+
resumeFrom?: string;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
/** Optional parameters. */
|
|
678
|
+
export declare interface VirtualMachineImageTemplatesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
|
|
679
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
680
|
+
updateIntervalInMs?: number;
|
|
681
|
+
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
|
|
682
|
+
resumeFrom?: string;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
/** Contains response data for the createOrUpdate operation. */
|
|
686
|
+
export declare type VirtualMachineImageTemplatesCreateOrUpdateResponse = ImageTemplate;
|
|
687
|
+
|
|
688
|
+
/** Optional parameters. */
|
|
689
|
+
export declare interface VirtualMachineImageTemplatesDeleteOptionalParams extends coreClient.OperationOptions {
|
|
690
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
691
|
+
updateIntervalInMs?: number;
|
|
692
|
+
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
|
|
693
|
+
resumeFrom?: string;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
/** Optional parameters. */
|
|
697
|
+
export declare interface VirtualMachineImageTemplatesGetOptionalParams extends coreClient.OperationOptions {
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
/** Contains response data for the get operation. */
|
|
701
|
+
export declare type VirtualMachineImageTemplatesGetResponse = ImageTemplate;
|
|
702
|
+
|
|
703
|
+
/** Optional parameters. */
|
|
704
|
+
export declare interface VirtualMachineImageTemplatesGetRunOutputOptionalParams extends coreClient.OperationOptions {
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
/** Contains response data for the getRunOutput operation. */
|
|
708
|
+
export declare type VirtualMachineImageTemplatesGetRunOutputResponse = RunOutput;
|
|
709
|
+
|
|
710
|
+
/** Optional parameters. */
|
|
711
|
+
export declare interface VirtualMachineImageTemplatesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
/** Contains response data for the listByResourceGroupNext operation. */
|
|
715
|
+
export declare type VirtualMachineImageTemplatesListByResourceGroupNextResponse = ImageTemplateListResult;
|
|
716
|
+
|
|
717
|
+
/** Optional parameters. */
|
|
718
|
+
export declare interface VirtualMachineImageTemplatesListByResourceGroupOptionalParams extends coreClient.OperationOptions {
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
/** Contains response data for the listByResourceGroup operation. */
|
|
722
|
+
export declare type VirtualMachineImageTemplatesListByResourceGroupResponse = ImageTemplateListResult;
|
|
723
|
+
|
|
724
|
+
/** Optional parameters. */
|
|
725
|
+
export declare interface VirtualMachineImageTemplatesListNextOptionalParams extends coreClient.OperationOptions {
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
/** Contains response data for the listNext operation. */
|
|
729
|
+
export declare type VirtualMachineImageTemplatesListNextResponse = ImageTemplateListResult;
|
|
730
|
+
|
|
731
|
+
/** Optional parameters. */
|
|
732
|
+
export declare interface VirtualMachineImageTemplatesListOptionalParams extends coreClient.OperationOptions {
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
/** Contains response data for the list operation. */
|
|
736
|
+
export declare type VirtualMachineImageTemplatesListResponse = ImageTemplateListResult;
|
|
737
|
+
|
|
738
|
+
/** Optional parameters. */
|
|
739
|
+
export declare interface VirtualMachineImageTemplatesListRunOutputsNextOptionalParams extends coreClient.OperationOptions {
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
/** Contains response data for the listRunOutputsNext operation. */
|
|
743
|
+
export declare type VirtualMachineImageTemplatesListRunOutputsNextResponse = RunOutputCollection;
|
|
744
|
+
|
|
745
|
+
/** Optional parameters. */
|
|
746
|
+
export declare interface VirtualMachineImageTemplatesListRunOutputsOptionalParams extends coreClient.OperationOptions {
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
/** Contains response data for the listRunOutputs operation. */
|
|
750
|
+
export declare type VirtualMachineImageTemplatesListRunOutputsResponse = RunOutputCollection;
|
|
751
|
+
|
|
752
|
+
/** Optional parameters. */
|
|
753
|
+
export declare interface VirtualMachineImageTemplatesRunOptionalParams extends coreClient.OperationOptions {
|
|
754
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
755
|
+
updateIntervalInMs?: number;
|
|
756
|
+
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
|
|
757
|
+
resumeFrom?: string;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
/** Optional parameters. */
|
|
761
|
+
export declare interface VirtualMachineImageTemplatesUpdateOptionalParams extends coreClient.OperationOptions {
|
|
762
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
763
|
+
updateIntervalInMs?: number;
|
|
764
|
+
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
|
|
765
|
+
resumeFrom?: string;
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
/** Contains response data for the update operation. */
|
|
769
|
+
export declare type VirtualMachineImageTemplatesUpdateResponse = ImageTemplate;
|
|
770
|
+
|
|
771
|
+
/** Virtual Network configuration. */
|
|
772
|
+
export declare interface VirtualNetworkConfig {
|
|
773
|
+
/** Resource id of a pre-existing subnet. */
|
|
774
|
+
subnetId?: string;
|
|
775
|
+
/** Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default (Standard_D1_v2 for Gen1 images and Standard_D2ds_v4 for Gen2 images). */
|
|
776
|
+
proxyVmSize?: string;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
export { }
|