labservices

package
v60.2.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package labservices implements the Azure ARM Labservices service API version 2018-10-15.

The Managed Labs Client.

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Labservices
	DefaultBaseURI = "https://management.azure.com"
)

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

Types

type AddRemove

type AddRemove string

AddRemove enumerates the values for add remove.

const (
	// Add Indicates that a user is adding a favorite lab
	Add AddRemove = "Add"
	// Remove Indicates that a user is removing a favorite lab
	Remove AddRemove = "Remove"
)

func PossibleAddRemoveValues

func PossibleAddRemoveValues() []AddRemove

PossibleAddRemoveValues returns an array of possible values for the AddRemove const type.

type AddUsersPayload

type AddUsersPayload struct {
	// EmailAddresses - List of user emails addresses to add to the lab.
	EmailAddresses *[]string `json:"emailAddresses,omitempty"`
}

AddUsersPayload payload for Add Users operation on a Lab.

type BaseClient

type BaseClient struct {
	autorest.Client
	BaseURI        string
	SubscriptionID string
}

BaseClient is the base client for Labservices.

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

type CloudError

type CloudError struct {
	Error *CloudErrorBody `json:"error,omitempty"`
}

CloudError error from a REST request.

type CloudErrorBody

type CloudErrorBody struct {
	Code    *string `json:"code,omitempty"`
	Message *string `json:"message,omitempty"`
	Target  *string `json:"target,omitempty"`
	// Details - Inner errors.
	Details *[]CloudErrorBody `json:"details,omitempty"`
}

CloudErrorBody body of an error from a REST request.

type ConfigurationState

type ConfigurationState string

ConfigurationState enumerates the values for configuration state.

const (
	// Completed User is finished modifying the template.
	Completed ConfigurationState = "Completed"
	// NotApplicable User either hasn't started configuring their template
	// or they haven't started the configuration process.
	NotApplicable ConfigurationState = "NotApplicable"
)

func PossibleConfigurationStateValues

func PossibleConfigurationStateValues() []ConfigurationState

PossibleConfigurationStateValues returns an array of possible values for the ConfigurationState const type.

type CreateLabProperties

type CreateLabProperties struct {
	// EnvironmentSettingCreationParameters - Settings related to creating an environment setting
	EnvironmentSettingCreationParameters *EnvironmentSettingCreationParameters `json:"environmentSettingCreationParameters,omitempty"`
	// LabCreationParameters - Settings related to creating a lab
	LabCreationParameters *LabCreationParameters `json:"labCreationParameters,omitempty"`
	// Name - The name of the resource
	Name *string `json:"name,omitempty"`
	// Location - The location of the resource
	Location *string `json:"location,omitempty"`
	// Tags - The tags of the resource.
	Tags map[string]*string `json:"tags"`
}

CreateLabProperties properties for creating a managed lab and a default environment setting

func (CreateLabProperties) MarshalJSON

