azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/preview/virtualmachineimagebuilder/mgmt/2019-05-01-preview/virtualmachineimagebuilder Index | Files | Directories

package virtualmachineimagebuilder

import "github.com/Azure/azure-sdk-for-go/services/preview/virtualmachineimagebuilder/mgmt/2019-05-01-preview/virtualmachineimagebuilder"

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

Azure Virtual Machine Image Builder Client

Index

Package Files

client.go models.go operations.go version.go virtualmachineimagetemplates.go

Constants

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

func UserAgent Uses

func UserAgent() string

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

func Version Uses

func Version() string

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

type APIError Uses

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 Uses

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 Uses

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

BaseClient is the base client for Virtualmachineimagebuilder.

func New Uses

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type BasicImageTemplateCustomizer Uses

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

BasicImageTemplateCustomizer ...

type BasicImageTemplateDistributor Uses

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

BasicImageTemplateDistributor generic distribution object

type BasicImageTemplateSource Uses

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

BasicImageTemplateSource ...

type ImageTemplate Uses

type ImageTemplate struct {
    autorest.Response        `json:"-"`
    *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 ...

func (ImageTemplate) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ImageTemplate.

func (*ImageTemplate) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ImageTemplate struct.

type ImageTemplateCustomizer Uses

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

ImageTemplateCustomizer ...

func (ImageTemplateCustomizer) AsBasicImageTemplateCustomizer Uses

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

AsBasicImageTemplateCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateCustomizer.

func (ImageTemplateCustomizer) AsImageTemplateCustomizer Uses

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

AsImageTemplateCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateCustomizer.

func (ImageTemplateCustomizer) AsImageTemplateFileCustomizer Uses

func (itc ImageTemplateCustomizer) AsImageTemplateFileCustomizer() (*ImageTemplateFileCustomizer, bool)

AsImageTemplateFileCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateCustomizer.

func (ImageTemplateCustomizer) AsImageTemplatePowerShellCustomizer Uses

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

AsImageTemplatePowerShellCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateCustomizer.

func (ImageTemplateCustomizer) AsImageTemplateRestartCustomizer Uses

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

AsImageTemplateRestartCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateCustomizer.

func (ImageTemplateCustomizer) AsImageTemplateShellCustomizer Uses

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

AsImageTemplateShellCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateCustomizer.

func (ImageTemplateCustomizer) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ImageTemplateCustomizer.

type ImageTemplateDistributor Uses

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 Uses

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

AsBasicImageTemplateDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateDistributor.

func (ImageTemplateDistributor) AsImageTemplateDistributor Uses

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

AsImageTemplateDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateDistributor.

func (ImageTemplateDistributor) AsImageTemplateManagedImageDistributor Uses

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

AsImageTemplateManagedImageDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateDistributor.

func (ImageTemplateDistributor) AsImageTemplateSharedImageDistributor Uses

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

AsImageTemplateSharedImageDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateDistributor.

func (ImageTemplateDistributor) AsImageTemplateVhdDistributor Uses

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

AsImageTemplateVhdDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateDistributor.

func (ImageTemplateDistributor) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ImageTemplateDistributor.

type ImageTemplateFileCustomizer Uses

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

ImageTemplateFileCustomizer uploads files to VMs (Linux, Windows). Corresponds to Packer file provisioner

func (ImageTemplateFileCustomizer) AsBasicImageTemplateCustomizer Uses

func (itfc ImageTemplateFileCustomizer) AsBasicImageTemplateCustomizer() (BasicImageTemplateCustomizer, bool)

AsBasicImageTemplateCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateFileCustomizer.

func (ImageTemplateFileCustomizer) AsImageTemplateCustomizer Uses

func (itfc ImageTemplateFileCustomizer) AsImageTemplateCustomizer() (*ImageTemplateCustomizer, bool)

AsImageTemplateCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateFileCustomizer.

func (ImageTemplateFileCustomizer) AsImageTemplateFileCustomizer Uses

func (itfc ImageTemplateFileCustomizer) AsImageTemplateFileCustomizer() (*ImageTemplateFileCustomizer, bool)

AsImageTemplateFileCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateFileCustomizer.

func (ImageTemplateFileCustomizer) AsImageTemplatePowerShellCustomizer Uses

func (itfc ImageTemplateFileCustomizer) AsImageTemplatePowerShellCustomizer() (*ImageTemplatePowerShellCustomizer, bool)

AsImageTemplatePowerShellCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateFileCustomizer.

func (ImageTemplateFileCustomizer) AsImageTemplateRestartCustomizer Uses

func (itfc ImageTemplateFileCustomizer) AsImageTemplateRestartCustomizer() (*ImageTemplateRestartCustomizer, bool)

AsImageTemplateRestartCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateFileCustomizer.

func (ImageTemplateFileCustomizer) AsImageTemplateShellCustomizer Uses

func (itfc ImageTemplateFileCustomizer) AsImageTemplateShellCustomizer() (*ImageTemplateShellCustomizer, bool)

AsImageTemplateShellCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateFileCustomizer.

func (ImageTemplateFileCustomizer) MarshalJSON Uses

func (itfc ImageTemplateFileCustomizer) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImageTemplateFileCustomizer.

type ImageTemplateIdentity Uses

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 (ImageTemplateIdentity) MarshalJSON Uses

func (iti ImageTemplateIdentity) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImageTemplateIdentity.

type ImageTemplateIdentityUserAssignedIdentitiesValue Uses

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 ImageTemplateIsoSource Uses

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', 'TypeSharedImageVersion'
    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 Uses

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

AsBasicImageTemplateSource is the BasicImageTemplateSource implementation for ImageTemplateIsoSource.

func (ImageTemplateIsoSource) AsImageTemplateIsoSource Uses

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

AsImageTemplateIsoSource is the BasicImageTemplateSource implementation for ImageTemplateIsoSource.

func (ImageTemplateIsoSource) AsImageTemplateManagedImageSource Uses

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

AsImageTemplateManagedImageSource is the BasicImageTemplateSource implementation for ImageTemplateIsoSource.

func (ImageTemplateIsoSource) AsImageTemplatePlatformImageSource Uses

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

AsImageTemplatePlatformImageSource is the BasicImageTemplateSource implementation for ImageTemplateIsoSource.

func (ImageTemplateIsoSource) AsImageTemplateSharedImageVersionSource Uses

func (itis ImageTemplateIsoSource) AsImageTemplateSharedImageVersionSource() (*ImageTemplateSharedImageVersionSource, bool)

AsImageTemplateSharedImageVersionSource is the BasicImageTemplateSource implementation for ImageTemplateIsoSource.

func (ImageTemplateIsoSource) AsImageTemplateSource Uses

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

AsImageTemplateSource is the BasicImageTemplateSource implementation for ImageTemplateIsoSource.

func (ImageTemplateIsoSource) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ImageTemplateIsoSource.

type ImageTemplateLastRunStatus Uses

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 Uses

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

ImageTemplateListResult ...

func (ImageTemplateListResult) IsEmpty Uses

func (itlr ImageTemplateListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ImageTemplateListResultIterator Uses

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

ImageTemplateListResultIterator provides access to a complete listing of ImageTemplate values.

func NewImageTemplateListResultIterator Uses

func NewImageTemplateListResultIterator(page ImageTemplateListResultPage) ImageTemplateListResultIterator

Creates a new instance of the ImageTemplateListResultIterator type.

func (*ImageTemplateListResultIterator) Next Uses

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

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 Uses

func (iter ImageTemplateListResultIterator) NotDone() bool

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

func (ImageTemplateListResultIterator) Response Uses

func (iter ImageTemplateListResultIterator) Response() ImageTemplateListResult

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

func (ImageTemplateListResultIterator) Value Uses

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 Uses

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

ImageTemplateListResultPage contains a page of ImageTemplate values.

func NewImageTemplateListResultPage Uses

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

Creates a new instance of the ImageTemplateListResultPage type.

func (*ImageTemplateListResultPage) Next Uses

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 Uses

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 Uses

func (page ImageTemplateListResultPage) NotDone() bool

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

func (ImageTemplateListResultPage) Response Uses

func (page ImageTemplateListResultPage) Response() ImageTemplateListResult

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

func (ImageTemplateListResultPage) Values Uses

func (page ImageTemplateListResultPage) Values() []ImageTemplate

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

type ImageTemplateManagedImageDistributor Uses

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 Uses

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

AsBasicImageTemplateDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateManagedImageDistributor.

func (ImageTemplateManagedImageDistributor) AsImageTemplateDistributor Uses

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

AsImageTemplateDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateManagedImageDistributor.

func (ImageTemplateManagedImageDistributor) AsImageTemplateManagedImageDistributor Uses

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

AsImageTemplateManagedImageDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateManagedImageDistributor.

func (ImageTemplateManagedImageDistributor) AsImageTemplateSharedImageDistributor Uses

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

AsImageTemplateSharedImageDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateManagedImageDistributor.

func (ImageTemplateManagedImageDistributor) AsImageTemplateVhdDistributor Uses

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

AsImageTemplateVhdDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateManagedImageDistributor.

func (ImageTemplateManagedImageDistributor) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ImageTemplateManagedImageDistributor.

type ImageTemplateManagedImageSource Uses

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

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

func (ImageTemplateManagedImageSource) AsBasicImageTemplateSource Uses

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

AsBasicImageTemplateSource is the BasicImageTemplateSource implementation for ImageTemplateManagedImageSource.

func (ImageTemplateManagedImageSource) AsImageTemplateIsoSource Uses

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

AsImageTemplateIsoSource is the BasicImageTemplateSource implementation for ImageTemplateManagedImageSource.

func (ImageTemplateManagedImageSource) AsImageTemplateManagedImageSource Uses

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

AsImageTemplateManagedImageSource is the BasicImageTemplateSource implementation for ImageTemplateManagedImageSource.

func (ImageTemplateManagedImageSource) AsImageTemplatePlatformImageSource Uses

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

AsImageTemplatePlatformImageSource is the BasicImageTemplateSource implementation for ImageTemplateManagedImageSource.

func (ImageTemplateManagedImageSource) AsImageTemplateSharedImageVersionSource Uses

func (itmis ImageTemplateManagedImageSource) AsImageTemplateSharedImageVersionSource() (*ImageTemplateSharedImageVersionSource, bool)

AsImageTemplateSharedImageVersionSource is the BasicImageTemplateSource implementation for ImageTemplateManagedImageSource.

func (ImageTemplateManagedImageSource) AsImageTemplateSource Uses

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

AsImageTemplateSource is the BasicImageTemplateSource implementation for ImageTemplateManagedImageSource.

func (ImageTemplateManagedImageSource) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ImageTemplateManagedImageSource.

type ImageTemplatePlatformImageSource Uses

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', '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 (ImageTemplatePlatformImageSource) AsBasicImageTemplateSource Uses

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

AsBasicImageTemplateSource is the BasicImageTemplateSource implementation for ImageTemplatePlatformImageSource.

func (ImageTemplatePlatformImageSource) AsImageTemplateIsoSource Uses

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

AsImageTemplateIsoSource is the BasicImageTemplateSource implementation for ImageTemplatePlatformImageSource.

func (ImageTemplatePlatformImageSource) AsImageTemplateManagedImageSource Uses

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

AsImageTemplateManagedImageSource is the BasicImageTemplateSource implementation for ImageTemplatePlatformImageSource.

func (ImageTemplatePlatformImageSource) AsImageTemplatePlatformImageSource Uses

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

AsImageTemplatePlatformImageSource is the BasicImageTemplateSource implementation for ImageTemplatePlatformImageSource.

func (ImageTemplatePlatformImageSource) AsImageTemplateSharedImageVersionSource Uses

func (itpis ImageTemplatePlatformImageSource) AsImageTemplateSharedImageVersionSource() (*ImageTemplateSharedImageVersionSource, bool)

AsImageTemplateSharedImageVersionSource is the BasicImageTemplateSource implementation for ImageTemplatePlatformImageSource.

func (ImageTemplatePlatformImageSource) AsImageTemplateSource Uses

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

AsImageTemplateSource is the BasicImageTemplateSource implementation for ImageTemplatePlatformImageSource.

func (ImageTemplatePlatformImageSource) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ImageTemplatePlatformImageSource.

type ImageTemplatePowerShellCustomizer Uses

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"`
    // 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', '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 (ImageTemplatePowerShellCustomizer) AsBasicImageTemplateCustomizer Uses

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

AsBasicImageTemplateCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplatePowerShellCustomizer.

func (ImageTemplatePowerShellCustomizer) AsImageTemplateCustomizer Uses

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

AsImageTemplateCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplatePowerShellCustomizer.

func (ImageTemplatePowerShellCustomizer) AsImageTemplateFileCustomizer Uses

func (itpsc ImageTemplatePowerShellCustomizer) AsImageTemplateFileCustomizer() (*ImageTemplateFileCustomizer, bool)

AsImageTemplateFileCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplatePowerShellCustomizer.

func (ImageTemplatePowerShellCustomizer) AsImageTemplatePowerShellCustomizer Uses

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

AsImageTemplatePowerShellCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplatePowerShellCustomizer.

func (ImageTemplatePowerShellCustomizer) AsImageTemplateRestartCustomizer Uses

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

AsImageTemplateRestartCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplatePowerShellCustomizer.

func (ImageTemplatePowerShellCustomizer) AsImageTemplateShellCustomizer Uses

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

AsImageTemplateShellCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplatePowerShellCustomizer.

func (ImageTemplatePowerShellCustomizer) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ImageTemplatePowerShellCustomizer.

type ImageTemplateProperties Uses

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 (60 minutes).
    BuildTimeoutInMinutes *int32 `json:"buildTimeoutInMinutes,omitempty"`
}

ImageTemplateProperties ...

func (*ImageTemplateProperties) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ImageTemplateProperties struct.

type ImageTemplateRestartCustomizer Uses

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

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

AsBasicImageTemplateCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateRestartCustomizer.

func (ImageTemplateRestartCustomizer) AsImageTemplateCustomizer Uses

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

AsImageTemplateCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateRestartCustomizer.

func (ImageTemplateRestartCustomizer) AsImageTemplateFileCustomizer Uses

func (itrc ImageTemplateRestartCustomizer) AsImageTemplateFileCustomizer() (*ImageTemplateFileCustomizer, bool)

AsImageTemplateFileCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateRestartCustomizer.

func (ImageTemplateRestartCustomizer) AsImageTemplatePowerShellCustomizer Uses

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

AsImageTemplatePowerShellCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateRestartCustomizer.

func (ImageTemplateRestartCustomizer) AsImageTemplateRestartCustomizer Uses

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

AsImageTemplateRestartCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateRestartCustomizer.

func (ImageTemplateRestartCustomizer) AsImageTemplateShellCustomizer Uses

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

AsImageTemplateShellCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateRestartCustomizer.

func (ImageTemplateRestartCustomizer) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ImageTemplateRestartCustomizer.

type ImageTemplateSharedImageDistributor Uses

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 Uses

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

AsBasicImageTemplateDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateSharedImageDistributor.

func (ImageTemplateSharedImageDistributor) AsImageTemplateDistributor Uses

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

AsImageTemplateDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateSharedImageDistributor.

func (ImageTemplateSharedImageDistributor) AsImageTemplateManagedImageDistributor Uses

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

AsImageTemplateManagedImageDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateSharedImageDistributor.

func (ImageTemplateSharedImageDistributor) AsImageTemplateSharedImageDistributor Uses

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

AsImageTemplateSharedImageDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateSharedImageDistributor.

func (ImageTemplateSharedImageDistributor) AsImageTemplateVhdDistributor Uses

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

AsImageTemplateVhdDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateSharedImageDistributor.

func (ImageTemplateSharedImageDistributor) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ImageTemplateSharedImageDistributor.

type ImageTemplateSharedImageVersionSource Uses

type ImageTemplateSharedImageVersionSource struct {
    // ImageVersionID - ARM resource id of the image version in the shared image gallery
    ImageVersionID *string `json:"imageVersionId,omitempty"`
    // Type - Possible values include: 'TypeImageTemplateSource', 'TypeISO', 'TypePlatformImage', 'TypeManagedImage', 'TypeSharedImageVersion'
    Type Type `json:"type,omitempty"`
}

ImageTemplateSharedImageVersionSource describes an image source that is an image version in a shared image gallery.

func (ImageTemplateSharedImageVersionSource) AsBasicImageTemplateSource Uses

func (itsivs ImageTemplateSharedImageVersionSource) AsBasicImageTemplateSource() (BasicImageTemplateSource, bool)

AsBasicImageTemplateSource is the BasicImageTemplateSource implementation for ImageTemplateSharedImageVersionSource.

func (ImageTemplateSharedImageVersionSource) AsImageTemplateIsoSource Uses

func (itsivs ImageTemplateSharedImageVersionSource) AsImageTemplateIsoSource() (*ImageTemplateIsoSource, bool)

AsImageTemplateIsoSource is the BasicImageTemplateSource implementation for ImageTemplateSharedImageVersionSource.

func (ImageTemplateSharedImageVersionSource) AsImageTemplateManagedImageSource Uses

func (itsivs ImageTemplateSharedImageVersionSource) AsImageTemplateManagedImageSource() (*ImageTemplateManagedImageSource, bool)

AsImageTemplateManagedImageSource is the BasicImageTemplateSource implementation for ImageTemplateSharedImageVersionSource.

func (ImageTemplateSharedImageVersionSource) AsImageTemplatePlatformImageSource Uses

func (itsivs ImageTemplateSharedImageVersionSource) AsImageTemplatePlatformImageSource() (*ImageTemplatePlatformImageSource, bool)

AsImageTemplatePlatformImageSource is the BasicImageTemplateSource implementation for ImageTemplateSharedImageVersionSource.

func (ImageTemplateSharedImageVersionSource) AsImageTemplateSharedImageVersionSource Uses

func (itsivs ImageTemplateSharedImageVersionSource) AsImageTemplateSharedImageVersionSource() (*ImageTemplateSharedImageVersionSource, bool)

AsImageTemplateSharedImageVersionSource is the BasicImageTemplateSource implementation for ImageTemplateSharedImageVersionSource.

func (ImageTemplateSharedImageVersionSource) AsImageTemplateSource Uses

func (itsivs ImageTemplateSharedImageVersionSource) AsImageTemplateSource() (*ImageTemplateSource, bool)

AsImageTemplateSource is the BasicImageTemplateSource implementation for ImageTemplateSharedImageVersionSource.

func (ImageTemplateSharedImageVersionSource) MarshalJSON Uses

func (itsivs ImageTemplateSharedImageVersionSource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImageTemplateSharedImageVersionSource.

type ImageTemplateShellCustomizer Uses

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"`
    // 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', '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 (ImageTemplateShellCustomizer) AsBasicImageTemplateCustomizer Uses

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

AsBasicImageTemplateCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateShellCustomizer.

func (ImageTemplateShellCustomizer) AsImageTemplateCustomizer Uses

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

AsImageTemplateCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateShellCustomizer.

func (ImageTemplateShellCustomizer) AsImageTemplateFileCustomizer Uses

func (itsc ImageTemplateShellCustomizer) AsImageTemplateFileCustomizer() (*ImageTemplateFileCustomizer, bool)

AsImageTemplateFileCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateShellCustomizer.

func (ImageTemplateShellCustomizer) AsImageTemplatePowerShellCustomizer Uses

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

AsImageTemplatePowerShellCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateShellCustomizer.

func (ImageTemplateShellCustomizer) AsImageTemplateRestartCustomizer Uses

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

AsImageTemplateRestartCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateShellCustomizer.

func (ImageTemplateShellCustomizer) AsImageTemplateShellCustomizer Uses

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

AsImageTemplateShellCustomizer is the BasicImageTemplateCustomizer implementation for ImageTemplateShellCustomizer.

func (ImageTemplateShellCustomizer) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ImageTemplateShellCustomizer.

type ImageTemplateSource Uses

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

ImageTemplateSource ...

func (ImageTemplateSource) AsBasicImageTemplateSource Uses

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

AsBasicImageTemplateSource is the BasicImageTemplateSource implementation for ImageTemplateSource.

func (ImageTemplateSource) AsImageTemplateIsoSource Uses

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

AsImageTemplateIsoSource is the BasicImageTemplateSource implementation for ImageTemplateSource.

func (ImageTemplateSource) AsImageTemplateManagedImageSource Uses

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

AsImageTemplateManagedImageSource is the BasicImageTemplateSource implementation for ImageTemplateSource.

func (ImageTemplateSource) AsImageTemplatePlatformImageSource Uses

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

AsImageTemplatePlatformImageSource is the BasicImageTemplateSource implementation for ImageTemplateSource.

func (ImageTemplateSource) AsImageTemplateSharedImageVersionSource Uses

func (its ImageTemplateSource) AsImageTemplateSharedImageVersionSource() (*ImageTemplateSharedImageVersionSource, bool)

AsImageTemplateSharedImageVersionSource is the BasicImageTemplateSource implementation for ImageTemplateSource.

func (ImageTemplateSource) AsImageTemplateSource Uses

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

AsImageTemplateSource is the BasicImageTemplateSource implementation for ImageTemplateSource.

func (ImageTemplateSource) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ImageTemplateSource.

type ImageTemplateUpdateParameters Uses

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 (ImageTemplateUpdateParameters) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ImageTemplateUpdateParameters.

type ImageTemplateVhdDistributor Uses

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 Uses

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

AsBasicImageTemplateDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateVhdDistributor.

func (ImageTemplateVhdDistributor) AsImageTemplateDistributor Uses

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

AsImageTemplateDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateVhdDistributor.

func (ImageTemplateVhdDistributor) AsImageTemplateManagedImageDistributor Uses

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

AsImageTemplateManagedImageDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateVhdDistributor.

func (ImageTemplateVhdDistributor) AsImageTemplateSharedImageDistributor Uses

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

AsImageTemplateSharedImageDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateVhdDistributor.

func (ImageTemplateVhdDistributor) AsImageTemplateVhdDistributor Uses

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

AsImageTemplateVhdDistributor is the BasicImageTemplateDistributor implementation for ImageTemplateVhdDistributor.

func (ImageTemplateVhdDistributor) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ImageTemplateVhdDistributor.

type InnerError Uses

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 Uses

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 Uses

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 Uses

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

OperationListResult ...

func (OperationListResult) IsEmpty Uses

func (olr OperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListResultIterator Uses

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

OperationListResultIterator provides access to a complete listing of Operation values.

func NewOperationListResultIterator Uses

func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator

Creates a new instance of the OperationListResultIterator type.

func (*OperationListResultIterator) Next Uses

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 Uses

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 Uses

func (iter OperationListResultIterator) NotDone() bool

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

func (OperationListResultIterator) Response Uses

func (iter OperationListResultIterator) Response() OperationListResult

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

func (OperationListResultIterator) Value Uses

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 Uses

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

OperationListResultPage contains a page of Operation values.

func NewOperationListResultPage Uses

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

Creates a new instance of the OperationListResultPage type.

func (*OperationListResultPage) Next Uses

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 Uses

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 Uses

func (page OperationListResultPage) NotDone() bool

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

func (OperationListResultPage) Response Uses

func (page OperationListResultPage) Response() OperationListResult

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

func (OperationListResultPage) Values Uses

func (page OperationListResultPage) Values() []Operation

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

type OperationsClient Uses

type OperationsClient struct {
    BaseClient
}

OperationsClient is the azure Virtual Machine Image Builder Client

func NewOperationsClient Uses

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI Uses

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.

func (OperationsClient) List Uses

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

List lists available operations for the Microsoft.VirtualMachineImages provider

func (OperationsClient) ListComplete Uses

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

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

func (OperationsClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (OperationsClient) ListResponder Uses

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 Uses

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 Uses

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

type ProvisioningErrorCode Uses

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"
    // BadSharedImageVersionSource ...
    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 Uses

func PossibleProvisioningErrorCodeValues() []ProvisioningErrorCode

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

type ProvisioningState Uses

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"
    // Updating ...
    Updating ProvisioningState = "Updating"
)

func PossibleProvisioningStateValues Uses

func PossibleProvisioningStateValues() []ProvisioningState

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

type ProvisioningState1 Uses

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"
    // ProvisioningState1Updating ...
    ProvisioningState1Updating ProvisioningState1 = "Updating"
)

func PossibleProvisioningState1Values Uses

func PossibleProvisioningState1Values() []ProvisioningState1

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

type Resource Uses

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.

func (Resource) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Resource.

type ResourceIdentityType Uses

type ResourceIdentityType string

ResourceIdentityType enumerates the values for resource identity type.

const (
    // None ...
    None ResourceIdentityType = "None"
    // UserAssigned ...
    UserAssigned ResourceIdentityType = "UserAssigned"
)

func PossibleResourceIdentityTypeValues Uses

func PossibleResourceIdentityTypeValues() []ResourceIdentityType

PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type.

type RunOutput Uses

type RunOutput struct {
    autorest.Response    `json:"-"`
    *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.

func (RunOutput) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for RunOutput.

func (*RunOutput) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for RunOutput struct.

type RunOutputCollection Uses

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

RunOutputCollection ...

func (RunOutputCollection) IsEmpty Uses

func (roc RunOutputCollection) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type RunOutputCollectionIterator Uses

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

RunOutputCollectionIterator provides access to a complete listing of RunOutput values.

func NewRunOutputCollectionIterator Uses

func NewRunOutputCollectionIterator(page RunOutputCollectionPage) RunOutputCollectionIterator

Creates a new instance of the RunOutputCollectionIterator type.

func (*RunOutputCollectionIterator) Next Uses

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 Uses

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 Uses

func (iter RunOutputCollectionIterator) NotDone() bool

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

func (RunOutputCollectionIterator) Response Uses

func (iter RunOutputCollectionIterator) Response() RunOutputCollection

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

func (RunOutputCollectionIterator) Value Uses

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 Uses

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

RunOutputCollectionPage contains a page of RunOutput values.

func NewRunOutputCollectionPage Uses

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

Creates a new instance of the RunOutputCollectionPage type.

func (*RunOutputCollectionPage) Next Uses

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 Uses

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 Uses

func (page RunOutputCollectionPage) NotDone() bool

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

func (RunOutputCollectionPage) Response Uses

func (page RunOutputCollectionPage) Response() RunOutputCollection

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

func (RunOutputCollectionPage) Values Uses

func (page RunOutputCollectionPage) Values() []RunOutput

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

type RunOutputProperties Uses

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: 'ProvisioningState1Creating', 'ProvisioningState1Updating', 'ProvisioningState1Succeeded', 'ProvisioningState1Failed', 'ProvisioningState1Deleting'
    ProvisioningState ProvisioningState1 `json:"provisioningState,omitempty"`
}

RunOutputProperties ...

type RunState Uses

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 Uses

func PossibleRunStateValues() []RunState

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

type RunSubState Uses

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 Uses

func PossibleRunSubStateValues() []RunSubState

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

type SubResource Uses

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.

type Type Uses

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"
    // TypeSharedImageVersion ...
    TypeSharedImageVersion Type = "SharedImageVersion"
)

func PossibleTypeValues Uses

func PossibleTypeValues() []Type

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

type TypeBasicImageTemplateCustomizer Uses

type TypeBasicImageTemplateCustomizer string

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"
)

func PossibleTypeBasicImageTemplateCustomizerValues Uses

func PossibleTypeBasicImageTemplateCustomizerValues() []TypeBasicImageTemplateCustomizer

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

type TypeBasicImageTemplateDistributor Uses

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 Uses

func PossibleTypeBasicImageTemplateDistributorValues() []TypeBasicImageTemplateDistributor

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

type VirtualMachineImageTemplatesClient Uses

type VirtualMachineImageTemplatesClient struct {
    BaseClient
}

VirtualMachineImageTemplatesClient is the azure Virtual Machine Image Builder Client

func NewVirtualMachineImageTemplatesClient Uses

func NewVirtualMachineImageTemplatesClient(subscriptionID string) VirtualMachineImageTemplatesClient

NewVirtualMachineImageTemplatesClient creates an instance of the VirtualMachineImageTemplatesClient client.

func NewVirtualMachineImageTemplatesClientWithBaseURI Uses

func NewVirtualMachineImageTemplatesClientWithBaseURI(baseURI string, subscriptionID string) VirtualMachineImageTemplatesClient

NewVirtualMachineImageTemplatesClientWithBaseURI creates an instance of the VirtualMachineImageTemplatesClient client.

func (VirtualMachineImageTemplatesClient) CreateOrUpdate Uses

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 Uses

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (VirtualMachineImageTemplatesClient) CreateOrUpdateResponder Uses

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 Uses

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 (VirtualMachineImageTemplatesClient) Delete Uses

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 Uses

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

DeletePreparer prepares the Delete request.

func (VirtualMachineImageTemplatesClient) DeleteResponder Uses

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 Uses

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 (VirtualMachineImageTemplatesClient) Get Uses

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 Uses

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

GetPreparer prepares the Get request.

func (VirtualMachineImageTemplatesClient) GetResponder Uses

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 Uses

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 Uses

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

GetRunOutputPreparer prepares the GetRunOutput request.

func (VirtualMachineImageTemplatesClient) GetRunOutputResponder Uses

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 Uses

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 Uses

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 (VirtualMachineImageTemplatesClient) List Uses

func (client VirtualMachineImageTemplatesClient) List(ctx context.Context) (result ImageTemplateListResultPage, err error)

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

func (VirtualMachineImageTemplatesClient) ListByResourceGroup Uses

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 Uses

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 Uses

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (VirtualMachineImageTemplatesClient) ListByResourceGroupResponder Uses

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 Uses

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 Uses

func (client VirtualMachineImageTemplatesClient) ListComplete(ctx context.Context) (result ImageTemplateListResultIterator, err error)

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

func (VirtualMachineImageTemplatesClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (VirtualMachineImageTemplatesClient) ListResponder Uses

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 Uses

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 Uses

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 Uses

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

ListRunOutputsPreparer prepares the ListRunOutputs request.

func (VirtualMachineImageTemplatesClient) ListRunOutputsResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

RunPreparer prepares the Run request.

func (VirtualMachineImageTemplatesClient) RunResponder Uses

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 Uses

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 (VirtualMachineImageTemplatesClient) Update Uses

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 (VirtualMachineImageTemplatesClient) UpdatePreparer Uses

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

UpdatePreparer prepares the Update request.

func (VirtualMachineImageTemplatesClient) UpdateResponder Uses

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 Uses

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.

type VirtualMachineImageTemplatesCreateOrUpdateFuture Uses

type VirtualMachineImageTemplatesCreateOrUpdateFuture struct {
    azure.Future
}

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

func (*VirtualMachineImageTemplatesCreateOrUpdateFuture) Result Uses

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.

type VirtualMachineImageTemplatesDeleteFuture Uses

type VirtualMachineImageTemplatesDeleteFuture struct {
    azure.Future
}

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

func (*VirtualMachineImageTemplatesDeleteFuture) Result Uses

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.

type VirtualMachineImageTemplatesRunFuture Uses

type VirtualMachineImageTemplatesRunFuture struct {
    azure.Future
}

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

func (*VirtualMachineImageTemplatesRunFuture) Result Uses

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.

type VirtualMachineImageTemplatesUpdateFuture Uses

type VirtualMachineImageTemplatesUpdateFuture struct {
    azure.Future
}

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

func (*VirtualMachineImageTemplatesUpdateFuture) Result Uses

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.

Directories

PathSynopsis
virtualmachineimagebuilderapi

Package virtualmachineimagebuilder imports 10 packages (graph) and is imported by 4 packages. Updated 2019-07-30. Refresh now. Tools for package owners.