import "github.com/Azure/azure-sdk-for-go/services/virtualmachineimagebuilder/mgmt/2020-02-01/virtualmachineimagebuilder"
Package virtualmachineimagebuilder implements the Azure ARM Virtualmachineimagebuilder service API version 2020-02-14.
Azure Virtual Machine Image Builder Client
client.go enums.go models.go operations.go version.go virtualmachineimagetemplates.go
const ( // DefaultBaseURI is the default URI used for the service Virtualmachineimagebuilder DefaultBaseURI = "https://management.azure.com" )
UserAgent returns the UserAgent string to use when sending http.Requests.
Version returns the semantic version (see http://semver.org) of the client.
type APIError struct { // Details - The Api error details Details *[]APIErrorBase `json:"details,omitempty"` // InnerError - The Api inner error InnerError *InnerError `json:"innerError,omitempty"` // Code - The error code. Code *string `json:"code,omitempty"` // Target - The target of the particular error. Target *string `json:"target,omitempty"` // Message - The error message. Message *string `json:"message,omitempty"` }
APIError api error.
type APIErrorBase struct { // Code - The error code. Code *string `json:"code,omitempty"` // Target - The target of the particular error. Target *string `json:"target,omitempty"` // Message - The error message. Message *string `json:"message,omitempty"` }
APIErrorBase api error base.
BaseClient is the base client for Virtualmachineimagebuilder.
func New(subscriptionID string) BaseClient
New creates an instance of the BaseClient client.
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient
NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
type BasicImageTemplateCustomizer interface { AsImageTemplateShellCustomizer() (*ImageTemplateShellCustomizer, bool) AsImageTemplateRestartCustomizer() (*ImageTemplateRestartCustomizer, bool) AsImageTemplateWindowsUpdateCustomizer() (*ImageTemplateWindowsUpdateCustomizer, bool) AsImageTemplatePowerShellCustomizer() (*ImageTemplatePowerShellCustomizer, bool) AsImageTemplateFileCustomizer() (*ImageTemplateFileCustomizer, bool) AsImageTemplateCustomizer() (*ImageTemplateCustomizer, bool) }
BasicImageTemplateCustomizer describes a unit of image customization
type BasicImageTemplateDistributor interface { AsImageTemplateManagedImageDistributor() (*ImageTemplateManagedImageDistributor, bool) () (*ImageTemplateSharedImageDistributor, bool) AsImageTemplateVhdDistributor() (*ImageTemplateVhdDistributor, bool) AsImageTemplateDistributor() (*ImageTemplateDistributor, bool) }
BasicImageTemplateDistributor generic distribution object
type BasicImageTemplateSource interface { AsImageTemplatePlatformImageSource() (*ImageTemplatePlatformImageSource, bool) AsImageTemplateManagedImageSource() (*ImageTemplateManagedImageSource, bool) () (*ImageTemplateSharedImageVersionSource, bool) AsImageTemplateSource() (*ImageTemplateSource, bool) }
BasicImageTemplateSource describes a virtual machine image source for building, customizing and distributing
type ImageTemplate struct { autorest.Response `json:"-"` // ImageTemplateProperties - The properties of the image template *ImageTemplateProperties `json:"properties,omitempty"` // Identity - The identity of the image template, if configured. Identity *ImageTemplateIdentity `json:"identity,omitempty"` // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` // Tags - Resource tags Tags map[string]*string `json:"tags"` }
ImageTemplate image template is an ARM resource managed by Microsoft.VirtualMachineImages provider
func (it ImageTemplate) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ImageTemplate.
func (it *ImageTemplate) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ImageTemplate struct.
type ImageTemplateCustomizer struct { // Name - Friendly Name to provide context on what this customization step does Name *string `json:"name,omitempty"` // Type - Possible values include: 'TypeImageTemplateCustomizer', 'TypeShell', 'TypeWindowsRestart', 'TypeWindowsUpdate', 'TypePowerShell', 'TypeFile' Type TypeBasicImageTemplateCustomizer `json:"type,omitempty"` }
ImageTemplateCustomizer describes a unit of image customization
func (itc ImageTemplateCustomizer) AsBasicImageTemplateCustomizer() (BasicImageTemplateCustomizer, bool)
AsBasicImageTemplateCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateCustomizer.
func (itc ImageTemplateCustomizer) AsImageTemplateCustomizer() (*ImageTemplateCustomizer, bool)
AsImageTemplateCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateCustomizer.
func (itc ImageTemplateCustomizer) AsImageTemplateFileCustomizer() (*ImageTemplateFileCustomizer, bool)
AsImageTemplateFileCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateCustomizer.
func (itc ImageTemplateCustomizer) AsImageTemplatePowerShellCustomizer() (*ImageTemplatePowerShellCustomizer, bool)
AsImageTemplatePowerShellCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateCustomizer.
func (itc ImageTemplateCustomizer) AsImageTemplateRestartCustomizer() (*ImageTemplateRestartCustomizer, bool)
AsImageTemplateRestartCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateCustomizer.
func (itc ImageTemplateCustomizer) AsImageTemplateShellCustomizer() (*ImageTemplateShellCustomizer, bool)
AsImageTemplateShellCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateCustomizer.
func (itc ImageTemplateCustomizer) AsImageTemplateWindowsUpdateCustomizer() (*ImageTemplateWindowsUpdateCustomizer, bool)
AsImageTemplateWindowsUpdateCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateCustomizer.
func (itc ImageTemplateCustomizer) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ImageTemplateCustomizer.
type ImageTemplateDistributor struct { // RunOutputName - The name to be used for the associated RunOutput. RunOutputName *string `json:"runOutputName,omitempty"` // ArtifactTags - Tags that will be applied to the artifact once it has been created/updated by the distributor. ArtifactTags map[string]*string `json:"artifactTags"` // Type - Possible values include: 'TypeBasicImageTemplateDistributorTypeImageTemplateDistributor', 'TypeBasicImageTemplateDistributorTypeManagedImage', 'TypeBasicImageTemplateDistributorTypeSharedImage', 'TypeBasicImageTemplateDistributorTypeVHD' Type TypeBasicImageTemplateDistributor `json:"type,omitempty"` }
ImageTemplateDistributor generic distribution object
func (itd ImageTemplateDistributor) AsBasicImageTemplateDistributor() (BasicImageTemplateDistributor, bool)
AsBasicImageTemplateDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateDistributor.
func (itd ImageTemplateDistributor) AsImageTemplateDistributor() (*ImageTemplateDistributor, bool)
AsImageTemplateDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateDistributor.
func (itd ImageTemplateDistributor) AsImageTemplateManagedImageDistributor() (*ImageTemplateManagedImageDistributor, bool)
AsImageTemplateManagedImageDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateDistributor.
func (itd ImageTemplateDistributor) AsImageTemplateSharedImageDistributor() (*ImageTemplateSharedImageDistributor, bool)
AsImageTemplateSharedImageDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateDistributor.
func (itd ImageTemplateDistributor) AsImageTemplateVhdDistributor() (*ImageTemplateVhdDistributor, bool)
AsImageTemplateVhdDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateDistributor.
func (itd ImageTemplateDistributor) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ImageTemplateDistributor.
type ImageTemplateFileCustomizer struct { // SourceURI - The URI of the file to be uploaded for customizing the VM. It can be a github link, SAS URI for Azure Storage, etc SourceURI *string `json:"sourceUri,omitempty"` // Sha256Checksum - SHA256 checksum of the file provided in the sourceUri field above Sha256Checksum *string `json:"sha256Checksum,omitempty"` // Destination - The absolute path to a file (with nested directory structures already created) where the file (from sourceUri) will be uploaded to in the VM Destination *string `json:"destination,omitempty"` // Name - Friendly Name to provide context on what this customization step does Name *string `json:"name,omitempty"` // Type - Possible values include: 'TypeImageTemplateCustomizer', 'TypeShell', 'TypeWindowsRestart', 'TypeWindowsUpdate', 'TypePowerShell', 'TypeFile' Type TypeBasicImageTemplateCustomizer `json:"type,omitempty"` }
ImageTemplateFileCustomizer uploads files to VMs (Linux, Windows). Corresponds to Packer file provisioner
func (itfc ImageTemplateFileCustomizer) AsBasicImageTemplateCustomizer() (BasicImageTemplateCustomizer, bool)
AsBasicImageTemplateCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateFileCustomizer.
func (itfc ImageTemplateFileCustomizer) AsImageTemplateCustomizer() (*ImageTemplateCustomizer, bool)
AsImageTemplateCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateFileCustomizer.
func (itfc ImageTemplateFileCustomizer) AsImageTemplateFileCustomizer() (*ImageTemplateFileCustomizer, bool)
AsImageTemplateFileCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateFileCustomizer.
func (itfc ImageTemplateFileCustomizer) AsImageTemplatePowerShellCustomizer() (*ImageTemplatePowerShellCustomizer, bool)
AsImageTemplatePowerShellCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateFileCustomizer.
func (itfc ImageTemplateFileCustomizer) AsImageTemplateRestartCustomizer() (*ImageTemplateRestartCustomizer, bool)
AsImageTemplateRestartCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateFileCustomizer.
func (itfc ImageTemplateFileCustomizer) AsImageTemplateShellCustomizer() (*ImageTemplateShellCustomizer, bool)
AsImageTemplateShellCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateFileCustomizer.
func (itfc ImageTemplateFileCustomizer) AsImageTemplateWindowsUpdateCustomizer() (*ImageTemplateWindowsUpdateCustomizer, bool)
AsImageTemplateWindowsUpdateCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateFileCustomizer.
func (itfc ImageTemplateFileCustomizer) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ImageTemplateFileCustomizer.
type ImageTemplateIdentity struct { // Type - The type of identity used for the image template. The type 'None' will remove any identities from the image template. Possible values include: 'UserAssigned', 'None' Type ResourceIdentityType `json:"type,omitempty"` // UserAssignedIdentities - 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}'. UserAssignedIdentities map[string]*ImageTemplateIdentityUserAssignedIdentitiesValue `json:"userAssignedIdentities"` }
ImageTemplateIdentity identity for the image template.
func (iti ImageTemplateIdentity) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ImageTemplateIdentity.
type ImageTemplateIdentityUserAssignedIdentitiesValue struct { // PrincipalID - READ-ONLY; The principal id of user assigned identity. PrincipalID *string `json:"principalId,omitempty"` // ClientID - READ-ONLY; The client id of user assigned identity. ClientID *string `json:"clientId,omitempty"` }
ImageTemplateIdentityUserAssignedIdentitiesValue ...
type ImageTemplateLastRunStatus struct { // StartTime - Start time of the last run (UTC) StartTime *date.Time `json:"startTime,omitempty"` // EndTime - End time of the last run (UTC) EndTime *date.Time `json:"endTime,omitempty"` // RunState - State of the last run. Possible values include: 'RunStateRunning', 'RunStateCanceling', 'RunStateSucceeded', 'RunStatePartiallySucceeded', 'RunStateFailed', 'RunStateCanceled' RunState RunState `json:"runState,omitempty"` // RunSubState - Sub-state of the last run. Possible values include: 'Queued', 'Building', 'Customizing', 'Distributing' RunSubState RunSubState `json:"runSubState,omitempty"` // Message - Verbose information about the last run state Message *string `json:"message,omitempty"` }
ImageTemplateLastRunStatus describes the latest status of running an image template
type ImageTemplateListResult struct { autorest.Response `json:"-"` // Value - An array of image templates Value *[]ImageTemplate `json:"value,omitempty"` // NextLink - The continuation token. NextLink *string `json:"nextLink,omitempty"` }
ImageTemplateListResult the result of List image templates operation
func (itlr ImageTemplateListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type ImageTemplateListResultIterator struct {
// contains filtered or unexported fields
}
ImageTemplateListResultIterator provides access to a complete listing of ImageTemplate values.
func NewImageTemplateListResultIterator(page ImageTemplateListResultPage) ImageTemplateListResultIterator
Creates a new instance of the ImageTemplateListResultIterator type.
func (iter *ImageTemplateListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (iter *ImageTemplateListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (iter ImageTemplateListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter ImageTemplateListResultIterator) Response() ImageTemplateListResult
Response returns the raw server response from the last page request.
func (iter ImageTemplateListResultIterator) Value() ImageTemplate
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type ImageTemplateListResultPage struct {
// contains filtered or unexported fields
}
ImageTemplateListResultPage contains a page of ImageTemplate values.
func NewImageTemplateListResultPage(getNextPage func(context.Context, ImageTemplateListResult) (ImageTemplateListResult, error)) ImageTemplateListResultPage
Creates a new instance of the ImageTemplateListResultPage type.
func (page *ImageTemplateListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (page *ImageTemplateListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (page ImageTemplateListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page ImageTemplateListResultPage) Response() ImageTemplateListResult
Response returns the raw server response from the last page request.
func (page ImageTemplateListResultPage) Values() []ImageTemplate
Values returns the slice of values for the current page or nil if there are no values.
type ImageTemplateManagedImageDistributor struct { // ImageID - Resource Id of the Managed Disk Image ImageID *string `json:"imageId,omitempty"` // Location - Azure location for the image, should match if image already exists Location *string `json:"location,omitempty"` // RunOutputName - The name to be used for the associated RunOutput. RunOutputName *string `json:"runOutputName,omitempty"` // ArtifactTags - Tags that will be applied to the artifact once it has been created/updated by the distributor. ArtifactTags map[string]*string `json:"artifactTags"` // Type - Possible values include: 'TypeBasicImageTemplateDistributorTypeImageTemplateDistributor', 'TypeBasicImageTemplateDistributorTypeManagedImage', 'TypeBasicImageTemplateDistributorTypeSharedImage', 'TypeBasicImageTemplateDistributorTypeVHD' Type TypeBasicImageTemplateDistributor `json:"type,omitempty"` }
ImageTemplateManagedImageDistributor distribute as a Managed Disk Image.
func (itmid ImageTemplateManagedImageDistributor) AsBasicImageTemplateDistributor() (BasicImageTemplateDistributor, bool)
AsBasicImageTemplateDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateManagedImageDistributor.
func (itmid ImageTemplateManagedImageDistributor) AsImageTemplateDistributor() (*ImageTemplateDistributor, bool)
AsImageTemplateDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateManagedImageDistributor.
func (itmid ImageTemplateManagedImageDistributor) AsImageTemplateManagedImageDistributor() (*ImageTemplateManagedImageDistributor, bool)
AsImageTemplateManagedImageDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateManagedImageDistributor.
func (itmid ImageTemplateManagedImageDistributor) AsImageTemplateSharedImageDistributor() (*ImageTemplateSharedImageDistributor, bool)
AsImageTemplateSharedImageDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateManagedImageDistributor.
func (itmid ImageTemplateManagedImageDistributor) AsImageTemplateVhdDistributor() (*ImageTemplateVhdDistributor, bool)
AsImageTemplateVhdDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateManagedImageDistributor.
func (itmid ImageTemplateManagedImageDistributor) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ImageTemplateManagedImageDistributor.
type ImageTemplateManagedImageSource struct { // ImageID - ARM resource id of the managed image in customer subscription ImageID *string `json:"imageId,omitempty"` // Type - Possible values include: 'TypeImageTemplateSource', 'TypePlatformImage', 'TypeManagedImage', 'TypeSharedImageVersion' Type Type `json:"type,omitempty"` }
ImageTemplateManagedImageSource describes an image source that is a managed image in customer subscription.
func (itmis ImageTemplateManagedImageSource) AsBasicImageTemplateSource() (BasicImageTemplateSource, bool)
AsBasicImageTemplateSource is the BasicImageTemplateSource implementation for ImageTemplateManagedImageSource.
func (itmis ImageTemplateManagedImageSource) AsImageTemplateManagedImageSource() (*ImageTemplateManagedImageSource, bool)
AsImageTemplateManagedImageSource is the BasicImageTemplateSource implementation for ImageTemplateManagedImageSource.
func (itmis ImageTemplateManagedImageSource) AsImageTemplatePlatformImageSource() (*ImageTemplatePlatformImageSource, bool)
AsImageTemplatePlatformImageSource is the BasicImageTemplateSource implementation for ImageTemplateManagedImageSource.
func (itmis ImageTemplateManagedImageSource) AsImageTemplateSharedImageVersionSource() (*ImageTemplateSharedImageVersionSource, bool)
AsImageTemplateSharedImageVersionSource is the BasicImageTemplateSource implementation for ImageTemplateManagedImageSource.
func (itmis ImageTemplateManagedImageSource) AsImageTemplateSource() (*ImageTemplateSource, bool)
AsImageTemplateSource is the BasicImageTemplateSource implementation for ImageTemplateManagedImageSource.
func (itmis ImageTemplateManagedImageSource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ImageTemplateManagedImageSource.
type ImageTemplatePlatformImageSource struct { // Publisher - Image Publisher in [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). Publisher *string `json:"publisher,omitempty"` // Offer - Image offer from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). Offer *string `json:"offer,omitempty"` // Sku - Image sku from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). Sku *string `json:"sku,omitempty"` // Version - Image version from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). Version *string `json:"version,omitempty"` // PlanInfo - Optional configuration of purchase plan for platform image. PlanInfo *PlatformImagePurchasePlan `json:"planInfo,omitempty"` // Type - Possible values include: 'TypeImageTemplateSource', 'TypePlatformImage', 'TypeManagedImage', 'TypeSharedImageVersion' Type Type `json:"type,omitempty"` }
ImageTemplatePlatformImageSource describes an image source from [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).
func (itpis ImageTemplatePlatformImageSource) AsBasicImageTemplateSource() (BasicImageTemplateSource, bool)
AsBasicImageTemplateSource is the BasicImageTemplateSource implementation for ImageTemplatePlatformImageSource.
func (itpis ImageTemplatePlatformImageSource) AsImageTemplateManagedImageSource() (*ImageTemplateManagedImageSource, bool)
AsImageTemplateManagedImageSource is the BasicImageTemplateSource implementation for ImageTemplatePlatformImageSource.
func (itpis ImageTemplatePlatformImageSource) AsImageTemplatePlatformImageSource() (*ImageTemplatePlatformImageSource, bool)
AsImageTemplatePlatformImageSource is the BasicImageTemplateSource implementation for ImageTemplatePlatformImageSource.
func (itpis ImageTemplatePlatformImageSource) AsImageTemplateSharedImageVersionSource() (*ImageTemplateSharedImageVersionSource, bool)
AsImageTemplateSharedImageVersionSource is the BasicImageTemplateSource implementation for ImageTemplatePlatformImageSource.
func (itpis ImageTemplatePlatformImageSource) AsImageTemplateSource() (*ImageTemplateSource, bool)
AsImageTemplateSource is the BasicImageTemplateSource implementation for ImageTemplatePlatformImageSource.
func (itpis ImageTemplatePlatformImageSource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ImageTemplatePlatformImageSource.
type ImageTemplatePowerShellCustomizer struct { // ScriptURI - URI of the PowerShell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc ScriptURI *string `json:"scriptUri,omitempty"` // Sha256Checksum - SHA256 checksum of the power shell script provided in the scriptUri field above Sha256Checksum *string `json:"sha256Checksum,omitempty"` // Inline - Array of PowerShell commands to execute Inline *[]string `json:"inline,omitempty"` // RunElevated - If specified, the PowerShell script will be run with elevated privileges RunElevated *bool `json:"runElevated,omitempty"` // ValidExitCodes - Valid exit codes for the PowerShell script. [Default: 0] ValidExitCodes *[]int32 `json:"validExitCodes,omitempty"` // Name - Friendly Name to provide context on what this customization step does Name *string `json:"name,omitempty"` // Type - Possible values include: 'TypeImageTemplateCustomizer', 'TypeShell', 'TypeWindowsRestart', 'TypeWindowsUpdate', 'TypePowerShell', 'TypeFile' Type TypeBasicImageTemplateCustomizer `json:"type,omitempty"` }
ImageTemplatePowerShellCustomizer runs the specified PowerShell on the VM (Windows). Corresponds to Packer powershell provisioner. Exactly one of 'scriptUri' or 'inline' can be specified.
func (itpsc ImageTemplatePowerShellCustomizer) AsBasicImageTemplateCustomizer() (BasicImageTemplateCustomizer, bool)
AsBasicImageTemplateCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplatePowerShellCustomizer.
func (itpsc ImageTemplatePowerShellCustomizer) AsImageTemplateCustomizer() (*ImageTemplateCustomizer, bool)
AsImageTemplateCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplatePowerShellCustomizer.
func (itpsc ImageTemplatePowerShellCustomizer) AsImageTemplateFileCustomizer() (*ImageTemplateFileCustomizer, bool)
AsImageTemplateFileCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplatePowerShellCustomizer.
func (itpsc ImageTemplatePowerShellCustomizer) AsImageTemplatePowerShellCustomizer() (*ImageTemplatePowerShellCustomizer, bool)
AsImageTemplatePowerShellCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplatePowerShellCustomizer.
func (itpsc ImageTemplatePowerShellCustomizer) AsImageTemplateRestartCustomizer() (*ImageTemplateRestartCustomizer, bool)
AsImageTemplateRestartCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplatePowerShellCustomizer.
func (itpsc ImageTemplatePowerShellCustomizer) AsImageTemplateShellCustomizer() (*ImageTemplateShellCustomizer, bool)
AsImageTemplateShellCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplatePowerShellCustomizer.
func (itpsc ImageTemplatePowerShellCustomizer) AsImageTemplateWindowsUpdateCustomizer() (*ImageTemplateWindowsUpdateCustomizer, bool)
AsImageTemplateWindowsUpdateCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplatePowerShellCustomizer.
func (itpsc ImageTemplatePowerShellCustomizer) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ImageTemplatePowerShellCustomizer.
type ImageTemplateProperties struct { // Source - Specifies the properties used to describe the source image. Source BasicImageTemplateSource `json:"source,omitempty"` // Customize - Specifies the properties used to describe the customization steps of the image, like Image source etc Customize *[]BasicImageTemplateCustomizer `json:"customize,omitempty"` // Distribute - The distribution targets where the image output needs to go to. Distribute *[]BasicImageTemplateDistributor `json:"distribute,omitempty"` // ProvisioningState - READ-ONLY; Provisioning state of the resource. Possible values include: 'Creating', 'Updating', 'Succeeded', 'Failed', 'Deleting' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` // ProvisioningError - READ-ONLY; Provisioning error, if any ProvisioningError *ProvisioningError `json:"provisioningError,omitempty"` // LastRunStatus - READ-ONLY; State of 'run' that is currently executing or was last executed. LastRunStatus *ImageTemplateLastRunStatus `json:"lastRunStatus,omitempty"` // BuildTimeoutInMinutes - Maximum duration to wait while building the image template. Omit or specify 0 to use the default (4 hours). BuildTimeoutInMinutes *int32 `json:"buildTimeoutInMinutes,omitempty"` // VMProfile - Describes how virtual machine is set up to build images VMProfile *ImageTemplateVMProfile `json:"vmProfile,omitempty"` }
ImageTemplateProperties describes the properties of an image template
func (itp ImageTemplateProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ImageTemplateProperties.
func (itp *ImageTemplateProperties) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ImageTemplateProperties struct.
type ImageTemplateRestartCustomizer struct { // RestartCommand - Command to execute the restart [Default: 'shutdown /r /f /t 0 /c "packer restart"'] RestartCommand *string `json:"restartCommand,omitempty"` // RestartCheckCommand - Command to check if restart succeeded [Default: ''] RestartCheckCommand *string `json:"restartCheckCommand,omitempty"` // RestartTimeout - Restart timeout specified as a string of magnitude and unit, e.g. '5m' (5 minutes) or '2h' (2 hours) [Default: '5m'] RestartTimeout *string `json:"restartTimeout,omitempty"` // Name - Friendly Name to provide context on what this customization step does Name *string `json:"name,omitempty"` // Type - Possible values include: 'TypeImageTemplateCustomizer', 'TypeShell', 'TypeWindowsRestart', 'TypeWindowsUpdate', 'TypePowerShell', 'TypeFile' Type TypeBasicImageTemplateCustomizer `json:"type,omitempty"` }
ImageTemplateRestartCustomizer reboots a VM and waits for it to come back online (Windows). Corresponds to Packer windows-restart provisioner
func (itrc ImageTemplateRestartCustomizer) AsBasicImageTemplateCustomizer() (BasicImageTemplateCustomizer, bool)
AsBasicImageTemplateCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateRestartCustomizer.
func (itrc ImageTemplateRestartCustomizer) AsImageTemplateCustomizer() (*ImageTemplateCustomizer, bool)
AsImageTemplateCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateRestartCustomizer.
func (itrc ImageTemplateRestartCustomizer) AsImageTemplateFileCustomizer() (*ImageTemplateFileCustomizer, bool)
AsImageTemplateFileCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateRestartCustomizer.
func (itrc ImageTemplateRestartCustomizer) AsImageTemplatePowerShellCustomizer() (*ImageTemplatePowerShellCustomizer, bool)
AsImageTemplatePowerShellCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateRestartCustomizer.
func (itrc ImageTemplateRestartCustomizer) AsImageTemplateRestartCustomizer() (*ImageTemplateRestartCustomizer, bool)
AsImageTemplateRestartCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateRestartCustomizer.
func (itrc ImageTemplateRestartCustomizer) AsImageTemplateShellCustomizer() (*ImageTemplateShellCustomizer, bool)
AsImageTemplateShellCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateRestartCustomizer.
func (itrc ImageTemplateRestartCustomizer) AsImageTemplateWindowsUpdateCustomizer() (*ImageTemplateWindowsUpdateCustomizer, bool)
AsImageTemplateWindowsUpdateCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateRestartCustomizer.
func (itrc ImageTemplateRestartCustomizer) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ImageTemplateRestartCustomizer.
type ImageTemplateSharedImageDistributor struct { // GalleryImageID - Resource Id of the Shared Image Gallery image *string `json:"galleryImageId,omitempty"` // ReplicationRegions - A list of regions that the image will be replicated to *[]string `json:"replicationRegions,omitempty"` // ExcludeFromLatest - Flag that indicates whether created image version should be excluded from latest. Omit to use the default (false). *bool `json:"excludeFromLatest,omitempty"` // StorageAccountType - Storage account type to be used to store the shared image. Omit to use the default (Standard_LRS). Possible values include: 'StandardLRS', 'StandardZRS' SharedImageStorageAccountType `json:"storageAccountType,omitempty"` // RunOutputName - The name to be used for the associated RunOutput. *string `json:"runOutputName,omitempty"` // ArtifactTags - Tags that will be applied to the artifact once it has been created/updated by the distributor. map[string]*string `json:"artifactTags"` // Type - Possible values include: 'TypeBasicImageTemplateDistributorTypeImageTemplateDistributor', 'TypeBasicImageTemplateDistributorTypeManagedImage', 'TypeBasicImageTemplateDistributorTypeSharedImage', 'TypeBasicImageTemplateDistributorTypeVHD' TypeBasicImageTemplateDistributor `json:"type,omitempty"` }
ImageTemplateSharedImageDistributor distribute via Shared Image Gallery.
func (itsid ImageTemplateSharedImageDistributor) AsBasicImageTemplateDistributor() (BasicImageTemplateDistributor, bool)
AsBasicImageTemplateDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateSharedImageDistributor.
func (itsid ImageTemplateSharedImageDistributor) AsImageTemplateDistributor() (*ImageTemplateDistributor, bool)
AsImageTemplateDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateSharedImageDistributor.
func (itsid ImageTemplateSharedImageDistributor) AsImageTemplateManagedImageDistributor() (*ImageTemplateManagedImageDistributor, bool)
AsImageTemplateManagedImageDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateSharedImageDistributor.
func (itsid ImageTemplateSharedImageDistributor) AsImageTemplateSharedImageDistributor() (*ImageTemplateSharedImageDistributor, bool)
AsImageTemplateSharedImageDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateSharedImageDistributor.
func (itsid ImageTemplateSharedImageDistributor) AsImageTemplateVhdDistributor() (*ImageTemplateVhdDistributor, bool)
AsImageTemplateVhdDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateSharedImageDistributor.
func (itsid ImageTemplateSharedImageDistributor) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ImageTemplateSharedImageDistributor.
type ImageTemplateSharedImageVersionSource struct { // ImageVersionID - ARM resource id of the image version in the shared image gallery *string `json:"imageVersionId,omitempty"` // Type - Possible values include: 'TypeImageTemplateSource', 'TypePlatformImage', 'TypeManagedImage', 'TypeSharedImageVersion' Type `json:"type,omitempty"` }
ImageTemplateSharedImageVersionSource describes an image source that is an image version in a shared image gallery.
func (itsivs ImageTemplateSharedImageVersionSource) AsBasicImageTemplateSource() (BasicImageTemplateSource, bool)
AsBasicImageTemplateSource is the BasicImageTemplateSource implementation for ImageTemplateSharedImageVersionSource.
func (itsivs ImageTemplateSharedImageVersionSource) AsImageTemplateManagedImageSource() (*ImageTemplateManagedImageSource, bool)
AsImageTemplateManagedImageSource is the BasicImageTemplateSource implementation for ImageTemplateSharedImageVersionSource.
func (itsivs ImageTemplateSharedImageVersionSource) AsImageTemplatePlatformImageSource() (*ImageTemplatePlatformImageSource, bool)
AsImageTemplatePlatformImageSource is the BasicImageTemplateSource implementation for ImageTemplateSharedImageVersionSource.
func (itsivs ImageTemplateSharedImageVersionSource) AsImageTemplateSharedImageVersionSource() (*ImageTemplateSharedImageVersionSource, bool)
AsImageTemplateSharedImageVersionSource is the BasicImageTemplateSource implementation for ImageTemplateSharedImageVersionSource.
func (itsivs ImageTemplateSharedImageVersionSource) AsImageTemplateSource() (*ImageTemplateSource, bool)
AsImageTemplateSource is the BasicImageTemplateSource implementation for ImageTemplateSharedImageVersionSource.
func (itsivs ImageTemplateSharedImageVersionSource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ImageTemplateSharedImageVersionSource.
type ImageTemplateShellCustomizer struct { // ScriptURI - URI of the shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc ScriptURI *string `json:"scriptUri,omitempty"` // Sha256Checksum - SHA256 checksum of the shell script provided in the scriptUri field Sha256Checksum *string `json:"sha256Checksum,omitempty"` // Inline - Array of shell commands to execute Inline *[]string `json:"inline,omitempty"` // Name - Friendly Name to provide context on what this customization step does Name *string `json:"name,omitempty"` // Type - Possible values include: 'TypeImageTemplateCustomizer', 'TypeShell', 'TypeWindowsRestart', 'TypeWindowsUpdate', 'TypePowerShell', 'TypeFile' Type TypeBasicImageTemplateCustomizer `json:"type,omitempty"` }
ImageTemplateShellCustomizer runs a shell script during the customization phase (Linux). Corresponds to Packer shell provisioner. Exactly one of 'scriptUri' or 'inline' can be specified.
func (itsc ImageTemplateShellCustomizer) AsBasicImageTemplateCustomizer() (BasicImageTemplateCustomizer, bool)
AsBasicImageTemplateCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateShellCustomizer.
func (itsc ImageTemplateShellCustomizer) AsImageTemplateCustomizer() (*ImageTemplateCustomizer, bool)
AsImageTemplateCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateShellCustomizer.
func (itsc ImageTemplateShellCustomizer) AsImageTemplateFileCustomizer() (*ImageTemplateFileCustomizer, bool)
AsImageTemplateFileCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateShellCustomizer.
func (itsc ImageTemplateShellCustomizer) AsImageTemplatePowerShellCustomizer() (*ImageTemplatePowerShellCustomizer, bool)
AsImageTemplatePowerShellCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateShellCustomizer.
func (itsc ImageTemplateShellCustomizer) AsImageTemplateRestartCustomizer() (*ImageTemplateRestartCustomizer, bool)
AsImageTemplateRestartCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateShellCustomizer.
func (itsc ImageTemplateShellCustomizer) AsImageTemplateShellCustomizer() (*ImageTemplateShellCustomizer, bool)
AsImageTemplateShellCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateShellCustomizer.
func (itsc ImageTemplateShellCustomizer) AsImageTemplateWindowsUpdateCustomizer() (*ImageTemplateWindowsUpdateCustomizer, bool)
AsImageTemplateWindowsUpdateCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateShellCustomizer.
func (itsc ImageTemplateShellCustomizer) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ImageTemplateShellCustomizer.
type ImageTemplateSource struct { // Type - Possible values include: 'TypeImageTemplateSource', 'TypePlatformImage', 'TypeManagedImage', 'TypeSharedImageVersion' Type Type `json:"type,omitempty"` }
ImageTemplateSource describes a virtual machine image source for building, customizing and distributing
func (its ImageTemplateSource) AsBasicImageTemplateSource() (BasicImageTemplateSource, bool)
AsBasicImageTemplateSource is the BasicImageTemplateSource implementation for ImageTemplateSource.
func (its ImageTemplateSource) AsImageTemplateManagedImageSource() (*ImageTemplateManagedImageSource, bool)
AsImageTemplateManagedImageSource is the BasicImageTemplateSource implementation for ImageTemplateSource.
func (its ImageTemplateSource) AsImageTemplatePlatformImageSource() (*ImageTemplatePlatformImageSource, bool)
AsImageTemplatePlatformImageSource is the BasicImageTemplateSource implementation for ImageTemplateSource.
func (its ImageTemplateSource) AsImageTemplateSharedImageVersionSource() (*ImageTemplateSharedImageVersionSource, bool)
AsImageTemplateSharedImageVersionSource is the BasicImageTemplateSource implementation for ImageTemplateSource.
func (its ImageTemplateSource) AsImageTemplateSource() (*ImageTemplateSource, bool)
AsImageTemplateSource is the BasicImageTemplateSource implementation for ImageTemplateSource.
func (its ImageTemplateSource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ImageTemplateSource.
type ImageTemplateUpdateParameters struct { // Identity - The identity of the image template, if configured. Identity *ImageTemplateIdentity `json:"identity,omitempty"` // Tags - The user-specified tags associated with the image template. Tags map[string]*string `json:"tags"` }
ImageTemplateUpdateParameters parameters for updating an image template.
func (itup ImageTemplateUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ImageTemplateUpdateParameters.
type ImageTemplateVMProfile struct { // VMSize - Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default (Standard_D1_v2). VMSize *string `json:"vmSize,omitempty"` // OsDiskSizeGB - Size of the OS disk in GB. Omit or specify 0 to use Azure's default OS disk size. OsDiskSizeGB *int32 `json:"osDiskSizeGB,omitempty"` // VnetConfig - 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. VnetConfig *VirtualNetworkConfig `json:"vnetConfig,omitempty"` }
ImageTemplateVMProfile describes the virtual machine used to build, customize and capture images
type ImageTemplateVhdDistributor struct { // RunOutputName - The name to be used for the associated RunOutput. RunOutputName *string `json:"runOutputName,omitempty"` // ArtifactTags - Tags that will be applied to the artifact once it has been created/updated by the distributor. ArtifactTags map[string]*string `json:"artifactTags"` // Type - Possible values include: 'TypeBasicImageTemplateDistributorTypeImageTemplateDistributor', 'TypeBasicImageTemplateDistributorTypeManagedImage', 'TypeBasicImageTemplateDistributorTypeSharedImage', 'TypeBasicImageTemplateDistributorTypeVHD' Type TypeBasicImageTemplateDistributor `json:"type,omitempty"` }
ImageTemplateVhdDistributor distribute via VHD in a storage account.
func (itvd ImageTemplateVhdDistributor) AsBasicImageTemplateDistributor() (BasicImageTemplateDistributor, bool)
AsBasicImageTemplateDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateVhdDistributor.
func (itvd ImageTemplateVhdDistributor) AsImageTemplateDistributor() (*ImageTemplateDistributor, bool)
AsImageTemplateDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateVhdDistributor.
func (itvd ImageTemplateVhdDistributor) AsImageTemplateManagedImageDistributor() (*ImageTemplateManagedImageDistributor, bool)
AsImageTemplateManagedImageDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateVhdDistributor.
func (itvd ImageTemplateVhdDistributor) AsImageTemplateSharedImageDistributor() (*ImageTemplateSharedImageDistributor, bool)
AsImageTemplateSharedImageDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateVhdDistributor.
func (itvd ImageTemplateVhdDistributor) AsImageTemplateVhdDistributor() (*ImageTemplateVhdDistributor, bool)
AsImageTemplateVhdDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateVhdDistributor.
func (itvd ImageTemplateVhdDistributor) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ImageTemplateVhdDistributor.
type ImageTemplateWindowsUpdateCustomizer struct { // SearchCriteria - 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. SearchCriteria *string `json:"searchCriteria,omitempty"` // Filters - 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. Filters *[]string `json:"filters,omitempty"` // UpdateLimit - Maximum number of updates to apply at a time. Omit or specify 0 to use the default (1000) UpdateLimit *int32 `json:"updateLimit,omitempty"` // Name - Friendly Name to provide context on what this customization step does Name *string `json:"name,omitempty"` // Type - Possible values include: 'TypeImageTemplateCustomizer', 'TypeShell', 'TypeWindowsRestart', 'TypeWindowsUpdate', 'TypePowerShell', 'TypeFile' Type TypeBasicImageTemplateCustomizer `json:"type,omitempty"` }
ImageTemplateWindowsUpdateCustomizer installs Windows Updates. Corresponds to Packer Windows Update Provisioner (https://github.com/rgl/packer-provisioner-windows-update)
func (itwuc ImageTemplateWindowsUpdateCustomizer) AsBasicImageTemplateCustomizer() (BasicImageTemplateCustomizer, bool)
AsBasicImageTemplateCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateWindowsUpdateCustomizer.
func (itwuc ImageTemplateWindowsUpdateCustomizer) AsImageTemplateCustomizer() (*ImageTemplateCustomizer, bool)
AsImageTemplateCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateWindowsUpdateCustomizer.
func (itwuc ImageTemplateWindowsUpdateCustomizer) AsImageTemplateFileCustomizer() (*ImageTemplateFileCustomizer, bool)
AsImageTemplateFileCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateWindowsUpdateCustomizer.
func (itwuc ImageTemplateWindowsUpdateCustomizer) AsImageTemplatePowerShellCustomizer() (*ImageTemplatePowerShellCustomizer, bool)
AsImageTemplatePowerShellCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateWindowsUpdateCustomizer.
func (itwuc ImageTemplateWindowsUpdateCustomizer) AsImageTemplateRestartCustomizer() (*ImageTemplateRestartCustomizer, bool)
AsImageTemplateRestartCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateWindowsUpdateCustomizer.
func (itwuc ImageTemplateWindowsUpdateCustomizer) AsImageTemplateShellCustomizer() (*ImageTemplateShellCustomizer, bool)
AsImageTemplateShellCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateWindowsUpdateCustomizer.
func (itwuc ImageTemplateWindowsUpdateCustomizer) AsImageTemplateWindowsUpdateCustomizer() (*ImageTemplateWindowsUpdateCustomizer, bool)
AsImageTemplateWindowsUpdateCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateWindowsUpdateCustomizer.
func (itwuc ImageTemplateWindowsUpdateCustomizer) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ImageTemplateWindowsUpdateCustomizer.
type InnerError struct { // ExceptionType - The exception type. ExceptionType *string `json:"exceptionType,omitempty"` // ErrorDetail - The internal error message or exception dump. ErrorDetail *string `json:"errorDetail,omitempty"` }
InnerError inner error details.
type Operation struct { // Name - This is of the format {provider}/{resource}/{operation} Name *string `json:"name,omitempty"` Display *OperationDisplay `json:"display,omitempty"` Origin *string `json:"origin,omitempty"` Properties interface{} `json:"properties,omitempty"` IsDataAction *bool `json:"isDataAction,omitempty"` }
Operation ...
type OperationDisplay struct { Provider *string `json:"provider,omitempty"` // Operation - For example: read, write, delete, or listKeys/action Operation *string `json:"operation,omitempty"` Resource *string `json:"resource,omitempty"` Description *string `json:"description,omitempty"` }
OperationDisplay ...
type OperationListResult struct { autorest.Response `json:"-"` Value *[]Operation `json:"value,omitempty"` NextLink *string `json:"nextLink,omitempty"` }
OperationListResult ...
func (olr OperationListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type OperationListResultIterator struct {
// contains filtered or unexported fields
}
OperationListResultIterator provides access to a complete listing of Operation values.
func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator
Creates a new instance of the OperationListResultIterator type.
func (iter *OperationListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (iter OperationListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter OperationListResultIterator) Response() OperationListResult
Response returns the raw server response from the last page request.
func (iter OperationListResultIterator) Value() Operation
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type OperationListResultPage struct {
// contains filtered or unexported fields
}
OperationListResultPage contains a page of Operation values.
func NewOperationListResultPage(getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage
Creates a new instance of the OperationListResultPage type.
func (page *OperationListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (page OperationListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page OperationListResultPage) Response() OperationListResult
Response returns the raw server response from the last page request.
func (page OperationListResultPage) Values() []Operation
Values returns the slice of values for the current page or nil if there are no values.
type OperationsClient struct { BaseClient }
OperationsClient is the azure Virtual Machine Image Builder Client
func NewOperationsClient(subscriptionID string) OperationsClient
NewOperationsClient creates an instance of the OperationsClient client.
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient
NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error)
List lists available operations for the Microsoft.VirtualMachineImages provider
func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
ListPreparer prepares the List request.
func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type PlatformImagePurchasePlan struct { // PlanName - Name of the purchase plan. PlanName *string `json:"planName,omitempty"` // PlanProduct - Product of the purchase plan. PlanProduct *string `json:"planProduct,omitempty"` // PlanPublisher - Publisher of the purchase plan. PlanPublisher *string `json:"planPublisher,omitempty"` }
PlatformImagePurchasePlan purchase plan configuration for platform image.
type ProvisioningError struct { // ProvisioningErrorCode - Error code of the provisioning failure. Possible values include: 'BadSourceType', 'BadPIRSource', 'BadManagedImageSource', 'BadSharedImageVersionSource', 'BadCustomizerType', 'UnsupportedCustomizerType', 'NoCustomizerScript', 'BadDistributeType', 'BadSharedImageDistribute', 'ServerError', 'Other' ProvisioningErrorCode ProvisioningErrorCode `json:"provisioningErrorCode,omitempty"` // Message - Verbose error message about the provisioning failure Message *string `json:"message,omitempty"` }
ProvisioningError describes the error happened when create or update an image template
ProvisioningErrorCode enumerates the values for provisioning error code.
const ( // BadCustomizerType ... BadCustomizerType ProvisioningErrorCode = "BadCustomizerType" // BadDistributeType ... BadDistributeType ProvisioningErrorCode = "BadDistributeType" // BadManagedImageSource ... BadManagedImageSource ProvisioningErrorCode = "BadManagedImageSource" // BadPIRSource ... BadPIRSource ProvisioningErrorCode = "BadPIRSource" // BadSharedImageDistribute ... ProvisioningErrorCode = "BadSharedImageDistribute" // BadSharedImageVersionSource ... ProvisioningErrorCode = "BadSharedImageVersionSource" // BadSourceType ... BadSourceType ProvisioningErrorCode = "BadSourceType" // NoCustomizerScript ... NoCustomizerScript ProvisioningErrorCode = "NoCustomizerScript" // Other ... Other ProvisioningErrorCode = "Other" // ServerError ... ServerError ProvisioningErrorCode = "ServerError" // UnsupportedCustomizerType ... UnsupportedCustomizerType ProvisioningErrorCode = "UnsupportedCustomizerType" )
func PossibleProvisioningErrorCodeValues() []ProvisioningErrorCode
PossibleProvisioningErrorCodeValues returns an array of possible values for the ProvisioningErrorCode const type.
ProvisioningState enumerates the values for provisioning state.
const ( // Creating ... Creating ProvisioningState = "Creating" // Deleting ... Deleting ProvisioningState = "Deleting" // Failed ... Failed ProvisioningState = "Failed" // Succeeded ... Succeeded ProvisioningState = "Succeeded" // Updating ... Updating ProvisioningState = "Updating" )
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.
type Resource struct { // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` // Tags - Resource tags Tags map[string]*string `json:"tags"` }
Resource the Resource model definition.
MarshalJSON is the custom marshaler for Resource.
ResourceIdentityType enumerates the values for resource identity type.
const ( // None ... None ResourceIdentityType = "None" // UserAssigned ... UserAssigned ResourceIdentityType = "UserAssigned" )
func PossibleResourceIdentityTypeValues() []ResourceIdentityType
PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type.
type RunOutput struct { autorest.Response `json:"-"` // RunOutputProperties - The properties of the run output *RunOutputProperties `json:"properties,omitempty"` // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` // Name - Resource name Name *string `json:"name,omitempty"` // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` }
RunOutput represents an output that was created by running an image template.
MarshalJSON is the custom marshaler for RunOutput.
UnmarshalJSON is the custom unmarshaler for RunOutput struct.
type RunOutputCollection struct { autorest.Response `json:"-"` // Value - An array of run outputs Value *[]RunOutput `json:"value,omitempty"` // NextLink - The continuation token. NextLink *string `json:"nextLink,omitempty"` }
RunOutputCollection the result of List run outputs operation
func (roc RunOutputCollection) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type RunOutputCollectionIterator struct {
// contains filtered or unexported fields
}
RunOutputCollectionIterator provides access to a complete listing of RunOutput values.
func NewRunOutputCollectionIterator(page RunOutputCollectionPage) RunOutputCollectionIterator
Creates a new instance of the RunOutputCollectionIterator type.
func (iter *RunOutputCollectionIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (iter *RunOutputCollectionIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (iter RunOutputCollectionIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter RunOutputCollectionIterator) Response() RunOutputCollection
Response returns the raw server response from the last page request.
func (iter RunOutputCollectionIterator) Value() RunOutput
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type RunOutputCollectionPage struct {
// contains filtered or unexported fields
}
RunOutputCollectionPage contains a page of RunOutput values.
func NewRunOutputCollectionPage(getNextPage func(context.Context, RunOutputCollection) (RunOutputCollection, error)) RunOutputCollectionPage
Creates a new instance of the RunOutputCollectionPage type.
func (page *RunOutputCollectionPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (page *RunOutputCollectionPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (page RunOutputCollectionPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page RunOutputCollectionPage) Response() RunOutputCollection
Response returns the raw server response from the last page request.
func (page RunOutputCollectionPage) Values() []RunOutput
Values returns the slice of values for the current page or nil if there are no values.
type RunOutputProperties struct { // ArtifactID - The resource id of the artifact. ArtifactID *string `json:"artifactId,omitempty"` // ArtifactURI - The location URI of the artifact. ArtifactURI *string `json:"artifactUri,omitempty"` // ProvisioningState - READ-ONLY; Provisioning state of the resource. Possible values include: 'Creating', 'Updating', 'Succeeded', 'Failed', 'Deleting' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` }
RunOutputProperties describes the properties of a run output
func (rop RunOutputProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RunOutputProperties.
RunState enumerates the values for run state.
const ( // RunStateCanceled ... RunStateCanceled RunState = "Canceled" // RunStateCanceling ... RunStateCanceling RunState = "Canceling" // RunStateFailed ... RunStateFailed RunState = "Failed" // RunStatePartiallySucceeded ... RunStatePartiallySucceeded RunState = "PartiallySucceeded" // RunStateRunning ... RunStateRunning RunState = "Running" // RunStateSucceeded ... RunStateSucceeded RunState = "Succeeded" )
PossibleRunStateValues returns an array of possible values for the RunState const type.
RunSubState enumerates the values for run sub state.
const ( // Building ... Building RunSubState = "Building" // Customizing ... Customizing RunSubState = "Customizing" // Distributing ... Distributing RunSubState = "Distributing" // Queued ... Queued RunSubState = "Queued" )
func PossibleRunSubStateValues() []RunSubState
PossibleRunSubStateValues returns an array of possible values for the RunSubState const type.
SharedImageStorageAccountType enumerates the values for shared image storage account type.
const ( // StandardLRS ... StandardLRS SharedImageStorageAccountType = "Standard_LRS" // StandardZRS ... StandardZRS SharedImageStorageAccountType = "Standard_ZRS" )
func PossibleSharedImageStorageAccountTypeValues() []SharedImageStorageAccountType
PossibleSharedImageStorageAccountTypeValues returns an array of possible values for the SharedImageStorageAccountType const type.
type SubResource struct { // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` // Name - Resource name Name *string `json:"name,omitempty"` // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` }
SubResource the Sub Resource model definition.
func (sr SubResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SubResource.
Type enumerates the values for type.
const ( // TypeImageTemplateSource ... TypeImageTemplateSource Type = "ImageTemplateSource" // TypeManagedImage ... TypeManagedImage Type = "ManagedImage" // TypePlatformImage ... TypePlatformImage Type = "PlatformImage" // TypeSharedImageVersion ... Type = "SharedImageVersion" )
PossibleTypeValues returns an array of possible values for the Type const type.
TypeBasicImageTemplateCustomizer enumerates the values for type basic image template customizer.
const ( // TypeFile ... TypeFile TypeBasicImageTemplateCustomizer = "File" // TypeImageTemplateCustomizer ... TypeImageTemplateCustomizer TypeBasicImageTemplateCustomizer = "ImageTemplateCustomizer" // TypePowerShell ... TypePowerShell TypeBasicImageTemplateCustomizer = "PowerShell" // TypeShell ... TypeShell TypeBasicImageTemplateCustomizer = "Shell" // TypeWindowsRestart ... TypeWindowsRestart TypeBasicImageTemplateCustomizer = "WindowsRestart" // TypeWindowsUpdate ... TypeWindowsUpdate TypeBasicImageTemplateCustomizer = "WindowsUpdate" )
func PossibleTypeBasicImageTemplateCustomizerValues() []TypeBasicImageTemplateCustomizer
PossibleTypeBasicImageTemplateCustomizerValues returns an array of possible values for the TypeBasicImageTemplateCustomizer const type.
TypeBasicImageTemplateDistributor enumerates the values for type basic image template distributor.
const ( // TypeBasicImageTemplateDistributorTypeImageTemplateDistributor ... TypeBasicImageTemplateDistributorTypeImageTemplateDistributor TypeBasicImageTemplateDistributor = "ImageTemplateDistributor" // TypeBasicImageTemplateDistributorTypeManagedImage ... TypeBasicImageTemplateDistributorTypeManagedImage TypeBasicImageTemplateDistributor = "ManagedImage" // TypeBasicImageTemplateDistributorTypeSharedImage ... TypeBasicImageTemplateDistributor = "SharedImage" // TypeBasicImageTemplateDistributorTypeVHD ... TypeBasicImageTemplateDistributorTypeVHD TypeBasicImageTemplateDistributor = "VHD" )
func PossibleTypeBasicImageTemplateDistributorValues() []TypeBasicImageTemplateDistributor
PossibleTypeBasicImageTemplateDistributorValues returns an array of possible values for the TypeBasicImageTemplateDistributor const type.
VirtualMachineImageTemplatesCancelFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (future *VirtualMachineImageTemplatesCancelFuture) Result(client VirtualMachineImageTemplatesClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type VirtualMachineImageTemplatesClient struct { BaseClient }
VirtualMachineImageTemplatesClient is the azure Virtual Machine Image Builder Client
func NewVirtualMachineImageTemplatesClient(subscriptionID string) VirtualMachineImageTemplatesClient
NewVirtualMachineImageTemplatesClient creates an instance of the VirtualMachineImageTemplatesClient client.
func NewVirtualMachineImageTemplatesClientWithBaseURI(baseURI string, subscriptionID string) VirtualMachineImageTemplatesClient
NewVirtualMachineImageTemplatesClientWithBaseURI creates an instance of the VirtualMachineImageTemplatesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client VirtualMachineImageTemplatesClient) Cancel(ctx context.Context, resourceGroupName string, imageTemplateName string) (result VirtualMachineImageTemplatesCancelFuture, err error)
Cancel cancel the long running image build based on the image template Parameters: resourceGroupName - the name of the resource group. imageTemplateName - the name of the image Template
func (client VirtualMachineImageTemplatesClient) CancelPreparer(ctx context.Context, resourceGroupName string, imageTemplateName string) (*http.Request, error)
CancelPreparer prepares the Cancel request.
func (client VirtualMachineImageTemplatesClient) CancelResponder(resp *http.Response) (result autorest.Response, err error)
CancelResponder handles the response to the Cancel request. The method always closes the http.Response Body.
func (client VirtualMachineImageTemplatesClient) CancelSender(req *http.Request) (future VirtualMachineImageTemplatesCancelFuture, err error)
CancelSender sends the Cancel request. The method will close the http.Response Body if it receives an error.
func (client VirtualMachineImageTemplatesClient) CreateOrUpdate(ctx context.Context, parameters ImageTemplate, resourceGroupName string, imageTemplateName string) (result VirtualMachineImageTemplatesCreateOrUpdateFuture, err error)
CreateOrUpdate create or update a virtual machine image template Parameters: parameters - parameters supplied to the CreateImageTemplate operation resourceGroupName - the name of the resource group. imageTemplateName - the name of the image Template
func (client VirtualMachineImageTemplatesClient) CreateOrUpdatePreparer(ctx context.Context, parameters ImageTemplate, resourceGroupName string, imageTemplateName string) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client VirtualMachineImageTemplatesClient) CreateOrUpdateResponder(resp *http.Response) (result ImageTemplate, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (client VirtualMachineImageTemplatesClient) CreateOrUpdateSender(req *http.Request) (future VirtualMachineImageTemplatesCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (client VirtualMachineImageTemplatesClient) Delete(ctx context.Context, resourceGroupName string, imageTemplateName string) (result VirtualMachineImageTemplatesDeleteFuture, err error)
Delete delete a virtual machine image template Parameters: resourceGroupName - the name of the resource group. imageTemplateName - the name of the image Template
func (client VirtualMachineImageTemplatesClient) DeletePreparer(ctx context.Context, resourceGroupName string, imageTemplateName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client VirtualMachineImageTemplatesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (client VirtualMachineImageTemplatesClient) DeleteSender(req *http.Request) (future VirtualMachineImageTemplatesDeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (client VirtualMachineImageTemplatesClient) Get(ctx context.Context, resourceGroupName string, imageTemplateName string) (result ImageTemplate, err error)
Get get information about a virtual machine image template Parameters: resourceGroupName - the name of the resource group. imageTemplateName - the name of the image Template
func (client VirtualMachineImageTemplatesClient) GetPreparer(ctx context.Context, resourceGroupName string, imageTemplateName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client VirtualMachineImageTemplatesClient) GetResponder(resp *http.Response) (result ImageTemplate, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client VirtualMachineImageTemplatesClient) GetRunOutput(ctx context.Context, resourceGroupName string, imageTemplateName string, runOutputName string) (result RunOutput, err error)
GetRunOutput get the specified run output for the specified image template resource Parameters: resourceGroupName - the name of the resource group. imageTemplateName - the name of the image Template runOutputName - the name of the run output
func (client VirtualMachineImageTemplatesClient) GetRunOutputPreparer(ctx context.Context, resourceGroupName string, imageTemplateName string, runOutputName string) (*http.Request, error)
GetRunOutputPreparer prepares the GetRunOutput request.
func (client VirtualMachineImageTemplatesClient) GetRunOutputResponder(resp *http.Response) (result RunOutput, err error)
GetRunOutputResponder handles the response to the GetRunOutput request. The method always closes the http.Response Body.
func (client VirtualMachineImageTemplatesClient) GetRunOutputSender(req *http.Request) (*http.Response, error)
GetRunOutputSender sends the GetRunOutput request. The method will close the http.Response Body if it receives an error.
func (client VirtualMachineImageTemplatesClient) GetSender(req *http.Request) (*http.Response, error)
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (client VirtualMachineImageTemplatesClient) List(ctx context.Context) (result ImageTemplateListResultPage, err error)
List gets information about the VM image templates associated with the subscription.
func (client VirtualMachineImageTemplatesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ImageTemplateListResultPage, err error)
ListByResourceGroup gets information about the VM image templates associated with the specified resource group. Parameters: resourceGroupName - the name of the resource group.
func (client VirtualMachineImageTemplatesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ImageTemplateListResultIterator, err error)
ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
func (client VirtualMachineImageTemplatesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (client VirtualMachineImageTemplatesClient) ListByResourceGroupResponder(resp *http.Response) (result ImageTemplateListResult, err error)
ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.
func (client VirtualMachineImageTemplatesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.
func (client VirtualMachineImageTemplatesClient) ListComplete(ctx context.Context) (result ImageTemplateListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client VirtualMachineImageTemplatesClient) ListPreparer(ctx context.Context) (*http.Request, error)
ListPreparer prepares the List request.
func (client VirtualMachineImageTemplatesClient) ListResponder(resp *http.Response) (result ImageTemplateListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (client VirtualMachineImageTemplatesClient) ListRunOutputs(ctx context.Context, resourceGroupName string, imageTemplateName string) (result RunOutputCollectionPage, err error)
ListRunOutputs list all run outputs for the specified Image Template resource Parameters: resourceGroupName - the name of the resource group. imageTemplateName - the name of the image Template
func (client VirtualMachineImageTemplatesClient) ListRunOutputsComplete(ctx context.Context, resourceGroupName string, imageTemplateName string) (result RunOutputCollectionIterator, err error)
ListRunOutputsComplete enumerates all values, automatically crossing page boundaries as required.
func (client VirtualMachineImageTemplatesClient) ListRunOutputsPreparer(ctx context.Context, resourceGroupName string, imageTemplateName string) (*http.Request, error)
ListRunOutputsPreparer prepares the ListRunOutputs request.
func (client VirtualMachineImageTemplatesClient) ListRunOutputsResponder(resp *http.Response) (result RunOutputCollection, err error)
ListRunOutputsResponder handles the response to the ListRunOutputs request. The method always closes the http.Response Body.
func (client VirtualMachineImageTemplatesClient) ListRunOutputsSender(req *http.Request) (*http.Response, error)
ListRunOutputsSender sends the ListRunOutputs request. The method will close the http.Response Body if it receives an error.
func (client VirtualMachineImageTemplatesClient) ListSender(req *http.Request) (*http.Response, error)
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
func (client VirtualMachineImageTemplatesClient) Run(ctx context.Context, resourceGroupName string, imageTemplateName string) (result VirtualMachineImageTemplatesRunFuture, err error)
Run create artifacts from a existing image template Parameters: resourceGroupName - the name of the resource group. imageTemplateName - the name of the image Template
func (client VirtualMachineImageTemplatesClient) RunPreparer(ctx context.Context, resourceGroupName string, imageTemplateName string) (*http.Request, error)
RunPreparer prepares the Run request.
func (client VirtualMachineImageTemplatesClient) RunResponder(resp *http.Response) (result autorest.Response, err error)
RunResponder handles the response to the Run request. The method always closes the http.Response Body.
func (client VirtualMachineImageTemplatesClient) RunSender(req *http.Request) (future VirtualMachineImageTemplatesRunFuture, err error)
RunSender sends the Run request. The method will close the http.Response Body if it receives an error.
func (client VirtualMachineImageTemplatesClient) Update(ctx context.Context, parameters ImageTemplateUpdateParameters, resourceGroupName string, imageTemplateName string) (result VirtualMachineImageTemplatesUpdateFuture, err error)
Update update the tags for this Virtual Machine Image Template Parameters: parameters - additional parameters for Image Template update. resourceGroupName - the name of the resource group. imageTemplateName - the name of the image Template
func (client VirtualMachineImageTemplatesClient) UpdatePreparer(ctx context.Context, parameters ImageTemplateUpdateParameters, resourceGroupName string, imageTemplateName string) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (client VirtualMachineImageTemplatesClient) UpdateResponder(resp *http.Response) (result ImageTemplate, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (client VirtualMachineImageTemplatesClient) UpdateSender(req *http.Request) (future VirtualMachineImageTemplatesUpdateFuture, err error)
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
VirtualMachineImageTemplatesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (future *VirtualMachineImageTemplatesCreateOrUpdateFuture) Result(client VirtualMachineImageTemplatesClient) (it ImageTemplate, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
VirtualMachineImageTemplatesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (future *VirtualMachineImageTemplatesDeleteFuture) Result(client VirtualMachineImageTemplatesClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
VirtualMachineImageTemplatesRunFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (future *VirtualMachineImageTemplatesRunFuture) Result(client VirtualMachineImageTemplatesClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
VirtualMachineImageTemplatesUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (future *VirtualMachineImageTemplatesUpdateFuture) Result(client VirtualMachineImageTemplatesClient) (it ImageTemplate, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type VirtualNetworkConfig struct { // SubnetID - Resource id of a pre-existing subnet. SubnetID *string `json:"subnetId,omitempty"` }
VirtualNetworkConfig virtual Network configuration.
Path | Synopsis |
---|---|
virtualmachineimagebuilderapi |
Package virtualmachineimagebuilder imports 10 packages (graph) and is imported by 1 packages. Updated 2020-08-15. Refresh now. Tools for package owners.