func (clp CreateLabProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CreateLabProperties.

type Environment

type Environment struct {
	autorest.Response `json:"-"`
	// EnvironmentProperties - The properties of the Environment resource
	*EnvironmentProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; The identifier of the resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource.
	Type *string `json:"type,omitempty"`
	// Location - The location of the resource.
	Location *string `json:"location,omitempty"`
	// Tags - The tags of the resource.
	Tags map[string]*string `json:"tags"`
}

Environment represents an environment instance

func (Environment) MarshalJSON

func (e Environment) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Environment.

func (*Environment) UnmarshalJSON

func (e *Environment) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Environment struct.

type EnvironmentDetails

type EnvironmentDetails struct {
	// Name - READ-ONLY; Name of the Environment
	Name *string `json:"name,omitempty"`
	// Description - READ-ONLY; Description of the Environment
	Description *string `json:"description,omitempty"`
	// ID - READ-ONLY; Resource Id of the environment
	ID *string `json:"id,omitempty"`
	// ProvisioningState - READ-ONLY; The provisioning state of the environment. This also includes LabIsFull and NotYetProvisioned status.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// VirtualMachineDetails - READ-ONLY; Details of backing DTL virtual machine with compute and network details.
	VirtualMachineDetails *VirtualMachineDetails `json:"virtualMachineDetails,omitempty"`
	// LatestOperationResult - READ-ONLY; The details of the latest operation. ex: status, error
	LatestOperationResult *LatestOperationResult `json:"latestOperationResult,omitempty"`
	// EnvironmentState - READ-ONLY; Publishing state of the environment setting Possible values are Creating, Created, Failed
	EnvironmentState *string `json:"environmentState,omitempty"`
	// TotalUsage - READ-ONLY; How long the environment has been used by a lab user
	TotalUsage *string `json:"totalUsage,omitempty"`
	// PasswordLastReset - READ-ONLY; When the password was last reset on the environment.
	PasswordLastReset *date.Time `json:"passwordLastReset,omitempty"`
}

EnvironmentDetails this represents the details about a User's environment and its state.

func (EnvironmentDetails) MarshalJSON

func (ed EnvironmentDetails) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EnvironmentDetails.

type EnvironmentFragment

type EnvironmentFragment struct {
	// EnvironmentPropertiesFragment - The properties of the Environment resource
	*EnvironmentPropertiesFragment `json:"properties,omitempty"`
	// ID - READ-ONLY; The identifier of the resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource.
	Type *string `json:"type,omitempty"`
	// Location - The location of the resource.
	Location *string `json:"location,omitempty"`
	// Tags - The tags of the resource.
	Tags map[string]*string `json:"tags"`
}

EnvironmentFragment represents an environment instance

func (EnvironmentFragment) MarshalJSON

func (ef EnvironmentFragment) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EnvironmentFragment.

func (*EnvironmentFragment) UnmarshalJSON

func (ef *EnvironmentFragment) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for EnvironmentFragment struct.

type EnvironmentOperationsPayload

type EnvironmentOperationsPayload struct {
	// EnvironmentID - The resourceId of the environment
	EnvironmentID *string `json:"environmentId,omitempty"`
}

EnvironmentOperationsPayload represents payload for any Environment operations like get, start, stop, connect

type EnvironmentProperties

type EnvironmentProperties struct {
	// ResourceSets - The set of a VM and the setting id it was created for
	ResourceSets *ResourceSet `json:"resourceSets,omitempty"`
	// ClaimedByUserObjectID - READ-ONLY; The AAD object Id of the user who has claimed the environment
	ClaimedByUserObjectID *string `json:"claimedByUserObjectId,omitempty"`
	// ClaimedByUserPrincipalID - READ-ONLY; The user principal Id of the user who has claimed the environment
	ClaimedByUserPrincipalID *string `json:"claimedByUserPrincipalId,omitempty"`
	// ClaimedByUserName - READ-ONLY; The name or email address of the user who has claimed the environment
	ClaimedByUserName *string `json:"claimedByUserName,omitempty"`
	// IsClaimed - READ-ONLY; Is the environment claimed or not
	IsClaimed *bool `json:"isClaimed,omitempty"`
	// LastKnownPowerState - READ-ONLY; Last known power state of the environment
	LastKnownPowerState *string `json:"lastKnownPowerState,omitempty"`
	// NetworkInterface - READ-ONLY; Network details of the environment
	NetworkInterface *NetworkInterface `json:"networkInterface,omitempty"`
	// TotalUsage - READ-ONLY; How long the environment has been used by a lab user
	TotalUsage *string `json:"totalUsage,omitempty"`
	// PasswordLastReset - READ-ONLY; When the password was last reset on the environment.
	PasswordLastReset *date.Time `json:"passwordLastReset,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// UniqueIdentifier - The unique immutable identifier of a resource (Guid).
	UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
	// LatestOperationResult - READ-ONLY; The details of the latest operation. ex: status, error
	LatestOperationResult *LatestOperationResult `json:"latestOperationResult,omitempty"`
}

EnvironmentProperties properties of an environment

func (EnvironmentProperties) MarshalJSON

func (ep EnvironmentProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EnvironmentProperties.

type EnvironmentPropertiesFragment

type EnvironmentPropertiesFragment struct {
	// ResourceSets - The set of a VM and the setting id it was created for
	ResourceSets *ResourceSetFragment `json:"resourceSets,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// UniqueIdentifier - The unique immutable identifier of a resource (Guid).
	UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}

EnvironmentPropertiesFragment properties of an environment

type EnvironmentSetting

type EnvironmentSetting struct {
	autorest.Response `json:"-"`
	// EnvironmentSettingProperties - The properties of the Environment Setting resource
	*EnvironmentSettingProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; The identifier of the resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource.
	Type *string `json:"type,omitempty"`
	// Location - The location of the resource.
	Location *string `json:"location,omitempty"`
	// Tags - The tags of the resource.
	Tags map[string]*string `json:"tags"`
}

EnvironmentSetting represents settings of an environment, from which environment instances would be created

func (EnvironmentSetting) MarshalJSON

func (es EnvironmentSetting) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EnvironmentSetting.

func (*EnvironmentSetting) UnmarshalJSON

func (es *EnvironmentSetting) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for EnvironmentSetting struct.

type EnvironmentSettingCreationParameters

type EnvironmentSettingCreationParameters struct {
	// ResourceSettingCreationParameters - The resource specific settings
	ResourceSettingCreationParameters *ResourceSettingCreationParameters `json:"resourceSettingCreationParameters,omitempty"`
}

EnvironmentSettingCreationParameters settings related to creating an environment setting

type EnvironmentSettingFragment

type EnvironmentSettingFragment struct {
	// EnvironmentSettingPropertiesFragment - The properties of the Environment Setting resource
	*EnvironmentSettingPropertiesFragment `json:"properties,omitempty"`
	// ID - READ-ONLY; The identifier of the resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource.
	Type *string `json:"type,omitempty"`
	// Location - The location of the resource.
	Location *string `json:"location,omitempty"`
	// Tags - The tags of the resource.
	Tags map[string]*string `json:"tags"`
}

EnvironmentSettingFragment represents settings of an environment, from which environment instances would be created

func (EnvironmentSettingFragment) MarshalJSON

func (esf EnvironmentSettingFragment) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EnvironmentSettingFragment.

func (*EnvironmentSettingFragment) UnmarshalJSON

func (esf *EnvironmentSettingFragment) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for EnvironmentSettingFragment struct.

type EnvironmentSettingProperties

type EnvironmentSettingProperties struct {
	// PublishingState - READ-ONLY; Describes the readiness of this environment setting. Possible values include: 'Draft', 'Publishing', 'Published', 'PublishFailed', 'Scaling'
	PublishingState PublishingState `json:"publishingState,omitempty"`
	// ConfigurationState - Describes the user's progress in configuring their environment setting. Possible values include: 'NotApplicable', 'Completed'
	ConfigurationState ConfigurationState `json:"configurationState,omitempty"`
	// Description - Describes the environment and its resource settings
	Description *string `json:"description,omitempty"`
	// Title - Brief title describing the environment and its resource settings
	Title *string `json:"title,omitempty"`
	// ResourceSettings - The resource specific settings
	ResourceSettings *ResourceSettings `json:"resourceSettings,omitempty"`
	// LastChanged - READ-ONLY; Time when the template VM was last changed.
	LastChanged *date.Time `json:"lastChanged,omitempty"`
	// LastPublished - READ-ONLY; Time when the template VM was last sent for publishing.
	LastPublished *date.Time `json:"lastPublished,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// UniqueIdentifier - The unique immutable identifier of a resource (Guid).
	UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
	// LatestOperationResult - READ-ONLY; The details of the latest operation. ex: status, error
	LatestOperationResult *LatestOperationResult `json:"latestOperationResult,omitempty"`
}

EnvironmentSettingProperties properties of an environment setting

func (EnvironmentSettingProperties) MarshalJSON

func (esp EnvironmentSettingProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EnvironmentSettingProperties.

type EnvironmentSettingPropertiesFragment

type EnvironmentSettingPropertiesFragment struct {
	// ConfigurationState - Describes the user's progress in configuring their environment setting. Possible values include: 'NotApplicable', 'Completed'
	ConfigurationState ConfigurationState `json:"configurationState,omitempty"`
	// Description - Describes the environment and its resource settings
	Description *string `json:"description,omitempty"`
	// Title - Brief title describing the environment and its resource settings
	Title *string `json:"title,omitempty"`
	// ResourceSettings - The resource specific settings
	ResourceSettings *ResourceSettingsFragment `json:"resourceSettings,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// UniqueIdentifier - The unique immutable identifier of a resource (Guid).
	UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}

EnvironmentSettingPropertiesFragment properties of an environment setting

type EnvironmentSettingsClient

type EnvironmentSettingsClient struct {
	BaseClient
}

EnvironmentSettingsClient is the the Managed Labs Client.

func NewEnvironmentSettingsClient

func NewEnvironmentSettingsClient(subscriptionID string) EnvironmentSettingsClient

NewEnvironmentSettingsClient creates an instance of the EnvironmentSettingsClient client.

func NewEnvironmentSettingsClientWithBaseURI

func NewEnvironmentSettingsClientWithBaseURI(baseURI string, subscriptionID string) EnvironmentSettingsClient

NewEnvironmentSettingsClientWithBaseURI creates an instance of the EnvironmentSettingsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (EnvironmentSettingsClient) ClaimAny

func (client EnvironmentSettingsClient) ClaimAny(ctx context.Context, resourceGroupName string, labAccountName string, labName string, environmentSettingName string) (result autorest.Response, err error)

ClaimAny claims a random environment for a user in an environment settings Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account. labName - the name of the lab. environmentSettingName - the name of the environment Setting.

func (EnvironmentSettingsClient) ClaimAnyPreparer

func (client EnvironmentSettingsClient) ClaimAnyPreparer(ctx context.Context, resourceGroupName string, labAccountName string, labName string, environmentSettingName string) (*http.Request, error)

ClaimAnyPreparer prepares the ClaimAny request.

func (EnvironmentSettingsClient) ClaimAnyResponder

func (client EnvironmentSettingsClient) ClaimAnyResponder(resp *http.Response) (result autorest.Response, err error)

ClaimAnyResponder handles the response to the ClaimAny request. The method always closes the http.Response Body.

func (EnvironmentSettingsClient) ClaimAnySender

func (client EnvironmentSettingsClient) ClaimAnySender(req *http.Request) (*http.Response, error)

ClaimAnySender sends the ClaimAny request. The method will close the http.Response Body if it receives an error.

func (EnvironmentSettingsClient) CreateOrUpdate

func (client EnvironmentSettingsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, labAccountName string, labName string, environmentSettingName string, environmentSetting EnvironmentSetting) (result EnvironmentSettingsCreateOrUpdateFuture, err error)

CreateOrUpdate create or replace an existing Environment Setting. This operation can take a while to complete Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account. labName - the name of the lab. environmentSettingName - the name of the environment Setting. environmentSetting - represents settings of an environment, from which environment instances would be created

func (EnvironmentSettingsClient) CreateOrUpdatePreparer

func (client EnvironmentSettingsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, labAccountName string, labName string, environmentSettingName string, environmentSetting EnvironmentSetting) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (EnvironmentSettingsClient) CreateOrUpdateResponder

func (client EnvironmentSettingsClient) CreateOrUpdateResponder(resp *http.Response) (result EnvironmentSetting, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (EnvironmentSettingsClient) CreateOrUpdateSender

func (client EnvironmentSettingsClient) CreateOrUpdateSender(req *http.Request) (future EnvironmentSettingsCreateOrUpdateFuture, err error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (EnvironmentSettingsClient) Delete

func (client EnvironmentSettingsClient) Delete(ctx context.Context, resourceGroupName string, labAccountName string, labName string, environmentSettingName string) (result EnvironmentSettingsDeleteFuture, err error)

Delete delete environment setting. This operation can take a while to complete Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account. labName - the name of the lab. environmentSettingName - the name of the environment Setting.

func (EnvironmentSettingsClient) DeletePreparer

func (client EnvironmentSettingsClient) DeletePreparer(ctx context.Context, resourceGroupName string, labAccountName string, labName string, environmentSettingName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (EnvironmentSettingsClient) DeleteResponder

func (client EnvironmentSettingsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (EnvironmentSettingsClient) DeleteSender

func (client EnvironmentSettingsClient) DeleteSender(req *http.Request) (future EnvironmentSettingsDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (EnvironmentSettingsClient) Get

func (client EnvironmentSettingsClient) Get(ctx context.Context, resourceGroupName string, labAccountName string, labName string, environmentSettingName string, expand string) (result EnvironmentSetting, err error)

Get get environment setting Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account. labName - the name of the lab. environmentSettingName - the name of the environment Setting. expand - specify the $expand query. Example: 'properties($select=publishingState)'

func (EnvironmentSettingsClient) GetPreparer

func (client EnvironmentSettingsClient) GetPreparer(ctx context.Context, resourceGroupName string, labAccountName string, labName string, environmentSettingName string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (EnvironmentSettingsClient) GetResponder

func (client EnvironmentSettingsClient) GetResponder(resp *http.Response) (result EnvironmentSetting, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (EnvironmentSettingsClient) GetSender

func (client EnvironmentSettingsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (EnvironmentSettingsClient) List

func (client EnvironmentSettingsClient) List(ctx context.Context, resourceGroupName string, labAccountName string, labName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationEnvironmentSettingPage, err error)

List list environment setting in a given lab. Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account. labName - the name of the lab. expand - specify the $expand query. Example: 'properties($select=publishingState)' filter - the filter to apply to the operation. top - the maximum number of resources to return from the operation. orderby - the ordering expression for the results, using OData notation.

func (EnvironmentSettingsClient) ListComplete

func (client EnvironmentSettingsClient) ListComplete(ctx context.Context, resourceGroupName string, labAccountName string, labName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationEnvironmentSettingIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (EnvironmentSettingsClient) ListPreparer

func (client EnvironmentSettingsClient) ListPreparer(ctx context.Context, resourceGroupName string, labAccountName string, labName string, expand string, filter string, top *int32, orderby string) (*http.Request, error)

ListPreparer prepares the List request.

func (EnvironmentSettingsClient) ListResponder

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (EnvironmentSettingsClient) ListSender

func (client EnvironmentSettingsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (EnvironmentSettingsClient) Publish

func (client EnvironmentSettingsClient) Publish(ctx context.Context, resourceGroupName string, labAccountName string, labName string, environmentSettingName string, publishPayload PublishPayload) (result autorest.Response, err error)

Publish provisions/deprovisions required resources for an environment setting based on current state of the lab/environment setting. Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account. labName - the name of the lab. environmentSettingName - the name of the environment Setting. publishPayload - payload for Publish operation on EnvironmentSetting.

func (EnvironmentSettingsClient) PublishPreparer

func (client EnvironmentSettingsClient) PublishPreparer(ctx context.Context, resourceGroupName string, labAccountName string, labName string, environmentSettingName string, publishPayload PublishPayload) (*http.Request, error)

PublishPreparer prepares the Publish request.

func (EnvironmentSettingsClient) PublishResponder

func (client EnvironmentSettingsClient) PublishResponder(resp *http.Response) (result autorest.Response, err error)

PublishResponder handles the response to the Publish request. The method always closes the http.Response Body.

func (EnvironmentSettingsClient) PublishSender

func (client EnvironmentSettingsClient) PublishSender(req *http.Request) (*http.Response, error)

PublishSender sends the Publish request. The method will close the http.Response Body if it receives an error.

func (EnvironmentSettingsClient) Start

func (client EnvironmentSettingsClient) Start(ctx context.Context, resourceGroupName string, labAccountName string, labName string, environmentSettingName string) (result EnvironmentSettingsStartFuture, err error)

Start starts a template by starting all resources inside the template. This operation can take a while to complete Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account. labName - the name of the lab. environmentSettingName - the name of the environment Setting.

func (EnvironmentSettingsClient) StartPreparer

func (client EnvironmentSettingsClient) StartPreparer(ctx context.Context, resourceGroupName string, labAccountName string, labName string, environmentSettingName string) (*http.Request, error)

StartPreparer prepares the Start request.

func (EnvironmentSettingsClient) StartResponder

func (client EnvironmentSettingsClient) StartResponder(resp *http.Response) (result autorest.Response, err error)

StartResponder handles the response to the Start request. The method always closes the http.Response Body.

func (EnvironmentSettingsClient) StartSender

func (client EnvironmentSettingsClient) StartSender(req *http.Request) (future EnvironmentSettingsStartFuture, err error)

StartSender sends the Start request. The method will close the http.Response Body if it receives an error.

func (EnvironmentSettingsClient) Stop

func (client EnvironmentSettingsClient) Stop(ctx context.Context, resourceGroupName string, labAccountName string, labName string, environmentSettingName string) (result EnvironmentSettingsStopFuture, err error)

Stop starts a template by starting all resources inside the template. This operation can take a while to complete Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account. labName - the name of the lab. environmentSettingName - the name of the environment Setting.

func (EnvironmentSettingsClient) StopPreparer

func (client EnvironmentSettingsClient) StopPreparer(ctx context.Context, resourceGroupName string, labAccountName string, labName string, environmentSettingName string) (*http.Request, error)

StopPreparer prepares the Stop request.

func (EnvironmentSettingsClient) StopResponder

func (client EnvironmentSettingsClient) StopResponder(resp *http.Response) (result autorest.Response, err error)

StopResponder handles the response to the Stop request. The method always closes the http.Response Body.

func (EnvironmentSettingsClient) StopSender

func (client EnvironmentSettingsClient) StopSender(req *http.Request) (future EnvironmentSettingsStopFuture, err error)

StopSender sends the Stop request. The method will close the http.Response Body if it receives an error.

func (EnvironmentSettingsClient) Update

func (client EnvironmentSettingsClient) Update(ctx context.Context, resourceGroupName string, labAccountName string, labName string, environmentSettingName string, environmentSetting EnvironmentSettingFragment) (result EnvironmentSetting, err error)

Update modify properties of environment setting. Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account. labName - the name of the lab. environmentSettingName - the name of the environment Setting. environmentSetting - represents settings of an environment, from which environment instances would be created

func (EnvironmentSettingsClient) UpdatePreparer

func (client EnvironmentSettingsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, labAccountName string, labName string, environmentSettingName string, environmentSetting EnvironmentSettingFragment) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (EnvironmentSettingsClient) UpdateResponder

func (client EnvironmentSettingsClient) UpdateResponder(resp *http.Response) (result EnvironmentSetting, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (EnvironmentSettingsClient) UpdateSender

func (client EnvironmentSettingsClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type EnvironmentSettingsCreateOrUpdateFuture

type EnvironmentSettingsCreateOrUpdateFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(EnvironmentSettingsClient) (EnvironmentSetting, error)
}

EnvironmentSettingsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*EnvironmentSettingsCreateOrUpdateFuture) UnmarshalJSON

func (future *EnvironmentSettingsCreateOrUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type EnvironmentSettingsDeleteFuture

type EnvironmentSettingsDeleteFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(EnvironmentSettingsClient) (autorest.Response, error)
}

EnvironmentSettingsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*EnvironmentSettingsDeleteFuture) UnmarshalJSON

func (future *EnvironmentSettingsDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type EnvironmentSettingsStartFuture

type EnvironmentSettingsStartFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(EnvironmentSettingsClient) (autorest.Response, error)
}

EnvironmentSettingsStartFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*EnvironmentSettingsStartFuture) UnmarshalJSON

func (future *EnvironmentSettingsStartFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type EnvironmentSettingsStopFuture

type EnvironmentSettingsStopFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(EnvironmentSettingsClient) (autorest.Response, error)
}

EnvironmentSettingsStopFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*EnvironmentSettingsStopFuture) UnmarshalJSON

func (future *EnvironmentSettingsStopFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type EnvironmentSize

type EnvironmentSize struct {
	// Name - The size category. Possible values include: 'Basic', 'Standard', 'Performance'
	Name ManagedLabVMSize `json:"name,omitempty"`
	// VMSizes - Represents a set of compute sizes that can serve this given size type
	VMSizes *[]SizeInfo `json:"vmSizes,omitempty"`
	// MaxPrice - READ-ONLY; The pay-as-you-go dollar price per hour this size will cost. It does not include discounts and may not reflect the actual price the size will cost. This is the maximum price of all prices within this tier.
	MaxPrice *decimal.Decimal `json:"maxPrice,omitempty"`
	// MinNumberOfCores - READ-ONLY; The number of cores a VM of this size has. This is the minimum number of cores within this tier.
	MinNumberOfCores *int32 `json:"minNumberOfCores,omitempty"`
	// MinMemory - READ-ONLY; The amount of memory available (in GB). This is the minimum amount of memory within this tier.
	MinMemory *float64 `json:"minMemory,omitempty"`
}

EnvironmentSize represents a size category supported by this Lab Account (small, medium or large)

func (EnvironmentSize) MarshalJSON

func (es EnvironmentSize) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EnvironmentSize.

type EnvironmentSizeFragment

type EnvironmentSizeFragment struct {
	// Name - The size category. Possible values include: 'Basic', 'Standard', 'Performance'
	Name ManagedLabVMSize `json:"name,omitempty"`
	// VMSizes - Represents a set of compute sizes that can serve this given size type
	VMSizes *[]SizeInfoFragment `json:"vmSizes,omitempty"`
}

EnvironmentSizeFragment represents a size category supported by this Lab Account (small, medium or large)

type EnvironmentsClient

type EnvironmentsClient struct {
	BaseClient
}

EnvironmentsClient is the the Managed Labs Client.

func NewEnvironmentsClient

func NewEnvironmentsClient(subscriptionID string) EnvironmentsClient

NewEnvironmentsClient creates an instance of the EnvironmentsClient client.

func NewEnvironmentsClientWithBaseURI

func NewEnvironmentsClientWithBaseURI(baseURI string, subscriptionID string) EnvironmentsClient

NewEnvironmentsClientWithBaseURI creates an instance of the EnvironmentsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (EnvironmentsClient) Claim

func (client EnvironmentsClient) Claim(ctx context.Context, resourceGroupName string, labAccountName string, labName string, environmentSettingName string, environmentName string) (result autorest.Response, err error)

Claim claims the environment and assigns it to the user Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account. labName - the name of the lab. environmentSettingName - the name of the environment Setting. environmentName - the name of the environment.

func (EnvironmentsClient) ClaimPreparer

func (client EnvironmentsClient) ClaimPreparer(ctx context.Context, resourceGroupName string, labAccountName string, labName string, environmentSettingName string, environmentName string) (*http.Request, error)

ClaimPreparer prepares the Claim request.

func (EnvironmentsClient) ClaimResponder

func (client EnvironmentsClient) ClaimResponder(resp *http.Response) (result autorest.Response, err error)

ClaimResponder handles the response to the Claim request. The method always closes the http.Response Body.

func (EnvironmentsClient) ClaimSender

func (client EnvironmentsClient) ClaimSender(req *http.Request) (*http.Response, error)

ClaimSender sends the Claim request. The method will close the http.Response Body if it receives an error.

func (EnvironmentsClient) CreateOrUpdate

func (client EnvironmentsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, labAccountName string, labName string, environmentSettingName string, environmentName string, environment Environment) (result Environment, err error)

CreateOrUpdate create or replace an existing Environment. Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account. labName - the name of the lab. environmentSettingName - the name of the environment Setting. environmentName - the name of the environment. environment - represents an environment instance

func (EnvironmentsClient) CreateOrUpdatePreparer

func (client EnvironmentsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, labAccountName string, labName string, environmentSettingName string, environmentName string, environment Environment) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (EnvironmentsClient) CreateOrUpdateResponder

func (client EnvironmentsClient) CreateOrUpdateResponder(resp *http.Response) (result Environment, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (EnvironmentsClient) CreateOrUpdateSender

func (client EnvironmentsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (EnvironmentsClient) Delete

func (client EnvironmentsClient) Delete(ctx context.Context, resourceGroupName string, labAccountName string, labName string, environmentSettingName string, environmentName string) (result EnvironmentsDeleteFuture, err error)

Delete delete environment. This operation can take a while to complete Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account. labName - the name of the lab. environmentSettingName - the name of the environment Setting. environmentName - the name of the environment.

func (EnvironmentsClient) DeletePreparer

func (client EnvironmentsClient) DeletePreparer(ctx context.Context, resourceGroupName string, labAccountName string, labName string, environmentSettingName string, environmentName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (EnvironmentsClient) DeleteResponder

func (client EnvironmentsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (EnvironmentsClient) DeleteSender

func (client EnvironmentsClient) DeleteSender(req *http.Request) (future EnvironmentsDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (EnvironmentsClient) Get

func (client EnvironmentsClient) Get(ctx context.Context, resourceGroupName string, labAccountName string, labName string, environmentSettingName string, environmentName string, expand string) (result Environment, err error)

Get get environment Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account. labName - the name of the lab. environmentSettingName - the name of the environment Setting. environmentName - the name of the environment. expand - specify the $expand query. Example: 'properties($expand=networkInterface)'

func (EnvironmentsClient) GetPreparer

func (client EnvironmentsClient) GetPreparer(ctx context.Context, resourceGroupName string, labAccountName string, labName string, environmentSettingName string, environmentName string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (EnvironmentsClient) GetResponder

func (client EnvironmentsClient) GetResponder(resp *http.Response) (result Environment, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (EnvironmentsClient) GetSender

func (client EnvironmentsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (EnvironmentsClient) List

func (client EnvironmentsClient) List(ctx context.Context, resourceGroupName string, labAccountName string, labName string, environmentSettingName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationEnvironmentPage, err error)

List list environments in a given environment setting. Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account. labName - the name of the lab. environmentSettingName - the name of the environment Setting. expand - specify the $expand query. Example: 'properties($expand=networkInterface)' filter - the filter to apply to the operation. top - the maximum number of resources to return from the operation. orderby - the ordering expression for the results, using OData notation.

func (EnvironmentsClient) ListComplete

func (client EnvironmentsClient) ListComplete(ctx context.Context, resourceGroupName string, labAccountName string, labName string, environmentSettingName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationEnvironmentIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (EnvironmentsClient) ListPreparer

func (client EnvironmentsClient) ListPreparer(ctx context.Context, resourceGroupName string, labAccountName string, labName string, environmentSettingName string, expand string, filter string, top *int32, orderby string) (*http.Request, error)

ListPreparer prepares the List request.

func (EnvironmentsClient) ListResponder

func (client EnvironmentsClient) ListResponder(resp *http.Response) (result ResponseWithContinuationEnvironment, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (EnvironmentsClient) ListSender

func (client EnvironmentsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (EnvironmentsClient) ResetPassword

func (client EnvironmentsClient) ResetPassword(ctx context.Context, resourceGroupName string, labAccountName string, labName string, environmentSettingName string, environmentName string, resetPasswordPayload ResetPasswordPayload) (result EnvironmentsResetPasswordFuture, err error)

ResetPassword resets the user password on an environment This operation can take a while to complete Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account. labName - the name of the lab. environmentSettingName - the name of the environment Setting. environmentName - the name of the environment. resetPasswordPayload - represents the payload for resetting passwords.

func (EnvironmentsClient) ResetPasswordPreparer

func (client EnvironmentsClient) ResetPasswordPreparer(ctx context.Context, resourceGroupName string, labAccountName string, labName string, environmentSettingName string, environmentName string, resetPasswordPayload ResetPasswordPayload) (*http.Request, error)

ResetPasswordPreparer prepares the ResetPassword request.

func (EnvironmentsClient) ResetPasswordResponder

func (client EnvironmentsClient) ResetPasswordResponder(resp *http.Response) (result autorest.Response, err error)

ResetPasswordResponder handles the response to the ResetPassword request. The method always closes the http.Response Body.

func (EnvironmentsClient) ResetPasswordSender

func (client EnvironmentsClient) ResetPasswordSender(req *http.Request) (future EnvironmentsResetPasswordFuture, err error)

ResetPasswordSender sends the ResetPassword request. The method will close the http.Response Body if it receives an error.

func (EnvironmentsClient) Start

func (client EnvironmentsClient) Start(ctx context.Context, resourceGroupName string, labAccountName string, labName string, environmentSettingName string, environmentName string) (result EnvironmentsStartFuture, err error)

Start starts an environment by starting all resources inside the environment. This operation can take a while to complete Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account. labName - the name of the lab. environmentSettingName - the name of the environment Setting. environmentName - the name of the environment.

func (EnvironmentsClient) StartPreparer

func (client EnvironmentsClient) StartPreparer(ctx context.Context, resourceGroupName string, labAccountName string, labName string, environmentSettingName string, environmentName string) (*http.Request, error)

StartPreparer prepares the Start request.

func (EnvironmentsClient) StartResponder

func (client EnvironmentsClient) StartResponder(resp *http.Response) (result autorest.Response, err error)

StartResponder handles the response to the Start request. The method always closes the http.Response Body.

func (EnvironmentsClient) StartSender

func (client EnvironmentsClient) StartSender(req *http.Request) (future EnvironmentsStartFuture, err error)

StartSender sends the Start request. The method will close the http.Response Body if it receives an error.

func (EnvironmentsClient) Stop

func (client EnvironmentsClient) Stop(ctx context.Context, resourceGroupName string, labAccountName string, labName string, environmentSettingName string, environmentName string) (result EnvironmentsStopFuture, err error)

Stop stops an environment by stopping all resources inside the environment This operation can take a while to complete Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account. labName - the name of the lab. environmentSettingName - the name of the environment Setting. environmentName - the name of the environment.

func (EnvironmentsClient) StopPreparer

func (client EnvironmentsClient) StopPreparer(ctx context.Context, resourceGroupName string, labAccountName string, labName string, environmentSettingName string, environmentName string) (*http.Request, error)

StopPreparer prepares the Stop request.

func (EnvironmentsClient) StopResponder

func (client EnvironmentsClient) StopResponder(resp *http.Response) (result autorest.Response, err error)

StopResponder handles the response to the Stop request. The method always closes the http.Response Body.

func (EnvironmentsClient) StopSender

func (client EnvironmentsClient) StopSender(req *http.Request) (future EnvironmentsStopFuture, err error)

StopSender sends the Stop request. The method will close the http.Response Body if it receives an error.

func (EnvironmentsClient) Update

func (client EnvironmentsClient) Update(ctx context.Context, resourceGroupName string, labAccountName string, labName string, environmentSettingName string, environmentName string, environment EnvironmentFragment) (result Environment, err error)

Update modify properties of environments. Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account. labName - the name of the lab. environmentSettingName - the name of the environment Setting. environmentName - the name of the environment. environment - represents an environment instance

func (EnvironmentsClient) UpdatePreparer

func (client EnvironmentsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, labAccountName string, labName string, environmentSettingName string, environmentName string, environment EnvironmentFragment) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (EnvironmentsClient) UpdateResponder

func (client EnvironmentsClient) UpdateResponder(resp *http.Response) (result Environment, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (EnvironmentsClient) UpdateSender

func (client EnvironmentsClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type EnvironmentsDeleteFuture

type EnvironmentsDeleteFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(EnvironmentsClient) (autorest.Response, error)
}

EnvironmentsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*EnvironmentsDeleteFuture) UnmarshalJSON

func (future *EnvironmentsDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type EnvironmentsResetPasswordFuture

type EnvironmentsResetPasswordFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(EnvironmentsClient) (autorest.Response, error)
}

EnvironmentsResetPasswordFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*EnvironmentsResetPasswordFuture) UnmarshalJSON

func (future *EnvironmentsResetPasswordFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type EnvironmentsStartFuture

type EnvironmentsStartFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(EnvironmentsClient) (autorest.Response, error)
}

EnvironmentsStartFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*EnvironmentsStartFuture) UnmarshalJSON

func (future *EnvironmentsStartFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type EnvironmentsStopFuture

type EnvironmentsStopFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(EnvironmentsClient) (autorest.Response, error)
}

EnvironmentsStopFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*EnvironmentsStopFuture) UnmarshalJSON

func (future *EnvironmentsStopFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type GalleryImage

type GalleryImage struct {
	autorest.Response `json:"-"`
	// GalleryImageProperties - The gallery image properties
	*GalleryImageProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; The identifier of the resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource.
	Type *string `json:"type,omitempty"`
	// Location - The location of the resource.
	Location *string `json:"location,omitempty"`
	// Tags - The tags of the resource.
	Tags map[string]*string `json:"tags"`
}

GalleryImage represents an image from the Azure Marketplace

func (GalleryImage) MarshalJSON

func (gi GalleryImage) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for GalleryImage.

func (*GalleryImage) UnmarshalJSON

func (gi *GalleryImage) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for GalleryImage struct.

type GalleryImageFragment

type GalleryImageFragment struct {
	// GalleryImagePropertiesFragment - The gallery image properties
	*GalleryImagePropertiesFragment `json:"properties,omitempty"`
	// ID - READ-ONLY; The identifier of the resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource.
	Type *string `json:"type,omitempty"`
	// Location - The location of the resource.
	Location *string `json:"location,omitempty"`
	// Tags - The tags of the resource.
	Tags map[string]*string `json:"tags"`
}

GalleryImageFragment represents an image from the Azure Marketplace

func (GalleryImageFragment) MarshalJSON

func (gifVar GalleryImageFragment) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for GalleryImageFragment.

func (*GalleryImageFragment) UnmarshalJSON

func (gifVar *GalleryImageFragment) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for GalleryImageFragment struct.

type GalleryImageProperties

type GalleryImageProperties struct {
	// Author - READ-ONLY; The author of the gallery image.
	Author *string `json:"author,omitempty"`
	// CreatedDate - READ-ONLY; The creation date of the gallery image.
	CreatedDate *date.Time `json:"createdDate,omitempty"`
	// Description - READ-ONLY; The description of the gallery image.
	Description *string `json:"description,omitempty"`
	// ImageReference - READ-ONLY; The image reference of the gallery image.
	ImageReference *GalleryImageReference `json:"imageReference,omitempty"`
	// Icon - READ-ONLY; The icon of the gallery image.
	Icon *string `json:"icon,omitempty"`
	// IsEnabled - Indicates whether this gallery image is enabled.
	IsEnabled *bool `json:"isEnabled,omitempty"`
	// IsOverride - Indicates whether this gallery has been overridden for this lab account
	IsOverride *bool `json:"isOverride,omitempty"`
	// PlanID - READ-ONLY; The third party plan that applies to this image
	PlanID *string `json:"planId,omitempty"`
	// IsPlanAuthorized - Indicates if the plan has been authorized for programmatic deployment.
	IsPlanAuthorized *bool `json:"isPlanAuthorized,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// UniqueIdentifier - The unique immutable identifier of a resource (Guid).
	UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
	// LatestOperationResult - READ-ONLY; The details of the latest operation. ex: status, error
	LatestOperationResult *LatestOperationResult `json:"latestOperationResult,omitempty"`
}

GalleryImageProperties the gallery image properties

func (GalleryImageProperties) MarshalJSON

func (gip GalleryImageProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for GalleryImageProperties.

type GalleryImagePropertiesFragment

type GalleryImagePropertiesFragment struct {
	// IsEnabled - Indicates whether this gallery image is enabled.
	IsEnabled *bool `json:"isEnabled,omitempty"`
	// IsOverride - Indicates whether this gallery has been overridden for this lab account
	IsOverride *bool `json:"isOverride,omitempty"`
	// IsPlanAuthorized - Indicates if the plan has been authorized for programmatic deployment.
	IsPlanAuthorized *bool `json:"isPlanAuthorized,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// UniqueIdentifier - The unique immutable identifier of a resource (Guid).
	UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}

GalleryImagePropertiesFragment the gallery image properties

type GalleryImageReference

type GalleryImageReference struct {
	// Offer - The offer of the gallery image.
	Offer *string `json:"offer,omitempty"`
	// Publisher - The publisher of the gallery image.
	Publisher *string `json:"publisher,omitempty"`
	// Sku - The SKU of the gallery image.
	Sku *string `json:"sku,omitempty"`
	// OsType - The OS type of the gallery image.
	OsType *string `json:"osType,omitempty"`
	// Version - The version of the gallery image.
	Version *string `json:"version,omitempty"`
}

GalleryImageReference the reference information for an Azure Marketplace image.

type GalleryImageReferenceFragment

type GalleryImageReferenceFragment struct {
	// Offer - The offer of the gallery image.
	Offer *string `json:"offer,omitempty"`
	// Publisher - The publisher of the gallery image.
	Publisher *string `json:"publisher,omitempty"`
	// Sku - The SKU of the gallery image.
	Sku *string `json:"sku,omitempty"`
	// OsType - The OS type of the gallery image.
	OsType *string `json:"osType,omitempty"`
	// Version - The version of the gallery image.
	Version *string `json:"version,omitempty"`
}

GalleryImageReferenceFragment the reference information for an Azure Marketplace image.

type GalleryImagesClient

type GalleryImagesClient struct {
	BaseClient
}

GalleryImagesClient is the the Managed Labs Client.

func NewGalleryImagesClient

func NewGalleryImagesClient(subscriptionID string) GalleryImagesClient

NewGalleryImagesClient creates an instance of the GalleryImagesClient client.

func NewGalleryImagesClientWithBaseURI

func NewGalleryImagesClientWithBaseURI(baseURI string, subscriptionID string) GalleryImagesClient

NewGalleryImagesClientWithBaseURI creates an instance of the GalleryImagesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (GalleryImagesClient) CreateOrUpdate

func (client GalleryImagesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, labAccountName string, galleryImageName string, galleryImage GalleryImage) (result GalleryImage, err error)

CreateOrUpdate create or replace an existing Gallery Image. Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account. galleryImageName - the name of the gallery Image. galleryImage - represents an image from the Azure Marketplace

func (GalleryImagesClient) CreateOrUpdatePreparer

func (client GalleryImagesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, labAccountName string, galleryImageName string, galleryImage GalleryImage) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (GalleryImagesClient) CreateOrUpdateResponder

func (client GalleryImagesClient) CreateOrUpdateResponder(resp *http.Response) (result GalleryImage, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (GalleryImagesClient) CreateOrUpdateSender

func (client GalleryImagesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (GalleryImagesClient) Delete

func (client GalleryImagesClient) Delete(ctx context.Context, resourceGroupName string, labAccountName string, galleryImageName string) (result autorest.Response, err error)

Delete delete gallery image. Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account. galleryImageName - the name of the gallery Image.

func (GalleryImagesClient) DeletePreparer

func (client GalleryImagesClient) DeletePreparer(ctx context.Context, resourceGroupName string, labAccountName string, galleryImageName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (GalleryImagesClient) DeleteResponder

func (client GalleryImagesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (GalleryImagesClient) DeleteSender

func (client GalleryImagesClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (GalleryImagesClient) Get

func (client GalleryImagesClient) Get(ctx context.Context, resourceGroupName string, labAccountName string, galleryImageName string, expand string) (result GalleryImage, err error)

Get get gallery image Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account. galleryImageName - the name of the gallery Image. expand - specify the $expand query. Example: 'properties($select=author)'

func (GalleryImagesClient) GetPreparer

func (client GalleryImagesClient) GetPreparer(ctx context.Context, resourceGroupName string, labAccountName string, galleryImageName string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (GalleryImagesClient) GetResponder

func (client GalleryImagesClient) GetResponder(resp *http.Response) (result GalleryImage, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (GalleryImagesClient) GetSender

func (client GalleryImagesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (GalleryImagesClient) List

func (client GalleryImagesClient) List(ctx context.Context, resourceGroupName string, labAccountName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationGalleryImagePage, err error)

List list gallery images in a given lab account. Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account. expand - specify the $expand query. Example: 'properties($select=author)' filter - the filter to apply to the operation. top - the maximum number of resources to return from the operation. orderby - the ordering expression for the results, using OData notation.

func (GalleryImagesClient) ListComplete

func (client GalleryImagesClient) ListComplete(ctx context.Context, resourceGroupName string, labAccountName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationGalleryImageIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (GalleryImagesClient) ListPreparer

func (client GalleryImagesClient) ListPreparer(ctx context.Context, resourceGroupName string, labAccountName string, expand string, filter string, top *int32, orderby string) (*http.Request, error)

ListPreparer prepares the List request.

func (GalleryImagesClient) ListResponder

func (client GalleryImagesClient) ListResponder(resp *http.Response) (result ResponseWithContinuationGalleryImage, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (GalleryImagesClient) ListSender

func (client GalleryImagesClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (GalleryImagesClient) Update

func (client GalleryImagesClient) Update(ctx context.Context, resourceGroupName string, labAccountName string, galleryImageName string, galleryImage GalleryImageFragment) (result GalleryImage, err error)

Update modify properties of gallery images. Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account. galleryImageName - the name of the gallery Image. galleryImage - represents an image from the Azure Marketplace

func (GalleryImagesClient) UpdatePreparer

func (client GalleryImagesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, labAccountName string, galleryImageName string, galleryImage GalleryImageFragment) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (GalleryImagesClient) UpdateResponder

func (client GalleryImagesClient) UpdateResponder(resp *http.Response) (result GalleryImage, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (GalleryImagesClient) UpdateSender

func (client GalleryImagesClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type GetEnvironmentResponse

type GetEnvironmentResponse struct {
	autorest.Response `json:"-"`
	// Environment - READ-ONLY; Details of the environment
	Environment *EnvironmentDetails `json:"environment,omitempty"`
}

GetEnvironmentResponse represents the environments details

func (GetEnvironmentResponse) MarshalJSON

func (ger GetEnvironmentResponse) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for GetEnvironmentResponse.

type GetPersonalPreferencesResponse

type GetPersonalPreferencesResponse struct {
	autorest.Response `json:"-"`
	// ID - Id to be used by the cache orchestrator
	ID *string `json:"id,omitempty"`
	// FavoriteLabResourceIds - Array of favorite lab resource ids
	FavoriteLabResourceIds *[]string `json:"favoriteLabResourceIds,omitempty"`
}

GetPersonalPreferencesResponse represents the PersonalPreferences for the user

type GetRegionalAvailabilityResponse

type GetRegionalAvailabilityResponse struct {
	autorest.Response `json:"-"`
	// RegionalAvailability - Availability information for different size categories per region
	RegionalAvailability *[]RegionalAvailability `json:"regionalAvailability,omitempty"`
}

GetRegionalAvailabilityResponse the response model from the GetRegionalAvailability action

type GlobalUsersClient

type GlobalUsersClient struct {
	BaseClient
}

GlobalUsersClient is the the Managed Labs Client.

func NewGlobalUsersClient

func NewGlobalUsersClient(subscriptionID string) GlobalUsersClient

NewGlobalUsersClient creates an instance of the GlobalUsersClient client.

func NewGlobalUsersClientWithBaseURI

func NewGlobalUsersClientWithBaseURI(baseURI string, subscriptionID string) GlobalUsersClient

NewGlobalUsersClientWithBaseURI creates an instance of the GlobalUsersClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (GlobalUsersClient) GetEnvironment

func (client GlobalUsersClient) GetEnvironment(ctx context.Context, userName string, environmentOperationsPayload EnvironmentOperationsPayload, expand string) (result GetEnvironmentResponse, err error)

GetEnvironment gets the virtual machine details Parameters: userName - the name of the user. environmentOperationsPayload - represents payload for any Environment operations like get, start, stop, connect expand - specify the $expand query. Example: 'properties($expand=environment)'

func (GlobalUsersClient) GetEnvironmentPreparer

func (client GlobalUsersClient) GetEnvironmentPreparer(ctx context.Context, userName string, environmentOperationsPayload EnvironmentOperationsPayload, expand string) (*http.Request, error)

GetEnvironmentPreparer prepares the GetEnvironment request.

func (GlobalUsersClient) GetEnvironmentResponder

func (client GlobalUsersClient) GetEnvironmentResponder(resp *http.Response) (result GetEnvironmentResponse, err error)

GetEnvironmentResponder handles the response to the GetEnvironment request. The method always closes the http.Response Body.

func (GlobalUsersClient) GetEnvironmentSender

func (client GlobalUsersClient) GetEnvironmentSender(req *http.Request) (*http.Response, error)

GetEnvironmentSender sends the GetEnvironment request. The method will close the http.Response Body if it receives an error.

func (GlobalUsersClient) GetOperationBatchStatus

func (client GlobalUsersClient) GetOperationBatchStatus(ctx context.Context, userName string, operationBatchStatusPayload OperationBatchStatusPayload) (result OperationBatchStatusResponse, err error)

GetOperationBatchStatus get batch operation status Parameters: userName - the name of the user. operationBatchStatusPayload - payload to get the status of an operation

func (GlobalUsersClient) GetOperationBatchStatusPreparer

func (client GlobalUsersClient) GetOperationBatchStatusPreparer(ctx context.Context, userName string, operationBatchStatusPayload OperationBatchStatusPayload) (*http.Request, error)

GetOperationBatchStatusPreparer prepares the GetOperationBatchStatus request.

func (GlobalUsersClient) GetOperationBatchStatusResponder

func (client GlobalUsersClient) GetOperationBatchStatusResponder(resp *http.Response) (result OperationBatchStatusResponse, err error)

GetOperationBatchStatusResponder handles the response to the GetOperationBatchStatus request. The method always closes the http.Response Body.

func (GlobalUsersClient) GetOperationBatchStatusSender

func (client GlobalUsersClient) GetOperationBatchStatusSender(req *http.Request) (*http.Response, error)

GetOperationBatchStatusSender sends the GetOperationBatchStatus request. The method will close the http.Response Body if it receives an error.

func (GlobalUsersClient) GetOperationStatus

func (client GlobalUsersClient) GetOperationStatus(ctx context.Context, userName string, operationStatusPayload OperationStatusPayload) (result OperationStatusResponse, err error)

GetOperationStatus gets the status of long running operation Parameters: userName - the name of the user. operationStatusPayload - payload to get the status of an operation

func (GlobalUsersClient) GetOperationStatusPreparer

func (client GlobalUsersClient) GetOperationStatusPreparer(ctx context.Context, userName string, operationStatusPayload OperationStatusPayload) (*http.Request, error)

GetOperationStatusPreparer prepares the GetOperationStatus request.

func (GlobalUsersClient) GetOperationStatusResponder

func (client GlobalUsersClient) GetOperationStatusResponder(resp *http.Response) (result OperationStatusResponse, err error)

GetOperationStatusResponder handles the response to the GetOperationStatus request. The method always closes the http.Response Body.

func (GlobalUsersClient) GetOperationStatusSender

func (client GlobalUsersClient) GetOperationStatusSender(req *http.Request) (*http.Response, error)

GetOperationStatusSender sends the GetOperationStatus request. The method will close the http.Response Body if it receives an error.

func (GlobalUsersClient) GetPersonalPreferences

func (client GlobalUsersClient) GetPersonalPreferences(ctx context.Context, userName string, personalPreferencesOperationsPayload PersonalPreferencesOperationsPayload) (result GetPersonalPreferencesResponse, err error)

GetPersonalPreferences get personal preferences for a user Parameters: userName - the name of the user. personalPreferencesOperationsPayload - represents payload for any Environment operations like get, start, stop, connect

func (GlobalUsersClient) GetPersonalPreferencesPreparer

func (client GlobalUsersClient) GetPersonalPreferencesPreparer(ctx context.Context, userName string, personalPreferencesOperationsPayload PersonalPreferencesOperationsPayload) (*http.Request, error)

GetPersonalPreferencesPreparer prepares the GetPersonalPreferences request.

func (GlobalUsersClient) GetPersonalPreferencesResponder

func (client GlobalUsersClient) GetPersonalPreferencesResponder(resp *http.Response) (result GetPersonalPreferencesResponse, err error)

GetPersonalPreferencesResponder handles the response to the GetPersonalPreferences request. The method always closes the http.Response Body.

func (GlobalUsersClient) GetPersonalPreferencesSender

func (client GlobalUsersClient) GetPersonalPreferencesSender(req *http.Request) (*http.Response, error)

GetPersonalPreferencesSender sends the GetPersonalPreferences request. The method will close the http.Response Body if it receives an error.

func (GlobalUsersClient) ListEnvironments

func (client GlobalUsersClient) ListEnvironments(ctx context.Context, userName string, listEnvironmentsPayload ListEnvironmentsPayload) (result ListEnvironmentsResponse, err error)

ListEnvironments list Environments for the user Parameters: userName - the name of the user. listEnvironmentsPayload - represents the payload to list environments owned by a user

func (GlobalUsersClient) ListEnvironmentsPreparer

func (client GlobalUsersClient) ListEnvironmentsPreparer(ctx context.Context, userName string, listEnvironmentsPayload ListEnvironmentsPayload) (*http.Request, error)

ListEnvironmentsPreparer prepares the ListEnvironments request.

func (GlobalUsersClient) ListEnvironmentsResponder

func (client GlobalUsersClient) ListEnvironmentsResponder(resp *http.Response) (result ListEnvironmentsResponse, err error)

ListEnvironmentsResponder handles the response to the ListEnvironments request. The method always closes the http.Response Body.

func (GlobalUsersClient) ListEnvironmentsSender

func (client GlobalUsersClient) ListEnvironmentsSender(req *http.Request) (*http.Response, error)

ListEnvironmentsSender sends the ListEnvironments request. The method will close the http.Response Body if it receives an error.

func (GlobalUsersClient) ListLabs

func (client GlobalUsersClient) ListLabs(ctx context.Context, userName string) (result ListLabsResponse, err error)

ListLabs list labs for the user. Parameters: userName - the name of the user.

func (GlobalUsersClient) ListLabsPreparer

func (client GlobalUsersClient) ListLabsPreparer(ctx context.Context, userName string) (*http.Request, error)

ListLabsPreparer prepares the ListLabs request.

func (GlobalUsersClient) ListLabsResponder

func (client GlobalUsersClient) ListLabsResponder(resp *http.Response) (result ListLabsResponse, err error)

ListLabsResponder handles the response to the ListLabs request. The method always closes the http.Response Body.

func (GlobalUsersClient) ListLabsSender

func (client GlobalUsersClient) ListLabsSender(req *http.Request) (*http.Response, error)

ListLabsSender sends the ListLabs request. The method will close the http.Response Body if it receives an error.

func (GlobalUsersClient) Register

func (client GlobalUsersClient) Register(ctx context.Context, userName string, registerPayload RegisterPayload) (result autorest.Response, err error)

Register register a user to a managed lab Parameters: userName - the name of the user. registerPayload - represents payload for Register action.

func (GlobalUsersClient) RegisterPreparer

func (client GlobalUsersClient) RegisterPreparer(ctx context.Context, userName string, registerPayload RegisterPayload) (*http.Request, error)

RegisterPreparer prepares the Register request.

func (GlobalUsersClient) RegisterResponder

func (client GlobalUsersClient) RegisterResponder(resp *http.Response) (result autorest.Response, err error)

RegisterResponder handles the response to the Register request. The method always closes the http.Response Body.

func (GlobalUsersClient) RegisterSender

func (client GlobalUsersClient) RegisterSender(req *http.Request) (*http.Response, error)

RegisterSender sends the Register request. The method will close the http.Response Body if it receives an error.

func (GlobalUsersClient) ResetPassword

func (client GlobalUsersClient) ResetPassword(ctx context.Context, userName string, resetPasswordPayload ResetPasswordPayload) (result GlobalUsersResetPasswordFuture, err error)

ResetPassword resets the user password on an environment This operation can take a while to complete Parameters: userName - the name of the user. resetPasswordPayload - represents the payload for resetting passwords.

func (GlobalUsersClient) ResetPasswordPreparer

func (client GlobalUsersClient) ResetPasswordPreparer(ctx context.Context, userName string, resetPasswordPayload ResetPasswordPayload) (*http.Request, error)

ResetPasswordPreparer prepares the ResetPassword request.

func (GlobalUsersClient) ResetPasswordResponder

func (client GlobalUsersClient) ResetPasswordResponder(resp *http.Response) (result autorest.Response, err error)

ResetPasswordResponder handles the response to the ResetPassword request. The method always closes the http.Response Body.

func (GlobalUsersClient) ResetPasswordSender

func (client GlobalUsersClient) ResetPasswordSender(req *http.Request) (future GlobalUsersResetPasswordFuture, err error)

ResetPasswordSender sends the ResetPassword request. The method will close the http.Response Body if it receives an error.

func (GlobalUsersClient) StartEnvironment

func (client GlobalUsersClient) StartEnvironment(ctx context.Context, userName string, environmentOperationsPayload EnvironmentOperationsPayload) (result GlobalUsersStartEnvironmentFuture, err error)

StartEnvironment starts an environment by starting all resources inside the environment. This operation can take a while to complete Parameters: userName - the name of the user. environmentOperationsPayload - represents payload for any Environment operations like get, start, stop, connect

func (GlobalUsersClient) StartEnvironmentPreparer

func (client GlobalUsersClient) StartEnvironmentPreparer(ctx context.Context, userName string, environmentOperationsPayload EnvironmentOperationsPayload) (*http.Request, error)

StartEnvironmentPreparer prepares the StartEnvironment request.

func (GlobalUsersClient) StartEnvironmentResponder

func (client GlobalUsersClient) StartEnvironmentResponder(resp *http.Response) (result autorest.Response, err error)

StartEnvironmentResponder handles the response to the StartEnvironment request. The method always closes the http.Response Body.

func (GlobalUsersClient) StartEnvironmentSender

func (client GlobalUsersClient) StartEnvironmentSender(req *http.Request) (future GlobalUsersStartEnvironmentFuture, err error)

StartEnvironmentSender sends the StartEnvironment request. The method will close the http.Response Body if it receives an error.

func (GlobalUsersClient) StopEnvironment

func (client GlobalUsersClient) StopEnvironment(ctx context.Context, userName string, environmentOperationsPayload EnvironmentOperationsPayload) (result GlobalUsersStopEnvironmentFuture, err error)

StopEnvironment stops an environment by stopping all resources inside the environment This operation can take a while to complete Parameters: userName - the name of the user. environmentOperationsPayload - represents payload for any Environment operations like get, start, stop, connect

func (GlobalUsersClient) StopEnvironmentPreparer

func (client GlobalUsersClient) StopEnvironmentPreparer(ctx context.Context, userName string, environmentOperationsPayload EnvironmentOperationsPayload) (*http.Request, error)

StopEnvironmentPreparer prepares the StopEnvironment request.

func (GlobalUsersClient) StopEnvironmentResponder

func (client GlobalUsersClient) StopEnvironmentResponder(resp *http.Response) (result autorest.Response, err error)

StopEnvironmentResponder handles the response to the StopEnvironment request. The method always closes the http.Response Body.

func (GlobalUsersClient) StopEnvironmentSender

func (client GlobalUsersClient) StopEnvironmentSender(req *http.Request) (future GlobalUsersStopEnvironmentFuture, err error)

StopEnvironmentSender sends the StopEnvironment request. The method will close the http.Response Body if it receives an error.

type GlobalUsersResetPasswordFuture

type GlobalUsersResetPasswordFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(GlobalUsersClient) (autorest.Response, error)
}

GlobalUsersResetPasswordFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*GlobalUsersResetPasswordFuture) UnmarshalJSON

func (future *GlobalUsersResetPasswordFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type GlobalUsersStartEnvironmentFuture

type GlobalUsersStartEnvironmentFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(GlobalUsersClient) (autorest.Response, error)
}

GlobalUsersStartEnvironmentFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*GlobalUsersStartEnvironmentFuture) UnmarshalJSON

func (future *GlobalUsersStartEnvironmentFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type GlobalUsersStopEnvironmentFuture

type GlobalUsersStopEnvironmentFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(GlobalUsersClient) (autorest.Response, error)
}

GlobalUsersStopEnvironmentFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*GlobalUsersStopEnvironmentFuture) UnmarshalJSON

func (future *GlobalUsersStopEnvironmentFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type Lab

type Lab struct {
	autorest.Response `json:"-"`
	// LabProperties - The properties of the resource.
	*LabProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; The identifier of the resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource.
	Type *string `json:"type,omitempty"`
	// Location - The location of the resource.
	Location *string `json:"location,omitempty"`
	// Tags - The tags of the resource.
	Tags map[string]*string `json:"tags"`
}

Lab represents a lab.

func (Lab) MarshalJSON

func (l Lab) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Lab.

func (*Lab) UnmarshalJSON

func (l *Lab) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Lab struct.

type LabAccount

type LabAccount struct {
	autorest.Response `json:"-"`
	// LabAccountProperties - The properties of the resource.
	*LabAccountProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; The identifier of the resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource.
	Type *string `json:"type,omitempty"`
	// Location - The location of the resource.
	Location *string `json:"location,omitempty"`
	// Tags - The tags of the resource.
	Tags map[string]*string `json:"tags"`
}

LabAccount represents a lab account.

func (LabAccount) MarshalJSON

func (la LabAccount) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LabAccount.

func (*LabAccount) UnmarshalJSON

func (la *LabAccount) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for LabAccount struct.

type LabAccountFragment

type LabAccountFragment struct {
	// LabAccountPropertiesFragment - The properties of the resource.
	*LabAccountPropertiesFragment `json:"properties,omitempty"`
	// ID - READ-ONLY; The identifier of the resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource.
	Type *string `json:"type,omitempty"`
	// Location - The location of the resource.
	Location *string `json:"location,omitempty"`
	// Tags - The tags of the resource.
	Tags map[string]*string `json:"tags"`
}

LabAccountFragment represents a lab account.

func (LabAccountFragment) MarshalJSON

func (laf LabAccountFragment) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LabAccountFragment.

func (*LabAccountFragment) UnmarshalJSON

func (laf *LabAccountFragment) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for LabAccountFragment struct.

type LabAccountProperties

type LabAccountProperties struct {
	// SizeConfiguration - READ-ONLY; Represents the size configuration under the lab account
	SizeConfiguration *SizeConfigurationProperties `json:"sizeConfiguration,omitempty"`
	// EnabledRegionSelection - Represents if region selection is enabled
	EnabledRegionSelection *bool `json:"enabledRegionSelection,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// UniqueIdentifier - The unique immutable identifier of a resource (Guid).
	UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
	// LatestOperationResult - READ-ONLY; The details of the latest operation. ex: status, error
	LatestOperationResult *LatestOperationResult `json:"latestOperationResult,omitempty"`
}

LabAccountProperties properties of a Lab Account.

func (LabAccountProperties) MarshalJSON

func (lap LabAccountProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LabAccountProperties.

type LabAccountPropertiesFragment

type LabAccountPropertiesFragment struct {
	// EnabledRegionSelection - Represents if region selection is enabled
	EnabledRegionSelection *bool `json:"enabledRegionSelection,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// UniqueIdentifier - The unique immutable identifier of a resource (Guid).
	UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}

LabAccountPropertiesFragment properties of a Lab Account.

type LabAccountsClient

type LabAccountsClient struct {
	BaseClient
}

LabAccountsClient is the the Managed Labs Client.

func NewLabAccountsClient

func NewLabAccountsClient(subscriptionID string) LabAccountsClient

NewLabAccountsClient creates an instance of the LabAccountsClient client.

func NewLabAccountsClientWithBaseURI

func NewLabAccountsClientWithBaseURI(baseURI string, subscriptionID string) LabAccountsClient

NewLabAccountsClientWithBaseURI creates an instance of the LabAccountsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (LabAccountsClient) CreateLab

func (client LabAccountsClient) CreateLab(ctx context.Context, resourceGroupName string, labAccountName string, createLabProperties CreateLabProperties) (result autorest.Response, err error)

CreateLab create a lab in a lab account. Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account. createLabProperties - properties for creating a managed lab and a default environment setting

func (LabAccountsClient) CreateLabPreparer

func (client LabAccountsClient) CreateLabPreparer(ctx context.Context, resourceGroupName string, labAccountName string, createLabProperties CreateLabProperties) (*http.Request, error)

CreateLabPreparer prepares the CreateLab request.

func (LabAccountsClient) CreateLabResponder

func (client LabAccountsClient) CreateLabResponder(resp *http.Response) (result autorest.Response, err error)

CreateLabResponder handles the response to the CreateLab request. The method always closes the http.Response Body.

func (LabAccountsClient) CreateLabSender

func (client LabAccountsClient) CreateLabSender(req *http.Request) (*http.Response, error)

CreateLabSender sends the CreateLab request. The method will close the http.Response Body if it receives an error.

func (LabAccountsClient) CreateOrUpdate

func (client LabAccountsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, labAccountName string, labAccount LabAccount) (result LabAccount, err error)

CreateOrUpdate create or replace an existing Lab Account. Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account. labAccount - represents a lab account.

func (LabAccountsClient) CreateOrUpdatePreparer

func (client LabAccountsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, labAccountName string, labAccount LabAccount) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (LabAccountsClient) CreateOrUpdateResponder

func (client LabAccountsClient) CreateOrUpdateResponder(resp *http.Response) (result LabAccount, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (LabAccountsClient) CreateOrUpdateSender

func (client LabAccountsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (LabAccountsClient) Delete

func (client LabAccountsClient) Delete(ctx context.Context, resourceGroupName string, labAccountName string) (result LabAccountsDeleteFuture, err error)

Delete delete lab account. This operation can take a while to complete Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account.

func (LabAccountsClient) DeletePreparer

func (client LabAccountsClient) DeletePreparer(ctx context.Context, resourceGroupName string, labAccountName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (LabAccountsClient) DeleteResponder

func (client LabAccountsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (LabAccountsClient) DeleteSender

func (client LabAccountsClient) DeleteSender(req *http.Request) (future LabAccountsDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (LabAccountsClient) Get

func (client LabAccountsClient) Get(ctx context.Context, resourceGroupName string, labAccountName string, expand string) (result LabAccount, err error)

Get get lab account Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account. expand - specify the $expand query. Example: 'properties($expand=sizeConfiguration)'

func (LabAccountsClient) GetPreparer

func (client LabAccountsClient) GetPreparer(ctx context.Context, resourceGroupName string, labAccountName string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (LabAccountsClient) GetRegionalAvailability

func (client LabAccountsClient) GetRegionalAvailability(ctx context.Context, resourceGroupName string, labAccountName string) (result GetRegionalAvailabilityResponse, err error)

GetRegionalAvailability get regional availability information for each size category configured under a lab account Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account.

func (LabAccountsClient) GetRegionalAvailabilityPreparer

func (client LabAccountsClient) GetRegionalAvailabilityPreparer(ctx context.Context, resourceGroupName string, labAccountName string) (*http.Request, error)

GetRegionalAvailabilityPreparer prepares the GetRegionalAvailability request.

func (LabAccountsClient) GetRegionalAvailabilityResponder

func (client LabAccountsClient) GetRegionalAvailabilityResponder(resp *http.Response) (result GetRegionalAvailabilityResponse, err error)

GetRegionalAvailabilityResponder handles the response to the GetRegionalAvailability request. The method always closes the http.Response Body.

func (LabAccountsClient) GetRegionalAvailabilitySender

func (client LabAccountsClient) GetRegionalAvailabilitySender(req *http.Request) (*http.Response, error)

GetRegionalAvailabilitySender sends the GetRegionalAvailability request. The method will close the http.Response Body if it receives an error.

func (LabAccountsClient) GetResponder

func (client LabAccountsClient) GetResponder(resp *http.Response) (result LabAccount, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (LabAccountsClient) GetSender

func (client LabAccountsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (LabAccountsClient) ListByResourceGroup

func (client LabAccountsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationLabAccountPage, err error)

ListByResourceGroup list lab accounts in a resource group. Parameters: resourceGroupName - the name of the resource group. expand - specify the $expand query. Example: 'properties($expand=sizeConfiguration)' filter - the filter to apply to the operation. top - the maximum number of resources to return from the operation. orderby - the ordering expression for the results, using OData notation.

func (LabAccountsClient) ListByResourceGroupComplete

func (client LabAccountsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationLabAccountIterator, err error)

ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (LabAccountsClient) ListByResourceGroupPreparer

func (client LabAccountsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string, expand string, filter string, top *int32, orderby string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (LabAccountsClient) ListByResourceGroupResponder

func (client LabAccountsClient) ListByResourceGroupResponder(resp *http.Response) (result ResponseWithContinuationLabAccount, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (LabAccountsClient) ListByResourceGroupSender

func (client LabAccountsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (LabAccountsClient) ListBySubscription

func (client LabAccountsClient) ListBySubscription(ctx context.Context, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationLabAccountPage, err error)

ListBySubscription list lab accounts in a subscription. Parameters: expand - specify the $expand query. Example: 'properties($expand=sizeConfiguration)' filter - the filter to apply to the operation. top - the maximum number of resources to return from the operation. orderby - the ordering expression for the results, using OData notation.

func (LabAccountsClient) ListBySubscriptionComplete

func (client LabAccountsClient) ListBySubscriptionComplete(ctx context.Context, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationLabAccountIterator, err error)

ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required.

func (LabAccountsClient) ListBySubscriptionPreparer

func (client LabAccountsClient) ListBySubscriptionPreparer(ctx context.Context, expand string, filter string, top *int32, orderby string) (*http.Request, error)

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (LabAccountsClient) ListBySubscriptionResponder

func (client LabAccountsClient) ListBySubscriptionResponder(resp *http.Response) (result ResponseWithContinuationLabAccount, err error)

ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.

func (LabAccountsClient) ListBySubscriptionSender

func (client LabAccountsClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)

ListBySubscriptionSender sends the ListBySubscription request. The method will close the http.Response Body if it receives an error.

func (LabAccountsClient) Update

func (client LabAccountsClient) Update(ctx context.Context, resourceGroupName string, labAccountName string, labAccount LabAccountFragment) (result LabAccount, err error)

Update modify properties of lab accounts. Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account. labAccount - represents a lab account.

func (LabAccountsClient) UpdatePreparer

func (client LabAccountsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, labAccountName string, labAccount LabAccountFragment) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (LabAccountsClient) UpdateResponder

func (client LabAccountsClient) UpdateResponder(resp *http.Response) (result LabAccount, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (LabAccountsClient) UpdateSender

func (client LabAccountsClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type LabAccountsDeleteFuture

type LabAccountsDeleteFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(LabAccountsClient) (autorest.Response, error)
}

LabAccountsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*LabAccountsDeleteFuture) UnmarshalJSON

func (future *LabAccountsDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type LabCreationParameters

type LabCreationParameters struct {
	// MaxUsersInLab - Maximum number of users allowed in the lab.
	MaxUsersInLab *int32 `json:"maxUsersInLab,omitempty"`
}

LabCreationParameters settings related to creating a lab

type LabDetails

type LabDetails struct {
	// Name - Name of the lab
	Name *string `json:"name,omitempty"`
	// ProvisioningState - The provisioning state of the lab.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// ID - The Id of the lab.
	ID *string `json:"id,omitempty"`
	// UsageQuota - READ-ONLY; The maximum duration a user can use a VM in this lab.
	UsageQuota *string `json:"usageQuota,omitempty"`
}

LabDetails this represents the details about a lab that the User is in, and its state.

func (LabDetails) MarshalJSON

func (ld LabDetails) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LabDetails.

type LabFragment

type LabFragment struct {
	// LabPropertiesFragment - The properties of the resource.
	*LabPropertiesFragment `json:"properties,omitempty"`
	// ID - READ-ONLY; The identifier of the resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource.
	Type *string `json:"type,omitempty"`
	// Location - The location of the resource.
	Location *string `json:"location,omitempty"`
	// Tags - The tags of the resource.
	Tags map[string]*string `json:"tags"`
}

LabFragment represents a lab.

func (LabFragment) MarshalJSON

func (lf LabFragment) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LabFragment.

func (*LabFragment) UnmarshalJSON

func (lf *LabFragment) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for LabFragment struct.

type LabProperties

type LabProperties struct {
	// MaxUsersInLab - Maximum number of users allowed in the lab.
	MaxUsersInLab *int32 `json:"maxUsersInLab,omitempty"`
	// UserQuota - READ-ONLY; Maximum value MaxUsersInLab can be set to, as specified by the service
	UserQuota *int32 `json:"userQuota,omitempty"`
	// InvitationCode - READ-ONLY; Invitation code that users can use to join a lab.
	InvitationCode *string `json:"invitationCode,omitempty"`
	// CreatedByObjectID - READ-ONLY; Object id of the user that created the lab.
	CreatedByObjectID *string `json:"createdByObjectId,omitempty"`
	// UsageQuota - Maximum duration a user can use an environment for in the lab.
	UsageQuota *string `json:"usageQuota,omitempty"`
	// UserAccessMode - Lab user access mode (open to all vs. restricted to those listed on the lab). Possible values include: 'Restricted', 'Open'
	UserAccessMode LabUserAccessMode `json:"userAccessMode,omitempty"`
	// CreatedByUserPrincipalName - READ-ONLY; Lab creator name
	CreatedByUserPrincipalName *string `json:"createdByUserPrincipalName,omitempty"`
	// CreatedDate - READ-ONLY; Creation date for the lab
	CreatedDate *date.Time `json:"createdDate,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// UniqueIdentifier - The unique immutable identifier of a resource (Guid).
	UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
	// LatestOperationResult - READ-ONLY; The details of the latest operation. ex: status, error
	LatestOperationResult *LatestOperationResult `json:"latestOperationResult,omitempty"`
}

LabProperties properties of a Lab.

func (LabProperties) MarshalJSON

func (lp LabProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LabProperties.

type LabPropertiesFragment

type LabPropertiesFragment struct {
	// MaxUsersInLab - Maximum number of users allowed in the lab.
	MaxUsersInLab *int32 `json:"maxUsersInLab,omitempty"`
	// UsageQuota - Maximum duration a user can use an environment for in the lab.
	UsageQuota *string `json:"usageQuota,omitempty"`
	// UserAccessMode - Lab user access mode (open to all vs. restricted to those listed on the lab). Possible values include: 'Restricted', 'Open'
	UserAccessMode LabUserAccessMode `json:"userAccessMode,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// UniqueIdentifier - The unique immutable identifier of a resource (Guid).
	UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}

LabPropertiesFragment properties of a Lab.

type LabUserAccessMode

type LabUserAccessMode string

LabUserAccessMode enumerates the values for lab user access mode.

const (
	// Open Any user can register with the lab and access its VMs.
	Open LabUserAccessMode = "Open"
	// Restricted Only users registered with the lab can access VMs.
	Restricted LabUserAccessMode = "Restricted"
)

func PossibleLabUserAccessModeValues

func PossibleLabUserAccessModeValues() []LabUserAccessMode

PossibleLabUserAccessModeValues returns an array of possible values for the LabUserAccessMode const type.

type LabsClient

type LabsClient struct {
	BaseClient
}

LabsClient is the the Managed Labs Client.

func NewLabsClient

func NewLabsClient(subscriptionID string) LabsClient

NewLabsClient creates an instance of the LabsClient client.

func NewLabsClientWithBaseURI

func NewLabsClientWithBaseURI(baseURI string, subscriptionID string) LabsClient

NewLabsClientWithBaseURI creates an instance of the LabsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (LabsClient) AddUsers

func (client LabsClient) AddUsers(ctx context.Context, resourceGroupName string, labAccountName string, labName string, addUsersPayload AddUsersPayload) (result autorest.Response, err error)

AddUsers add users to a lab Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account. labName - the name of the lab. addUsersPayload - payload for Add Users operation on a Lab.

func (LabsClient) AddUsersPreparer

func (client LabsClient) AddUsersPreparer(ctx context.Context, resourceGroupName string, labAccountName string, labName string, addUsersPayload AddUsersPayload) (*http.Request, error)

AddUsersPreparer prepares the AddUsers request.

func (LabsClient) AddUsersResponder

func (client LabsClient) AddUsersResponder(resp *http.Response) (result autorest.Response, err error)

AddUsersResponder handles the response to the AddUsers request. The method always closes the http.Response Body.

func (LabsClient) AddUsersSender

func (client LabsClient) AddUsersSender(req *http.Request) (*http.Response, error)

AddUsersSender sends the AddUsers request. The method will close the http.Response Body if it receives an error.

func (LabsClient) CreateOrUpdate

func (client LabsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, labAccountName string, labName string, lab Lab) (result Lab, err error)

CreateOrUpdate create or replace an existing Lab. Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account. labName - the name of the lab. lab - represents a lab.

func (LabsClient) CreateOrUpdatePreparer

func (client LabsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, labAccountName string, labName string, lab Lab) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (LabsClient) CreateOrUpdateResponder

func (client LabsClient) CreateOrUpdateResponder(resp *http.Response) (result Lab, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (LabsClient) CreateOrUpdateSender

func (client LabsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (LabsClient) Delete

func (client LabsClient) Delete(ctx context.Context, resourceGroupName string, labAccountName string, labName string) (result LabsDeleteFuture, err error)

Delete delete lab. This operation can take a while to complete Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account. labName - the name of the lab.

func (LabsClient) DeletePreparer

func (client LabsClient) DeletePreparer(ctx context.Context, resourceGroupName string, labAccountName string, labName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (LabsClient) DeleteResponder

func (client LabsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (LabsClient) DeleteSender

func (client LabsClient) DeleteSender(req *http.Request) (future LabsDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (LabsClient) Get

func (client LabsClient) Get(ctx context.Context, resourceGroupName string, labAccountName string, labName string, expand string) (result Lab, err error)

Get get lab Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account. labName - the name of the lab. expand - specify the $expand query. Example: 'properties($select=maxUsersInLab)'

func (LabsClient) GetPreparer

func (client LabsClient) GetPreparer(ctx context.Context, resourceGroupName string, labAccountName string, labName string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (LabsClient) GetResponder

func (client LabsClient) GetResponder(resp *http.Response) (result Lab, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (LabsClient) GetSender

func (client LabsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (LabsClient) List

func (client LabsClient) List(ctx context.Context, resourceGroupName string, labAccountName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationLabPage, err error)

List list labs in a given lab account. Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account. expand - specify the $expand query. Example: 'properties($select=maxUsersInLab)' filter - the filter to apply to the operation. top - the maximum number of resources to return from the operation. orderby - the ordering expression for the results, using OData notation.

func (LabsClient) ListComplete

func (client LabsClient) ListComplete(ctx context.Context, resourceGroupName string, labAccountName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationLabIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (LabsClient) ListPreparer

func (client LabsClient) ListPreparer(ctx context.Context, resourceGroupName string, labAccountName string, expand string, filter string, top *int32, orderby string) (*http.Request, error)

ListPreparer prepares the List request.

func (LabsClient) ListResponder

func (client LabsClient) ListResponder(resp *http.Response) (result ResponseWithContinuationLab, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (LabsClient) ListSender

func (client LabsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (LabsClient) Register

func (client LabsClient) Register(ctx context.Context, resourceGroupName string, labAccountName string, labName string) (result autorest.Response, err error)

Register register to managed lab. Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account. labName - the name of the lab.

func (LabsClient) RegisterPreparer

func (client LabsClient) RegisterPreparer(ctx context.Context, resourceGroupName string, labAccountName string, labName string) (*http.Request, error)

RegisterPreparer prepares the Register request.

func (LabsClient) RegisterResponder

func (client LabsClient) RegisterResponder(resp *http.Response) (result autorest.Response, err error)

RegisterResponder handles the response to the Register request. The method always closes the http.Response Body.

func (LabsClient) RegisterSender

func (client LabsClient) RegisterSender(req *http.Request) (*http.Response, error)

RegisterSender sends the Register request. The method will close the http.Response Body if it receives an error.

func (LabsClient) Update

func (client LabsClient) Update(ctx context.Context, resourceGroupName string, labAccountName string, labName string, lab LabFragment) (result Lab, err error)

Update modify properties of labs. Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account. labName - the name of the lab. lab - represents a lab.

func (LabsClient) UpdatePreparer

func (client LabsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, labAccountName string, labName string, lab LabFragment) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (LabsClient) UpdateResponder

func (client LabsClient) UpdateResponder(resp *http.Response) (result Lab, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (LabsClient) UpdateSender

func (client LabsClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type LabsDeleteFuture

type LabsDeleteFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(LabsClient) (autorest.Response, error)
}

LabsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*LabsDeleteFuture) UnmarshalJSON

func (future *LabsDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type LatestOperationResult

type LatestOperationResult struct {
	// Status - READ-ONLY; The current status of the operation.
	Status *string `json:"status,omitempty"`
	// ErrorCode - READ-ONLY; Error code on failure.
	ErrorCode *string `json:"errorCode,omitempty"`
	// ErrorMessage - READ-ONLY; The error message.
	ErrorMessage *string `json:"errorMessage,omitempty"`
	// RequestURI - READ-ONLY; Request URI of the operation.
	RequestURI *string `json:"requestUri,omitempty"`
	// HTTPMethod - READ-ONLY; The HttpMethod - PUT/POST/DELETE for the operation.
	HTTPMethod *string `json:"httpMethod,omitempty"`
	// OperationURL - READ-ONLY; The URL to use to check long-running operation status
	OperationURL *string `json:"operationUrl,omitempty"`
}

LatestOperationResult details of the status of an operation.

func (LatestOperationResult) MarshalJSON

func (lor LatestOperationResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LatestOperationResult.

type ListEnvironmentsPayload

type ListEnvironmentsPayload struct {
	// LabID - The resource Id of the lab
	LabID *string `json:"labId,omitempty"`
}

ListEnvironmentsPayload represents the payload to list environments owned by a user

type ListEnvironmentsResponse

type ListEnvironmentsResponse struct {
	autorest.Response `json:"-"`
	// Environments - List of all the environments
	Environments *[]EnvironmentDetails `json:"environments,omitempty"`
}

ListEnvironmentsResponse represents the list of environments owned by a user

type ListLabsResponse

type ListLabsResponse struct {
	autorest.Response `json:"-"`
	// Labs - List of all the labs
	Labs *[]LabDetails `json:"labs,omitempty"`
}

ListLabsResponse lists the labs owned by a user

type ManagedLabVMSize

type ManagedLabVMSize string

ManagedLabVMSize enumerates the values for managed lab vm size.

const (
	// Basic The base VM size
	Basic ManagedLabVMSize = "Basic"
	// Performance The most performant VM size
	Performance ManagedLabVMSize = "Performance"
	// Standard The standard or default VM size
	Standard ManagedLabVMSize = "Standard"
)

func PossibleManagedLabVMSizeValues

func PossibleManagedLabVMSizeValues() []ManagedLabVMSize

PossibleManagedLabVMSizeValues returns an array of possible values for the ManagedLabVMSize const type.

type NetworkInterface

type NetworkInterface struct {
	// PrivateIPAddress - READ-ONLY; PrivateIp address of the Compute VM
	PrivateIPAddress *string `json:"privateIpAddress,omitempty"`
	// SSHAuthority - READ-ONLY; Connection information for Linux
	SSHAuthority *string `json:"sshAuthority,omitempty"`
	// RdpAuthority - READ-ONLY; Connection information for Windows
	RdpAuthority *string `json:"rdpAuthority,omitempty"`
	// Username - READ-ONLY; Username of the VM
	Username *string `json:"username,omitempty"`
}

NetworkInterface network details of the environment

func (NetworkInterface) MarshalJSON

func (ni NetworkInterface) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for NetworkInterface.

type OperationBatchStatusPayload

type OperationBatchStatusPayload struct {
	// Urls - The operation url of long running operation
	Urls *[]string `json:"urls,omitempty"`
}

OperationBatchStatusPayload payload to get the status of an operation

type OperationBatchStatusResponse

type OperationBatchStatusResponse struct {
	autorest.Response `json:"-"`
	// Items - READ-ONLY; Gets a collection of items that contain the operation url and status.
	Items *[]OperationBatchStatusResponseItem `json:"items,omitempty"`
}

OperationBatchStatusResponse status Details of the long running operation for an environment

func (OperationBatchStatusResponse) MarshalJSON

func (obsr OperationBatchStatusResponse) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OperationBatchStatusResponse.

type OperationBatchStatusResponseItem

type OperationBatchStatusResponseItem struct {
	// OperationURL - READ-ONLY; status of the long running operation for an environment
	OperationURL *string `json:"operationUrl,omitempty"`
	// Status - READ-ONLY; status of the long running operation for an environment
	Status *string `json:"status,omitempty"`
}

OperationBatchStatusResponseItem represents the status of an operation that used the batch API.

func (OperationBatchStatusResponseItem) MarshalJSON

func (obsri OperationBatchStatusResponseItem) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OperationBatchStatusResponseItem.

type OperationError

type OperationError struct {
	// Code - The error code of the operation error.
	Code *string `json:"code,omitempty"`
	// Message - The error message of the operation error.
	Message *string `json:"message,omitempty"`
}

OperationError error details for the operation in case of a failure.

type OperationMetadata

type OperationMetadata struct {
	// Name - Operation name: {provider}/{resource}/{operation}
	Name *string `json:"name,omitempty"`
	// Display - The object that describes the operations
	Display *OperationMetadataDisplay `json:"display,omitempty"`
}

OperationMetadata the REST API operation supported by ManagedLab ResourceProvider.

type OperationMetadataDisplay

type OperationMetadataDisplay struct {
	// Provider - Friendly name of the resource provider
	Provider *string `json:"provider,omitempty"`
	// Resource - Resource type on which the operation is performed.
	Resource *string `json:"resource,omitempty"`
	// Operation - Operation type: read, write, delete, listKeys/action, etc.
	Operation *string `json:"operation,omitempty"`
	// Description - Friendly name of the operation
	Description *string `json:"description,omitempty"`
}

OperationMetadataDisplay the object that describes the operations

type OperationResult

type OperationResult struct {
	autorest.Response `json:"-"`
	// Status - The operation status.
	Status *string `json:"status,omitempty"`
	// Error - Error details for the operation in case of a failure.
	Error *OperationError `json:"error,omitempty"`
}

OperationResult an Operation Result

type OperationStatusPayload

type OperationStatusPayload struct {
	// OperationURL - The operation url of long running operation
	OperationURL *string `json:"operationUrl,omitempty"`
}

OperationStatusPayload payload to get the status of an operation

type OperationStatusResponse

type OperationStatusResponse struct {
	autorest.Response `json:"-"`
	// Status - READ-ONLY; status of the long running operation for an environment
	Status *string `json:"status,omitempty"`
}

OperationStatusResponse status Details of the long running operation for an environment

func (OperationStatusResponse) MarshalJSON

func (osr OperationStatusResponse) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OperationStatusResponse.

type OperationsClient

type OperationsClient struct {
	BaseClient
}

OperationsClient is the the Managed Labs Client.

func NewOperationsClient

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (OperationsClient) Get

func (client OperationsClient) Get(ctx context.Context, locationName string, operationName string) (result OperationResult, err error)

Get get operation Parameters: locationName - the name of the location. operationName - the name of the operation.

func (OperationsClient) GetPreparer

func (client OperationsClient) GetPreparer(ctx context.Context, locationName string, operationName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (OperationsClient) GetResponder

func (client OperationsClient) GetResponder(resp *http.Response) (result OperationResult, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (OperationsClient) GetSender

func (client OperationsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

type PersonalPreferencesOperationsPayload

type PersonalPreferencesOperationsPayload struct {
	// LabAccountResourceID - Resource Id of the lab account
	LabAccountResourceID *string `json:"labAccountResourceId,omitempty"`
	// AddRemove - Enum indicating if user is adding or removing a favorite lab. Possible values include: 'Add', 'Remove'
	AddRemove AddRemove `json:"addRemove,omitempty"`
	// LabResourceID - Resource Id of the lab to add/remove from the favorites list
	LabResourceID *string `json:"labResourceId,omitempty"`
}

PersonalPreferencesOperationsPayload represents payload for any Environment operations like get, start, stop, connect

type ProviderOperationResult

type ProviderOperationResult struct {
	autorest.Response `json:"-"`
	// Value - List of operations supported by the resource provider.
	Value *[]OperationMetadata `json:"value,omitempty"`
	// NextLink - READ-ONLY; URL to get the next set of operation list results if there are any.
	NextLink *string `json:"nextLink,omitempty"`
}

ProviderOperationResult result of the request to list REST API operations

func (ProviderOperationResult) IsEmpty

func (por ProviderOperationResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (ProviderOperationResult) MarshalJSON

func (por ProviderOperationResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ProviderOperationResult.

type ProviderOperationResultIterator

type ProviderOperationResultIterator struct {
	// contains filtered or unexported fields
}

ProviderOperationResultIterator provides access to a complete listing of OperationMetadata values.

func NewProviderOperationResultIterator

func NewProviderOperationResultIterator(page ProviderOperationResultPage) ProviderOperationResultIterator

Creates a new instance of the ProviderOperationResultIterator type.

func (*ProviderOperationResultIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ProviderOperationResultIterator) NextWithContext

func (iter *ProviderOperationResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ProviderOperationResultIterator) NotDone

func (iter ProviderOperationResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ProviderOperationResultIterator) Response

Response returns the raw server response from the last page request.

func (ProviderOperationResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ProviderOperationResultPage

type ProviderOperationResultPage struct {
	// contains filtered or unexported fields
}

ProviderOperationResultPage contains a page of OperationMetadata values.

func NewProviderOperationResultPage

Creates a new instance of the ProviderOperationResultPage type.

func (*ProviderOperationResultPage) Next

func (page *ProviderOperationResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ProviderOperationResultPage) NextWithContext

func (page *ProviderOperationResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ProviderOperationResultPage) NotDone

func (page ProviderOperationResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ProviderOperationResultPage) Response

Response returns the raw server response from the last page request.

func (ProviderOperationResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type ProviderOperationsClient

type ProviderOperationsClient struct {
	BaseClient
}

ProviderOperationsClient is the the Managed Labs Client.

func NewProviderOperationsClient

func NewProviderOperationsClient(subscriptionID string) ProviderOperationsClient

NewProviderOperationsClient creates an instance of the ProviderOperationsClient client.

func NewProviderOperationsClientWithBaseURI

func NewProviderOperationsClientWithBaseURI(baseURI string, subscriptionID string) ProviderOperationsClient

NewProviderOperationsClientWithBaseURI creates an instance of the ProviderOperationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ProviderOperationsClient) List

List result of the request to list REST API operations

func (ProviderOperationsClient) ListComplete

func (client ProviderOperationsClient) ListComplete(ctx context.Context) (result ProviderOperationResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (ProviderOperationsClient) ListPreparer

func (client ProviderOperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (ProviderOperationsClient) ListResponder

func (client ProviderOperationsClient) ListResponder(resp *http.Response) (result ProviderOperationResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (ProviderOperationsClient) ListSender

func (client ProviderOperationsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type PublishPayload

type PublishPayload struct {
	// UseExistingImage - Whether to use existing VM custom image when publishing.
	UseExistingImage *bool `json:"useExistingImage,omitempty"`
}

PublishPayload payload for Publish operation on EnvironmentSetting.

type PublishingState

type PublishingState string

PublishingState enumerates the values for publishing state.

const (
	// Draft Initial state of an environment setting.
	Draft PublishingState = "Draft"
	// Published All resources are currently provisioned.
	Published PublishingState = "Published"
	// PublishFailed Failed to provision all the necessary resources.
	PublishFailed PublishingState = "PublishFailed"
	// Publishing Currently provisioning resources.
	Publishing PublishingState = "Publishing"
	// Scaling Currently provisioning resources without recreating VM image.
	Scaling PublishingState = "Scaling"
)

func PossiblePublishingStateValues

func PossiblePublishingStateValues() []PublishingState

PossiblePublishingStateValues returns an array of possible values for the PublishingState const type.

type ReferenceVM

type ReferenceVM struct {
	// UserName - The username of the virtual machine
	UserName *string `json:"userName,omitempty"`
	// Password - The password of the virtual machine. This will be set to null in GET resource API
	Password *string `json:"password,omitempty"`
	// VMStateDetails - READ-ONLY; The state details for the reference virtual machine.
	VMStateDetails *VMStateDetails `json:"vmStateDetails,omitempty"`
	// VMResourceID - READ-ONLY; VM resource Id for the environment
	VMResourceID *string `json:"vmResourceId,omitempty"`
}

ReferenceVM details of a Reference Vm

func (ReferenceVM) MarshalJSON

func (rv ReferenceVM) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ReferenceVM.

type ReferenceVMCreationParameters

type ReferenceVMCreationParameters struct {
	// UserName - The username of the virtual machine
	UserName *string `json:"userName,omitempty"`
	// Password - The password of the virtual machine.
	Password *string `json:"password,omitempty"`
}

ReferenceVMCreationParameters creation parameters for Reference Vm

type ReferenceVMFragment

type ReferenceVMFragment struct {
	// UserName - The username of the virtual machine
	UserName *string `json:"userName,omitempty"`
	// Password - The password of the virtual machine. This will be set to null in GET resource API
	Password *string `json:"password,omitempty"`
}

ReferenceVMFragment details of a Reference Vm

type RegionalAvailability

type RegionalAvailability struct {
	// Region - Corresponding region
	Region *string `json:"region,omitempty"`
	// SizeAvailabilities - List of all the size information for the region
	SizeAvailabilities *[]SizeAvailability `json:"sizeAvailabilities,omitempty"`
}

RegionalAvailability the availability information of sizes across regions

type RegisterPayload

type RegisterPayload struct {
	// RegistrationCode - The registration code of the lab.
	RegistrationCode *string `json:"registrationCode,omitempty"`
}

RegisterPayload represents payload for Register action.

type ResetPasswordPayload

type ResetPasswordPayload struct {
	// EnvironmentID - The resourceId of the environment
	EnvironmentID *string `json:"environmentId,omitempty"`
	// Username - The username for which the password will be reset.
	Username *string `json:"username,omitempty"`
	// Password - The password to assign to the user specified in
	Password *string `json:"password,omitempty"`
}

ResetPasswordPayload represents the payload for resetting passwords.

type Resource

type Resource struct {
	// ID - READ-ONLY; The identifier of the resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource.
	Type *string `json:"type,omitempty"`
	// Location - The location of the resource.
	Location *string `json:"location,omitempty"`
	// Tags - The tags of the resource.
	Tags map[string]*string `json:"tags"`
}

Resource an Azure resource.

func (Resource) MarshalJSON

func (r Resource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Resource.

type ResourceSet

type ResourceSet struct {
	// VMResourceID - VM resource Id for the environment
	VMResourceID *string `json:"vmResourceId,omitempty"`
	// ResourceSettingID - resourceSettingId for the environment
	ResourceSettingID *string `json:"resourceSettingId,omitempty"`
}

ResourceSet represents a VM and the setting Id it was created for.

type ResourceSetFragment

type ResourceSetFragment struct {
	// VMResourceID - VM resource Id for the environment
	VMResourceID *string `json:"vmResourceId,omitempty"`
	// ResourceSettingID - resourceSettingId for the environment
	ResourceSettingID *string `json:"resourceSettingId,omitempty"`
}

ResourceSetFragment represents a VM and the setting Id it was created for.

type ResourceSettingCreationParameters

type ResourceSettingCreationParameters struct {
	// Location - The location where the virtual machine will live
	Location *string `json:"location,omitempty"`
	// Name - The name of the resource setting
	Name *string `json:"name,omitempty"`
	// GalleryImageResourceID - The resource id of the gallery image used for creating the virtual machine
	GalleryImageResourceID *string `json:"galleryImageResourceId,omitempty"`
	// Size - The size of the virtual machine. Possible values include: 'Basic', 'Standard', 'Performance'
	Size ManagedLabVMSize `json:"size,omitempty"`
	// ReferenceVMCreationParameters - Creation parameters for Reference Vm
	ReferenceVMCreationParameters *ReferenceVMCreationParameters `json:"referenceVmCreationParameters,omitempty"`
}

ResourceSettingCreationParameters represents resource specific settings

type ResourceSettings

type ResourceSettings struct {
	// ID - READ-ONLY; The unique id of the resource setting
	ID *string `json:"id,omitempty"`
	// GalleryImageResourceID - The resource id of the gallery image used for creating the virtual machine
	GalleryImageResourceID *string `json:"galleryImageResourceId,omitempty"`
	// ImageName - READ-ONLY; The name of the image used to created the environment setting
	ImageName *string `json:"imageName,omitempty"`
	// Size - The size of the virtual machine. Possible values include: 'Basic', 'Standard', 'Performance'
	Size ManagedLabVMSize `json:"size,omitempty"`
	// Cores - READ-ONLY; The translated compute cores of the virtual machine
	Cores *int32 `json:"cores,omitempty"`
	// ReferenceVM - Details specific to Reference Vm
	ReferenceVM *ReferenceVM `json:"referenceVm,omitempty"`
}

ResourceSettings represents resource specific settings

func (ResourceSettings) MarshalJSON

func (rs ResourceSettings) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ResourceSettings.

type ResourceSettingsFragment

type ResourceSettingsFragment struct {
	// GalleryImageResourceID - The resource id of the gallery image used for creating the virtual machine
	GalleryImageResourceID *string `json:"galleryImageResourceId,omitempty"`
	// Size - The size of the virtual machine. Possible values include: 'Basic', 'Standard', 'Performance'
	Size ManagedLabVMSize `json:"size,omitempty"`
	// ReferenceVM - Details specific to Reference Vm
	ReferenceVM *ReferenceVMFragment `json:"referenceVm,omitempty"`
}

ResourceSettingsFragment represents resource specific settings

type ResponseWithContinuationEnvironment

type ResponseWithContinuationEnvironment struct {
	autorest.Response `json:"-"`
	// Value - Results of the list operation.
	Value *[]Environment `json:"value,omitempty"`
	// NextLink - Link for next set of results.
	NextLink *string `json:"nextLink,omitempty"`
}

ResponseWithContinuationEnvironment the response of a list operation.

func (ResponseWithContinuationEnvironment) IsEmpty

IsEmpty returns true if the ListResult contains no values.

type ResponseWithContinuationEnvironmentIterator

type ResponseWithContinuationEnvironmentIterator struct {
	// contains filtered or unexported fields
}

ResponseWithContinuationEnvironmentIterator provides access to a complete listing of Environment values.

func NewResponseWithContinuationEnvironmentIterator

func NewResponseWithContinuationEnvironmentIterator(page ResponseWithContinuationEnvironmentPage) ResponseWithContinuationEnvironmentIterator

Creates a new instance of the ResponseWithContinuationEnvironmentIterator type.

func (*ResponseWithContinuationEnvironmentIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ResponseWithContinuationEnvironmentIterator) NextWithContext

func (iter *ResponseWithContinuationEnvironmentIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ResponseWithContinuationEnvironmentIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (ResponseWithContinuationEnvironmentIterator) Response

Response returns the raw server response from the last page request.

func (ResponseWithContinuationEnvironmentIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ResponseWithContinuationEnvironmentPage

type ResponseWithContinuationEnvironmentPage struct {
	// contains filtered or unexported fields
}

ResponseWithContinuationEnvironmentPage contains a page of Environment values.

func NewResponseWithContinuationEnvironmentPage

Creates a new instance of the ResponseWithContinuationEnvironmentPage type.

func (*ResponseWithContinuationEnvironmentPage) Next

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ResponseWithContinuationEnvironmentPage) NextWithContext

func (page *ResponseWithContinuationEnvironmentPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ResponseWithContinuationEnvironmentPage) NotDone

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ResponseWithContinuationEnvironmentPage) Response

Response returns the raw server response from the last page request.

func (ResponseWithContinuationEnvironmentPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type ResponseWithContinuationEnvironmentSetting

type ResponseWithContinuationEnvironmentSetting struct {
	autorest.Response `json:"-"`
	// Value - Results of the list operation.
	Value *[]EnvironmentSetting `json:"value,omitempty"`
	// NextLink - Link for next set of results.
	NextLink *string `json:"nextLink,omitempty"`
}

ResponseWithContinuationEnvironmentSetting the response of a list operation.

func (ResponseWithContinuationEnvironmentSetting) IsEmpty

IsEmpty returns true if the ListResult contains no values.

type ResponseWithContinuationEnvironmentSettingIterator

type ResponseWithContinuationEnvironmentSettingIterator struct {
	// contains filtered or unexported fields
}

ResponseWithContinuationEnvironmentSettingIterator provides access to a complete listing of EnvironmentSetting values.

func NewResponseWithContinuationEnvironmentSettingIterator

func NewResponseWithContinuationEnvironmentSettingIterator(page ResponseWithContinuationEnvironmentSettingPage) ResponseWithContinuationEnvironmentSettingIterator

Creates a new instance of the ResponseWithContinuationEnvironmentSettingIterator type.

func (*ResponseWithContinuationEnvironmentSettingIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ResponseWithContinuationEnvironmentSettingIterator) NextWithContext

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ResponseWithContinuationEnvironmentSettingIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (ResponseWithContinuationEnvironmentSettingIterator) Response

Response returns the raw server response from the last page request.

func (ResponseWithContinuationEnvironmentSettingIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ResponseWithContinuationEnvironmentSettingPage

type ResponseWithContinuationEnvironmentSettingPage struct {
	// contains filtered or unexported fields
}

ResponseWithContinuationEnvironmentSettingPage contains a page of EnvironmentSetting values.

func NewResponseWithContinuationEnvironmentSettingPage

Creates a new instance of the ResponseWithContinuationEnvironmentSettingPage type.

func (*ResponseWithContinuationEnvironmentSettingPage) Next

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ResponseWithContinuationEnvironmentSettingPage) NextWithContext

func (page *ResponseWithContinuationEnvironmentSettingPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ResponseWithContinuationEnvironmentSettingPage) NotDone

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ResponseWithContinuationEnvironmentSettingPage) Response

Response returns the raw server response from the last page request.

func (ResponseWithContinuationEnvironmentSettingPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type ResponseWithContinuationGalleryImage

type ResponseWithContinuationGalleryImage struct {
	autorest.Response `json:"-"`
	// Value - Results of the list operation.
	Value *[]GalleryImage `json:"value,omitempty"`
	// NextLink - Link for next set of results.
	NextLink *string `json:"nextLink,omitempty"`
}

ResponseWithContinuationGalleryImage the response of a list operation.

func (ResponseWithContinuationGalleryImage) IsEmpty

IsEmpty returns true if the ListResult contains no values.

type ResponseWithContinuationGalleryImageIterator

type ResponseWithContinuationGalleryImageIterator struct {
	// contains filtered or unexported fields
}

ResponseWithContinuationGalleryImageIterator provides access to a complete listing of GalleryImage values.

func NewResponseWithContinuationGalleryImageIterator

func NewResponseWithContinuationGalleryImageIterator(page ResponseWithContinuationGalleryImagePage) ResponseWithContinuationGalleryImageIterator

Creates a new instance of the ResponseWithContinuationGalleryImageIterator type.

func (*ResponseWithContinuationGalleryImageIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ResponseWithContinuationGalleryImageIterator) NextWithContext

func (iter *ResponseWithContinuationGalleryImageIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ResponseWithContinuationGalleryImageIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (ResponseWithContinuationGalleryImageIterator) Response

Response returns the raw server response from the last page request.

func (ResponseWithContinuationGalleryImageIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ResponseWithContinuationGalleryImagePage

type ResponseWithContinuationGalleryImagePage struct {
	// contains filtered or unexported fields
}

ResponseWithContinuationGalleryImagePage contains a page of GalleryImage values.

func NewResponseWithContinuationGalleryImagePage

Creates a new instance of the ResponseWithContinuationGalleryImagePage type.

func (*ResponseWithContinuationGalleryImagePage) Next

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ResponseWithContinuationGalleryImagePage) NextWithContext

func (page *ResponseWithContinuationGalleryImagePage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ResponseWithContinuationGalleryImagePage) NotDone

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ResponseWithContinuationGalleryImagePage) Response

Response returns the raw server response from the last page request.

func (ResponseWithContinuationGalleryImagePage) Values

Values returns the slice of values for the current page or nil if there are no values.

type ResponseWithContinuationLab

type ResponseWithContinuationLab struct {
	autorest.Response `json:"-"`
	// Value - Results of the list operation.
	Value *[]Lab `json:"value,omitempty"`
	// NextLink - Link for next set of results.
	NextLink *string `json:"nextLink,omitempty"`
}

ResponseWithContinuationLab the response of a list operation.

func (ResponseWithContinuationLab) IsEmpty

func (rwcL ResponseWithContinuationLab) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ResponseWithContinuationLabAccount

type ResponseWithContinuationLabAccount struct {
	autorest.Response `json:"-"`
	// Value - Results of the list operation.
	Value *[]LabAccount `json:"value,omitempty"`
	// NextLink - Link for next set of results.
	NextLink *string `json:"nextLink,omitempty"`
}

ResponseWithContinuationLabAccount the response of a list operation.

func (ResponseWithContinuationLabAccount) IsEmpty

func (rwcLa ResponseWithContinuationLabAccount) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ResponseWithContinuationLabAccountIterator

type ResponseWithContinuationLabAccountIterator struct {
	// contains filtered or unexported fields
}

ResponseWithContinuationLabAccountIterator provides access to a complete listing of LabAccount values.

func NewResponseWithContinuationLabAccountIterator

func NewResponseWithContinuationLabAccountIterator(page ResponseWithContinuationLabAccountPage) ResponseWithContinuationLabAccountIterator

Creates a new instance of the ResponseWithContinuationLabAccountIterator type.

func (*ResponseWithContinuationLabAccountIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ResponseWithContinuationLabAccountIterator) NextWithContext

func (iter *ResponseWithContinuationLabAccountIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ResponseWithContinuationLabAccountIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (ResponseWithContinuationLabAccountIterator) Response

Response returns the raw server response from the last page request.

func (ResponseWithContinuationLabAccountIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ResponseWithContinuationLabAccountPage

type ResponseWithContinuationLabAccountPage struct {
	// contains filtered or unexported fields
}

ResponseWithContinuationLabAccountPage contains a page of LabAccount values.

func NewResponseWithContinuationLabAccountPage

Creates a new instance of the ResponseWithContinuationLabAccountPage type.

func (*ResponseWithContinuationLabAccountPage) Next

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ResponseWithContinuationLabAccountPage) NextWithContext

func (page *ResponseWithContinuationLabAccountPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ResponseWithContinuationLabAccountPage) NotDone

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ResponseWithContinuationLabAccountPage) Response

Response returns the raw server response from the last page request.

func (ResponseWithContinuationLabAccountPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type ResponseWithContinuationLabIterator

type ResponseWithContinuationLabIterator struct {
	// contains filtered or unexported fields
}

ResponseWithContinuationLabIterator provides access to a complete listing of Lab values.

func NewResponseWithContinuationLabIterator

func NewResponseWithContinuationLabIterator(page ResponseWithContinuationLabPage) ResponseWithContinuationLabIterator

Creates a new instance of the ResponseWithContinuationLabIterator type.

func (*ResponseWithContinuationLabIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ResponseWithContinuationLabIterator) NextWithContext

func (iter *ResponseWithContinuationLabIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ResponseWithContinuationLabIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (ResponseWithContinuationLabIterator) Response

Response returns the raw server response from the last page request.

func (ResponseWithContinuationLabIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ResponseWithContinuationLabPage

type ResponseWithContinuationLabPage struct {
	// contains filtered or unexported fields
}

ResponseWithContinuationLabPage contains a page of Lab values.

func NewResponseWithContinuationLabPage

Creates a new instance of the ResponseWithContinuationLabPage type.

func (*ResponseWithContinuationLabPage) Next

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ResponseWithContinuationLabPage) NextWithContext

func (page *ResponseWithContinuationLabPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ResponseWithContinuationLabPage) NotDone

func (page ResponseWithContinuationLabPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ResponseWithContinuationLabPage) Response

Response returns the raw server response from the last page request.

func (ResponseWithContinuationLabPage) Values

func (page ResponseWithContinuationLabPage) Values() []Lab

Values returns the slice of values for the current page or nil if there are no values.

type ResponseWithContinuationUser

type ResponseWithContinuationUser struct {
	autorest.Response `json:"-"`
	// Value - Results of the list operation.
	Value *[]User `json:"value,omitempty"`
	// NextLink - Link for next set of results.
	NextLink *string `json:"nextLink,omitempty"`
}

ResponseWithContinuationUser the response of a list operation.

func (ResponseWithContinuationUser) IsEmpty

func (rwcU ResponseWithContinuationUser) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ResponseWithContinuationUserIterator

type ResponseWithContinuationUserIterator struct {
	// contains filtered or unexported fields
}

ResponseWithContinuationUserIterator provides access to a complete listing of User values.

func NewResponseWithContinuationUserIterator

func NewResponseWithContinuationUserIterator(page ResponseWithContinuationUserPage) ResponseWithContinuationUserIterator

Creates a new instance of the ResponseWithContinuationUserIterator type.

func (*ResponseWithContinuationUserIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ResponseWithContinuationUserIterator) NextWithContext

func (iter *ResponseWithContinuationUserIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ResponseWithContinuationUserIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (ResponseWithContinuationUserIterator) Response

Response returns the raw server response from the last page request.

func (ResponseWithContinuationUserIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ResponseWithContinuationUserPage

type ResponseWithContinuationUserPage struct {
	// contains filtered or unexported fields
}

ResponseWithContinuationUserPage contains a page of User values.

func NewResponseWithContinuationUserPage

Creates a new instance of the ResponseWithContinuationUserPage type.

func (*ResponseWithContinuationUserPage) Next

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ResponseWithContinuationUserPage) NextWithContext

func (page *ResponseWithContinuationUserPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ResponseWithContinuationUserPage) NotDone

func (page ResponseWithContinuationUserPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ResponseWithContinuationUserPage) Response

Response returns the raw server response from the last page request.

func (ResponseWithContinuationUserPage) Values

func (page ResponseWithContinuationUserPage) Values() []User

Values returns the slice of values for the current page or nil if there are no values.

type SizeAvailability

type SizeAvailability struct {
	// SizeCategory - The category of the size (Basic, Standard, Performance). Possible values include: 'Basic', 'Standard', 'Performance'
	SizeCategory ManagedLabVMSize `json:"sizeCategory,omitempty"`
	// IsAvailable - Whether or not this size category is available
	IsAvailable *bool `json:"isAvailable,omitempty"`
}

SizeAvailability represents the size information

type SizeConfigurationProperties

type SizeConfigurationProperties struct {
	// EnvironmentSizes - Represents a list of size categories supported by this Lab Account (Small, Medium, Large)
	EnvironmentSizes *[]EnvironmentSize `json:"environmentSizes,omitempty"`
}

SizeConfigurationProperties represents the size configuration under the lab account

type SizeConfigurationPropertiesFragment

type SizeConfigurationPropertiesFragment struct {
	// EnvironmentSizes - Represents a list of size categories supported by this Lab Account (Small, Medium, Large)
	EnvironmentSizes *[]EnvironmentSizeFragment `json:"environmentSizes,omitempty"`
}

SizeConfigurationPropertiesFragment represents the size configuration under the lab account

type SizeInfo

type SizeInfo struct {
	// ComputeSize - Represents the actual compute size, e.g. Standard_A2_v2.
	ComputeSize *string `json:"computeSize,omitempty"`
	// Price - The pay-as-you-go price per hour this size will cost. It does not include discounts and may not reflect the actual price the size will cost.
	Price *decimal.Decimal `json:"price,omitempty"`
	// NumberOfCores - The number of cores a VM of this size has.
	NumberOfCores *int32 `json:"numberOfCores,omitempty"`
	// Memory - The amount of memory available (in GB).
	Memory *float64 `json:"memory,omitempty"`
}

SizeInfo contains detailed information about a size

type SizeInfoFragment

type SizeInfoFragment struct {
	// ComputeSize - Represents the actual compute size, e.g. Standard_A2_v2.
	ComputeSize *string `json:"computeSize,omitempty"`
	// Price - The pay-as-you-go price per hour this size will cost. It does not include discounts and may not reflect the actual price the size will cost.
	Price *decimal.Decimal `json:"price,omitempty"`
	// NumberOfCores - The number of cores a VM of this size has.
	NumberOfCores *int32 `json:"numberOfCores,omitempty"`
	// Memory - The amount of memory available (in GB).
	Memory *float64 `json:"memory,omitempty"`
}

SizeInfoFragment contains detailed information about a size

type User

type User struct {
	autorest.Response `json:"-"`
	// UserProperties - These are the properties for the user registered under a lab.
	*UserProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; The identifier of the resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource.
	Type *string `json:"type,omitempty"`
	// Location - The location of the resource.
	Location *string `json:"location,omitempty"`
	// Tags - The tags of the resource.
	Tags map[string]*string `json:"tags"`
}

User the User registered to a lab

func (User) MarshalJSON

func (u User) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for User.

func (*User) UnmarshalJSON

func (u *User) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for User struct.

type UserFragment

type UserFragment struct {
	// UserPropertiesFragment - These are the properties for the user registered under a lab.
	*UserPropertiesFragment `json:"properties,omitempty"`
	// ID - READ-ONLY; The identifier of the resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource.
	Type *string `json:"type,omitempty"`
	// Location - The location of the resource.
	Location *string `json:"location,omitempty"`
	// Tags - The tags of the resource.
	Tags map[string]*string `json:"tags"`
}

UserFragment the User registered to a lab

func (UserFragment) MarshalJSON

func (uf UserFragment) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for UserFragment.

func (*UserFragment) UnmarshalJSON

func (uf *UserFragment) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for UserFragment struct.

type UserProperties

type UserProperties struct {
	// Email - READ-ONLY; The user email address, as it was specified during registration.
	Email *string `json:"email,omitempty"`
	// FamilyName - READ-ONLY; The user family name, as it was specified during registration.
	FamilyName *string `json:"familyName,omitempty"`
	// GivenName - READ-ONLY; The user given name, as it was specified during registration.
	GivenName *string `json:"givenName,omitempty"`
	// TenantID - READ-ONLY; The user tenant ID, as it was specified during registration.
	TenantID *string `json:"tenantId,omitempty"`
	// TotalUsage - READ-ONLY; How long the user has used his VMs in this lab
	TotalUsage *string `json:"totalUsage,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// UniqueIdentifier - The unique immutable identifier of a resource (Guid).
	UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
	// LatestOperationResult - READ-ONLY; The details of the latest operation. ex: status, error
	LatestOperationResult *LatestOperationResult `json:"latestOperationResult,omitempty"`
}

UserProperties lab User properties

func (UserProperties) MarshalJSON

func (up UserProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for UserProperties.

type UserPropertiesFragment

type UserPropertiesFragment struct {
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// UniqueIdentifier - The unique immutable identifier of a resource (Guid).
	UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}

UserPropertiesFragment lab User properties

type UsersClient

type UsersClient struct {
	BaseClient
}

UsersClient is the the Managed Labs Client.

func NewUsersClient

func NewUsersClient(subscriptionID string) UsersClient

NewUsersClient creates an instance of the UsersClient client.

func NewUsersClientWithBaseURI

func NewUsersClientWithBaseURI(baseURI string, subscriptionID string) UsersClient

NewUsersClientWithBaseURI creates an instance of the UsersClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (UsersClient) CreateOrUpdate

func (client UsersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, labAccountName string, labName string, userName string, userParameter User) (result User, err error)

CreateOrUpdate create or replace an existing User. Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account. labName - the name of the lab. userName - the name of the user. userParameter - the User registered to a lab

func (UsersClient) CreateOrUpdatePreparer

func (client UsersClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, labAccountName string, labName string, userName string, userParameter User) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (UsersClient) CreateOrUpdateResponder

func (client UsersClient) CreateOrUpdateResponder(resp *http.Response) (result User, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (UsersClient) CreateOrUpdateSender

func (client UsersClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (UsersClient) Delete

func (client UsersClient) Delete(ctx context.Context, resourceGroupName string, labAccountName string, labName string, userName string) (result UsersDeleteFuture, err error)

Delete delete user. This operation can take a while to complete Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account. labName - the name of the lab. userName - the name of the user.

func (UsersClient) DeletePreparer

func (client UsersClient) DeletePreparer(ctx context.Context, resourceGroupName string, labAccountName string, labName string, userName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (UsersClient) DeleteResponder

func (client UsersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (UsersClient) DeleteSender

func (client UsersClient) DeleteSender(req *http.Request) (future UsersDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (UsersClient) Get

func (client UsersClient) Get(ctx context.Context, resourceGroupName string, labAccountName string, labName string, userName string, expand string) (result User, err error)

Get get user Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account. labName - the name of the lab. userName - the name of the user. expand - specify the $expand query. Example: 'properties($select=email)'

func (UsersClient) GetPreparer

func (client UsersClient) GetPreparer(ctx context.Context, resourceGroupName string, labAccountName string, labName string, userName string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (UsersClient) GetResponder

func (client UsersClient) GetResponder(resp *http.Response) (result User, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (UsersClient) GetSender

func (client UsersClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (UsersClient) List

func (client UsersClient) List(ctx context.Context, resourceGroupName string, labAccountName string, labName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationUserPage, err error)

List list users in a given lab. Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account. labName - the name of the lab. expand - specify the $expand query. Example: 'properties($select=email)' filter - the filter to apply to the operation. top - the maximum number of resources to return from the operation. orderby - the ordering expression for the results, using OData notation.

func (UsersClient) ListComplete

func (client UsersClient) ListComplete(ctx context.Context, resourceGroupName string, labAccountName string, labName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationUserIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (UsersClient) ListPreparer

func (client UsersClient) ListPreparer(ctx context.Context, resourceGroupName string, labAccountName string, labName string, expand string, filter string, top *int32, orderby string) (*http.Request, error)

ListPreparer prepares the List request.

func (UsersClient) ListResponder

func (client UsersClient) ListResponder(resp *http.Response) (result ResponseWithContinuationUser, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (UsersClient) ListSender

func (client UsersClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (UsersClient) Update

func (client UsersClient) Update(ctx context.Context, resourceGroupName string, labAccountName string, labName string, userName string, userParameter UserFragment) (result User, err error)

Update modify properties of users. Parameters: resourceGroupName - the name of the resource group. labAccountName - the name of the lab Account. labName - the name of the lab. userName - the name of the user. userParameter - the User registered to a lab

func (UsersClient) UpdatePreparer

func (client UsersClient) UpdatePreparer(ctx context.Context, resourceGroupName string, labAccountName string, labName string, userName string, userParameter UserFragment) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (UsersClient) UpdateResponder

func (client UsersClient) UpdateResponder(resp *http.Response) (result User, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (UsersClient) UpdateSender

func (client UsersClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type UsersDeleteFuture

type UsersDeleteFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(UsersClient) (autorest.Response, error)
}

UsersDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*UsersDeleteFuture) UnmarshalJSON

func (future *UsersDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type VMStateDetails

type VMStateDetails struct {
	// RdpAuthority - READ-ONLY; The RdpAuthority property is a server DNS host name or IP address followed by the service port number for RDP (Remote Desktop Protocol).
	RdpAuthority *string `json:"rdpAuthority,omitempty"`
	// SSHAuthority - READ-ONLY; The SshAuthority property is a server DNS host name or IP address followed by the service port number for SSH.
	SSHAuthority *string `json:"sshAuthority,omitempty"`
	// PowerState - READ-ONLY; The power state of the reference virtual machine.
	PowerState *string `json:"powerState,omitempty"`
	// LastKnownPowerState - READ-ONLY; Last known compute power state captured in DTL
	LastKnownPowerState *string `json:"lastKnownPowerState,omitempty"`
}

VMStateDetails details about the state of the reference virtual machine.

func (VMStateDetails) MarshalJSON

func (vsd VMStateDetails) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VMStateDetails.

type VirtualMachineDetails

type VirtualMachineDetails struct {
	// ProvisioningState - READ-ONLY; Provisioning state of the Dtl VM
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// RdpAuthority - READ-ONLY; Connection information for Windows
	RdpAuthority *string `json:"rdpAuthority,omitempty"`
	// SSHAuthority - READ-ONLY; Connection information for Linux
	SSHAuthority *string `json:"sshAuthority,omitempty"`
	// PrivateIPAddress - READ-ONLY; PrivateIp address of the compute VM
	PrivateIPAddress *string `json:"privateIpAddress,omitempty"`
	// UserName - READ-ONLY; Compute VM login user name
	UserName *string `json:"userName,omitempty"`
	// LastKnownPowerState - READ-ONLY; Last known compute power state captured in DTL
	LastKnownPowerState *string `json:"lastKnownPowerState,omitempty"`
}

VirtualMachineDetails details of the backing virtual machine.

func (VirtualMachineDetails) MarshalJSON

func (vmd VirtualMachineDetails) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VirtualMachineDetails.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL