virtualmachineimagebuilder

package
v0.0.0-...-838bff6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package virtualmachineimagebuilder implements the Azure ARM Virtualmachineimagebuilder service API version 2019-02-01-preview.

Azure Virtual Machine Image Builder Client

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Virtualmachineimagebuilder
	DefaultBaseURI = "https://management.azure.com"
)

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

Types

type APIError

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

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.

type BaseClient

type BaseClient struct {
	autorest.Client
	BaseURI        string
	SubscriptionID string
}

BaseClient is the base client for Virtualmachineimagebuilder.

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type BasicImageTemplateCustomizer

type BasicImageTemplateCustomizer interface {
	AsImageTemplateShellCustomizer() (*ImageTemplateShellCustomizer, bool)
	AsImageTemplateRestartCustomizer() (*ImageTemplateRestartCustomizer, bool)
	AsImageTemplatePowerShellCustomizer() (*ImageTemplatePowerShellCustomizer, bool)
	AsImageTemplateCustomizer() (*ImageTemplateCustomizer, bool)
}

BasicImageTemplateCustomizer ...

type BasicImageTemplateDistributor

type BasicImageTemplateDistributor interface {
	AsImageTemplateManagedImageDistributor() (*ImageTemplateManagedImageDistributor, bool)
	AsImageTemplateSharedImageDistributor() (*ImageTemplateSharedImageDistributor, bool)
	AsImageTemplateVhdDistributor() (*ImageTemplateVhdDistributor, bool)
	AsImageTemplateDistributor() (*ImageTemplateDistributor, bool)
}

BasicImageTemplateDistributor generic distribution object

type BasicImageTemplateSource

type BasicImageTemplateSource interface {
	AsImageTemplateIsoSource() (*ImageTemplateIsoSource, bool)
	AsImageTemplatePlatformImageSource() (*ImageTemplatePlatformImageSource, bool)
	AsImageTemplateManagedImageSource() (*ImageTemplateManagedImageSource, bool)
	AsImageTemplateSource() (*ImageTemplateSource, bool)
}

BasicImageTemplateSource ...

type ImageTemplate

