@azure/arm-imagebuilder 1.0.0 → 1.0.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.
package/CHANGELOG.md CHANGED
@@ -1,4 +1,10 @@
1
1
  # Release History
2
+
3
+ ## 1.0.1 (2022-01-11)
4
+
5
+ **Feature**
6
+
7
+ - Bump version
2
8
 
3
9
  ## 1.0.0 (2022-01-10)
4
10
 
package/dist/index.js CHANGED
@@ -2245,7 +2245,7 @@ class ImageBuilderClient extends coreClient.ServiceClient {
2245
2245
  requestContentType: "application/json; charset=utf-8",
2246
2246
  credential: credentials
2247
2247
  };
2248
- const packageDetails = `azsdk-js-arm-imagebuilder/1.0.0`;
2248
+ const packageDetails = `azsdk-js-arm-imagebuilder/1.0.1`;
2249
2249
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
2250
2250
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
2251
2251
  : `${packageDetails}`;
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/models/index.ts","../src/models/mappers.ts","../src/models/parameters.ts","../src/lroImpl.ts","../src/operations/virtualMachineImageTemplates.ts","../src/operations/operations.ts","../src/imageBuilderClient.ts"],"sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\nexport type ImageTemplateSourceUnion =\n | ImageTemplateSource\n | ImageTemplatePlatformImageSource\n | ImageTemplateManagedImageSource\n | ImageTemplateSharedImageVersionSource;\nexport type ImageTemplateCustomizerUnion =\n | ImageTemplateCustomizer\n | ImageTemplateShellCustomizer\n | ImageTemplateRestartCustomizer\n | ImageTemplateWindowsUpdateCustomizer\n | ImageTemplatePowerShellCustomizer\n | ImageTemplateFileCustomizer;\nexport type ImageTemplateDistributorUnion =\n | ImageTemplateDistributor\n | ImageTemplateManagedImageDistributor\n | ImageTemplateSharedImageDistributor\n | ImageTemplateVhdDistributor;\n\n/** The result of List image templates operation */\nexport interface ImageTemplateListResult {\n /** An array of image templates */\n value?: ImageTemplate[];\n /** The continuation token. */\n nextLink?: string;\n}\n\n/** Describes a virtual machine image source for building, customizing and distributing */\nexport interface ImageTemplateSource {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n type: \"PlatformImage\" | \"ManagedImage\" | \"SharedImageVersion\";\n}\n\n/** Describes a unit of image customization */\nexport interface ImageTemplateCustomizer {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n type: \"Shell\" | \"WindowsRestart\" | \"WindowsUpdate\" | \"PowerShell\" | \"File\";\n /** Friendly Name to provide context on what this customization step does */\n name?: string;\n}\n\n/** Generic distribution object */\nexport interface ImageTemplateDistributor {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n type: \"ManagedImage\" | \"SharedImage\" | \"VHD\";\n /** The name to be used for the associated RunOutput. */\n runOutputName: string;\n /** Tags that will be applied to the artifact once it has been created/updated by the distributor. */\n artifactTags?: { [propertyName: string]: string };\n}\n\n/** Describes the error happened when create or update an image template */\nexport interface ProvisioningError {\n /** Error code of the provisioning failure */\n provisioningErrorCode?: ProvisioningErrorCode;\n /** Verbose error message about the provisioning failure */\n message?: string;\n}\n\n/** Describes the latest status of running an image template */\nexport interface ImageTemplateLastRunStatus {\n /** Start time of the last run (UTC) */\n startTime?: Date;\n /** End time of the last run (UTC) */\n endTime?: Date;\n /** State of the last run */\n runState?: RunState;\n /** Sub-state of the last run */\n runSubState?: RunSubState;\n /** Verbose information about the last run state */\n message?: string;\n}\n\n/** Describes the virtual machine used to build, customize and capture images */\nexport interface ImageTemplateVmProfile {\n /** Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default (Standard_D2ds_v4). */\n vmSize?: string;\n /** Size of the OS disk in GB. Omit or specify 0 to use Azure's default OS disk size. */\n osDiskSizeGB?: number;\n /** 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. */\n userAssignedIdentities?: string[];\n /** 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. */\n vnetConfig?: VirtualNetworkConfig;\n}\n\n/** Virtual Network configuration. */\nexport interface VirtualNetworkConfig {\n /** Resource id of a pre-existing subnet. */\n subnetId?: string;\n /** 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). */\n proxyVmSize?: string;\n}\n\n/** Identity for the image template. */\nexport interface ImageTemplateIdentity {\n /** The type of identity used for the image template. The type 'None' will remove any identities from the image template. */\n type?: ResourceIdentityType;\n /** 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}'. */\n userAssignedIdentities?: {\n [propertyName: string]: ComponentsVrq145SchemasImagetemplateidentityPropertiesUserassignedidentitiesAdditionalproperties;\n };\n}\n\nexport interface ComponentsVrq145SchemasImagetemplateidentityPropertiesUserassignedidentitiesAdditionalproperties {\n /**\n * The principal id of user assigned identity.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly principalId?: string;\n /**\n * The client id of user assigned identity.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly clientId?: string;\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\n /**\n * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * The name of the resource\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\"\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n}\n\n/** An error response from the Azure VM Image Builder service. */\nexport interface CloudError {\n /** Details about the error. */\n error?: CloudErrorBody;\n}\n\n/** An error response from the Azure VM Image Builder service. */\nexport interface CloudErrorBody {\n /** An identifier for the error. Codes are invariant and are intended to be consumed programmatically. */\n code?: string;\n /** A message describing the error, intended to be suitable for display in a user interface. */\n message?: string;\n /** The target of the particular error. For example, the name of the property in error. */\n target?: string;\n /** A list of additional details about the error. */\n details?: CloudErrorBody[];\n}\n\n/** Parameters for updating an image template. */\nexport interface ImageTemplateUpdateParameters {\n /** The identity of the image template, if configured. */\n identity?: ImageTemplateIdentity;\n /** The user-specified tags associated with the image template. */\n tags?: { [propertyName: string]: string };\n}\n\n/** The result of List run outputs operation */\nexport interface RunOutputCollection {\n /** An array of run outputs */\n value?: RunOutput[];\n /** The continuation token. */\n nextLink?: string;\n}\n\n/** The Sub Resource model definition. */\nexport interface SubResource {\n /**\n * Resource Id\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /** Resource name */\n name: string;\n /**\n * Resource type\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n}\n\n/** 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. */\nexport interface OperationListResult {\n /** The list of operations supported by the resource provider. */\n value?: Operation[];\n /** The URL to get the next set of operation list results if there are any. */\n nextLink?: string;\n}\n\n/** A REST API operation */\nexport interface Operation {\n /** This is of the format {provider}/{resource}/{operation} */\n name?: string;\n /** The object that describes the operation. */\n display?: OperationDisplay;\n /** The intended executor of the operation. */\n origin?: string;\n /** Any object */\n properties?: Record<string, unknown>;\n /** The flag that indicates whether the operation applies to data plane. */\n isDataAction?: boolean;\n}\n\n/** The object that describes the operation. */\nexport interface OperationDisplay {\n /** Friendly name of the resource provider. */\n provider?: string;\n /** For example: read, write, delete, or listKeys/action */\n operation?: string;\n /** The resource type on which the operation is performed. */\n resource?: string;\n /** The friendly name of the operation */\n description?: string;\n}\n\n/** Purchase plan configuration for platform image. */\nexport interface PlatformImagePurchasePlan {\n /** Name of the purchase plan. */\n planName: string;\n /** Product of the purchase plan. */\n planProduct: string;\n /** Publisher of the purchase plan. */\n planPublisher: string;\n}\n\n/** Describes an image source from [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). */\nexport type ImageTemplatePlatformImageSource = ImageTemplateSource & {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n type: \"PlatformImage\";\n /** Image Publisher in [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). */\n publisher?: string;\n /** Image offer from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). */\n offer?: string;\n /** Image sku from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). */\n sku?: string;\n /** 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. */\n version?: string;\n /**\n * 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'.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly exactVersion?: string;\n /** Optional configuration of purchase plan for platform image. */\n planInfo?: PlatformImagePurchasePlan;\n};\n\n/** Describes an image source that is a managed image in customer subscription. */\nexport type ImageTemplateManagedImageSource = ImageTemplateSource & {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n type: \"ManagedImage\";\n /** ARM resource id of the managed image in customer subscription */\n imageId: string;\n};\n\n/** Describes an image source that is an image version in a shared image gallery. */\nexport type ImageTemplateSharedImageVersionSource = ImageTemplateSource & {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n type: \"SharedImageVersion\";\n /** ARM resource id of the image version in the shared image gallery */\n imageVersionId: string;\n};\n\n/** Runs a shell script during the customization phase (Linux). Corresponds to Packer shell provisioner. Exactly one of 'scriptUri' or 'inline' can be specified. */\nexport type ImageTemplateShellCustomizer = ImageTemplateCustomizer & {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n type: \"Shell\";\n /** URI of the shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc */\n scriptUri?: string;\n /** SHA256 checksum of the shell script provided in the scriptUri field */\n sha256Checksum?: string;\n /** Array of shell commands to execute */\n inline?: string[];\n};\n\n/** Reboots a VM and waits for it to come back online (Windows). Corresponds to Packer windows-restart provisioner */\nexport type ImageTemplateRestartCustomizer = ImageTemplateCustomizer & {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n type: \"WindowsRestart\";\n /** Command to execute the restart [Default: 'shutdown /r /f /t 0 /c \"packer restart\"'] */\n restartCommand?: string;\n /** Command to check if restart succeeded [Default: ''] */\n restartCheckCommand?: string;\n /** Restart timeout specified as a string of magnitude and unit, e.g. '5m' (5 minutes) or '2h' (2 hours) [Default: '5m'] */\n restartTimeout?: string;\n};\n\n/** Installs Windows Updates. Corresponds to Packer Windows Update Provisioner (https://github.com/rgl/packer-provisioner-windows-update) */\nexport type ImageTemplateWindowsUpdateCustomizer = ImageTemplateCustomizer & {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n type: \"WindowsUpdate\";\n /** 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. */\n searchCriteria?: string;\n /** 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. */\n filters?: string[];\n /** Maximum number of updates to apply at a time. Omit or specify 0 to use the default (1000) */\n updateLimit?: number;\n};\n\n/** Runs the specified PowerShell on the VM (Windows). Corresponds to Packer powershell provisioner. Exactly one of 'scriptUri' or 'inline' can be specified. */\nexport type ImageTemplatePowerShellCustomizer = ImageTemplateCustomizer & {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n type: \"PowerShell\";\n /** URI of the PowerShell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc */\n scriptUri?: string;\n /** SHA256 checksum of the power shell script provided in the scriptUri field above */\n sha256Checksum?: string;\n /** Array of PowerShell commands to execute */\n inline?: string[];\n /** If specified, the PowerShell script will be run with elevated privileges */\n runElevated?: boolean;\n /** 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. */\n runAsSystem?: boolean;\n /** Valid exit codes for the PowerShell script. [Default: 0] */\n validExitCodes?: number[];\n};\n\n/** Uploads files to VMs (Linux, Windows). Corresponds to Packer file provisioner */\nexport type ImageTemplateFileCustomizer = ImageTemplateCustomizer & {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n type: \"File\";\n /** The URI of the file to be uploaded for customizing the VM. It can be a github link, SAS URI for Azure Storage, etc */\n sourceUri?: string;\n /** SHA256 checksum of the file provided in the sourceUri field above */\n sha256Checksum?: string;\n /** The absolute path to a file (with nested directory structures already created) where the file (from sourceUri) will be uploaded to in the VM */\n destination?: string;\n};\n\n/** Distribute as a Managed Disk Image. */\nexport type ImageTemplateManagedImageDistributor = ImageTemplateDistributor & {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n type: \"ManagedImage\";\n /** Resource Id of the Managed Disk Image */\n imageId: string;\n /** Azure location for the image, should match if image already exists */\n location: string;\n};\n\n/** Distribute via Shared Image Gallery. */\nexport type ImageTemplateSharedImageDistributor = ImageTemplateDistributor & {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n type: \"SharedImage\";\n /** Resource Id of the Shared Image Gallery image */\n galleryImageId: string;\n /** A list of regions that the image will be replicated to */\n replicationRegions: string[];\n /** Flag that indicates whether created image version should be excluded from latest. Omit to use the default (false). */\n excludeFromLatest?: boolean;\n /** Storage account type to be used to store the shared image. Omit to use the default (Standard_LRS). */\n storageAccountType?: SharedImageStorageAccountType;\n};\n\n/** Distribute via VHD in a storage account. */\nexport type ImageTemplateVhdDistributor = ImageTemplateDistributor & {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n type: \"VHD\";\n};\n\n/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */\nexport type TrackedResource = Resource & {\n /** Resource tags. */\n tags?: { [propertyName: string]: string };\n /** The geo-location where the resource lives */\n location: string;\n};\n\n/** Represents an output that was created by running an image template. */\nexport type RunOutput = SubResource & {\n /** The resource id of the artifact. */\n artifactId?: string;\n /** The location URI of the artifact. */\n artifactUri?: string;\n /**\n * Provisioning state of the resource\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly provisioningState?: ProvisioningState;\n};\n\n/** Image template is an ARM resource managed by Microsoft.VirtualMachineImages provider */\nexport type ImageTemplate = TrackedResource & {\n /** The identity of the image template, if configured. */\n identity: ImageTemplateIdentity;\n /**\n * Metadata pertaining to creation and last modification of the resource.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly systemData?: SystemData;\n /** Specifies the properties used to describe the source image. */\n source?: ImageTemplateSourceUnion;\n /** Specifies the properties used to describe the customization steps of the image, like Image source etc */\n customize?: ImageTemplateCustomizerUnion[];\n /** The distribution targets where the image output needs to go to. */\n distribute?: ImageTemplateDistributorUnion[];\n /**\n * Provisioning state of the resource\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly provisioningState?: ProvisioningState;\n /**\n * Provisioning error, if any\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly provisioningError?: ProvisioningError;\n /**\n * State of 'run' that is currently executing or was last executed.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly lastRunStatus?: ImageTemplateLastRunStatus;\n /** Maximum duration to wait while building the image template. Omit or specify 0 to use the default (4 hours). */\n buildTimeoutInMinutes?: number;\n /** Describes how virtual machine is set up to build images */\n vmProfile?: ImageTemplateVmProfile;\n};\n\n/** Known values of {@link ProvisioningErrorCode} that the service accepts. */\nexport enum KnownProvisioningErrorCode {\n BadSourceType = \"BadSourceType\",\n BadPIRSource = \"BadPIRSource\",\n BadManagedImageSource = \"BadManagedImageSource\",\n BadSharedImageVersionSource = \"BadSharedImageVersionSource\",\n BadCustomizerType = \"BadCustomizerType\",\n UnsupportedCustomizerType = \"UnsupportedCustomizerType\",\n NoCustomizerScript = \"NoCustomizerScript\",\n BadDistributeType = \"BadDistributeType\",\n BadSharedImageDistribute = \"BadSharedImageDistribute\",\n ServerError = \"ServerError\",\n Other = \"Other\"\n}\n\n/**\n * Defines values for ProvisioningErrorCode. \\\n * {@link KnownProvisioningErrorCode} can be used interchangeably with ProvisioningErrorCode,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **BadSourceType** \\\n * **BadPIRSource** \\\n * **BadManagedImageSource** \\\n * **BadSharedImageVersionSource** \\\n * **BadCustomizerType** \\\n * **UnsupportedCustomizerType** \\\n * **NoCustomizerScript** \\\n * **BadDistributeType** \\\n * **BadSharedImageDistribute** \\\n * **ServerError** \\\n * **Other**\n */\nexport type ProvisioningErrorCode = string;\n\n/** Known values of {@link CreatedByType} that the service accepts. */\nexport enum KnownCreatedByType {\n User = \"User\",\n Application = \"Application\",\n ManagedIdentity = \"ManagedIdentity\",\n Key = \"Key\"\n}\n\n/**\n * Defines values for CreatedByType. \\\n * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User** \\\n * **Application** \\\n * **ManagedIdentity** \\\n * **Key**\n */\nexport type CreatedByType = string;\n\n/** Known values of {@link SharedImageStorageAccountType} that the service accepts. */\nexport enum KnownSharedImageStorageAccountType {\n StandardLRS = \"Standard_LRS\",\n StandardZRS = \"Standard_ZRS\"\n}\n\n/**\n * Defines values for SharedImageStorageAccountType. \\\n * {@link KnownSharedImageStorageAccountType} can be used interchangeably with SharedImageStorageAccountType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Standard_LRS** \\\n * **Standard_ZRS**\n */\nexport type SharedImageStorageAccountType = string;\n/** Defines values for ProvisioningState. */\nexport type ProvisioningState =\n | \"Creating\"\n | \"Updating\"\n | \"Succeeded\"\n | \"Failed\"\n | \"Deleting\";\n/** Defines values for RunState. */\nexport type RunState =\n | \"Running\"\n | \"Canceling\"\n | \"Succeeded\"\n | \"PartiallySucceeded\"\n | \"Failed\"\n | \"Canceled\";\n/** Defines values for RunSubState. */\nexport type RunSubState =\n | \"Queued\"\n | \"Building\"\n | \"Customizing\"\n | \"Distributing\";\n/** Defines values for ResourceIdentityType. */\nexport type ResourceIdentityType = \"UserAssigned\" | \"None\";\n\n/** Optional parameters. */\nexport interface VirtualMachineImageTemplatesListOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type VirtualMachineImageTemplatesListResponse = ImageTemplateListResult;\n\n/** Optional parameters. */\nexport interface VirtualMachineImageTemplatesListByResourceGroupOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listByResourceGroup operation. */\nexport type VirtualMachineImageTemplatesListByResourceGroupResponse = ImageTemplateListResult;\n\n/** Optional parameters. */\nexport interface VirtualMachineImageTemplatesCreateOrUpdateOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Contains response data for the createOrUpdate operation. */\nexport type VirtualMachineImageTemplatesCreateOrUpdateResponse = ImageTemplate;\n\n/** Optional parameters. */\nexport interface VirtualMachineImageTemplatesUpdateOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Contains response data for the update operation. */\nexport type VirtualMachineImageTemplatesUpdateResponse = ImageTemplate;\n\n/** Optional parameters. */\nexport interface VirtualMachineImageTemplatesGetOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type VirtualMachineImageTemplatesGetResponse = ImageTemplate;\n\n/** Optional parameters. */\nexport interface VirtualMachineImageTemplatesDeleteOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Optional parameters. */\nexport interface VirtualMachineImageTemplatesRunOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Optional parameters. */\nexport interface VirtualMachineImageTemplatesCancelOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Optional parameters. */\nexport interface VirtualMachineImageTemplatesListRunOutputsOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listRunOutputs operation. */\nexport type VirtualMachineImageTemplatesListRunOutputsResponse = RunOutputCollection;\n\n/** Optional parameters. */\nexport interface VirtualMachineImageTemplatesGetRunOutputOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the getRunOutput operation. */\nexport type VirtualMachineImageTemplatesGetRunOutputResponse = RunOutput;\n\n/** Optional parameters. */\nexport interface VirtualMachineImageTemplatesListNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listNext operation. */\nexport type VirtualMachineImageTemplatesListNextResponse = ImageTemplateListResult;\n\n/** Optional parameters. */\nexport interface VirtualMachineImageTemplatesListByResourceGroupNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listByResourceGroupNext operation. */\nexport type VirtualMachineImageTemplatesListByResourceGroupNextResponse = ImageTemplateListResult;\n\n/** Optional parameters. */\nexport interface VirtualMachineImageTemplatesListRunOutputsNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listRunOutputsNext operation. */\nexport type VirtualMachineImageTemplatesListRunOutputsNextResponse = RunOutputCollection;\n\n/** Optional parameters. */\nexport interface OperationsListOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type OperationsListResponse = OperationListResult;\n\n/** Optional parameters. */\nexport interface OperationsListNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listNext operation. */\nexport type OperationsListNextResponse = OperationListResult;\n\n/** Optional parameters. */\nexport interface ImageBuilderClientOptionalParams\n extends coreClient.ServiceClientOptions {\n /** server parameter */\n $host?: string;\n /** Api Version */\n apiVersion?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\nexport const ImageTemplateListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ImageTemplateListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ImageTemplate\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ImageTemplateSource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ImageTemplateSource\",\n uberParent: \"ImageTemplateSource\",\n polymorphicDiscriminator: {\n serializedName: \"type\",\n clientName: \"type\"\n },\n modelProperties: {\n type: {\n serializedName: \"type\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ImageTemplateCustomizer: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ImageTemplateCustomizer\",\n uberParent: \"ImageTemplateCustomizer\",\n polymorphicDiscriminator: {\n serializedName: \"type\",\n clientName: \"type\"\n },\n modelProperties: {\n type: {\n serializedName: \"type\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ImageTemplateDistributor: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ImageTemplateDistributor\",\n uberParent: \"ImageTemplateDistributor\",\n polymorphicDiscriminator: {\n serializedName: \"type\",\n clientName: \"type\"\n },\n modelProperties: {\n type: {\n serializedName: \"type\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n runOutputName: {\n constraints: {\n Pattern: new RegExp(\"^[A-Za-z0-9-_.]{1,64}$\")\n },\n serializedName: \"runOutputName\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n artifactTags: {\n serializedName: \"artifactTags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n }\n }\n }\n};\n\nexport const ProvisioningError: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ProvisioningError\",\n modelProperties: {\n provisioningErrorCode: {\n serializedName: \"provisioningErrorCode\",\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ImageTemplateLastRunStatus: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ImageTemplateLastRunStatus\",\n modelProperties: {\n startTime: {\n serializedName: \"startTime\",\n type: {\n name: \"DateTime\"\n }\n },\n endTime: {\n serializedName: \"endTime\",\n type: {\n name: \"DateTime\"\n }\n },\n runState: {\n serializedName: \"runState\",\n type: {\n name: \"Enum\",\n allowedValues: [\n \"Running\",\n \"Canceling\",\n \"Succeeded\",\n \"PartiallySucceeded\",\n \"Failed\",\n \"Canceled\"\n ]\n }\n },\n runSubState: {\n serializedName: \"runSubState\",\n type: {\n name: \"Enum\",\n allowedValues: [\"Queued\", \"Building\", \"Customizing\", \"Distributing\"]\n }\n },\n message: {\n serializedName: \"message\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ImageTemplateVmProfile: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ImageTemplateVmProfile\",\n modelProperties: {\n vmSize: {\n defaultValue: \"\",\n serializedName: \"vmSize\",\n type: {\n name: \"String\"\n }\n },\n osDiskSizeGB: {\n defaultValue: 0,\n constraints: {\n InclusiveMinimum: 0\n },\n serializedName: \"osDiskSizeGB\",\n type: {\n name: \"Number\"\n }\n },\n userAssignedIdentities: {\n serializedName: \"userAssignedIdentities\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n vnetConfig: {\n serializedName: \"vnetConfig\",\n type: {\n name: \"Composite\",\n className: \"VirtualNetworkConfig\"\n }\n }\n }\n }\n};\n\nexport const VirtualNetworkConfig: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"VirtualNetworkConfig\",\n modelProperties: {\n subnetId: {\n serializedName: \"subnetId\",\n type: {\n name: \"String\"\n }\n },\n proxyVmSize: {\n defaultValue: \"\",\n serializedName: \"proxyVmSize\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ImageTemplateIdentity: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ImageTemplateIdentity\",\n modelProperties: {\n type: {\n serializedName: \"type\",\n type: {\n name: \"Enum\",\n allowedValues: [\"UserAssigned\", \"None\"]\n }\n },\n userAssignedIdentities: {\n serializedName: \"userAssignedIdentities\",\n type: {\n name: \"Dictionary\",\n value: {\n type: {\n name: \"Composite\",\n className:\n \"ComponentsVrq145SchemasImagetemplateidentityPropertiesUserassignedidentitiesAdditionalproperties\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const ComponentsVrq145SchemasImagetemplateidentityPropertiesUserassignedidentitiesAdditionalproperties: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className:\n \"ComponentsVrq145SchemasImagetemplateidentityPropertiesUserassignedidentitiesAdditionalproperties\",\n modelProperties: {\n principalId: {\n serializedName: \"principalId\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n clientId: {\n serializedName: \"clientId\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const SystemData: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SystemData\",\n modelProperties: {\n createdBy: {\n serializedName: \"createdBy\",\n type: {\n name: \"String\"\n }\n },\n createdByType: {\n serializedName: \"createdByType\",\n type: {\n name: \"String\"\n }\n },\n createdAt: {\n serializedName: \"createdAt\",\n type: {\n name: \"DateTime\"\n }\n },\n lastModifiedBy: {\n serializedName: \"lastModifiedBy\",\n type: {\n name: \"String\"\n }\n },\n lastModifiedByType: {\n serializedName: \"lastModifiedByType\",\n type: {\n name: \"String\"\n }\n },\n lastModifiedAt: {\n serializedName: \"lastModifiedAt\",\n type: {\n name: \"DateTime\"\n }\n }\n }\n }\n};\n\nexport const Resource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Resource\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const CloudError: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CloudError\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"CloudErrorBody\"\n }\n }\n }\n }\n};\n\nexport const CloudErrorBody: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CloudErrorBody\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n type: {\n name: \"String\"\n }\n },\n target: {\n serializedName: \"target\",\n type: {\n name: \"String\"\n }\n },\n details: {\n serializedName: \"details\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"CloudErrorBody\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const ImageTemplateUpdateParameters: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ImageTemplateUpdateParameters\",\n modelProperties: {\n identity: {\n serializedName: \"identity\",\n type: {\n name: \"Composite\",\n className: \"ImageTemplateIdentity\"\n }\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n }\n }\n }\n};\n\nexport const RunOutputCollection: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"RunOutputCollection\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"RunOutput\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const SubResource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SubResource\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const OperationListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Operation\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const Operation: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Operation\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n display: {\n serializedName: \"display\",\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\"\n }\n },\n origin: {\n serializedName: \"origin\",\n type: {\n name: \"String\"\n }\n },\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n },\n isDataAction: {\n serializedName: \"isDataAction\",\n type: {\n name: \"Boolean\"\n }\n }\n }\n }\n};\n\nexport const OperationDisplay: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\",\n modelProperties: {\n provider: {\n serializedName: \"provider\",\n type: {\n name: \"String\"\n }\n },\n operation: {\n serializedName: \"operation\",\n type: {\n name: \"String\"\n }\n },\n resource: {\n serializedName: \"resource\",\n type: {\n name: \"String\"\n }\n },\n description: {\n serializedName: \"description\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const PlatformImagePurchasePlan: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"PlatformImagePurchasePlan\",\n modelProperties: {\n planName: {\n serializedName: \"planName\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n planProduct: {\n serializedName: \"planProduct\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n planPublisher: {\n serializedName: \"planPublisher\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ImageTemplatePlatformImageSource: coreClient.CompositeMapper = {\n serializedName: \"PlatformImage\",\n type: {\n name: \"Composite\",\n className: \"ImageTemplatePlatformImageSource\",\n uberParent: \"ImageTemplateSource\",\n polymorphicDiscriminator: ImageTemplateSource.type.polymorphicDiscriminator,\n modelProperties: {\n ...ImageTemplateSource.type.modelProperties,\n publisher: {\n serializedName: \"publisher\",\n type: {\n name: \"String\"\n }\n },\n offer: {\n serializedName: \"offer\",\n type: {\n name: \"String\"\n }\n },\n sku: {\n serializedName: \"sku\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"version\",\n type: {\n name: \"String\"\n }\n },\n exactVersion: {\n serializedName: \"exactVersion\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n planInfo: {\n serializedName: \"planInfo\",\n type: {\n name: \"Composite\",\n className: \"PlatformImagePurchasePlan\"\n }\n }\n }\n }\n};\n\nexport const ImageTemplateManagedImageSource: coreClient.CompositeMapper = {\n serializedName: \"ManagedImage\",\n type: {\n name: \"Composite\",\n className: \"ImageTemplateManagedImageSource\",\n uberParent: \"ImageTemplateSource\",\n polymorphicDiscriminator: ImageTemplateSource.type.polymorphicDiscriminator,\n modelProperties: {\n ...ImageTemplateSource.type.modelProperties,\n imageId: {\n serializedName: \"imageId\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ImageTemplateSharedImageVersionSource: coreClient.CompositeMapper = {\n serializedName: \"SharedImageVersion\",\n type: {\n name: \"Composite\",\n className: \"ImageTemplateSharedImageVersionSource\",\n uberParent: \"ImageTemplateSource\",\n polymorphicDiscriminator: ImageTemplateSource.type.polymorphicDiscriminator,\n modelProperties: {\n ...ImageTemplateSource.type.modelProperties,\n imageVersionId: {\n serializedName: \"imageVersionId\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ImageTemplateShellCustomizer: coreClient.CompositeMapper = {\n serializedName: \"Shell\",\n type: {\n name: \"Composite\",\n className: \"ImageTemplateShellCustomizer\",\n uberParent: \"ImageTemplateCustomizer\",\n polymorphicDiscriminator:\n ImageTemplateCustomizer.type.polymorphicDiscriminator,\n modelProperties: {\n ...ImageTemplateCustomizer.type.modelProperties,\n scriptUri: {\n serializedName: \"scriptUri\",\n type: {\n name: \"String\"\n }\n },\n sha256Checksum: {\n defaultValue: \"\",\n serializedName: \"sha256Checksum\",\n type: {\n name: \"String\"\n }\n },\n inline: {\n serializedName: \"inline\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const ImageTemplateRestartCustomizer: coreClient.CompositeMapper = {\n serializedName: \"WindowsRestart\",\n type: {\n name: \"Composite\",\n className: \"ImageTemplateRestartCustomizer\",\n uberParent: \"ImageTemplateCustomizer\",\n polymorphicDiscriminator:\n ImageTemplateCustomizer.type.polymorphicDiscriminator,\n modelProperties: {\n ...ImageTemplateCustomizer.type.modelProperties,\n restartCommand: {\n serializedName: \"restartCommand\",\n type: {\n name: \"String\"\n }\n },\n restartCheckCommand: {\n serializedName: \"restartCheckCommand\",\n type: {\n name: \"String\"\n }\n },\n restartTimeout: {\n serializedName: \"restartTimeout\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ImageTemplateWindowsUpdateCustomizer: coreClient.CompositeMapper = {\n serializedName: \"WindowsUpdate\",\n type: {\n name: \"Composite\",\n className: \"ImageTemplateWindowsUpdateCustomizer\",\n uberParent: \"ImageTemplateCustomizer\",\n polymorphicDiscriminator:\n ImageTemplateCustomizer.type.polymorphicDiscriminator,\n modelProperties: {\n ...ImageTemplateCustomizer.type.modelProperties,\n searchCriteria: {\n serializedName: \"searchCriteria\",\n type: {\n name: \"String\"\n }\n },\n filters: {\n serializedName: \"filters\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n updateLimit: {\n constraints: {\n InclusiveMinimum: 0\n },\n serializedName: \"updateLimit\",\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\n\nexport const ImageTemplatePowerShellCustomizer: coreClient.CompositeMapper = {\n serializedName: \"PowerShell\",\n type: {\n name: \"Composite\",\n className: \"ImageTemplatePowerShellCustomizer\",\n uberParent: \"ImageTemplateCustomizer\",\n polymorphicDiscriminator:\n ImageTemplateCustomizer.type.polymorphicDiscriminator,\n modelProperties: {\n ...ImageTemplateCustomizer.type.modelProperties,\n scriptUri: {\n serializedName: \"scriptUri\",\n type: {\n name: \"String\"\n }\n },\n sha256Checksum: {\n defaultValue: \"\",\n serializedName: \"sha256Checksum\",\n type: {\n name: \"String\"\n }\n },\n inline: {\n serializedName: \"inline\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n runElevated: {\n defaultValue: false,\n serializedName: \"runElevated\",\n type: {\n name: \"Boolean\"\n }\n },\n runAsSystem: {\n defaultValue: false,\n serializedName: \"runAsSystem\",\n type: {\n name: \"Boolean\"\n }\n },\n validExitCodes: {\n serializedName: \"validExitCodes\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Number\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const ImageTemplateFileCustomizer: coreClient.CompositeMapper = {\n serializedName: \"File\",\n type: {\n name: \"Composite\",\n className: \"ImageTemplateFileCustomizer\",\n uberParent: \"ImageTemplateCustomizer\",\n polymorphicDiscriminator:\n ImageTemplateCustomizer.type.polymorphicDiscriminator,\n modelProperties: {\n ...ImageTemplateCustomizer.type.modelProperties,\n sourceUri: {\n serializedName: \"sourceUri\",\n type: {\n name: \"String\"\n }\n },\n sha256Checksum: {\n defaultValue: \"\",\n serializedName: \"sha256Checksum\",\n type: {\n name: \"String\"\n }\n },\n destination: {\n serializedName: \"destination\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ImageTemplateManagedImageDistributor: coreClient.CompositeMapper = {\n serializedName: \"ManagedImage\",\n type: {\n name: \"Composite\",\n className: \"ImageTemplateManagedImageDistributor\",\n uberParent: \"ImageTemplateDistributor\",\n polymorphicDiscriminator:\n ImageTemplateDistributor.type.polymorphicDiscriminator,\n modelProperties: {\n ...ImageTemplateDistributor.type.modelProperties,\n imageId: {\n serializedName: \"imageId\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n location: {\n serializedName: \"location\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ImageTemplateSharedImageDistributor: coreClient.CompositeMapper = {\n serializedName: \"SharedImage\",\n type: {\n name: \"Composite\",\n className: \"ImageTemplateSharedImageDistributor\",\n uberParent: \"ImageTemplateDistributor\",\n polymorphicDiscriminator:\n ImageTemplateDistributor.type.polymorphicDiscriminator,\n modelProperties: {\n ...ImageTemplateDistributor.type.modelProperties,\n galleryImageId: {\n serializedName: \"galleryImageId\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n replicationRegions: {\n serializedName: \"replicationRegions\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n excludeFromLatest: {\n defaultValue: false,\n serializedName: \"excludeFromLatest\",\n type: {\n name: \"Boolean\"\n }\n },\n storageAccountType: {\n serializedName: \"storageAccountType\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ImageTemplateVhdDistributor: coreClient.CompositeMapper = {\n serializedName: \"VHD\",\n type: {\n name: \"Composite\",\n className: \"ImageTemplateVhdDistributor\",\n uberParent: \"ImageTemplateDistributor\",\n polymorphicDiscriminator:\n ImageTemplateDistributor.type.polymorphicDiscriminator,\n modelProperties: {\n ...ImageTemplateDistributor.type.modelProperties\n }\n }\n};\n\nexport const TrackedResource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TrackedResource\",\n modelProperties: {\n ...Resource.type.modelProperties,\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n location: {\n serializedName: \"location\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const RunOutput: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"RunOutput\",\n modelProperties: {\n ...SubResource.type.modelProperties,\n artifactId: {\n serializedName: \"properties.artifactId\",\n type: {\n name: \"String\"\n }\n },\n artifactUri: {\n serializedName: \"properties.artifactUri\",\n type: {\n name: \"String\"\n }\n },\n provisioningState: {\n serializedName: \"properties.provisioningState\",\n readOnly: true,\n type: {\n name: \"Enum\",\n allowedValues: [\n \"Creating\",\n \"Updating\",\n \"Succeeded\",\n \"Failed\",\n \"Deleting\"\n ]\n }\n }\n }\n }\n};\n\nexport const ImageTemplate: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ImageTemplate\",\n modelProperties: {\n ...TrackedResource.type.modelProperties,\n identity: {\n serializedName: \"identity\",\n type: {\n name: \"Composite\",\n className: \"ImageTemplateIdentity\"\n }\n },\n systemData: {\n serializedName: \"systemData\",\n type: {\n name: \"Composite\",\n className: \"SystemData\"\n }\n },\n source: {\n serializedName: \"properties.source\",\n type: {\n name: \"Composite\",\n className: \"ImageTemplateSource\"\n }\n },\n customize: {\n serializedName: \"properties.customize\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ImageTemplateCustomizer\"\n }\n }\n }\n },\n distribute: {\n serializedName: \"properties.distribute\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ImageTemplateDistributor\"\n }\n }\n }\n },\n provisioningState: {\n serializedName: \"properties.provisioningState\",\n readOnly: true,\n type: {\n name: \"Enum\",\n allowedValues: [\n \"Creating\",\n \"Updating\",\n \"Succeeded\",\n \"Failed\",\n \"Deleting\"\n ]\n }\n },\n provisioningError: {\n serializedName: \"properties.provisioningError\",\n type: {\n name: \"Composite\",\n className: \"ProvisioningError\"\n }\n },\n lastRunStatus: {\n serializedName: \"properties.lastRunStatus\",\n type: {\n name: \"Composite\",\n className: \"ImageTemplateLastRunStatus\"\n }\n },\n buildTimeoutInMinutes: {\n defaultValue: 0,\n constraints: {\n InclusiveMaximum: 960,\n InclusiveMinimum: 0\n },\n serializedName: \"properties.buildTimeoutInMinutes\",\n type: {\n name: \"Number\"\n }\n },\n vmProfile: {\n serializedName: \"properties.vmProfile\",\n type: {\n name: \"Composite\",\n className: \"ImageTemplateVmProfile\"\n }\n }\n }\n }\n};\n\nexport let discriminators = {\n ImageTemplateSource: ImageTemplateSource,\n ImageTemplateCustomizer: ImageTemplateCustomizer,\n ImageTemplateDistributor: ImageTemplateDistributor,\n \"ImageTemplateSource.PlatformImage\": ImageTemplatePlatformImageSource,\n \"ImageTemplateSource.ManagedImage\": ImageTemplateManagedImageSource,\n \"ImageTemplateSource.SharedImageVersion\": ImageTemplateSharedImageVersionSource,\n \"ImageTemplateCustomizer.Shell\": ImageTemplateShellCustomizer,\n \"ImageTemplateCustomizer.WindowsRestart\": ImageTemplateRestartCustomizer,\n \"ImageTemplateCustomizer.WindowsUpdate\": ImageTemplateWindowsUpdateCustomizer,\n \"ImageTemplateCustomizer.PowerShell\": ImageTemplatePowerShellCustomizer,\n \"ImageTemplateCustomizer.File\": ImageTemplateFileCustomizer,\n \"ImageTemplateDistributor.ManagedImage\": ImageTemplateManagedImageDistributor,\n \"ImageTemplateDistributor.SharedImage\": ImageTemplateSharedImageDistributor,\n \"ImageTemplateDistributor.VHD\": ImageTemplateVhdDistributor\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter\n} from \"@azure/core-client\";\nimport {\n ImageTemplate as ImageTemplateMapper,\n ImageTemplateUpdateParameters as ImageTemplateUpdateParametersMapper\n} from \"../models/mappers\";\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const $host: OperationURLParameter = {\n parameterPath: \"$host\",\n mapper: {\n serializedName: \"$host\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const subscriptionId: OperationURLParameter = {\n parameterPath: \"subscriptionId\",\n mapper: {\n serializedName: \"subscriptionId\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2021-10-01\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const resourceGroupName: OperationURLParameter = {\n parameterPath: \"resourceGroupName\",\n mapper: {\n serializedName: \"resourceGroupName\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const parameters: OperationParameter = {\n parameterPath: \"parameters\",\n mapper: ImageTemplateMapper\n};\n\nexport const imageTemplateName: OperationURLParameter = {\n parameterPath: \"imageTemplateName\",\n mapper: {\n constraints: {\n Pattern: new RegExp(\"^[A-Za-z0-9-_.]{1,64}$\")\n },\n serializedName: \"imageTemplateName\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const parameters1: OperationParameter = {\n parameterPath: \"parameters\",\n mapper: ImageTemplateUpdateParametersMapper\n};\n\nexport const runOutputName: OperationURLParameter = {\n parameterPath: \"runOutputName\",\n mapper: {\n constraints: {\n Pattern: new RegExp(\"^[A-Za-z0-9-_.]{1,64}$\")\n },\n serializedName: \"runOutputName\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const nextLink: OperationURLParameter = {\n parameterPath: \"nextLink\",\n mapper: {\n serializedName: \"nextLink\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport class LroImpl<T> implements LongRunningOperation<T> {\n constructor(\n private sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>,\n private args: Record<string, unknown>,\n private spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>,\n public requestPath: string = spec.path!,\n public requestMethod: string = spec.httpMethod\n ) {}\n public async sendInitialRequest(): Promise<LroResponse<T>> {\n return this.sendOperationFn(this.args, this.spec);\n }\n public async sendPollRequest(path: string): Promise<LroResponse<T>> {\n const { requestBody, ...restSpec } = this.spec;\n return this.sendOperationFn(this.args, {\n ...restSpec,\n path,\n httpMethod: \"GET\"\n });\n }\n}\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { VirtualMachineImageTemplates } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { ImageBuilderClient } from \"../imageBuilderClient\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl\";\nimport {\n ImageTemplate,\n VirtualMachineImageTemplatesListNextOptionalParams,\n VirtualMachineImageTemplatesListOptionalParams,\n VirtualMachineImageTemplatesListByResourceGroupNextOptionalParams,\n VirtualMachineImageTemplatesListByResourceGroupOptionalParams,\n RunOutput,\n VirtualMachineImageTemplatesListRunOutputsNextOptionalParams,\n VirtualMachineImageTemplatesListRunOutputsOptionalParams,\n VirtualMachineImageTemplatesListResponse,\n VirtualMachineImageTemplatesListByResourceGroupResponse,\n VirtualMachineImageTemplatesCreateOrUpdateOptionalParams,\n VirtualMachineImageTemplatesCreateOrUpdateResponse,\n ImageTemplateUpdateParameters,\n VirtualMachineImageTemplatesUpdateOptionalParams,\n VirtualMachineImageTemplatesUpdateResponse,\n VirtualMachineImageTemplatesGetOptionalParams,\n VirtualMachineImageTemplatesGetResponse,\n VirtualMachineImageTemplatesDeleteOptionalParams,\n VirtualMachineImageTemplatesRunOptionalParams,\n VirtualMachineImageTemplatesCancelOptionalParams,\n VirtualMachineImageTemplatesListRunOutputsResponse,\n VirtualMachineImageTemplatesGetRunOutputOptionalParams,\n VirtualMachineImageTemplatesGetRunOutputResponse,\n VirtualMachineImageTemplatesListNextResponse,\n VirtualMachineImageTemplatesListByResourceGroupNextResponse,\n VirtualMachineImageTemplatesListRunOutputsNextResponse\n} from \"../models\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing VirtualMachineImageTemplates operations. */\nexport class VirtualMachineImageTemplatesImpl\n implements VirtualMachineImageTemplates {\n private readonly client: ImageBuilderClient;\n\n /**\n * Initialize a new instance of the class VirtualMachineImageTemplates class.\n * @param client Reference to the service client\n */\n constructor(client: ImageBuilderClient) {\n this.client = client;\n }\n\n /**\n * Gets information about the VM image templates associated with the subscription.\n * @param options The options parameters.\n */\n public list(\n options?: VirtualMachineImageTemplatesListOptionalParams\n ): PagedAsyncIterableIterator<ImageTemplate> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listPagingPage(options);\n }\n };\n }\n\n private async *listPagingPage(\n options?: VirtualMachineImageTemplatesListOptionalParams\n ): AsyncIterableIterator<ImageTemplate[]> {\n let result = await this._list(options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listPagingAll(\n options?: VirtualMachineImageTemplatesListOptionalParams\n ): AsyncIterableIterator<ImageTemplate> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets information about the VM image templates associated with the specified resource group.\n * @param resourceGroupName The name of the resource group.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: VirtualMachineImageTemplatesListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<ImageTemplate> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listByResourceGroupPagingPage(resourceGroupName, options);\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: VirtualMachineImageTemplatesListByResourceGroupOptionalParams\n ): AsyncIterableIterator<ImageTemplate[]> {\n let result = await this._listByResourceGroup(resourceGroupName, options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: VirtualMachineImageTemplatesListByResourceGroupOptionalParams\n ): AsyncIterableIterator<ImageTemplate> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * List all run outputs for the specified Image Template resource\n * @param resourceGroupName The name of the resource group.\n * @param imageTemplateName The name of the image Template\n * @param options The options parameters.\n */\n public listRunOutputs(\n resourceGroupName: string,\n imageTemplateName: string,\n options?: VirtualMachineImageTemplatesListRunOutputsOptionalParams\n ): PagedAsyncIterableIterator<RunOutput> {\n const iter = this.listRunOutputsPagingAll(\n resourceGroupName,\n imageTemplateName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listRunOutputsPagingPage(\n resourceGroupName,\n imageTemplateName,\n options\n );\n }\n };\n }\n\n private async *listRunOutputsPagingPage(\n resourceGroupName: string,\n imageTemplateName: string,\n options?: VirtualMachineImageTemplatesListRunOutputsOptionalParams\n ): AsyncIterableIterator<RunOutput[]> {\n let result = await this._listRunOutputs(\n resourceGroupName,\n imageTemplateName,\n options\n );\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listRunOutputsNext(\n resourceGroupName,\n imageTemplateName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listRunOutputsPagingAll(\n resourceGroupName: string,\n imageTemplateName: string,\n options?: VirtualMachineImageTemplatesListRunOutputsOptionalParams\n ): AsyncIterableIterator<RunOutput> {\n for await (const page of this.listRunOutputsPagingPage(\n resourceGroupName,\n imageTemplateName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets information about the VM image templates associated with the subscription.\n * @param options The options parameters.\n */\n private _list(\n options?: VirtualMachineImageTemplatesListOptionalParams\n ): Promise<VirtualMachineImageTemplatesListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Gets information about the VM image templates associated with the specified resource group.\n * @param resourceGroupName The name of the resource group.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: VirtualMachineImageTemplatesListByResourceGroupOptionalParams\n ): Promise<VirtualMachineImageTemplatesListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Create or update a virtual machine image template\n * @param resourceGroupName The name of the resource group.\n * @param imageTemplateName The name of the image Template\n * @param parameters Parameters supplied to the CreateImageTemplate operation\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n imageTemplateName: string,\n parameters: ImageTemplate,\n options?: VirtualMachineImageTemplatesCreateOrUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<VirtualMachineImageTemplatesCreateOrUpdateResponse>,\n VirtualMachineImageTemplatesCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<VirtualMachineImageTemplatesCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, imageTemplateName, parameters, options },\n createOrUpdateOperationSpec\n );\n return new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"azure-async-operation\"\n });\n }\n\n /**\n * Create or update a virtual machine image template\n * @param resourceGroupName The name of the resource group.\n * @param imageTemplateName The name of the image Template\n * @param parameters Parameters supplied to the CreateImageTemplate operation\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n imageTemplateName: string,\n parameters: ImageTemplate,\n options?: VirtualMachineImageTemplatesCreateOrUpdateOptionalParams\n ): Promise<VirtualMachineImageTemplatesCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n imageTemplateName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update the tags for this Virtual Machine Image Template\n * @param resourceGroupName The name of the resource group.\n * @param imageTemplateName The name of the image Template\n * @param parameters Additional parameters for Image Template update.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n imageTemplateName: string,\n parameters: ImageTemplateUpdateParameters,\n options?: VirtualMachineImageTemplatesUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<VirtualMachineImageTemplatesUpdateResponse>,\n VirtualMachineImageTemplatesUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<VirtualMachineImageTemplatesUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, imageTemplateName, parameters, options },\n updateOperationSpec\n );\n return new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"azure-async-operation\"\n });\n }\n\n /**\n * Update the tags for this Virtual Machine Image Template\n * @param resourceGroupName The name of the resource group.\n * @param imageTemplateName The name of the image Template\n * @param parameters Additional parameters for Image Template update.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n imageTemplateName: string,\n parameters: ImageTemplateUpdateParameters,\n options?: VirtualMachineImageTemplatesUpdateOptionalParams\n ): Promise<VirtualMachineImageTemplatesUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n imageTemplateName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get information about a virtual machine image template\n * @param resourceGroupName The name of the resource group.\n * @param imageTemplateName The name of the image Template\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n imageTemplateName: string,\n options?: VirtualMachineImageTemplatesGetOptionalParams\n ): Promise<VirtualMachineImageTemplatesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, imageTemplateName, options },\n getOperationSpec\n );\n }\n\n /**\n * Delete a virtual machine image template\n * @param resourceGroupName The name of the resource group.\n * @param imageTemplateName The name of the image Template\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n imageTemplateName: string,\n options?: VirtualMachineImageTemplatesDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, imageTemplateName, options },\n deleteOperationSpec\n );\n return new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"azure-async-operation\"\n });\n }\n\n /**\n * Delete a virtual machine image template\n * @param resourceGroupName The name of the resource group.\n * @param imageTemplateName The name of the image Template\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n imageTemplateName: string,\n options?: VirtualMachineImageTemplatesDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n imageTemplateName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Create artifacts from a existing image template\n * @param resourceGroupName The name of the resource group.\n * @param imageTemplateName The name of the image Template\n * @param options The options parameters.\n */\n async beginRun(\n resourceGroupName: string,\n imageTemplateName: string,\n options?: VirtualMachineImageTemplatesRunOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, imageTemplateName, options },\n runOperationSpec\n );\n return new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"azure-async-operation\"\n });\n }\n\n /**\n * Create artifacts from a existing image template\n * @param resourceGroupName The name of the resource group.\n * @param imageTemplateName The name of the image Template\n * @param options The options parameters.\n */\n async beginRunAndWait(\n resourceGroupName: string,\n imageTemplateName: string,\n options?: VirtualMachineImageTemplatesRunOptionalParams\n ): Promise<void> {\n const poller = await this.beginRun(\n resourceGroupName,\n imageTemplateName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Cancel the long running image build based on the image template\n * @param resourceGroupName The name of the resource group.\n * @param imageTemplateName The name of the image Template\n * @param options The options parameters.\n */\n async beginCancel(\n resourceGroupName: string,\n imageTemplateName: string,\n options?: VirtualMachineImageTemplatesCancelOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, imageTemplateName, options },\n cancelOperationSpec\n );\n return new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"azure-async-operation\"\n });\n }\n\n /**\n * Cancel the long running image build based on the image template\n * @param resourceGroupName The name of the resource group.\n * @param imageTemplateName The name of the image Template\n * @param options The options parameters.\n */\n async beginCancelAndWait(\n resourceGroupName: string,\n imageTemplateName: string,\n options?: VirtualMachineImageTemplatesCancelOptionalParams\n ): Promise<void> {\n const poller = await this.beginCancel(\n resourceGroupName,\n imageTemplateName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * List all run outputs for the specified Image Template resource\n * @param resourceGroupName The name of the resource group.\n * @param imageTemplateName The name of the image Template\n * @param options The options parameters.\n */\n private _listRunOutputs(\n resourceGroupName: string,\n imageTemplateName: string,\n options?: VirtualMachineImageTemplatesListRunOutputsOptionalParams\n ): Promise<VirtualMachineImageTemplatesListRunOutputsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, imageTemplateName, options },\n listRunOutputsOperationSpec\n );\n }\n\n /**\n * Get the specified run output for the specified image template resource\n * @param resourceGroupName The name of the resource group.\n * @param imageTemplateName The name of the image Template\n * @param runOutputName The name of the run output\n * @param options The options parameters.\n */\n getRunOutput(\n resourceGroupName: string,\n imageTemplateName: string,\n runOutputName: string,\n options?: VirtualMachineImageTemplatesGetRunOutputOptionalParams\n ): Promise<VirtualMachineImageTemplatesGetRunOutputResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, imageTemplateName, runOutputName, options },\n getRunOutputOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: VirtualMachineImageTemplatesListNextOptionalParams\n ): Promise<VirtualMachineImageTemplatesListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: VirtualMachineImageTemplatesListByResourceGroupNextOptionalParams\n ): Promise<VirtualMachineImageTemplatesListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec\n );\n }\n\n /**\n * ListRunOutputsNext\n * @param resourceGroupName The name of the resource group.\n * @param imageTemplateName The name of the image Template\n * @param nextLink The nextLink from the previous successful call to the ListRunOutputs method.\n * @param options The options parameters.\n */\n private _listRunOutputsNext(\n resourceGroupName: string,\n imageTemplateName: string,\n nextLink: string,\n options?: VirtualMachineImageTemplatesListRunOutputsNextOptionalParams\n ): Promise<VirtualMachineImageTemplatesListRunOutputsNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, imageTemplateName, nextLink, options },\n listRunOutputsNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.VirtualMachineImages/imageTemplates\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImageTemplateListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImageTemplateListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImageTemplate\n },\n 201: {\n bodyMapper: Mappers.ImageTemplate\n },\n 202: {\n bodyMapper: Mappers.ImageTemplate\n },\n 204: {\n bodyMapper: Mappers.ImageTemplate\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.imageTemplateName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImageTemplate\n },\n 201: {\n bodyMapper: Mappers.ImageTemplate\n },\n 202: {\n bodyMapper: Mappers.ImageTemplate\n },\n 204: {\n bodyMapper: Mappers.ImageTemplate\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.imageTemplateName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImageTemplate\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.imageTemplateName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.imageTemplateName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst runOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}/run\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.imageTemplateName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst cancelOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}/cancel\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.imageTemplateName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listRunOutputsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}/runOutputs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RunOutputCollection\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.imageTemplateName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getRunOutputOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}/runOutputs/{runOutputName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RunOutput\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.imageTemplateName,\n Parameters.runOutputName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImageTemplateListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImageTemplateListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listRunOutputsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RunOutputCollection\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.imageTemplateName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { Operations } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { ImageBuilderClient } from \"../imageBuilderClient\";\nimport {\n Operation,\n OperationsListNextOptionalParams,\n OperationsListOptionalParams,\n OperationsListResponse,\n OperationsListNextResponse\n} from \"../models\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: ImageBuilderClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: ImageBuilderClient) {\n this.client = client;\n }\n\n /**\n * Lists available operations for the Microsoft.VirtualMachineImages provider\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listPagingPage(options);\n }\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams\n ): AsyncIterableIterator<Operation[]> {\n let result = await this._list(options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists available operations for the Microsoft.VirtualMachineImages provider\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: OperationsListNextOptionalParams\n ): Promise<OperationsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.VirtualMachineImages/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport { VirtualMachineImageTemplatesImpl, OperationsImpl } from \"./operations\";\nimport {\n VirtualMachineImageTemplates,\n Operations\n} from \"./operationsInterfaces\";\nimport { ImageBuilderClientOptionalParams } from \"./models\";\n\nexport class ImageBuilderClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the ImageBuilderClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription.\n * The subscription Id forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: ImageBuilderClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ImageBuilderClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-imagebuilder/1.0.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n if (!options.credentialScopes) {\n options.credentialScopes = [\"https://management.azure.com/.default\"];\n }\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n baseUri: options.endpoint || \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2021-10-01\";\n this.virtualMachineImageTemplates = new VirtualMachineImageTemplatesImpl(\n this\n );\n this.operations = new OperationsImpl(this);\n }\n\n virtualMachineImageTemplates: VirtualMachineImageTemplates;\n operations: Operations;\n}\n"],"names":["KnownProvisioningErrorCode","KnownCreatedByType","KnownSharedImageStorageAccountType","ImageTemplateMapper","ImageTemplateUpdateParametersMapper","__asyncValues","__asyncDelegator","LroEngine","coreClient.createSerializer","Mappers.ImageTemplateListResult","Mappers.CloudError","Parameters.apiVersion","Parameters.$host","Parameters.subscriptionId","Parameters.accept","Parameters.resourceGroupName","Mappers.ImageTemplate","Parameters.parameters","Parameters.imageTemplateName","Parameters.contentType","Parameters.parameters1","Mappers.RunOutputCollection","Mappers.RunOutput","Parameters.runOutputName","Parameters.nextLink","listOperationSpec","listNextOperationSpec","serializer","Mappers.OperationListResult","coreClient.ServiceClient"],"mappings":";;;;;;;;AAAA;;;;;;;AA6bA,WAAY,0BAA0B;IACpC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ChC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;SACpD;;QAGD,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QACD,MAAM,QAAQ,GAAqC;YACjD,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,iCAAiC,CAAC;QACzD,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;cAChE,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;cAC/D,GAAG,cAAc,EAAE,CAAC;QAE1B,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE;YAC7B,OAAO,CAAC,gBAAgB,GAAG,CAAC,uCAAuC,CAAC,CAAC;SACtE;QACD,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB,EACD,OAAO,EAAE,OAAO,CAAC,QAAQ,IAAI,8BAA8B,GAC5D,CAAC;QACF,KAAK,CAAC,mBAAmB,CAAC,CAAC;;QAE3B,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;;QAGrC,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,8BAA8B,CAAC;QAC7D,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,YAAY,CAAC;QACrD,IAAI,CAAC,4BAA4B,GAAG,IAAI,gCAAgC,CACtE,IAAI,CACL,CAAC;QACF,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;KAC5C;CAIF;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../src/models/index.ts","../src/models/mappers.ts","../src/models/parameters.ts","../src/lroImpl.ts","../src/operations/virtualMachineImageTemplates.ts","../src/operations/operations.ts","../src/imageBuilderClient.ts"],"sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\nexport type ImageTemplateSourceUnion =\n | ImageTemplateSource\n | ImageTemplatePlatformImageSource\n | ImageTemplateManagedImageSource\n | ImageTemplateSharedImageVersionSource;\nexport type ImageTemplateCustomizerUnion =\n | ImageTemplateCustomizer\n | ImageTemplateShellCustomizer\n | ImageTemplateRestartCustomizer\n | ImageTemplateWindowsUpdateCustomizer\n | ImageTemplatePowerShellCustomizer\n | ImageTemplateFileCustomizer;\nexport type ImageTemplateDistributorUnion =\n | ImageTemplateDistributor\n | ImageTemplateManagedImageDistributor\n | ImageTemplateSharedImageDistributor\n | ImageTemplateVhdDistributor;\n\n/** The result of List image templates operation */\nexport interface ImageTemplateListResult {\n /** An array of image templates */\n value?: ImageTemplate[];\n /** The continuation token. */\n nextLink?: string;\n}\n\n/** Describes a virtual machine image source for building, customizing and distributing */\nexport interface ImageTemplateSource {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n type: \"PlatformImage\" | \"ManagedImage\" | \"SharedImageVersion\";\n}\n\n/** Describes a unit of image customization */\nexport interface ImageTemplateCustomizer {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n type: \"Shell\" | \"WindowsRestart\" | \"WindowsUpdate\" | \"PowerShell\" | \"File\";\n /** Friendly Name to provide context on what this customization step does */\n name?: string;\n}\n\n/** Generic distribution object */\nexport interface ImageTemplateDistributor {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n type: \"ManagedImage\" | \"SharedImage\" | \"VHD\";\n /** The name to be used for the associated RunOutput. */\n runOutputName: string;\n /** Tags that will be applied to the artifact once it has been created/updated by the distributor. */\n artifactTags?: { [propertyName: string]: string };\n}\n\n/** Describes the error happened when create or update an image template */\nexport interface ProvisioningError {\n /** Error code of the provisioning failure */\n provisioningErrorCode?: ProvisioningErrorCode;\n /** Verbose error message about the provisioning failure */\n message?: string;\n}\n\n/** Describes the latest status of running an image template */\nexport interface ImageTemplateLastRunStatus {\n /** Start time of the last run (UTC) */\n startTime?: Date;\n /** End time of the last run (UTC) */\n endTime?: Date;\n /** State of the last run */\n runState?: RunState;\n /** Sub-state of the last run */\n runSubState?: RunSubState;\n /** Verbose information about the last run state */\n message?: string;\n}\n\n/** Describes the virtual machine used to build, customize and capture images */\nexport interface ImageTemplateVmProfile {\n /** Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default (Standard_D2ds_v4). */\n vmSize?: string;\n /** Size of the OS disk in GB. Omit or specify 0 to use Azure's default OS disk size. */\n osDiskSizeGB?: number;\n /** 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. */\n userAssignedIdentities?: string[];\n /** 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. */\n vnetConfig?: VirtualNetworkConfig;\n}\n\n/** Virtual Network configuration. */\nexport interface VirtualNetworkConfig {\n /** Resource id of a pre-existing subnet. */\n subnetId?: string;\n /** 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). */\n proxyVmSize?: string;\n}\n\n/** Identity for the image template. */\nexport interface ImageTemplateIdentity {\n /** The type of identity used for the image template. The type 'None' will remove any identities from the image template. */\n type?: ResourceIdentityType;\n /** 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}'. */\n userAssignedIdentities?: {\n [propertyName: string]: ComponentsVrq145SchemasImagetemplateidentityPropertiesUserassignedidentitiesAdditionalproperties;\n };\n}\n\nexport interface ComponentsVrq145SchemasImagetemplateidentityPropertiesUserassignedidentitiesAdditionalproperties {\n /**\n * The principal id of user assigned identity.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly principalId?: string;\n /**\n * The client id of user assigned identity.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly clientId?: string;\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\n /**\n * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * The name of the resource\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\"\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n}\n\n/** An error response from the Azure VM Image Builder service. */\nexport interface CloudError {\n /** Details about the error. */\n error?: CloudErrorBody;\n}\n\n/** An error response from the Azure VM Image Builder service. */\nexport interface CloudErrorBody {\n /** An identifier for the error. Codes are invariant and are intended to be consumed programmatically. */\n code?: string;\n /** A message describing the error, intended to be suitable for display in a user interface. */\n message?: string;\n /** The target of the particular error. For example, the name of the property in error. */\n target?: string;\n /** A list of additional details about the error. */\n details?: CloudErrorBody[];\n}\n\n/** Parameters for updating an image template. */\nexport interface ImageTemplateUpdateParameters {\n /** The identity of the image template, if configured. */\n identity?: ImageTemplateIdentity;\n /** The user-specified tags associated with the image template. */\n tags?: { [propertyName: string]: string };\n}\n\n/** The result of List run outputs operation */\nexport interface RunOutputCollection {\n /** An array of run outputs */\n value?: RunOutput[];\n /** The continuation token. */\n nextLink?: string;\n}\n\n/** The Sub Resource model definition. */\nexport interface SubResource {\n /**\n * Resource Id\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /** Resource name */\n name: string;\n /**\n * Resource type\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n}\n\n/** 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. */\nexport interface OperationListResult {\n /** The list of operations supported by the resource provider. */\n value?: Operation[];\n /** The URL to get the next set of operation list results if there are any. */\n nextLink?: string;\n}\n\n/** A REST API operation */\nexport interface Operation {\n /** This is of the format {provider}/{resource}/{operation} */\n name?: string;\n /** The object that describes the operation. */\n display?: OperationDisplay;\n /** The intended executor of the operation. */\n origin?: string;\n /** Any object */\n properties?: Record<string, unknown>;\n /** The flag that indicates whether the operation applies to data plane. */\n isDataAction?: boolean;\n}\n\n/** The object that describes the operation. */\nexport interface OperationDisplay {\n /** Friendly name of the resource provider. */\n provider?: string;\n /** For example: read, write, delete, or listKeys/action */\n operation?: string;\n /** The resource type on which the operation is performed. */\n resource?: string;\n /** The friendly name of the operation */\n description?: string;\n}\n\n/** Purchase plan configuration for platform image. */\nexport interface PlatformImagePurchasePlan {\n /** Name of the purchase plan. */\n planName: string;\n /** Product of the purchase plan. */\n planProduct: string;\n /** Publisher of the purchase plan. */\n planPublisher: string;\n}\n\n/** Describes an image source from [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). */\nexport type ImageTemplatePlatformImageSource = ImageTemplateSource & {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n type: \"PlatformImage\";\n /** Image Publisher in [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). */\n publisher?: string;\n /** Image offer from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). */\n offer?: string;\n /** Image sku from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). */\n sku?: string;\n /** 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. */\n version?: string;\n /**\n * 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'.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly exactVersion?: string;\n /** Optional configuration of purchase plan for platform image. */\n planInfo?: PlatformImagePurchasePlan;\n};\n\n/** Describes an image source that is a managed image in customer subscription. */\nexport type ImageTemplateManagedImageSource = ImageTemplateSource & {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n type: \"ManagedImage\";\n /** ARM resource id of the managed image in customer subscription */\n imageId: string;\n};\n\n/** Describes an image source that is an image version in a shared image gallery. */\nexport type ImageTemplateSharedImageVersionSource = ImageTemplateSource & {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n type: \"SharedImageVersion\";\n /** ARM resource id of the image version in the shared image gallery */\n imageVersionId: string;\n};\n\n/** Runs a shell script during the customization phase (Linux). Corresponds to Packer shell provisioner. Exactly one of 'scriptUri' or 'inline' can be specified. */\nexport type ImageTemplateShellCustomizer = ImageTemplateCustomizer & {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n type: \"Shell\";\n /** URI of the shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc */\n scriptUri?: string;\n /** SHA256 checksum of the shell script provided in the scriptUri field */\n sha256Checksum?: string;\n /** Array of shell commands to execute */\n inline?: string[];\n};\n\n/** Reboots a VM and waits for it to come back online (Windows). Corresponds to Packer windows-restart provisioner */\nexport type ImageTemplateRestartCustomizer = ImageTemplateCustomizer & {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n type: \"WindowsRestart\";\n /** Command to execute the restart [Default: 'shutdown /r /f /t 0 /c \"packer restart\"'] */\n restartCommand?: string;\n /** Command to check if restart succeeded [Default: ''] */\n restartCheckCommand?: string;\n /** Restart timeout specified as a string of magnitude and unit, e.g. '5m' (5 minutes) or '2h' (2 hours) [Default: '5m'] */\n restartTimeout?: string;\n};\n\n/** Installs Windows Updates. Corresponds to Packer Windows Update Provisioner (https://github.com/rgl/packer-provisioner-windows-update) */\nexport type ImageTemplateWindowsUpdateCustomizer = ImageTemplateCustomizer & {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n type: \"WindowsUpdate\";\n /** 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. */\n searchCriteria?: string;\n /** 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. */\n filters?: string[];\n /** Maximum number of updates to apply at a time. Omit or specify 0 to use the default (1000) */\n updateLimit?: number;\n};\n\n/** Runs the specified PowerShell on the VM (Windows). Corresponds to Packer powershell provisioner. Exactly one of 'scriptUri' or 'inline' can be specified. */\nexport type ImageTemplatePowerShellCustomizer = ImageTemplateCustomizer & {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n type: \"PowerShell\";\n /** URI of the PowerShell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc */\n scriptUri?: string;\n /** SHA256 checksum of the power shell script provided in the scriptUri field above */\n sha256Checksum?: string;\n /** Array of PowerShell commands to execute */\n inline?: string[];\n /** If specified, the PowerShell script will be run with elevated privileges */\n runElevated?: boolean;\n /** 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. */\n runAsSystem?: boolean;\n /** Valid exit codes for the PowerShell script. [Default: 0] */\n validExitCodes?: number[];\n};\n\n/** Uploads files to VMs (Linux, Windows). Corresponds to Packer file provisioner */\nexport type ImageTemplateFileCustomizer = ImageTemplateCustomizer & {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n type: \"File\";\n /** The URI of the file to be uploaded for customizing the VM. It can be a github link, SAS URI for Azure Storage, etc */\n sourceUri?: string;\n /** SHA256 checksum of the file provided in the sourceUri field above */\n sha256Checksum?: string;\n /** The absolute path to a file (with nested directory structures already created) where the file (from sourceUri) will be uploaded to in the VM */\n destination?: string;\n};\n\n/** Distribute as a Managed Disk Image. */\nexport type ImageTemplateManagedImageDistributor = ImageTemplateDistributor & {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n type: \"ManagedImage\";\n /** Resource Id of the Managed Disk Image */\n imageId: string;\n /** Azure location for the image, should match if image already exists */\n location: string;\n};\n\n/** Distribute via Shared Image Gallery. */\nexport type ImageTemplateSharedImageDistributor = ImageTemplateDistributor & {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n type: \"SharedImage\";\n /** Resource Id of the Shared Image Gallery image */\n galleryImageId: string;\n /** A list of regions that the image will be replicated to */\n replicationRegions: string[];\n /** Flag that indicates whether created image version should be excluded from latest. Omit to use the default (false). */\n excludeFromLatest?: boolean;\n /** Storage account type to be used to store the shared image. Omit to use the default (Standard_LRS). */\n storageAccountType?: SharedImageStorageAccountType;\n};\n\n/** Distribute via VHD in a storage account. */\nexport type ImageTemplateVhdDistributor = ImageTemplateDistributor & {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n type: \"VHD\";\n};\n\n/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */\nexport type TrackedResource = Resource & {\n /** Resource tags. */\n tags?: { [propertyName: string]: string };\n /** The geo-location where the resource lives */\n location: string;\n};\n\n/** Represents an output that was created by running an image template. */\nexport type RunOutput = SubResource & {\n /** The resource id of the artifact. */\n artifactId?: string;\n /** The location URI of the artifact. */\n artifactUri?: string;\n /**\n * Provisioning state of the resource\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly provisioningState?: ProvisioningState;\n};\n\n/** Image template is an ARM resource managed by Microsoft.VirtualMachineImages provider */\nexport type ImageTemplate = TrackedResource & {\n /** The identity of the image template, if configured. */\n identity: ImageTemplateIdentity;\n /**\n * Metadata pertaining to creation and last modification of the resource.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly systemData?: SystemData;\n /** Specifies the properties used to describe the source image. */\n source?: ImageTemplateSourceUnion;\n /** Specifies the properties used to describe the customization steps of the image, like Image source etc */\n customize?: ImageTemplateCustomizerUnion[];\n /** The distribution targets where the image output needs to go to. */\n distribute?: ImageTemplateDistributorUnion[];\n /**\n * Provisioning state of the resource\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly provisioningState?: ProvisioningState;\n /**\n * Provisioning error, if any\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly provisioningError?: ProvisioningError;\n /**\n * State of 'run' that is currently executing or was last executed.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly lastRunStatus?: ImageTemplateLastRunStatus;\n /** Maximum duration to wait while building the image template. Omit or specify 0 to use the default (4 hours). */\n buildTimeoutInMinutes?: number;\n /** Describes how virtual machine is set up to build images */\n vmProfile?: ImageTemplateVmProfile;\n};\n\n/** Known values of {@link ProvisioningErrorCode} that the service accepts. */\nexport enum KnownProvisioningErrorCode {\n BadSourceType = \"BadSourceType\",\n BadPIRSource = \"BadPIRSource\",\n BadManagedImageSource = \"BadManagedImageSource\",\n BadSharedImageVersionSource = \"BadSharedImageVersionSource\",\n BadCustomizerType = \"BadCustomizerType\",\n UnsupportedCustomizerType = \"UnsupportedCustomizerType\",\n NoCustomizerScript = \"NoCustomizerScript\",\n BadDistributeType = \"BadDistributeType\",\n BadSharedImageDistribute = \"BadSharedImageDistribute\",\n ServerError = \"ServerError\",\n Other = \"Other\"\n}\n\n/**\n * Defines values for ProvisioningErrorCode. \\\n * {@link KnownProvisioningErrorCode} can be used interchangeably with ProvisioningErrorCode,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **BadSourceType** \\\n * **BadPIRSource** \\\n * **BadManagedImageSource** \\\n * **BadSharedImageVersionSource** \\\n * **BadCustomizerType** \\\n * **UnsupportedCustomizerType** \\\n * **NoCustomizerScript** \\\n * **BadDistributeType** \\\n * **BadSharedImageDistribute** \\\n * **ServerError** \\\n * **Other**\n */\nexport type ProvisioningErrorCode = string;\n\n/** Known values of {@link CreatedByType} that the service accepts. */\nexport enum KnownCreatedByType {\n User = \"User\",\n Application = \"Application\",\n ManagedIdentity = \"ManagedIdentity\",\n Key = \"Key\"\n}\n\n/**\n * Defines values for CreatedByType. \\\n * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User** \\\n * **Application** \\\n * **ManagedIdentity** \\\n * **Key**\n */\nexport type CreatedByType = string;\n\n/** Known values of {@link SharedImageStorageAccountType} that the service accepts. */\nexport enum KnownSharedImageStorageAccountType {\n StandardLRS = \"Standard_LRS\",\n StandardZRS = \"Standard_ZRS\"\n}\n\n/**\n * Defines values for SharedImageStorageAccountType. \\\n * {@link KnownSharedImageStorageAccountType} can be used interchangeably with SharedImageStorageAccountType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Standard_LRS** \\\n * **Standard_ZRS**\n */\nexport type SharedImageStorageAccountType = string;\n/** Defines values for ProvisioningState. */\nexport type ProvisioningState =\n | \"Creating\"\n | \"Updating\"\n | \"Succeeded\"\n | \"Failed\"\n | \"Deleting\";\n/** Defines values for RunState. */\nexport type RunState =\n | \"Running\"\n | \"Canceling\"\n | \"Succeeded\"\n | \"PartiallySucceeded\"\n | \"Failed\"\n | \"Canceled\";\n/** Defines values for RunSubState. */\nexport type RunSubState =\n | \"Queued\"\n | \"Building\"\n | \"Customizing\"\n | \"Distributing\";\n/** Defines values for ResourceIdentityType. */\nexport type ResourceIdentityType = \"UserAssigned\" | \"None\";\n\n/** Optional parameters. */\nexport interface VirtualMachineImageTemplatesListOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type VirtualMachineImageTemplatesListResponse = ImageTemplateListResult;\n\n/** Optional parameters. */\nexport interface VirtualMachineImageTemplatesListByResourceGroupOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listByResourceGroup operation. */\nexport type VirtualMachineImageTemplatesListByResourceGroupResponse = ImageTemplateListResult;\n\n/** Optional parameters. */\nexport interface VirtualMachineImageTemplatesCreateOrUpdateOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Contains response data for the createOrUpdate operation. */\nexport type VirtualMachineImageTemplatesCreateOrUpdateResponse = ImageTemplate;\n\n/** Optional parameters. */\nexport interface VirtualMachineImageTemplatesUpdateOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Contains response data for the update operation. */\nexport type VirtualMachineImageTemplatesUpdateResponse = ImageTemplate;\n\n/** Optional parameters. */\nexport interface VirtualMachineImageTemplatesGetOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type VirtualMachineImageTemplatesGetResponse = ImageTemplate;\n\n/** Optional parameters. */\nexport interface VirtualMachineImageTemplatesDeleteOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Optional parameters. */\nexport interface VirtualMachineImageTemplatesRunOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Optional parameters. */\nexport interface VirtualMachineImageTemplatesCancelOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Optional parameters. */\nexport interface VirtualMachineImageTemplatesListRunOutputsOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listRunOutputs operation. */\nexport type VirtualMachineImageTemplatesListRunOutputsResponse = RunOutputCollection;\n\n/** Optional parameters. */\nexport interface VirtualMachineImageTemplatesGetRunOutputOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the getRunOutput operation. */\nexport type VirtualMachineImageTemplatesGetRunOutputResponse = RunOutput;\n\n/** Optional parameters. */\nexport interface VirtualMachineImageTemplatesListNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listNext operation. */\nexport type VirtualMachineImageTemplatesListNextResponse = ImageTemplateListResult;\n\n/** Optional parameters. */\nexport interface VirtualMachineImageTemplatesListByResourceGroupNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listByResourceGroupNext operation. */\nexport type VirtualMachineImageTemplatesListByResourceGroupNextResponse = ImageTemplateListResult;\n\n/** Optional parameters. */\nexport interface VirtualMachineImageTemplatesListRunOutputsNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listRunOutputsNext operation. */\nexport type VirtualMachineImageTemplatesListRunOutputsNextResponse = RunOutputCollection;\n\n/** Optional parameters. */\nexport interface OperationsListOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type OperationsListResponse = OperationListResult;\n\n/** Optional parameters. */\nexport interface OperationsListNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listNext operation. */\nexport type OperationsListNextResponse = OperationListResult;\n\n/** Optional parameters. */\nexport interface ImageBuilderClientOptionalParams\n extends coreClient.ServiceClientOptions {\n /** server parameter */\n $host?: string;\n /** Api Version */\n apiVersion?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\nexport const ImageTemplateListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ImageTemplateListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ImageTemplate\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ImageTemplateSource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ImageTemplateSource\",\n uberParent: \"ImageTemplateSource\",\n polymorphicDiscriminator: {\n serializedName: \"type\",\n clientName: \"type\"\n },\n modelProperties: {\n type: {\n serializedName: \"type\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ImageTemplateCustomizer: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ImageTemplateCustomizer\",\n uberParent: \"ImageTemplateCustomizer\",\n polymorphicDiscriminator: {\n serializedName: \"type\",\n clientName: \"type\"\n },\n modelProperties: {\n type: {\n serializedName: \"type\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ImageTemplateDistributor: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ImageTemplateDistributor\",\n uberParent: \"ImageTemplateDistributor\",\n polymorphicDiscriminator: {\n serializedName: \"type\",\n clientName: \"type\"\n },\n modelProperties: {\n type: {\n serializedName: \"type\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n runOutputName: {\n constraints: {\n Pattern: new RegExp(\"^[A-Za-z0-9-_.]{1,64}$\")\n },\n serializedName: \"runOutputName\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n artifactTags: {\n serializedName: \"artifactTags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n }\n }\n }\n};\n\nexport const ProvisioningError: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ProvisioningError\",\n modelProperties: {\n provisioningErrorCode: {\n serializedName: \"provisioningErrorCode\",\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ImageTemplateLastRunStatus: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ImageTemplateLastRunStatus\",\n modelProperties: {\n startTime: {\n serializedName: \"startTime\",\n type: {\n name: \"DateTime\"\n }\n },\n endTime: {\n serializedName: \"endTime\",\n type: {\n name: \"DateTime\"\n }\n },\n runState: {\n serializedName: \"runState\",\n type: {\n name: \"Enum\",\n allowedValues: [\n \"Running\",\n \"Canceling\",\n \"Succeeded\",\n \"PartiallySucceeded\",\n \"Failed\",\n \"Canceled\"\n ]\n }\n },\n runSubState: {\n serializedName: \"runSubState\",\n type: {\n name: \"Enum\",\n allowedValues: [\"Queued\", \"Building\", \"Customizing\", \"Distributing\"]\n }\n },\n message: {\n serializedName: \"message\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ImageTemplateVmProfile: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ImageTemplateVmProfile\",\n modelProperties: {\n vmSize: {\n defaultValue: \"\",\n serializedName: \"vmSize\",\n type: {\n name: \"String\"\n }\n },\n osDiskSizeGB: {\n defaultValue: 0,\n constraints: {\n InclusiveMinimum: 0\n },\n serializedName: \"osDiskSizeGB\",\n type: {\n name: \"Number\"\n }\n },\n userAssignedIdentities: {\n serializedName: \"userAssignedIdentities\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n vnetConfig: {\n serializedName: \"vnetConfig\",\n type: {\n name: \"Composite\",\n className: \"VirtualNetworkConfig\"\n }\n }\n }\n }\n};\n\nexport const VirtualNetworkConfig: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"VirtualNetworkConfig\",\n modelProperties: {\n subnetId: {\n serializedName: \"subnetId\",\n type: {\n name: \"String\"\n }\n },\n proxyVmSize: {\n defaultValue: \"\",\n serializedName: \"proxyVmSize\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ImageTemplateIdentity: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ImageTemplateIdentity\",\n modelProperties: {\n type: {\n serializedName: \"type\",\n type: {\n name: \"Enum\",\n allowedValues: [\"UserAssigned\", \"None\"]\n }\n },\n userAssignedIdentities: {\n serializedName: \"userAssignedIdentities\",\n type: {\n name: \"Dictionary\",\n value: {\n type: {\n name: \"Composite\",\n className:\n \"ComponentsVrq145SchemasImagetemplateidentityPropertiesUserassignedidentitiesAdditionalproperties\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const ComponentsVrq145SchemasImagetemplateidentityPropertiesUserassignedidentitiesAdditionalproperties: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className:\n \"ComponentsVrq145SchemasImagetemplateidentityPropertiesUserassignedidentitiesAdditionalproperties\",\n modelProperties: {\n principalId: {\n serializedName: \"principalId\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n clientId: {\n serializedName: \"clientId\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const SystemData: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SystemData\",\n modelProperties: {\n createdBy: {\n serializedName: \"createdBy\",\n type: {\n name: \"String\"\n }\n },\n createdByType: {\n serializedName: \"createdByType\",\n type: {\n name: \"String\"\n }\n },\n createdAt: {\n serializedName: \"createdAt\",\n type: {\n name: \"DateTime\"\n }\n },\n lastModifiedBy: {\n serializedName: \"lastModifiedBy\",\n type: {\n name: \"String\"\n }\n },\n lastModifiedByType: {\n serializedName: \"lastModifiedByType\",\n type: {\n name: \"String\"\n }\n },\n lastModifiedAt: {\n serializedName: \"lastModifiedAt\",\n type: {\n name: \"DateTime\"\n }\n }\n }\n }\n};\n\nexport const Resource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Resource\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const CloudError: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CloudError\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"CloudErrorBody\"\n }\n }\n }\n }\n};\n\nexport const CloudErrorBody: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CloudErrorBody\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n type: {\n name: \"String\"\n }\n },\n target: {\n serializedName: \"target\",\n type: {\n name: \"String\"\n }\n },\n details: {\n serializedName: \"details\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"CloudErrorBody\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const ImageTemplateUpdateParameters: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ImageTemplateUpdateParameters\",\n modelProperties: {\n identity: {\n serializedName: \"identity\",\n type: {\n name: \"Composite\",\n className: \"ImageTemplateIdentity\"\n }\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n }\n }\n }\n};\n\nexport const RunOutputCollection: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"RunOutputCollection\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"RunOutput\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const SubResource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SubResource\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const OperationListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Operation\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const Operation: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Operation\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n display: {\n serializedName: \"display\",\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\"\n }\n },\n origin: {\n serializedName: \"origin\",\n type: {\n name: \"String\"\n }\n },\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n },\n isDataAction: {\n serializedName: \"isDataAction\",\n type: {\n name: \"Boolean\"\n }\n }\n }\n }\n};\n\nexport const OperationDisplay: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\",\n modelProperties: {\n provider: {\n serializedName: \"provider\",\n type: {\n name: \"String\"\n }\n },\n operation: {\n serializedName: \"operation\",\n type: {\n name: \"String\"\n }\n },\n resource: {\n serializedName: \"resource\",\n type: {\n name: \"String\"\n }\n },\n description: {\n serializedName: \"description\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const PlatformImagePurchasePlan: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"PlatformImagePurchasePlan\",\n modelProperties: {\n planName: {\n serializedName: \"planName\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n planProduct: {\n serializedName: \"planProduct\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n planPublisher: {\n serializedName: \"planPublisher\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ImageTemplatePlatformImageSource: coreClient.CompositeMapper = {\n serializedName: \"PlatformImage\",\n type: {\n name: \"Composite\",\n className: \"ImageTemplatePlatformImageSource\",\n uberParent: \"ImageTemplateSource\",\n polymorphicDiscriminator: ImageTemplateSource.type.polymorphicDiscriminator,\n modelProperties: {\n ...ImageTemplateSource.type.modelProperties,\n publisher: {\n serializedName: \"publisher\",\n type: {\n name: \"String\"\n }\n },\n offer: {\n serializedName: \"offer\",\n type: {\n name: \"String\"\n }\n },\n sku: {\n serializedName: \"sku\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"version\",\n type: {\n name: \"String\"\n }\n },\n exactVersion: {\n serializedName: \"exactVersion\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n planInfo: {\n serializedName: \"planInfo\",\n type: {\n name: \"Composite\",\n className: \"PlatformImagePurchasePlan\"\n }\n }\n }\n }\n};\n\nexport const ImageTemplateManagedImageSource: coreClient.CompositeMapper = {\n serializedName: \"ManagedImage\",\n type: {\n name: \"Composite\",\n className: \"ImageTemplateManagedImageSource\",\n uberParent: \"ImageTemplateSource\",\n polymorphicDiscriminator: ImageTemplateSource.type.polymorphicDiscriminator,\n modelProperties: {\n ...ImageTemplateSource.type.modelProperties,\n imageId: {\n serializedName: \"imageId\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ImageTemplateSharedImageVersionSource: coreClient.CompositeMapper = {\n serializedName: \"SharedImageVersion\",\n type: {\n name: \"Composite\",\n className: \"ImageTemplateSharedImageVersionSource\",\n uberParent: \"ImageTemplateSource\",\n polymorphicDiscriminator: ImageTemplateSource.type.polymorphicDiscriminator,\n modelProperties: {\n ...ImageTemplateSource.type.modelProperties,\n imageVersionId: {\n serializedName: \"imageVersionId\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ImageTemplateShellCustomizer: coreClient.CompositeMapper = {\n serializedName: \"Shell\",\n type: {\n name: \"Composite\",\n className: \"ImageTemplateShellCustomizer\",\n uberParent: \"ImageTemplateCustomizer\",\n polymorphicDiscriminator:\n ImageTemplateCustomizer.type.polymorphicDiscriminator,\n modelProperties: {\n ...ImageTemplateCustomizer.type.modelProperties,\n scriptUri: {\n serializedName: \"scriptUri\",\n type: {\n name: \"String\"\n }\n },\n sha256Checksum: {\n defaultValue: \"\",\n serializedName: \"sha256Checksum\",\n type: {\n name: \"String\"\n }\n },\n inline: {\n serializedName: \"inline\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const ImageTemplateRestartCustomizer: coreClient.CompositeMapper = {\n serializedName: \"WindowsRestart\",\n type: {\n name: \"Composite\",\n className: \"ImageTemplateRestartCustomizer\",\n uberParent: \"ImageTemplateCustomizer\",\n polymorphicDiscriminator:\n ImageTemplateCustomizer.type.polymorphicDiscriminator,\n modelProperties: {\n ...ImageTemplateCustomizer.type.modelProperties,\n restartCommand: {\n serializedName: \"restartCommand\",\n type: {\n name: \"String\"\n }\n },\n restartCheckCommand: {\n serializedName: \"restartCheckCommand\",\n type: {\n name: \"String\"\n }\n },\n restartTimeout: {\n serializedName: \"restartTimeout\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ImageTemplateWindowsUpdateCustomizer: coreClient.CompositeMapper = {\n serializedName: \"WindowsUpdate\",\n type: {\n name: \"Composite\",\n className: \"ImageTemplateWindowsUpdateCustomizer\",\n uberParent: \"ImageTemplateCustomizer\",\n polymorphicDiscriminator:\n ImageTemplateCustomizer.type.polymorphicDiscriminator,\n modelProperties: {\n ...ImageTemplateCustomizer.type.modelProperties,\n searchCriteria: {\n serializedName: \"searchCriteria\",\n type: {\n name: \"String\"\n }\n },\n filters: {\n serializedName: \"filters\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n updateLimit: {\n constraints: {\n InclusiveMinimum: 0\n },\n serializedName: \"updateLimit\",\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\n\nexport const ImageTemplatePowerShellCustomizer: coreClient.CompositeMapper = {\n serializedName: \"PowerShell\",\n type: {\n name: \"Composite\",\n className: \"ImageTemplatePowerShellCustomizer\",\n uberParent: \"ImageTemplateCustomizer\",\n polymorphicDiscriminator:\n ImageTemplateCustomizer.type.polymorphicDiscriminator,\n modelProperties: {\n ...ImageTemplateCustomizer.type.modelProperties,\n scriptUri: {\n serializedName: \"scriptUri\",\n type: {\n name: \"String\"\n }\n },\n sha256Checksum: {\n defaultValue: \"\",\n serializedName: \"sha256Checksum\",\n type: {\n name: \"String\"\n }\n },\n inline: {\n serializedName: \"inline\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n runElevated: {\n defaultValue: false,\n serializedName: \"runElevated\",\n type: {\n name: \"Boolean\"\n }\n },\n runAsSystem: {\n defaultValue: false,\n serializedName: \"runAsSystem\",\n type: {\n name: \"Boolean\"\n }\n },\n validExitCodes: {\n serializedName: \"validExitCodes\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Number\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const ImageTemplateFileCustomizer: coreClient.CompositeMapper = {\n serializedName: \"File\",\n type: {\n name: \"Composite\",\n className: \"ImageTemplateFileCustomizer\",\n uberParent: \"ImageTemplateCustomizer\",\n polymorphicDiscriminator:\n ImageTemplateCustomizer.type.polymorphicDiscriminator,\n modelProperties: {\n ...ImageTemplateCustomizer.type.modelProperties,\n sourceUri: {\n serializedName: \"sourceUri\",\n type: {\n name: \"String\"\n }\n },\n sha256Checksum: {\n defaultValue: \"\",\n serializedName: \"sha256Checksum\",\n type: {\n name: \"String\"\n }\n },\n destination: {\n serializedName: \"destination\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ImageTemplateManagedImageDistributor: coreClient.CompositeMapper = {\n serializedName: \"ManagedImage\",\n type: {\n name: \"Composite\",\n className: \"ImageTemplateManagedImageDistributor\",\n uberParent: \"ImageTemplateDistributor\",\n polymorphicDiscriminator:\n ImageTemplateDistributor.type.polymorphicDiscriminator,\n modelProperties: {\n ...ImageTemplateDistributor.type.modelProperties,\n imageId: {\n serializedName: \"imageId\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n location: {\n serializedName: \"location\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ImageTemplateSharedImageDistributor: coreClient.CompositeMapper = {\n serializedName: \"SharedImage\",\n type: {\n name: \"Composite\",\n className: \"ImageTemplateSharedImageDistributor\",\n uberParent: \"ImageTemplateDistributor\",\n polymorphicDiscriminator:\n ImageTemplateDistributor.type.polymorphicDiscriminator,\n modelProperties: {\n ...ImageTemplateDistributor.type.modelProperties,\n galleryImageId: {\n serializedName: \"galleryImageId\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n replicationRegions: {\n serializedName: \"replicationRegions\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n excludeFromLatest: {\n defaultValue: false,\n serializedName: \"excludeFromLatest\",\n type: {\n name: \"Boolean\"\n }\n },\n storageAccountType: {\n serializedName: \"storageAccountType\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ImageTemplateVhdDistributor: coreClient.CompositeMapper = {\n serializedName: \"VHD\",\n type: {\n name: \"Composite\",\n className: \"ImageTemplateVhdDistributor\",\n uberParent: \"ImageTemplateDistributor\",\n polymorphicDiscriminator:\n ImageTemplateDistributor.type.polymorphicDiscriminator,\n modelProperties: {\n ...ImageTemplateDistributor.type.modelProperties\n }\n }\n};\n\nexport const TrackedResource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TrackedResource\",\n modelProperties: {\n ...Resource.type.modelProperties,\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n location: {\n serializedName: \"location\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const RunOutput: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"RunOutput\",\n modelProperties: {\n ...SubResource.type.modelProperties,\n artifactId: {\n serializedName: \"properties.artifactId\",\n type: {\n name: \"String\"\n }\n },\n artifactUri: {\n serializedName: \"properties.artifactUri\",\n type: {\n name: \"String\"\n }\n },\n provisioningState: {\n serializedName: \"properties.provisioningState\",\n readOnly: true,\n type: {\n name: \"Enum\",\n allowedValues: [\n \"Creating\",\n \"Updating\",\n \"Succeeded\",\n \"Failed\",\n \"Deleting\"\n ]\n }\n }\n }\n }\n};\n\nexport const ImageTemplate: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ImageTemplate\",\n modelProperties: {\n ...TrackedResource.type.modelProperties,\n identity: {\n serializedName: \"identity\",\n type: {\n name: \"Composite\",\n className: \"ImageTemplateIdentity\"\n }\n },\n systemData: {\n serializedName: \"systemData\",\n type: {\n name: \"Composite\",\n className: \"SystemData\"\n }\n },\n source: {\n serializedName: \"properties.source\",\n type: {\n name: \"Composite\",\n className: \"ImageTemplateSource\"\n }\n },\n customize: {\n serializedName: \"properties.customize\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ImageTemplateCustomizer\"\n }\n }\n }\n },\n distribute: {\n serializedName: \"properties.distribute\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ImageTemplateDistributor\"\n }\n }\n }\n },\n provisioningState: {\n serializedName: \"properties.provisioningState\",\n readOnly: true,\n type: {\n name: \"Enum\",\n allowedValues: [\n \"Creating\",\n \"Updating\",\n \"Succeeded\",\n \"Failed\",\n \"Deleting\"\n ]\n }\n },\n provisioningError: {\n serializedName: \"properties.provisioningError\",\n type: {\n name: \"Composite\",\n className: \"ProvisioningError\"\n }\n },\n lastRunStatus: {\n serializedName: \"properties.lastRunStatus\",\n type: {\n name: \"Composite\",\n className: \"ImageTemplateLastRunStatus\"\n }\n },\n buildTimeoutInMinutes: {\n defaultValue: 0,\n constraints: {\n InclusiveMaximum: 960,\n InclusiveMinimum: 0\n },\n serializedName: \"properties.buildTimeoutInMinutes\",\n type: {\n name: \"Number\"\n }\n },\n vmProfile: {\n serializedName: \"properties.vmProfile\",\n type: {\n name: \"Composite\",\n className: \"ImageTemplateVmProfile\"\n }\n }\n }\n }\n};\n\nexport let discriminators = {\n ImageTemplateSource: ImageTemplateSource,\n ImageTemplateCustomizer: ImageTemplateCustomizer,\n ImageTemplateDistributor: ImageTemplateDistributor,\n \"ImageTemplateSource.PlatformImage\": ImageTemplatePlatformImageSource,\n \"ImageTemplateSource.ManagedImage\": ImageTemplateManagedImageSource,\n \"ImageTemplateSource.SharedImageVersion\": ImageTemplateSharedImageVersionSource,\n \"ImageTemplateCustomizer.Shell\": ImageTemplateShellCustomizer,\n \"ImageTemplateCustomizer.WindowsRestart\": ImageTemplateRestartCustomizer,\n \"ImageTemplateCustomizer.WindowsUpdate\": ImageTemplateWindowsUpdateCustomizer,\n \"ImageTemplateCustomizer.PowerShell\": ImageTemplatePowerShellCustomizer,\n \"ImageTemplateCustomizer.File\": ImageTemplateFileCustomizer,\n \"ImageTemplateDistributor.ManagedImage\": ImageTemplateManagedImageDistributor,\n \"ImageTemplateDistributor.SharedImage\": ImageTemplateSharedImageDistributor,\n \"ImageTemplateDistributor.VHD\": ImageTemplateVhdDistributor\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter\n} from \"@azure/core-client\";\nimport {\n ImageTemplate as ImageTemplateMapper,\n ImageTemplateUpdateParameters as ImageTemplateUpdateParametersMapper\n} from \"../models/mappers\";\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const $host: OperationURLParameter = {\n parameterPath: \"$host\",\n mapper: {\n serializedName: \"$host\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const subscriptionId: OperationURLParameter = {\n parameterPath: \"subscriptionId\",\n mapper: {\n serializedName: \"subscriptionId\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2021-10-01\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const resourceGroupName: OperationURLParameter = {\n parameterPath: \"resourceGroupName\",\n mapper: {\n serializedName: \"resourceGroupName\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const parameters: OperationParameter = {\n parameterPath: \"parameters\",\n mapper: ImageTemplateMapper\n};\n\nexport const imageTemplateName: OperationURLParameter = {\n parameterPath: \"imageTemplateName\",\n mapper: {\n constraints: {\n Pattern: new RegExp(\"^[A-Za-z0-9-_.]{1,64}$\")\n },\n serializedName: \"imageTemplateName\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const parameters1: OperationParameter = {\n parameterPath: \"parameters\",\n mapper: ImageTemplateUpdateParametersMapper\n};\n\nexport const runOutputName: OperationURLParameter = {\n parameterPath: \"runOutputName\",\n mapper: {\n constraints: {\n Pattern: new RegExp(\"^[A-Za-z0-9-_.]{1,64}$\")\n },\n serializedName: \"runOutputName\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const nextLink: OperationURLParameter = {\n parameterPath: \"nextLink\",\n mapper: {\n serializedName: \"nextLink\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport class LroImpl<T> implements LongRunningOperation<T> {\n constructor(\n private sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>,\n private args: Record<string, unknown>,\n private spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>,\n public requestPath: string = spec.path!,\n public requestMethod: string = spec.httpMethod\n ) {}\n public async sendInitialRequest(): Promise<LroResponse<T>> {\n return this.sendOperationFn(this.args, this.spec);\n }\n public async sendPollRequest(path: string): Promise<LroResponse<T>> {\n const { requestBody, ...restSpec } = this.spec;\n return this.sendOperationFn(this.args, {\n ...restSpec,\n path,\n httpMethod: \"GET\"\n });\n }\n}\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { VirtualMachineImageTemplates } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { ImageBuilderClient } from \"../imageBuilderClient\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl\";\nimport {\n ImageTemplate,\n VirtualMachineImageTemplatesListNextOptionalParams,\n VirtualMachineImageTemplatesListOptionalParams,\n VirtualMachineImageTemplatesListByResourceGroupNextOptionalParams,\n VirtualMachineImageTemplatesListByResourceGroupOptionalParams,\n RunOutput,\n VirtualMachineImageTemplatesListRunOutputsNextOptionalParams,\n VirtualMachineImageTemplatesListRunOutputsOptionalParams,\n VirtualMachineImageTemplatesListResponse,\n VirtualMachineImageTemplatesListByResourceGroupResponse,\n VirtualMachineImageTemplatesCreateOrUpdateOptionalParams,\n VirtualMachineImageTemplatesCreateOrUpdateResponse,\n ImageTemplateUpdateParameters,\n VirtualMachineImageTemplatesUpdateOptionalParams,\n VirtualMachineImageTemplatesUpdateResponse,\n VirtualMachineImageTemplatesGetOptionalParams,\n VirtualMachineImageTemplatesGetResponse,\n VirtualMachineImageTemplatesDeleteOptionalParams,\n VirtualMachineImageTemplatesRunOptionalParams,\n VirtualMachineImageTemplatesCancelOptionalParams,\n VirtualMachineImageTemplatesListRunOutputsResponse,\n VirtualMachineImageTemplatesGetRunOutputOptionalParams,\n VirtualMachineImageTemplatesGetRunOutputResponse,\n VirtualMachineImageTemplatesListNextResponse,\n VirtualMachineImageTemplatesListByResourceGroupNextResponse,\n VirtualMachineImageTemplatesListRunOutputsNextResponse\n} from \"../models\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing VirtualMachineImageTemplates operations. */\nexport class VirtualMachineImageTemplatesImpl\n implements VirtualMachineImageTemplates {\n private readonly client: ImageBuilderClient;\n\n /**\n * Initialize a new instance of the class VirtualMachineImageTemplates class.\n * @param client Reference to the service client\n */\n constructor(client: ImageBuilderClient) {\n this.client = client;\n }\n\n /**\n * Gets information about the VM image templates associated with the subscription.\n * @param options The options parameters.\n */\n public list(\n options?: VirtualMachineImageTemplatesListOptionalParams\n ): PagedAsyncIterableIterator<ImageTemplate> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listPagingPage(options);\n }\n };\n }\n\n private async *listPagingPage(\n options?: VirtualMachineImageTemplatesListOptionalParams\n ): AsyncIterableIterator<ImageTemplate[]> {\n let result = await this._list(options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listPagingAll(\n options?: VirtualMachineImageTemplatesListOptionalParams\n ): AsyncIterableIterator<ImageTemplate> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets information about the VM image templates associated with the specified resource group.\n * @param resourceGroupName The name of the resource group.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: VirtualMachineImageTemplatesListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<ImageTemplate> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listByResourceGroupPagingPage(resourceGroupName, options);\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: VirtualMachineImageTemplatesListByResourceGroupOptionalParams\n ): AsyncIterableIterator<ImageTemplate[]> {\n let result = await this._listByResourceGroup(resourceGroupName, options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: VirtualMachineImageTemplatesListByResourceGroupOptionalParams\n ): AsyncIterableIterator<ImageTemplate> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * List all run outputs for the specified Image Template resource\n * @param resourceGroupName The name of the resource group.\n * @param imageTemplateName The name of the image Template\n * @param options The options parameters.\n */\n public listRunOutputs(\n resourceGroupName: string,\n imageTemplateName: string,\n options?: VirtualMachineImageTemplatesListRunOutputsOptionalParams\n ): PagedAsyncIterableIterator<RunOutput> {\n const iter = this.listRunOutputsPagingAll(\n resourceGroupName,\n imageTemplateName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listRunOutputsPagingPage(\n resourceGroupName,\n imageTemplateName,\n options\n );\n }\n };\n }\n\n private async *listRunOutputsPagingPage(\n resourceGroupName: string,\n imageTemplateName: string,\n options?: VirtualMachineImageTemplatesListRunOutputsOptionalParams\n ): AsyncIterableIterator<RunOutput[]> {\n let result = await this._listRunOutputs(\n resourceGroupName,\n imageTemplateName,\n options\n );\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listRunOutputsNext(\n resourceGroupName,\n imageTemplateName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listRunOutputsPagingAll(\n resourceGroupName: string,\n imageTemplateName: string,\n options?: VirtualMachineImageTemplatesListRunOutputsOptionalParams\n ): AsyncIterableIterator<RunOutput> {\n for await (const page of this.listRunOutputsPagingPage(\n resourceGroupName,\n imageTemplateName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets information about the VM image templates associated with the subscription.\n * @param options The options parameters.\n */\n private _list(\n options?: VirtualMachineImageTemplatesListOptionalParams\n ): Promise<VirtualMachineImageTemplatesListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Gets information about the VM image templates associated with the specified resource group.\n * @param resourceGroupName The name of the resource group.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: VirtualMachineImageTemplatesListByResourceGroupOptionalParams\n ): Promise<VirtualMachineImageTemplatesListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Create or update a virtual machine image template\n * @param resourceGroupName The name of the resource group.\n * @param imageTemplateName The name of the image Template\n * @param parameters Parameters supplied to the CreateImageTemplate operation\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n imageTemplateName: string,\n parameters: ImageTemplate,\n options?: VirtualMachineImageTemplatesCreateOrUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<VirtualMachineImageTemplatesCreateOrUpdateResponse>,\n VirtualMachineImageTemplatesCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<VirtualMachineImageTemplatesCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, imageTemplateName, parameters, options },\n createOrUpdateOperationSpec\n );\n return new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"azure-async-operation\"\n });\n }\n\n /**\n * Create or update a virtual machine image template\n * @param resourceGroupName The name of the resource group.\n * @param imageTemplateName The name of the image Template\n * @param parameters Parameters supplied to the CreateImageTemplate operation\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n imageTemplateName: string,\n parameters: ImageTemplate,\n options?: VirtualMachineImageTemplatesCreateOrUpdateOptionalParams\n ): Promise<VirtualMachineImageTemplatesCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n imageTemplateName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update the tags for this Virtual Machine Image Template\n * @param resourceGroupName The name of the resource group.\n * @param imageTemplateName The name of the image Template\n * @param parameters Additional parameters for Image Template update.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n imageTemplateName: string,\n parameters: ImageTemplateUpdateParameters,\n options?: VirtualMachineImageTemplatesUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<VirtualMachineImageTemplatesUpdateResponse>,\n VirtualMachineImageTemplatesUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<VirtualMachineImageTemplatesUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, imageTemplateName, parameters, options },\n updateOperationSpec\n );\n return new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"azure-async-operation\"\n });\n }\n\n /**\n * Update the tags for this Virtual Machine Image Template\n * @param resourceGroupName The name of the resource group.\n * @param imageTemplateName The name of the image Template\n * @param parameters Additional parameters for Image Template update.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n imageTemplateName: string,\n parameters: ImageTemplateUpdateParameters,\n options?: VirtualMachineImageTemplatesUpdateOptionalParams\n ): Promise<VirtualMachineImageTemplatesUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n imageTemplateName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get information about a virtual machine image template\n * @param resourceGroupName The name of the resource group.\n * @param imageTemplateName The name of the image Template\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n imageTemplateName: string,\n options?: VirtualMachineImageTemplatesGetOptionalParams\n ): Promise<VirtualMachineImageTemplatesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, imageTemplateName, options },\n getOperationSpec\n );\n }\n\n /**\n * Delete a virtual machine image template\n * @param resourceGroupName The name of the resource group.\n * @param imageTemplateName The name of the image Template\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n imageTemplateName: string,\n options?: VirtualMachineImageTemplatesDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, imageTemplateName, options },\n deleteOperationSpec\n );\n return new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"azure-async-operation\"\n });\n }\n\n /**\n * Delete a virtual machine image template\n * @param resourceGroupName The name of the resource group.\n * @param imageTemplateName The name of the image Template\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n imageTemplateName: string,\n options?: VirtualMachineImageTemplatesDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n imageTemplateName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Create artifacts from a existing image template\n * @param resourceGroupName The name of the resource group.\n * @param imageTemplateName The name of the image Template\n * @param options The options parameters.\n */\n async beginRun(\n resourceGroupName: string,\n imageTemplateName: string,\n options?: VirtualMachineImageTemplatesRunOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, imageTemplateName, options },\n runOperationSpec\n );\n return new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"azure-async-operation\"\n });\n }\n\n /**\n * Create artifacts from a existing image template\n * @param resourceGroupName The name of the resource group.\n * @param imageTemplateName The name of the image Template\n * @param options The options parameters.\n */\n async beginRunAndWait(\n resourceGroupName: string,\n imageTemplateName: string,\n options?: VirtualMachineImageTemplatesRunOptionalParams\n ): Promise<void> {\n const poller = await this.beginRun(\n resourceGroupName,\n imageTemplateName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Cancel the long running image build based on the image template\n * @param resourceGroupName The name of the resource group.\n * @param imageTemplateName The name of the image Template\n * @param options The options parameters.\n */\n async beginCancel(\n resourceGroupName: string,\n imageTemplateName: string,\n options?: VirtualMachineImageTemplatesCancelOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, imageTemplateName, options },\n cancelOperationSpec\n );\n return new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"azure-async-operation\"\n });\n }\n\n /**\n * Cancel the long running image build based on the image template\n * @param resourceGroupName The name of the resource group.\n * @param imageTemplateName The name of the image Template\n * @param options The options parameters.\n */\n async beginCancelAndWait(\n resourceGroupName: string,\n imageTemplateName: string,\n options?: VirtualMachineImageTemplatesCancelOptionalParams\n ): Promise<void> {\n const poller = await this.beginCancel(\n resourceGroupName,\n imageTemplateName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * List all run outputs for the specified Image Template resource\n * @param resourceGroupName The name of the resource group.\n * @param imageTemplateName The name of the image Template\n * @param options The options parameters.\n */\n private _listRunOutputs(\n resourceGroupName: string,\n imageTemplateName: string,\n options?: VirtualMachineImageTemplatesListRunOutputsOptionalParams\n ): Promise<VirtualMachineImageTemplatesListRunOutputsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, imageTemplateName, options },\n listRunOutputsOperationSpec\n );\n }\n\n /**\n * Get the specified run output for the specified image template resource\n * @param resourceGroupName The name of the resource group.\n * @param imageTemplateName The name of the image Template\n * @param runOutputName The name of the run output\n * @param options The options parameters.\n */\n getRunOutput(\n resourceGroupName: string,\n imageTemplateName: string,\n runOutputName: string,\n options?: VirtualMachineImageTemplatesGetRunOutputOptionalParams\n ): Promise<VirtualMachineImageTemplatesGetRunOutputResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, imageTemplateName, runOutputName, options },\n getRunOutputOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: VirtualMachineImageTemplatesListNextOptionalParams\n ): Promise<VirtualMachineImageTemplatesListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: VirtualMachineImageTemplatesListByResourceGroupNextOptionalParams\n ): Promise<VirtualMachineImageTemplatesListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec\n );\n }\n\n /**\n * ListRunOutputsNext\n * @param resourceGroupName The name of the resource group.\n * @param imageTemplateName The name of the image Template\n * @param nextLink The nextLink from the previous successful call to the ListRunOutputs method.\n * @param options The options parameters.\n */\n private _listRunOutputsNext(\n resourceGroupName: string,\n imageTemplateName: string,\n nextLink: string,\n options?: VirtualMachineImageTemplatesListRunOutputsNextOptionalParams\n ): Promise<VirtualMachineImageTemplatesListRunOutputsNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, imageTemplateName, nextLink, options },\n listRunOutputsNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.VirtualMachineImages/imageTemplates\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImageTemplateListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImageTemplateListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImageTemplate\n },\n 201: {\n bodyMapper: Mappers.ImageTemplate\n },\n 202: {\n bodyMapper: Mappers.ImageTemplate\n },\n 204: {\n bodyMapper: Mappers.ImageTemplate\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.imageTemplateName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImageTemplate\n },\n 201: {\n bodyMapper: Mappers.ImageTemplate\n },\n 202: {\n bodyMapper: Mappers.ImageTemplate\n },\n 204: {\n bodyMapper: Mappers.ImageTemplate\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.imageTemplateName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImageTemplate\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.imageTemplateName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.imageTemplateName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst runOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}/run\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.imageTemplateName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst cancelOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}/cancel\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.imageTemplateName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listRunOutputsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}/runOutputs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RunOutputCollection\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.imageTemplateName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getRunOutputOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}/runOutputs/{runOutputName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RunOutput\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.imageTemplateName,\n Parameters.runOutputName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImageTemplateListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImageTemplateListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listRunOutputsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RunOutputCollection\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.imageTemplateName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { Operations } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { ImageBuilderClient } from \"../imageBuilderClient\";\nimport {\n Operation,\n OperationsListNextOptionalParams,\n OperationsListOptionalParams,\n OperationsListResponse,\n OperationsListNextResponse\n} from \"../models\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: ImageBuilderClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: ImageBuilderClient) {\n this.client = client;\n }\n\n /**\n * Lists available operations for the Microsoft.VirtualMachineImages provider\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listPagingPage(options);\n }\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams\n ): AsyncIterableIterator<Operation[]> {\n let result = await this._list(options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists available operations for the Microsoft.VirtualMachineImages provider\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: OperationsListNextOptionalParams\n ): Promise<OperationsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.VirtualMachineImages/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport { VirtualMachineImageTemplatesImpl, OperationsImpl } from \"./operations\";\nimport {\n VirtualMachineImageTemplates,\n Operations\n} from \"./operationsInterfaces\";\nimport { ImageBuilderClientOptionalParams } from \"./models\";\n\nexport class ImageBuilderClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the ImageBuilderClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription.\n * The subscription Id forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: ImageBuilderClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ImageBuilderClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-imagebuilder/1.0.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n if (!options.credentialScopes) {\n options.credentialScopes = [\"https://management.azure.com/.default\"];\n }\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n baseUri: options.endpoint || \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2021-10-01\";\n this.virtualMachineImageTemplates = new VirtualMachineImageTemplatesImpl(\n this\n );\n this.operations = new OperationsImpl(this);\n }\n\n virtualMachineImageTemplates: VirtualMachineImageTemplates;\n operations: Operations;\n}\n"],"names":["KnownProvisioningErrorCode","KnownCreatedByType","KnownSharedImageStorageAccountType","ImageTemplateMapper","ImageTemplateUpdateParametersMapper","__asyncValues","__asyncDelegator","LroEngine","coreClient.createSerializer","Mappers.ImageTemplateListResult","Mappers.CloudError","Parameters.apiVersion","Parameters.$host","Parameters.subscriptionId","Parameters.accept","Parameters.resourceGroupName","Mappers.ImageTemplate","Parameters.parameters","Parameters.imageTemplateName","Parameters.contentType","Parameters.parameters1","Mappers.RunOutputCollection","Mappers.RunOutput","Parameters.runOutputName","Parameters.nextLink","listOperationSpec","listNextOperationSpec","serializer","Mappers.OperationListResult","coreClient.ServiceClient"],"mappings":";;;;;;;;AAAA;;;;;;;AA6bA,WAAY,0BAA0B;IACpC,6DAA+B,CAAA;IAC/B,2DAA6B,CAAA;IAC7B,6EAA+C,CAAA;IAC/C,yFAA2D,CAAA;IAC3D,qEAAuC,CAAA;IACvC,qFAAuD,CAAA;IACvD,uEAAyC,CAAA;IACzC,qEAAuC,CAAA;IACvC,mFAAqD,CAAA;IACrD,yDAA2B,CAAA;IAC3B,6CAAe,CAAA;AACjB,CAAC,EAZWA,kCAA0B,KAA1BA,kCAA0B,QAYrC;AAsBD,WAAY,kBAAkB;IAC5B,mCAAa,CAAA;IACb,iDAA2B,CAAA;IAC3B,yDAAmC,CAAA;IACnC,iCAAW,CAAA;AACb,CAAC,EALWC,0BAAkB,KAAlBA,0BAAkB,QAK7B;AAeD,WAAY,kCAAkC;IAC5C,kEAA4B,CAAA;IAC5B,kEAA4B,CAAA;AAC9B,CAAC,EAHWC,0CAAkC,KAAlCA,0CAAkC;;ACnf9C;;;;;;;AAUA,AAAO,MAAM,uBAAuB,GAA+B;IACjE,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,yBAAyB;QACpC,eAAe,EAAE;YACf,KAAK,EAAE;gBACL,cAAc,EAAE,OAAO;gBACvB,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,IAAI,EAAE,WAAW;4B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AA8B,CAAC;QAC7D,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,YAAY,CAAC;QACrD,IAAI,CAAC,4BAA4B,GAAG,IAAI,gCAAgC,CACtE,IAAI,CACL,CAAC;QACF,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;KAC5C;CAIF;;;;"}
package/dist/index.min.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var coreClient=require("@azure/core-client"),tslib=require("tslib"),coreLro=require("@azure/core-lro");!function(e){e.BadSourceType="BadSourceType",e.BadPIRSource="BadPIRSource",e.BadManagedImageSource="BadManagedImageSource",e.BadSharedImageVersionSource="BadSharedImageVersionSource",e.BadCustomizerType="BadCustomizerType",e.UnsupportedCustomizerType="UnsupportedCustomizerType",e.NoCustomizerScript="NoCustomizerScript",e.BadDistributeType="BadDistributeType",e.BadSharedImageDistribute="BadSharedImageDistribute",e.ServerError="ServerError",e.Other="Other"}(exports.KnownProvisioningErrorCode||(exports.KnownProvisioningErrorCode={})),function(e){e.User="User",e.Application="Application",e.ManagedIdentity="ManagedIdentity",e.Key="Key"}(exports.KnownCreatedByType||(exports.KnownCreatedByType={})),function(e){e.StandardLRS="Standard_LRS",e.StandardZRS="Standard_ZRS"}(exports.KnownSharedImageStorageAccountType||(exports.KnownSharedImageStorageAccountType={}));const ImageTemplateListResult={type:{name:"Composite",className:"ImageTemplateListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"ImageTemplate"}}}},nextLink:{serializedName:"nextLink",type:{name:"String"}}}}},ImageTemplateSource={type:{name:"Composite",className:"ImageTemplateSource",uberParent:"ImageTemplateSource",polymorphicDiscriminator:{serializedName:"type",clientName:"type"},modelProperties:{type:{serializedName:"type",required:!0,type:{name:"String"}}}}},ImageTemplateCustomizer={type:{name:"Composite",className:"ImageTemplateCustomizer",uberParent:"ImageTemplateCustomizer",polymorphicDiscriminator:{serializedName:"type",clientName:"type"},modelProperties:{type:{serializedName:"type",required:!0,type:{name:"String"}},name:{serializedName:"name",type:{name:"String"}}}}},ImageTemplateDistributor={type:{name:"Composite",className:"ImageTemplateDistributor",uberParent:"ImageTemplateDistributor",polymorphicDiscriminator:{serializedName:"type",clientName:"type"},modelProperties:{type:{serializedName:"type",required:!0,type:{name:"String"}},runOutputName:{constraints:{Pattern:new RegExp("^[A-Za-z0-9-_.]{1,64}$")},serializedName:"runOutputName",required:!0,type:{name:"String"}},artifactTags:{serializedName:"artifactTags",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}},ProvisioningError={type:{name:"Composite",className:"ProvisioningError",modelProperties:{provisioningErrorCode:{serializedName:"provisioningErrorCode",type:{name:"String"}},message:{serializedName:"message",type:{name:"String"}}}}},ImageTemplateLastRunStatus={type:{name:"Composite",className:"ImageTemplateLastRunStatus",modelProperties:{startTime:{serializedName:"startTime",type:{name:"DateTime"}},endTime:{serializedName:"endTime",type:{name:"DateTime"}},runState:{serializedName:"runState",type:{name:"Enum",allowedValues:["Running","Canceling","Succeeded","PartiallySucceeded","Failed","Canceled"]}},runSubState:{serializedName:"runSubState",type:{name:"Enum",allowedValues:["Queued","Building","Customizing","Distributing"]}},message:{serializedName:"message",type:{name:"String"}}}}},ImageTemplateVmProfile={type:{name:"Composite",className:"ImageTemplateVmProfile",modelProperties:{vmSize:{defaultValue:"",serializedName:"vmSize",type:{name:"String"}},osDiskSizeGB:{defaultValue:0,constraints:{InclusiveMinimum:0},serializedName:"osDiskSizeGB",type:{name:"Number"}},userAssignedIdentities:{serializedName:"userAssignedIdentities",type:{name:"Sequence",element:{type:{name:"String"}}}},vnetConfig:{serializedName:"vnetConfig",type:{name:"Composite",className:"VirtualNetworkConfig"}}}}},VirtualNetworkConfig={type:{name:"Composite",className:"VirtualNetworkConfig",modelProperties:{subnetId:{serializedName:"subnetId",type:{name:"String"}},proxyVmSize:{defaultValue:"",serializedName:"proxyVmSize",type:{name:"String"}}}}},ImageTemplateIdentity={type:{name:"Composite",className:"ImageTemplateIdentity",modelProperties:{type:{serializedName:"type",type:{name:"Enum",allowedValues:["UserAssigned","None"]}},userAssignedIdentities:{serializedName:"userAssignedIdentities",type:{name:"Dictionary",value:{type:{name:"Composite",className:"ComponentsVrq145SchemasImagetemplateidentityPropertiesUserassignedidentitiesAdditionalproperties"}}}}}}},ComponentsVrq145SchemasImagetemplateidentityPropertiesUserassignedidentitiesAdditionalproperties={type:{name:"Composite",className:"ComponentsVrq145SchemasImagetemplateidentityPropertiesUserassignedidentitiesAdditionalproperties",modelProperties:{principalId:{serializedName:"principalId",readOnly:!0,type:{name:"String"}},clientId:{serializedName:"clientId",readOnly:!0,type:{name:"String"}}}}},SystemData={type:{name:"Composite",className:"SystemData",modelProperties:{createdBy:{serializedName:"createdBy",type:{name:"String"}},createdByType:{serializedName:"createdByType",type:{name:"String"}},createdAt:{serializedName:"createdAt",type:{name:"DateTime"}},lastModifiedBy:{serializedName:"lastModifiedBy",type:{name:"String"}},lastModifiedByType:{serializedName:"lastModifiedByType",type:{name:"String"}},lastModifiedAt:{serializedName:"lastModifiedAt",type:{name:"DateTime"}}}}},Resource={type:{name:"Composite",className:"Resource",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}}}}},CloudError={type:{name:"Composite",className:"CloudError",modelProperties:{error:{serializedName:"error",type:{name:"Composite",className:"CloudErrorBody"}}}}},CloudErrorBody={type:{name:"Composite",className:"CloudErrorBody",modelProperties:{code:{serializedName:"code",type:{name:"String"}},message:{serializedName:"message",type:{name:"String"}},target:{serializedName:"target",type:{name:"String"}},details:{serializedName:"details",type:{name:"Sequence",element:{type:{name:"Composite",className:"CloudErrorBody"}}}}}}},ImageTemplateUpdateParameters={type:{name:"Composite",className:"ImageTemplateUpdateParameters",modelProperties:{identity:{serializedName:"identity",type:{name:"Composite",className:"ImageTemplateIdentity"}},tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}},RunOutputCollection={type:{name:"Composite",className:"RunOutputCollection",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"RunOutput"}}}},nextLink:{serializedName:"nextLink",type:{name:"String"}}}}},SubResource={type:{name:"Composite",className:"SubResource",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{serializedName:"name",required:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}}}}},OperationListResult={type:{name:"Composite",className:"OperationListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"Operation"}}}},nextLink:{serializedName:"nextLink",type:{name:"String"}}}}},Operation={type:{name:"Composite",className:"Operation",modelProperties:{name:{serializedName:"name",type:{name:"String"}},display:{serializedName:"display",type:{name:"Composite",className:"OperationDisplay"}},origin:{serializedName:"origin",type:{name:"String"}},properties:{serializedName:"properties",type:{name:"Dictionary",value:{type:{name:"any"}}}},isDataAction:{serializedName:"isDataAction",type:{name:"Boolean"}}}}},OperationDisplay={type:{name:"Composite",className:"OperationDisplay",modelProperties:{provider:{serializedName:"provider",type:{name:"String"}},operation:{serializedName:"operation",type:{name:"String"}},resource:{serializedName:"resource",type:{name:"String"}},description:{serializedName:"description",type:{name:"String"}}}}},PlatformImagePurchasePlan={type:{name:"Composite",className:"PlatformImagePurchasePlan",modelProperties:{planName:{serializedName:"planName",required:!0,type:{name:"String"}},planProduct:{serializedName:"planProduct",required:!0,type:{name:"String"}},planPublisher:{serializedName:"planPublisher",required:!0,type:{name:"String"}}}}},ImageTemplatePlatformImageSource={serializedName:"PlatformImage",type:{name:"Composite",className:"ImageTemplatePlatformImageSource",uberParent:"ImageTemplateSource",polymorphicDiscriminator:ImageTemplateSource.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},ImageTemplateSource.type.modelProperties),{publisher:{serializedName:"publisher",type:{name:"String"}},offer:{serializedName:"offer",type:{name:"String"}},sku:{serializedName:"sku",type:{name:"String"}},version:{serializedName:"version",type:{name:"String"}},exactVersion:{serializedName:"exactVersion",readOnly:!0,type:{name:"String"}},planInfo:{serializedName:"planInfo",type:{name:"Composite",className:"PlatformImagePurchasePlan"}}})}},ImageTemplateManagedImageSource={serializedName:"ManagedImage",type:{name:"Composite",className:"ImageTemplateManagedImageSource",uberParent:"ImageTemplateSource",polymorphicDiscriminator:ImageTemplateSource.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},ImageTemplateSource.type.modelProperties),{imageId:{serializedName:"imageId",required:!0,type:{name:"String"}}})}},ImageTemplateSharedImageVersionSource={serializedName:"SharedImageVersion",type:{name:"Composite",className:"ImageTemplateSharedImageVersionSource",uberParent:"ImageTemplateSource",polymorphicDiscriminator:ImageTemplateSource.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},ImageTemplateSource.type.modelProperties),{imageVersionId:{serializedName:"imageVersionId",required:!0,type:{name:"String"}}})}},ImageTemplateShellCustomizer={serializedName:"Shell",type:{name:"Composite",className:"ImageTemplateShellCustomizer",uberParent:"ImageTemplateCustomizer",polymorphicDiscriminator:ImageTemplateCustomizer.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},ImageTemplateCustomizer.type.modelProperties),{scriptUri:{serializedName:"scriptUri",type:{name:"String"}},sha256Checksum:{defaultValue:"",serializedName:"sha256Checksum",type:{name:"String"}},inline:{serializedName:"inline",type:{name:"Sequence",element:{type:{name:"String"}}}}})}},ImageTemplateRestartCustomizer={serializedName:"WindowsRestart",type:{name:"Composite",className:"ImageTemplateRestartCustomizer",uberParent:"ImageTemplateCustomizer",polymorphicDiscriminator:ImageTemplateCustomizer.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},ImageTemplateCustomizer.type.modelProperties),{restartCommand:{serializedName:"restartCommand",type:{name:"String"}},restartCheckCommand:{serializedName:"restartCheckCommand",type:{name:"String"}},restartTimeout:{serializedName:"restartTimeout",type:{name:"String"}}})}},ImageTemplateWindowsUpdateCustomizer={serializedName:"WindowsUpdate",type:{name:"Composite",className:"ImageTemplateWindowsUpdateCustomizer",uberParent:"ImageTemplateCustomizer",polymorphicDiscriminator:ImageTemplateCustomizer.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},ImageTemplateCustomizer.type.modelProperties),{searchCriteria:{serializedName:"searchCriteria",type:{name:"String"}},filters:{serializedName:"filters",type:{name:"Sequence",element:{type:{name:"String"}}}},updateLimit:{constraints:{InclusiveMinimum:0},serializedName:"updateLimit",type:{name:"Number"}}})}},ImageTemplatePowerShellCustomizer={serializedName:"PowerShell",type:{name:"Composite",className:"ImageTemplatePowerShellCustomizer",uberParent:"ImageTemplateCustomizer",polymorphicDiscriminator:ImageTemplateCustomizer.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},ImageTemplateCustomizer.type.modelProperties),{scriptUri:{serializedName:"scriptUri",type:{name:"String"}},sha256Checksum:{defaultValue:"",serializedName:"sha256Checksum",type:{name:"String"}},inline:{serializedName:"inline",type:{name:"Sequence",element:{type:{name:"String"}}}},runElevated:{defaultValue:!1,serializedName:"runElevated",type:{name:"Boolean"}},runAsSystem:{defaultValue:!1,serializedName:"runAsSystem",type:{name:"Boolean"}},validExitCodes:{serializedName:"validExitCodes",type:{name:"Sequence",element:{type:{name:"Number"}}}}})}},ImageTemplateFileCustomizer={serializedName:"File",type:{name:"Composite",className:"ImageTemplateFileCustomizer",uberParent:"ImageTemplateCustomizer",polymorphicDiscriminator:ImageTemplateCustomizer.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},ImageTemplateCustomizer.type.modelProperties),{sourceUri:{serializedName:"sourceUri",type:{name:"String"}},sha256Checksum:{defaultValue:"",serializedName:"sha256Checksum",type:{name:"String"}},destination:{serializedName:"destination",type:{name:"String"}}})}},ImageTemplateManagedImageDistributor={serializedName:"ManagedImage",type:{name:"Composite",className:"ImageTemplateManagedImageDistributor",uberParent:"ImageTemplateDistributor",polymorphicDiscriminator:ImageTemplateDistributor.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},ImageTemplateDistributor.type.modelProperties),{imageId:{serializedName:"imageId",required:!0,type:{name:"String"}},location:{serializedName:"location",required:!0,type:{name:"String"}}})}},ImageTemplateSharedImageDistributor={serializedName:"SharedImage",type:{name:"Composite",className:"ImageTemplateSharedImageDistributor",uberParent:"ImageTemplateDistributor",polymorphicDiscriminator:ImageTemplateDistributor.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},ImageTemplateDistributor.type.modelProperties),{galleryImageId:{serializedName:"galleryImageId",required:!0,type:{name:"String"}},replicationRegions:{serializedName:"replicationRegions",required:!0,type:{name:"Sequence",element:{type:{name:"String"}}}},excludeFromLatest:{defaultValue:!1,serializedName:"excludeFromLatest",type:{name:"Boolean"}},storageAccountType:{serializedName:"storageAccountType",type:{name:"String"}}})}},ImageTemplateVhdDistributor={serializedName:"VHD",type:{name:"Composite",className:"ImageTemplateVhdDistributor",uberParent:"ImageTemplateDistributor",polymorphicDiscriminator:ImageTemplateDistributor.type.polymorphicDiscriminator,modelProperties:Object.assign({},ImageTemplateDistributor.type.modelProperties)}},TrackedResource={type:{name:"Composite",className:"TrackedResource",modelProperties:Object.assign(Object.assign({},Resource.type.modelProperties),{tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}},location:{serializedName:"location",required:!0,type:{name:"String"}}})}},RunOutput={type:{name:"Composite",className:"RunOutput",modelProperties:Object.assign(Object.assign({},SubResource.type.modelProperties),{artifactId:{serializedName:"properties.artifactId",type:{name:"String"}},artifactUri:{serializedName:"properties.artifactUri",type:{name:"String"}},provisioningState:{serializedName:"properties.provisioningState",readOnly:!0,type:{name:"Enum",allowedValues:["Creating","Updating","Succeeded","Failed","Deleting"]}}})}},ImageTemplate={type:{name:"Composite",className:"ImageTemplate",modelProperties:Object.assign(Object.assign({},TrackedResource.type.modelProperties),{identity:{serializedName:"identity",type:{name:"Composite",className:"ImageTemplateIdentity"}},systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}},source:{serializedName:"properties.source",type:{name:"Composite",className:"ImageTemplateSource"}},customize:{serializedName:"properties.customize",type:{name:"Sequence",element:{type:{name:"Composite",className:"ImageTemplateCustomizer"}}}},distribute:{serializedName:"properties.distribute",type:{name:"Sequence",element:{type:{name:"Composite",className:"ImageTemplateDistributor"}}}},provisioningState:{serializedName:"properties.provisioningState",readOnly:!0,type:{name:"Enum",allowedValues:["Creating","Updating","Succeeded","Failed","Deleting"]}},provisioningError:{serializedName:"properties.provisioningError",type:{name:"Composite",className:"ProvisioningError"}},lastRunStatus:{serializedName:"properties.lastRunStatus",type:{name:"Composite",className:"ImageTemplateLastRunStatus"}},buildTimeoutInMinutes:{defaultValue:0,constraints:{InclusiveMaximum:960,InclusiveMinimum:0},serializedName:"properties.buildTimeoutInMinutes",type:{name:"Number"}},vmProfile:{serializedName:"properties.vmProfile",type:{name:"Composite",className:"ImageTemplateVmProfile"}}})}};let discriminators={ImageTemplateSource:ImageTemplateSource,ImageTemplateCustomizer:ImageTemplateCustomizer,ImageTemplateDistributor:ImageTemplateDistributor,"ImageTemplateSource.PlatformImage":ImageTemplatePlatformImageSource,"ImageTemplateSource.ManagedImage":ImageTemplateManagedImageSource,"ImageTemplateSource.SharedImageVersion":ImageTemplateSharedImageVersionSource,"ImageTemplateCustomizer.Shell":ImageTemplateShellCustomizer,"ImageTemplateCustomizer.WindowsRestart":ImageTemplateRestartCustomizer,"ImageTemplateCustomizer.WindowsUpdate":ImageTemplateWindowsUpdateCustomizer,"ImageTemplateCustomizer.PowerShell":ImageTemplatePowerShellCustomizer,"ImageTemplateCustomizer.File":ImageTemplateFileCustomizer,"ImageTemplateDistributor.ManagedImage":ImageTemplateManagedImageDistributor,"ImageTemplateDistributor.SharedImage":ImageTemplateSharedImageDistributor,"ImageTemplateDistributor.VHD":ImageTemplateVhdDistributor};var Mappers=Object.freeze({__proto__:null,ImageTemplateListResult:ImageTemplateListResult,ImageTemplateSource:ImageTemplateSource,ImageTemplateCustomizer:ImageTemplateCustomizer,ImageTemplateDistributor:ImageTemplateDistributor,ProvisioningError:ProvisioningError,ImageTemplateLastRunStatus:ImageTemplateLastRunStatus,ImageTemplateVmProfile:ImageTemplateVmProfile,VirtualNetworkConfig:VirtualNetworkConfig,ImageTemplateIdentity:ImageTemplateIdentity,ComponentsVrq145SchemasImagetemplateidentityPropertiesUserassignedidentitiesAdditionalproperties:ComponentsVrq145SchemasImagetemplateidentityPropertiesUserassignedidentitiesAdditionalproperties,SystemData:SystemData,Resource:Resource,CloudError:CloudError,CloudErrorBody:CloudErrorBody,ImageTemplateUpdateParameters:ImageTemplateUpdateParameters,RunOutputCollection:RunOutputCollection,SubResource:SubResource,OperationListResult:OperationListResult,Operation:Operation,OperationDisplay:OperationDisplay,PlatformImagePurchasePlan:PlatformImagePurchasePlan,ImageTemplatePlatformImageSource:ImageTemplatePlatformImageSource,ImageTemplateManagedImageSource:ImageTemplateManagedImageSource,ImageTemplateSharedImageVersionSource:ImageTemplateSharedImageVersionSource,ImageTemplateShellCustomizer:ImageTemplateShellCustomizer,ImageTemplateRestartCustomizer:ImageTemplateRestartCustomizer,ImageTemplateWindowsUpdateCustomizer:ImageTemplateWindowsUpdateCustomizer,ImageTemplatePowerShellCustomizer:ImageTemplatePowerShellCustomizer,ImageTemplateFileCustomizer:ImageTemplateFileCustomizer,ImageTemplateManagedImageDistributor:ImageTemplateManagedImageDistributor,ImageTemplateSharedImageDistributor:ImageTemplateSharedImageDistributor,ImageTemplateVhdDistributor:ImageTemplateVhdDistributor,TrackedResource:TrackedResource,RunOutput:RunOutput,ImageTemplate:ImageTemplate,discriminators:discriminators});const accept={parameterPath:"accept",mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},$host={parameterPath:"$host",mapper:{serializedName:"$host",required:!0,type:{name:"String"}},skipEncoding:!0},subscriptionId={parameterPath:"subscriptionId",mapper:{serializedName:"subscriptionId",required:!0,type:{name:"String"}}},apiVersion={parameterPath:"apiVersion",mapper:{defaultValue:"2021-10-01",isConstant:!0,serializedName:"api-version",type:{name:"String"}}},resourceGroupName={parameterPath:"resourceGroupName",mapper:{serializedName:"resourceGroupName",required:!0,type:{name:"String"}}},contentType={parameterPath:["options","contentType"],mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},parameters={parameterPath:"parameters",mapper:ImageTemplate},imageTemplateName={parameterPath:"imageTemplateName",mapper:{constraints:{Pattern:new RegExp("^[A-Za-z0-9-_.]{1,64}$")},serializedName:"imageTemplateName",required:!0,type:{name:"String"}}},parameters1={parameterPath:"parameters",mapper:ImageTemplateUpdateParameters},runOutputName={parameterPath:"runOutputName",mapper:{constraints:{Pattern:new RegExp("^[A-Za-z0-9-_.]{1,64}$")},serializedName:"runOutputName",required:!0,type:{name:"String"}}},nextLink={parameterPath:"nextLink",mapper:{serializedName:"nextLink",required:!0,type:{name:"String"}},skipEncoding:!0};class LroImpl{constructor(e,t,a,r=a.path,i=a.httpMethod){this.sendOperationFn=e,this.args=t,this.spec=a,this.requestPath=r,this.requestMethod=i}sendInitialRequest(){return tslib.__awaiter(this,void 0,void 0,function*(){return this.sendOperationFn(this.args,this.spec)})}sendPollRequest(t){return tslib.__awaiter(this,void 0,void 0,function*(){var e=this.spec,e=tslib.__rest(e,["requestBody"]);return this.sendOperationFn(this.args,Object.assign(Object.assign({},e),{path:t,httpMethod:"GET"}))})}}class VirtualMachineImageTemplatesImpl{constructor(e){this.client=e}list(e){const t=this.listPagingAll(e);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e)}}listPagingPage(a){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(a));yield yield tslib.__await(e.value||[]);let t=e.nextLink;for(;t;)e=yield tslib.__await(this._listNext(t,a)),t=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(s){return tslib.__asyncGenerator(this,arguments,function*(){var t,e;try{for(var a,r=tslib.__asyncValues(this.listPagingPage(s));!(a=yield tslib.__await(r.next())).done;){var i=a.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(i)))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=r.return)&&(yield tslib.__await(e.call(r)))}finally{if(t)throw t.error}}})}listByResourceGroup(e,t){const a=this.listByResourceGroupPagingAll(e,t);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByResourceGroupPagingPage(e,t)}}listByResourceGroupPagingPage(a,r){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByResourceGroup(a,r));yield yield tslib.__await(e.value||[]);let t=e.nextLink;for(;t;)e=yield tslib.__await(this._listByResourceGroupNext(a,t,r)),t=e.nextLink,yield yield tslib.__await(e.value||[])})}listByResourceGroupPagingAll(s,o){return tslib.__asyncGenerator(this,arguments,function*(){var t,e;try{for(var a,r=tslib.__asyncValues(this.listByResourceGroupPagingPage(s,o));!(a=yield tslib.__await(r.next())).done;){var i=a.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(i)))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=r.return)&&(yield tslib.__await(e.call(r)))}finally{if(t)throw t.error}}})}listRunOutputs(e,t,a){const r=this.listRunOutputsPagingAll(e,t,a);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listRunOutputsPagingPage(e,t,a)}}listRunOutputsPagingPage(a,r,i){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listRunOutputs(a,r,i));yield yield tslib.__await(e.value||[]);let t=e.nextLink;for(;t;)e=yield tslib.__await(this._listRunOutputsNext(a,r,t,i)),t=e.nextLink,yield yield tslib.__await(e.value||[])})}listRunOutputsPagingAll(s,o,n){return tslib.__asyncGenerator(this,arguments,function*(){var t,e;try{for(var a,r=tslib.__asyncValues(this.listRunOutputsPagingPage(s,o,n));!(a=yield tslib.__await(r.next())).done;){var i=a.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(i)))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=r.return)&&(yield tslib.__await(e.call(r)))}finally{if(t)throw t.error}}})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec)}_listByResourceGroup(e,t){return this.client.sendOperationRequest({resourceGroupName:e,options:t},listByResourceGroupOperationSpec)}beginCreateOrUpdate(t,a,r,i){return tslib.__awaiter(this,void 0,void 0,function*(){const s=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=new LroImpl((t,i)=>tslib.__awaiter(this,void 0,void 0,function*(){let a=void 0;const r=null===(e=t.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{a=e,null!==r&&void 0!==r&&r(e,t)}})});return{flatResponse:yield s(e,i),rawResponse:{statusCode:a.status,body:a.parsedBody,headers:a.headers.toJSON()}}}),{resourceGroupName:t,imageTemplateName:a,parameters:r,options:i},createOrUpdateOperationSpec);return new coreLro.LroEngine(e,{resumeFrom:null==i?void 0:i.resumeFrom,intervalInMs:null==i?void 0:i.updateIntervalInMs,lroResourceLocationConfig:"azure-async-operation"})})}beginCreateOrUpdateAndWait(t,a,r,i){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginCreateOrUpdate(t,a,r,i);return e.pollUntilDone()})}beginUpdate(t,a,r,i){return tslib.__awaiter(this,void 0,void 0,function*(){const s=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=new LroImpl((t,i)=>tslib.__awaiter(this,void 0,void 0,function*(){let a=void 0;const r=null===(e=t.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{a=e,null!==r&&void 0!==r&&r(e,t)}})});return{flatResponse:yield s(e,i),rawResponse:{statusCode:a.status,body:a.parsedBody,headers:a.headers.toJSON()}}}),{resourceGroupName:t,imageTemplateName:a,parameters:r,options:i},updateOperationSpec);return new coreLro.LroEngine(e,{resumeFrom:null==i?void 0:i.resumeFrom,intervalInMs:null==i?void 0:i.updateIntervalInMs,lroResourceLocationConfig:"azure-async-operation"})})}beginUpdateAndWait(t,a,r,i){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginUpdate(t,a,r,i);return e.pollUntilDone()})}get(e,t,a){return this.client.sendOperationRequest({resourceGroupName:e,imageTemplateName:t,options:a},getOperationSpec)}beginDelete(t,a,r){return tslib.__awaiter(this,void 0,void 0,function*(){const s=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=new LroImpl((t,i)=>tslib.__awaiter(this,void 0,void 0,function*(){let a=void 0;const r=null===(e=t.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{a=e,null!==r&&void 0!==r&&r(e,t)}})});return{flatResponse:yield s(e,i),rawResponse:{statusCode:a.status,body:a.parsedBody,headers:a.headers.toJSON()}}}),{resourceGroupName:t,imageTemplateName:a,options:r},deleteOperationSpec);return new coreLro.LroEngine(e,{resumeFrom:null==r?void 0:r.resumeFrom,intervalInMs:null==r?void 0:r.updateIntervalInMs,lroResourceLocationConfig:"azure-async-operation"})})}beginDeleteAndWait(t,a,r){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginDelete(t,a,r);return e.pollUntilDone()})}beginRun(t,a,r){return tslib.__awaiter(this,void 0,void 0,function*(){const s=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=new LroImpl((t,i)=>tslib.__awaiter(this,void 0,void 0,function*(){let a=void 0;const r=null===(e=t.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{a=e,null!==r&&void 0!==r&&r(e,t)}})});return{flatResponse:yield s(e,i),rawResponse:{statusCode:a.status,body:a.parsedBody,headers:a.headers.toJSON()}}}),{resourceGroupName:t,imageTemplateName:a,options:r},runOperationSpec);return new coreLro.LroEngine(e,{resumeFrom:null==r?void 0:r.resumeFrom,intervalInMs:null==r?void 0:r.updateIntervalInMs,lroResourceLocationConfig:"azure-async-operation"})})}beginRunAndWait(t,a,r){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginRun(t,a,r);return e.pollUntilDone()})}beginCancel(t,a,r){return tslib.__awaiter(this,void 0,void 0,function*(){const s=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=new LroImpl((t,i)=>tslib.__awaiter(this,void 0,void 0,function*(){let a=void 0;const r=null===(e=t.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{a=e,null!==r&&void 0!==r&&r(e,t)}})});return{flatResponse:yield s(e,i),rawResponse:{statusCode:a.status,body:a.parsedBody,headers:a.headers.toJSON()}}}),{resourceGroupName:t,imageTemplateName:a,options:r},cancelOperationSpec);return new coreLro.LroEngine(e,{resumeFrom:null==r?void 0:r.resumeFrom,intervalInMs:null==r?void 0:r.updateIntervalInMs,lroResourceLocationConfig:"azure-async-operation"})})}beginCancelAndWait(t,a,r){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginCancel(t,a,r);return e.pollUntilDone()})}_listRunOutputs(e,t,a){return this.client.sendOperationRequest({resourceGroupName:e,imageTemplateName:t,options:a},listRunOutputsOperationSpec)}getRunOutput(e,t,a,r){return this.client.sendOperationRequest({resourceGroupName:e,imageTemplateName:t,runOutputName:a,options:r},getRunOutputOperationSpec)}_listNext(e,t){return this.client.sendOperationRequest({nextLink:e,options:t},listNextOperationSpec)}_listByResourceGroupNext(e,t,a){return this.client.sendOperationRequest({resourceGroupName:e,nextLink:t,options:a},listByResourceGroupNextOperationSpec)}_listRunOutputsNext(e,t,a,r){return this.client.sendOperationRequest({resourceGroupName:e,imageTemplateName:t,nextLink:a,options:r},listRunOutputsNextOperationSpec)}}const serializer=coreClient.createSerializer(Mappers,!1),listOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.VirtualMachineImages/imageTemplates",httpMethod:"GET",responses:{200:{bodyMapper:ImageTemplateListResult},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId],headerParameters:[accept],serializer:serializer},listByResourceGroupOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates",httpMethod:"GET",responses:{200:{bodyMapper:ImageTemplateListResult},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName],headerParameters:[accept],serializer:serializer},createOrUpdateOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}",httpMethod:"PUT",responses:{200:{bodyMapper:ImageTemplate},201:{bodyMapper:ImageTemplate},202:{bodyMapper:ImageTemplate},204:{bodyMapper:ImageTemplate},default:{bodyMapper:CloudError}},requestBody:parameters,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,imageTemplateName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer},updateOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}",httpMethod:"PATCH",responses:{200:{bodyMapper:ImageTemplate},201:{bodyMapper:ImageTemplate},202:{bodyMapper:ImageTemplate},204:{bodyMapper:ImageTemplate},default:{bodyMapper:CloudError}},requestBody:parameters1,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,imageTemplateName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer},getOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}",httpMethod:"GET",responses:{200:{bodyMapper:ImageTemplate},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,imageTemplateName],headerParameters:[accept],serializer:serializer},deleteOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,imageTemplateName],headerParameters:[accept],serializer:serializer},runOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}/run",httpMethod:"POST",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,imageTemplateName],headerParameters:[accept],serializer:serializer},cancelOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}/cancel",httpMethod:"POST",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,imageTemplateName],headerParameters:[accept],serializer:serializer},listRunOutputsOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}/runOutputs",httpMethod:"GET",responses:{200:{bodyMapper:RunOutputCollection},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,imageTemplateName],headerParameters:[accept],serializer:serializer},getRunOutputOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}/runOutputs/{runOutputName}",httpMethod:"GET",responses:{200:{bodyMapper:RunOutput},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,imageTemplateName,runOutputName],headerParameters:[accept],serializer:serializer},listNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:ImageTemplateListResult},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,nextLink],headerParameters:[accept],serializer:serializer},listByResourceGroupNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:ImageTemplateListResult},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,nextLink],headerParameters:[accept],serializer:serializer},listRunOutputsNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:RunOutputCollection},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,imageTemplateName,nextLink],headerParameters:[accept],serializer:serializer};class OperationsImpl{constructor(e){this.client=e}list(e){const t=this.listPagingAll(e);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e)}}listPagingPage(a){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(a));yield yield tslib.__await(e.value||[]);let t=e.nextLink;for(;t;)e=yield tslib.__await(this._listNext(t,a)),t=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(s){return tslib.__asyncGenerator(this,arguments,function*(){var t,e;try{for(var a,r=tslib.__asyncValues(this.listPagingPage(s));!(a=yield tslib.__await(r.next())).done;){var i=a.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(i)))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=r.return)&&(yield tslib.__await(e.call(r)))}finally{if(t)throw t.error}}})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec$1)}_listNext(e,t){return this.client.sendOperationRequest({nextLink:e,options:t},listNextOperationSpec$1)}}const serializer$1=coreClient.createSerializer(Mappers,!1),listOperationSpec$1={path:"/providers/Microsoft.VirtualMachineImages/operations",httpMethod:"GET",responses:{200:{bodyMapper:OperationListResult},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer$1},listNextOperationSpec$1={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:OperationListResult},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,nextLink],headerParameters:[accept],serializer:serializer$1};class ImageBuilderClient extends coreClient.ServiceClient{constructor(e,t,a){if(void 0===e)throw new Error("'credentials' cannot be null");if(void 0===t)throw new Error("'subscriptionId' cannot be null");var r={requestContentType:"application/json; charset=utf-8",credential:e},e="azsdk-js-arm-imagebuilder/1.0.0",e=(a=a||{}).userAgentOptions&&a.userAgentOptions.userAgentPrefix?a.userAgentOptions.userAgentPrefix+" "+e:e;a.credentialScopes||(a.credentialScopes=["https://management.azure.com/.default"]),super(Object.assign(Object.assign(Object.assign({},r),a),{userAgentOptions:{userAgentPrefix:e},baseUri:a.endpoint||"https://management.azure.com"})),this.subscriptionId=t,this.$host=a.$host||"https://management.azure.com",this.apiVersion=a.apiVersion||"2021-10-01",this.virtualMachineImageTemplates=new VirtualMachineImageTemplatesImpl(this),this.operations=new OperationsImpl(this)}}exports.ImageBuilderClient=ImageBuilderClient;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var coreClient=require("@azure/core-client"),tslib=require("tslib"),coreLro=require("@azure/core-lro");!function(e){e.BadSourceType="BadSourceType",e.BadPIRSource="BadPIRSource",e.BadManagedImageSource="BadManagedImageSource",e.BadSharedImageVersionSource="BadSharedImageVersionSource",e.BadCustomizerType="BadCustomizerType",e.UnsupportedCustomizerType="UnsupportedCustomizerType",e.NoCustomizerScript="NoCustomizerScript",e.BadDistributeType="BadDistributeType",e.BadSharedImageDistribute="BadSharedImageDistribute",e.ServerError="ServerError",e.Other="Other"}(exports.KnownProvisioningErrorCode||(exports.KnownProvisioningErrorCode={})),function(e){e.User="User",e.Application="Application",e.ManagedIdentity="ManagedIdentity",e.Key="Key"}(exports.KnownCreatedByType||(exports.KnownCreatedByType={})),function(e){e.StandardLRS="Standard_LRS",e.StandardZRS="Standard_ZRS"}(exports.KnownSharedImageStorageAccountType||(exports.KnownSharedImageStorageAccountType={}));const ImageTemplateListResult={type:{name:"Composite",className:"ImageTemplateListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"ImageTemplate"}}}},nextLink:{serializedName:"nextLink",type:{name:"String"}}}}},ImageTemplateSource={type:{name:"Composite",className:"ImageTemplateSource",uberParent:"ImageTemplateSource",polymorphicDiscriminator:{serializedName:"type",clientName:"type"},modelProperties:{type:{serializedName:"type",required:!0,type:{name:"String"}}}}},ImageTemplateCustomizer={type:{name:"Composite",className:"ImageTemplateCustomizer",uberParent:"ImageTemplateCustomizer",polymorphicDiscriminator:{serializedName:"type",clientName:"type"},modelProperties:{type:{serializedName:"type",required:!0,type:{name:"String"}},name:{serializedName:"name",type:{name:"String"}}}}},ImageTemplateDistributor={type:{name:"Composite",className:"ImageTemplateDistributor",uberParent:"ImageTemplateDistributor",polymorphicDiscriminator:{serializedName:"type",clientName:"type"},modelProperties:{type:{serializedName:"type",required:!0,type:{name:"String"}},runOutputName:{constraints:{Pattern:new RegExp("^[A-Za-z0-9-_.]{1,64}$")},serializedName:"runOutputName",required:!0,type:{name:"String"}},artifactTags:{serializedName:"artifactTags",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}},ProvisioningError={type:{name:"Composite",className:"ProvisioningError",modelProperties:{provisioningErrorCode:{serializedName:"provisioningErrorCode",type:{name:"String"}},message:{serializedName:"message",type:{name:"String"}}}}},ImageTemplateLastRunStatus={type:{name:"Composite",className:"ImageTemplateLastRunStatus",modelProperties:{startTime:{serializedName:"startTime",type:{name:"DateTime"}},endTime:{serializedName:"endTime",type:{name:"DateTime"}},runState:{serializedName:"runState",type:{name:"Enum",allowedValues:["Running","Canceling","Succeeded","PartiallySucceeded","Failed","Canceled"]}},runSubState:{serializedName:"runSubState",type:{name:"Enum",allowedValues:["Queued","Building","Customizing","Distributing"]}},message:{serializedName:"message",type:{name:"String"}}}}},ImageTemplateVmProfile={type:{name:"Composite",className:"ImageTemplateVmProfile",modelProperties:{vmSize:{defaultValue:"",serializedName:"vmSize",type:{name:"String"}},osDiskSizeGB:{defaultValue:0,constraints:{InclusiveMinimum:0},serializedName:"osDiskSizeGB",type:{name:"Number"}},userAssignedIdentities:{serializedName:"userAssignedIdentities",type:{name:"Sequence",element:{type:{name:"String"}}}},vnetConfig:{serializedName:"vnetConfig",type:{name:"Composite",className:"VirtualNetworkConfig"}}}}},VirtualNetworkConfig={type:{name:"Composite",className:"VirtualNetworkConfig",modelProperties:{subnetId:{serializedName:"subnetId",type:{name:"String"}},proxyVmSize:{defaultValue:"",serializedName:"proxyVmSize",type:{name:"String"}}}}},ImageTemplateIdentity={type:{name:"Composite",className:"ImageTemplateIdentity",modelProperties:{type:{serializedName:"type",type:{name:"Enum",allowedValues:["UserAssigned","None"]}},userAssignedIdentities:{serializedName:"userAssignedIdentities",type:{name:"Dictionary",value:{type:{name:"Composite",className:"ComponentsVrq145SchemasImagetemplateidentityPropertiesUserassignedidentitiesAdditionalproperties"}}}}}}},ComponentsVrq145SchemasImagetemplateidentityPropertiesUserassignedidentitiesAdditionalproperties={type:{name:"Composite",className:"ComponentsVrq145SchemasImagetemplateidentityPropertiesUserassignedidentitiesAdditionalproperties",modelProperties:{principalId:{serializedName:"principalId",readOnly:!0,type:{name:"String"}},clientId:{serializedName:"clientId",readOnly:!0,type:{name:"String"}}}}},SystemData={type:{name:"Composite",className:"SystemData",modelProperties:{createdBy:{serializedName:"createdBy",type:{name:"String"}},createdByType:{serializedName:"createdByType",type:{name:"String"}},createdAt:{serializedName:"createdAt",type:{name:"DateTime"}},lastModifiedBy:{serializedName:"lastModifiedBy",type:{name:"String"}},lastModifiedByType:{serializedName:"lastModifiedByType",type:{name:"String"}},lastModifiedAt:{serializedName:"lastModifiedAt",type:{name:"DateTime"}}}}},Resource={type:{name:"Composite",className:"Resource",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}}}}},CloudError={type:{name:"Composite",className:"CloudError",modelProperties:{error:{serializedName:"error",type:{name:"Composite",className:"CloudErrorBody"}}}}},CloudErrorBody={type:{name:"Composite",className:"CloudErrorBody",modelProperties:{code:{serializedName:"code",type:{name:"String"}},message:{serializedName:"message",type:{name:"String"}},target:{serializedName:"target",type:{name:"String"}},details:{serializedName:"details",type:{name:"Sequence",element:{type:{name:"Composite",className:"CloudErrorBody"}}}}}}},ImageTemplateUpdateParameters={type:{name:"Composite",className:"ImageTemplateUpdateParameters",modelProperties:{identity:{serializedName:"identity",type:{name:"Composite",className:"ImageTemplateIdentity"}},tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}},RunOutputCollection={type:{name:"Composite",className:"RunOutputCollection",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"RunOutput"}}}},nextLink:{serializedName:"nextLink",type:{name:"String"}}}}},SubResource={type:{name:"Composite",className:"SubResource",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{serializedName:"name",required:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}}}}},OperationListResult={type:{name:"Composite",className:"OperationListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"Operation"}}}},nextLink:{serializedName:"nextLink",type:{name:"String"}}}}},Operation={type:{name:"Composite",className:"Operation",modelProperties:{name:{serializedName:"name",type:{name:"String"}},display:{serializedName:"display",type:{name:"Composite",className:"OperationDisplay"}},origin:{serializedName:"origin",type:{name:"String"}},properties:{serializedName:"properties",type:{name:"Dictionary",value:{type:{name:"any"}}}},isDataAction:{serializedName:"isDataAction",type:{name:"Boolean"}}}}},OperationDisplay={type:{name:"Composite",className:"OperationDisplay",modelProperties:{provider:{serializedName:"provider",type:{name:"String"}},operation:{serializedName:"operation",type:{name:"String"}},resource:{serializedName:"resource",type:{name:"String"}},description:{serializedName:"description",type:{name:"String"}}}}},PlatformImagePurchasePlan={type:{name:"Composite",className:"PlatformImagePurchasePlan",modelProperties:{planName:{serializedName:"planName",required:!0,type:{name:"String"}},planProduct:{serializedName:"planProduct",required:!0,type:{name:"String"}},planPublisher:{serializedName:"planPublisher",required:!0,type:{name:"String"}}}}},ImageTemplatePlatformImageSource={serializedName:"PlatformImage",type:{name:"Composite",className:"ImageTemplatePlatformImageSource",uberParent:"ImageTemplateSource",polymorphicDiscriminator:ImageTemplateSource.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},ImageTemplateSource.type.modelProperties),{publisher:{serializedName:"publisher",type:{name:"String"}},offer:{serializedName:"offer",type:{name:"String"}},sku:{serializedName:"sku",type:{name:"String"}},version:{serializedName:"version",type:{name:"String"}},exactVersion:{serializedName:"exactVersion",readOnly:!0,type:{name:"String"}},planInfo:{serializedName:"planInfo",type:{name:"Composite",className:"PlatformImagePurchasePlan"}}})}},ImageTemplateManagedImageSource={serializedName:"ManagedImage",type:{name:"Composite",className:"ImageTemplateManagedImageSource",uberParent:"ImageTemplateSource",polymorphicDiscriminator:ImageTemplateSource.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},ImageTemplateSource.type.modelProperties),{imageId:{serializedName:"imageId",required:!0,type:{name:"String"}}})}},ImageTemplateSharedImageVersionSource={serializedName:"SharedImageVersion",type:{name:"Composite",className:"ImageTemplateSharedImageVersionSource",uberParent:"ImageTemplateSource",polymorphicDiscriminator:ImageTemplateSource.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},ImageTemplateSource.type.modelProperties),{imageVersionId:{serializedName:"imageVersionId",required:!0,type:{name:"String"}}})}},ImageTemplateShellCustomizer={serializedName:"Shell",type:{name:"Composite",className:"ImageTemplateShellCustomizer",uberParent:"ImageTemplateCustomizer",polymorphicDiscriminator:ImageTemplateCustomizer.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},ImageTemplateCustomizer.type.modelProperties),{scriptUri:{serializedName:"scriptUri",type:{name:"String"}},sha256Checksum:{defaultValue:"",serializedName:"sha256Checksum",type:{name:"String"}},inline:{serializedName:"inline",type:{name:"Sequence",element:{type:{name:"String"}}}}})}},ImageTemplateRestartCustomizer={serializedName:"WindowsRestart",type:{name:"Composite",className:"ImageTemplateRestartCustomizer",uberParent:"ImageTemplateCustomizer",polymorphicDiscriminator:ImageTemplateCustomizer.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},ImageTemplateCustomizer.type.modelProperties),{restartCommand:{serializedName:"restartCommand",type:{name:"String"}},restartCheckCommand:{serializedName:"restartCheckCommand",type:{name:"String"}},restartTimeout:{serializedName:"restartTimeout",type:{name:"String"}}})}},ImageTemplateWindowsUpdateCustomizer={serializedName:"WindowsUpdate",type:{name:"Composite",className:"ImageTemplateWindowsUpdateCustomizer",uberParent:"ImageTemplateCustomizer",polymorphicDiscriminator:ImageTemplateCustomizer.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},ImageTemplateCustomizer.type.modelProperties),{searchCriteria:{serializedName:"searchCriteria",type:{name:"String"}},filters:{serializedName:"filters",type:{name:"Sequence",element:{type:{name:"String"}}}},updateLimit:{constraints:{InclusiveMinimum:0},serializedName:"updateLimit",type:{name:"Number"}}})}},ImageTemplatePowerShellCustomizer={serializedName:"PowerShell",type:{name:"Composite",className:"ImageTemplatePowerShellCustomizer",uberParent:"ImageTemplateCustomizer",polymorphicDiscriminator:ImageTemplateCustomizer.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},ImageTemplateCustomizer.type.modelProperties),{scriptUri:{serializedName:"scriptUri",type:{name:"String"}},sha256Checksum:{defaultValue:"",serializedName:"sha256Checksum",type:{name:"String"}},inline:{serializedName:"inline",type:{name:"Sequence",element:{type:{name:"String"}}}},runElevated:{defaultValue:!1,serializedName:"runElevated",type:{name:"Boolean"}},runAsSystem:{defaultValue:!1,serializedName:"runAsSystem",type:{name:"Boolean"}},validExitCodes:{serializedName:"validExitCodes",type:{name:"Sequence",element:{type:{name:"Number"}}}}})}},ImageTemplateFileCustomizer={serializedName:"File",type:{name:"Composite",className:"ImageTemplateFileCustomizer",uberParent:"ImageTemplateCustomizer",polymorphicDiscriminator:ImageTemplateCustomizer.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},ImageTemplateCustomizer.type.modelProperties),{sourceUri:{serializedName:"sourceUri",type:{name:"String"}},sha256Checksum:{defaultValue:"",serializedName:"sha256Checksum",type:{name:"String"}},destination:{serializedName:"destination",type:{name:"String"}}})}},ImageTemplateManagedImageDistributor={serializedName:"ManagedImage",type:{name:"Composite",className:"ImageTemplateManagedImageDistributor",uberParent:"ImageTemplateDistributor",polymorphicDiscriminator:ImageTemplateDistributor.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},ImageTemplateDistributor.type.modelProperties),{imageId:{serializedName:"imageId",required:!0,type:{name:"String"}},location:{serializedName:"location",required:!0,type:{name:"String"}}})}},ImageTemplateSharedImageDistributor={serializedName:"SharedImage",type:{name:"Composite",className:"ImageTemplateSharedImageDistributor",uberParent:"ImageTemplateDistributor",polymorphicDiscriminator:ImageTemplateDistributor.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},ImageTemplateDistributor.type.modelProperties),{galleryImageId:{serializedName:"galleryImageId",required:!0,type:{name:"String"}},replicationRegions:{serializedName:"replicationRegions",required:!0,type:{name:"Sequence",element:{type:{name:"String"}}}},excludeFromLatest:{defaultValue:!1,serializedName:"excludeFromLatest",type:{name:"Boolean"}},storageAccountType:{serializedName:"storageAccountType",type:{name:"String"}}})}},ImageTemplateVhdDistributor={serializedName:"VHD",type:{name:"Composite",className:"ImageTemplateVhdDistributor",uberParent:"ImageTemplateDistributor",polymorphicDiscriminator:ImageTemplateDistributor.type.polymorphicDiscriminator,modelProperties:Object.assign({},ImageTemplateDistributor.type.modelProperties)}},TrackedResource={type:{name:"Composite",className:"TrackedResource",modelProperties:Object.assign(Object.assign({},Resource.type.modelProperties),{tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}},location:{serializedName:"location",required:!0,type:{name:"String"}}})}},RunOutput={type:{name:"Composite",className:"RunOutput",modelProperties:Object.assign(Object.assign({},SubResource.type.modelProperties),{artifactId:{serializedName:"properties.artifactId",type:{name:"String"}},artifactUri:{serializedName:"properties.artifactUri",type:{name:"String"}},provisioningState:{serializedName:"properties.provisioningState",readOnly:!0,type:{name:"Enum",allowedValues:["Creating","Updating","Succeeded","Failed","Deleting"]}}})}},ImageTemplate={type:{name:"Composite",className:"ImageTemplate",modelProperties:Object.assign(Object.assign({},TrackedResource.type.modelProperties),{identity:{serializedName:"identity",type:{name:"Composite",className:"ImageTemplateIdentity"}},systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}},source:{serializedName:"properties.source",type:{name:"Composite",className:"ImageTemplateSource"}},customize:{serializedName:"properties.customize",type:{name:"Sequence",element:{type:{name:"Composite",className:"ImageTemplateCustomizer"}}}},distribute:{serializedName:"properties.distribute",type:{name:"Sequence",element:{type:{name:"Composite",className:"ImageTemplateDistributor"}}}},provisioningState:{serializedName:"properties.provisioningState",readOnly:!0,type:{name:"Enum",allowedValues:["Creating","Updating","Succeeded","Failed","Deleting"]}},provisioningError:{serializedName:"properties.provisioningError",type:{name:"Composite",className:"ProvisioningError"}},lastRunStatus:{serializedName:"properties.lastRunStatus",type:{name:"Composite",className:"ImageTemplateLastRunStatus"}},buildTimeoutInMinutes:{defaultValue:0,constraints:{InclusiveMaximum:960,InclusiveMinimum:0},serializedName:"properties.buildTimeoutInMinutes",type:{name:"Number"}},vmProfile:{serializedName:"properties.vmProfile",type:{name:"Composite",className:"ImageTemplateVmProfile"}}})}};let discriminators={ImageTemplateSource:ImageTemplateSource,ImageTemplateCustomizer:ImageTemplateCustomizer,ImageTemplateDistributor:ImageTemplateDistributor,"ImageTemplateSource.PlatformImage":ImageTemplatePlatformImageSource,"ImageTemplateSource.ManagedImage":ImageTemplateManagedImageSource,"ImageTemplateSource.SharedImageVersion":ImageTemplateSharedImageVersionSource,"ImageTemplateCustomizer.Shell":ImageTemplateShellCustomizer,"ImageTemplateCustomizer.WindowsRestart":ImageTemplateRestartCustomizer,"ImageTemplateCustomizer.WindowsUpdate":ImageTemplateWindowsUpdateCustomizer,"ImageTemplateCustomizer.PowerShell":ImageTemplatePowerShellCustomizer,"ImageTemplateCustomizer.File":ImageTemplateFileCustomizer,"ImageTemplateDistributor.ManagedImage":ImageTemplateManagedImageDistributor,"ImageTemplateDistributor.SharedImage":ImageTemplateSharedImageDistributor,"ImageTemplateDistributor.VHD":ImageTemplateVhdDistributor};var Mappers=Object.freeze({__proto__:null,ImageTemplateListResult:ImageTemplateListResult,ImageTemplateSource:ImageTemplateSource,ImageTemplateCustomizer:ImageTemplateCustomizer,ImageTemplateDistributor:ImageTemplateDistributor,ProvisioningError:ProvisioningError,ImageTemplateLastRunStatus:ImageTemplateLastRunStatus,ImageTemplateVmProfile:ImageTemplateVmProfile,VirtualNetworkConfig:VirtualNetworkConfig,ImageTemplateIdentity:ImageTemplateIdentity,ComponentsVrq145SchemasImagetemplateidentityPropertiesUserassignedidentitiesAdditionalproperties:ComponentsVrq145SchemasImagetemplateidentityPropertiesUserassignedidentitiesAdditionalproperties,SystemData:SystemData,Resource:Resource,CloudError:CloudError,CloudErrorBody:CloudErrorBody,ImageTemplateUpdateParameters:ImageTemplateUpdateParameters,RunOutputCollection:RunOutputCollection,SubResource:SubResource,OperationListResult:OperationListResult,Operation:Operation,OperationDisplay:OperationDisplay,PlatformImagePurchasePlan:PlatformImagePurchasePlan,ImageTemplatePlatformImageSource:ImageTemplatePlatformImageSource,ImageTemplateManagedImageSource:ImageTemplateManagedImageSource,ImageTemplateSharedImageVersionSource:ImageTemplateSharedImageVersionSource,ImageTemplateShellCustomizer:ImageTemplateShellCustomizer,ImageTemplateRestartCustomizer:ImageTemplateRestartCustomizer,ImageTemplateWindowsUpdateCustomizer:ImageTemplateWindowsUpdateCustomizer,ImageTemplatePowerShellCustomizer:ImageTemplatePowerShellCustomizer,ImageTemplateFileCustomizer:ImageTemplateFileCustomizer,ImageTemplateManagedImageDistributor:ImageTemplateManagedImageDistributor,ImageTemplateSharedImageDistributor:ImageTemplateSharedImageDistributor,ImageTemplateVhdDistributor:ImageTemplateVhdDistributor,TrackedResource:TrackedResource,RunOutput:RunOutput,ImageTemplate:ImageTemplate,discriminators:discriminators});const accept={parameterPath:"accept",mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},$host={parameterPath:"$host",mapper:{serializedName:"$host",required:!0,type:{name:"String"}},skipEncoding:!0},subscriptionId={parameterPath:"subscriptionId",mapper:{serializedName:"subscriptionId",required:!0,type:{name:"String"}}},apiVersion={parameterPath:"apiVersion",mapper:{defaultValue:"2021-10-01",isConstant:!0,serializedName:"api-version",type:{name:"String"}}},resourceGroupName={parameterPath:"resourceGroupName",mapper:{serializedName:"resourceGroupName",required:!0,type:{name:"String"}}},contentType={parameterPath:["options","contentType"],mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},parameters={parameterPath:"parameters",mapper:ImageTemplate},imageTemplateName={parameterPath:"imageTemplateName",mapper:{constraints:{Pattern:new RegExp("^[A-Za-z0-9-_.]{1,64}$")},serializedName:"imageTemplateName",required:!0,type:{name:"String"}}},parameters1={parameterPath:"parameters",mapper:ImageTemplateUpdateParameters},runOutputName={parameterPath:"runOutputName",mapper:{constraints:{Pattern:new RegExp("^[A-Za-z0-9-_.]{1,64}$")},serializedName:"runOutputName",required:!0,type:{name:"String"}}},nextLink={parameterPath:"nextLink",mapper:{serializedName:"nextLink",required:!0,type:{name:"String"}},skipEncoding:!0};class LroImpl{constructor(e,t,a,r=a.path,i=a.httpMethod){this.sendOperationFn=e,this.args=t,this.spec=a,this.requestPath=r,this.requestMethod=i}sendInitialRequest(){return tslib.__awaiter(this,void 0,void 0,function*(){return this.sendOperationFn(this.args,this.spec)})}sendPollRequest(t){return tslib.__awaiter(this,void 0,void 0,function*(){var e=this.spec,e=tslib.__rest(e,["requestBody"]);return this.sendOperationFn(this.args,Object.assign(Object.assign({},e),{path:t,httpMethod:"GET"}))})}}class VirtualMachineImageTemplatesImpl{constructor(e){this.client=e}list(e){const t=this.listPagingAll(e);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e)}}listPagingPage(a){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(a));yield yield tslib.__await(e.value||[]);let t=e.nextLink;for(;t;)e=yield tslib.__await(this._listNext(t,a)),t=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(s){return tslib.__asyncGenerator(this,arguments,function*(){var t,e;try{for(var a,r=tslib.__asyncValues(this.listPagingPage(s));!(a=yield tslib.__await(r.next())).done;){var i=a.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(i)))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=r.return)&&(yield tslib.__await(e.call(r)))}finally{if(t)throw t.error}}})}listByResourceGroup(e,t){const a=this.listByResourceGroupPagingAll(e,t);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByResourceGroupPagingPage(e,t)}}listByResourceGroupPagingPage(a,r){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByResourceGroup(a,r));yield yield tslib.__await(e.value||[]);let t=e.nextLink;for(;t;)e=yield tslib.__await(this._listByResourceGroupNext(a,t,r)),t=e.nextLink,yield yield tslib.__await(e.value||[])})}listByResourceGroupPagingAll(s,o){return tslib.__asyncGenerator(this,arguments,function*(){var t,e;try{for(var a,r=tslib.__asyncValues(this.listByResourceGroupPagingPage(s,o));!(a=yield tslib.__await(r.next())).done;){var i=a.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(i)))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=r.return)&&(yield tslib.__await(e.call(r)))}finally{if(t)throw t.error}}})}listRunOutputs(e,t,a){const r=this.listRunOutputsPagingAll(e,t,a);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listRunOutputsPagingPage(e,t,a)}}listRunOutputsPagingPage(a,r,i){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listRunOutputs(a,r,i));yield yield tslib.__await(e.value||[]);let t=e.nextLink;for(;t;)e=yield tslib.__await(this._listRunOutputsNext(a,r,t,i)),t=e.nextLink,yield yield tslib.__await(e.value||[])})}listRunOutputsPagingAll(s,o,n){return tslib.__asyncGenerator(this,arguments,function*(){var t,e;try{for(var a,r=tslib.__asyncValues(this.listRunOutputsPagingPage(s,o,n));!(a=yield tslib.__await(r.next())).done;){var i=a.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(i)))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=r.return)&&(yield tslib.__await(e.call(r)))}finally{if(t)throw t.error}}})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec)}_listByResourceGroup(e,t){return this.client.sendOperationRequest({resourceGroupName:e,options:t},listByResourceGroupOperationSpec)}beginCreateOrUpdate(t,a,r,i){return tslib.__awaiter(this,void 0,void 0,function*(){const s=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=new LroImpl((t,i)=>tslib.__awaiter(this,void 0,void 0,function*(){let a=void 0;const r=null===(e=t.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{a=e,null!==r&&void 0!==r&&r(e,t)}})});return{flatResponse:yield s(e,i),rawResponse:{statusCode:a.status,body:a.parsedBody,headers:a.headers.toJSON()}}}),{resourceGroupName:t,imageTemplateName:a,parameters:r,options:i},createOrUpdateOperationSpec);return new coreLro.LroEngine(e,{resumeFrom:null==i?void 0:i.resumeFrom,intervalInMs:null==i?void 0:i.updateIntervalInMs,lroResourceLocationConfig:"azure-async-operation"})})}beginCreateOrUpdateAndWait(t,a,r,i){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginCreateOrUpdate(t,a,r,i);return e.pollUntilDone()})}beginUpdate(t,a,r,i){return tslib.__awaiter(this,void 0,void 0,function*(){const s=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=new LroImpl((t,i)=>tslib.__awaiter(this,void 0,void 0,function*(){let a=void 0;const r=null===(e=t.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{a=e,null!==r&&void 0!==r&&r(e,t)}})});return{flatResponse:yield s(e,i),rawResponse:{statusCode:a.status,body:a.parsedBody,headers:a.headers.toJSON()}}}),{resourceGroupName:t,imageTemplateName:a,parameters:r,options:i},updateOperationSpec);return new coreLro.LroEngine(e,{resumeFrom:null==i?void 0:i.resumeFrom,intervalInMs:null==i?void 0:i.updateIntervalInMs,lroResourceLocationConfig:"azure-async-operation"})})}beginUpdateAndWait(t,a,r,i){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginUpdate(t,a,r,i);return e.pollUntilDone()})}get(e,t,a){return this.client.sendOperationRequest({resourceGroupName:e,imageTemplateName:t,options:a},getOperationSpec)}beginDelete(t,a,r){return tslib.__awaiter(this,void 0,void 0,function*(){const s=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=new LroImpl((t,i)=>tslib.__awaiter(this,void 0,void 0,function*(){let a=void 0;const r=null===(e=t.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{a=e,null!==r&&void 0!==r&&r(e,t)}})});return{flatResponse:yield s(e,i),rawResponse:{statusCode:a.status,body:a.parsedBody,headers:a.headers.toJSON()}}}),{resourceGroupName:t,imageTemplateName:a,options:r},deleteOperationSpec);return new coreLro.LroEngine(e,{resumeFrom:null==r?void 0:r.resumeFrom,intervalInMs:null==r?void 0:r.updateIntervalInMs,lroResourceLocationConfig:"azure-async-operation"})})}beginDeleteAndWait(t,a,r){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginDelete(t,a,r);return e.pollUntilDone()})}beginRun(t,a,r){return tslib.__awaiter(this,void 0,void 0,function*(){const s=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=new LroImpl((t,i)=>tslib.__awaiter(this,void 0,void 0,function*(){let a=void 0;const r=null===(e=t.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{a=e,null!==r&&void 0!==r&&r(e,t)}})});return{flatResponse:yield s(e,i),rawResponse:{statusCode:a.status,body:a.parsedBody,headers:a.headers.toJSON()}}}),{resourceGroupName:t,imageTemplateName:a,options:r},runOperationSpec);return new coreLro.LroEngine(e,{resumeFrom:null==r?void 0:r.resumeFrom,intervalInMs:null==r?void 0:r.updateIntervalInMs,lroResourceLocationConfig:"azure-async-operation"})})}beginRunAndWait(t,a,r){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginRun(t,a,r);return e.pollUntilDone()})}beginCancel(t,a,r){return tslib.__awaiter(this,void 0,void 0,function*(){const s=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=new LroImpl((t,i)=>tslib.__awaiter(this,void 0,void 0,function*(){let a=void 0;const r=null===(e=t.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{a=e,null!==r&&void 0!==r&&r(e,t)}})});return{flatResponse:yield s(e,i),rawResponse:{statusCode:a.status,body:a.parsedBody,headers:a.headers.toJSON()}}}),{resourceGroupName:t,imageTemplateName:a,options:r},cancelOperationSpec);return new coreLro.LroEngine(e,{resumeFrom:null==r?void 0:r.resumeFrom,intervalInMs:null==r?void 0:r.updateIntervalInMs,lroResourceLocationConfig:"azure-async-operation"})})}beginCancelAndWait(t,a,r){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginCancel(t,a,r);return e.pollUntilDone()})}_listRunOutputs(e,t,a){return this.client.sendOperationRequest({resourceGroupName:e,imageTemplateName:t,options:a},listRunOutputsOperationSpec)}getRunOutput(e,t,a,r){return this.client.sendOperationRequest({resourceGroupName:e,imageTemplateName:t,runOutputName:a,options:r},getRunOutputOperationSpec)}_listNext(e,t){return this.client.sendOperationRequest({nextLink:e,options:t},listNextOperationSpec)}_listByResourceGroupNext(e,t,a){return this.client.sendOperationRequest({resourceGroupName:e,nextLink:t,options:a},listByResourceGroupNextOperationSpec)}_listRunOutputsNext(e,t,a,r){return this.client.sendOperationRequest({resourceGroupName:e,imageTemplateName:t,nextLink:a,options:r},listRunOutputsNextOperationSpec)}}const serializer=coreClient.createSerializer(Mappers,!1),listOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.VirtualMachineImages/imageTemplates",httpMethod:"GET",responses:{200:{bodyMapper:ImageTemplateListResult},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId],headerParameters:[accept],serializer:serializer},listByResourceGroupOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates",httpMethod:"GET",responses:{200:{bodyMapper:ImageTemplateListResult},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName],headerParameters:[accept],serializer:serializer},createOrUpdateOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}",httpMethod:"PUT",responses:{200:{bodyMapper:ImageTemplate},201:{bodyMapper:ImageTemplate},202:{bodyMapper:ImageTemplate},204:{bodyMapper:ImageTemplate},default:{bodyMapper:CloudError}},requestBody:parameters,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,imageTemplateName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer},updateOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}",httpMethod:"PATCH",responses:{200:{bodyMapper:ImageTemplate},201:{bodyMapper:ImageTemplate},202:{bodyMapper:ImageTemplate},204:{bodyMapper:ImageTemplate},default:{bodyMapper:CloudError}},requestBody:parameters1,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,imageTemplateName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer},getOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}",httpMethod:"GET",responses:{200:{bodyMapper:ImageTemplate},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,imageTemplateName],headerParameters:[accept],serializer:serializer},deleteOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,imageTemplateName],headerParameters:[accept],serializer:serializer},runOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}/run",httpMethod:"POST",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,imageTemplateName],headerParameters:[accept],serializer:serializer},cancelOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}/cancel",httpMethod:"POST",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,imageTemplateName],headerParameters:[accept],serializer:serializer},listRunOutputsOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}/runOutputs",httpMethod:"GET",responses:{200:{bodyMapper:RunOutputCollection},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,imageTemplateName],headerParameters:[accept],serializer:serializer},getRunOutputOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}/runOutputs/{runOutputName}",httpMethod:"GET",responses:{200:{bodyMapper:RunOutput},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,imageTemplateName,runOutputName],headerParameters:[accept],serializer:serializer},listNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:ImageTemplateListResult},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,nextLink],headerParameters:[accept],serializer:serializer},listByResourceGroupNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:ImageTemplateListResult},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,nextLink],headerParameters:[accept],serializer:serializer},listRunOutputsNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:RunOutputCollection},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,imageTemplateName,nextLink],headerParameters:[accept],serializer:serializer};class OperationsImpl{constructor(e){this.client=e}list(e){const t=this.listPagingAll(e);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e)}}listPagingPage(a){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(a));yield yield tslib.__await(e.value||[]);let t=e.nextLink;for(;t;)e=yield tslib.__await(this._listNext(t,a)),t=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(s){return tslib.__asyncGenerator(this,arguments,function*(){var t,e;try{for(var a,r=tslib.__asyncValues(this.listPagingPage(s));!(a=yield tslib.__await(r.next())).done;){var i=a.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(i)))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=r.return)&&(yield tslib.__await(e.call(r)))}finally{if(t)throw t.error}}})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec$1)}_listNext(e,t){return this.client.sendOperationRequest({nextLink:e,options:t},listNextOperationSpec$1)}}const serializer$1=coreClient.createSerializer(Mappers,!1),listOperationSpec$1={path:"/providers/Microsoft.VirtualMachineImages/operations",httpMethod:"GET",responses:{200:{bodyMapper:OperationListResult},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer$1},listNextOperationSpec$1={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:OperationListResult},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,nextLink],headerParameters:[accept],serializer:serializer$1};class ImageBuilderClient extends coreClient.ServiceClient{constructor(e,t,a){if(void 0===e)throw new Error("'credentials' cannot be null");if(void 0===t)throw new Error("'subscriptionId' cannot be null");var r={requestContentType:"application/json; charset=utf-8",credential:e},e="azsdk-js-arm-imagebuilder/1.0.1",e=(a=a||{}).userAgentOptions&&a.userAgentOptions.userAgentPrefix?a.userAgentOptions.userAgentPrefix+" "+e:e;a.credentialScopes||(a.credentialScopes=["https://management.azure.com/.default"]),super(Object.assign(Object.assign(Object.assign({},r),a),{userAgentOptions:{userAgentPrefix:e},baseUri:a.endpoint||"https://management.azure.com"})),this.subscriptionId=t,this.$host=a.$host||"https://management.azure.com",this.apiVersion=a.apiVersion||"2021-10-01",this.virtualMachineImageTemplates=new VirtualMachineImageTemplatesImpl(this),this.operations=new OperationsImpl(this)}}exports.ImageBuilderClient=ImageBuilderClient;
@@ -30,7 +30,7 @@ export class ImageBuilderClient extends coreClient.ServiceClient {
30
30
  requestContentType: "application/json; charset=utf-8",
31
31
  credential: credentials
32
32
  };
33
- const packageDetails = `azsdk-js-arm-imagebuilder/1.0.0`;
33
+ const packageDetails = `azsdk-js-arm-imagebuilder/1.0.1`;
34
34
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
35
35
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
36
36
  : `${packageDetails}`;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "sdk-type": "mgmt",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "A generated SDK for ImageBuilderClient.",
6
- "version": "1.0.0",
6
+ "version": "1.0.1",
7
7
  "engines": { "node": ">=12.0.0" },
8
8
  "dependencies": {
9
9
  "@azure/core-lro": "^2.2.0",
@@ -48,7 +48,7 @@ export class ImageBuilderClient extends coreClient.ServiceClient {
48
48
  credential: credentials
49
49
  };
50
50
 
51
- const packageDetails = `azsdk-js-arm-imagebuilder/1.0.0`;
51
+ const packageDetails = `azsdk-js-arm-imagebuilder/1.0.1`;
52
52
  const userAgentPrefix =
53
53
  options.userAgentOptions && options.userAgentOptions.userAgentPrefix
54
54
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`