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) (result 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, ...) (result 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 ListCustomPager
- 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 CustomImage ¶
type CustomImageId ¶
type CustomImageId struct { SubscriptionId string ResourceGroupName string LabName string CustomImageName string }
CustomImageId is a struct representing the Resource ID for a Custom Image
func NewCustomImageID ¶
func NewCustomImageID(subscriptionId string, resourceGroupName string, labName string, customImageName 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) FromParseResult ¶
func (id *CustomImageId) FromParseResult(input resourceids.ParseResult) error
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" )
func (*CustomImageOsType) UnmarshalJSON ¶
func (s *CustomImageOsType) UnmarshalJSON(bytes []byte) error
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 ¶
type CustomImagesClient struct {
Client *resourcemanager.Client
}
func NewCustomImagesClientWithBaseURI ¶
func NewCustomImagesClientWithBaseURI(sdkApi sdkEnv.Api) (*CustomImagesClient, error)
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) (result ListOperationResponse, err error)
List ...
func (CustomImagesClient) ListComplete ¶
func (c CustomImagesClient) ListComplete(ctx context.Context, id LabId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (CustomImagesClient) ListCompleteMatchingPredicate ¶
func (c CustomImagesClient) ListCompleteMatchingPredicate(ctx context.Context, id LabId, options ListOperationOptions, predicate CustomImageOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies 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 GetOperationOptions ¶
type GetOperationOptions struct {
Expand *string
}
func DefaultGetOperationOptions ¶
func DefaultGetOperationOptions() GetOperationOptions
func (GetOperationOptions) ToHeaders ¶
func (o GetOperationOptions) ToHeaders() *client.Headers
func (GetOperationOptions) ToOData ¶
func (o GetOperationOptions) ToOData() *odata.Query
func (GetOperationOptions) ToQuery ¶
func (o GetOperationOptions) ToQuery() *client.QueryParams
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData 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) FromParseResult ¶
func (id *LabId) FromParseResult(input resourceids.ParseResult) error
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" )
func (*LinuxOsState) UnmarshalJSON ¶
func (s *LinuxOsState) UnmarshalJSON(bytes []byte) error
type ListCompleteResult ¶
type ListCompleteResult struct { LatestHttpResponse *http.Response Items []CustomImage }
type ListCustomPager ¶ added in v0.20240628.1153531
func (*ListCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListCustomPager) NextPageLink() *odata.Link
type ListOperationOptions ¶
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
func (ListOperationOptions) ToHeaders ¶
func (o ListOperationOptions) ToHeaders() *client.Headers
func (ListOperationOptions) ToOData ¶
func (o ListOperationOptions) ToOData() *odata.Query
func (ListOperationOptions) ToQuery ¶
func (o ListOperationOptions) ToQuery() *client.QueryParams
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]CustomImage }
type StorageType ¶
type StorageType string
const ( StorageTypePremium StorageType = "Premium" StorageTypeStandard StorageType = "Standard" StorageTypeStandardSSD StorageType = "StandardSSD" )
func (*StorageType) UnmarshalJSON ¶
func (s *StorageType) UnmarshalJSON(bytes []byte) error
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData 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" )
func (*WindowsOsState) UnmarshalJSON ¶
func (s *WindowsOsState) UnmarshalJSON(bytes []byte) error
Source Files ¶
- client.go
- constants.go
- id_customimage.go
- id_lab.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_list.go
- method_update.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