labservices

package
v63.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package labservices implements the Azure ARM Labservices service API version 2021-11-15-preview.

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 ActionType

type ActionType string

ActionType enumerates the values for action type.

const (
	// ActionTypeInternal ...
	ActionTypeInternal ActionType = "Internal"
)

func PossibleActionTypeValues

func PossibleActionTypeValues() []ActionType

PossibleActionTypeValues returns an array of possible values for the ActionType const type.

type AutoShutdownProfile

type AutoShutdownProfile struct {
	// ShutdownOnDisconnect - Whether shutdown on disconnect is enabled. Possible values include: 'EnableStateEnabled', 'EnableStateDisabled'
	ShutdownOnDisconnect EnableState `json:"shutdownOnDisconnect,omitempty"`
	// ShutdownWhenNotConnected - Whether a VM will get shutdown when it hasn't been connected to after a period of time. Possible values include: 'EnableStateEnabled', 'EnableStateDisabled'
	ShutdownWhenNotConnected EnableState `json:"shutdownWhenNotConnected,omitempty"`
	// ShutdownOnIdle - Whether a VM will get shutdown when it has idled for a period of time. Possible values include: 'ShutdownOnIdleModeNone', 'ShutdownOnIdleModeUserAbsence', 'ShutdownOnIdleModeLowUsage'
	ShutdownOnIdle ShutdownOnIdleMode `json:"shutdownOnIdle,omitempty"`
	// DisconnectDelay - The amount of time a VM will stay running after a user disconnects if this behavior is enabled.
	DisconnectDelay *string `json:"disconnectDelay,omitempty"`
	// NoConnectDelay - The amount of time a VM will stay running before it is shutdown if no connection is made and this behavior is enabled.
	NoConnectDelay *string `json:"noConnectDelay,omitempty"`
	// IdleDelay - The amount of time a VM will idle before it is shutdown if this behavior is enabled.
	IdleDelay *string `json:"idleDelay,omitempty"`
}

AutoShutdownProfile profile for how to handle shutting down virtual machines.

type AzureEntityResource

type AzureEntityResource struct {
	// Etag - READ-ONLY; Resource Etag.
	Etag *string `json:"etag,omitempty"`
	// ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	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. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty"`
}

AzureEntityResource the resource model definition for an Azure Resource Manager resource with an etag.

func (AzureEntityResource) MarshalJSON

func (aer AzureEntityResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AzureEntityResource.

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 ConnectionProfile

type ConnectionProfile struct {
	// WebSSHAccess - The enabled access level for Web Access over SSH. Possible values include: 'ConnectionTypePublic', 'ConnectionTypePrivate', 'ConnectionTypeNone'
	WebSSHAccess ConnectionType `json:"webSshAccess,omitempty"`
	// WebRdpAccess - The enabled access level for Web Access over RDP. Possible values include: 'ConnectionTypePublic', 'ConnectionTypePrivate', 'ConnectionTypeNone'
	WebRdpAccess ConnectionType `json:"webRdpAccess,omitempty"`
	// ClientSSHAccess - The enabled access level for Client Access over SSH. Possible values include: 'ConnectionTypePublic', 'ConnectionTypePrivate', 'ConnectionTypeNone'
	ClientSSHAccess ConnectionType `json:"clientSshAccess,omitempty"`
	// ClientRdpAccess - The enabled access level for Client Access over RDP. Possible values include: 'ConnectionTypePublic', 'ConnectionTypePrivate', 'ConnectionTypeNone'
	ClientRdpAccess ConnectionType `json:"clientRdpAccess,omitempty"`
}

ConnectionProfile connection profile for how users connect to lab virtual machines.

type ConnectionType

type ConnectionType string

ConnectionType enumerates the values for connection type.

const (
	// ConnectionTypeNone ...
	ConnectionTypeNone ConnectionType = "None"
	// ConnectionTypePrivate ...
	ConnectionTypePrivate ConnectionType = "Private"
	// ConnectionTypePublic ...
	ConnectionTypePublic ConnectionType = "Public"
)

func PossibleConnectionTypeValues

func PossibleConnectionTypeValues() []ConnectionType

PossibleConnectionTypeValues returns an array of possible values for the ConnectionType const type.

type CreateOption

type CreateOption string

CreateOption enumerates the values for create option.

const (
	// CreateOptionImage An image is used to create all lab user virtual machines. When this option is set, no
	// template VM will be created.
	CreateOptionImage CreateOption = "Image"
	// CreateOptionTemplateVM A template VM will be used to create all lab user virtual machines.
	CreateOptionTemplateVM CreateOption = "TemplateVM"
)

func PossibleCreateOptionValues

func PossibleCreateOptionValues() []CreateOption

PossibleCreateOptionValues returns an array of possible values for the CreateOption const type.

type CreatedByType

type CreatedByType string

CreatedByType enumerates the values for created by type.

const (
	// CreatedByTypeApplication ...
	CreatedByTypeApplication CreatedByType = "Application"
	// CreatedByTypeKey ...
	CreatedByTypeKey CreatedByType = "Key"
	// CreatedByTypeManagedIdentity ...
	CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity"
	// CreatedByTypeUser ...
	CreatedByTypeUser CreatedByType = "User"
)

func PossibleCreatedByTypeValues

func PossibleCreatedByTypeValues() []CreatedByType

PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type.

type Credentials

type Credentials struct {
	// Username - The username to use when signing in to lab VMs.
	Username *string `json:"username,omitempty"`
	// Password - The password for the user. This is required for the TemplateVM createOption.
	Password *string `json:"password,omitempty"`
}

Credentials credentials for a user on a lab VM.

type EnableState

type EnableState string

EnableState enumerates the values for enable state.

const (
	// EnableStateDisabled ...
	EnableStateDisabled EnableState = "Disabled"
	// EnableStateEnabled ...
	EnableStateEnabled EnableState = "Enabled"
)

func PossibleEnableStateValues

func PossibleEnableStateValues() []EnableState

PossibleEnableStateValues returns an array of possible values for the EnableState const type.

type ErrorAdditionalInfo

type ErrorAdditionalInfo struct {
	// Type - READ-ONLY; The additional info type.
	Type *string `json:"type,omitempty"`
	// Info - READ-ONLY; The additional info.
	Info interface{} `json:"info,omitempty"`
}

ErrorAdditionalInfo the resource management error additional info.

func (ErrorAdditionalInfo) MarshalJSON

func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ErrorAdditionalInfo.

type ErrorDetail

type ErrorDetail struct {
	// Code - READ-ONLY; The error code.
	Code *string `json:"code,omitempty"`
	// Message - READ-ONLY; The error message.
	Message *string `json:"message,omitempty"`
	// Target - READ-ONLY; The error target.
	Target *string `json:"target,omitempty"`
	// Details - READ-ONLY; The error details.
	Details *[]ErrorDetail `json:"details,omitempty"`
	// AdditionalInfo - READ-ONLY; The error additional info.
	AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"`
}

ErrorDetail the error detail.

func (ErrorDetail) MarshalJSON

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

MarshalJSON is the custom marshaler for ErrorDetail.

type ErrorResponse

type ErrorResponse struct {
	// Error - The error object.
	Error *ErrorDetail `json:"error,omitempty"`
}

ErrorResponse common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).

type Identity

type Identity struct {
	// PrincipalID - READ-ONLY; The principal ID of resource identity.
	PrincipalID *string `json:"principalId,omitempty"`
	// TenantID - READ-ONLY; The tenant ID of resource.
	TenantID *string `json:"tenantId,omitempty"`
	// Type - The identity type. Possible values include: 'ResourceIdentityTypeSystemAssigned'
	Type ResourceIdentityType `json:"type,omitempty"`
}

Identity identity for the resource.

func (Identity) MarshalJSON

func (i Identity) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Identity.

type Image

type Image struct {
	autorest.Response `json:"-"`
	// SystemData - READ-ONLY; Metadata pertaining to creation and last modification of the image.
	SystemData *SystemData `json:"systemData,omitempty"`
	// ImageProperties - Image resource properties
	*ImageProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	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. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty"`
}

Image lab services virtual machine image

func (Image) MarshalJSON

func (i Image) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Image.

func (*Image) UnmarshalJSON

func (i *Image) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Image struct.

type ImageProperties

type ImageProperties struct {
	// ProvisioningState - READ-ONLY; Current provisioning state of the image. Possible values include: 'ProvisioningStateCreating', 'ProvisioningStateUpdating', 'ProvisioningStateDeleting', 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateLocked'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	// DisplayName - READ-ONLY; The image display name.
	DisplayName *string `json:"displayName,omitempty"`
	// Description - READ-ONLY; A description of the image.
	Description *string `json:"description,omitempty"`
	// IconURL - READ-ONLY; URL of the image icon.
	IconURL *string `json:"iconUrl,omitempty"`
	// Author - READ-ONLY; The image author.
	Author *string `json:"author,omitempty"`
	// OsType - READ-ONLY; The OS Type of the image. Possible values include: 'OsTypeWindows', 'OsTypeLinux'
	OsType OsType `json:"osType,omitempty"`
	// Plan - READ-ONLY; The ID of marketplace plan associated with the image (optional).
	Plan *string `json:"plan,omitempty"`
	// TermsStatus - READ-ONLY; The status of image terms of use (enabled = accepted, disabled = not accepted). Possible values include: 'EnableStateEnabled', 'EnableStateDisabled'
	TermsStatus EnableState `json:"termsStatus,omitempty"`
	// Offer - READ-ONLY; The ID of an offer associated with the image.
	Offer *string `json:"offer,omitempty"`
	// Publisher - READ-ONLY; The ID of the publisher of the image.
	Publisher *string `json:"publisher,omitempty"`
	// Sku - READ-ONLY; The image SKU.
	Sku *string `json:"sku,omitempty"`
	// Version - READ-ONLY; The image version.
	Version *string `json:"version,omitempty"`
	// SharedGalleryID - READ-ONLY; The ID for the image in the shared gallery.
	SharedGalleryID *string `json:"sharedGalleryId,omitempty"`
	// AvailableRegions - The available regions of the image in the shared gallery.
	AvailableRegions *[]string `json:"availableRegions,omitempty"`
	// OsState - READ-ONLY; The OS State of the image. Possible values include: 'OsStateGeneralized', 'OsStateSpecialized'
	OsState OsState `json:"osState,omitempty"`
	// EnabledState - Is the image enabled. Possible values include: 'EnableStateEnabled', 'EnableStateDisabled'
	EnabledState EnableState `json:"enabledState,omitempty"`
}

ImageProperties properties of an image resource.

func (ImageProperties) MarshalJSON

func (IP ImageProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImageProperties.

type ImageReference

type ImageReference struct {
	// ID - Image resource ID
	ID *string `json:"id,omitempty"`
	// Offer - The image offer if applicable.
	Offer *string `json:"offer,omitempty"`
	// Publisher - The image publisher
	Publisher *string `json:"publisher,omitempty"`
	// Sku - The image SKU
	Sku *string `json:"sku,omitempty"`
	// Version - The image version specified on creation.
	Version *string `json:"version,omitempty"`
	// ExactVersion - READ-ONLY; The actual version of the image after use.
	ExactVersion *string `json:"exactVersion,omitempty"`
}

ImageReference image reference information. Used in the virtual machine profile.

func (ImageReference) MarshalJSON

func (ir ImageReference) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImageReference.

type ImageUpdate

type ImageUpdate struct {
	// ImageUpdateProperties - Image resource properties
	*ImageUpdateProperties `json:"properties,omitempty"`
}

ImageUpdate lab services virtual machine image for updates.

func (ImageUpdate) MarshalJSON

func (iu ImageUpdate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImageUpdate.

func (*ImageUpdate) UnmarshalJSON

func (iu *ImageUpdate) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ImageUpdate struct.

type ImageUpdateProperties

type ImageUpdateProperties struct {
	// EnabledState - Is the image enabled. Possible values include: 'EnableStateEnabled', 'EnableStateDisabled'
	EnabledState EnableState `json:"enabledState,omitempty"`
}

ImageUpdateProperties properties of an image resource update

type ImagesClient

type ImagesClient struct {
	BaseClient
}

ImagesClient is the client for the Images methods of the Labservices service.

func NewImagesClient

func NewImagesClient(subscriptionID string) ImagesClient

NewImagesClient creates an instance of the ImagesClient client.

func NewImagesClientWithBaseURI

func NewImagesClientWithBaseURI(baseURI string, subscriptionID string) ImagesClient

NewImagesClientWithBaseURI creates an instance of the ImagesClient 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 (ImagesClient) CreateOrUpdate

func (client ImagesClient) CreateOrUpdate(ctx context.Context, body Image, resourceGroupName string, labPlanName string, imageName string) (result Image, err error)

CreateOrUpdate updates an image resource via PUT. Creating new resources via PUT will not function. Parameters: body - the request body. resourceGroupName - the name of the resource group. The name is case insensitive. labPlanName - the name of the lab plan that uniquely identifies it within containing resource group. Used in resource URIs and in UI. imageName - the image name.

func (ImagesClient) CreateOrUpdatePreparer

func (client ImagesClient) CreateOrUpdatePreparer(ctx context.Context, body Image, resourceGroupName string, labPlanName string, imageName string) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ImagesClient) CreateOrUpdateResponder

func (client ImagesClient) CreateOrUpdateResponder(resp *http.Response) (result Image, err error)

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

func (ImagesClient) CreateOrUpdateSender

func (client ImagesClient) 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 (ImagesClient) Get

func (client ImagesClient) Get(ctx context.Context, resourceGroupName string, labPlanName string, imageName string) (result Image, err error)

Get gets an image resource. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. labPlanName - the name of the lab plan that uniquely identifies it within containing resource group. Used in resource URIs and in UI. imageName - the image name.

func (ImagesClient) GetPreparer

func (client ImagesClient) GetPreparer(ctx context.Context, resourceGroupName string, labPlanName string, imageName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ImagesClient) GetResponder

func (client ImagesClient) GetResponder(resp *http.Response) (result Image, err error)

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

func (ImagesClient) GetSender

func (client ImagesClient) 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 (ImagesClient) ListByLabPlan

func (client ImagesClient) ListByLabPlan(ctx context.Context, resourceGroupName string, labPlanName string, filter string) (result PagedImagesPage, err error)

ListByLabPlan gets all images from galleries attached to a lab plan. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. labPlanName - the name of the lab plan that uniquely identifies it within containing resource group. Used in resource URIs and in UI. filter - the filter to apply to the operation.

func (ImagesClient) ListByLabPlanComplete

func (client ImagesClient) ListByLabPlanComplete(ctx context.Context, resourceGroupName string, labPlanName string, filter string) (result PagedImagesIterator, err error)

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

func (ImagesClient) ListByLabPlanPreparer

func (client ImagesClient) ListByLabPlanPreparer(ctx context.Context, resourceGroupName string, labPlanName string, filter string) (*http.Request, error)

ListByLabPlanPreparer prepares the ListByLabPlan request.

func (ImagesClient) ListByLabPlanResponder

func (client ImagesClient) ListByLabPlanResponder(resp *http.Response) (result PagedImages, err error)

ListByLabPlanResponder handles the response to the ListByLabPlan request. The method always closes the http.Response Body.

func (ImagesClient) ListByLabPlanSender

func (client ImagesClient) ListByLabPlanSender(req *http.Request) (*http.Response, error)

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

func (ImagesClient) Update

func (client ImagesClient) Update(ctx context.Context, body ImageUpdate, resourceGroupName string, labPlanName string, imageName string) (result Image, err error)

Update updates an image resource. Parameters: body - the request body. resourceGroupName - the name of the resource group. The name is case insensitive. labPlanName - the name of the lab plan that uniquely identifies it within containing resource group. Used in resource URIs and in UI. imageName - the image name.

func (ImagesClient) UpdatePreparer

func (client ImagesClient) UpdatePreparer(ctx context.Context, body ImageUpdate, resourceGroupName string, labPlanName string, imageName string) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ImagesClient) UpdateResponder

