Documentation ¶
Index ¶
- func PossibleValuesForCustomImageOsType() []string
- func PossibleValuesForLinuxOsState() []string
- func PossibleValuesForStorageType() []string
- func PossibleValuesForWindowsOsState() []string
- func ValidateCustomImageID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateLabID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationResponse
- type CustomImage
- type CustomImageId
- type CustomImageOperationPredicate
- type CustomImageOsType
- type CustomImageProperties
- type CustomImagePropertiesCustom
- type CustomImagePropertiesFromPlan
- type CustomImagePropertiesFromVM
- type CustomImagesClient
- func (c CustomImagesClient) CreateOrUpdate(ctx context.Context, id CustomImageId, input CustomImage) (result CreateOrUpdateOperationResponse, err error)
- func (c CustomImagesClient) CreateOrUpdateThenPoll(ctx context.Context, id CustomImageId, input CustomImage) error
- func (c CustomImagesClient) Delete(ctx context.Context, id CustomImageId) (result DeleteOperationResponse, err error)
- func (c CustomImagesClient) DeleteThenPoll(ctx context.Context, id CustomImageId) error
- func (c CustomImagesClient) Get(ctx context.Context, id CustomImageId, options GetOperationOptions) (result GetOperationResponse, err error)
- func (c CustomImagesClient) List(ctx context.Context, id LabId, options ListOperationOptions) (resp ListOperationResponse, err error)
- func (c CustomImagesClient) ListComplete(ctx context.Context, id LabId, options ListOperationOptions) (ListCompleteResult, error)
- func (c CustomImagesClient) ListCompleteMatchingPredicate(ctx context.Context, id LabId, options ListOperationOptions, ...) (resp ListCompleteResult, err error)
- func (c CustomImagesClient) Update(ctx context.Context, id CustomImageId, input UpdateResource) (result UpdateOperationResponse, err error)
- type DataDiskStorageTypeInfo
- type DeleteOperationResponse
- type GetOperationOptions
- type GetOperationResponse
- type LabId
- type LinuxOsInfo
- type LinuxOsState
- type ListCompleteResult
- type ListOperationOptions
- type ListOperationResponse
- type StorageType
- type UpdateOperationResponse
- type UpdateResource
- type WindowsOsInfo
- type WindowsOsState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForCustomImageOsType ¶
func PossibleValuesForCustomImageOsType() []string
func PossibleValuesForLinuxOsState ¶
func PossibleValuesForLinuxOsState() []string
func PossibleValuesForStorageType ¶
func PossibleValuesForStorageType() []string
func PossibleValuesForWindowsOsState ¶
func PossibleValuesForWindowsOsState() []string
func ValidateCustomImageID ¶
ValidateCustomImageID checks that 'input' can be parsed as a Custom Image ID
func ValidateLabID ¶
ValidateLabID checks that 'input' can be parsed as a Lab ID
Types ¶
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type CustomImage ¶
type CustomImageId ¶
type CustomImageId struct { SubscriptionId string ResourceGroupName string LabName string Name string }
CustomImageId is a struct representing the Resource ID for a Custom Image
func NewCustomImageID ¶
func NewCustomImageID(subscriptionId string, resourceGroupName string, labName string, name string) CustomImageId
NewCustomImageID returns a new CustomImageId struct
func ParseCustomImageID ¶
func ParseCustomImageID(input string) (*CustomImageId, error)
ParseCustomImageID parses 'input' into a CustomImageId
func ParseCustomImageIDInsensitively ¶
func ParseCustomImageIDInsensitively(input string) (*CustomImageId, error)
ParseCustomImageIDInsensitively parses 'input' case-insensitively into a CustomImageId note: this method should only be used for API response data and not user input
func (CustomImageId) ID ¶
func (id CustomImageId) ID() string
ID returns the formatted Custom Image ID
func (CustomImageId) Segments ¶
func (id CustomImageId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Custom Image ID
func (CustomImageId) String ¶
func (id CustomImageId) String() string
String returns a human-readable description of this Custom Image ID
type CustomImageOperationPredicate ¶
func (CustomImageOperationPredicate) Matches ¶
func (p CustomImageOperationPredicate) Matches(input CustomImage) bool
type CustomImageOsType ¶
type CustomImageOsType string
const ( CustomImageOsTypeLinux CustomImageOsType = "Linux" CustomImageOsTypeNone CustomImageOsType = "None" CustomImageOsTypeWindows CustomImageOsType = "Windows" )
type CustomImageProperties ¶
type CustomImageProperties struct { Author *string `json:"author,omitempty"` CreationDate *string `json:"creationDate,omitempty"` CustomImagePlan *CustomImagePropertiesFromPlan `json:"customImagePlan,omitempty"` DataDiskStorageInfo *[]DataDiskStorageTypeInfo `json:"dataDiskStorageInfo,omitempty"` Description *string `json:"description,omitempty"` IsPlanAuthorized *bool `json:"isPlanAuthorized,omitempty"` ManagedImageId *string `json:"managedImageId,omitempty"` ManagedSnapshotId *string `json:"managedSnapshotId,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"` VM *CustomImagePropertiesFromVM `json:"vm,omitempty"` Vhd *CustomImagePropertiesCustom `json:"vhd,omitempty"` }
func (*CustomImageProperties) GetCreationDateAsTime ¶
func (o *CustomImageProperties) GetCreationDateAsTime() (*time.Time, error)
func (*CustomImageProperties) SetCreationDateAsTime ¶
func (o *CustomImageProperties) SetCreationDateAsTime(input time.Time)
type CustomImagePropertiesCustom ¶
type CustomImagePropertiesCustom struct { ImageName *string `json:"imageName,omitempty"` OsType CustomImageOsType `json:"osType"` SysPrep *bool `json:"sysPrep,omitempty"` }
type CustomImagePropertiesFromVM ¶
type CustomImagePropertiesFromVM struct { LinuxOsInfo *LinuxOsInfo `json:"linuxOsInfo,omitempty"` SourceVMId *string `json:"sourceVmId,omitempty"` WindowsOsInfo *WindowsOsInfo `json:"windowsOsInfo,omitempty"` }
type CustomImagesClient ¶
func NewCustomImagesClientWithBaseURI ¶
func NewCustomImagesClientWithBaseURI(endpoint string) CustomImagesClient
func (CustomImagesClient) CreateOrUpdate ¶
func (c CustomImagesClient) CreateOrUpdate(ctx context.Context, id CustomImageId, input CustomImage) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (CustomImagesClient) CreateOrUpdateThenPoll ¶
func (c CustomImagesClient) CreateOrUpdateThenPoll(ctx context.Context, id CustomImageId, input CustomImage) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (CustomImagesClient) Delete ¶
func (c CustomImagesClient) Delete(ctx context.Context, id CustomImageId) (result DeleteOperationResponse, err error)
Delete ...
func (CustomImagesClient) DeleteThenPoll ¶
func (c CustomImagesClient) DeleteThenPoll(ctx context.Context, id CustomImageId) error
DeleteThenPoll performs Delete then polls until it's completed
func (CustomImagesClient) Get ¶
func (c CustomImagesClient) Get(ctx context.Context, id CustomImageId, options GetOperationOptions) (result GetOperationResponse, err error)
Get ...
func (CustomImagesClient) List ¶
func (c CustomImagesClient) List(ctx context.Context, id LabId, options ListOperationOptions) (resp ListOperationResponse, err error)
List ...
func (CustomImagesClient) ListComplete ¶
func (c CustomImagesClient) ListComplete(ctx context.Context, id LabId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all of the results into a single object
func (CustomImagesClient) ListCompleteMatchingPredicate ¶
func (c CustomImagesClient) ListCompleteMatchingPredicate(ctx context.Context, id LabId, options ListOperationOptions, predicate CustomImageOperationPredicate) (resp ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate
func (CustomImagesClient) Update ¶
func (c CustomImagesClient) Update(ctx context.Context, id CustomImageId, input UpdateResource) (result UpdateOperationResponse, err error)
Update ...
type DataDiskStorageTypeInfo ¶
type DataDiskStorageTypeInfo struct { Lun *string `json:"lun,omitempty"` StorageType *StorageType `json:"storageType,omitempty"` }
type DeleteOperationResponse ¶
type DeleteOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type GetOperationOptions ¶
type GetOperationOptions struct {
Expand *string
}
func DefaultGetOperationOptions ¶
func DefaultGetOperationOptions() GetOperationOptions
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *CustomImage }
type LabId ¶
LabId is a struct representing the Resource ID for a Lab
func ParseLabID ¶
ParseLabID parses 'input' into a LabId
func ParseLabIDInsensitively ¶
ParseLabIDInsensitively parses 'input' case-insensitively into a LabId note: this method should only be used for API response data and not user input
func (LabId) Segments ¶
func (id LabId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Lab ID
type LinuxOsInfo ¶
type LinuxOsInfo struct {
LinuxOsState *LinuxOsState `json:"linuxOsState,omitempty"`
}
type LinuxOsState ¶
type LinuxOsState string
const ( LinuxOsStateDeprovisionApplied LinuxOsState = "DeprovisionApplied" LinuxOsStateDeprovisionRequested LinuxOsState = "DeprovisionRequested" LinuxOsStateNonDeprovisioned LinuxOsState = "NonDeprovisioned" )
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []CustomImage
}
type ListOperationOptions ¶
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response Model *[]CustomImage // contains filtered or unexported fields }
func (ListOperationResponse) HasMore ¶
func (r ListOperationResponse) HasMore() bool
func (ListOperationResponse) LoadMore ¶
func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)
type StorageType ¶
type StorageType string
const ( StorageTypePremium StorageType = "Premium" StorageTypeStandard StorageType = "Standard" StorageTypeStandardSSD StorageType = "StandardSSD" )
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { HttpResponse *http.Response Model *CustomImage }
type UpdateResource ¶
type WindowsOsInfo ¶
type WindowsOsInfo struct {
WindowsOsState *WindowsOsState `json:"windowsOsState,omitempty"`
}
type WindowsOsState ¶
type WindowsOsState string
const ( WindowsOsStateNonSysprepped WindowsOsState = "NonSysprepped" WindowsOsStateSysprepApplied WindowsOsState = "SysprepApplied" WindowsOsStateSysprepRequested WindowsOsState = "SysprepRequested" )
Source Files ¶
- client.go
- constants.go
- id_customimage.go
- id_lab.go
- method_createorupdate_autorest.go
- method_delete_autorest.go
- method_get_autorest.go
- method_list_autorest.go
- method_update_autorest.go
- model_customimage.go
- model_customimageproperties.go
- model_customimagepropertiescustom.go
- model_customimagepropertiesfromplan.go
- model_customimagepropertiesfromvm.go
- model_datadiskstoragetypeinfo.go
- model_linuxosinfo.go
- model_updateresource.go
- model_windowsosinfo.go
- predicates.go
- version.go