Documentation ¶
Index ¶
- func PossibleValuesForProvisioningState() []string
- func PossibleValuesForVirtualMachineState() []string
- func PossibleValuesForVirtualMachineType() []string
- func ValidateLabID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateLabPlanID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateVirtualMachineID(input interface{}, key string) (warnings []string, errors []error)
- type GetOperationResponse
- type LabId
- type LabPlanId
- type LabPlansSaveImageOperationResponse
- type ListByLabCompleteResult
- type ListByLabOperationResponse
- type ProvisioningState
- type RedeployOperationResponse
- type ReimageOperationResponse
- type ResetPasswordBody
- type ResetPasswordOperationResponse
- type SaveImageBody
- type StartOperationResponse
- type StopOperationResponse
- type VirtualMachine
- type VirtualMachineClient
- func (c VirtualMachineClient) Get(ctx context.Context, id VirtualMachineId) (result GetOperationResponse, err error)
- func (c VirtualMachineClient) LabPlansSaveImage(ctx context.Context, id LabPlanId, input SaveImageBody) (result LabPlansSaveImageOperationResponse, err error)
- func (c VirtualMachineClient) LabPlansSaveImageThenPoll(ctx context.Context, id LabPlanId, input SaveImageBody) error
- func (c VirtualMachineClient) ListByLab(ctx context.Context, id LabId) (resp ListByLabOperationResponse, err error)
- func (c VirtualMachineClient) ListByLabComplete(ctx context.Context, id LabId) (ListByLabCompleteResult, error)
- func (c VirtualMachineClient) ListByLabCompleteMatchingPredicate(ctx context.Context, id LabId, predicate VirtualMachineOperationPredicate) (resp ListByLabCompleteResult, err error)
- func (c VirtualMachineClient) Redeploy(ctx context.Context, id VirtualMachineId) (result RedeployOperationResponse, err error)
- func (c VirtualMachineClient) RedeployThenPoll(ctx context.Context, id VirtualMachineId) error
- func (c VirtualMachineClient) Reimage(ctx context.Context, id VirtualMachineId) (result ReimageOperationResponse, err error)
- func (c VirtualMachineClient) ReimageThenPoll(ctx context.Context, id VirtualMachineId) error
- func (c VirtualMachineClient) ResetPassword(ctx context.Context, id VirtualMachineId, input ResetPasswordBody) (result ResetPasswordOperationResponse, err error)
- func (c VirtualMachineClient) ResetPasswordThenPoll(ctx context.Context, id VirtualMachineId, input ResetPasswordBody) error
- func (c VirtualMachineClient) Start(ctx context.Context, id VirtualMachineId) (result StartOperationResponse, err error)
- func (c VirtualMachineClient) StartThenPoll(ctx context.Context, id VirtualMachineId) error
- func (c VirtualMachineClient) Stop(ctx context.Context, id VirtualMachineId) (result StopOperationResponse, err error)
- func (c VirtualMachineClient) StopThenPoll(ctx context.Context, id VirtualMachineId) error
- type VirtualMachineConnectionProfile
- type VirtualMachineId
- type VirtualMachineOperationPredicate
- type VirtualMachineProperties
- type VirtualMachineState
- type VirtualMachineType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForProvisioningState ¶
func PossibleValuesForProvisioningState() []string
func PossibleValuesForVirtualMachineState ¶
func PossibleValuesForVirtualMachineState() []string
func PossibleValuesForVirtualMachineType ¶
func PossibleValuesForVirtualMachineType() []string
func ValidateLabID ¶
ValidateLabID checks that 'input' can be parsed as a Lab ID
func ValidateLabPlanID ¶
ValidateLabPlanID checks that 'input' can be parsed as a Lab Plan ID
func ValidateVirtualMachineID ¶
ValidateVirtualMachineID checks that 'input' can be parsed as a Virtual Machine ID
Types ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *VirtualMachine }
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 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) Segments ¶
func (id LabPlanId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Lab Plan ID
type LabPlansSaveImageOperationResponse ¶
type LabPlansSaveImageOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type ListByLabCompleteResult ¶
type ListByLabCompleteResult struct {
Items []VirtualMachine
}
type ListByLabOperationResponse ¶
type ListByLabOperationResponse struct { HttpResponse *http.Response Model *[]VirtualMachine // contains filtered or unexported fields }
func (ListByLabOperationResponse) HasMore ¶
func (r ListByLabOperationResponse) HasMore() bool
func (ListByLabOperationResponse) LoadMore ¶
func (r ListByLabOperationResponse) LoadMore(ctx context.Context) (resp ListByLabOperationResponse, err error)
type ProvisioningState ¶
type ProvisioningState string
const ( ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateLocked ProvisioningState = "Locked" ProvisioningStateSucceeded ProvisioningState = "Succeeded" ProvisioningStateUpdating ProvisioningState = "Updating" )
type RedeployOperationResponse ¶
type RedeployOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type ReimageOperationResponse ¶
type ReimageOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type ResetPasswordBody ¶
type ResetPasswordOperationResponse ¶
type ResetPasswordOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type SaveImageBody ¶
type StartOperationResponse ¶
type StartOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type StopOperationResponse ¶
type StopOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type VirtualMachine ¶
type VirtualMachine struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties VirtualMachineProperties `json:"properties"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type VirtualMachineClient ¶
type VirtualMachineClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewVirtualMachineClientWithBaseURI ¶
func NewVirtualMachineClientWithBaseURI(endpoint string) VirtualMachineClient
func (VirtualMachineClient) Get ¶
func (c VirtualMachineClient) Get(ctx context.Context, id VirtualMachineId) (result GetOperationResponse, err error)
Get ...
func (VirtualMachineClient) LabPlansSaveImage ¶
func (c VirtualMachineClient) LabPlansSaveImage(ctx context.Context, id LabPlanId, input SaveImageBody) (result LabPlansSaveImageOperationResponse, err error)
LabPlansSaveImage ...
func (VirtualMachineClient) LabPlansSaveImageThenPoll ¶
func (c VirtualMachineClient) LabPlansSaveImageThenPoll(ctx context.Context, id LabPlanId, input SaveImageBody) error
LabPlansSaveImageThenPoll performs LabPlansSaveImage then polls until it's completed
func (VirtualMachineClient) ListByLab ¶
func (c VirtualMachineClient) ListByLab(ctx context.Context, id LabId) (resp ListByLabOperationResponse, err error)
ListByLab ...
func (VirtualMachineClient) ListByLabComplete ¶
func (c VirtualMachineClient) ListByLabComplete(ctx context.Context, id LabId) (ListByLabCompleteResult, error)
ListByLabComplete retrieves all of the results into a single object
func (VirtualMachineClient) ListByLabCompleteMatchingPredicate ¶
func (c VirtualMachineClient) ListByLabCompleteMatchingPredicate(ctx context.Context, id LabId, predicate VirtualMachineOperationPredicate) (resp ListByLabCompleteResult, err error)
ListByLabCompleteMatchingPredicate retrieves all of the results and then applied the predicate
func (VirtualMachineClient) Redeploy ¶
func (c VirtualMachineClient) Redeploy(ctx context.Context, id VirtualMachineId) (result RedeployOperationResponse, err error)
Redeploy ...
func (VirtualMachineClient) RedeployThenPoll ¶
func (c VirtualMachineClient) RedeployThenPoll(ctx context.Context, id VirtualMachineId) error
RedeployThenPoll performs Redeploy then polls until it's completed
func (VirtualMachineClient) Reimage ¶
func (c VirtualMachineClient) Reimage(ctx context.Context, id VirtualMachineId) (result ReimageOperationResponse, err error)
Reimage ...
func (VirtualMachineClient) ReimageThenPoll ¶
func (c VirtualMachineClient) ReimageThenPoll(ctx context.Context, id VirtualMachineId) error
ReimageThenPoll performs Reimage then polls until it's completed
func (VirtualMachineClient) ResetPassword ¶
func (c VirtualMachineClient) ResetPassword(ctx context.Context, id VirtualMachineId, input ResetPasswordBody) (result ResetPasswordOperationResponse, err error)
ResetPassword ...
func (VirtualMachineClient) ResetPasswordThenPoll ¶
func (c VirtualMachineClient) ResetPasswordThenPoll(ctx context.Context, id VirtualMachineId, input ResetPasswordBody) error
ResetPasswordThenPoll performs ResetPassword then polls until it's completed
func (VirtualMachineClient) Start ¶
func (c VirtualMachineClient) Start(ctx context.Context, id VirtualMachineId) (result StartOperationResponse, err error)
Start ...
func (VirtualMachineClient) StartThenPoll ¶
func (c VirtualMachineClient) StartThenPoll(ctx context.Context, id VirtualMachineId) error
StartThenPoll performs Start then polls until it's completed
func (VirtualMachineClient) Stop ¶
func (c VirtualMachineClient) Stop(ctx context.Context, id VirtualMachineId) (result StopOperationResponse, err error)
Stop ...
func (VirtualMachineClient) StopThenPoll ¶
func (c VirtualMachineClient) StopThenPoll(ctx context.Context, id VirtualMachineId) error
StopThenPoll performs Stop then polls until it's completed
type VirtualMachineConnectionProfile ¶
type VirtualMachineConnectionProfile struct { AdminUsername *string `json:"adminUsername,omitempty"` NonAdminUsername *string `json:"nonAdminUsername,omitempty"` PrivateIPAddress *string `json:"privateIpAddress,omitempty"` RdpAuthority *string `json:"rdpAuthority,omitempty"` RdpInBrowserUrl *string `json:"rdpInBrowserUrl,omitempty"` SshAuthority *string `json:"sshAuthority,omitempty"` SshInBrowserUrl *string `json:"sshInBrowserUrl,omitempty"` }
type VirtualMachineId ¶
type VirtualMachineId struct { SubscriptionId string ResourceGroupName string LabName string VirtualMachineName string }
VirtualMachineId is a struct representing the Resource ID for a Virtual Machine
func NewVirtualMachineID ¶
func NewVirtualMachineID(subscriptionId string, resourceGroupName string, labName string, virtualMachineName string) VirtualMachineId
NewVirtualMachineID returns a new VirtualMachineId struct
func ParseVirtualMachineID ¶
func ParseVirtualMachineID(input string) (*VirtualMachineId, error)
ParseVirtualMachineID parses 'input' into a VirtualMachineId
func ParseVirtualMachineIDInsensitively ¶
func ParseVirtualMachineIDInsensitively(input string) (*VirtualMachineId, error)
ParseVirtualMachineIDInsensitively parses 'input' case-insensitively into a VirtualMachineId note: this method should only be used for API response data and not user input
func (VirtualMachineId) ID ¶
func (id VirtualMachineId) ID() string
ID returns the formatted Virtual Machine ID
func (VirtualMachineId) Segments ¶
func (id VirtualMachineId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Virtual Machine ID
func (VirtualMachineId) String ¶
func (id VirtualMachineId) String() string
String returns a human-readable description of this Virtual Machine ID
type VirtualMachineOperationPredicate ¶
func (VirtualMachineOperationPredicate) Matches ¶
func (p VirtualMachineOperationPredicate) Matches(input VirtualMachine) bool
type VirtualMachineProperties ¶
type VirtualMachineProperties struct { ClaimedByUserId *string `json:"claimedByUserId,omitempty"` ConnectionProfile *VirtualMachineConnectionProfile `json:"connectionProfile,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` State *VirtualMachineState `json:"state,omitempty"` VMType *VirtualMachineType `json:"vmType,omitempty"` }
type VirtualMachineState ¶
type VirtualMachineState string
const ( VirtualMachineStateRedeploying VirtualMachineState = "Redeploying" VirtualMachineStateReimaging VirtualMachineState = "Reimaging" VirtualMachineStateResettingPassword VirtualMachineState = "ResettingPassword" VirtualMachineStateRunning VirtualMachineState = "Running" VirtualMachineStateStarting VirtualMachineState = "Starting" VirtualMachineStateStopped VirtualMachineState = "Stopped" VirtualMachineStateStopping VirtualMachineState = "Stopping" )
type VirtualMachineType ¶
type VirtualMachineType string
const ( VirtualMachineTypeTemplate VirtualMachineType = "Template" VirtualMachineTypeUser VirtualMachineType = "User" )
Source Files ¶
- client.go
- constants.go
- id_lab.go
- id_labplan.go
- id_virtualmachine.go
- method_get_autorest.go
- method_labplanssaveimage_autorest.go
- method_listbylab_autorest.go
- method_redeploy_autorest.go
- method_reimage_autorest.go
- method_resetpassword_autorest.go
- method_start_autorest.go
- method_stop_autorest.go
- model_resetpasswordbody.go
- model_saveimagebody.go
- model_virtualmachine.go
- model_virtualmachineconnectionprofile.go
- model_virtualmachineproperties.go
- predicates.go
- version.go