func (client ImagesClient) UpdateResponder(resp *http.Response) (result Image, err error)

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

func (ImagesClient) UpdateSender

func (client ImagesClient) 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 InvitationState

type InvitationState string

InvitationState enumerates the values for invitation state.

const (
	// InvitationStateFailed There was an error while sending the invitation.
	InvitationStateFailed InvitationState = "Failed"
	// InvitationStateNotSent The invitation has not been sent.
	InvitationStateNotSent InvitationState = "NotSent"
	// InvitationStateSending Currently sending the invitation.
	InvitationStateSending InvitationState = "Sending"
	// InvitationStateSent The invitation has been successfully sent.
	InvitationStateSent InvitationState = "Sent"
)

func PossibleInvitationStateValues

func PossibleInvitationStateValues() []InvitationState

PossibleInvitationStateValues returns an array of possible values for the InvitationState const type.

type InviteBody

type InviteBody struct {
	// Text - Custom text for the invite email.
	Text *string `json:"text,omitempty"`
}

InviteBody body for a user invite request

type Lab

type Lab struct {
	autorest.Response `json:"-"`
	// SystemData - READ-ONLY; Metadata pertaining to creation and last modification of the lab.
	SystemData *SystemData `json:"systemData,omitempty"`
	// LabProperties - Lab resource properties
	*LabProperties `json:"properties,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// Location - The geo-location where the resource lives
	Location *string `json:"location,omitempty"`
	// ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	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. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty"`
}

Lab the lab resource.

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 LabNetworkProfile

type LabNetworkProfile struct {
	// SubnetID - The external subnet resource id
	SubnetID *string `json:"subnetId,omitempty"`
	// LoadBalancerID - The external load balancer resource id
	LoadBalancerID *string `json:"loadBalancerId,omitempty"`
	// PublicIPID - The external public IP resource id
	PublicIPID *string `json:"publicIpId,omitempty"`
}

LabNetworkProfile profile for how to handle networking for Labs.

type LabPlan

type LabPlan struct {
	autorest.Response `json:"-"`
	// SystemData - READ-ONLY; Metadata pertaining to creation and last modification of the lab plan.
	SystemData *SystemData `json:"systemData,omitempty"`
	// LabPlanProperties - Lab plan resource properties
	*LabPlanProperties `json:"properties,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// Location - The geo-location where the resource lives
	Location *string `json:"location,omitempty"`
	// ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	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. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty"`
}

LabPlan lab Plans act as a permission container for creating labs via labs.azure.com. Additionally, they can provide a set of default configurations that will apply at the time of creating a lab, but these defaults can still be overwritten.

func (LabPlan) MarshalJSON

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

MarshalJSON is the custom marshaler for LabPlan.

func (*LabPlan) UnmarshalJSON

func (lp *LabPlan) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for LabPlan struct.

type LabPlanNetworkProfile

type LabPlanNetworkProfile struct {
	// SubnetID - The external subnet resource id
	SubnetID *string `json:"subnetId,omitempty"`
}

LabPlanNetworkProfile profile for how to handle networking for Lab Plans.

type LabPlanProperties

type LabPlanProperties struct {
	// ProvisioningState - READ-ONLY; Current provisioning state of the lab plan. Possible values include: 'ProvisioningStateCreating', 'ProvisioningStateUpdating', 'ProvisioningStateDeleting', 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateLocked'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	// DefaultConnectionProfile - The default lab connection profile. This can be changed on a lab resource and only provides a default profile.
	DefaultConnectionProfile *ConnectionProfile `json:"defaultConnectionProfile,omitempty"`
	// DefaultAutoShutdownProfile - The default lab shutdown profile. This can be changed on a lab resource and only provides a default profile.
	DefaultAutoShutdownProfile *AutoShutdownProfile `json:"defaultAutoShutdownProfile,omitempty"`
	// DefaultNetworkProfile - The lab plan network profile. To enforce lab network policies they must be defined here and cannot be changed when there are existing labs associated with this lab plan.
	DefaultNetworkProfile *LabPlanNetworkProfile `json:"defaultNetworkProfile,omitempty"`
	// AllowedRegions - The allowed regions for the lab creator to use when creating labs using this lab plan.
	AllowedRegions *[]string `json:"allowedRegions,omitempty"`
	// SharedGalleryID - Resource ID of the Shared Image Gallery attached to this lab plan. When saving a lab template virtual machine image it will be persisted in this gallery. Shared images from the gallery can be made available to use when creating new labs.
	SharedGalleryID *string `json:"sharedGalleryId,omitempty"`
	// SupportInfo - Support contact information and instructions for users of the lab plan. This information is displayed to lab owners and virtual machine users for all labs in the lab plan.
	SupportInfo *SupportInfo `json:"supportInfo,omitempty"`
	// LinkedLmsInstance - Base Url of the lms instance this lab plan can link lab rosters against.
	LinkedLmsInstance *string `json:"linkedLmsInstance,omitempty"`
}

LabPlanProperties lab plan resource properties

func (LabPlanProperties) MarshalJSON