type ImageTemplate struct {
	autorest.Response        `json:"-"`
	*ImageTemplateProperties `json:"properties,omitempty"`
	// ID - Resource Id
	ID *string `json:"id,omitempty"`
	// Name - Resource name
	Name *string `json:"name,omitempty"`
	// Type - 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 ...

func (ImageTemplate) MarshalJSON

func (it ImageTemplate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImageTemplate.

func (*ImageTemplate) UnmarshalJSON

func (it *ImageTemplate) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ImageTemplate struct.

type ImageTemplateCustomizer

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', 'TypePowerShell'
	Type TypeBasicImageTemplateCustomizer `json:"type,omitempty"`
}

ImageTemplateCustomizer ...

func (ImageTemplateCustomizer) AsBasicImageTemplateCustomizer

func (itc ImageTemplateCustomizer) AsBasicImageTemplateCustomizer() (BasicImageTemplateCustomizer, bool)

AsBasicImageTemplateCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateCustomizer.

func (ImageTemplateCustomizer) AsImageTemplateCustomizer

func (itc ImageTemplateCustomizer) AsImageTemplateCustomizer() (*ImageTemplateCustomizer, bool)

AsImageTemplateCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateCustomizer.

func (ImageTemplateCustomizer) AsImageTemplatePowerShellCustomizer

func (itc ImageTemplateCustomizer) AsImageTemplatePowerShellCustomizer() (*ImageTemplatePowerShellCustomizer, bool)

AsImageTemplatePowerShellCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateCustomizer.

func (ImageTemplateCustomizer) AsImageTemplateRestartCustomizer

func (itc ImageTemplateCustomizer) AsImageTemplateRestartCustomizer() (*ImageTemplateRestartCustomizer, bool)

AsImageTemplateRestartCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateCustomizer.

func (ImageTemplateCustomizer) AsImageTemplateShellCustomizer

func (itc ImageTemplateCustomizer) AsImageTemplateShellCustomizer() (*ImageTemplateShellCustomizer, bool)

AsImageTemplateShellCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateCustomizer.

func (ImageTemplateCustomizer) MarshalJSON

func (itc ImageTemplateCustomizer) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImageTemplateCustomizer.

type ImageTemplateDistributor

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 (ImageTemplateDistributor) AsBasicImageTemplateDistributor

func (itd ImageTemplateDistributor) AsBasicImageTemplateDistributor() (BasicImageTemplateDistributor, bool)

AsBasicImageTemplateDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateDistributor.

func (ImageTemplateDistributor) AsImageTemplateDistributor

func (itd ImageTemplateDistributor) AsImageTemplateDistributor() (*ImageTemplateDistributor, bool)

AsImageTemplateDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateDistributor.

func (ImageTemplateDistributor) AsImageTemplateManagedImageDistributor

func (itd ImageTemplateDistributor) AsImageTemplateManagedImageDistributor() (*ImageTemplateManagedImageDistributor, bool)

AsImageTemplateManagedImageDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateDistributor.

func (ImageTemplateDistributor) AsImageTemplateSharedImageDistributor

func (itd ImageTemplateDistributor) AsImageTemplateSharedImageDistributor() (*ImageTemplateSharedImageDistributor, bool)

AsImageTemplateSharedImageDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateDistributor.

func (ImageTemplateDistributor) AsImageTemplateVhdDistributor

func (itd ImageTemplateDistributor) AsImageTemplateVhdDistributor() (*ImageTemplateVhdDistributor, bool)

AsImageTemplateVhdDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateDistributor.

func (ImageTemplateDistributor) MarshalJSON

func (itd ImageTemplateDistributor) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImageTemplateDistributor.

type ImageTemplateIsoSource

type ImageTemplateIsoSource struct {
	// SourceURI - URI to get the ISO image. This URI has to be accessible to the resource provider at the time of the image template creation.
	SourceURI *string `json:"sourceURI,omitempty"`
	// Sha256Checksum - SHA256 Checksum of the ISO image.
	Sha256Checksum *string `json:"sha256Checksum,omitempty"`
	// Type - Possible values include: 'TypeImageTemplateSource', 'TypeISO', 'TypePlatformImage', 'TypeManagedImage'
	Type Type `json:"type,omitempty"`
}

ImageTemplateIsoSource describes an image source that is an installation ISO. Currently only supports Red Hat Enterprise Linux 7.2-7.5 ISO's.

func (ImageTemplateIsoSource) AsBasicImageTemplateSource

func (itis ImageTemplateIsoSource) AsBasicImageTemplateSource() (BasicImageTemplateSource, bool)

AsBasicImageTemplateSource is the BasicImageTemplateSource implementation for ImageTemplateIsoSource.

func (ImageTemplateIsoSource) AsImageTemplateIsoSource

func (itis ImageTemplateIsoSource) AsImageTemplateIsoSource() (*ImageTemplateIsoSource, bool)

AsImageTemplateIsoSource is the BasicImageTemplateSource implementation for ImageTemplateIsoSource.

func (ImageTemplateIsoSource) AsImageTemplateManagedImageSource

func (itis ImageTemplateIsoSource) AsImageTemplateManagedImageSource() (*ImageTemplateManagedImageSource, bool)

AsImageTemplateManagedImageSource is the BasicImageTemplateSource implementation for ImageTemplateIsoSource.

func (ImageTemplateIsoSource) AsImageTemplatePlatformImageSource

func (itis ImageTemplateIsoSource) AsImageTemplatePlatformImageSource() (*ImageTemplatePlatformImageSource, bool)

AsImageTemplatePlatformImageSource is the BasicImageTemplateSource implementation for ImageTemplateIsoSource.

func (ImageTemplateIsoSource) AsImageTemplateSource

func (itis ImageTemplateIsoSource) AsImageTemplateSource() (*ImageTemplateSource, bool)

AsImageTemplateSource is the BasicImageTemplateSource implementation for ImageTemplateIsoSource.

func (ImageTemplateIsoSource) MarshalJSON

func (itis ImageTemplateIsoSource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImageTemplateIsoSource.

type ImageTemplateLastRunStatus

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', 'RunStateSucceeded', 'RunStatePartiallySucceeded', 'RunStateFailed'
	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 ...

type ImageTemplateListResult

type ImageTemplateListResult struct {
	autorest.Response `json:"-"`
	Value             *[]ImageTemplate `json:"value,omitempty"`
	// NextLink - The continuation token.
	NextLink *string `json:"nextLink,omitempty"`
}

ImageTemplateListResult ...

func (ImageTemplateListResult) IsEmpty

func (itlr ImageTemplateListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ImageTemplateListResultIterator

type ImageTemplateListResultIterator struct {
	// contains filtered or unexported fields
}

ImageTemplateListResultIterator provides access to a complete listing of ImageTemplate values.

func NewImageTemplateListResultIterator

func NewImageTemplateListResultIterator(page ImageTemplateListResultPage) ImageTemplateListResultIterator

Creates a new instance of the ImageTemplateListResultIterator type.

func (*ImageTemplateListResultIterator) Next

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 (*ImageTemplateListResultIterator) NextWithContext

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 (ImageTemplateListResultIterator) NotDone

func (iter ImageTemplateListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ImageTemplateListResultIterator) Response

Response returns the raw server response from the last page request.

func (ImageTemplateListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ImageTemplateListResultPage

type ImageTemplateListResultPage struct {
	// contains filtered or unexported fields
}

ImageTemplateListResultPage contains a page of ImageTemplate values.

func NewImageTemplateListResultPage

func NewImageTemplateListResultPage(getNextPage func(context.Context, ImageTemplateListResult) (ImageTemplateListResult, error)) ImageTemplateListResultPage

Creates a new instance of the ImageTemplateListResultPage type.

func (*ImageTemplateListResultPage) Next

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 (*ImageTemplateListResultPage) NextWithContext

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 (ImageTemplateListResultPage) NotDone

func (page ImageTemplateListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ImageTemplateListResultPage) Response

Response returns the raw server response from the last page request.

func (ImageTemplateListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type ImageTemplateManagedImageDistributor

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 (ImageTemplateManagedImageDistributor) AsBasicImageTemplateDistributor

func (itmid ImageTemplateManagedImageDistributor) AsBasicImageTemplateDistributor() (BasicImageTemplateDistributor, bool)

AsBasicImageTemplateDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateManagedImageDistributor.

func (ImageTemplateManagedImageDistributor) AsImageTemplateDistributor

func (itmid ImageTemplateManagedImageDistributor) AsImageTemplateDistributor() (*ImageTemplateDistributor, bool)

AsImageTemplateDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateManagedImageDistributor.

func (ImageTemplateManagedImageDistributor) AsImageTemplateManagedImageDistributor

func (itmid ImageTemplateManagedImageDistributor) AsImageTemplateManagedImageDistributor() (*ImageTemplateManagedImageDistributor, bool)

AsImageTemplateManagedImageDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateManagedImageDistributor.

func (ImageTemplateManagedImageDistributor) AsImageTemplateSharedImageDistributor

func (itmid ImageTemplateManagedImageDistributor) AsImageTemplateSharedImageDistributor() (*ImageTemplateSharedImageDistributor, bool)

AsImageTemplateSharedImageDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateManagedImageDistributor.

func (ImageTemplateManagedImageDistributor) AsImageTemplateVhdDistributor

func (itmid ImageTemplateManagedImageDistributor) AsImageTemplateVhdDistributor() (*ImageTemplateVhdDistributor, bool)

AsImageTemplateVhdDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateManagedImageDistributor.

func (ImageTemplateManagedImageDistributor) MarshalJSON

func (itmid ImageTemplateManagedImageDistributor) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImageTemplateManagedImageDistributor.

type ImageTemplateManagedImageSource

type ImageTemplateManagedImageSource struct {
	// ImageID - ARM resource id of the managed image in customer subscription
	ImageID *string `json:"imageId,omitempty"`
	// Type - Possible values include: 'TypeImageTemplateSource', 'TypeISO', 'TypePlatformImage', 'TypeManagedImage'
	Type Type `json:"type,omitempty"`
}

ImageTemplateManagedImageSource describes an image source that is a managed image in customer subscription.

func (ImageTemplateManagedImageSource) AsBasicImageTemplateSource

func (itmis ImageTemplateManagedImageSource) AsBasicImageTemplateSource() (BasicImageTemplateSource, bool)

AsBasicImageTemplateSource is the BasicImageTemplateSource implementation for ImageTemplateManagedImageSource.

func (ImageTemplateManagedImageSource) AsImageTemplateIsoSource

func (itmis ImageTemplateManagedImageSource) AsImageTemplateIsoSource() (*ImageTemplateIsoSource, bool)

AsImageTemplateIsoSource is the BasicImageTemplateSource implementation for ImageTemplateManagedImageSource.

func (ImageTemplateManagedImageSource) AsImageTemplateManagedImageSource

func (itmis ImageTemplateManagedImageSource) AsImageTemplateManagedImageSource() (*ImageTemplateManagedImageSource, bool)

AsImageTemplateManagedImageSource is the BasicImageTemplateSource implementation for ImageTemplateManagedImageSource.

func (ImageTemplateManagedImageSource) AsImageTemplatePlatformImageSource

func (itmis ImageTemplateManagedImageSource) AsImageTemplatePlatformImageSource() (*ImageTemplatePlatformImageSource, bool)

AsImageTemplatePlatformImageSource is the BasicImageTemplateSource implementation for ImageTemplateManagedImageSource.

func (ImageTemplateManagedImageSource) AsImageTemplateSource

func (itmis ImageTemplateManagedImageSource) AsImageTemplateSource() (*ImageTemplateSource, bool)

AsImageTemplateSource is the BasicImageTemplateSource implementation for ImageTemplateManagedImageSource.

func (ImageTemplateManagedImageSource) MarshalJSON

func (itmis ImageTemplateManagedImageSource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImageTemplateManagedImageSource.

type ImageTemplatePlatformImageSource

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"`
	// Type - Possible values include: 'TypeImageTemplateSource', 'TypeISO', 'TypePlatformImage', 'TypeManagedImage'
	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 (ImageTemplatePlatformImageSource) AsBasicImageTemplateSource

func (itpis ImageTemplatePlatformImageSource) AsBasicImageTemplateSource() (BasicImageTemplateSource, bool)

AsBasicImageTemplateSource is the BasicImageTemplateSource implementation for ImageTemplatePlatformImageSource.

func (ImageTemplatePlatformImageSource) AsImageTemplateIsoSource

func (itpis ImageTemplatePlatformImageSource) AsImageTemplateIsoSource() (*ImageTemplateIsoSource, bool)

AsImageTemplateIsoSource is the BasicImageTemplateSource implementation for ImageTemplatePlatformImageSource.

func (ImageTemplatePlatformImageSource) AsImageTemplateManagedImageSource

func (itpis ImageTemplatePlatformImageSource) AsImageTemplateManagedImageSource() (*ImageTemplateManagedImageSource, bool)

AsImageTemplateManagedImageSource is the BasicImageTemplateSource implementation for ImageTemplatePlatformImageSource.

func (ImageTemplatePlatformImageSource) AsImageTemplatePlatformImageSource

func (itpis ImageTemplatePlatformImageSource) AsImageTemplatePlatformImageSource() (*ImageTemplatePlatformImageSource, bool)

AsImageTemplatePlatformImageSource is the BasicImageTemplateSource implementation for ImageTemplatePlatformImageSource.

func (ImageTemplatePlatformImageSource) AsImageTemplateSource

func (itpis ImageTemplatePlatformImageSource) AsImageTemplateSource() (*ImageTemplateSource, bool)

AsImageTemplateSource is the BasicImageTemplateSource implementation for ImageTemplatePlatformImageSource.

func (ImageTemplatePlatformImageSource) MarshalJSON

func (itpis ImageTemplatePlatformImageSource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImageTemplatePlatformImageSource.

type ImageTemplatePowerShellCustomizer

type ImageTemplatePowerShellCustomizer struct {
	// Script - The PowerShell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
	Script *string `json:"script,omitempty"`
	// Inline - Array of PowerShell commands to execute
	Inline *[]string `json:"inline,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', 'TypePowerShell'
	Type TypeBasicImageTemplateCustomizer `json:"type,omitempty"`
}

ImageTemplatePowerShellCustomizer runs the specified PowerShell on the VM (Windows). Corresponds to Packer powershell provisioner. Exactly one of 'script' or 'inline' can be specified.

func (ImageTemplatePowerShellCustomizer) AsBasicImageTemplateCustomizer

func (itpsc ImageTemplatePowerShellCustomizer) AsBasicImageTemplateCustomizer() (BasicImageTemplateCustomizer, bool)

AsBasicImageTemplateCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplatePowerShellCustomizer.

func (ImageTemplatePowerShellCustomizer) AsImageTemplateCustomizer

func (itpsc ImageTemplatePowerShellCustomizer) AsImageTemplateCustomizer() (*ImageTemplateCustomizer, bool)

AsImageTemplateCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplatePowerShellCustomizer.

func (ImageTemplatePowerShellCustomizer) AsImageTemplatePowerShellCustomizer

func (itpsc ImageTemplatePowerShellCustomizer) AsImageTemplatePowerShellCustomizer() (*ImageTemplatePowerShellCustomizer, bool)

AsImageTemplatePowerShellCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplatePowerShellCustomizer.

func (ImageTemplatePowerShellCustomizer) AsImageTemplateRestartCustomizer

func (itpsc ImageTemplatePowerShellCustomizer) AsImageTemplateRestartCustomizer() (*ImageTemplateRestartCustomizer, bool)

AsImageTemplateRestartCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplatePowerShellCustomizer.

func (ImageTemplatePowerShellCustomizer) AsImageTemplateShellCustomizer

func (itpsc ImageTemplatePowerShellCustomizer) AsImageTemplateShellCustomizer() (*ImageTemplateShellCustomizer, bool)

AsImageTemplateShellCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplatePowerShellCustomizer.

func (ImageTemplatePowerShellCustomizer) MarshalJSON

func (itpsc ImageTemplatePowerShellCustomizer) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImageTemplatePowerShellCustomizer.

type ImageTemplateProperties

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 - Provisioning state of the resource. Possible values include: 'Creating', 'Succeeded', 'Failed', 'Deleting'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	// ProvisioningError - Provisioning error, if any
	ProvisioningError *ProvisioningError `json:"provisioningError,omitempty"`
	// LastRunStatus - State of 'run' that is currently executing or was last executed.
	LastRunStatus *ImageTemplateLastRunStatus `json:"lastRunStatus,omitempty"`
}

ImageTemplateProperties ...

func (*ImageTemplateProperties) UnmarshalJSON

func (itp *ImageTemplateProperties) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ImageTemplateProperties struct.

type ImageTemplateRestartCustomizer

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', 'TypePowerShell'
	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 (ImageTemplateRestartCustomizer) AsBasicImageTemplateCustomizer

func (itrc ImageTemplateRestartCustomizer) AsBasicImageTemplateCustomizer() (BasicImageTemplateCustomizer, bool)

AsBasicImageTemplateCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateRestartCustomizer.

func (ImageTemplateRestartCustomizer) AsImageTemplateCustomizer

func (itrc ImageTemplateRestartCustomizer) AsImageTemplateCustomizer() (*ImageTemplateCustomizer, bool)

AsImageTemplateCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateRestartCustomizer.

func (ImageTemplateRestartCustomizer) AsImageTemplatePowerShellCustomizer

func (itrc ImageTemplateRestartCustomizer) AsImageTemplatePowerShellCustomizer() (*ImageTemplatePowerShellCustomizer, bool)

AsImageTemplatePowerShellCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateRestartCustomizer.

func (ImageTemplateRestartCustomizer) AsImageTemplateRestartCustomizer

func (itrc ImageTemplateRestartCustomizer) AsImageTemplateRestartCustomizer() (*ImageTemplateRestartCustomizer, bool)

AsImageTemplateRestartCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateRestartCustomizer.

func (ImageTemplateRestartCustomizer) AsImageTemplateShellCustomizer

func (itrc ImageTemplateRestartCustomizer) AsImageTemplateShellCustomizer() (*ImageTemplateShellCustomizer, bool)

AsImageTemplateShellCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateRestartCustomizer.

func (ImageTemplateRestartCustomizer) MarshalJSON

func (itrc ImageTemplateRestartCustomizer) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImageTemplateRestartCustomizer.

type ImageTemplateSharedImageDistributor

type ImageTemplateSharedImageDistributor struct {
	// GalleryImageID - Resource Id of the Shared Image Gallery image
	GalleryImageID     *string   `json:"galleryImageId,omitempty"`
	ReplicationRegions *[]string `json:"replicationRegions,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"`
}

ImageTemplateSharedImageDistributor distribute via Shared Image Gallery.

func (ImageTemplateSharedImageDistributor) AsBasicImageTemplateDistributor

func (itsid ImageTemplateSharedImageDistributor) AsBasicImageTemplateDistributor() (BasicImageTemplateDistributor, bool)

AsBasicImageTemplateDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateSharedImageDistributor.

func (ImageTemplateSharedImageDistributor) AsImageTemplateDistributor

func (itsid ImageTemplateSharedImageDistributor) AsImageTemplateDistributor() (*ImageTemplateDistributor, bool)

AsImageTemplateDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateSharedImageDistributor.

func (ImageTemplateSharedImageDistributor) AsImageTemplateManagedImageDistributor

func (itsid ImageTemplateSharedImageDistributor) AsImageTemplateManagedImageDistributor() (*ImageTemplateManagedImageDistributor, bool)

AsImageTemplateManagedImageDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateSharedImageDistributor.

func (ImageTemplateSharedImageDistributor) AsImageTemplateSharedImageDistributor

func (itsid ImageTemplateSharedImageDistributor) AsImageTemplateSharedImageDistributor() (*ImageTemplateSharedImageDistributor, bool)

AsImageTemplateSharedImageDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateSharedImageDistributor.

func (ImageTemplateSharedImageDistributor) AsImageTemplateVhdDistributor

func (itsid ImageTemplateSharedImageDistributor) AsImageTemplateVhdDistributor() (*ImageTemplateVhdDistributor, bool)

AsImageTemplateVhdDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateSharedImageDistributor.

func (ImageTemplateSharedImageDistributor) MarshalJSON

func (itsid ImageTemplateSharedImageDistributor) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImageTemplateSharedImageDistributor.

type ImageTemplateShellCustomizer

type ImageTemplateShellCustomizer struct {
	// Script - The shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
	Script *string `json:"script,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', 'TypePowerShell'
	Type TypeBasicImageTemplateCustomizer `json:"type,omitempty"`
}

ImageTemplateShellCustomizer runs a shell script during the customization phase (Linux). Corresponds to Packer shell provisioner. Exactly one of 'script' or 'inline' can be specified.

func (ImageTemplateShellCustomizer) AsBasicImageTemplateCustomizer

func (itsc ImageTemplateShellCustomizer) AsBasicImageTemplateCustomizer() (BasicImageTemplateCustomizer, bool)

AsBasicImageTemplateCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateShellCustomizer.

func (ImageTemplateShellCustomizer) AsImageTemplateCustomizer

func (itsc ImageTemplateShellCustomizer) AsImageTemplateCustomizer() (*ImageTemplateCustomizer, bool)

AsImageTemplateCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateShellCustomizer.

func (ImageTemplateShellCustomizer) AsImageTemplatePowerShellCustomizer

func (itsc ImageTemplateShellCustomizer) AsImageTemplatePowerShellCustomizer() (*ImageTemplatePowerShellCustomizer, bool)

AsImageTemplatePowerShellCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateShellCustomizer.

func (ImageTemplateShellCustomizer) AsImageTemplateRestartCustomizer

func (itsc ImageTemplateShellCustomizer) AsImageTemplateRestartCustomizer() (*ImageTemplateRestartCustomizer, bool)

AsImageTemplateRestartCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateShellCustomizer.

func (ImageTemplateShellCustomizer) AsImageTemplateShellCustomizer

func (itsc ImageTemplateShellCustomizer) AsImageTemplateShellCustomizer() (*ImageTemplateShellCustomizer, bool)

AsImageTemplateShellCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateShellCustomizer.

func (ImageTemplateShellCustomizer) MarshalJSON

func (itsc ImageTemplateShellCustomizer) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImageTemplateShellCustomizer.

type ImageTemplateSource

type ImageTemplateSource struct {
	// Type - Possible values include: 'TypeImageTemplateSource', 'TypeISO', 'TypePlatformImage', 'TypeManagedImage'
	Type Type `json:"type,omitempty"`
}

ImageTemplateSource ...

func (ImageTemplateSource) AsBasicImageTemplateSource

func (its ImageTemplateSource) AsBasicImageTemplateSource() (BasicImageTemplateSource, bool)

AsBasicImageTemplateSource is the BasicImageTemplateSource implementation for ImageTemplateSource.

func (ImageTemplateSource) AsImageTemplateIsoSource

func (its ImageTemplateSource) AsImageTemplateIsoSource() (*ImageTemplateIsoSource, bool)

AsImageTemplateIsoSource is the BasicImageTemplateSource implementation for ImageTemplateSource.

func (ImageTemplateSource) AsImageTemplateManagedImageSource

func (its ImageTemplateSource) AsImageTemplateManagedImageSource() (*ImageTemplateManagedImageSource, bool)

AsImageTemplateManagedImageSource is the BasicImageTemplateSource implementation for ImageTemplateSource.

func (ImageTemplateSource) AsImageTemplatePlatformImageSource

func (its ImageTemplateSource) AsImageTemplatePlatformImageSource() (*ImageTemplatePlatformImageSource, bool)

AsImageTemplatePlatformImageSource is the BasicImageTemplateSource implementation for ImageTemplateSource.

func (ImageTemplateSource) AsImageTemplateSource

func (its ImageTemplateSource) AsImageTemplateSource() (*ImageTemplateSource, bool)

AsImageTemplateSource is the BasicImageTemplateSource implementation for ImageTemplateSource.

func (ImageTemplateSource) MarshalJSON

func (its ImageTemplateSource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImageTemplateSource.

type ImageTemplateUpdateParameters

type ImageTemplateUpdateParameters struct {
	// Tags - The user-specified tags associated with the image template.
	Tags map[string]*string `json:"tags"`
}

ImageTemplateUpdateParameters parameters for updating an image template.

func (ImageTemplateUpdateParameters) MarshalJSON

func (itup ImageTemplateUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImageTemplateUpdateParameters.

type ImageTemplateVhdDistributor

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 (ImageTemplateVhdDistributor) AsBasicImageTemplateDistributor

func (itvd ImageTemplateVhdDistributor) AsBasicImageTemplateDistributor() (BasicImageTemplateDistributor, bool)

AsBasicImageTemplateDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateVhdDistributor.

func (ImageTemplateVhdDistributor) AsImageTemplateDistributor

func (itvd ImageTemplateVhdDistributor) AsImageTemplateDistributor() (*ImageTemplateDistributor, bool)

AsImageTemplateDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateVhdDistributor.

func (ImageTemplateVhdDistributor) AsImageTemplateManagedImageDistributor

func (itvd ImageTemplateVhdDistributor) AsImageTemplateManagedImageDistributor() (*ImageTemplateManagedImageDistributor, bool)

AsImageTemplateManagedImageDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateVhdDistributor.

func (ImageTemplateVhdDistributor) AsImageTemplateSharedImageDistributor

func (itvd ImageTemplateVhdDistributor) AsImageTemplateSharedImageDistributor() (*ImageTemplateSharedImageDistributor, bool)

AsImageTemplateSharedImageDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateVhdDistributor.

func (ImageTemplateVhdDistributor) AsImageTemplateVhdDistributor

func (itvd ImageTemplateVhdDistributor) AsImageTemplateVhdDistributor() (*ImageTemplateVhdDistributor, bool)

AsImageTemplateVhdDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateVhdDistributor.

func (ImageTemplateVhdDistributor) MarshalJSON

func (itvd ImageTemplateVhdDistributor) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImageTemplateVhdDistributor.

type InnerError

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

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"`
}

Operation ...

type OperationDisplay

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

type OperationListResult struct {
	autorest.Response `json:"-"`
	Value             *[]Operation `json:"value,omitempty"`
	NextLink          *string      `json:"nextLink,omitempty"`
}

OperationListResult ...

func (OperationListResult) IsEmpty

func (olr OperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListResultIterator

type OperationListResultIterator struct {
	// contains filtered or unexported fields
}

OperationListResultIterator provides access to a complete listing of Operation values.

func NewOperationListResultIterator

func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator

Creates a new instance of the OperationListResultIterator type.

func (*OperationListResultIterator) Next

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 (*OperationListResultIterator) NextWithContext

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 (OperationListResultIterator) NotDone

func (iter OperationListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (OperationListResultIterator) Response

Response returns the raw server response from the last page request.

func (OperationListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type OperationListResultPage

type OperationListResultPage struct {
	// contains filtered or unexported fields
}

OperationListResultPage contains a page of Operation values.

func NewOperationListResultPage

func NewOperationListResultPage(getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage

Creates a new instance of the OperationListResultPage type.

func (*OperationListResultPage) Next

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 (*OperationListResultPage) NextWithContext

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 (OperationListResultPage) NotDone

func (page OperationListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (OperationListResultPage) Response

Response returns the raw server response from the last page request.

func (OperationListResultPage) Values

func (page OperationListResultPage) Values() []Operation

Values returns the slice of values for the current page or nil if there are no values.

type OperationsClient

type OperationsClient struct {
	BaseClient
}

OperationsClient is the azure Virtual Machine Image Builder Client

func NewOperationsClient

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.

func (OperationsClient) List

func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error)

List lists available operations for the Microsoft.VirtualMachineImages provider

func (OperationsClient) ListComplete

func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (OperationsClient) ListPreparer

func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

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.

func (OperationsClient) ListSender

func (client OperationsClient) 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.

type ProvisioningError

type ProvisioningError struct {
	// ProvisioningErrorCode - Error code of the provisioning failure. Possible values include: 'BadSourceType', 'BadPIRSource', 'BadISOSource', 'BadManagedImageSource', '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 ...

type ProvisioningErrorCode

type ProvisioningErrorCode string

ProvisioningErrorCode enumerates the values for provisioning error code.

const (
	// BadCustomizerType ...
	BadCustomizerType ProvisioningErrorCode = "BadCustomizerType"
	// BadDistributeType ...
	BadDistributeType ProvisioningErrorCode = "BadDistributeType"
	// BadISOSource ...
	BadISOSource ProvisioningErrorCode = "BadISOSource"
	// BadManagedImageSource ...
	BadManagedImageSource ProvisioningErrorCode = "BadManagedImageSource"
	// BadPIRSource ...
	BadPIRSource ProvisioningErrorCode = "BadPIRSource"
	// BadSharedImageDistribute ...
	BadSharedImageDistribute ProvisioningErrorCode = "BadSharedImageDistribute"
	// BadSourceType ...
	BadSourceType ProvisioningErrorCode = "BadSourceType"
	// NoCustomizerScript ...
	NoCustomizerScript ProvisioningErrorCode = "NoCustomizerScript"
	// Other ...
	Other ProvisioningErrorCode = "Other"
	// ServerError ...
	ServerError ProvisioningErrorCode = "ServerError"
	// UnsupportedCustomizerType ...
	UnsupportedCustomizerType ProvisioningErrorCode = "UnsupportedCustomizerType"
)

func PossibleProvisioningErrorCodeValues

func PossibleProvisioningErrorCodeValues() []ProvisioningErrorCode

PossibleProvisioningErrorCodeValues returns an array of possible values for the ProvisioningErrorCode const type.

type ProvisioningState

type ProvisioningState string

ProvisioningState enumerates the values for provisioning state.

const (
	// Creating ...
	Creating ProvisioningState = "Creating"
	// Deleting ...
	Deleting ProvisioningState = "Deleting"
	// Failed ...
	Failed ProvisioningState = "Failed"
	// Succeeded ...
	Succeeded ProvisioningState = "Succeeded"
)

func PossibleProvisioningStateValues

func PossibleProvisioningStateValues() []ProvisioningState

PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.

type ProvisioningState1

type ProvisioningState1 string

ProvisioningState1 enumerates the values for provisioning state 1.

const (
	// ProvisioningState1Creating ...
	ProvisioningState1Creating ProvisioningState1 = "Creating"
	// ProvisioningState1Deleting ...
	ProvisioningState1Deleting ProvisioningState1 = "Deleting"
	// ProvisioningState1Failed ...
	ProvisioningState1Failed ProvisioningState1 = "Failed"
	// ProvisioningState1Succeeded ...
	ProvisioningState1Succeeded ProvisioningState1 = "Succeeded"
)

func PossibleProvisioningState1Values

func PossibleProvisioningState1Values() []ProvisioningState1

PossibleProvisioningState1Values returns an array of possible values for the ProvisioningState1 const type.

type Resource

type Resource struct {
	// ID - Resource Id
	ID *string `json:"id,omitempty"`
	// Name - Resource name
	Name *string `json:"name,omitempty"`
	// Type - 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.

func (Resource) MarshalJSON

func (r Resource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Resource.

type RunOutput

type RunOutput struct {
	autorest.Response    `json:"-"`
	*RunOutputProperties `json:"properties,omitempty"`
	// ID - Resource Id
	ID *string `json:"id,omitempty"`
	// Name - Resource name
	Name *string `json:"name,omitempty"`
	// Type - Resource type
	Type *string `json:"type,omitempty"`
}

RunOutput represents an output that was created by running an image template.

func (RunOutput) MarshalJSON

func (ro RunOutput) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RunOutput.

func (*RunOutput) UnmarshalJSON

func (ro *RunOutput) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RunOutput struct.

type RunOutputCollection

type RunOutputCollection struct {
	autorest.Response `json:"-"`
	Value             *[]RunOutput `json:"value,omitempty"`
	// NextLink - The continuation token.
	NextLink *string `json:"nextLink,omitempty"`
}

RunOutputCollection ...

func (RunOutputCollection) IsEmpty

func (roc RunOutputCollection) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type RunOutputCollectionIterator

type RunOutputCollectionIterator struct {
	// contains filtered or unexported fields
}

RunOutputCollectionIterator provides access to a complete listing of RunOutput values.

func NewRunOutputCollectionIterator

func NewRunOutputCollectionIterator(page RunOutputCollectionPage) RunOutputCollectionIterator

Creates a new instance of the RunOutputCollectionIterator type.

func (*RunOutputCollectionIterator) Next

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 (*RunOutputCollectionIterator) NextWithContext

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 (RunOutputCollectionIterator) NotDone

func (iter RunOutputCollectionIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (RunOutputCollectionIterator) Response

Response returns the raw server response from the last page request.

func (RunOutputCollectionIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type RunOutputCollectionPage

type RunOutputCollectionPage struct {
	// contains filtered or unexported fields
}

RunOutputCollectionPage contains a page of RunOutput values.

func NewRunOutputCollectionPage

func NewRunOutputCollectionPage(getNextPage func(context.Context, RunOutputCollection) (RunOutputCollection, error)) RunOutputCollectionPage

Creates a new instance of the RunOutputCollectionPage type.

func (*RunOutputCollectionPage) Next

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 (*RunOutputCollectionPage) NextWithContext

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 (RunOutputCollectionPage) NotDone

func (page RunOutputCollectionPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (RunOutputCollectionPage) Response

Response returns the raw server response from the last page request.

func (RunOutputCollectionPage) Values

func (page RunOutputCollectionPage) Values() []RunOutput

Values returns the slice of values for the current page or nil if there are no values.

type RunOutputProperties

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 - Provisioning state of the resource. Possible values include: 'ProvisioningState1Creating', 'ProvisioningState1Succeeded', 'ProvisioningState1Failed', 'ProvisioningState1Deleting'
	ProvisioningState ProvisioningState1 `json:"provisioningState,omitempty"`
}

RunOutputProperties ...

type RunState

type RunState string

RunState enumerates the values for run state.

const (
	// RunStateFailed ...
	RunStateFailed RunState = "Failed"
	// RunStatePartiallySucceeded ...
	RunStatePartiallySucceeded RunState = "PartiallySucceeded"
	// RunStateRunning ...
	RunStateRunning RunState = "Running"
	// RunStateSucceeded ...
	RunStateSucceeded RunState = "Succeeded"
)

func PossibleRunStateValues

func PossibleRunStateValues() []RunState

PossibleRunStateValues returns an array of possible values for the RunState const type.

type RunSubState

type RunSubState string

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

func PossibleRunSubStateValues() []RunSubState

PossibleRunSubStateValues returns an array of possible values for the RunSubState const type.

type SubResource

type SubResource struct {
	// ID - Resource Id
	ID *string `json:"id,omitempty"`
	// Name - Resource name
	Name *string `json:"name,omitempty"`
	// Type - Resource type
	Type *string `json:"type,omitempty"`
}

SubResource the Sub Resource model definition.

type Type

type Type string

Type enumerates the values for type.

const (
	// TypeImageTemplateSource ...
	TypeImageTemplateSource Type = "ImageTemplateSource"
	// TypeISO ...
	TypeISO Type = "ISO"
	// TypeManagedImage ...
	TypeManagedImage Type = "ManagedImage"
	// TypePlatformImage ...
	TypePlatformImage Type = "PlatformImage"
)

func PossibleTypeValues

func PossibleTypeValues() []Type

PossibleTypeValues returns an array of possible values for the Type const type.

type TypeBasicImageTemplateCustomizer

type TypeBasicImageTemplateCustomizer string

TypeBasicImageTemplateCustomizer enumerates the values for type basic image template customizer.

const (
	// TypeImageTemplateCustomizer ...
	TypeImageTemplateCustomizer TypeBasicImageTemplateCustomizer = "ImageTemplateCustomizer"
	// TypePowerShell ...
	TypePowerShell TypeBasicImageTemplateCustomizer = "PowerShell"
	// TypeShell ...
	TypeShell TypeBasicImageTemplateCustomizer = "Shell"
	// TypeWindowsRestart ...
	TypeWindowsRestart TypeBasicImageTemplateCustomizer = "WindowsRestart"
)

func PossibleTypeBasicImageTemplateCustomizerValues

func PossibleTypeBasicImageTemplateCustomizerValues() []TypeBasicImageTemplateCustomizer

PossibleTypeBasicImageTemplateCustomizerValues returns an array of possible values for the TypeBasicImageTemplateCustomizer const type.

type TypeBasicImageTemplateDistributor

type TypeBasicImageTemplateDistributor string

TypeBasicImageTemplateDistributor enumerates the values for type basic image template distributor.

const (
	// TypeBasicImageTemplateDistributorTypeImageTemplateDistributor ...
	TypeBasicImageTemplateDistributorTypeImageTemplateDistributor TypeBasicImageTemplateDistributor = "ImageTemplateDistributor"
	// TypeBasicImageTemplateDistributorTypeManagedImage ...
	TypeBasicImageTemplateDistributorTypeManagedImage TypeBasicImageTemplateDistributor = "ManagedImage"
	// TypeBasicImageTemplateDistributorTypeSharedImage ...
	TypeBasicImageTemplateDistributorTypeSharedImage TypeBasicImageTemplateDistributor = "SharedImage"
	// TypeBasicImageTemplateDistributorTypeVHD ...
	TypeBasicImageTemplateDistributorTypeVHD TypeBasicImageTemplateDistributor = "VHD"
)

func PossibleTypeBasicImageTemplateDistributorValues

func PossibleTypeBasicImageTemplateDistributorValues() []TypeBasicImageTemplateDistributor

PossibleTypeBasicImageTemplateDistributorValues returns an array of possible values for the TypeBasicImageTemplateDistributor const type.

type VirtualMachineImageTemplatesClient

type VirtualMachineImageTemplatesClient struct {
	BaseClient
}

VirtualMachineImageTemplatesClient is the azure Virtual Machine Image Builder Client

func NewVirtualMachineImageTemplatesClient

func NewVirtualMachineImageTemplatesClient(subscriptionID string) VirtualMachineImageTemplatesClient

NewVirtualMachineImageTemplatesClient creates an instance of the VirtualMachineImageTemplatesClient client.

func NewVirtualMachineImageTemplatesClientWithBaseURI

func NewVirtualMachineImageTemplatesClientWithBaseURI(baseURI string, subscriptionID string) VirtualMachineImageTemplatesClient

NewVirtualMachineImageTemplatesClientWithBaseURI creates an instance of the VirtualMachineImageTemplatesClient client.

func (VirtualMachineImageTemplatesClient) CreateOrUpdate

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 (VirtualMachineImageTemplatesClient) CreateOrUpdatePreparer

func (client VirtualMachineImageTemplatesClient) CreateOrUpdatePreparer(ctx context.Context, parameters ImageTemplate, resourceGroupName string, imageTemplateName string) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (VirtualMachineImageTemplatesClient) CreateOrUpdateResponder

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 (VirtualMachineImageTemplatesClient) CreateOrUpdateSender

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (VirtualMachineImageTemplatesClient) Delete

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 (VirtualMachineImageTemplatesClient) DeletePreparer

func (client VirtualMachineImageTemplatesClient) DeletePreparer(ctx context.Context, resourceGroupName string, imageTemplateName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (VirtualMachineImageTemplatesClient) DeleteResponder

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 (VirtualMachineImageTemplatesClient) DeleteSender

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (VirtualMachineImageTemplatesClient) Get

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 (VirtualMachineImageTemplatesClient) GetPreparer

func (client VirtualMachineImageTemplatesClient) GetPreparer(ctx context.Context, resourceGroupName string, imageTemplateName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (VirtualMachineImageTemplatesClient) GetResponder

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 (VirtualMachineImageTemplatesClient) GetRunOutput

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 (VirtualMachineImageTemplatesClient) GetRunOutputPreparer

func (client VirtualMachineImageTemplatesClient) GetRunOutputPreparer(ctx context.Context, resourceGroupName string, imageTemplateName string, runOutputName string) (*http.Request, error)

GetRunOutputPreparer prepares the GetRunOutput request.

func (VirtualMachineImageTemplatesClient) GetRunOutputResponder

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 (VirtualMachineImageTemplatesClient) GetRunOutputSender

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 (VirtualMachineImageTemplatesClient) GetSender

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (VirtualMachineImageTemplatesClient) List

List gets information about the VM image templates associated with the subscription.

func (VirtualMachineImageTemplatesClient) ListByResourceGroup

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 (VirtualMachineImageTemplatesClient) ListByResourceGroupComplete

func (client VirtualMachineImageTemplatesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ImageTemplateListResultIterator, err error)

ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (VirtualMachineImageTemplatesClient) ListByResourceGroupPreparer

func (client VirtualMachineImageTemplatesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (VirtualMachineImageTemplatesClient) ListByResourceGroupResponder

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 (VirtualMachineImageTemplatesClient) ListByResourceGroupSender

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 (VirtualMachineImageTemplatesClient) ListComplete

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (VirtualMachineImageTemplatesClient) ListPreparer

func (client VirtualMachineImageTemplatesClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (VirtualMachineImageTemplatesClient) ListResponder

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 (VirtualMachineImageTemplatesClient) ListRunOutputs

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 (VirtualMachineImageTemplatesClient) ListRunOutputsComplete

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 (VirtualMachineImageTemplatesClient) ListRunOutputsPreparer

func (client VirtualMachineImageTemplatesClient) ListRunOutputsPreparer(ctx context.Context, resourceGroupName string, imageTemplateName string) (*http.Request, error)

ListRunOutputsPreparer prepares the ListRunOutputs request.

func (VirtualMachineImageTemplatesClient) ListRunOutputsResponder

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 (VirtualMachineImageTemplatesClient) ListRunOutputsSender

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 (VirtualMachineImageTemplatesClient) ListSender

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 (VirtualMachineImageTemplatesClient) Run

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 (VirtualMachineImageTemplatesClient) RunPreparer

func (client VirtualMachineImageTemplatesClient) RunPreparer(ctx context.Context, resourceGroupName string, imageTemplateName string) (*http.Request, error)

RunPreparer prepares the Run request.

func (VirtualMachineImageTemplatesClient) RunResponder

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 (VirtualMachineImageTemplatesClient) RunSender

RunSender sends the Run request. The method will close the http.Response Body if it receives an error.

func (VirtualMachineImageTemplatesClient) Update

func (client VirtualMachineImageTemplatesClient) Update(ctx context.Context, parameters ImageTemplateUpdateParameters, resourceGroupName string, imageTemplateName string) (result ImageTemplate, 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 (VirtualMachineImageTemplatesClient) UpdatePreparer

func (client VirtualMachineImageTemplatesClient) UpdatePreparer(ctx context.Context, parameters ImageTemplateUpdateParameters, resourceGroupName string, imageTemplateName string) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (VirtualMachineImageTemplatesClient) UpdateResponder

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 (VirtualMachineImageTemplatesClient) UpdateSender

func (client VirtualMachineImageTemplatesClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type VirtualMachineImageTemplatesCreateOrUpdateFuture

type VirtualMachineImageTemplatesCreateOrUpdateFuture struct {
	azure.Future
}

VirtualMachineImageTemplatesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*VirtualMachineImageTemplatesCreateOrUpdateFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type VirtualMachineImageTemplatesDeleteFuture

type VirtualMachineImageTemplatesDeleteFuture struct {
	azure.Future
}

VirtualMachineImageTemplatesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*VirtualMachineImageTemplatesDeleteFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type VirtualMachineImageTemplatesRunFuture

type VirtualMachineImageTemplatesRunFuture struct {
	azure.Future
}

VirtualMachineImageTemplatesRunFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*VirtualMachineImageTemplatesRunFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL