Documentation ¶
Index ¶
- func PossibleValuesForEnableState() []string
- func PossibleValuesForOsState() []string
- func PossibleValuesForOsType() []string
- func PossibleValuesForProvisioningState() []string
- func ValidateImageID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateLabPlanID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationResponse
- type EnableState
- type GetOperationResponse
- type Image
- type ImageClient
- func (c ImageClient) CreateOrUpdate(ctx context.Context, id ImageId, input Image) (result CreateOrUpdateOperationResponse, err error)
- func (c ImageClient) Get(ctx context.Context, id ImageId) (result GetOperationResponse, err error)
- func (c ImageClient) ListByLabPlan(ctx context.Context, id LabPlanId) (result ListByLabPlanOperationResponse, err error)
- func (c ImageClient) ListByLabPlanComplete(ctx context.Context, id LabPlanId) (ListByLabPlanCompleteResult, error)
- func (c ImageClient) ListByLabPlanCompleteMatchingPredicate(ctx context.Context, id LabPlanId, predicate ImageOperationPredicate) (result ListByLabPlanCompleteResult, err error)
- func (c ImageClient) Update(ctx context.Context, id ImageId, input ImageUpdate) (result UpdateOperationResponse, err error)
- type ImageId
- type ImageOperationPredicate
- type ImageProperties
- type ImageUpdate
- type ImageUpdateProperties
- type LabPlanId
- type ListByLabPlanCompleteResult
- type ListByLabPlanOperationResponse
- type OsState
- type OsType
- type ProvisioningState
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForEnableState ¶
func PossibleValuesForEnableState() []string
func PossibleValuesForOsState ¶
func PossibleValuesForOsState() []string
func PossibleValuesForOsType ¶
func PossibleValuesForOsType() []string
func PossibleValuesForProvisioningState ¶
func PossibleValuesForProvisioningState() []string
func ValidateImageID ¶
ValidateImageID checks that 'input' can be parsed as a Image ID
func ValidateLabPlanID ¶
ValidateLabPlanID checks that 'input' can be parsed as a Lab Plan ID
Types ¶
type EnableState ¶
type EnableState string
const ( EnableStateDisabled EnableState = "Disabled" EnableStateEnabled EnableState = "Enabled" )
func (*EnableState) UnmarshalJSON ¶
func (s *EnableState) UnmarshalJSON(bytes []byte) error
type GetOperationResponse ¶
type Image ¶
type Image struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties ImageProperties `json:"properties"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type ImageClient ¶
type ImageClient struct {
Client *resourcemanager.Client
}
func NewImageClientWithBaseURI ¶
func NewImageClientWithBaseURI(sdkApi sdkEnv.Api) (*ImageClient, error)
func (ImageClient) CreateOrUpdate ¶
func (c ImageClient) CreateOrUpdate(ctx context.Context, id ImageId, input Image) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (ImageClient) Get ¶
func (c ImageClient) Get(ctx context.Context, id ImageId) (result GetOperationResponse, err error)
Get ...
func (ImageClient) ListByLabPlan ¶
func (c ImageClient) ListByLabPlan(ctx context.Context, id LabPlanId) (result ListByLabPlanOperationResponse, err error)
ListByLabPlan ...
func (ImageClient) ListByLabPlanComplete ¶
func (c ImageClient) ListByLabPlanComplete(ctx context.Context, id LabPlanId) (ListByLabPlanCompleteResult, error)
ListByLabPlanComplete retrieves all the results into a single object
func (ImageClient) ListByLabPlanCompleteMatchingPredicate ¶
func (c ImageClient) ListByLabPlanCompleteMatchingPredicate(ctx context.Context, id LabPlanId, predicate ImageOperationPredicate) (result ListByLabPlanCompleteResult, err error)
ListByLabPlanCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ImageClient) Update ¶
func (c ImageClient) Update(ctx context.Context, id ImageId, input ImageUpdate) (result UpdateOperationResponse, err error)
Update ...
type ImageId ¶
type ImageId struct { SubscriptionId string ResourceGroupName string LabPlanName string ImageName string }
ImageId is a struct representing the Resource ID for a Image
func NewImageID ¶
func NewImageID(subscriptionId string, resourceGroupName string, labPlanName string, imageName string) ImageId
NewImageID returns a new ImageId struct
func ParseImageID ¶
ParseImageID parses 'input' into a ImageId
func ParseImageIDInsensitively ¶
ParseImageIDInsensitively parses 'input' case-insensitively into a ImageId note: this method should only be used for API response data and not user input
func (*ImageId) FromParseResult ¶
func (id *ImageId) FromParseResult(input resourceids.ParseResult) error
func (ImageId) Segments ¶
func (id ImageId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Image ID
type ImageOperationPredicate ¶
func (ImageOperationPredicate) Matches ¶
func (p ImageOperationPredicate) Matches(input Image) bool
type ImageProperties ¶
type ImageProperties struct { Author *string `json:"author,omitempty"` AvailableRegions *[]string `json:"availableRegions,omitempty"` Description *string `json:"description,omitempty"` DisplayName *string `json:"displayName,omitempty"` EnabledState *EnableState `json:"enabledState,omitempty"` IconUrl *string `json:"iconUrl,omitempty"` Offer *string `json:"offer,omitempty"` OsState *OsState `json:"osState,omitempty"` OsType *OsType `json:"osType,omitempty"` Plan *string `json:"plan,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` Publisher *string `json:"publisher,omitempty"` Sku *string `json:"sku,omitempty"` TermsStatus *EnableState `json:"termsStatus,omitempty"` Version *string `json:"version,omitempty"` }
type ImageUpdate ¶
type ImageUpdate struct {
Properties *ImageUpdateProperties `json:"properties,omitempty"`
}
type ImageUpdateProperties ¶
type ImageUpdateProperties struct {
EnabledState *EnableState `json:"enabledState,omitempty"`
}
type LabPlanId ¶
LabPlanId is a struct representing the Resource ID for a Lab Plan
func NewLabPlanID ¶
NewLabPlanID returns a new LabPlanId struct
func ParseLabPlanID ¶
ParseLabPlanID parses 'input' into a LabPlanId
func ParseLabPlanIDInsensitively ¶
ParseLabPlanIDInsensitively parses 'input' case-insensitively into a LabPlanId note: this method should only be used for API response data and not user input
func (*LabPlanId) FromParseResult ¶
func (id *LabPlanId) FromParseResult(input resourceids.ParseResult) error
func (LabPlanId) Segments ¶
func (id LabPlanId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Lab Plan ID
type ProvisioningState ¶
type ProvisioningState string
const ( ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateLocked ProvisioningState = "Locked" ProvisioningStateSucceeded ProvisioningState = "Succeeded" ProvisioningStateUpdating ProvisioningState = "Updating" )
func (*ProvisioningState) UnmarshalJSON ¶
func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error