func (lpp LabPlanProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LabPlanProperties.

type LabPlanUpdate

type LabPlanUpdate struct {
	// LabPlanUpdateProperties - Lab plan resource update properties
	*LabPlanUpdateProperties `json:"properties,omitempty"`
	// Tags - Resource tags.
	Tags *[]string `json:"tags,omitempty"`
}

LabPlanUpdate contains lab configuration and default settings. This variant is used for PATCH.

func (LabPlanUpdate) MarshalJSON

func (lpu LabPlanUpdate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LabPlanUpdate.

func (*LabPlanUpdate) UnmarshalJSON

func (lpu *LabPlanUpdate) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for LabPlanUpdate struct.

type LabPlanUpdateProperties

type LabPlanUpdateProperties struct {
	// DefaultConnectionProfile - The default lab connection profile. This can be changed on a lab resource and only provides a default profile.
	DefaultConnectionProfile *ConnectionProfile `json:"defaultConnectionProfile,omitempty"`
	// DefaultAutoShutdownProfile - The default lab shutdown profile. This can be changed on a lab resource and only provides a default profile.
	DefaultAutoShutdownProfile *AutoShutdownProfile `json:"defaultAutoShutdownProfile,omitempty"`
	// DefaultNetworkProfile - The lab plan network profile. To enforce lab network policies they must be defined here and cannot be changed when there are existing labs associated with this lab plan.
	DefaultNetworkProfile *LabPlanNetworkProfile `json:"defaultNetworkProfile,omitempty"`
	// AllowedRegions - The allowed regions for the lab creator to use when creating labs using this lab plan.
	AllowedRegions *[]string `json:"allowedRegions,omitempty"`
	// SharedGalleryID - Resource ID of the Shared Image Gallery attached to this lab plan. When saving a lab template virtual machine image it will be persisted in this gallery. Shared images from the gallery can be made available to use when creating new labs.
	SharedGalleryID *string `json:"sharedGalleryId,omitempty"`
	// SupportInfo - Support contact information and instructions for users of the lab plan. This information is displayed to lab owners and virtual machine users for all labs in the lab plan.
	SupportInfo *SupportInfo `json:"supportInfo,omitempty"`
	// LinkedLmsInstance - Base Url of the lms instance this lab plan can link lab rosters against.
	LinkedLmsInstance *string `json:"linkedLmsInstance,omitempty"`
}

LabPlanUpdateProperties lab plan resource properties for updates

type LabPlansClient

type LabPlansClient struct {
	BaseClient
}

LabPlansClient is the client for the LabPlans methods of the Labservices service.

func NewLabPlansClient

func NewLabPlansClient(subscriptionID string) LabPlansClient

NewLabPlansClient creates an instance of the LabPlansClient client.

func NewLabPlansClientWithBaseURI

func NewLabPlansClientWithBaseURI(baseURI string, subscriptionID string) LabPlansClient

NewLabPlansClientWithBaseURI creates an instance of the LabPlansClient 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 (LabPlansClient) CreateOrUpdate

func (client LabPlansClient) CreateOrUpdate(ctx context.Context, body LabPlan, resourceGroupName string, labPlanName string) (result LabPlansCreateOrUpdateFuture, err error)

CreateOrUpdate operation to create or update a Lab Plan resource. Parameters: body - the request body. resourceGroupName - the name of the resource group. The name is case insensitive. labPlanName - the name of the lab plan that uniquely identifies it within containing resource group. Used in resource URIs and in UI.

func (LabPlansClient) CreateOrUpdatePreparer

func (client LabPlansClient) CreateOrUpdatePreparer(ctx context.Context, body LabPlan, resourceGroupName string, labPlanName string) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (LabPlansClient) CreateOrUpdateResponder

func (client LabPlansClient) CreateOrUpdateResponder(resp *http.Response) (result LabPlan, err error)

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

func (LabPlansClient) CreateOrUpdateSender

func (client LabPlansClient) CreateOrUpdateSender(req *http.Request) (future LabPlansCreateOrUpdateFuture, err error)

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

func (LabPlansClient) Delete

func (client LabPlansClient) Delete(ctx context.Context, resourceGroupName string, labPlanName string) (result LabPlansDeleteFuture, err error)

Delete operation to delete a Lab Plan resource. Deleting a lab plan does not delete labs associated with a lab plan, nor does it delete shared images added to a gallery via the lab plan permission container. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. labPlanName - the name of the lab plan that uniquely identifies it within containing resource group. Used in resource URIs and in UI.

func (LabPlansClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (LabPlansClient) DeleteResponder

func (client LabPlansClient) 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 (LabPlansClient) DeleteSender

func (client LabPlansClient) DeleteSender(req *http.Request) (future LabPlansDeleteFuture, err error)

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

func (LabPlansClient) Get

func (client LabPlansClient) Get(ctx context.Context, resourceGroupName string, labPlanName string) (result LabPlan, err error)

Get retrieves the properties of a Lab Plan. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. labPlanName - the name of the lab plan that uniquely identifies it within containing resource group. Used in resource URIs and in UI.

func (LabPlansClient) GetPreparer

func (client LabPlansClient) GetPreparer(ctx context.Context, resourceGroupName string, labPlanName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (LabPlansClient) GetResponder

func (client LabPlansClient) GetResponder(resp *http.Response) (result LabPlan, err error)

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

func (LabPlansClient) GetSender

func (client LabPlansClient) 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 (LabPlansClient) ListByResourceGroup

func (client LabPlansClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result PagedLabPlansPage, err error)

ListByResourceGroup returns a list of all lab plans for a subscription and resource group. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive.

func (LabPlansClient) ListByResourceGroupComplete

func (client LabPlansClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result PagedLabPlansIterator, err error)

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

func (LabPlansClient) ListByResourceGroupPreparer

func (client LabPlansClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (LabPlansClient) ListByResourceGroupResponder

func (client LabPlansClient) ListByResourceGroupResponder(resp *http.Response) (result PagedLabPlans, err error)

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

func (LabPlansClient) ListByResourceGroupSender

func (client LabPlansClient) 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 (LabPlansClient) ListBySubscription

func (client LabPlansClient) ListBySubscription(ctx context.Context, filter string) (result PagedLabPlansPage, err error)

ListBySubscription returns a list of all lab plans within a subscription Parameters: filter - the filter to apply to the operation.

func (LabPlansClient) ListBySubscriptionComplete

func (client LabPlansClient) ListBySubscriptionComplete(ctx context.Context, filter string) (result PagedLabPlansIterator, err error)

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

func (LabPlansClient) ListBySubscriptionPreparer

func (client LabPlansClient) ListBySubscriptionPreparer(ctx context.Context, filter string) (*http.Request, error)

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (LabPlansClient) ListBySubscriptionResponder

func (client LabPlansClient) ListBySubscriptionResponder(resp *http.Response) (result PagedLabPlans, err error)

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

func (LabPlansClient) ListBySubscriptionSender

func (client LabPlansClient) 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 (LabPlansClient) SaveImage

func (client LabPlansClient) SaveImage(ctx context.Context, body SaveImageBody, resourceGroupName string, labPlanName string) (result LabPlansSaveImageFuture, err error)

SaveImage saves an image from a lab VM to the attached shared image gallery. Parameters: body - the request body. resourceGroupName - the name of the resource group. The name is case insensitive. labPlanName - the name of the lab plan that uniquely identifies it within containing resource group. Used in resource URIs and in UI.

func (LabPlansClient) SaveImagePreparer

func (client LabPlansClient) SaveImagePreparer(ctx context.Context, body SaveImageBody, resourceGroupName string, labPlanName string) (*http.Request, error)

SaveImagePreparer prepares the SaveImage request.

func (LabPlansClient) SaveImageResponder

func (client LabPlansClient) SaveImageResponder(resp *http.Response) (result autorest.Response, err error)

SaveImageResponder handles the response to the SaveImage request. The method always closes the http.Response Body.

func (LabPlansClient) SaveImageSender

func (client LabPlansClient) SaveImageSender(req *http.Request) (future LabPlansSaveImageFuture, err error)

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

func (LabPlansClient) Update

func (client LabPlansClient) Update(ctx context.Context, body LabPlanUpdate, resourceGroupName string, labPlanName string) (result LabPlansUpdateFuture, err error)

Update operation to update a Lab Plan resource. Parameters: body - the request body. resourceGroupName - the name of the resource group. The name is case insensitive. labPlanName - the name of the lab plan that uniquely identifies it within containing resource group. Used in resource URIs and in UI.

func (LabPlansClient) UpdatePreparer

func (client LabPlansClient) UpdatePreparer(ctx context.Context, body LabPlanUpdate, resourceGroupName string, labPlanName string) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (LabPlansClient) UpdateResponder

func (client LabPlansClient) UpdateResponder(resp *http.Response) (result LabPlan, err error)

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

func (LabPlansClient) UpdateSender

func (client LabPlansClient) UpdateSender(req *http.Request) (future LabPlansUpdateFuture, err error)

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

type LabPlansCreateOrUpdateFuture

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

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

func (*LabPlansCreateOrUpdateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type LabPlansDeleteFuture

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

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

func (*LabPlansDeleteFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type LabPlansSaveImageFuture

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

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

func (*LabPlansSaveImageFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type LabPlansUpdateFuture

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

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

func (*LabPlansUpdateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type LabProperties

type LabProperties struct {
	// ProvisioningState - READ-ONLY; Current provisioning state of the lab. Possible values include: 'ProvisioningStateCreating', 'ProvisioningStateUpdating', 'ProvisioningStateDeleting', 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateLocked'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	// NetworkProfile - The network profile for the lab, typically applied via a lab plan. This profile cannot be modified once a lab has been created.
	NetworkProfile *LabNetworkProfile `json:"networkProfile,omitempty"`
	// State - READ-ONLY; The lab state. Possible values include: 'LabStateDraft', 'LabStatePublishing', 'LabStateScaling', 'LabStateSyncing', 'LabStatePublished'
	State LabState `json:"state,omitempty"`
	// AutoShutdownProfile - The resource auto shutdown configuration for the lab. This controls whether actions are taken on resources that are sitting idle.
	AutoShutdownProfile *AutoShutdownProfile `json:"autoShutdownProfile,omitempty"`
	// ConnectionProfile - The connection profile for the lab. This controls settings such as web access to lab resources or whether RDP or SSH ports are open.
	ConnectionProfile *ConnectionProfile `json:"connectionProfile,omitempty"`
	// VirtualMachineProfile - The profile used for creating lab virtual machines.
	VirtualMachineProfile *VirtualMachineProfile `json:"virtualMachineProfile,omitempty"`
	// SecurityProfile - The lab security profile.
	SecurityProfile *SecurityProfile `json:"securityProfile,omitempty"`
	// RosterProfile - The lab user list management profile.
	RosterProfile *RosterProfile `json:"rosterProfile,omitempty"`
	// LabPlanID - The ID of the lab plan. Used during resource creation to provide defaults and acts as a permission container when creating a lab via labs.azure.com. Setting a labPlanId on an existing lab provides organization..
	LabPlanID *string `json:"labPlanId,omitempty"`
	// Title - The title of the lab.
	Title *string `json:"title,omitempty"`
	// Description - The description of the lab.
	Description *string `json:"description,omitempty"`
}

LabProperties properties of a lab resource.

func (LabProperties) MarshalJSON

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

MarshalJSON is the custom marshaler for LabProperties.

type LabState

type LabState string

LabState enumerates the values for lab state.

const (
	// LabStateDraft The lab is currently in draft (has not been published).
	LabStateDraft LabState = "Draft"
	// LabStatePublished The lab has been published.
	LabStatePublished LabState = "Published"
	// LabStatePublishing The lab is publishing.
	LabStatePublishing LabState = "Publishing"
	// LabStateScaling The lab is scaling.
	LabStateScaling LabState = "Scaling"
	// LabStateSyncing The lab is syncing users.
	LabStateSyncing LabState = "Syncing"
)

func PossibleLabStateValues

func PossibleLabStateValues() []LabState

PossibleLabStateValues returns an array of possible values for the LabState const type.

type LabUpdate

type LabUpdate struct {
	// LabUpdateProperties - Lab resource properties
	*LabUpdateProperties `json:"properties,omitempty"`
	// Tags - Resource tags.
	Tags *[]string `json:"tags,omitempty"`
}

LabUpdate the lab resource for updates.

func (LabUpdate) MarshalJSON

func (lu LabUpdate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LabUpdate.

func (*LabUpdate) UnmarshalJSON

func (lu *LabUpdate) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for LabUpdate struct.

type LabUpdateProperties

type LabUpdateProperties struct {
	// AutoShutdownProfile - The resource auto shutdown configuration for the lab. This controls whether actions are taken on resources that are sitting idle.
	AutoShutdownProfile *AutoShutdownProfile `json:"autoShutdownProfile,omitempty"`
	// ConnectionProfile - The connection profile for the lab. This controls settings such as web access to lab resources or whether RDP or SSH ports are open.
	ConnectionProfile *ConnectionProfile `json:"connectionProfile,omitempty"`
	// VirtualMachineProfile - The profile used for creating lab virtual machines.
	VirtualMachineProfile *VirtualMachineProfile `json:"virtualMachineProfile,omitempty"`
	// SecurityProfile - The lab security profile.
	SecurityProfile *SecurityProfile `json:"securityProfile,omitempty"`
	// RosterProfile - The lab user list management profile.
	RosterProfile *RosterProfile `json:"rosterProfile,omitempty"`
	// LabPlanID - The ID of the lab plan. Used during resource creation to provide defaults and acts as a permission container when creating a lab via labs.azure.com. Setting a labPlanId on an existing lab provides organization..
	LabPlanID *string `json:"labPlanId,omitempty"`
	// Title - The title of the lab.
	Title *string `json:"title,omitempty"`
	// Description - The description of the lab.
	Description *string `json:"description,omitempty"`
}

LabUpdateProperties properties of a lab resource used for updates.

type LabsClient

type LabsClient struct {
	BaseClient
}

LabsClient is the client for the Labs methods of the Labservices service.

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) CreateOrUpdate

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

CreateOrUpdate operation to create or update a lab resource. Parameters: body - the request body. resourceGroupName - the name of the resource group. The name is case insensitive. labName - the name of the lab that uniquely identifies it within containing lab account. Used in resource URIs.

func (LabsClient) CreateOrUpdatePreparer

func (client LabsClient) CreateOrUpdatePreparer(ctx context.Context, body Lab, resourceGroupName string, labName string) (*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) (future LabsCreateOrUpdateFuture, err 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, labName string) (result LabsDeleteFuture, err error)

Delete operation to delete a lab resource. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. labName - the name of the lab that uniquely identifies it within containing lab account. Used in resource URIs.

func (LabsClient) DeletePreparer

func (client LabsClient) DeletePreparer(ctx context.Context, resourceGroupName 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, labName string) (result Lab, err error)

Get returns the properties of a lab resource. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. labName - the name of the lab that uniquely identifies it within containing lab account. Used in resource URIs.

func (LabsClient) GetPreparer

func (client LabsClient) GetPreparer(ctx context.Context, resourceGroupName string, labName 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) ListByResourceGroup

func (client LabsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result PagedLabsPage, err error)

ListByResourceGroup returns a list of all labs in a resource group. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive.

func (LabsClient) ListByResourceGroupComplete

func (client LabsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result PagedLabsIterator, err error)

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

func (LabsClient) ListByResourceGroupPreparer

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (LabsClient) ListByResourceGroupResponder

func (client LabsClient) ListByResourceGroupResponder(resp *http.Response) (result PagedLabs, err error)

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

func (LabsClient) ListByResourceGroupSender

func (client LabsClient) 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 (LabsClient) ListBySubscription

func (client LabsClient) ListBySubscription(ctx context.Context, filter string) (result PagedLabsPage, err error)

ListBySubscription returns a list of all labs for a subscription. Parameters: filter - the filter to apply to the operation.

func (LabsClient) ListBySubscriptionComplete

func (client LabsClient) ListBySubscriptionComplete(ctx context.Context, filter string) (result PagedLabsIterator, err error)

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

func (LabsClient) ListBySubscriptionPreparer

func (client LabsClient) ListBySubscriptionPreparer(ctx context.Context, filter string) (*http.Request, error)

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (LabsClient) ListBySubscriptionResponder

func (client LabsClient) ListBySubscriptionResponder(resp *http.Response) (result PagedLabs, err error)

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

func (LabsClient) ListBySubscriptionSender

func (client LabsClient) 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 (LabsClient) Publish

func (client LabsClient) Publish(ctx context.Context, resourceGroupName string, labName string) (result LabsPublishFuture, err error)

Publish publish or re-publish a lab. This will create or update all lab resources, such as virtual machines. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. labName - the name of the lab that uniquely identifies it within containing lab account. Used in resource URIs.

func (LabsClient) PublishPreparer

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

PublishPreparer prepares the Publish request.

func (LabsClient) PublishResponder

func (client LabsClient) 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 (LabsClient) PublishSender

func (client LabsClient) PublishSender(req *http.Request) (future LabsPublishFuture, err error)

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

func (LabsClient) SyncGroup

func (client LabsClient) SyncGroup(ctx context.Context, resourceGroupName string, labName string) (result LabsSyncGroupFuture, err error)

SyncGroup action used to manually kick off an AAD group sync job. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. labName - the name of the lab that uniquely identifies it within containing lab account. Used in resource URIs.

func (LabsClient) SyncGroupPreparer

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

SyncGroupPreparer prepares the SyncGroup request.

func (LabsClient) SyncGroupResponder

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

SyncGroupResponder handles the response to the SyncGroup request. The method always closes the http.Response Body.

func (LabsClient) SyncGroupSender

func (client LabsClient) SyncGroupSender(req *http.Request) (future LabsSyncGroupFuture, err error)

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

func (LabsClient) Update

func (client LabsClient) Update(ctx context.Context, body LabUpdate, resourceGroupName string, labName string) (result LabsUpdateFuture, err error)

Update operation to update a lab resource. Parameters: body - the request body. resourceGroupName - the name of the resource group. The name is case insensitive. labName - the name of the lab that uniquely identifies it within containing lab account. Used in resource URIs.

func (LabsClient) UpdatePreparer

func (client LabsClient) UpdatePreparer(ctx context.Context, body LabUpdate, resourceGroupName string, labName string) (*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) (future LabsUpdateFuture, err error)

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

type LabsCreateOrUpdateFuture

type LabsCreateOrUpdateFuture 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) (Lab, error)
}

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

func (*LabsCreateOrUpdateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

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 LabsPublishFuture

type LabsPublishFuture 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)
}

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

func (*LabsPublishFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type LabsSyncGroupFuture

type LabsSyncGroupFuture 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)
}

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

func (*LabsSyncGroupFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type LabsUpdateFuture

type LabsUpdateFuture 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) (Lab, error)
}

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

func (*LabsUpdateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ListUsagesResult

type ListUsagesResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; The array page of Usages.
	Value *[]Usage `json:"value,omitempty"`
	// NextLink - READ-ONLY; The link to get the next page of Usage result.
	NextLink *string `json:"nextLink,omitempty"`
}

ListUsagesResult list of Core Usages.

func (ListUsagesResult) IsEmpty

func (lur ListUsagesResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (ListUsagesResult) MarshalJSON

func (lur ListUsagesResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ListUsagesResult.

type ListUsagesResultIterator

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

ListUsagesResultIterator provides access to a complete listing of Usage values.

func NewListUsagesResultIterator

func NewListUsagesResultIterator(page ListUsagesResultPage) ListUsagesResultIterator

Creates a new instance of the ListUsagesResultIterator type.

func (*ListUsagesResultIterator) Next

func (iter *ListUsagesResultIterator) Next() error

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 (*ListUsagesResultIterator) NextWithContext

func (iter *ListUsagesResultIterator) 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 (ListUsagesResultIterator) NotDone

func (iter ListUsagesResultIterator) NotDone() bool

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

func (ListUsagesResultIterator) Response

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

func (ListUsagesResultIterator) Value

func (iter ListUsagesResultIterator) Value() Usage

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

type ListUsagesResultPage

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

ListUsagesResultPage contains a page of Usage values.

func NewListUsagesResultPage

func NewListUsagesResultPage(cur ListUsagesResult, getNextPage func(context.Context, ListUsagesResult) (ListUsagesResult, error)) ListUsagesResultPage

Creates a new instance of the ListUsagesResultPage type.

func (*ListUsagesResultPage) Next

func (page *ListUsagesResultPage) 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 (*ListUsagesResultPage) NextWithContext

func (page *ListUsagesResultPage) 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 (ListUsagesResultPage) NotDone

func (page ListUsagesResultPage) NotDone() bool

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

func (ListUsagesResultPage) Response

func (page ListUsagesResultPage) Response() ListUsagesResult

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

func (ListUsagesResultPage) Values

func (page ListUsagesResultPage) Values() []Usage

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

type Operation

type Operation struct {
	// Name - READ-ONLY; The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action"
	Name *string `json:"name,omitempty"`
	// IsDataAction - READ-ONLY; Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations.
	IsDataAction *bool `json:"isDataAction,omitempty"`
	// Display - Localized display information for this particular operation.
	Display *OperationDisplay `json:"display,omitempty"`
	// Origin - READ-ONLY; The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system". Possible values include: 'OriginUser', 'OriginSystem', 'OriginUsersystem'
	Origin Origin `json:"origin,omitempty"`
	// ActionType - READ-ONLY; Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. Possible values include: 'ActionTypeInternal'
	ActionType ActionType `json:"actionType,omitempty"`
}

Operation details of a REST API operation, returned from the Resource Provider Operations API

func (Operation) MarshalJSON

func (o Operation) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Operation.

type OperationDisplay

type OperationDisplay struct {
	// Provider - READ-ONLY; The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute".
	Provider *string `json:"provider,omitempty"`
	// Resource - READ-ONLY; The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections".
	Resource *string `json:"resource,omitempty"`
	// Operation - READ-ONLY; The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine".
	Operation *string `json:"operation,omitempty"`
	// Description - READ-ONLY; The short, localized friendly description of the operation; suitable for tool tips and detailed views.
	Description *string `json:"description,omitempty"`
}

OperationDisplay localized display information for this particular operation.

func (OperationDisplay) MarshalJSON

func (o OperationDisplay) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OperationDisplay.

type OperationListResult

type OperationListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; List of operations supported by the resource provider
	Value *[]Operation `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"`
}

OperationListResult a list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results.

func (OperationListResult) IsEmpty

func (olr OperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (OperationListResult) MarshalJSON

func (olr OperationListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OperationListResult.

type OperationListResultIterator

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

OperationListResultIterator provides access to a complete listing of Operation values.

func NewOperationListResultIterator

func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator

Creates a new instance of the OperationListResultIterator type.

func (*OperationListResultIterator) Next

func (iter *OperationListResultIterator) Next() error

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 (*OperationListResultIterator) NextWithContext

func (iter *OperationListResultIterator) 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 (OperationListResultIterator) NotDone

func (iter OperationListResultIterator) NotDone() bool

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

func (OperationListResultIterator) Response

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

func (OperationListResultIterator) Value

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

type OperationListResultPage

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

OperationListResultPage contains a page of Operation values.

func NewOperationListResultPage

func NewOperationListResultPage(cur OperationListResult, getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage

Creates a new instance of the OperationListResultPage type.

func (*OperationListResultPage) Next

func (page *OperationListResultPage) 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 (*OperationListResultPage) NextWithContext

func (page *OperationListResultPage) 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 (OperationListResultPage) NotDone

func (page OperationListResultPage) NotDone() bool

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

func (OperationListResultPage) Response

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

func (OperationListResultPage) Values

func (page OperationListResultPage) Values() []Operation

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

type OperationResult

type OperationResult struct {
	autorest.Response `json:"-"`
	// ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty"`
	// Status - The operation status. Possible values include: 'OperationStatusNotStarted', 'OperationStatusInProgress', 'OperationStatusSucceeded', 'OperationStatusFailed', 'OperationStatusCanceled'
	Status OperationStatus `json:"status,omitempty"`
	// StartTime - Start time
	StartTime *date.Time `json:"startTime,omitempty"`
	// EndTime - End time
	EndTime *date.Time `json:"endTime,omitempty"`
	// PercentComplete - Percent completion
	PercentComplete *float64 `json:"percentComplete,omitempty"`
	// Error - The error for a failure if the operation failed.
	Error *ErrorDetail `json:"error,omitempty"`
}

OperationResult a long running operation result

func (OperationResult) MarshalJSON

func (or OperationResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OperationResult.

type OperationResultsClient

type OperationResultsClient struct {
	BaseClient
}

OperationResultsClient is the client for the OperationResults methods of the Labservices service.

func NewOperationResultsClient

func NewOperationResultsClient(subscriptionID string) OperationResultsClient

NewOperationResultsClient creates an instance of the OperationResultsClient client.

func NewOperationResultsClientWithBaseURI

func NewOperationResultsClientWithBaseURI(baseURI string, subscriptionID string) OperationResultsClient

NewOperationResultsClientWithBaseURI creates an instance of the OperationResultsClient 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 (OperationResultsClient) Get

func (client OperationResultsClient) Get(ctx context.Context, operationResultID string) (result OperationResult, err error)

Get returns an azure operation result. Parameters: operationResultID - the operation result ID / name.

func (OperationResultsClient) GetPreparer

func (client OperationResultsClient) GetPreparer(ctx context.Context, operationResultID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (OperationResultsClient) GetResponder

func (client OperationResultsClient) 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 (OperationResultsClient) GetSender

func (client OperationResultsClient) 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 OperationStatus

type OperationStatus string

OperationStatus enumerates the values for operation status.

const (
	// OperationStatusCanceled Not supported yet
	OperationStatusCanceled OperationStatus = "Canceled"
	// OperationStatusFailed The operation failed
	OperationStatusFailed OperationStatus = "Failed"
	// OperationStatusInProgress The operation is running
	OperationStatusInProgress OperationStatus = "InProgress"
	// OperationStatusNotStarted The operation has been accepted but hasn't started.
	OperationStatusNotStarted OperationStatus = "NotStarted"
	// OperationStatusSucceeded The operation Succeeded
	OperationStatusSucceeded OperationStatus = "Succeeded"
)

func PossibleOperationStatusValues

func PossibleOperationStatusValues() []OperationStatus

PossibleOperationStatusValues returns an array of possible values for the OperationStatus const type.

type OperationsClient

type OperationsClient struct {
	BaseClient
}

OperationsClient is the client for the Operations methods of the Labservices service.

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) List

func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error)

List returns a list of all operations.

func (OperationsClient) ListComplete

func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error)

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

func (OperationsClient) ListPreparer

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

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)

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

func (OperationsClient) ListSender

func (client OperationsClient) 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 Origin

type Origin string

Origin enumerates the values for origin.

const (
	// OriginSystem ...
	OriginSystem Origin = "system"
	// OriginUser ...
	OriginUser Origin = "user"
	// OriginUsersystem ...
	OriginUsersystem Origin = "user,system"
)

func PossibleOriginValues

func PossibleOriginValues() []Origin

PossibleOriginValues returns an array of possible values for the Origin const type.

type OsState

type OsState string

OsState enumerates the values for os state.

const (
	// OsStateGeneralized Image does not contain any machine and user specific information.
	OsStateGeneralized OsState = "Generalized"
	// OsStateSpecialized Image contains machine and user specific information.
	OsStateSpecialized OsState = "Specialized"
)

func PossibleOsStateValues

func PossibleOsStateValues() []OsState

PossibleOsStateValues returns an array of possible values for the OsState const type.

type OsType

type OsType string

OsType enumerates the values for os type.

const (
	// OsTypeLinux ...
	OsTypeLinux OsType = "Linux"
	// OsTypeWindows ...
	OsTypeWindows OsType = "Windows"
)

func PossibleOsTypeValues

func PossibleOsTypeValues() []OsType

PossibleOsTypeValues returns an array of possible values for the OsType const type.

type PagedImages

type PagedImages struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; The array page of virtual machine images.
	Value *[]Image `json:"value,omitempty"`
	// NextLink - READ-ONLY; The link to get the next page of image results.
	NextLink *string `json:"nextLink,omitempty"`
}

PagedImages paged list of Lab services virtual machine images.

func (PagedImages) IsEmpty

func (pi PagedImages) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (PagedImages) MarshalJSON

func (pi PagedImages) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PagedImages.

type PagedImagesIterator

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

PagedImagesIterator provides access to a complete listing of Image values.

func NewPagedImagesIterator

func NewPagedImagesIterator(page PagedImagesPage) PagedImagesIterator

Creates a new instance of the PagedImagesIterator type.

func (*PagedImagesIterator) Next

func (iter *PagedImagesIterator) Next() error

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 (*PagedImagesIterator) NextWithContext

func (iter *PagedImagesIterator) 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 (PagedImagesIterator) NotDone

func (iter PagedImagesIterator) NotDone() bool

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

func (PagedImagesIterator) Response

func (iter PagedImagesIterator) Response() PagedImages

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

func (PagedImagesIterator) Value

func (iter PagedImagesIterator) Value() Image

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

type PagedImagesPage

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

PagedImagesPage contains a page of Image values.

func NewPagedImagesPage

func NewPagedImagesPage(cur PagedImages, getNextPage func(context.Context, PagedImages) (PagedImages, error)) PagedImagesPage

Creates a new instance of the PagedImagesPage type.

func (*PagedImagesPage) Next

func (page *PagedImagesPage) 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 (*PagedImagesPage) NextWithContext

func (page *PagedImagesPage) 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 (PagedImagesPage) NotDone

func (page PagedImagesPage) NotDone() bool

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

func (PagedImagesPage) Response

func (page PagedImagesPage) Response() PagedImages

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

func (PagedImagesPage) Values

func (page PagedImagesPage) Values() []Image

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

type PagedLabPlans

type PagedLabPlans struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; The array page of lab plans.
	Value *[]LabPlan `json:"value,omitempty"`
	// NextLink - READ-ONLY; The link to get the next page of lab plan results.
	NextLink *string `json:"nextLink,omitempty"`
}

PagedLabPlans paged list of lab plans.

func (PagedLabPlans) IsEmpty

func (plp PagedLabPlans) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (PagedLabPlans) MarshalJSON

func (plp PagedLabPlans) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PagedLabPlans.

type PagedLabPlansIterator

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

PagedLabPlansIterator provides access to a complete listing of LabPlan values.

func NewPagedLabPlansIterator

func NewPagedLabPlansIterator(page PagedLabPlansPage) PagedLabPlansIterator

Creates a new instance of the PagedLabPlansIterator type.

func (*PagedLabPlansIterator) Next

func (iter *PagedLabPlansIterator) Next() error

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 (*PagedLabPlansIterator) NextWithContext

func (iter *PagedLabPlansIterator) 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 (PagedLabPlansIterator) NotDone

func (iter PagedLabPlansIterator) NotDone() bool

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

func (PagedLabPlansIterator) Response

func (iter PagedLabPlansIterator) Response() PagedLabPlans

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

func (PagedLabPlansIterator) Value

func (iter PagedLabPlansIterator) Value() LabPlan

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

type PagedLabPlansPage

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

PagedLabPlansPage contains a page of LabPlan values.

func NewPagedLabPlansPage

func NewPagedLabPlansPage(cur PagedLabPlans, getNextPage func(context.Context, PagedLabPlans) (PagedLabPlans, error)) PagedLabPlansPage

Creates a new instance of the PagedLabPlansPage type.

func (*PagedLabPlansPage) Next

func (page *PagedLabPlansPage) 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 (*PagedLabPlansPage) NextWithContext

func (page *PagedLabPlansPage) 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 (PagedLabPlansPage) NotDone

func (page PagedLabPlansPage) NotDone() bool

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

func (PagedLabPlansPage) Response

func (page PagedLabPlansPage) Response() PagedLabPlans

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

func (PagedLabPlansPage) Values

func (page PagedLabPlansPage) Values() []LabPlan

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

type PagedLabServicesSkus

type PagedLabServicesSkus struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; The array page of sku results.
	Value *[]SkuType `json:"value,omitempty"`
	// NextLink - READ-ONLY; The link to get the next page of sku results.
	NextLink *string `json:"nextLink,omitempty"`
}

PagedLabServicesSkus paged list of lab services skus.

func (PagedLabServicesSkus) IsEmpty

func (plss PagedLabServicesSkus) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (PagedLabServicesSkus) MarshalJSON

func (plss PagedLabServicesSkus) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PagedLabServicesSkus.

type PagedLabServicesSkusIterator

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

PagedLabServicesSkusIterator provides access to a complete listing of SkuType values.

func NewPagedLabServicesSkusIterator

func NewPagedLabServicesSkusIterator(page PagedLabServicesSkusPage) PagedLabServicesSkusIterator

Creates a new instance of the PagedLabServicesSkusIterator type.

func (*PagedLabServicesSkusIterator) Next

func (iter *PagedLabServicesSkusIterator) Next() error

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 (*PagedLabServicesSkusIterator) NextWithContext

func (iter *PagedLabServicesSkusIterator) 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 (PagedLabServicesSkusIterator) NotDone

func (iter PagedLabServicesSkusIterator) NotDone() bool

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

func (PagedLabServicesSkusIterator) Response

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

func (PagedLabServicesSkusIterator) Value

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

type PagedLabServicesSkusPage

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

PagedLabServicesSkusPage contains a page of SkuType values.

func NewPagedLabServicesSkusPage

func NewPagedLabServicesSkusPage(cur PagedLabServicesSkus, getNextPage func(context.Context, PagedLabServicesSkus) (PagedLabServicesSkus, error)) PagedLabServicesSkusPage

Creates a new instance of the PagedLabServicesSkusPage type.

func (*PagedLabServicesSkusPage) Next

func (page *PagedLabServicesSkusPage) 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 (*PagedLabServicesSkusPage) NextWithContext

func (page *PagedLabServicesSkusPage) 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 (PagedLabServicesSkusPage) NotDone

func (page PagedLabServicesSkusPage) NotDone() bool

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

func (PagedLabServicesSkusPage) Response

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

func (PagedLabServicesSkusPage) Values

func (page PagedLabServicesSkusPage) Values() []SkuType

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

type PagedLabs

type PagedLabs struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; The array page of lab results.
	Value *[]Lab `json:"value,omitempty"`
	// NextLink - READ-ONLY; The link to get the next page of image results.
	NextLink *string `json:"nextLink,omitempty"`
}

PagedLabs paged list of labs.

func (PagedLabs) IsEmpty

func (pl PagedLabs) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (PagedLabs) MarshalJSON

func (pl PagedLabs) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PagedLabs.

type PagedLabsIterator

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

PagedLabsIterator provides access to a complete listing of Lab values.

func NewPagedLabsIterator

func NewPagedLabsIterator(page PagedLabsPage) PagedLabsIterator

Creates a new instance of the PagedLabsIterator type.

func (*PagedLabsIterator) Next

func (iter *PagedLabsIterator) Next() error

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 (*PagedLabsIterator) NextWithContext

func (iter *PagedLabsIterator) 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 (PagedLabsIterator) NotDone

func (iter PagedLabsIterator) NotDone() bool

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

func (PagedLabsIterator) Response

func (iter PagedLabsIterator) Response() PagedLabs

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

func (PagedLabsIterator) Value

func (iter PagedLabsIterator) Value() Lab

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

type PagedLabsPage

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

PagedLabsPage contains a page of Lab values.

func NewPagedLabsPage

func NewPagedLabsPage(cur PagedLabs, getNextPage func(context.Context, PagedLabs) (PagedLabs, error)) PagedLabsPage

Creates a new instance of the PagedLabsPage type.

func (*PagedLabsPage) Next

func (page *PagedLabsPage) 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 (*PagedLabsPage) NextWithContext

func (page *PagedLabsPage) 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 (PagedLabsPage) NotDone

func (page PagedLabsPage) NotDone() bool

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

func (PagedLabsPage) Response

func (page PagedLabsPage) Response() PagedLabs

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

func (PagedLabsPage) Values

func (page PagedLabsPage) Values() []Lab

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

type PagedSchedules

type PagedSchedules struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; The array page of schedule results.
	Value *[]Schedule `json:"value,omitempty"`
	// NextLink - READ-ONLY; The link to get the next page of schedule results.
	NextLink *string `json:"nextLink,omitempty"`
}

PagedSchedules paged list of schedules.

func (PagedSchedules) IsEmpty

func (ps PagedSchedules) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (PagedSchedules) MarshalJSON

func (ps PagedSchedules) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PagedSchedules.

type PagedSchedulesIterator

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

PagedSchedulesIterator provides access to a complete listing of Schedule values.

func NewPagedSchedulesIterator

func NewPagedSchedulesIterator(page PagedSchedulesPage) PagedSchedulesIterator

Creates a new instance of the PagedSchedulesIterator type.

func (*PagedSchedulesIterator) Next

func (iter *PagedSchedulesIterator) Next() error

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 (*PagedSchedulesIterator) NextWithContext

func (iter *PagedSchedulesIterator) 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 (PagedSchedulesIterator) NotDone

func (iter PagedSchedulesIterator) NotDone() bool

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

func (PagedSchedulesIterator) Response

func (iter PagedSchedulesIterator) Response() PagedSchedules

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

func (PagedSchedulesIterator) Value

func (iter PagedSchedulesIterator) Value() Schedule

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

type PagedSchedulesPage

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

PagedSchedulesPage contains a page of Schedule values.

func NewPagedSchedulesPage

func NewPagedSchedulesPage(cur PagedSchedules, getNextPage func(context.Context, PagedSchedules) (PagedSchedules, error)) PagedSchedulesPage

Creates a new instance of the PagedSchedulesPage type.

func (*PagedSchedulesPage) Next

func (page *PagedSchedulesPage) 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 (*PagedSchedulesPage) NextWithContext

func (page *PagedSchedulesPage) 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 (PagedSchedulesPage) NotDone

func (page PagedSchedulesPage) NotDone() bool

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

func (PagedSchedulesPage) Response

func (page PagedSchedulesPage) Response() PagedSchedules

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

func (PagedSchedulesPage) Values

func (page PagedSchedulesPage) Values() []Schedule

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

type PagedUsers

type PagedUsers struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; The array page of user results.
	Value *[]User `json:"value,omitempty"`
	// NextLink - READ-ONLY; The link to get the next page of image results.
	NextLink *string `json:"nextLink,omitempty"`
}

