Documentation ¶
Index ¶
- func PossibleValuesForConnectionType() []string
- func PossibleValuesForCreateOption() []string
- func PossibleValuesForEnableState() []string
- func PossibleValuesForLabState() []string
- func PossibleValuesForOsType() []string
- func PossibleValuesForProvisioningState() []string
- func PossibleValuesForShutdownOnIdleMode() []string
- func PossibleValuesForSkuTier() []string
- func ValidateLabID(input interface{}, key string) (warnings []string, errors []error)
- type AutoShutdownProfile
- type ConnectionProfile
- type ConnectionType
- type CreateOption
- type CreateOrUpdateOperationResponse
- type Credentials
- type DeleteOperationResponse
- type EnableState
- type GetOperationResponse
- type ImageReference
- type Lab
- type LabClient
- func (c LabClient) CreateOrUpdate(ctx context.Context, id LabId, input Lab) (result CreateOrUpdateOperationResponse, err error)
- func (c LabClient) CreateOrUpdateThenPoll(ctx context.Context, id LabId, input Lab) error
- func (c LabClient) Delete(ctx context.Context, id LabId) (result DeleteOperationResponse, err error)
- func (c LabClient) DeleteThenPoll(ctx context.Context, id LabId) error
- func (c LabClient) Get(ctx context.Context, id LabId) (result GetOperationResponse, err error)
- func (c LabClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
- func (c LabClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
- func (c LabClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, ...) (result ListByResourceGroupCompleteResult, err error)
- func (c LabClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error)
- func (c LabClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId) (ListBySubscriptionCompleteResult, error)
- func (c LabClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (result ListBySubscriptionCompleteResult, err error)
- func (c LabClient) Publish(ctx context.Context, id LabId) (result PublishOperationResponse, err error)
- func (c LabClient) PublishThenPoll(ctx context.Context, id LabId) error
- func (c LabClient) SyncGroup(ctx context.Context, id LabId) (result SyncGroupOperationResponse, err error)
- func (c LabClient) SyncGroupThenPoll(ctx context.Context, id LabId) error
- func (c LabClient) Update(ctx context.Context, id LabId, input LabUpdate) (result UpdateOperationResponse, err error)
- func (c LabClient) UpdateThenPoll(ctx context.Context, id LabId, input LabUpdate) error
- type LabId
- type LabNetworkProfile
- type LabOperationPredicate
- type LabProperties
- type LabState
- type LabUpdate
- type LabUpdateProperties
- type ListByResourceGroupCompleteResult
- type ListByResourceGroupOperationResponse
- type ListBySubscriptionCompleteResult
- type ListBySubscriptionOperationResponse
- type OsType
- type ProvisioningState
- type PublishOperationResponse
- type ResourceOperationError
- type RosterProfile
- type SecurityProfile
- type ShutdownOnIdleMode
- type Sku
- type SkuTier
- type SyncGroupOperationResponse
- type UpdateOperationResponse
- type VirtualMachineAdditionalCapabilities
- type VirtualMachineProfile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForConnectionType ¶
func PossibleValuesForConnectionType() []string
func PossibleValuesForCreateOption ¶
func PossibleValuesForCreateOption() []string
func PossibleValuesForEnableState ¶
func PossibleValuesForEnableState() []string
func PossibleValuesForLabState ¶
func PossibleValuesForLabState() []string
func PossibleValuesForOsType ¶
func PossibleValuesForOsType() []string
func PossibleValuesForProvisioningState ¶
func PossibleValuesForProvisioningState() []string
func PossibleValuesForShutdownOnIdleMode ¶
func PossibleValuesForShutdownOnIdleMode() []string
func PossibleValuesForSkuTier ¶
func PossibleValuesForSkuTier() []string
func ValidateLabID ¶
ValidateLabID checks that 'input' can be parsed as a Lab ID
Types ¶
type AutoShutdownProfile ¶
type AutoShutdownProfile struct { DisconnectDelay *string `json:"disconnectDelay,omitempty"` IdleDelay *string `json:"idleDelay,omitempty"` NoConnectDelay *string `json:"noConnectDelay,omitempty"` ShutdownOnDisconnect *EnableState `json:"shutdownOnDisconnect,omitempty"` ShutdownOnIdle *ShutdownOnIdleMode `json:"shutdownOnIdle,omitempty"` ShutdownWhenNotConnected *EnableState `json:"shutdownWhenNotConnected,omitempty"` }
type ConnectionProfile ¶
type ConnectionProfile struct { ClientRdpAccess *ConnectionType `json:"clientRdpAccess,omitempty"` ClientSshAccess *ConnectionType `json:"clientSshAccess,omitempty"` WebRdpAccess *ConnectionType `json:"webRdpAccess,omitempty"` WebSshAccess *ConnectionType `json:"webSshAccess,omitempty"` }
type ConnectionType ¶
type ConnectionType string
const ( ConnectionTypeNone ConnectionType = "None" ConnectionTypePrivate ConnectionType = "Private" ConnectionTypePublic ConnectionType = "Public" )
func (*ConnectionType) UnmarshalJSON ¶
func (s *ConnectionType) UnmarshalJSON(bytes []byte) error
type CreateOption ¶
type CreateOption string
const ( CreateOptionImage CreateOption = "Image" CreateOptionTemplateVM CreateOption = "TemplateVM" )
func (*CreateOption) UnmarshalJSON ¶
func (s *CreateOption) UnmarshalJSON(bytes []byte) error
type Credentials ¶
type DeleteOperationResponse ¶
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 ImageReference ¶
type Lab ¶
type Lab struct { Id *string `json:"id,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` Properties LabProperties `json:"properties"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type LabClient ¶
type LabClient struct {
Client *resourcemanager.Client
}
func (LabClient) CreateOrUpdate ¶
func (c LabClient) CreateOrUpdate(ctx context.Context, id LabId, input Lab) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (LabClient) CreateOrUpdateThenPoll ¶
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (LabClient) Delete ¶
func (c LabClient) Delete(ctx context.Context, id LabId) (result DeleteOperationResponse, err error)
Delete ...
func (LabClient) DeleteThenPoll ¶
DeleteThenPoll performs Delete then polls until it's completed
func (LabClient) ListByResourceGroup ¶
func (c LabClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
ListByResourceGroup ...
func (LabClient) ListByResourceGroupComplete ¶
func (c LabClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
ListByResourceGroupComplete retrieves all the results into a single object
func (LabClient) ListByResourceGroupCompleteMatchingPredicate ¶
func (c LabClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate LabOperationPredicate) (result ListByResourceGroupCompleteResult, err error)
ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (LabClient) ListBySubscription ¶
func (c LabClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error)
ListBySubscription ...
func (LabClient) ListBySubscriptionComplete ¶
func (c LabClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId) (ListBySubscriptionCompleteResult, error)
ListBySubscriptionComplete retrieves all the results into a single object
func (LabClient) ListBySubscriptionCompleteMatchingPredicate ¶
func (c LabClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate LabOperationPredicate) (result ListBySubscriptionCompleteResult, err error)
ListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (LabClient) Publish ¶
func (c LabClient) Publish(ctx context.Context, id LabId) (result PublishOperationResponse, err error)
Publish ...
func (LabClient) PublishThenPoll ¶
PublishThenPoll performs Publish then polls until it's completed
func (LabClient) SyncGroup ¶
func (c LabClient) SyncGroup(ctx context.Context, id LabId) (result SyncGroupOperationResponse, err error)
SyncGroup ...
func (LabClient) SyncGroupThenPoll ¶
SyncGroupThenPoll performs SyncGroup then polls until it's completed
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 ¶ added in v0.20231127.1171502
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 LabNetworkProfile ¶
type LabOperationPredicate ¶
func (LabOperationPredicate) Matches ¶
func (p LabOperationPredicate) Matches(input Lab) bool
type LabProperties ¶
type LabProperties struct { AutoShutdownProfile AutoShutdownProfile `json:"autoShutdownProfile"` ConnectionProfile ConnectionProfile `json:"connectionProfile"` Description *string `json:"description,omitempty"` LabPlanId *string `json:"labPlanId,omitempty"` NetworkProfile *LabNetworkProfile `json:"networkProfile,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` ResourceOperationError *ResourceOperationError `json:"resourceOperationError,omitempty"` RosterProfile *RosterProfile `json:"rosterProfile,omitempty"` SecurityProfile SecurityProfile `json:"securityProfile"` State *LabState `json:"state,omitempty"` Title *string `json:"title,omitempty"` VirtualMachineProfile VirtualMachineProfile `json:"virtualMachineProfile"` }
type LabUpdate ¶
type LabUpdate struct { Properties *LabUpdateProperties `json:"properties,omitempty"` Tags *[]string `json:"tags,omitempty"` }
type LabUpdateProperties ¶
type LabUpdateProperties struct { AutoShutdownProfile *AutoShutdownProfile `json:"autoShutdownProfile,omitempty"` ConnectionProfile *ConnectionProfile `json:"connectionProfile,omitempty"` Description *string `json:"description,omitempty"` LabPlanId *string `json:"labPlanId,omitempty"` RosterProfile *RosterProfile `json:"rosterProfile,omitempty"` SecurityProfile *SecurityProfile `json:"securityProfile,omitempty"` Title *string `json:"title,omitempty"` VirtualMachineProfile *VirtualMachineProfile `json:"virtualMachineProfile,omitempty"` }
type ListByResourceGroupCompleteResult ¶
type ListByResourceGroupCompleteResult struct {
Items []Lab
}
type ListBySubscriptionCompleteResult ¶
type ListBySubscriptionCompleteResult struct {
Items []Lab
}
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
type ResourceOperationError ¶
type ResourceOperationError struct { Action *string `json:"action,omitempty"` Code *string `json:"code,omitempty"` Message *string `json:"message,omitempty"` Timestamp *string `json:"timestamp,omitempty"` }
func (*ResourceOperationError) GetTimestampAsTime ¶
func (o *ResourceOperationError) GetTimestampAsTime() (*time.Time, error)
func (*ResourceOperationError) SetTimestampAsTime ¶
func (o *ResourceOperationError) SetTimestampAsTime(input time.Time)
type RosterProfile ¶
type RosterProfile struct { ActiveDirectoryGroupId *string `json:"activeDirectoryGroupId,omitempty"` LmsInstance *string `json:"lmsInstance,omitempty"` LtiClientId *string `json:"ltiClientId,omitempty"` LtiContextId *string `json:"ltiContextId,omitempty"` LtiRosterEndpoint *string `json:"ltiRosterEndpoint,omitempty"` }
type SecurityProfile ¶
type SecurityProfile struct { OpenAccess *EnableState `json:"openAccess,omitempty"` RegistrationCode *string `json:"registrationCode,omitempty"` }
type ShutdownOnIdleMode ¶
type ShutdownOnIdleMode string
const ( ShutdownOnIdleModeLowUsage ShutdownOnIdleMode = "LowUsage" ShutdownOnIdleModeNone ShutdownOnIdleMode = "None" ShutdownOnIdleModeUserAbsence ShutdownOnIdleMode = "UserAbsence" )
func (*ShutdownOnIdleMode) UnmarshalJSON ¶
func (s *ShutdownOnIdleMode) UnmarshalJSON(bytes []byte) error
type UpdateOperationResponse ¶
type VirtualMachineAdditionalCapabilities ¶
type VirtualMachineAdditionalCapabilities struct {
InstallGpuDrivers *EnableState `json:"installGpuDrivers,omitempty"`
}
type VirtualMachineProfile ¶
type VirtualMachineProfile struct { AdditionalCapabilities *VirtualMachineAdditionalCapabilities `json:"additionalCapabilities,omitempty"` AdminUser Credentials `json:"adminUser"` CreateOption CreateOption `json:"createOption"` ImageReference ImageReference `json:"imageReference"` NonAdminUser *Credentials `json:"nonAdminUser,omitempty"` OsType *OsType `json:"osType,omitempty"` Sku Sku `json:"sku"` UsageQuota string `json:"usageQuota"` }
Source Files ¶
- client.go
- constants.go
- id_lab.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_listbyresourcegroup.go
- method_listbysubscription.go
- method_publish.go
- method_syncgroup.go
- method_update.go
- model_autoshutdownprofile.go
- model_connectionprofile.go
- model_credentials.go
- model_imagereference.go
- model_lab.go
- model_labnetworkprofile.go
- model_labproperties.go
- model_labupdate.go
- model_labupdateproperties.go
- model_resourceoperationerror.go
- model_rosterprofile.go
- model_securityprofile.go
- model_sku.go
- model_virtualmachineadditionalcapabilities.go
- model_virtualmachineprofile.go
- predicates.go
- version.go