Documentation ¶
Overview ¶
Package virtualmachineimagebuilder implements the Azure ARM Virtualmachineimagebuilder service API version 2018-02-01-preview.
Azure Virtual Machine Image Builder Client
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type APIError
- type APIErrorBase
- type BaseClient
- type BasicImageTemplateCustomizer
- type BasicImageTemplateDistributor
- type BasicImageTemplateSource
- type ImageTemplate
- type ImageTemplateCustomizer
- func (itc ImageTemplateCustomizer) AsBasicImageTemplateCustomizer() (BasicImageTemplateCustomizer, bool)
- func (itc ImageTemplateCustomizer) AsImageTemplateCustomizer() (*ImageTemplateCustomizer, bool)
- func (itc ImageTemplateCustomizer) AsImageTemplateShellCustomizer() (*ImageTemplateShellCustomizer, bool)
- func (itc ImageTemplateCustomizer) MarshalJSON() ([]byte, error)
- type ImageTemplateDistributor
- func (itd ImageTemplateDistributor) AsBasicImageTemplateDistributor() (BasicImageTemplateDistributor, bool)
- func (itd ImageTemplateDistributor) AsImageTemplateDistributor() (*ImageTemplateDistributor, bool)
- func (itd ImageTemplateDistributor) AsImageTemplateManagedImageDistributor() (*ImageTemplateManagedImageDistributor, bool)
- func (itd ImageTemplateDistributor) AsImageTemplateSharedImageDistributor() (*ImageTemplateSharedImageDistributor, bool)
- func (itd ImageTemplateDistributor) MarshalJSON() ([]byte, error)
- type ImageTemplateIsoSource
- func (itis ImageTemplateIsoSource) AsBasicImageTemplateSource() (BasicImageTemplateSource, bool)
- func (itis ImageTemplateIsoSource) AsImageTemplateIsoSource() (*ImageTemplateIsoSource, bool)
- func (itis ImageTemplateIsoSource) AsImageTemplatePlatformImageSource() (*ImageTemplatePlatformImageSource, bool)
- func (itis ImageTemplateIsoSource) AsImageTemplateSource() (*ImageTemplateSource, bool)
- func (itis ImageTemplateIsoSource) MarshalJSON() ([]byte, error)
- type ImageTemplateLastRunStatus
- type ImageTemplateListResult
- type ImageTemplateListResultIterator
- func (iter *ImageTemplateListResultIterator) Next() error
- func (iter *ImageTemplateListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter ImageTemplateListResultIterator) NotDone() bool
- func (iter ImageTemplateListResultIterator) Response() ImageTemplateListResult
- func (iter ImageTemplateListResultIterator) Value() ImageTemplate
- type ImageTemplateListResultPage
- func (page *ImageTemplateListResultPage) Next() error
- func (page *ImageTemplateListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page ImageTemplateListResultPage) NotDone() bool
- func (page ImageTemplateListResultPage) Response() ImageTemplateListResult
- func (page ImageTemplateListResultPage) Values() []ImageTemplate
- type ImageTemplateManagedImageDistributor
- func (itmid ImageTemplateManagedImageDistributor) AsBasicImageTemplateDistributor() (BasicImageTemplateDistributor, bool)
- func (itmid ImageTemplateManagedImageDistributor) AsImageTemplateDistributor() (*ImageTemplateDistributor, bool)
- func (itmid ImageTemplateManagedImageDistributor) AsImageTemplateManagedImageDistributor() (*ImageTemplateManagedImageDistributor, bool)
- func (itmid ImageTemplateManagedImageDistributor) AsImageTemplateSharedImageDistributor() (*ImageTemplateSharedImageDistributor, bool)
- func (itmid ImageTemplateManagedImageDistributor) MarshalJSON() ([]byte, error)
- type ImageTemplatePlatformImageSource
- func (itpis ImageTemplatePlatformImageSource) AsBasicImageTemplateSource() (BasicImageTemplateSource, bool)
- func (itpis ImageTemplatePlatformImageSource) AsImageTemplateIsoSource() (*ImageTemplateIsoSource, bool)
- func (itpis ImageTemplatePlatformImageSource) AsImageTemplatePlatformImageSource() (*ImageTemplatePlatformImageSource, bool)
- func (itpis ImageTemplatePlatformImageSource) AsImageTemplateSource() (*ImageTemplateSource, bool)
- func (itpis ImageTemplatePlatformImageSource) MarshalJSON() ([]byte, error)
- type ImageTemplateProperties
- type ImageTemplateSharedImageDistributor
- func (itsid ImageTemplateSharedImageDistributor) AsBasicImageTemplateDistributor() (BasicImageTemplateDistributor, bool)
- func (itsid ImageTemplateSharedImageDistributor) AsImageTemplateDistributor() (*ImageTemplateDistributor, bool)
- func (itsid ImageTemplateSharedImageDistributor) AsImageTemplateManagedImageDistributor() (*ImageTemplateManagedImageDistributor, bool)
- func (itsid ImageTemplateSharedImageDistributor) AsImageTemplateSharedImageDistributor() (*ImageTemplateSharedImageDistributor, bool)
- func (itsid ImageTemplateSharedImageDistributor) MarshalJSON() ([]byte, error)
- type ImageTemplateShellCustomizer
- func (itsc ImageTemplateShellCustomizer) AsBasicImageTemplateCustomizer() (BasicImageTemplateCustomizer, bool)
- func (itsc ImageTemplateShellCustomizer) AsImageTemplateCustomizer() (*ImageTemplateCustomizer, bool)
- func (itsc ImageTemplateShellCustomizer) AsImageTemplateShellCustomizer() (*ImageTemplateShellCustomizer, bool)
- func (itsc ImageTemplateShellCustomizer) MarshalJSON() ([]byte, error)
- type ImageTemplateSource
- func (its ImageTemplateSource) AsBasicImageTemplateSource() (BasicImageTemplateSource, bool)
- func (its ImageTemplateSource) AsImageTemplateIsoSource() (*ImageTemplateIsoSource, bool)
- func (its ImageTemplateSource) AsImageTemplatePlatformImageSource() (*ImageTemplatePlatformImageSource, bool)
- func (its ImageTemplateSource) AsImageTemplateSource() (*ImageTemplateSource, bool)
- func (its ImageTemplateSource) MarshalJSON() ([]byte, error)
- type ImageTemplateUpdateParameters
- type InnerError
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationListResultIterator
- func (iter *OperationListResultIterator) Next() error
- func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter OperationListResultIterator) NotDone() bool
- func (iter OperationListResultIterator) Response() OperationListResult
- func (iter OperationListResultIterator) Value() Operation
- type OperationListResultPage
- func (page *OperationListResultPage) Next() error
- func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page OperationListResultPage) NotDone() bool
- func (page OperationListResultPage) Response() OperationListResult
- func (page OperationListResultPage) Values() []Operation
- type OperationsClient
- func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error)
- func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error)
- func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)
- func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)
- func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)
- type ProvisioningError
- type ProvisioningErrorCode
- type ProvisioningState
- type ProvisioningState1
- type Resource
- type RunOutput
- type RunOutputCollection
- type RunOutputCollectionIterator
- func (iter *RunOutputCollectionIterator) Next() error
- func (iter *RunOutputCollectionIterator) NextWithContext(ctx context.Context) (err error)
- func (iter RunOutputCollectionIterator) NotDone() bool
- func (iter RunOutputCollectionIterator) Response() RunOutputCollection
- func (iter RunOutputCollectionIterator) Value() RunOutput
- type RunOutputCollectionPage
- func (page *RunOutputCollectionPage) Next() error
- func (page *RunOutputCollectionPage) NextWithContext(ctx context.Context) (err error)
- func (page RunOutputCollectionPage) NotDone() bool
- func (page RunOutputCollectionPage) Response() RunOutputCollection
- func (page RunOutputCollectionPage) Values() []RunOutput
- type RunOutputProperties
- type RunState
- type RunSubState
- type SubResource
- type Type
- type TypeBasicImageTemplateCustomizer
- type TypeBasicImageTemplateDistributor
- type VirtualMachineImageTemplateClient
- func (client VirtualMachineImageTemplateClient) CreateOrUpdate(ctx context.Context, parameters ImageTemplate, resourceGroupName string, ...) (result VirtualMachineImageTemplateCreateOrUpdateFuture, err error)
- func (client VirtualMachineImageTemplateClient) CreateOrUpdatePreparer(ctx context.Context, parameters ImageTemplate, resourceGroupName string, ...) (*http.Request, error)
- func (client VirtualMachineImageTemplateClient) CreateOrUpdateResponder(resp *http.Response) (result ImageTemplate, err error)
- func (client VirtualMachineImageTemplateClient) CreateOrUpdateSender(req *http.Request) (future VirtualMachineImageTemplateCreateOrUpdateFuture, err error)
- func (client VirtualMachineImageTemplateClient) Delete(ctx context.Context, resourceGroupName string, imageTemplateName string) (result VirtualMachineImageTemplateDeleteFuture, err error)
- func (client VirtualMachineImageTemplateClient) DeletePreparer(ctx context.Context, resourceGroupName string, imageTemplateName string) (*http.Request, error)
- func (client VirtualMachineImageTemplateClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client VirtualMachineImageTemplateClient) DeleteSender(req *http.Request) (future VirtualMachineImageTemplateDeleteFuture, err error)
- func (client VirtualMachineImageTemplateClient) Get(ctx context.Context, resourceGroupName string, imageTemplateName string) (result ImageTemplate, err error)
- func (client VirtualMachineImageTemplateClient) GetPreparer(ctx context.Context, resourceGroupName string, imageTemplateName string) (*http.Request, error)
- func (client VirtualMachineImageTemplateClient) GetResponder(resp *http.Response) (result ImageTemplate, err error)
- func (client VirtualMachineImageTemplateClient) GetRunOutput(ctx context.Context, resourceGroupName string, imageTemplateName string, ...) (result RunOutput, err error)
- func (client VirtualMachineImageTemplateClient) GetRunOutputPreparer(ctx context.Context, resourceGroupName string, imageTemplateName string, ...) (*http.Request, error)
- func (client VirtualMachineImageTemplateClient) GetRunOutputResponder(resp *http.Response) (result RunOutput, err error)
- func (client VirtualMachineImageTemplateClient) GetRunOutputSender(req *http.Request) (*http.Response, error)
- func (client VirtualMachineImageTemplateClient) GetSender(req *http.Request) (*http.Response, error)
- func (client VirtualMachineImageTemplateClient) List(ctx context.Context) (result ImageTemplateListResultPage, err error)
- func (client VirtualMachineImageTemplateClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ImageTemplateListResultPage, err error)
- func (client VirtualMachineImageTemplateClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ImageTemplateListResultIterator, err error)
- func (client VirtualMachineImageTemplateClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
- func (client VirtualMachineImageTemplateClient) ListByResourceGroupResponder(resp *http.Response) (result ImageTemplateListResult, err error)
- func (client VirtualMachineImageTemplateClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
- func (client VirtualMachineImageTemplateClient) ListComplete(ctx context.Context) (result ImageTemplateListResultIterator, err error)
- func (client VirtualMachineImageTemplateClient) ListPreparer(ctx context.Context) (*http.Request, error)
- func (client VirtualMachineImageTemplateClient) ListResponder(resp *http.Response) (result ImageTemplateListResult, err error)
- func (client VirtualMachineImageTemplateClient) ListRunOutputs(ctx context.Context, resourceGroupName string, imageTemplateName string) (result RunOutputCollectionPage, err error)
- func (client VirtualMachineImageTemplateClient) ListRunOutputsComplete(ctx context.Context, resourceGroupName string, imageTemplateName string) (result RunOutputCollectionIterator, err error)
- func (client VirtualMachineImageTemplateClient) ListRunOutputsPreparer(ctx context.Context, resourceGroupName string, imageTemplateName string) (*http.Request, error)
- func (client VirtualMachineImageTemplateClient) ListRunOutputsResponder(resp *http.Response) (result RunOutputCollection, err error)
- func (client VirtualMachineImageTemplateClient) ListRunOutputsSender(req *http.Request) (*http.Response, error)
- func (client VirtualMachineImageTemplateClient) ListSender(req *http.Request) (*http.Response, error)
- func (client VirtualMachineImageTemplateClient) Run(ctx context.Context, resourceGroupName string, imageTemplateName string) (result VirtualMachineImageTemplateRunFuture, err error)
- func (client VirtualMachineImageTemplateClient) RunPreparer(ctx context.Context, resourceGroupName string, imageTemplateName string) (*http.Request, error)
- func (client VirtualMachineImageTemplateClient) RunResponder(resp *http.Response) (result autorest.Response, err error)
- func (client VirtualMachineImageTemplateClient) RunSender(req *http.Request) (future VirtualMachineImageTemplateRunFuture, err error)
- func (client VirtualMachineImageTemplateClient) Update(ctx context.Context, parameters ImageTemplateUpdateParameters, ...) (result ImageTemplate, err error)
- func (client VirtualMachineImageTemplateClient) UpdatePreparer(ctx context.Context, parameters ImageTemplateUpdateParameters, ...) (*http.Request, error)
- func (client VirtualMachineImageTemplateClient) UpdateResponder(resp *http.Response) (result ImageTemplate, err error)
- func (client VirtualMachineImageTemplateClient) UpdateSender(req *http.Request) (*http.Response, error)
- type VirtualMachineImageTemplateCreateOrUpdateFuture
- type VirtualMachineImageTemplateDeleteFuture
- type VirtualMachineImageTemplateRunFuture
Constants ¶
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 ¶
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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
type BasicImageTemplateCustomizer ¶
type BasicImageTemplateCustomizer interface { AsImageTemplateShellCustomizer() (*ImageTemplateShellCustomizer, bool) AsImageTemplateCustomizer() (*ImageTemplateCustomizer, bool) }
BasicImageTemplateCustomizer ...
type BasicImageTemplateDistributor ¶
type BasicImageTemplateDistributor interface { AsImageTemplateManagedImageDistributor() (*ImageTemplateManagedImageDistributor, bool) AsImageTemplateDistributor() (*ImageTemplateDistributor, bool) }
BasicImageTemplateDistributor generic distribution object
type BasicImageTemplateSource ¶
type BasicImageTemplateSource interface { AsImageTemplateIsoSource() (*ImageTemplateIsoSource, bool) AsImageTemplatePlatformImageSource() (*ImageTemplatePlatformImageSource, bool) AsImageTemplateSource() (*ImageTemplateSource, bool) }
BasicImageTemplateSource ...
type ImageTemplate ¶
type ImageTemplate struct { autorest.Response `json:"-"` *ImageTemplateProperties `json:"properties,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 ¶
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' 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) 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: 'TypeImageTemplateDistributor', 'TypeManagedImage', 'TypeSharedImage' 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) MarshalJSON ¶
func (itd ImageTemplateDistributor) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ImageTemplateDistributor.
type ImageTemplateIsoSource ¶
type ImageTemplateIsoSource struct { // SourceURI - URL to get the ISO image. This URL has to be accessible to the resource provider at the time of the imageTemplate 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' 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) 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: 'RunStateReady', '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 ¶
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 ¶
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 ¶
func (iter ImageTemplateListResultIterator) Response() ImageTemplateListResult
Response returns the raw server response from the last page request.
func (ImageTemplateListResultIterator) Value ¶
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 ¶
type ImageTemplateListResultPage struct {
// contains filtered or unexported fields
}
ImageTemplateListResultPage contains a page of ImageTemplate values.
func NewImageTemplateListResultPage ¶
func NewImageTemplateListResultPage(cur ImageTemplateListResult, 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 ¶
func (page ImageTemplateListResultPage) Response() ImageTemplateListResult
Response returns the raw server response from the last page request.
func (ImageTemplateListResultPage) Values ¶
func (page ImageTemplateListResultPage) Values() []ImageTemplate
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: 'TypeImageTemplateDistributor', 'TypeManagedImage', 'TypeSharedImage' 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) MarshalJSON ¶
func (itmid ImageTemplateManagedImageDistributor) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ImageTemplateManagedImageDistributor.
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' 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) 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 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 - READ-ONLY; Provisioning state of the resource. Possible values include: 'Creating', '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"` }
ImageTemplateProperties ...
func (ImageTemplateProperties) MarshalJSON ¶
func (itp ImageTemplateProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ImageTemplateProperties.
func (*ImageTemplateProperties) UnmarshalJSON ¶
func (itp *ImageTemplateProperties) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ImageTemplateProperties struct.
type ImageTemplateSharedImageDistributor ¶
type ImageTemplateSharedImageDistributor struct { // GalleryImageID - Resource Id of the Shared Image Gallery image RunOutputName *string `json:"runOutputName,omitempty"` ArtifactTags map[string]*string `json:"artifactTags"` 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) 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"` // Name - Friendly Name to provide context on what this customization step does Name *string `json:"name,omitempty"` // Type - Possible values include: 'TypeImageTemplateCustomizer', 'TypeShell' Type TypeBasicImageTemplateCustomizer `json:"type,omitempty"` }
ImageTemplateShellCustomizer runs a shell script during the customization phase
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) 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' 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) 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 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 ¶
func (iter OperationListResultIterator) Response() OperationListResult
Response returns the raw server response from the last page request.
func (OperationListResultIterator) Value ¶
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 ¶
type OperationListResultPage struct {
// contains filtered or unexported fields
}
OperationListResultPage contains a page of Operation values.
func NewOperationListResultPage ¶
func NewOperationListResultPage(cur OperationListResult, 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 ¶
func (page OperationListResultPage) Response() OperationListResult
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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
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 ¶
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 ¶
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', 'BadCustomizerType', 'NoCustomizerShellScript', '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" // BadISOSource ... BadISOSource ProvisioningErrorCode = "BadISOSource" // BadPIRSource ... BadPIRSource ProvisioningErrorCode = "BadPIRSource" // BadSourceType ... BadSourceType ProvisioningErrorCode = "BadSourceType" // NoCustomizerShellScript ... NoCustomizerShellScript ProvisioningErrorCode = "NoCustomizerShellScript" // Other ... Other ProvisioningErrorCode = "Other" // ServerError ... ServerError ProvisioningErrorCode = "ServerError" )
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 - 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 ¶
MarshalJSON is the custom marshaler for Resource.
type RunOutput ¶
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 ¶
MarshalJSON is the custom marshaler for RunOutput.
func (*RunOutput) UnmarshalJSON ¶
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 ¶
func (iter RunOutputCollectionIterator) Response() RunOutputCollection
Response returns the raw server response from the last page request.
func (RunOutputCollectionIterator) Value ¶
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 ¶
type RunOutputCollectionPage struct {
// contains filtered or unexported fields
}
RunOutputCollectionPage contains a page of RunOutput values.
func NewRunOutputCollectionPage ¶
func NewRunOutputCollectionPage(cur RunOutputCollection, 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 ¶
func (page RunOutputCollectionPage) Response() RunOutputCollection
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"` // ProvisioningState - READ-ONLY; Provisioning state of the resource. Possible values include: 'ProvisioningState1Creating', 'ProvisioningState1Succeeded', 'ProvisioningState1Failed', 'ProvisioningState1Deleting' ProvisioningState ProvisioningState1 `json:"provisioningState,omitempty"` }
RunOutputProperties ...
func (RunOutputProperties) MarshalJSON ¶
func (rop RunOutputProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RunOutputProperties.
type RunState ¶
type RunState string
RunState enumerates the values for run state.
const ( // RunStateFailed ... RunStateFailed RunState = "failed" // RunStatePartiallySucceeded ... RunStatePartiallySucceeded RunState = "partiallySucceeded" // RunStateReady ... RunStateReady RunState = "ready" // 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 - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` // Name - Resource name Name *string `json:"name,omitempty"` // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` }
SubResource the Sub Resource model definition.
func (SubResource) MarshalJSON ¶
func (sr SubResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SubResource.
type Type ¶
type Type string
Type enumerates the values for type.
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" // TypeShell ... TypeShell TypeBasicImageTemplateCustomizer = "shell" )
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 ( // TypeImageTemplateDistributor ... TypeImageTemplateDistributor TypeBasicImageTemplateDistributor = "ImageTemplateDistributor" // TypeManagedImage ... TypeManagedImage TypeBasicImageTemplateDistributor = "managedImage" TypeSharedImage TypeBasicImageTemplateDistributor = "sharedImage" )
func PossibleTypeBasicImageTemplateDistributorValues ¶
func PossibleTypeBasicImageTemplateDistributorValues() []TypeBasicImageTemplateDistributor
PossibleTypeBasicImageTemplateDistributorValues returns an array of possible values for the TypeBasicImageTemplateDistributor const type.
type VirtualMachineImageTemplateClient ¶
type VirtualMachineImageTemplateClient struct {
BaseClient
}
VirtualMachineImageTemplateClient is the azure Virtual Machine Image Builder Client
func NewVirtualMachineImageTemplateClient ¶
func NewVirtualMachineImageTemplateClient(subscriptionID string) VirtualMachineImageTemplateClient
NewVirtualMachineImageTemplateClient creates an instance of the VirtualMachineImageTemplateClient client.
func NewVirtualMachineImageTemplateClientWithBaseURI ¶
func NewVirtualMachineImageTemplateClientWithBaseURI(baseURI string, subscriptionID string) VirtualMachineImageTemplateClient
NewVirtualMachineImageTemplateClientWithBaseURI creates an instance of the VirtualMachineImageTemplateClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (VirtualMachineImageTemplateClient) CreateOrUpdate ¶
func (client VirtualMachineImageTemplateClient) CreateOrUpdate(ctx context.Context, parameters ImageTemplate, resourceGroupName string, imageTemplateName string) (result VirtualMachineImageTemplateCreateOrUpdateFuture, err error)
CreateOrUpdate create or Update a Virtual Machine Image Template Parameters: parameters - parameters supplied to the Create Image Template resourceGroupName - the name of the resource group. imageTemplateName - the name of the image Template
func (VirtualMachineImageTemplateClient) CreateOrUpdatePreparer ¶
func (client VirtualMachineImageTemplateClient) CreateOrUpdatePreparer(ctx context.Context, parameters ImageTemplate, resourceGroupName string, imageTemplateName string) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (VirtualMachineImageTemplateClient) CreateOrUpdateResponder ¶
func (client VirtualMachineImageTemplateClient) 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 (VirtualMachineImageTemplateClient) CreateOrUpdateSender ¶
func (client VirtualMachineImageTemplateClient) CreateOrUpdateSender(req *http.Request) (future VirtualMachineImageTemplateCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (VirtualMachineImageTemplateClient) Delete ¶
func (client VirtualMachineImageTemplateClient) Delete(ctx context.Context, resourceGroupName string, imageTemplateName string) (result VirtualMachineImageTemplateDeleteFuture, err error)
Delete delete Virtual Machine Image Template Parameters: resourceGroupName - the name of the resource group. imageTemplateName - the name of the image Template
func (VirtualMachineImageTemplateClient) DeletePreparer ¶
func (client VirtualMachineImageTemplateClient) DeletePreparer(ctx context.Context, resourceGroupName string, imageTemplateName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (VirtualMachineImageTemplateClient) DeleteResponder ¶
func (client VirtualMachineImageTemplateClient) 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 (VirtualMachineImageTemplateClient) DeleteSender ¶
func (client VirtualMachineImageTemplateClient) DeleteSender(req *http.Request) (future VirtualMachineImageTemplateDeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (VirtualMachineImageTemplateClient) Get ¶
func (client VirtualMachineImageTemplateClient) Get(ctx context.Context, resourceGroupName string, imageTemplateName string) (result ImageTemplate, err error)
Get get Information about Virtual Machine Image Template Parameters: resourceGroupName - the name of the resource group. imageTemplateName - the name of the image Template
func (VirtualMachineImageTemplateClient) GetPreparer ¶
func (client VirtualMachineImageTemplateClient) GetPreparer(ctx context.Context, resourceGroupName string, imageTemplateName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (VirtualMachineImageTemplateClient) GetResponder ¶
func (client VirtualMachineImageTemplateClient) 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 (VirtualMachineImageTemplateClient) GetRunOutput ¶
func (client VirtualMachineImageTemplateClient) GetRunOutput(ctx context.Context, resourceGroupName string, imageTemplateName string, runOutputName string) (result RunOutput, err error)
GetRunOutput get the specified run output for the specified 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 (VirtualMachineImageTemplateClient) GetRunOutputPreparer ¶
func (client VirtualMachineImageTemplateClient) GetRunOutputPreparer(ctx context.Context, resourceGroupName string, imageTemplateName string, runOutputName string) (*http.Request, error)
GetRunOutputPreparer prepares the GetRunOutput request.
func (VirtualMachineImageTemplateClient) GetRunOutputResponder ¶
func (client VirtualMachineImageTemplateClient) 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 (VirtualMachineImageTemplateClient) GetRunOutputSender ¶
func (client VirtualMachineImageTemplateClient) 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 (VirtualMachineImageTemplateClient) GetSender ¶
func (client VirtualMachineImageTemplateClient) 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 (VirtualMachineImageTemplateClient) List ¶
func (client VirtualMachineImageTemplateClient) List(ctx context.Context) (result ImageTemplateListResultPage, err error)
List gets information about the VM image templates associated with the subscription.
func (VirtualMachineImageTemplateClient) ListByResourceGroup ¶
func (client VirtualMachineImageTemplateClient) 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 (VirtualMachineImageTemplateClient) ListByResourceGroupComplete ¶
func (client VirtualMachineImageTemplateClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ImageTemplateListResultIterator, err error)
ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
func (VirtualMachineImageTemplateClient) ListByResourceGroupPreparer ¶
func (client VirtualMachineImageTemplateClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (VirtualMachineImageTemplateClient) ListByResourceGroupResponder ¶
func (client VirtualMachineImageTemplateClient) 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 (VirtualMachineImageTemplateClient) ListByResourceGroupSender ¶
func (client VirtualMachineImageTemplateClient) 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 (VirtualMachineImageTemplateClient) ListComplete ¶
func (client VirtualMachineImageTemplateClient) ListComplete(ctx context.Context) (result ImageTemplateListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (VirtualMachineImageTemplateClient) ListPreparer ¶
func (client VirtualMachineImageTemplateClient) ListPreparer(ctx context.Context) (*http.Request, error)
ListPreparer prepares the List request.
func (VirtualMachineImageTemplateClient) ListResponder ¶
func (client VirtualMachineImageTemplateClient) 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 (VirtualMachineImageTemplateClient) ListRunOutputs ¶
func (client VirtualMachineImageTemplateClient) 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 (VirtualMachineImageTemplateClient) ListRunOutputsComplete ¶
func (client VirtualMachineImageTemplateClient) ListRunOutputsComplete(ctx context.Context, resourceGroupName string, imageTemplateName string) (result RunOutputCollectionIterator, err error)
ListRunOutputsComplete enumerates all values, automatically crossing page boundaries as required.
func (VirtualMachineImageTemplateClient) ListRunOutputsPreparer ¶
func (client VirtualMachineImageTemplateClient) ListRunOutputsPreparer(ctx context.Context, resourceGroupName string, imageTemplateName string) (*http.Request, error)
ListRunOutputsPreparer prepares the ListRunOutputs request.
func (VirtualMachineImageTemplateClient) ListRunOutputsResponder ¶
func (client VirtualMachineImageTemplateClient) 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 (VirtualMachineImageTemplateClient) ListRunOutputsSender ¶
func (client VirtualMachineImageTemplateClient) 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 (VirtualMachineImageTemplateClient) ListSender ¶
func (client VirtualMachineImageTemplateClient) 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 (VirtualMachineImageTemplateClient) Run ¶
func (client VirtualMachineImageTemplateClient) Run(ctx context.Context, resourceGroupName string, imageTemplateName string) (result VirtualMachineImageTemplateRunFuture, 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 (VirtualMachineImageTemplateClient) RunPreparer ¶
func (client VirtualMachineImageTemplateClient) RunPreparer(ctx context.Context, resourceGroupName string, imageTemplateName string) (*http.Request, error)
RunPreparer prepares the Run request.
func (VirtualMachineImageTemplateClient) RunResponder ¶
func (client VirtualMachineImageTemplateClient) 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 (VirtualMachineImageTemplateClient) RunSender ¶
func (client VirtualMachineImageTemplateClient) RunSender(req *http.Request) (future VirtualMachineImageTemplateRunFuture, err error)
RunSender sends the Run request. The method will close the http.Response Body if it receives an error.
func (VirtualMachineImageTemplateClient) Update ¶
func (client VirtualMachineImageTemplateClient) 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 (VirtualMachineImageTemplateClient) UpdatePreparer ¶
func (client VirtualMachineImageTemplateClient) UpdatePreparer(ctx context.Context, parameters ImageTemplateUpdateParameters, resourceGroupName string, imageTemplateName string) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (VirtualMachineImageTemplateClient) UpdateResponder ¶
func (client VirtualMachineImageTemplateClient) 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 (VirtualMachineImageTemplateClient) UpdateSender ¶
func (client VirtualMachineImageTemplateClient) 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 VirtualMachineImageTemplateCreateOrUpdateFuture ¶
VirtualMachineImageTemplateCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*VirtualMachineImageTemplateCreateOrUpdateFuture) Result ¶
func (future *VirtualMachineImageTemplateCreateOrUpdateFuture) Result(client VirtualMachineImageTemplateClient) (it ImageTemplate, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type VirtualMachineImageTemplateDeleteFuture ¶
VirtualMachineImageTemplateDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*VirtualMachineImageTemplateDeleteFuture) Result ¶
func (future *VirtualMachineImageTemplateDeleteFuture) Result(client VirtualMachineImageTemplateClient) (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 VirtualMachineImageTemplateRunFuture ¶
VirtualMachineImageTemplateRunFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*VirtualMachineImageTemplateRunFuture) Result ¶
func (future *VirtualMachineImageTemplateRunFuture) Result(client VirtualMachineImageTemplateClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.