PagedUsers paged list of users.

func (PagedUsers) IsEmpty

func (pu PagedUsers) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (PagedUsers) MarshalJSON

func (pu PagedUsers) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PagedUsers.

type PagedUsersIterator

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

PagedUsersIterator provides access to a complete listing of User values.

func NewPagedUsersIterator

func NewPagedUsersIterator(page PagedUsersPage) PagedUsersIterator

Creates a new instance of the PagedUsersIterator type.

func (*PagedUsersIterator) Next

func (iter *PagedUsersIterator) Next() error

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 (*PagedUsersIterator) NextWithContext

func (iter *PagedUsersIterator) 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 (PagedUsersIterator) NotDone

func (iter PagedUsersIterator) NotDone() bool

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

func (PagedUsersIterator) Response

func (iter PagedUsersIterator) Response() PagedUsers

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

func (PagedUsersIterator) Value

func (iter PagedUsersIterator) Value() User

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

type PagedUsersPage

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

PagedUsersPage contains a page of User values.

func NewPagedUsersPage

func NewPagedUsersPage(cur PagedUsers, getNextPage func(context.Context, PagedUsers) (PagedUsers, error)) PagedUsersPage

Creates a new instance of the PagedUsersPage type.

func (*PagedUsersPage) Next

func (page *PagedUsersPage) 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 (*PagedUsersPage) NextWithContext

func (page *PagedUsersPage) 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 (PagedUsersPage) NotDone

func (page PagedUsersPage) NotDone() bool

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

func (PagedUsersPage) Response

func (page PagedUsersPage) Response() PagedUsers

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

func (PagedUsersPage) Values

func (page PagedUsersPage) Values() []User

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

type PagedVirtualMachines

type PagedVirtualMachines struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; The array page of virtual machine results.
	Value *[]VirtualMachine `json:"value,omitempty"`
	// NextLink - READ-ONLY; The link to get the next page of virtual machine results.
	NextLink *string `json:"nextLink,omitempty"`
}

PagedVirtualMachines paged list of lab services virtual machines.

func (PagedVirtualMachines) IsEmpty

func (pvm PagedVirtualMachines) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (PagedVirtualMachines) MarshalJSON

func (pvm PagedVirtualMachines) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PagedVirtualMachines.

type PagedVirtualMachinesIterator

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

PagedVirtualMachinesIterator provides access to a complete listing of VirtualMachine values.

func NewPagedVirtualMachinesIterator

func NewPagedVirtualMachinesIterator(page PagedVirtualMachinesPage) PagedVirtualMachinesIterator

Creates a new instance of the PagedVirtualMachinesIterator type.

func (*PagedVirtualMachinesIterator) Next

func (iter *PagedVirtualMachinesIterator) Next() error

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 (*PagedVirtualMachinesIterator) NextWithContext

func (iter *PagedVirtualMachinesIterator) 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 (PagedVirtualMachinesIterator) NotDone

func (iter PagedVirtualMachinesIterator) NotDone() bool

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

func (PagedVirtualMachinesIterator) Response

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

func (PagedVirtualMachinesIterator) Value

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

type PagedVirtualMachinesPage

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

PagedVirtualMachinesPage contains a page of VirtualMachine values.

func NewPagedVirtualMachinesPage

func NewPagedVirtualMachinesPage(cur PagedVirtualMachines, getNextPage func(context.Context, PagedVirtualMachines) (PagedVirtualMachines, error)) PagedVirtualMachinesPage

Creates a new instance of the PagedVirtualMachinesPage type.

func (*PagedVirtualMachinesPage) Next

func (page *PagedVirtualMachinesPage) 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 (*PagedVirtualMachinesPage) NextWithContext

func (page *PagedVirtualMachinesPage) 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 (PagedVirtualMachinesPage) NotDone

func (page PagedVirtualMachinesPage) NotDone() bool

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

func (PagedVirtualMachinesPage) Response

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

func (PagedVirtualMachinesPage) Values

func (page PagedVirtualMachinesPage) Values() []VirtualMachine

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

type Plan

type Plan struct {
	// Name - A user defined name of the 3rd Party Artifact that is being procured.
	Name *string `json:"name,omitempty"`
	// Publisher - The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic
	Publisher *string `json:"publisher,omitempty"`
	// Product - The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding.
	Product *string `json:"product,omitempty"`
	// PromotionCode - A publisher provided promotion code as provisioned in Data Market for the said product/artifact.
	PromotionCode *string `json:"promotionCode,omitempty"`
	// Version - The version of the desired product/artifact.
	Version *string `json:"version,omitempty"`
}

Plan plan for the resource.

type ProvisioningState

type ProvisioningState string

ProvisioningState enumerates the values for provisioning state.

const (
	// ProvisioningStateCreating Resource is in the process of being created.
	ProvisioningStateCreating ProvisioningState = "Creating"
	// ProvisioningStateDeleting Resource is in the process of being deleted.
	ProvisioningStateDeleting ProvisioningState = "Deleting"
	// ProvisioningStateFailed Previous operation on the resource has failed leaving resource in unhealthy
	// state.
	ProvisioningStateFailed ProvisioningState = "Failed"
	// ProvisioningStateLocked The resource is locked and changes are currently blocked. This could be due to
	// maintenance or a scheduled operation. The state will go back to succeeded once the locking operation has
	// finished.
	ProvisioningStateLocked ProvisioningState = "Locked"
	// ProvisioningStateSucceeded Resource is in healthy state after creation or update operation.
	ProvisioningStateSucceeded ProvisioningState = "Succeeded"
	// ProvisioningStateUpdating New property values are being applied to the resource.
	ProvisioningStateUpdating ProvisioningState = "Updating"
)

func PossibleProvisioningStateValues

func PossibleProvisioningStateValues() []ProvisioningState

PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.

type ProxyResource

type ProxyResource struct {
	// ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	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. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty"`
}

ProxyResource the resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location

func (ProxyResource) MarshalJSON

func (pr ProxyResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ProxyResource.

type RecurrenceFrequency

type RecurrenceFrequency string

RecurrenceFrequency enumerates the values for recurrence frequency.

const (
	// RecurrenceFrequencyDaily Schedule will run every days.
	RecurrenceFrequencyDaily RecurrenceFrequency = "Daily"
	// RecurrenceFrequencyWeekly Schedule will run every week on days specified in weekDays.
	RecurrenceFrequencyWeekly RecurrenceFrequency = "Weekly"
)

func PossibleRecurrenceFrequencyValues

func PossibleRecurrenceFrequencyValues() []RecurrenceFrequency

PossibleRecurrenceFrequencyValues returns an array of possible values for the RecurrenceFrequency const type.

type RecurrencePattern

type RecurrencePattern struct {
	// Frequency - The frequency of the recurrence. Possible values include: 'RecurrenceFrequencyDaily', 'RecurrenceFrequencyWeekly'
	Frequency RecurrenceFrequency `json:"frequency,omitempty"`
	// WeekDays - The week days the schedule runs. Used for when the Frequency is set to Weekly.
	WeekDays *[]WeekDay `json:"weekDays,omitempty"`
	// Interval - The interval to invoke the schedule on. For example, interval = 2 and RecurrenceFrequency.Daily will run every 2 days. When no interval is supplied, an interval of 1 is used.
	Interval *int32 `json:"interval,omitempty"`
	// ExpirationDate - When the recurrence will expire. This date is inclusive.
	ExpirationDate *date.Date `json:"expirationDate,omitempty"`
}

RecurrencePattern recurrence pattern of a lab schedule.

type RegistrationState

type RegistrationState string

RegistrationState enumerates the values for registration state.

const (
	// RegistrationStateNotRegistered User has registered with the lab.
	RegistrationStateNotRegistered RegistrationState = "NotRegistered"
	// RegistrationStateRegistered User has not yet registered with the lab.
	RegistrationStateRegistered RegistrationState = "Registered"
)

func PossibleRegistrationStateValues

func PossibleRegistrationStateValues() []RegistrationState

PossibleRegistrationStateValues returns an array of possible values for the RegistrationState const type.

type ResetPasswordBody

type ResetPasswordBody struct {
	// Username - The user whose password is being reset
	Username *string `json:"username,omitempty"`
	// Password - The password
	Password *string `json:"password,omitempty"`
}

ResetPasswordBody body of a reset password request.

type Resource

type Resource struct {
	// ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	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. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty"`
}

Resource common fields that are returned in the response for all Azure Resource Manager resources

func (Resource) MarshalJSON

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

MarshalJSON is the custom marshaler for Resource.

type ResourceIdentityType

type ResourceIdentityType string

ResourceIdentityType enumerates the values for resource identity type.

const (
	// ResourceIdentityTypeSystemAssigned ...
	ResourceIdentityTypeSystemAssigned ResourceIdentityType = "SystemAssigned"
)

func PossibleResourceIdentityTypeValues

func PossibleResourceIdentityTypeValues() []ResourceIdentityType

PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type.

type ResourceModelWithAllowedPropertySet

type ResourceModelWithAllowedPropertySet struct {
	// ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	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. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty"`
	// Location - The geo-location where the resource lives
	Location *string `json:"location,omitempty"`
	// ManagedBy - The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.
	ManagedBy *string `json:"managedBy,omitempty"`
	// Kind - Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type.  If supported, the resource provider must validate and persist this value.
	Kind *string `json:"kind,omitempty"`
	// Etag - READ-ONLY; The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention.  Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
	Etag *string `json:"etag,omitempty"`
	// Tags - Resource tags.
	Tags     map[string]*string                           `json:"tags"`
	Identity *ResourceModelWithAllowedPropertySetIdentity `json:"identity,omitempty"`
	Sku      *ResourceModelWithAllowedPropertySetSku      `json:"sku,omitempty"`
	Plan     *ResourceModelWithAllowedPropertySetPlan     `json:"plan,omitempty"`
}

ResourceModelWithAllowedPropertySet the resource model definition containing the full set of allowed properties for a resource. Except properties bag, there cannot be a top level property outside of this set.

func (ResourceModelWithAllowedPropertySet) MarshalJSON

func (rmwaps ResourceModelWithAllowedPropertySet) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ResourceModelWithAllowedPropertySet.

type ResourceModelWithAllowedPropertySetIdentity

type ResourceModelWithAllowedPropertySetIdentity struct {
	// PrincipalID - READ-ONLY; The principal ID of resource identity.
	PrincipalID *string `json:"principalId,omitempty"`
	// TenantID - READ-ONLY; The tenant ID of resource.
	TenantID *string `json:"tenantId,omitempty"`
	// Type - The identity type. Possible values include: 'ResourceIdentityTypeSystemAssigned'
	Type ResourceIdentityType `json:"type,omitempty"`
}

ResourceModelWithAllowedPropertySetIdentity ...

func (ResourceModelWithAllowedPropertySetIdentity) MarshalJSON

func (rmwaps ResourceModelWithAllowedPropertySetIdentity) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ResourceModelWithAllowedPropertySetIdentity.

type ResourceModelWithAllowedPropertySetPlan

type ResourceModelWithAllowedPropertySetPlan struct {
	// Name - A user defined name of the 3rd Party Artifact that is being procured.
	Name *string `json:"name,omitempty"`
	// Publisher - The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic
	Publisher *string `json:"publisher,omitempty"`
	// Product - The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding.
	Product *string `json:"product,omitempty"`
	// PromotionCode - A publisher provided promotion code as provisioned in Data Market for the said product/artifact.
	PromotionCode *string `json:"promotionCode,omitempty"`
	// Version - The version of the desired product/artifact.
	Version *string `json:"version,omitempty"`
}

ResourceModelWithAllowedPropertySetPlan ...

type ResourceModelWithAllowedPropertySetSku

type ResourceModelWithAllowedPropertySetSku struct {
	// Name - The name of the SKU. Ex - P3. It is typically a letter+number code
	Name *string `json:"name,omitempty"`
	// Tier - This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. Possible values include: 'SkuTierFree', 'SkuTierBasic', 'SkuTierStandard', 'SkuTierPremium'
	Tier SkuTier `json:"tier,omitempty"`
	// Size - The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
	Size *string `json:"size,omitempty"`
	// Family - If the service has different generations of hardware, for the same SKU, then that can be captured here.
	Family *string `json:"family,omitempty"`
	// Capacity - If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.
	Capacity *int32 `json:"capacity,omitempty"`
}

ResourceModelWithAllowedPropertySetSku ...

type RestrictionReasonCode

type RestrictionReasonCode string

RestrictionReasonCode enumerates the values for restriction reason code.

const (
	// RestrictionReasonCodeNotAvailableForSubscription ...
	RestrictionReasonCodeNotAvailableForSubscription RestrictionReasonCode = "NotAvailableForSubscription"
	// RestrictionReasonCodeQuotaID ...
	RestrictionReasonCodeQuotaID RestrictionReasonCode = "QuotaId"
)

func PossibleRestrictionReasonCodeValues

func PossibleRestrictionReasonCodeValues() []RestrictionReasonCode

PossibleRestrictionReasonCodeValues returns an array of possible values for the RestrictionReasonCode const type.

type RestrictionType

type RestrictionType string

RestrictionType enumerates the values for restriction type.

const (
	// RestrictionTypeLocation ...
	RestrictionTypeLocation RestrictionType = "Location"
)

func PossibleRestrictionTypeValues

func PossibleRestrictionTypeValues() []RestrictionType

PossibleRestrictionTypeValues returns an array of possible values for the RestrictionType const type.

type RosterProfile

type RosterProfile struct {
	// ActiveDirectoryGroupID - The AAD group ID which this lab roster is populated from. Having this set enables AAD sync mode.
	ActiveDirectoryGroupID *string `json:"activeDirectoryGroupId,omitempty"`
	// LtiContextID - The unique context identifier for the lab in the lms.
	LtiContextID *string `json:"ltiContextId,omitempty"`
	// LmsInstance - The base URI identifying the lms instance.
	LmsInstance *string `json:"lmsInstance,omitempty"`
	// LtiClientID - The unique id of the azure lab services tool in the lms.
	LtiClientID *string `json:"ltiClientId,omitempty"`
	// LtiRosterEndpoint - The uri of the names and roles service endpoint on the lms for the class attached to this lab.
	LtiRosterEndpoint *string `json:"ltiRosterEndpoint,omitempty"`
}

RosterProfile the lab user list management profile.

type SaveImageBody

type SaveImageBody struct {
	// Name - The name for the image we create.
	Name *string `json:"name,omitempty"`
	// LabVirtualMachineID - The ID of the lab virtual machine you want to save an image from.
	LabVirtualMachineID *string `json:"labVirtualMachineId,omitempty"`
}

SaveImageBody body for the save image POST

type ScaleType

type ScaleType string

ScaleType enumerates the values for scale type.

const (
	// ScaleTypeAutomatic The user is permitted to scale this SKU in and out.
	ScaleTypeAutomatic ScaleType = "Automatic"
	// ScaleTypeManual The user must manually scale this SKU in and out.
	ScaleTypeManual ScaleType = "Manual"
	// ScaleTypeNone The capacity is not adjustable in any way.
	ScaleTypeNone ScaleType = "None"
)

func PossibleScaleTypeValues

func PossibleScaleTypeValues() []ScaleType

PossibleScaleTypeValues returns an array of possible values for the ScaleType const type.

type Schedule

type Schedule struct {
	autorest.Response `json:"-"`
	// SystemData - READ-ONLY; Metadata pertaining to creation and last modification of the schedule.
	SystemData *SystemData `json:"systemData,omitempty"`
	// ScheduleProperties - Schedule resource properties
	*ScheduleProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	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. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty"`
}

Schedule schedule for automatically turning virtual machines in a lab on and off at specified times.

func (Schedule) MarshalJSON

func (s Schedule) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Schedule.

func (*Schedule) UnmarshalJSON

func (s *Schedule) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Schedule struct.

type ScheduleProperties

type ScheduleProperties struct {
	// ProvisioningState - READ-ONLY; Current provisioning state of the schedule. Possible values include: 'ProvisioningStateCreating', 'ProvisioningStateUpdating', 'ProvisioningStateDeleting', 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateLocked'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	// StartAt - When lab user virtual machines will be started. Timestamp offsets will be ignored and timeZoneId is used instead.
	StartAt *date.Time `json:"startAt,omitempty"`
	// StopAt - When lab user virtual machines will be stopped. Timestamp offsets will be ignored and timeZoneId is used instead.
	StopAt *date.Time `json:"stopAt,omitempty"`
	// RecurrencePattern - The recurrence pattern of the scheduled actions.
	RecurrencePattern *RecurrencePattern `json:"recurrencePattern,omitempty"`
	// TimeZoneID - The IANA timezone id for the schedule.
	TimeZoneID *string `json:"timeZoneId,omitempty"`
	// Notes - Notes for this schedule.
	Notes *string `json:"notes,omitempty"`
}

ScheduleProperties schedule resource properties

func (ScheduleProperties) MarshalJSON

func (sp ScheduleProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ScheduleProperties.

type ScheduleUpdate

type ScheduleUpdate struct {
	// ScheduleUpdateProperties - Schedule resource properties
	*ScheduleUpdateProperties `json:"properties,omitempty"`
}

ScheduleUpdate schedule for automatically turning virtual machines in a lab on and off at specified times. Used for updates.

func (ScheduleUpdate) MarshalJSON

func (su ScheduleUpdate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ScheduleUpdate.

func (*ScheduleUpdate) UnmarshalJSON

func (su *ScheduleUpdate) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ScheduleUpdate struct.

type ScheduleUpdateProperties

type ScheduleUpdateProperties struct {
	// StartAt - When lab user virtual machines will be started. Timestamp offsets will be ignored and timeZoneId is used instead.
	StartAt *date.Time `json:"startAt,omitempty"`
	// StopAt - When lab user virtual machines will be stopped. Timestamp offsets will be ignored and timeZoneId is used instead.
	StopAt *date.Time `json:"stopAt,omitempty"`
	// RecurrencePattern - The recurrence pattern of the scheduled actions.
	RecurrencePattern *RecurrencePattern `json:"recurrencePattern,omitempty"`
	// TimeZoneID - The IANA timezone id for the schedule.
	TimeZoneID *string `json:"timeZoneId,omitempty"`
	// Notes - Notes for this schedule.
	Notes *string `json:"notes,omitempty"`
}

ScheduleUpdateProperties schedule resource properties used for updates.

type SchedulesClient

type SchedulesClient struct {
	BaseClient
}

SchedulesClient is the client for the Schedules methods of the Labservices service.

func NewSchedulesClient

func NewSchedulesClient(subscriptionID string) SchedulesClient

NewSchedulesClient creates an instance of the SchedulesClient client.

func NewSchedulesClientWithBaseURI

func NewSchedulesClientWithBaseURI(baseURI string, subscriptionID string) SchedulesClient

NewSchedulesClientWithBaseURI creates an instance of the SchedulesClient 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 (SchedulesClient) CreateOrUpdate

func (client SchedulesClient) CreateOrUpdate(ctx context.Context, body Schedule, resourceGroupName string, labName string, scheduleName string) (result Schedule, err error)

CreateOrUpdate operation to create or update a lab schedule. Parameters: body - the request body. resourceGroupName - the name of the resource group. The name is case insensitive. labName - the name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. scheduleName - the name of the schedule that uniquely identifies it within containing lab. Used in resource URIs.

func (SchedulesClient) CreateOrUpdatePreparer

func (client SchedulesClient) CreateOrUpdatePreparer(ctx context.Context, body Schedule, resourceGroupName string, labName string, scheduleName string) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (SchedulesClient) CreateOrUpdateResponder

func (client SchedulesClient) CreateOrUpdateResponder(resp *http.Response) (result Schedule, err error)

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

func (SchedulesClient) CreateOrUpdateSender

func (client SchedulesClient) 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 (SchedulesClient) Delete

func (client SchedulesClient) Delete(ctx context.Context, resourceGroupName string, labName string, scheduleName string) (result SchedulesDeleteFuture, err error)

Delete operation to delete a schedule resource. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. labName - the name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. scheduleName - the name of the schedule that uniquely identifies it within containing lab. Used in resource URIs.

func (SchedulesClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (SchedulesClient) DeleteResponder

func (client SchedulesClient) 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 (SchedulesClient) DeleteSender

func (client SchedulesClient) DeleteSender(req *http.Request) (future SchedulesDeleteFuture, err error)

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

func (SchedulesClient) Get

func (client SchedulesClient) Get(ctx context.Context, resourceGroupName string, labName string, scheduleName string) (result Schedule, err error)

Get returns the properties of a lab Schedule. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. labName - the name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. scheduleName - the name of the schedule that uniquely identifies it within containing lab. Used in resource URIs.

func (SchedulesClient) GetPreparer

func (client SchedulesClient) GetPreparer(ctx context.Context, resourceGroupName string, labName string, scheduleName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (SchedulesClient) GetResponder

func (client SchedulesClient) GetResponder(resp *http.Response) (result Schedule, err error)

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

func (SchedulesClient) GetSender

func (client SchedulesClient) 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 (SchedulesClient) ListByLab

func (client SchedulesClient) ListByLab(ctx context.Context, resourceGroupName string, labName string, filter string) (result PagedSchedulesPage, err error)

ListByLab returns a list of all schedules for a lab. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. labName - the name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. filter - the filter to apply to the operation.

func (SchedulesClient) ListByLabComplete

func (client SchedulesClient) ListByLabComplete(ctx context.Context, resourceGroupName string, labName string, filter string) (result PagedSchedulesIterator, err error)

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

func (SchedulesClient) ListByLabPreparer

func (client SchedulesClient) ListByLabPreparer(ctx context.Context, resourceGroupName string, labName string, filter string) (*http.Request, error)

ListByLabPreparer prepares the ListByLab request.

func (SchedulesClient) ListByLabResponder

func (client SchedulesClient) ListByLabResponder(resp *http.Response) (result PagedSchedules, err error)

ListByLabResponder handles the response to the ListByLab request. The method always closes the http.Response Body.

func (SchedulesClient) ListByLabSender

func (client SchedulesClient) ListByLabSender(req *http.Request) (*http.Response, error)

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

func (SchedulesClient) Update

func (client SchedulesClient) Update(ctx context.Context, body ScheduleUpdate, resourceGroupName string, labName string, scheduleName string) (result Schedule, err error)

Update operation to update a lab schedule. Parameters: body - the request body. resourceGroupName - the name of the resource group. The name is case insensitive. labName - the name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. scheduleName - the name of the schedule that uniquely identifies it within containing lab. Used in resource URIs.

func (SchedulesClient) UpdatePreparer

func (client SchedulesClient) UpdatePreparer(ctx context.Context, body ScheduleUpdate, resourceGroupName string, labName string, scheduleName string) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (SchedulesClient) UpdateResponder

func (client SchedulesClient) UpdateResponder(resp *http.Response) (result Schedule, err error)

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

func (SchedulesClient) UpdateSender

func (client SchedulesClient) 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 SchedulesDeleteFuture

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

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

func (*SchedulesDeleteFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type SecurityProfile

type SecurityProfile struct {
	// RegistrationCode - READ-ONLY; The registration code for the lab.
	RegistrationCode *string `json:"registrationCode,omitempty"`
	// OpenAccess - Whether any user or only specified users can register to a lab. Possible values include: 'EnableStateEnabled', 'EnableStateDisabled'
	OpenAccess EnableState `json:"openAccess,omitempty"`
}

SecurityProfile the lab security profile.

func (SecurityProfile) MarshalJSON

func (sp SecurityProfile) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SecurityProfile.

type ShutdownOnIdleMode

type ShutdownOnIdleMode string

ShutdownOnIdleMode enumerates the values for shutdown on idle mode.

const (
	// ShutdownOnIdleModeLowUsage The VM will be considered as idle when user is absent and the resource (CPU
	// and disk) consumption is low.
	ShutdownOnIdleModeLowUsage ShutdownOnIdleMode = "LowUsage"
	// ShutdownOnIdleModeNone The VM won't be shut down when it is idle.
	ShutdownOnIdleModeNone ShutdownOnIdleMode = "None"
	// ShutdownOnIdleModeUserAbsence The VM will be considered as idle when there is no keyboard or mouse
	// input.
	ShutdownOnIdleModeUserAbsence ShutdownOnIdleMode = "UserAbsence"
)

func PossibleShutdownOnIdleModeValues

func PossibleShutdownOnIdleModeValues() []ShutdownOnIdleMode

PossibleShutdownOnIdleModeValues returns an array of possible values for the ShutdownOnIdleMode const type.

type Sku

type Sku struct {
	// Name - The name of the SKU. Ex - P3. It is typically a letter+number code
	Name *string `json:"name,omitempty"`
	// Tier - This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. Possible values include: 'SkuTierFree', 'SkuTierBasic', 'SkuTierStandard', 'SkuTierPremium'
	Tier SkuTier `json:"tier,omitempty"`
	// Size - The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
	Size *string `json:"size,omitempty"`
	// Family - If the service has different generations of hardware, for the same SKU, then that can be captured here.
	Family *string `json:"family,omitempty"`
	// Capacity - If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.
	Capacity *int32 `json:"capacity,omitempty"`
}

Sku the resource model definition representing SKU

type SkuCapabilities

type SkuCapabilities struct {
	// Name - READ-ONLY; The name of the capability for a SKU.
	Name *string `json:"name,omitempty"`
	// Value - READ-ONLY; The value of the capability for a SKU.
	Value *string `json:"value,omitempty"`
}

SkuCapabilities the array of capabilities of a lab services SKU.

func (SkuCapabilities) MarshalJSON

func (sc SkuCapabilities) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SkuCapabilities.

type SkuCapacity

type SkuCapacity struct {
	// Default - READ-ONLY; The default capacity for this resource.
	Default *int64 `json:"default,omitempty"`
	// Minimum - READ-ONLY; The lowest permitted capacity for this resource.
	Minimum *int64 `json:"minimum,omitempty"`
	// Maximum - READ-ONLY; The highest permitted capacity for this resource.
	Maximum *int64 `json:"maximum,omitempty"`
	// ScaleType - READ-ONLY; The localized name of the resource. Possible values include: 'ScaleTypeNone', 'ScaleTypeManual', 'ScaleTypeAutomatic'
	ScaleType ScaleType `json:"scaleType,omitempty"`
}

SkuCapacity the scale out/in options of the SKU.

func (SkuCapacity) MarshalJSON

func (sc SkuCapacity) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SkuCapacity.

type SkuCost

type SkuCost struct {
	// MeterID - READ-ONLY; The meter id.
	MeterID *string `json:"meterId,omitempty"`
	// Quantity - READ-ONLY; The quantity of units charged.
	Quantity *float64 `json:"quantity,omitempty"`
	// ExtendedUnit - READ-ONLY; The extended unit.
	ExtendedUnit *string `json:"extendedUnit,omitempty"`
}

SkuCost the array of costs of a lab services SKU.

func (SkuCost) MarshalJSON

func (sc SkuCost) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SkuCost.

type SkuRestrictions

type SkuRestrictions struct {
	// Type - READ-ONLY; The type of restriction. Possible values include: 'RestrictionTypeLocation'
	Type RestrictionType `json:"type,omitempty"`
	// Values - READ-ONLY; The values of the restriction.
	Values *[]string `json:"values,omitempty"`
	// ReasonCode - READ-ONLY; The reason for the restriction. Possible values include: 'RestrictionReasonCodeQuotaID', 'RestrictionReasonCodeNotAvailableForSubscription'
	ReasonCode RestrictionReasonCode `json:"reasonCode,omitempty"`
}

SkuRestrictions the restriction details.

func (SkuRestrictions) MarshalJSON

func (sr SkuRestrictions) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SkuRestrictions.

type SkuTier

type SkuTier string

SkuTier enumerates the values for sku tier.

const (
	// SkuTierBasic ...
	SkuTierBasic SkuTier = "Basic"
	// SkuTierFree ...
	SkuTierFree SkuTier = "Free"
	// SkuTierPremium ...
	SkuTierPremium SkuTier = "Premium"
	// SkuTierStandard ...
	SkuTierStandard SkuTier = "Standard"
)

func PossibleSkuTierValues

func PossibleSkuTierValues() []SkuTier

PossibleSkuTierValues returns an array of possible values for the SkuTier const type.

type SkuTierEnum

type SkuTierEnum string

SkuTierEnum enumerates the values for sku tier enum.

const (
	// SkuTierEnumPremium ...
	SkuTierEnumPremium SkuTierEnum = "Premium"
	// SkuTierEnumStandard ...
	SkuTierEnumStandard SkuTierEnum = "Standard"
)

func PossibleSkuTierEnumValues

func PossibleSkuTierEnumValues() []SkuTierEnum

PossibleSkuTierEnumValues returns an array of possible values for the SkuTierEnum const type.

type SkuType

type SkuType struct {
	// ResourceType - READ-ONLY; The lab services resource type.
	ResourceType *string `json:"resourceType,omitempty"`
	// Name - READ-ONLY; The name of the SKU.
	Name *string `json:"name,omitempty"`
	// Tier - READ-ONLY; The tier of the SKU. Possible values include: 'SkuTierEnumStandard', 'SkuTierEnumPremium'
	Tier SkuTierEnum `json:"tier,omitempty"`
	// Size - READ-ONLY; The SKU size.
	Size *string `json:"size,omitempty"`
	// Family - READ-ONLY; The family of the SKU.
	Family   *string      `json:"family,omitempty"`
	Capacity *SkuCapacity `json:"capacity,omitempty"`
	// Capabilities - READ-ONLY; The capabilities of the SKU.
	Capabilities *[]SkuCapabilities `json:"capabilities,omitempty"`
	// Locations - READ-ONLY; List of locations that are available for a size.
	Locations *[]string `json:"locations,omitempty"`
	// Costs - READ-ONLY; Metadata for retrieving price info of a lab services SKUs.
	Costs *[]SkuCost `json:"costs,omitempty"`
	// Restrictions - READ-ONLY; Restrictions of a lab services SKUs.
	Restrictions *[]SkuRestrictions `json:"restrictions,omitempty"`
}

SkuType azure Lab Services resource SKUs

func (SkuType) MarshalJSON

func (st SkuType) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SkuType.

type SkusClient

type SkusClient struct {
	BaseClient
}

SkusClient is the client for the Skus methods of the Labservices service.

func NewSkusClient

func NewSkusClient(subscriptionID string) SkusClient

NewSkusClient creates an instance of the SkusClient client.

func NewSkusClientWithBaseURI

func NewSkusClientWithBaseURI(baseURI string, subscriptionID string) SkusClient

NewSkusClientWithBaseURI creates an instance of the SkusClient 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 (SkusClient) List

func (client SkusClient) List(ctx context.Context, filter string) (result PagedLabServicesSkusPage, err error)

List returns a list of all the Azure Lab Services resource SKUs. Parameters: filter - the filter to apply to the operation.

func (SkusClient) ListComplete

func (client SkusClient) ListComplete(ctx context.Context, filter string) (result PagedLabServicesSkusIterator, err error)

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

func (SkusClient) ListPreparer

func (client SkusClient) ListPreparer(ctx context.Context, filter string) (*http.Request, error)

ListPreparer prepares the List request.

func (SkusClient) ListResponder

func (client SkusClient) ListResponder(resp *http.Response) (result PagedLabServicesSkus, err error)

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

func (SkusClient) ListSender

func (client SkusClient) 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 SupportInfo

type SupportInfo struct {
	// URL - Support web address.
	URL *string `json:"url,omitempty"`
	// Email - Support contact email address.
	Email *string `json:"email,omitempty"`
	// Phone - Support contact phone number.
	Phone *string `json:"phone,omitempty"`
	// Instructions - Support instructions.
	Instructions *string `json:"instructions,omitempty"`
}

SupportInfo support contact information and instructions.

type SystemData

type SystemData struct {
	// CreatedBy - The identity that created the resource.
	CreatedBy *string `json:"createdBy,omitempty"`
	// CreatedByType - The type of identity that created the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey'
	CreatedByType CreatedByType `json:"createdByType,omitempty"`
	// CreatedAt - The timestamp of resource creation (UTC).
	CreatedAt *date.Time `json:"createdAt,omitempty"`
	// LastModifiedBy - The identity that last modified the resource.
	LastModifiedBy *string `json:"lastModifiedBy,omitempty"`
	// LastModifiedByType - The type of identity that last modified the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey'
	LastModifiedByType CreatedByType `json:"lastModifiedByType,omitempty"`
	// LastModifiedAt - The timestamp of resource last modification (UTC)
	LastModifiedAt *date.Time `json:"lastModifiedAt,omitempty"`
}

SystemData metadata pertaining to creation and last modification of the resource.

type TrackedResource

type TrackedResource struct {
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// Location - The geo-location where the resource lives
	Location *string `json:"location,omitempty"`
	// ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	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. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty"`
}

TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'

func (TrackedResource) MarshalJSON

func (tr TrackedResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TrackedResource.

type TrackedResourceUpdate

type TrackedResourceUpdate struct {
	// Tags - Resource tags.
	Tags *[]string `json:"tags,omitempty"`
}

TrackedResourceUpdate base tracked resource type for all PATCH updates.

type Usage

type Usage struct {
	// CurrentValue - The current usage.
	CurrentValue *int64 `json:"currentValue,omitempty"`
	// Limit - The limit integer.
	Limit *int64 `json:"limit,omitempty"`
	// Unit - The unit details. Possible values include: 'UsageUnitCount'
	Unit UsageUnit `json:"unit,omitempty"`
	// Name - The name.
	Name *UsageName `json:"name,omitempty"`
	// ID - The fully qualified arm resource id.
	ID *string `json:"id,omitempty"`
}

Usage the core usage details.

type UsageName

type UsageName struct {
	// LocalizedValue - The localized name of the resource.
	LocalizedValue *string `json:"localizedValue,omitempty"`
	// Value - The name of the resource.
	Value *string `json:"value,omitempty"`
}

UsageName the Usage Names.

type UsageUnit

type UsageUnit string

UsageUnit enumerates the values for usage unit.

const (
	// UsageUnitCount ...
	UsageUnitCount UsageUnit = "Count"
)

func PossibleUsageUnitValues

func PossibleUsageUnitValues() []UsageUnit

PossibleUsageUnitValues returns an array of possible values for the UsageUnit const type.

type UsagesClient

type UsagesClient struct {
	BaseClient
}

UsagesClient is the client for the Usages methods of the Labservices service.

func NewUsagesClient

func NewUsagesClient(subscriptionID string) UsagesClient

NewUsagesClient creates an instance of the UsagesClient client.

func NewUsagesClientWithBaseURI

func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient

NewUsagesClientWithBaseURI creates an instance of the UsagesClient 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 (UsagesClient) ListByLocation

func (client UsagesClient) ListByLocation(ctx context.Context, location string, filter string) (result ListUsagesResultPage, err error)

ListByLocation returns list of usage per SKU family for the specified subscription in the specified region. Parameters: location - the location name. filter - the filter to apply to the operation.

func (UsagesClient) ListByLocationComplete

func (client UsagesClient) ListByLocationComplete(ctx context.Context, location string, filter string) (result ListUsagesResultIterator, err error)

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

func (UsagesClient) ListByLocationPreparer

func (client UsagesClient) ListByLocationPreparer(ctx context.Context, location string, filter string) (*http.Request, error)

ListByLocationPreparer prepares the ListByLocation request.

func (UsagesClient) ListByLocationResponder

func (client UsagesClient) ListByLocationResponder(resp *http.Response) (result ListUsagesResult, err error)

ListByLocationResponder handles the response to the ListByLocation request. The method always closes the http.Response Body.

func (UsagesClient) ListByLocationSender

func (client UsagesClient) ListByLocationSender(req *http.Request) (*http.Response, error)

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

type User

type User struct {
	autorest.Response `json:"-"`
	// SystemData - READ-ONLY; Metadata pertaining to creation and last modification of the user resource.
	SystemData *SystemData `json:"systemData,omitempty"`
	// UserProperties - User resource properties
	*UserProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	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. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty"`
}

User user of a lab that can register for and use virtual machines within the 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 UserProperties

type UserProperties struct {
	// ProvisioningState - READ-ONLY; Current provisioning state of the user resource. Possible values include: 'ProvisioningStateCreating', 'ProvisioningStateUpdating', 'ProvisioningStateDeleting', 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateLocked'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	// DisplayName - READ-ONLY; Display name of the user, for example user's full name.
	DisplayName *string `json:"displayName,omitempty"`
	// Email - Email address of the user.
	Email *string `json:"email,omitempty"`
	// RegistrationState - READ-ONLY; State of the user's registration within the lab. Possible values include: 'RegistrationStateRegistered', 'RegistrationStateNotRegistered'
	RegistrationState RegistrationState `json:"registrationState,omitempty"`
	// InvitationState - READ-ONLY; State of the invitation message for the user. Possible values include: 'InvitationStateNotSent', 'InvitationStateSending', 'InvitationStateSent', 'InvitationStateFailed'
	InvitationState InvitationState `json:"invitationState,omitempty"`
	// InvitationSent - READ-ONLY; Date and time when the invitation message was sent to the user.
	InvitationSent *date.Time `json:"invitationSent,omitempty"`
	// TotalUsage - READ-ONLY; How long the user has used their virtual machines in this lab.
	TotalUsage *string `json:"totalUsage,omitempty"`
	// AdditionalUsageQuota - The amount of usage quota time the user gets in addition to the lab usage quota.
	AdditionalUsageQuota *string `json:"additionalUsageQuota,omitempty"`
}

UserProperties user resource properties

func (UserProperties) MarshalJSON

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

MarshalJSON is the custom marshaler for UserProperties.

type UserUpdate

type UserUpdate struct {
	// UserUpdateProperties - User resource properties
	*UserUpdateProperties `json:"properties,omitempty"`
}

UserUpdate user of a lab that can register for and use virtual machines within the lab. Used for updates.

func (UserUpdate) MarshalJSON

func (uu UserUpdate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for UserUpdate.

func (*UserUpdate) UnmarshalJSON

func (uu *UserUpdate) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for UserUpdate struct.

type UserUpdateProperties

type UserUpdateProperties struct {
	// AdditionalUsageQuota - The amount of usage quota time the user gets in addition to the lab usage quota.
	AdditionalUsageQuota *string `json:"additionalUsageQuota,omitempty"`
}

UserUpdateProperties user resource properties used for updates.

type UsersClient

type UsersClient struct {
	BaseClient
}

UsersClient is the client for the Users methods of the Labservices service.

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, body User, resourceGroupName string, labName string, userName string) (result UsersCreateOrUpdateFuture, err error)

CreateOrUpdate operation to create or update a lab user. Parameters: body - the request body. resourceGroupName - the name of the resource group. The name is case insensitive. labName - the name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. userName - the name of the user that uniquely identifies it within containing lab. Used in resource URIs.

func (UsersClient) CreateOrUpdatePreparer

func (client UsersClient) CreateOrUpdatePreparer(ctx context.Context, body User, resourceGroupName string, labName string, userName string) (*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) (future UsersCreateOrUpdateFuture, err 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, labName string, userName string) (result UsersDeleteFuture, err error)

Delete operation to delete a user resource. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. labName - the name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. userName - the name of the user that uniquely identifies it within containing lab. Used in resource URIs.

func (UsersClient) DeletePreparer

func (client UsersClient) DeletePreparer(ctx context.Context, resourceGroupName 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, labName string, userName string) (result User, err error)

Get returns the properties of a lab user. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. labName - the name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. userName - the name of the user that uniquely identifies it within containing lab. Used in resource URIs.

func (UsersClient) GetPreparer

func (client UsersClient) GetPreparer(ctx context.Context, resourceGroupName string, labName string, userName 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) Invite

func (client UsersClient) Invite(ctx context.Context, body InviteBody, resourceGroupName string, labName string, userName string) (result UsersInviteFuture, err error)

Invite operation to invite a user to a lab. Parameters: body - the request body. resourceGroupName - the name of the resource group. The name is case insensitive. labName - the name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. userName - the name of the user that uniquely identifies it within containing lab. Used in resource URIs.

func (UsersClient) InvitePreparer

func (client UsersClient) InvitePreparer(ctx context.Context, body InviteBody, resourceGroupName string, labName string, userName string) (*http.Request, error)

InvitePreparer prepares the Invite request.

func (UsersClient) InviteResponder

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

InviteResponder handles the response to the Invite request. The method always closes the http.Response Body.

func (UsersClient) InviteSender

func (client UsersClient) InviteSender(req *http.Request) (future UsersInviteFuture, err error)

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

func (UsersClient) ListByLab

func (client UsersClient) ListByLab(ctx context.Context, resourceGroupName string, labName string, filter string) (result PagedUsersPage, err error)

ListByLab returns a list of all users for a lab. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. labName - the name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. filter - the filter to apply to the operation.

func (UsersClient) ListByLabComplete

func (client UsersClient) ListByLabComplete(ctx context.Context, resourceGroupName string, labName string, filter string) (result PagedUsersIterator, err error)

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

func (UsersClient) ListByLabPreparer

func (client UsersClient) ListByLabPreparer(ctx context.Context, resourceGroupName string, labName string, filter string) (*http.Request, error)

ListByLabPreparer prepares the ListByLab request.

func (UsersClient) ListByLabResponder

func (client UsersClient) ListByLabResponder(resp *http.Response) (result PagedUsers, err error)

ListByLabResponder handles the response to the ListByLab request. The method always closes the http.Response Body.

func (UsersClient) ListByLabSender

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

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

func (UsersClient) Update

func (client UsersClient) Update(ctx context.Context, body UserUpdate, resourceGroupName string, labName string, userName string) (result UsersUpdateFuture, err error)

Update operation to update a lab user. Parameters: body - the request body. resourceGroupName - the name of the resource group. The name is case insensitive. labName - the name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. userName - the name of the user that uniquely identifies it within containing lab. Used in resource URIs.

func (UsersClient) UpdatePreparer

func (client UsersClient) UpdatePreparer(ctx context.Context, body UserUpdate, resourceGroupName string, labName string, userName string) (*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) (future UsersUpdateFuture, err error)

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

type UsersCreateOrUpdateFuture

type UsersCreateOrUpdateFuture 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) (User, error)
}

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

func (*UsersCreateOrUpdateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

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 UsersInviteFuture

type UsersInviteFuture 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)
}

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

func (*UsersInviteFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type UsersUpdateFuture

type UsersUpdateFuture 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) (User, error)
}

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

func (*UsersUpdateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type VirtualMachine

type VirtualMachine struct {
	autorest.Response `json:"-"`
	// SystemData - READ-ONLY; System data of the Lab virtual machine.
	SystemData *SystemData `json:"systemData,omitempty"`
	// VirtualMachineProperties - Virtual machine resource properties
	*VirtualMachineProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	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. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty"`
}

VirtualMachine a lab virtual machine resource.

func (VirtualMachine) MarshalJSON

func (VM VirtualMachine) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VirtualMachine.

func (*VirtualMachine) UnmarshalJSON

func (VM *VirtualMachine) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for VirtualMachine struct.

type VirtualMachineAdditionalCapabilities

type VirtualMachineAdditionalCapabilities struct {
	// InstallGpuDrivers - Flag to pre-install dedicated GPU drivers. Possible values include: 'EnableStateEnabled', 'EnableStateDisabled'
	InstallGpuDrivers EnableState `json:"installGpuDrivers,omitempty"`
}

VirtualMachineAdditionalCapabilities the additional capabilities for a lab VM.

type VirtualMachineConnectionProfile

type VirtualMachineConnectionProfile struct {
	// PrivateIPAddress - READ-ONLY; The private IP address of the virtual machine.
	PrivateIPAddress *string `json:"privateIpAddress,omitempty"`
	// SSHAuthority - READ-ONLY; Port and host name separated by semicolon for connecting via SSH protocol to the virtual machine.
	SSHAuthority *string `json:"sshAuthority,omitempty"`
	// SSHInBrowserURL - READ-ONLY; URL for connecting via SSH protocol to the virtual machine in browser.
	SSHInBrowserURL *string `json:"sshInBrowserUrl,omitempty"`
	// RdpAuthority - READ-ONLY; Port and host name separated by semicolon for connecting via RDP protocol to the virtual machine.
	RdpAuthority *string `json:"rdpAuthority,omitempty"`
	// RdpInBrowserURL - READ-ONLY; URL for connecting via RDP protocol to the virtual machine in browser.
	RdpInBrowserURL *string `json:"rdpInBrowserUrl,omitempty"`
	// AdminUsername - READ-ONLY; The username used to log on to the virtual machine as admin.
	AdminUsername *string `json:"adminUsername,omitempty"`
	// NonAdminUsername - READ-ONLY; The username used to log on to the virtual machine as non-admin, if one exists.
	NonAdminUsername *string `json:"nonAdminUsername,omitempty"`
}

VirtualMachineConnectionProfile the connection information for the virtual machine

func (VirtualMachineConnectionProfile) MarshalJSON

func (vmcp VirtualMachineConnectionProfile) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VirtualMachineConnectionProfile.

type VirtualMachineProfile

type VirtualMachineProfile struct {
	// CreateOption - Indicates what lab virtual machines are created from. Possible values include: 'CreateOptionImage', 'CreateOptionTemplateVM'
	CreateOption CreateOption `json:"createOption,omitempty"`
	// ImageReference - The image configuration for lab virtual machines.
	ImageReference *ImageReference `json:"imageReference,omitempty"`
	// OsType - READ-ONLY; The OS type of the image. Possible values include: 'OsTypeWindows', 'OsTypeLinux'
	OsType OsType `json:"osType,omitempty"`
	// Sku - The SKU for the lab. Defines the type of virtual machines used in the lab.
	Sku *Sku `json:"sku,omitempty"`
	// AdditionalCapabilities - Additional VM capabilities.
	AdditionalCapabilities *VirtualMachineAdditionalCapabilities `json:"additionalCapabilities,omitempty"`
	// UsageQuota - The initial quota alloted to each lab user. Must be a time span between 0 and 9999 hours.
	UsageQuota *string `json:"usageQuota,omitempty"`
	// UseSharedPassword - Enabling this option will use the same password for all user VMs. Possible values include: 'EnableStateEnabled', 'EnableStateDisabled'
	UseSharedPassword EnableState `json:"useSharedPassword,omitempty"`
	// AdminUser - Credentials for the admin user on the VM.
	AdminUser *Credentials `json:"adminUser,omitempty"`
	// NonAdminUser - Credentials for the non-admin user on the VM, if one exists.
	NonAdminUser *Credentials `json:"nonAdminUser,omitempty"`
}

VirtualMachineProfile the base virtual machine configuration for a lab.

func (VirtualMachineProfile) MarshalJSON

func (vmp VirtualMachineProfile) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VirtualMachineProfile.

type VirtualMachineProperties

type VirtualMachineProperties struct {
	// ProvisioningState - READ-ONLY; Current provisioning state of the virtual machine. Possible values include: 'ProvisioningStateCreating', 'ProvisioningStateUpdating', 'ProvisioningStateDeleting', 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateLocked'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	// State - READ-ONLY; The current state of the virtual machine. Possible values include: 'VirtualMachineStateStopped', 'VirtualMachineStateStarting', 'VirtualMachineStateRunning', 'VirtualMachineStateStopping', 'VirtualMachineStateResettingPassword', 'VirtualMachineStateReimaging', 'VirtualMachineStateRedeploying'
	State VirtualMachineState `json:"state,omitempty"`
	// ConnectionProfile - READ-ONLY; Profile for information about connecting to the virtual machine.
	ConnectionProfile *VirtualMachineConnectionProfile `json:"connectionProfile,omitempty"`
	// ClaimedByUserID - READ-ONLY; The lab user ID (not the PUID!) of who claimed the virtual machine.
	ClaimedByUserID *string `json:"claimedByUserId,omitempty"`
	// VMType - READ-ONLY; The type of this VM resource. Possible values include: 'VirtualMachineTypeUser', 'VirtualMachineTypeTemplate'
	VMType VirtualMachineType `json:"vmType,omitempty"`
}

VirtualMachineProperties virtual machine resource properties

func (VirtualMachineProperties) MarshalJSON

func (vmp VirtualMachineProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VirtualMachineProperties.

type VirtualMachineState

type VirtualMachineState string

VirtualMachineState enumerates the values for virtual machine state.

const (
	// VirtualMachineStateRedeploying The VM is being redeployed.
	VirtualMachineStateRedeploying VirtualMachineState = "Redeploying"
	// VirtualMachineStateReimaging The VM is being reimaged.
	VirtualMachineStateReimaging VirtualMachineState = "Reimaging"
	// VirtualMachineStateResettingPassword The VM password is being reset.
	VirtualMachineStateResettingPassword VirtualMachineState = "ResettingPassword"
	// VirtualMachineStateRunning The VM is running.
	VirtualMachineStateRunning VirtualMachineState = "Running"
	// VirtualMachineStateStarting The VM is starting.
	VirtualMachineStateStarting VirtualMachineState = "Starting"
	// VirtualMachineStateStopped The VM is currently stopped.
	VirtualMachineStateStopped VirtualMachineState = "Stopped"
	// VirtualMachineStateStopping The VM is stopping.
	VirtualMachineStateStopping VirtualMachineState = "Stopping"
)

func PossibleVirtualMachineStateValues

func PossibleVirtualMachineStateValues() []VirtualMachineState

PossibleVirtualMachineStateValues returns an array of possible values for the VirtualMachineState const type.

type VirtualMachineType

type VirtualMachineType string

VirtualMachineType enumerates the values for virtual machine type.

const (
	// VirtualMachineTypeTemplate A template VM
	VirtualMachineTypeTemplate VirtualMachineType = "Template"
	// VirtualMachineTypeUser A user VM
	VirtualMachineTypeUser VirtualMachineType = "User"
)

func PossibleVirtualMachineTypeValues

func PossibleVirtualMachineTypeValues() []VirtualMachineType

PossibleVirtualMachineTypeValues returns an array of possible values for the VirtualMachineType const type.

type VirtualMachinesClient

type VirtualMachinesClient struct {
	BaseClient
}

VirtualMachinesClient is the client for the VirtualMachines methods of the Labservices service.

func NewVirtualMachinesClient

func NewVirtualMachinesClient(subscriptionID string) VirtualMachinesClient

NewVirtualMachinesClient creates an instance of the VirtualMachinesClient client.

func NewVirtualMachinesClientWithBaseURI

func NewVirtualMachinesClientWithBaseURI(baseURI string, subscriptionID string) VirtualMachinesClient

NewVirtualMachinesClientWithBaseURI creates an instance of the VirtualMachinesClient 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 (VirtualMachinesClient) Get

func (client VirtualMachinesClient) Get(ctx context.Context, resourceGroupName string, labName string, virtualMachineName string) (result VirtualMachine, err error)

Get returns the properties for a lab virtual machine. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. labName - the name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. virtualMachineName - the ID of the virtual machine that uniquely identifies it within the containing lab. Used in resource URIs.

func (VirtualMachinesClient) GetPreparer

func (client VirtualMachinesClient) GetPreparer(ctx context.Context, resourceGroupName string, labName string, virtualMachineName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (VirtualMachinesClient) GetResponder

func (client VirtualMachinesClient) GetResponder(resp *http.Response) (result VirtualMachine, err error)

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

func (VirtualMachinesClient) GetSender

func (client VirtualMachinesClient) 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 (VirtualMachinesClient) ListByLab

func (client VirtualMachinesClient) ListByLab(ctx context.Context, resourceGroupName string, labName string, filter string) (result PagedVirtualMachinesPage, err error)

ListByLab returns a list of all virtual machines for a lab. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. labName - the name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. filter - the filter to apply to the operation.

func (VirtualMachinesClient) ListByLabComplete

func (client VirtualMachinesClient) ListByLabComplete(ctx context.Context, resourceGroupName string, labName string, filter string) (result PagedVirtualMachinesIterator, err error)

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

func (VirtualMachinesClient) ListByLabPreparer

func (client VirtualMachinesClient) ListByLabPreparer(ctx context.Context, resourceGroupName string, labName string, filter string) (*http.Request, error)

ListByLabPreparer prepares the ListByLab request.

func (VirtualMachinesClient) ListByLabResponder

func (client VirtualMachinesClient) ListByLabResponder(resp *http.Response) (result PagedVirtualMachines, err error)

ListByLabResponder handles the response to the ListByLab request. The method always closes the http.Response Body.

func (VirtualMachinesClient) ListByLabSender

func (client VirtualMachinesClient) ListByLabSender(req *http.Request) (*http.Response, error)

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

func (VirtualMachinesClient) Redeploy

func (client VirtualMachinesClient) Redeploy(ctx context.Context, resourceGroupName string, labName string, virtualMachineName string) (result VirtualMachinesRedeployFuture, err error)

Redeploy action to redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. labName - the name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. virtualMachineName - the ID of the virtual machine that uniquely identifies it within the containing lab. Used in resource URIs.

func (VirtualMachinesClient) RedeployPreparer

func (client VirtualMachinesClient) RedeployPreparer(ctx context.Context, resourceGroupName string, labName string, virtualMachineName string) (*http.Request, error)

RedeployPreparer prepares the Redeploy request.

func (VirtualMachinesClient) RedeployResponder

func (client VirtualMachinesClient) RedeployResponder(resp *http.Response) (result autorest.Response, err error)

RedeployResponder handles the response to the Redeploy request. The method always closes the http.Response Body.

func (VirtualMachinesClient) RedeploySender

func (client VirtualMachinesClient) RedeploySender(req *http.Request) (future VirtualMachinesRedeployFuture, err error)

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

func (VirtualMachinesClient) Reimage

func (client VirtualMachinesClient) Reimage(ctx context.Context, resourceGroupName string, labName string, virtualMachineName string) (result VirtualMachinesReimageFuture, err error)

Reimage re-image a lab virtual machine. The virtual machine will be deleted and recreated using the latest published snapshot of the reference environment of the lab. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. labName - the name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. virtualMachineName - the ID of the virtual machine that uniquely identifies it within the containing lab. Used in resource URIs.

func (VirtualMachinesClient) ReimagePreparer

func (client VirtualMachinesClient) ReimagePreparer(ctx context.Context, resourceGroupName string, labName string, virtualMachineName string) (*http.Request, error)

ReimagePreparer prepares the Reimage request.

func (VirtualMachinesClient) ReimageResponder

func (client VirtualMachinesClient) ReimageResponder(resp *http.Response) (result autorest.Response, err error)

ReimageResponder handles the response to the Reimage request. The method always closes the http.Response Body.

func (VirtualMachinesClient) ReimageSender

func (client VirtualMachinesClient) ReimageSender(req *http.Request) (future VirtualMachinesReimageFuture, err error)

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

func (VirtualMachinesClient) ResetPassword

func (client VirtualMachinesClient) ResetPassword(ctx context.Context, body ResetPasswordBody, resourceGroupName string, labName string, virtualMachineName string) (result VirtualMachinesResetPasswordFuture, err error)

ResetPassword resets a lab virtual machine password. Parameters: body - the request body. resourceGroupName - the name of the resource group. The name is case insensitive. labName - the name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. virtualMachineName - the ID of the virtual machine that uniquely identifies it within the containing lab. Used in resource URIs.

func (VirtualMachinesClient) ResetPasswordPreparer

func (client VirtualMachinesClient) ResetPasswordPreparer(ctx context.Context, body ResetPasswordBody, resourceGroupName string, labName string, virtualMachineName string) (*http.Request, error)

ResetPasswordPreparer prepares the ResetPassword request.

func (VirtualMachinesClient) ResetPasswordResponder

func (client VirtualMachinesClient) 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 (VirtualMachinesClient) ResetPasswordSender

func (client VirtualMachinesClient) ResetPasswordSender(req *http.Request) (future VirtualMachinesResetPasswordFuture, err error)

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

func (VirtualMachinesClient) Start

func (client VirtualMachinesClient) Start(ctx context.Context, resourceGroupName string, labName string, virtualMachineName string) (result VirtualMachinesStartFuture, err error)

Start action to start a lab virtual machine. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. labName - the name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. virtualMachineName - the ID of the virtual machine that uniquely identifies it within the containing lab. Used in resource URIs.

func (VirtualMachinesClient) StartPreparer

func (client VirtualMachinesClient) StartPreparer(ctx context.Context, resourceGroupName string, labName string, virtualMachineName string) (*http.Request, error)

StartPreparer prepares the Start request.

func (VirtualMachinesClient) StartResponder

func (client VirtualMachinesClient) 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 (VirtualMachinesClient) StartSender

func (client VirtualMachinesClient) StartSender(req *http.Request) (future VirtualMachinesStartFuture, err error)

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

func (VirtualMachinesClient) Stop

func (client VirtualMachinesClient) Stop(ctx context.Context, resourceGroupName string, labName string, virtualMachineName string) (result VirtualMachinesStopFuture, err error)

Stop action to stop a lab virtual machine. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. labName - the name of the lab that uniquely identifies it within containing lab account. Used in resource URIs. virtualMachineName - the ID of the virtual machine that uniquely identifies it within the containing lab. Used in resource URIs.

func (VirtualMachinesClient) StopPreparer

func (client VirtualMachinesClient) StopPreparer(ctx context.Context, resourceGroupName string, labName string, virtualMachineName string) (*http.Request, error)

StopPreparer prepares the Stop request.

func (VirtualMachinesClient) StopResponder

func (client VirtualMachinesClient) 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 (VirtualMachinesClient) StopSender

func (client VirtualMachinesClient) StopSender(req *http.Request) (future VirtualMachinesStopFuture, err error)

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

type VirtualMachinesRedeployFuture

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

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

func (*VirtualMachinesRedeployFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type VirtualMachinesReimageFuture

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

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

func (*VirtualMachinesReimageFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type VirtualMachinesResetPasswordFuture

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

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

func (*VirtualMachinesResetPasswordFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type VirtualMachinesStartFuture

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

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

func (*VirtualMachinesStartFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type VirtualMachinesStopFuture

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

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

func (*VirtualMachinesStopFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type WeekDay

type WeekDay string

WeekDay enumerates the values for week day.

const (
	// WeekDayFriday Schedule will run on Friday
	WeekDayFriday WeekDay = "Friday"
	// WeekDayMonday Schedule will run on Monday
	WeekDayMonday WeekDay = "Monday"
	// WeekDaySaturday Schedule will run on Saturday
	WeekDaySaturday WeekDay = "Saturday"
	// WeekDaySunday Schedule will run on Sunday
	WeekDaySunday WeekDay = "Sunday"
	// WeekDayThursday Schedule will run on Thursday
	WeekDayThursday WeekDay = "Thursday"
	// WeekDayTuesday Schedule will run on Tuesday
	WeekDayTuesday WeekDay = "Tuesday"
	// WeekDayWednesday Schedule will run on Wednesday
	WeekDayWednesday WeekDay = "Wednesday"
)

func PossibleWeekDayValues

func PossibleWeekDayValues() []WeekDay

PossibleWeekDayValues returns an array of possible values for the WeekDay const type.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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