devtestlabs

package
v11.2.1-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package devtestlabs implements the Azure ARM Devtestlabs service API version 2016-05-15.

The DevTest Labs Client.

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Devtestlabs
	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 ApplicableSchedule

type ApplicableSchedule struct {
	autorest.Response             `json:"-"`
	ID                            *string             `json:"id,omitempty"`
	Name                          *string             `json:"name,omitempty"`
	Type                          *string             `json:"type,omitempty"`
	Location                      *string             `json:"location,omitempty"`
	Tags                          *map[string]*string `json:"tags,omitempty"`
	*ApplicableScheduleProperties `json:"properties,omitempty"`
}

ApplicableSchedule is schedules applicable to a virtual machine. The schedules may have been defined on a VM or on lab level.

type ApplicableScheduleFragment

type ApplicableScheduleFragment struct {
	ID                                    *string             `json:"id,omitempty"`
	Name                                  *string             `json:"name,omitempty"`
	Type                                  *string             `json:"type,omitempty"`
	Location                              *string             `json:"location,omitempty"`
	Tags                                  *map[string]*string `json:"tags,omitempty"`
	*ApplicableSchedulePropertiesFragment `json:"properties,omitempty"`
}

ApplicableScheduleFragment is schedules applicable to a virtual machine. The schedules may have been defined on a VM or on lab level.

type ApplicableScheduleProperties

type ApplicableScheduleProperties struct {
	LabVmsShutdown *Schedule `json:"labVmsShutdown,omitempty"`
	LabVmsStartup  *Schedule `json:"labVmsStartup,omitempty"`
}

ApplicableScheduleProperties is properties of a schedules applicable to a virtual machine.

type ApplicableSchedulePropertiesFragment

type ApplicableSchedulePropertiesFragment struct {
	LabVmsShutdown *ScheduleFragment `json:"labVmsShutdown,omitempty"`
	LabVmsStartup  *ScheduleFragment `json:"labVmsStartup,omitempty"`
}

ApplicableSchedulePropertiesFragment is properties of a schedules applicable to a virtual machine.

type ApplyArtifactsRequest

type ApplyArtifactsRequest struct {
	Artifacts *[]ArtifactInstallProperties `json:"artifacts,omitempty"`
}

ApplyArtifactsRequest is request body for applying artifacts to a virtual machine.

type ArmTemplate

type ArmTemplate struct {
	autorest.Response      `json:"-"`
	ID                     *string             `json:"id,omitempty"`
	Name                   *string             `json:"name,omitempty"`
	Type                   *string             `json:"type,omitempty"`
	Location               *string             `json:"location,omitempty"`
	Tags                   *map[string]*string `json:"tags,omitempty"`
	*ArmTemplateProperties `json:"properties,omitempty"`
}

ArmTemplate is an Azure Resource Manager template.

type ArmTemplateInfo

type ArmTemplateInfo struct {
	autorest.Response `json:"-"`
	Template          *map[string]interface{} `json:"template,omitempty"`
	Parameters        *map[string]interface{} `json:"parameters,omitempty"`
}

ArmTemplateInfo is information about a generated ARM template.

type ArmTemplateParameterProperties

type ArmTemplateParameterProperties struct {
	Name  *string `json:"name,omitempty"`
	Value *string `json:"value,omitempty"`
}

ArmTemplateParameterProperties is properties of an Azure Resource Manager template parameter.

type ArmTemplateProperties

type ArmTemplateProperties struct {
	DisplayName              *string                    `json:"displayName,omitempty"`
	Description              *string                    `json:"description,omitempty"`
	Publisher                *string                    `json:"publisher,omitempty"`
	Icon                     *string                    `json:"icon,omitempty"`
	Contents                 *map[string]interface{}    `json:"contents,omitempty"`
	CreatedDate              *date.Time                 `json:"createdDate,omitempty"`
	ParametersValueFilesInfo *[]ParametersValueFileInfo `json:"parametersValueFilesInfo,omitempty"`
}

ArmTemplateProperties is properties of an Azure Resource Manager template.

type ArmTemplatesClient

type ArmTemplatesClient struct {
	ManagementClient
}

ArmTemplatesClient is the the DevTest Labs Client.

func NewArmTemplatesClient

func NewArmTemplatesClient(subscriptionID string) ArmTemplatesClient

NewArmTemplatesClient creates an instance of the ArmTemplatesClient client.

func NewArmTemplatesClientWithBaseURI

func NewArmTemplatesClientWithBaseURI(baseURI string, subscriptionID string) ArmTemplatesClient

NewArmTemplatesClientWithBaseURI creates an instance of the ArmTemplatesClient client.

func (ArmTemplatesClient) Get

func (client ArmTemplatesClient) Get(resourceGroupName string, labName string, artifactSourceName string, name string, expand string) (result ArmTemplate, err error)

Get get azure resource manager template.

resourceGroupName is the name of the resource group. labName is the name of the lab. artifactSourceName is the name of the artifact source. name is the name of the azure Resource Manager template. expand is specify the $expand query. Example: 'properties($select=displayName)'

func (ArmTemplatesClient) GetPreparer

func (client ArmTemplatesClient) GetPreparer(resourceGroupName string, labName string, artifactSourceName string, name string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ArmTemplatesClient) GetResponder

func (client ArmTemplatesClient) GetResponder(resp *http.Response) (result ArmTemplate, err error)

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

func (ArmTemplatesClient) GetSender

func (client ArmTemplatesClient) 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 (ArmTemplatesClient) List

func (client ArmTemplatesClient) List(resourceGroupName string, labName string, artifactSourceName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationArmTemplate, err error)

List list azure resource manager templates in a given artifact source.

resourceGroupName is the name of the resource group. labName is the name of the lab. artifactSourceName is the name of the artifact source. expand is specify the $expand query. Example: 'properties($select=displayName)' filter is the filter to apply to the operation. top is the maximum number of resources to return from the operation. orderby is the ordering expression for the results, using OData notation.

func (ArmTemplatesClient) ListComplete

func (client ArmTemplatesClient) ListComplete(resourceGroupName string, labName string, artifactSourceName string, expand string, filter string, top *int32, orderby string, cancel <-chan struct{}) (<-chan ArmTemplate, <-chan error)

ListComplete gets all elements from the list without paging.

func (ArmTemplatesClient) ListNextResults

func (client ArmTemplatesClient) ListNextResults(lastResults ResponseWithContinuationArmTemplate) (result ResponseWithContinuationArmTemplate, err error)

ListNextResults retrieves the next set of results, if any.

func (ArmTemplatesClient) ListPreparer

func (client ArmTemplatesClient) ListPreparer(resourceGroupName string, labName string, artifactSourceName string, expand string, filter string, top *int32, orderby string) (*http.Request, error)

ListPreparer prepares the List request.

func (ArmTemplatesClient) ListResponder

func (client ArmTemplatesClient) ListResponder(resp *http.Response) (result ResponseWithContinuationArmTemplate, err error)

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

func (ArmTemplatesClient) ListSender

func (client ArmTemplatesClient) 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 Artifact

type Artifact struct {
	autorest.Response   `json:"-"`
	ID                  *string             `json:"id,omitempty"`
	Name                *string             `json:"name,omitempty"`
	Type                *string             `json:"type,omitempty"`
	Location            *string             `json:"location,omitempty"`
	Tags                *map[string]*string `json:"tags,omitempty"`
	*ArtifactProperties `json:"properties,omitempty"`
}

Artifact is an artifact.

type ArtifactDeploymentStatusProperties

type ArtifactDeploymentStatusProperties struct {
	DeploymentStatus *string `json:"deploymentStatus,omitempty"`
	ArtifactsApplied *int32  `json:"artifactsApplied,omitempty"`
	TotalArtifacts   *int32  `json:"totalArtifacts,omitempty"`
}

ArtifactDeploymentStatusProperties is properties of an artifact deployment.

type ArtifactDeploymentStatusPropertiesFragment

type ArtifactDeploymentStatusPropertiesFragment struct {
	DeploymentStatus *string `json:"deploymentStatus,omitempty"`
	ArtifactsApplied *int32  `json:"artifactsApplied,omitempty"`
	TotalArtifacts   *int32  `json:"totalArtifacts,omitempty"`
}

ArtifactDeploymentStatusPropertiesFragment is properties of an artifact deployment.

type ArtifactInstallProperties

type ArtifactInstallProperties struct {
	ArtifactID               *string                        `json:"artifactId,omitempty"`
	Parameters               *[]ArtifactParameterProperties `json:"parameters,omitempty"`
	Status                   *string                        `json:"status,omitempty"`
	DeploymentStatusMessage  *string                        `json:"deploymentStatusMessage,omitempty"`
	VMExtensionStatusMessage *string                        `json:"vmExtensionStatusMessage,omitempty"`
	InstallTime              *date.Time                     `json:"installTime,omitempty"`
}

ArtifactInstallProperties is properties of an artifact.

type ArtifactInstallPropertiesFragment

type ArtifactInstallPropertiesFragment struct {
	ArtifactID               *string                                `json:"artifactId,omitempty"`
	Parameters               *[]ArtifactParameterPropertiesFragment `json:"parameters,omitempty"`
	Status                   *string                                `json:"status,omitempty"`
	DeploymentStatusMessage  *string                                `json:"deploymentStatusMessage,omitempty"`
	VMExtensionStatusMessage *string                                `json:"vmExtensionStatusMessage,omitempty"`
	InstallTime              *date.Time                             `json:"installTime,omitempty"`
}

ArtifactInstallPropertiesFragment is properties of an artifact.

type ArtifactParameterProperties

type ArtifactParameterProperties struct {
	Name  *string `json:"name,omitempty"`
	Value *string `json:"value,omitempty"`
}

ArtifactParameterProperties is properties of an artifact parameter.

type ArtifactParameterPropertiesFragment

type ArtifactParameterPropertiesFragment struct {
	Name  *string `json:"name,omitempty"`
	Value *string `json:"value,omitempty"`
}

ArtifactParameterPropertiesFragment is properties of an artifact parameter.

type ArtifactProperties

type ArtifactProperties struct {
	Title        *string                 `json:"title,omitempty"`
	Description  *string                 `json:"description,omitempty"`
	Publisher    *string                 `json:"publisher,omitempty"`
	FilePath     *string                 `json:"filePath,omitempty"`
	Icon         *string                 `json:"icon,omitempty"`
	TargetOsType *string                 `json:"targetOsType,omitempty"`
	Parameters   *map[string]interface{} `json:"parameters,omitempty"`
	CreatedDate  *date.Time              `json:"createdDate,omitempty"`
}

ArtifactProperties is properties of an artifact.

type ArtifactSource

type ArtifactSource struct {
	autorest.Response         `json:"-"`
	ID                        *string             `json:"id,omitempty"`
	Name                      *string             `json:"name,omitempty"`
	Type                      *string             `json:"type,omitempty"`
	Location                  *string             `json:"location,omitempty"`
	Tags                      *map[string]*string `json:"tags,omitempty"`
	*ArtifactSourceProperties `json:"properties,omitempty"`
}

ArtifactSource is properties of an artifact source.

type ArtifactSourceFragment

type ArtifactSourceFragment struct {
	ID                                *string             `json:"id,omitempty"`
	Name                              *string             `json:"name,omitempty"`
	Type                              *string             `json:"type,omitempty"`
	Location                          *string             `json:"location,omitempty"`
	Tags                              *map[string]*string `json:"tags,omitempty"`
	*ArtifactSourcePropertiesFragment `json:"properties,omitempty"`
}

ArtifactSourceFragment is properties of an artifact source.

type ArtifactSourceProperties

type ArtifactSourceProperties struct {
	DisplayName           *string           `json:"displayName,omitempty"`
	URI                   *string           `json:"uri,omitempty"`
	SourceType            SourceControlType `json:"sourceType,omitempty"`
	FolderPath            *string           `json:"folderPath,omitempty"`
	ArmTemplateFolderPath *string           `json:"armTemplateFolderPath,omitempty"`
	BranchRef             *string           `json:"branchRef,omitempty"`
	SecurityToken         *string           `json:"securityToken,omitempty"`
	Status                EnableStatus      `json:"status,omitempty"`
	CreatedDate           *date.Time        `json:"createdDate,omitempty"`
	ProvisioningState     *string           `json:"provisioningState,omitempty"`
	UniqueIdentifier      *string           `json:"uniqueIdentifier,omitempty"`
}

ArtifactSourceProperties is properties of an artifact source.

type ArtifactSourcePropertiesFragment

type ArtifactSourcePropertiesFragment struct {
	DisplayName           *string           `json:"displayName,omitempty"`
	URI                   *string           `json:"uri,omitempty"`
	SourceType            SourceControlType `json:"sourceType,omitempty"`
	FolderPath            *string           `json:"folderPath,omitempty"`
	ArmTemplateFolderPath *string           `json:"armTemplateFolderPath,omitempty"`
	BranchRef             *string           `json:"branchRef,omitempty"`
	SecurityToken         *string           `json:"securityToken,omitempty"`
	Status                EnableStatus      `json:"status,omitempty"`
	ProvisioningState     *string           `json:"provisioningState,omitempty"`
	UniqueIdentifier      *string           `json:"uniqueIdentifier,omitempty"`
}

ArtifactSourcePropertiesFragment is properties of an artifact source.

type ArtifactSourcesClient

type ArtifactSourcesClient struct {
	ManagementClient
}

ArtifactSourcesClient is the the DevTest Labs Client.

func NewArtifactSourcesClient

func NewArtifactSourcesClient(subscriptionID string) ArtifactSourcesClient

NewArtifactSourcesClient creates an instance of the ArtifactSourcesClient client.

func NewArtifactSourcesClientWithBaseURI

func NewArtifactSourcesClientWithBaseURI(baseURI string, subscriptionID string) ArtifactSourcesClient

NewArtifactSourcesClientWithBaseURI creates an instance of the ArtifactSourcesClient client.

func (ArtifactSourcesClient) CreateOrUpdate

func (client ArtifactSourcesClient) CreateOrUpdate(resourceGroupName string, labName string, name string, artifactSource ArtifactSource) (result ArtifactSource, err error)

CreateOrUpdate create or replace an existing artifact source.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the artifact source. artifactSource is properties of an artifact source.

func (ArtifactSourcesClient) CreateOrUpdatePreparer

func (client ArtifactSourcesClient) CreateOrUpdatePreparer(resourceGroupName string, labName string, name string, artifactSource ArtifactSource) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ArtifactSourcesClient) CreateOrUpdateResponder

func (client ArtifactSourcesClient) CreateOrUpdateResponder(resp *http.Response) (result ArtifactSource, err error)

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

func (ArtifactSourcesClient) CreateOrUpdateSender

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

func (client ArtifactSourcesClient) Delete(resourceGroupName string, labName string, name string) (result autorest.Response, err error)

Delete delete artifact source.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the artifact source.

func (ArtifactSourcesClient) DeletePreparer

func (client ArtifactSourcesClient) DeletePreparer(resourceGroupName string, labName string, name string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ArtifactSourcesClient) DeleteResponder

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

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

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

func (ArtifactSourcesClient) Get

func (client ArtifactSourcesClient) Get(resourceGroupName string, labName string, name string, expand string) (result ArtifactSource, err error)

Get get artifact source.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the artifact source. expand is specify the $expand query. Example: 'properties($select=displayName)'

func (ArtifactSourcesClient) GetPreparer

func (client ArtifactSourcesClient) GetPreparer(resourceGroupName string, labName string, name string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ArtifactSourcesClient) GetResponder

func (client ArtifactSourcesClient) GetResponder(resp *http.Response) (result ArtifactSource, err error)

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

func (ArtifactSourcesClient) GetSender

func (client ArtifactSourcesClient) 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 (ArtifactSourcesClient) List

func (client ArtifactSourcesClient) List(resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationArtifactSource, err error)

List list artifact sources in a given lab.

resourceGroupName is the name of the resource group. labName is the name of the lab. expand is specify the $expand query. Example: 'properties($select=displayName)' filter is the filter to apply to the operation. top is the maximum number of resources to return from the operation. orderby is the ordering expression for the results, using OData notation.

func (ArtifactSourcesClient) ListComplete

func (client ArtifactSourcesClient) ListComplete(resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string, cancel <-chan struct{}) (<-chan ArtifactSource, <-chan error)

ListComplete gets all elements from the list without paging.

func (ArtifactSourcesClient) ListNextResults

ListNextResults retrieves the next set of results, if any.

func (ArtifactSourcesClient) ListPreparer

func (client ArtifactSourcesClient) ListPreparer(resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string) (*http.Request, error)

ListPreparer prepares the List request.

func (ArtifactSourcesClient) ListResponder

func (client ArtifactSourcesClient) ListResponder(resp *http.Response) (result ResponseWithContinuationArtifactSource, err error)

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

func (ArtifactSourcesClient) ListSender

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

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

func (ArtifactSourcesClient) Update

func (client ArtifactSourcesClient) Update(resourceGroupName string, labName string, name string, artifactSource ArtifactSourceFragment) (result ArtifactSource, err error)

Update modify properties of artifact sources.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the artifact source. artifactSource is properties of an artifact source.

func (ArtifactSourcesClient) UpdatePreparer

func (client ArtifactSourcesClient) UpdatePreparer(resourceGroupName string, labName string, name string, artifactSource ArtifactSourceFragment) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ArtifactSourcesClient) UpdateResponder

func (client ArtifactSourcesClient) UpdateResponder(resp *http.Response) (result ArtifactSource, err error)

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

func (ArtifactSourcesClient) UpdateSender

func (client ArtifactSourcesClient) 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 ArtifactsClient

type ArtifactsClient struct {
	ManagementClient
}

ArtifactsClient is the the DevTest Labs Client.

func NewArtifactsClient

func NewArtifactsClient(subscriptionID string) ArtifactsClient

NewArtifactsClient creates an instance of the ArtifactsClient client.

func NewArtifactsClientWithBaseURI

func NewArtifactsClientWithBaseURI(baseURI string, subscriptionID string) ArtifactsClient

NewArtifactsClientWithBaseURI creates an instance of the ArtifactsClient client.

func (ArtifactsClient) GenerateArmTemplate

func (client ArtifactsClient) GenerateArmTemplate(resourceGroupName string, labName string, artifactSourceName string, name string, generateArmTemplateRequest GenerateArmTemplateRequest) (result ArmTemplateInfo, err error)

GenerateArmTemplate generates an ARM template for the given artifact, uploads the required files to a storage account, and validates the generated artifact.

resourceGroupName is the name of the resource group. labName is the name of the lab. artifactSourceName is the name of the artifact source. name is the name of the artifact. generateArmTemplateRequest is parameters for generating an ARM template for deploying artifacts.

func (ArtifactsClient) GenerateArmTemplatePreparer

func (client ArtifactsClient) GenerateArmTemplatePreparer(resourceGroupName string, labName string, artifactSourceName string, name string, generateArmTemplateRequest GenerateArmTemplateRequest) (*http.Request, error)

GenerateArmTemplatePreparer prepares the GenerateArmTemplate request.

func (ArtifactsClient) GenerateArmTemplateResponder

func (client ArtifactsClient) GenerateArmTemplateResponder(resp *http.Response) (result ArmTemplateInfo, err error)

GenerateArmTemplateResponder handles the response to the GenerateArmTemplate request. The method always closes the http.Response Body.

func (ArtifactsClient) GenerateArmTemplateSender

func (client ArtifactsClient) GenerateArmTemplateSender(req *http.Request) (*http.Response, error)

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

func (ArtifactsClient) Get

func (client ArtifactsClient) Get(resourceGroupName string, labName string, artifactSourceName string, name string, expand string) (result Artifact, err error)

Get get artifact.

resourceGroupName is the name of the resource group. labName is the name of the lab. artifactSourceName is the name of the artifact source. name is the name of the artifact. expand is specify the $expand query. Example: 'properties($select=title)'

func (ArtifactsClient) GetPreparer

func (client ArtifactsClient) GetPreparer(resourceGroupName string, labName string, artifactSourceName string, name string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ArtifactsClient) GetResponder

func (client ArtifactsClient) GetResponder(resp *http.Response) (result Artifact, err error)

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

func (ArtifactsClient) GetSender

func (client ArtifactsClient) 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 (ArtifactsClient) List

func (client ArtifactsClient) List(resourceGroupName string, labName string, artifactSourceName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationArtifact, err error)

List list artifacts in a given artifact source.

resourceGroupName is the name of the resource group. labName is the name of the lab. artifactSourceName is the name of the artifact source. expand is specify the $expand query. Example: 'properties($select=title)' filter is the filter to apply to the operation. top is the maximum number of resources to return from the operation. orderby is the ordering expression for the results, using OData notation.

func (ArtifactsClient) ListComplete

func (client ArtifactsClient) ListComplete(resourceGroupName string, labName string, artifactSourceName string, expand string, filter string, top *int32, orderby string, cancel <-chan struct{}) (<-chan Artifact, <-chan error)

ListComplete gets all elements from the list without paging.

func (ArtifactsClient) ListNextResults

func (client ArtifactsClient) ListNextResults(lastResults ResponseWithContinuationArtifact) (result ResponseWithContinuationArtifact, err error)

ListNextResults retrieves the next set of results, if any.

func (ArtifactsClient) ListPreparer

func (client ArtifactsClient) ListPreparer(resourceGroupName string, labName string, artifactSourceName string, expand string, filter string, top *int32, orderby string) (*http.Request, error)

ListPreparer prepares the List request.

func (ArtifactsClient) ListResponder

func (client ArtifactsClient) ListResponder(resp *http.Response) (result ResponseWithContinuationArtifact, err error)

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

func (ArtifactsClient) ListSender

func (client ArtifactsClient) 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 AttachDiskProperties

type AttachDiskProperties struct {
	LeasedByLabVMID *string `json:"leasedByLabVmId,omitempty"`
}

AttachDiskProperties is properties of the disk to attach.

type AttachNewDataDiskOptions

type AttachNewDataDiskOptions struct {
	DiskSizeGiB *int32      `json:"diskSizeGiB,omitempty"`
	DiskName    *string     `json:"diskName,omitempty"`
	DiskType    StorageType `json:"diskType,omitempty"`
}

AttachNewDataDiskOptions is properties to attach new disk to the Virtual Machine.

type BulkCreationParameters

type BulkCreationParameters struct {
	InstanceCount *int32 `json:"instanceCount,omitempty"`
}

BulkCreationParameters is parameters for creating multiple virtual machines as a single action.

type CloudError

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

CloudError is error from a REST request.

type CloudErrorBody

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

CloudErrorBody is body of an error from a REST request.

type ComputeDataDisk

type ComputeDataDisk struct {
	Name          *string `json:"name,omitempty"`
	DiskURI       *string `json:"diskUri,omitempty"`
	ManagedDiskID *string `json:"managedDiskId,omitempty"`
	DiskSizeGiB   *int32  `json:"diskSizeGiB,omitempty"`
}

ComputeDataDisk is a data disks attached to a virtual machine.

type ComputeDataDiskFragment

type ComputeDataDiskFragment struct {
	Name          *string `json:"name,omitempty"`
	DiskURI       *string `json:"diskUri,omitempty"`
	ManagedDiskID *string `json:"managedDiskId,omitempty"`
	DiskSizeGiB   *int32  `json:"diskSizeGiB,omitempty"`
}

ComputeDataDiskFragment is a data disks attached to a virtual machine.

type ComputeVMInstanceViewStatus

type ComputeVMInstanceViewStatus struct {
	Code          *string `json:"code,omitempty"`
	DisplayStatus *string `json:"displayStatus,omitempty"`
	Message       *string `json:"message,omitempty"`
}

ComputeVMInstanceViewStatus is status information about a virtual machine.

type ComputeVMInstanceViewStatusFragment

type ComputeVMInstanceViewStatusFragment struct {
	Code          *string `json:"code,omitempty"`
	DisplayStatus *string `json:"displayStatus,omitempty"`
	Message       *string `json:"message,omitempty"`
}

ComputeVMInstanceViewStatusFragment is status information about a virtual machine.

type ComputeVMProperties

type ComputeVMProperties struct {
	Statuses           *[]ComputeVMInstanceViewStatus `json:"statuses,omitempty"`
	OsType             *string                        `json:"osType,omitempty"`
	VMSize             *string                        `json:"vmSize,omitempty"`
	NetworkInterfaceID *string                        `json:"networkInterfaceId,omitempty"`
	OsDiskID           *string                        `json:"osDiskId,omitempty"`
	DataDiskIds        *[]string                      `json:"dataDiskIds,omitempty"`
	DataDisks          *[]ComputeDataDisk             `json:"dataDisks,omitempty"`
}

ComputeVMProperties is properties of a virtual machine returned by the Microsoft.Compute API.

type ComputeVMPropertiesFragment

type ComputeVMPropertiesFragment struct {
	Statuses           *[]ComputeVMInstanceViewStatusFragment `json:"statuses,omitempty"`
	OsType             *string                                `json:"osType,omitempty"`
	VMSize             *string                                `json:"vmSize,omitempty"`
	NetworkInterfaceID *string                                `json:"networkInterfaceId,omitempty"`
	OsDiskID           *string                                `json:"osDiskId,omitempty"`
	DataDiskIds        *[]string                              `json:"dataDiskIds,omitempty"`
	DataDisks          *[]ComputeDataDiskFragment             `json:"dataDisks,omitempty"`
}

ComputeVMPropertiesFragment is properties of a virtual machine returned by the Microsoft.Compute API.

type CostThresholdProperties

type CostThresholdProperties struct {
	ThresholdID                  *string                            `json:"thresholdId,omitempty"`
	PercentageThreshold          *PercentageCostThresholdProperties `json:"percentageThreshold,omitempty"`
	DisplayOnChart               CostThresholdStatus                `json:"displayOnChart,omitempty"`
	SendNotificationWhenExceeded CostThresholdStatus                `json:"sendNotificationWhenExceeded,omitempty"`
	NotificationSent             *string                            `json:"NotificationSent,omitempty"`
}

CostThresholdProperties is properties of a cost threshold item.

type CostThresholdStatus

type CostThresholdStatus string

CostThresholdStatus enumerates the values for cost threshold status.

const (
	// Disabled specifies the disabled state for cost threshold status.
	Disabled CostThresholdStatus = "Disabled"
	// Enabled specifies the enabled state for cost threshold status.
	Enabled CostThresholdStatus = "Enabled"
)

type CostType

type CostType string

CostType enumerates the values for cost type.

const (
	// Projected specifies the projected state for cost type.
	Projected CostType = "Projected"
	// Reported specifies the reported state for cost type.
	Reported CostType = "Reported"
	// Unavailable specifies the unavailable state for cost type.
	Unavailable CostType = "Unavailable"
)

type CostsClient

type CostsClient struct {
	ManagementClient
}

CostsClient is the the DevTest Labs Client.

func NewCostsClient

func NewCostsClient(subscriptionID string) CostsClient

NewCostsClient creates an instance of the CostsClient client.

func NewCostsClientWithBaseURI

func NewCostsClientWithBaseURI(baseURI string, subscriptionID string) CostsClient

NewCostsClientWithBaseURI creates an instance of the CostsClient client.

func (CostsClient) CreateOrUpdate

func (client CostsClient) CreateOrUpdate(resourceGroupName string, labName string, name string, labCost LabCost) (result LabCost, err error)

CreateOrUpdate create or replace an existing cost.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the cost. labCost is a cost item.

func (CostsClient) CreateOrUpdatePreparer

func (client CostsClient) CreateOrUpdatePreparer(resourceGroupName string, labName string, name string, labCost LabCost) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (CostsClient) CreateOrUpdateResponder

func (client CostsClient) CreateOrUpdateResponder(resp *http.Response) (result LabCost, err error)

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

func (CostsClient) CreateOrUpdateSender

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

func (client CostsClient) Get(resourceGroupName string, labName string, name string, expand string) (result LabCost, err error)

Get get cost.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the cost. expand is specify the $expand query. Example: 'properties($expand=labCostDetails)'

func (CostsClient) GetPreparer

func (client CostsClient) GetPreparer(resourceGroupName string, labName string, name string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (CostsClient) GetResponder

func (client CostsClient) GetResponder(resp *http.Response) (result LabCost, err error)

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

func (CostsClient) GetSender

func (client CostsClient) 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 CustomImage

type CustomImage struct {
	autorest.Response      `json:"-"`
	ID                     *string             `json:"id,omitempty"`
	Name                   *string             `json:"name,omitempty"`
	Type                   *string             `json:"type,omitempty"`
	Location               *string             `json:"location,omitempty"`
	Tags                   *map[string]*string `json:"tags,omitempty"`
	*CustomImageProperties `json:"properties,omitempty"`
}

CustomImage is a custom image.

type CustomImageOsType

type CustomImageOsType string

CustomImageOsType enumerates the values for custom image os type.

const (
	// Linux specifies the linux state for custom image os type.
	Linux CustomImageOsType = "Linux"
	// None specifies the none state for custom image os type.
	None CustomImageOsType = "None"
	// Windows specifies the windows state for custom image os type.
	Windows CustomImageOsType = "Windows"
)

type CustomImageProperties

type CustomImageProperties struct {
	VM                *CustomImagePropertiesFromVM `json:"vm,omitempty"`
	Vhd               *CustomImagePropertiesCustom `json:"vhd,omitempty"`
	Description       *string                      `json:"description,omitempty"`
	Author            *string                      `json:"author,omitempty"`
	CreationDate      *date.Time                   `json:"creationDate,omitempty"`
	ManagedImageID    *string                      `json:"managedImageId,omitempty"`
	ProvisioningState *string                      `json:"provisioningState,omitempty"`
	UniqueIdentifier  *string                      `json:"uniqueIdentifier,omitempty"`
}

CustomImageProperties is properties of a custom image.

type CustomImagePropertiesCustom

type CustomImagePropertiesCustom struct {
	ImageName *string           `json:"imageName,omitempty"`
	SysPrep   *bool             `json:"sysPrep,omitempty"`
	OsType    CustomImageOsType `json:"osType,omitempty"`
}

CustomImagePropertiesCustom is properties for creating a custom image from a VHD.

type CustomImagePropertiesFromVM

type CustomImagePropertiesFromVM struct {
	SourceVMID    *string        `json:"sourceVmId,omitempty"`
	WindowsOsInfo *WindowsOsInfo `json:"windowsOsInfo,omitempty"`
	LinuxOsInfo   *LinuxOsInfo   `json:"linuxOsInfo,omitempty"`
}

CustomImagePropertiesFromVM is properties for creating a custom image from a virtual machine.

type CustomImagesClient

type CustomImagesClient struct {
	ManagementClient
}

CustomImagesClient is the the DevTest Labs Client.

func NewCustomImagesClient

func NewCustomImagesClient(subscriptionID string) CustomImagesClient

NewCustomImagesClient creates an instance of the CustomImagesClient client.

func NewCustomImagesClientWithBaseURI

func NewCustomImagesClientWithBaseURI(baseURI string, subscriptionID string) CustomImagesClient

NewCustomImagesClientWithBaseURI creates an instance of the CustomImagesClient client.

func (CustomImagesClient) CreateOrUpdate

func (client CustomImagesClient) CreateOrUpdate(resourceGroupName string, labName string, name string, customImage CustomImage, cancel <-chan struct{}) (<-chan CustomImage, <-chan error)

CreateOrUpdate create or replace an existing custom image. This operation can take a while to complete. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the custom image. customImage is a custom image.

func (CustomImagesClient) CreateOrUpdatePreparer

func (client CustomImagesClient) CreateOrUpdatePreparer(resourceGroupName string, labName string, name string, customImage CustomImage, cancel <-chan struct{}) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (CustomImagesClient) CreateOrUpdateResponder

func (client CustomImagesClient) CreateOrUpdateResponder(resp *http.Response) (result CustomImage, err error)

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

func (CustomImagesClient) CreateOrUpdateSender

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

func (client CustomImagesClient) Delete(resourceGroupName string, labName string, name string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

Delete delete custom image. This operation can take a while to complete. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the custom image.

func (CustomImagesClient) DeletePreparer

func (client CustomImagesClient) DeletePreparer(resourceGroupName string, labName string, name string, cancel <-chan struct{}) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (CustomImagesClient) DeleteResponder

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

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

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

func (CustomImagesClient) Get

func (client CustomImagesClient) Get(resourceGroupName string, labName string, name string, expand string) (result CustomImage, err error)

Get get custom image.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the custom image. expand is specify the $expand query. Example: 'properties($select=vm)'

func (CustomImagesClient) GetPreparer

func (client CustomImagesClient) GetPreparer(resourceGroupName string, labName string, name string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (CustomImagesClient) GetResponder

func (client CustomImagesClient) GetResponder(resp *http.Response) (result CustomImage, err error)

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

func (CustomImagesClient) GetSender

func (client CustomImagesClient) 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 (CustomImagesClient) List

func (client CustomImagesClient) List(resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationCustomImage, err error)

List list custom images in a given lab.

resourceGroupName is the name of the resource group. labName is the name of the lab. expand is specify the $expand query. Example: 'properties($select=vm)' filter is the filter to apply to the operation. top is the maximum number of resources to return from the operation. orderby is the ordering expression for the results, using OData notation.

func (CustomImagesClient) ListComplete

func (client CustomImagesClient) ListComplete(resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string, cancel <-chan struct{}) (<-chan CustomImage, <-chan error)

ListComplete gets all elements from the list without paging.

func (CustomImagesClient) ListNextResults

func (client CustomImagesClient) ListNextResults(lastResults ResponseWithContinuationCustomImage) (result ResponseWithContinuationCustomImage, err error)

ListNextResults retrieves the next set of results, if any.

func (CustomImagesClient) ListPreparer

func (client CustomImagesClient) ListPreparer(resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string) (*http.Request, error)

ListPreparer prepares the List request.

func (CustomImagesClient) ListResponder

func (client CustomImagesClient) ListResponder(resp *http.Response) (result ResponseWithContinuationCustomImage, err error)

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

func (CustomImagesClient) ListSender

func (client CustomImagesClient) 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 DataDiskProperties

type DataDiskProperties struct {
	AttachNewDataDiskOptions *AttachNewDataDiskOptions `json:"attachNewDataDiskOptions,omitempty"`
	ExistingLabDiskID        *string                   `json:"existingLabDiskId,omitempty"`
	HostCaching              HostCachingOptions        `json:"hostCaching,omitempty"`
}

DataDiskProperties is request body for adding a new or existing data disk to a virtual machine.

type DayDetails

type DayDetails struct {
	Time *string `json:"time,omitempty"`
}

DayDetails is properties of a daily schedule.

type DayDetailsFragment

type DayDetailsFragment struct {
	Time *string `json:"time,omitempty"`
}

DayDetailsFragment is properties of a daily schedule.

type DetachDataDiskProperties

type DetachDataDiskProperties struct {
	ExistingLabDiskID *string `json:"existingLabDiskId,omitempty"`
}

DetachDataDiskProperties is request body for detaching data disk from a virtual machine.

type DetachDiskProperties

type DetachDiskProperties struct {
	LeasedByLabVMID *string `json:"leasedByLabVmId,omitempty"`
}

DetachDiskProperties is properties of the disk to detach.

type Disk

type Disk struct {
	autorest.Response `json:"-"`
	ID                *string             `json:"id,omitempty"`
	Name              *string             `json:"name,omitempty"`
	Type              *string             `json:"type,omitempty"`
	Location          *string             `json:"location,omitempty"`
	Tags              *map[string]*string `json:"tags,omitempty"`
	*DiskProperties   `json:"properties,omitempty"`
}

Disk is a Disk.

type DiskProperties

type DiskProperties struct {
	DiskType          StorageType `json:"diskType,omitempty"`
	DiskSizeGiB       *int32      `json:"diskSizeGiB,omitempty"`
	LeasedByLabVMID   *string     `json:"leasedByLabVmId,omitempty"`
	DiskBlobName      *string     `json:"diskBlobName,omitempty"`
	DiskURI           *string     `json:"diskUri,omitempty"`
	CreatedDate       *date.Time  `json:"createdDate,omitempty"`
	HostCaching       *string     `json:"hostCaching,omitempty"`
	ManagedDiskID     *string     `json:"managedDiskId,omitempty"`
	ProvisioningState *string     `json:"provisioningState,omitempty"`
	UniqueIdentifier  *string     `json:"uniqueIdentifier,omitempty"`
}

DiskProperties is properties of a disk.

type DisksClient

type DisksClient struct {
	ManagementClient
}

DisksClient is the the DevTest Labs Client.

func NewDisksClient

func NewDisksClient(subscriptionID string) DisksClient

NewDisksClient creates an instance of the DisksClient client.

func NewDisksClientWithBaseURI

func NewDisksClientWithBaseURI(baseURI string, subscriptionID string) DisksClient

NewDisksClientWithBaseURI creates an instance of the DisksClient client.

func (DisksClient) Attach

func (client DisksClient) Attach(resourceGroupName string, labName string, userName string, name string, attachDiskProperties AttachDiskProperties, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

Attach attach and create the lease of the disk to the virtual machine. This operation can take a while to complete. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. labName is the name of the lab. userName is the name of the user profile. name is the name of the disk. attachDiskProperties is properties of the disk to attach.

func (DisksClient) AttachPreparer

func (client DisksClient) AttachPreparer(resourceGroupName string, labName string, userName string, name string, attachDiskProperties AttachDiskProperties, cancel <-chan struct{}) (*http.Request, error)

AttachPreparer prepares the Attach request.

func (DisksClient) AttachResponder

func (client DisksClient) AttachResponder(resp *http.Response) (result autorest.Response, err error)

AttachResponder handles the response to the Attach request. The method always closes the http.Response Body.

func (DisksClient) AttachSender

func (client DisksClient) AttachSender(req *http.Request) (*http.Response, error)

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

func (DisksClient) CreateOrUpdate

func (client DisksClient) CreateOrUpdate(resourceGroupName string, labName string, userName string, name string, disk Disk, cancel <-chan struct{}) (<-chan Disk, <-chan error)

CreateOrUpdate create or replace an existing disk. This operation can take a while to complete. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. labName is the name of the lab. userName is the name of the user profile. name is the name of the disk. disk is a Disk.

func (DisksClient) CreateOrUpdatePreparer

func (client DisksClient) CreateOrUpdatePreparer(resourceGroupName string, labName string, userName string, name string, disk Disk, cancel <-chan struct{}) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DisksClient) CreateOrUpdateResponder

func (client DisksClient) CreateOrUpdateResponder(resp *http.Response) (result Disk, err error)

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

func (DisksClient) CreateOrUpdateSender

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

func (client DisksClient) Delete(resourceGroupName string, labName string, userName string, name string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

Delete delete disk. This operation can take a while to complete. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. labName is the name of the lab. userName is the name of the user profile. name is the name of the disk.

func (DisksClient) DeletePreparer

func (client DisksClient) DeletePreparer(resourceGroupName string, labName string, userName string, name string, cancel <-chan struct{}) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (DisksClient) DeleteResponder

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

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

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

func (DisksClient) Detach

func (client DisksClient) Detach(resourceGroupName string, labName string, userName string, name string, detachDiskProperties DetachDiskProperties, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

Detach detach and break the lease of the disk attached to the virtual machine. This operation can take a while to complete. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. labName is the name of the lab. userName is the name of the user profile. name is the name of the disk. detachDiskProperties is properties of the disk to detach.

func (DisksClient) DetachPreparer

func (client DisksClient) DetachPreparer(resourceGroupName string, labName string, userName string, name string, detachDiskProperties DetachDiskProperties, cancel <-chan struct{}) (*http.Request, error)

DetachPreparer prepares the Detach request.

func (DisksClient) DetachResponder

func (client DisksClient) DetachResponder(resp *http.Response) (result autorest.Response, err error)

DetachResponder handles the response to the Detach request. The method always closes the http.Response Body.

func (DisksClient) DetachSender

func (client DisksClient) DetachSender(req *http.Request) (*http.Response, error)

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

func (DisksClient) Get

func (client DisksClient) Get(resourceGroupName string, labName string, userName string, name string, expand string) (result Disk, err error)

Get get disk.

resourceGroupName is the name of the resource group. labName is the name of the lab. userName is the name of the user profile. name is the name of the disk. expand is specify the $expand query. Example: 'properties($select=diskType)'

func (DisksClient) GetPreparer

func (client DisksClient) GetPreparer(resourceGroupName string, labName string, userName string, name string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (DisksClient) GetResponder

func (client DisksClient) GetResponder(resp *http.Response) (result Disk, err error)

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

func (DisksClient) GetSender

func (client DisksClient) 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 (DisksClient) List

func (client DisksClient) List(resourceGroupName string, labName string, userName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationDisk, err error)

List list disks in a given user profile.

resourceGroupName is the name of the resource group. labName is the name of the lab. userName is the name of the user profile. expand is specify the $expand query. Example: 'properties($select=diskType)' filter is the filter to apply to the operation. top is the maximum number of resources to return from the operation. orderby is the ordering expression for the results, using OData notation.

func (DisksClient) ListComplete

func (client DisksClient) ListComplete(resourceGroupName string, labName string, userName string, expand string, filter string, top *int32, orderby string, cancel <-chan struct{}) (<-chan Disk, <-chan error)

ListComplete gets all elements from the list without paging.

func (DisksClient) ListNextResults

func (client DisksClient) ListNextResults(lastResults ResponseWithContinuationDisk) (result ResponseWithContinuationDisk, err error)

ListNextResults retrieves the next set of results, if any.

func (DisksClient) ListPreparer

func (client DisksClient) ListPreparer(resourceGroupName string, labName string, userName string, expand string, filter string, top *int32, orderby string) (*http.Request, error)

ListPreparer prepares the List request.

func (DisksClient) ListResponder

func (client DisksClient) ListResponder(resp *http.Response) (result ResponseWithContinuationDisk, err error)

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

func (DisksClient) ListSender

func (client DisksClient) 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 DtlEnvironment

type DtlEnvironment struct {
	autorest.Response      `json:"-"`
	ID                     *string             `json:"id,omitempty"`
	Name                   *string             `json:"name,omitempty"`
	Type                   *string             `json:"type,omitempty"`
	Location               *string             `json:"location,omitempty"`
	Tags                   *map[string]*string `json:"tags,omitempty"`
	*EnvironmentProperties `json:"properties,omitempty"`
}

DtlEnvironment is an environment, which is essentially an ARM template deployment.

type EnableStatus

type EnableStatus string

EnableStatus enumerates the values for enable status.

const (
	// EnableStatusDisabled specifies the enable status disabled state for enable status.
	EnableStatusDisabled EnableStatus = "Disabled"
	// EnableStatusEnabled specifies the enable status enabled state for enable status.
	EnableStatusEnabled EnableStatus = "Enabled"
)

type EnvironmentDeploymentProperties

type EnvironmentDeploymentProperties struct {
	ArmTemplateID *string                           `json:"armTemplateId,omitempty"`
	Parameters    *[]ArmTemplateParameterProperties `json:"parameters,omitempty"`
}

EnvironmentDeploymentProperties is properties of an environment deployment.

type EnvironmentProperties

type EnvironmentProperties struct {
	DeploymentProperties   *EnvironmentDeploymentProperties `json:"deploymentProperties,omitempty"`
	ArmTemplateDisplayName *string                          `json:"armTemplateDisplayName,omitempty"`
	ResourceGroupID        *string                          `json:"resourceGroupId,omitempty"`
	CreatedByUser          *string                          `json:"createdByUser,omitempty"`
	ProvisioningState      *string                          `json:"provisioningState,omitempty"`
	UniqueIdentifier       *string                          `json:"uniqueIdentifier,omitempty"`
}

EnvironmentProperties is properties of an environment.

type EnvironmentsClient

type EnvironmentsClient struct {
	ManagementClient
}

EnvironmentsClient is the the DevTest Labs Client.

func NewEnvironmentsClient

func NewEnvironmentsClient(subscriptionID string) EnvironmentsClient

NewEnvironmentsClient creates an instance of the EnvironmentsClient client.

func NewEnvironmentsClientWithBaseURI

func NewEnvironmentsClientWithBaseURI(baseURI string, subscriptionID string) EnvironmentsClient

NewEnvironmentsClientWithBaseURI creates an instance of the EnvironmentsClient client.

func (EnvironmentsClient) CreateOrUpdate

func (client EnvironmentsClient) CreateOrUpdate(resourceGroupName string, labName string, userName string, name string, dtlEnvironment DtlEnvironment, cancel <-chan struct{}) (<-chan DtlEnvironment, <-chan error)

CreateOrUpdate create or replace an existing environment. This operation can take a while to complete. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. labName is the name of the lab. userName is the name of the user profile. name is the name of the environment. dtlEnvironment is an environment, which is essentially an ARM template deployment.

func (EnvironmentsClient) CreateOrUpdatePreparer

func (client EnvironmentsClient) CreateOrUpdatePreparer(resourceGroupName string, labName string, userName string, name string, dtlEnvironment DtlEnvironment, cancel <-chan struct{}) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (EnvironmentsClient) CreateOrUpdateResponder

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

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

func (EnvironmentsClient) CreateOrUpdateSender

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

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

func (EnvironmentsClient) Delete

func (client EnvironmentsClient) Delete(resourceGroupName string, labName string, userName string, name string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

Delete delete environment. This operation can take a while to complete. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. labName is the name of the lab. userName is the name of the user profile. name is the name of the environment.

func (EnvironmentsClient) DeletePreparer

func (client EnvironmentsClient) DeletePreparer(resourceGroupName string, labName string, userName string, name string, cancel <-chan struct{}) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (EnvironmentsClient) DeleteResponder

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

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

func (EnvironmentsClient) DeleteSender

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

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

func (EnvironmentsClient) Get

func (client EnvironmentsClient) Get(resourceGroupName string, labName string, userName string, name string, expand string) (result DtlEnvironment, err error)

Get get environment.

resourceGroupName is the name of the resource group. labName is the name of the lab. userName is the name of the user profile. name is the name of the environment. expand is specify the $expand query. Example: 'properties($select=deploymentProperties)'

func (EnvironmentsClient) GetPreparer

func (client EnvironmentsClient) GetPreparer(resourceGroupName string, labName string, userName string, name string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (EnvironmentsClient) GetResponder

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

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

func (EnvironmentsClient) GetSender

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

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

func (EnvironmentsClient) List

func (client EnvironmentsClient) List(resourceGroupName string, labName string, userName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationDtlEnvironment, err error)

List list environments in a given user profile.

resourceGroupName is the name of the resource group. labName is the name of the lab. userName is the name of the user profile. expand is specify the $expand query. Example: 'properties($select=deploymentProperties)' filter is the filter to apply to the operation. top is the maximum number of resources to return from the operation. orderby is the ordering expression for the results, using OData notation.

func (EnvironmentsClient) ListComplete

func (client EnvironmentsClient) ListComplete(resourceGroupName string, labName string, userName string, expand string, filter string, top *int32, orderby string, cancel <-chan struct{}) (<-chan DtlEnvironment, <-chan error)

ListComplete gets all elements from the list without paging.

func (EnvironmentsClient) ListNextResults

ListNextResults retrieves the next set of results, if any.

func (EnvironmentsClient) ListPreparer

func (client EnvironmentsClient) ListPreparer(resourceGroupName string, labName string, userName string, expand string, filter string, top *int32, orderby string) (*http.Request, error)

ListPreparer prepares the List request.

func (EnvironmentsClient) ListResponder

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

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

func (EnvironmentsClient) ListSender

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

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

type EvaluatePoliciesProperties

type EvaluatePoliciesProperties struct {
	FactName    *string `json:"factName,omitempty"`
	FactData    *string `json:"factData,omitempty"`
	ValueOffset *string `json:"valueOffset,omitempty"`
}

EvaluatePoliciesProperties is properties for evaluating a policy set.

type EvaluatePoliciesRequest

type EvaluatePoliciesRequest struct {
	Policies *[]EvaluatePoliciesProperties `json:"policies,omitempty"`
}

EvaluatePoliciesRequest is request body for evaluating a policy set.

type EvaluatePoliciesResponse

type EvaluatePoliciesResponse struct {
	autorest.Response `json:"-"`
	Results           *[]PolicySetResult `json:"results,omitempty"`
}

EvaluatePoliciesResponse is response body for evaluating a policy set.

type Event

type Event struct {
	EventName NotificationChannelEventType `json:"eventName,omitempty"`
}

Event is an event to be notified for.

type EventFragment

type EventFragment struct {
	EventName NotificationChannelEventType `json:"eventName,omitempty"`
}

EventFragment is an event to be notified for.

type ExportResourceUsageParameters

type ExportResourceUsageParameters struct {
	BlobStorageAbsoluteSasURI *string    `json:"blobStorageAbsoluteSasUri,omitempty"`
	UsageStartDate            *date.Time `json:"usageStartDate,omitempty"`
}

ExportResourceUsageParameters is the parameters of the export operation.

type ExternalSubnet

type ExternalSubnet struct {
	ID   *string `json:"id,omitempty"`
	Name *string `json:"name,omitempty"`
}

ExternalSubnet is subnet information as returned by the Microsoft.Network API.

type ExternalSubnetFragment

type ExternalSubnetFragment struct {
	ID   *string `json:"id,omitempty"`
	Name *string `json:"name,omitempty"`
}

ExternalSubnetFragment is subnet information as returned by the Microsoft.Network API.

type FileUploadOptions

type FileUploadOptions string

FileUploadOptions enumerates the values for file upload options.

const (
	// FileUploadOptionsNone specifies the file upload options none state for file upload options.
	FileUploadOptionsNone FileUploadOptions = "None"
	// FileUploadOptionsUploadFilesAndGenerateSasTokens specifies the file upload options upload files and generate sas
	// tokens state for file upload options.
	FileUploadOptionsUploadFilesAndGenerateSasTokens FileUploadOptions = "UploadFilesAndGenerateSasTokens"
)

type Formula

type Formula struct {
	autorest.Response  `json:"-"`
	ID                 *string             `json:"id,omitempty"`
	Name               *string             `json:"name,omitempty"`
	Type               *string             `json:"type,omitempty"`
	Location           *string             `json:"location,omitempty"`
	Tags               *map[string]*string `json:"tags,omitempty"`
	*FormulaProperties `json:"properties,omitempty"`
}

Formula is a formula for creating a VM, specifying an image base and other parameters

type FormulaProperties

type FormulaProperties struct {
	Description       *string                             `json:"description,omitempty"`
	Author            *string                             `json:"author,omitempty"`
	OsType            *string                             `json:"osType,omitempty"`
	CreationDate      *date.Time                          `json:"creationDate,omitempty"`
	FormulaContent    *LabVirtualMachineCreationParameter `json:"formulaContent,omitempty"`
	VM                *FormulaPropertiesFromVM            `json:"vm,omitempty"`
	ProvisioningState *string                             `json:"provisioningState,omitempty"`
	UniqueIdentifier  *string                             `json:"uniqueIdentifier,omitempty"`
}

FormulaProperties is properties of a formula.

type FormulaPropertiesFromVM

type FormulaPropertiesFromVM struct {
	LabVMID *string `json:"labVmId,omitempty"`
}

FormulaPropertiesFromVM is information about a VM from which a formula is to be created.

type FormulasClient

type FormulasClient struct {
	ManagementClient
}

FormulasClient is the the DevTest Labs Client.

func NewFormulasClient

func NewFormulasClient(subscriptionID string) FormulasClient

NewFormulasClient creates an instance of the FormulasClient client.

func NewFormulasClientWithBaseURI

func NewFormulasClientWithBaseURI(baseURI string, subscriptionID string) FormulasClient

NewFormulasClientWithBaseURI creates an instance of the FormulasClient client.

func (FormulasClient) CreateOrUpdate

func (client FormulasClient) CreateOrUpdate(resourceGroupName string, labName string, name string, formula Formula, cancel <-chan struct{}) (<-chan Formula, <-chan error)

CreateOrUpdate create or replace an existing Formula. This operation can take a while to complete. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the formula. formula is a formula for creating a VM, specifying an image base and other parameters

func (FormulasClient) CreateOrUpdatePreparer

func (client FormulasClient) CreateOrUpdatePreparer(resourceGroupName string, labName string, name string, formula Formula, cancel <-chan struct{}) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (FormulasClient) CreateOrUpdateResponder

func (client FormulasClient) CreateOrUpdateResponder(resp *http.Response) (result Formula, err error)

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

func (FormulasClient) CreateOrUpdateSender

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

func (client FormulasClient) Delete(resourceGroupName string, labName string, name string) (result autorest.Response, err error)

Delete delete formula.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the formula.

func (FormulasClient) DeletePreparer

func (client FormulasClient) DeletePreparer(resourceGroupName string, labName string, name string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (FormulasClient) DeleteResponder

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

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

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

func (FormulasClient) Get

func (client FormulasClient) Get(resourceGroupName string, labName string, name string, expand string) (result Formula, err error)

Get get formula.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the formula. expand is specify the $expand query. Example: 'properties($select=description)'

func (FormulasClient) GetPreparer

func (client FormulasClient) GetPreparer(resourceGroupName string, labName string, name string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (FormulasClient) GetResponder

func (client FormulasClient) GetResponder(resp *http.Response) (result Formula, err error)

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

func (FormulasClient) GetSender

func (client FormulasClient) 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 (FormulasClient) List

func (client FormulasClient) List(resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationFormula, err error)

List list formulas in a given lab.

resourceGroupName is the name of the resource group. labName is the name of the lab. expand is specify the $expand query. Example: 'properties($select=description)' filter is the filter to apply to the operation. top is the maximum number of resources to return from the operation. orderby is the ordering expression for the results, using OData notation.

func (FormulasClient) ListComplete

func (client FormulasClient) ListComplete(resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string, cancel <-chan struct{}) (<-chan Formula, <-chan error)

ListComplete gets all elements from the list without paging.

func (FormulasClient) ListNextResults

func (client FormulasClient) ListNextResults(lastResults ResponseWithContinuationFormula) (result ResponseWithContinuationFormula, err error)

ListNextResults retrieves the next set of results, if any.

func (FormulasClient) ListPreparer

func (client FormulasClient) ListPreparer(resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string) (*http.Request, error)

ListPreparer prepares the List request.

func (FormulasClient) ListResponder

func (client FormulasClient) ListResponder(resp *http.Response) (result ResponseWithContinuationFormula, err error)

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

func (FormulasClient) ListSender

func (client FormulasClient) 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 GalleryImage

type GalleryImage struct {
	ID                      *string             `json:"id,omitempty"`
	Name                    *string             `json:"name,omitempty"`
	Type                    *string             `json:"type,omitempty"`
	Location                *string             `json:"location,omitempty"`
	Tags                    *map[string]*string `json:"tags,omitempty"`
	*GalleryImageProperties `json:"properties,omitempty"`
}

GalleryImage is a gallery image.

type GalleryImageProperties

type GalleryImageProperties struct {
	Author         *string                `json:"author,omitempty"`
	CreatedDate    *date.Time             `json:"createdDate,omitempty"`
	Description    *string                `json:"description,omitempty"`
	ImageReference *GalleryImageReference `json:"imageReference,omitempty"`
	Icon           *string                `json:"icon,omitempty"`
	Enabled        *bool                  `json:"enabled,omitempty"`
}

GalleryImageProperties is properties of a gallery image.

type GalleryImageReference

type GalleryImageReference struct {
	Offer     *string `json:"offer,omitempty"`
	Publisher *string `json:"publisher,omitempty"`
	Sku       *string `json:"sku,omitempty"`
	OsType    *string `json:"osType,omitempty"`
	Version   *string `json:"version,omitempty"`
}

GalleryImageReference is the reference information for an Azure Marketplace image.

type GalleryImageReferenceFragment

type GalleryImageReferenceFragment struct {
	Offer     *string `json:"offer,omitempty"`
	Publisher *string `json:"publisher,omitempty"`
	Sku       *string `json:"sku,omitempty"`
	OsType    *string `json:"osType,omitempty"`
	Version   *string `json:"version,omitempty"`
}

GalleryImageReferenceFragment is the reference information for an Azure Marketplace image.

type GalleryImagesClient

type GalleryImagesClient struct {
	ManagementClient
}

GalleryImagesClient is the the DevTest Labs Client.

func NewGalleryImagesClient

func NewGalleryImagesClient(subscriptionID string) GalleryImagesClient

NewGalleryImagesClient creates an instance of the GalleryImagesClient client.

func NewGalleryImagesClientWithBaseURI

func NewGalleryImagesClientWithBaseURI(baseURI string, subscriptionID string) GalleryImagesClient

NewGalleryImagesClientWithBaseURI creates an instance of the GalleryImagesClient client.

func (GalleryImagesClient) List

func (client GalleryImagesClient) List(resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationGalleryImage, err error)

List list gallery images in a given lab.

resourceGroupName is the name of the resource group. labName is the name of the lab. expand is specify the $expand query. Example: 'properties($select=author)' filter is the filter to apply to the operation. top is the maximum number of resources to return from the operation. orderby is the ordering expression for the results, using OData notation.

func (GalleryImagesClient) ListComplete

func (client GalleryImagesClient) ListComplete(resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string, cancel <-chan struct{}) (<-chan GalleryImage, <-chan error)

ListComplete gets all elements from the list without paging.

func (GalleryImagesClient) ListNextResults

ListNextResults retrieves the next set of results, if any.

func (GalleryImagesClient) ListPreparer

func (client GalleryImagesClient) ListPreparer(resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string) (*http.Request, error)

ListPreparer prepares the List request.

func (GalleryImagesClient) ListResponder

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

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

func (GalleryImagesClient) ListSender

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

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

type GenerateArmTemplateRequest

type GenerateArmTemplateRequest struct {
	VirtualMachineName *string           `json:"virtualMachineName,omitempty"`
	Parameters         *[]ParameterInfo  `json:"parameters,omitempty"`
	Location           *string           `json:"location,omitempty"`
	FileUploadOptions  FileUploadOptions `json:"fileUploadOptions,omitempty"`
}

GenerateArmTemplateRequest is parameters for generating an ARM template for deploying artifacts.

type GenerateUploadURIParameter

type GenerateUploadURIParameter struct {
	BlobName *string `json:"blobName,omitempty"`
}

GenerateUploadURIParameter is properties for generating an upload URI.

type GenerateUploadURIResponse

type GenerateUploadURIResponse struct {
	autorest.Response `json:"-"`
	UploadURI         *string `json:"uploadUri,omitempty"`
}

GenerateUploadURIResponse is reponse body for generating an upload URI.

type GlobalSchedulesClient

type GlobalSchedulesClient struct {
	ManagementClient
}

GlobalSchedulesClient is the the DevTest Labs Client.

func NewGlobalSchedulesClient

func NewGlobalSchedulesClient(subscriptionID string) GlobalSchedulesClient

NewGlobalSchedulesClient creates an instance of the GlobalSchedulesClient client.

func NewGlobalSchedulesClientWithBaseURI

func NewGlobalSchedulesClientWithBaseURI(baseURI string, subscriptionID string) GlobalSchedulesClient

NewGlobalSchedulesClientWithBaseURI creates an instance of the GlobalSchedulesClient client.

func (GlobalSchedulesClient) CreateOrUpdate

func (client GlobalSchedulesClient) CreateOrUpdate(resourceGroupName string, name string, schedule Schedule) (result Schedule, err error)

CreateOrUpdate create or replace an existing schedule.

resourceGroupName is the name of the resource group. name is the name of the schedule. schedule is a schedule.

func (GlobalSchedulesClient) CreateOrUpdatePreparer

func (client GlobalSchedulesClient) CreateOrUpdatePreparer(resourceGroupName string, name string, schedule Schedule) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (GlobalSchedulesClient) CreateOrUpdateResponder

func (client GlobalSchedulesClient) 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 (GlobalSchedulesClient) CreateOrUpdateSender

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

func (client GlobalSchedulesClient) Delete(resourceGroupName string, name string) (result autorest.Response, err error)

Delete delete schedule.

resourceGroupName is the name of the resource group. name is the name of the schedule.

func (GlobalSchedulesClient) DeletePreparer

func (client GlobalSchedulesClient) DeletePreparer(resourceGroupName string, name string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (GlobalSchedulesClient) DeleteResponder

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

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

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

func (GlobalSchedulesClient) Execute

func (client GlobalSchedulesClient) Execute(resourceGroupName string, name string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

Execute execute a schedule. This operation can take a while to complete. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. name is the name of the schedule.

func (GlobalSchedulesClient) ExecutePreparer

func (client GlobalSchedulesClient) ExecutePreparer(resourceGroupName string, name string, cancel <-chan struct{}) (*http.Request, error)

ExecutePreparer prepares the Execute request.

func (GlobalSchedulesClient) ExecuteResponder

func (client GlobalSchedulesClient) ExecuteResponder(resp *http.Response) (result autorest.Response, err error)

ExecuteResponder handles the response to the Execute request. The method always closes the http.Response Body.

func (GlobalSchedulesClient) ExecuteSender

func (client GlobalSchedulesClient) ExecuteSender(req *http.Request) (*http.Response, error)

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

func (GlobalSchedulesClient) Get

func (client GlobalSchedulesClient) Get(resourceGroupName string, name string, expand string) (result Schedule, err error)

Get get schedule.

resourceGroupName is the name of the resource group. name is the name of the schedule. expand is specify the $expand query. Example: 'properties($select=status)'

func (GlobalSchedulesClient) GetPreparer

func (client GlobalSchedulesClient) GetPreparer(resourceGroupName string, name string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (GlobalSchedulesClient) GetResponder

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

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

func (client GlobalSchedulesClient) ListByResourceGroup(resourceGroupName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationSchedule, err error)

ListByResourceGroup list schedules in a resource group.

resourceGroupName is the name of the resource group. expand is specify the $expand query. Example: 'properties($select=status)' filter is the filter to apply to the operation. top is the maximum number of resources to return from the operation. orderby is the ordering expression for the results, using OData notation.

func (GlobalSchedulesClient) ListByResourceGroupComplete

func (client GlobalSchedulesClient) ListByResourceGroupComplete(resourceGroupName string, expand string, filter string, top *int32, orderby string, cancel <-chan struct{}) (<-chan Schedule, <-chan error)

ListByResourceGroupComplete gets all elements from the list without paging.

func (GlobalSchedulesClient) ListByResourceGroupNextResults

func (client GlobalSchedulesClient) ListByResourceGroupNextResults(lastResults ResponseWithContinuationSchedule) (result ResponseWithContinuationSchedule, err error)

ListByResourceGroupNextResults retrieves the next set of results, if any.

func (GlobalSchedulesClient) ListByResourceGroupPreparer

func (client GlobalSchedulesClient) ListByResourceGroupPreparer(resourceGroupName string, expand string, filter string, top *int32, orderby string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (GlobalSchedulesClient) ListByResourceGroupResponder

func (client GlobalSchedulesClient) ListByResourceGroupResponder(resp *http.Response) (result ResponseWithContinuationSchedule, err error)

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

func (GlobalSchedulesClient) ListByResourceGroupSender

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

func (client GlobalSchedulesClient) ListBySubscription(expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationSchedule, err error)

ListBySubscription list schedules in a subscription.

expand is specify the $expand query. Example: 'properties($select=status)' filter is the filter to apply to the operation. top is the maximum number of resources to return from the operation. orderby is the ordering expression for the results, using OData notation.

func (GlobalSchedulesClient) ListBySubscriptionComplete

func (client GlobalSchedulesClient) ListBySubscriptionComplete(expand string, filter string, top *int32, orderby string, cancel <-chan struct{}) (<-chan Schedule, <-chan error)

ListBySubscriptionComplete gets all elements from the list without paging.

func (GlobalSchedulesClient) ListBySubscriptionNextResults

func (client GlobalSchedulesClient) ListBySubscriptionNextResults(lastResults ResponseWithContinuationSchedule) (result ResponseWithContinuationSchedule, err error)

ListBySubscriptionNextResults retrieves the next set of results, if any.

func (GlobalSchedulesClient) ListBySubscriptionPreparer

func (client GlobalSchedulesClient) ListBySubscriptionPreparer(expand string, filter string, top *int32, orderby string) (*http.Request, error)

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (GlobalSchedulesClient) ListBySubscriptionResponder

func (client GlobalSchedulesClient) ListBySubscriptionResponder(resp *http.Response) (result ResponseWithContinuationSchedule, err error)

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

func (GlobalSchedulesClient) ListBySubscriptionSender

func (client GlobalSchedulesClient) 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 (GlobalSchedulesClient) Retarget

func (client GlobalSchedulesClient) Retarget(resourceGroupName string, name string, retargetScheduleProperties RetargetScheduleProperties, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

Retarget updates a schedule's target resource Id. This operation can take a while to complete. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. name is the name of the schedule. retargetScheduleProperties is properties for retargeting a virtual machine schedule.

func (GlobalSchedulesClient) RetargetPreparer

func (client GlobalSchedulesClient) RetargetPreparer(resourceGroupName string, name string, retargetScheduleProperties RetargetScheduleProperties, cancel <-chan struct{}) (*http.Request, error)

RetargetPreparer prepares the Retarget request.

func (GlobalSchedulesClient) RetargetResponder

func (client GlobalSchedulesClient) RetargetResponder(resp *http.Response) (result autorest.Response, err error)

RetargetResponder handles the response to the Retarget request. The method always closes the http.Response Body.

func (GlobalSchedulesClient) RetargetSender

func (client GlobalSchedulesClient) RetargetSender(req *http.Request) (*http.Response, error)

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

func (GlobalSchedulesClient) Update

func (client GlobalSchedulesClient) Update(resourceGroupName string, name string, schedule ScheduleFragment) (result Schedule, err error)

Update modify properties of schedules.

resourceGroupName is the name of the resource group. name is the name of the schedule. schedule is a schedule.

func (GlobalSchedulesClient) UpdatePreparer

func (client GlobalSchedulesClient) UpdatePreparer(resourceGroupName string, name string, schedule ScheduleFragment) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (GlobalSchedulesClient) UpdateResponder

func (client GlobalSchedulesClient) 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 (GlobalSchedulesClient) UpdateSender

func (client GlobalSchedulesClient) 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 HostCachingOptions

type HostCachingOptions string

HostCachingOptions enumerates the values for host caching options.

const (
	// HostCachingOptionsNone specifies the host caching options none state for host caching options.
	HostCachingOptionsNone HostCachingOptions = "None"
	// HostCachingOptionsReadOnly specifies the host caching options read only state for host caching options.
	HostCachingOptionsReadOnly HostCachingOptions = "ReadOnly"
	// HostCachingOptionsReadWrite specifies the host caching options read write state for host caching options.
	HostCachingOptionsReadWrite HostCachingOptions = "ReadWrite"
)

type HourDetails

type HourDetails struct {
	Minute *int32 `json:"minute,omitempty"`
}

HourDetails is properties of an hourly schedule.

type HourDetailsFragment

type HourDetailsFragment struct {
	Minute *int32 `json:"minute,omitempty"`
}

HourDetailsFragment is properties of an hourly schedule.

type IdentityProperties

type IdentityProperties struct {
	Type            *string `json:"type,omitempty"`
	PrincipalID     *string `json:"principalId,omitempty"`
	TenantID        *string `json:"tenantId,omitempty"`
	ClientSecretURL *string `json:"clientSecretUrl,omitempty"`
}

IdentityProperties is identityProperties

type InboundNatRule

type InboundNatRule struct {
	TransportProtocol TransportProtocol `json:"transportProtocol,omitempty"`
	FrontendPort      *int32            `json:"frontendPort,omitempty"`
	BackendPort       *int32            `json:"backendPort,omitempty"`
}

InboundNatRule is a rule for NAT - exposing a VM's port (backendPort) on the public IP address using a load balancer.

type InboundNatRuleFragment

type InboundNatRuleFragment struct {
	TransportProtocol TransportProtocol `json:"transportProtocol,omitempty"`
	FrontendPort      *int32            `json:"frontendPort,omitempty"`
	BackendPort       *int32            `json:"backendPort,omitempty"`
}

InboundNatRuleFragment is a rule for NAT - exposing a VM's port (backendPort) on the public IP address using a load balancer.

type Lab

type Lab struct {
	autorest.Response `json:"-"`
	ID                *string             `json:"id,omitempty"`
	Name              *string             `json:"name,omitempty"`
	Type              *string             `json:"type,omitempty"`
	Location          *string             `json:"location,omitempty"`
	Tags              *map[string]*string `json:"tags,omitempty"`
	*LabProperties    `json:"properties,omitempty"`
}

Lab is a lab.

type LabCost

type LabCost struct {
	autorest.Response  `json:"-"`
	ID                 *string             `json:"id,omitempty"`
	Name               *string             `json:"name,omitempty"`
	Type               *string             `json:"type,omitempty"`
	Location           *string             `json:"location,omitempty"`
	Tags               *map[string]*string `json:"tags,omitempty"`
	*LabCostProperties `json:"properties,omitempty"`
}

LabCost is a cost item.

type LabCostDetailsProperties

type LabCostDetailsProperties struct {
	Date     *date.Time `json:"date,omitempty"`
	Cost     *float64   `json:"cost,omitempty"`
	CostType CostType   `json:"costType,omitempty"`
}

LabCostDetailsProperties is the properties of a lab cost item.

type LabCostProperties

type LabCostProperties struct {
	TargetCost        *TargetCostProperties        `json:"targetCost,omitempty"`
	LabCostSummary    *LabCostSummaryProperties    `json:"labCostSummary,omitempty"`
	LabCostDetails    *[]LabCostDetailsProperties  `json:"labCostDetails,omitempty"`
	ResourceCosts     *[]LabResourceCostProperties `json:"resourceCosts,omitempty"`
	CurrencyCode      *string                      `json:"currencyCode,omitempty"`
	StartDateTime     *date.Time                   `json:"startDateTime,omitempty"`
	EndDateTime       *date.Time                   `json:"endDateTime,omitempty"`
	CreatedDate       *date.Time                   `json:"createdDate,omitempty"`
	ProvisioningState *string                      `json:"provisioningState,omitempty"`
	UniqueIdentifier  *string                      `json:"uniqueIdentifier,omitempty"`
}

LabCostProperties is properties of a cost item.

type LabCostSummaryProperties

type LabCostSummaryProperties struct {
	EstimatedLabCost *float64 `json:"estimatedLabCost,omitempty"`
}

LabCostSummaryProperties is the properties of the cost summary.

type LabFragment

type LabFragment struct {
	ID                     *string             `json:"id,omitempty"`
	Name                   *string             `json:"name,omitempty"`
	Type                   *string             `json:"type,omitempty"`
	Location               *string             `json:"location,omitempty"`
	Tags                   *map[string]*string `json:"tags,omitempty"`
	*LabPropertiesFragment `json:"properties,omitempty"`
}

LabFragment is a lab.

type LabProperties

type LabProperties struct {
	DefaultStorageAccount         *string         `json:"defaultStorageAccount,omitempty"`
	DefaultPremiumStorageAccount  *string         `json:"defaultPremiumStorageAccount,omitempty"`
	ArtifactsStorageAccount       *string         `json:"artifactsStorageAccount,omitempty"`
	PremiumDataDiskStorageAccount *string         `json:"premiumDataDiskStorageAccount,omitempty"`
	VaultName                     *string         `json:"vaultName,omitempty"`
	LabStorageType                StorageType     `json:"labStorageType,omitempty"`
	CreatedDate                   *date.Time      `json:"createdDate,omitempty"`
	PremiumDataDisks              PremiumDataDisk `json:"premiumDataDisks,omitempty"`
	ProvisioningState             *string         `json:"provisioningState,omitempty"`
	UniqueIdentifier              *string         `json:"uniqueIdentifier,omitempty"`
}

LabProperties is properties of a lab.

type LabPropertiesFragment

type LabPropertiesFragment struct {
	LabStorageType    StorageType     `json:"labStorageType,omitempty"`
	PremiumDataDisks  PremiumDataDisk `json:"premiumDataDisks,omitempty"`
	ProvisioningState *string         `json:"provisioningState,omitempty"`
	UniqueIdentifier  *string         `json:"uniqueIdentifier,omitempty"`
}

LabPropertiesFragment is properties of a lab.

type LabResourceCostProperties

type LabResourceCostProperties struct {
	Resourcename        *string  `json:"resourcename,omitempty"`
	ResourceUID         *string  `json:"resourceUId,omitempty"`
	ResourceCost        *float64 `json:"resourceCost,omitempty"`
	ResourceType        *string  `json:"resourceType,omitempty"`
	ResourceOwner       *string  `json:"resourceOwner,omitempty"`
	ResourcePricingTier *string  `json:"resourcePricingTier,omitempty"`
	ResourceStatus      *string  `json:"resourceStatus,omitempty"`
	ResourceID          *string  `json:"resourceId,omitempty"`
	ExternalResourceID  *string  `json:"externalResourceId,omitempty"`
}

LabResourceCostProperties is the properties of a resource cost item.

type LabVhd

type LabVhd struct {
	ID *string `json:"id,omitempty"`
}

LabVhd is properties of a VHD in the lab.

type LabVirtualMachine

type LabVirtualMachine struct {
	autorest.Response            `json:"-"`
	ID                           *string             `json:"id,omitempty"`
	Name                         *string             `json:"name,omitempty"`
	Type                         *string             `json:"type,omitempty"`
	Location                     *string             `json:"location,omitempty"`
	Tags                         *map[string]*string `json:"tags,omitempty"`
	*LabVirtualMachineProperties `json:"properties,omitempty"`
}

LabVirtualMachine is a virtual machine.

type LabVirtualMachineCreationParameter

type LabVirtualMachineCreationParameter struct {
	*LabVirtualMachineCreationParameterProperties `json:"properties,omitempty"`
	Name                                          *string             `json:"name,omitempty"`
	Location                                      *string             `json:"location,omitempty"`
	Tags                                          *map[string]*string `json:"tags,omitempty"`
}

LabVirtualMachineCreationParameter is properties for creating a virtual machine.

type LabVirtualMachineCreationParameterProperties

type LabVirtualMachineCreationParameterProperties struct {
	BulkCreationParameters       *BulkCreationParameters             `json:"bulkCreationParameters,omitempty"`
	Notes                        *string                             `json:"notes,omitempty"`
	OwnerObjectID                *string                             `json:"ownerObjectId,omitempty"`
	OwnerUserPrincipalName       *string                             `json:"ownerUserPrincipalName,omitempty"`
	CreatedByUserID              *string                             `json:"createdByUserId,omitempty"`
	CreatedByUser                *string                             `json:"createdByUser,omitempty"`
	CreatedDate                  *date.Time                          `json:"createdDate,omitempty"`
	CustomImageID                *string                             `json:"customImageId,omitempty"`
	OsType                       *string                             `json:"osType,omitempty"`
	Size                         *string                             `json:"size,omitempty"`
	UserName                     *string                             `json:"userName,omitempty"`
	Password                     *string                             `json:"password,omitempty"`
	SSHKey                       *string                             `json:"sshKey,omitempty"`
	IsAuthenticationWithSSHKey   *bool                               `json:"isAuthenticationWithSshKey,omitempty"`
	Fqdn                         *string                             `json:"fqdn,omitempty"`
	LabSubnetName                *string                             `json:"labSubnetName,omitempty"`
	LabVirtualNetworkID          *string                             `json:"labVirtualNetworkId,omitempty"`
	DisallowPublicIPAddress      *bool                               `json:"disallowPublicIpAddress,omitempty"`
	Artifacts                    *[]ArtifactInstallProperties        `json:"artifacts,omitempty"`
	ArtifactDeploymentStatus     *ArtifactDeploymentStatusProperties `json:"artifactDeploymentStatus,omitempty"`
	GalleryImageReference        *GalleryImageReference              `json:"galleryImageReference,omitempty"`
	ComputeVM                    *ComputeVMProperties                `json:"computeVm,omitempty"`
	NetworkInterface             *NetworkInterfaceProperties         `json:"networkInterface,omitempty"`
	ApplicableSchedule           *ApplicableSchedule                 `json:"applicableSchedule,omitempty"`
	ExpirationDate               *date.Time                          `json:"expirationDate,omitempty"`
	AllowClaim                   *bool                               `json:"allowClaim,omitempty"`
	StorageType                  *string                             `json:"storageType,omitempty"`
	VirtualMachineCreationSource VirtualMachineCreationSource        `json:"virtualMachineCreationSource,omitempty"`
	EnvironmentID                *string                             `json:"environmentId,omitempty"`
	ProvisioningState            *string                             `json:"provisioningState,omitempty"`
	UniqueIdentifier             *string                             `json:"uniqueIdentifier,omitempty"`
}

LabVirtualMachineCreationParameterProperties is properties for virtual machine creation.

type LabVirtualMachineFragment

type LabVirtualMachineFragment struct {
	ID                                   *string             `json:"id,omitempty"`
	Name                                 *string             `json:"name,omitempty"`
	Type                                 *string             `json:"type,omitempty"`
	Location                             *string             `json:"location,omitempty"`
	Tags                                 *map[string]*string `json:"tags,omitempty"`
	*LabVirtualMachinePropertiesFragment `json:"properties,omitempty"`
}

LabVirtualMachineFragment is a virtual machine.

type LabVirtualMachineProperties

type LabVirtualMachineProperties struct {
	Notes                        *string                             `json:"notes,omitempty"`
	OwnerObjectID                *string                             `json:"ownerObjectId,omitempty"`
	OwnerUserPrincipalName       *string                             `json:"ownerUserPrincipalName,omitempty"`
	CreatedByUserID              *string                             `json:"createdByUserId,omitempty"`
	CreatedByUser                *string                             `json:"createdByUser,omitempty"`
	CreatedDate                  *date.Time                          `json:"createdDate,omitempty"`
	ComputeID                    *string                             `json:"computeId,omitempty"`
	CustomImageID                *string                             `json:"customImageId,omitempty"`
	OsType                       *string                             `json:"osType,omitempty"`
	Size                         *string                             `json:"size,omitempty"`
	UserName                     *string                             `json:"userName,omitempty"`
	Password                     *string                             `json:"password,omitempty"`
	SSHKey                       *string                             `json:"sshKey,omitempty"`
	IsAuthenticationWithSSHKey   *bool                               `json:"isAuthenticationWithSshKey,omitempty"`
	Fqdn                         *string                             `json:"fqdn,omitempty"`
	LabSubnetName                *string                             `json:"labSubnetName,omitempty"`
	LabVirtualNetworkID          *string                             `json:"labVirtualNetworkId,omitempty"`
	DisallowPublicIPAddress      *bool                               `json:"disallowPublicIpAddress,omitempty"`
	Artifacts                    *[]ArtifactInstallProperties        `json:"artifacts,omitempty"`
	ArtifactDeploymentStatus     *ArtifactDeploymentStatusProperties `json:"artifactDeploymentStatus,omitempty"`
	GalleryImageReference        *GalleryImageReference              `json:"galleryImageReference,omitempty"`
	ComputeVM                    *ComputeVMProperties                `json:"computeVm,omitempty"`
	NetworkInterface             *NetworkInterfaceProperties         `json:"networkInterface,omitempty"`
	ApplicableSchedule           *ApplicableSchedule                 `json:"applicableSchedule,omitempty"`
	ExpirationDate               *date.Time                          `json:"expirationDate,omitempty"`
	AllowClaim                   *bool                               `json:"allowClaim,omitempty"`
	StorageType                  *string                             `json:"storageType,omitempty"`
	VirtualMachineCreationSource VirtualMachineCreationSource        `json:"virtualMachineCreationSource,omitempty"`
	EnvironmentID                *string                             `json:"environmentId,omitempty"`
	ProvisioningState            *string                             `json:"provisioningState,omitempty"`
	UniqueIdentifier             *string                             `json:"uniqueIdentifier,omitempty"`
}

LabVirtualMachineProperties is properties of a virtual machine.

type LabVirtualMachinePropertiesFragment

type LabVirtualMachinePropertiesFragment struct {
	Notes                        *string                                     `json:"notes,omitempty"`
	OwnerObjectID                *string                                     `json:"ownerObjectId,omitempty"`
	OwnerUserPrincipalName       *string                                     `json:"ownerUserPrincipalName,omitempty"`
	CreatedByUserID              *string                                     `json:"createdByUserId,omitempty"`
	CreatedByUser                *string                                     `json:"createdByUser,omitempty"`
	CreatedDate                  *date.Time                                  `json:"createdDate,omitempty"`
	CustomImageID                *string                                     `json:"customImageId,omitempty"`
	OsType                       *string                                     `json:"osType,omitempty"`
	Size                         *string                                     `json:"size,omitempty"`
	UserName                     *string                                     `json:"userName,omitempty"`
	Password                     *string                                     `json:"password,omitempty"`
	SSHKey                       *string                                     `json:"sshKey,omitempty"`
	IsAuthenticationWithSSHKey   *bool                                       `json:"isAuthenticationWithSshKey,omitempty"`
	Fqdn                         *string                                     `json:"fqdn,omitempty"`
	LabSubnetName                *string                                     `json:"labSubnetName,omitempty"`
	LabVirtualNetworkID          *string                                     `json:"labVirtualNetworkId,omitempty"`
	DisallowPublicIPAddress      *bool                                       `json:"disallowPublicIpAddress,omitempty"`
	Artifacts                    *[]ArtifactInstallPropertiesFragment        `json:"artifacts,omitempty"`
	ArtifactDeploymentStatus     *ArtifactDeploymentStatusPropertiesFragment `json:"artifactDeploymentStatus,omitempty"`
	GalleryImageReference        *GalleryImageReferenceFragment              `json:"galleryImageReference,omitempty"`
	ComputeVM                    *ComputeVMPropertiesFragment                `json:"computeVm,omitempty"`
	NetworkInterface             *NetworkInterfacePropertiesFragment         `json:"networkInterface,omitempty"`
	ApplicableSchedule           *ApplicableScheduleFragment                 `json:"applicableSchedule,omitempty"`
	ExpirationDate               *date.Time                                  `json:"expirationDate,omitempty"`
	AllowClaim                   *bool                                       `json:"allowClaim,omitempty"`
	StorageType                  *string                                     `json:"storageType,omitempty"`
	VirtualMachineCreationSource VirtualMachineCreationSource                `json:"virtualMachineCreationSource,omitempty"`
	EnvironmentID                *string                                     `json:"environmentId,omitempty"`
	ProvisioningState            *string                                     `json:"provisioningState,omitempty"`
	UniqueIdentifier             *string                                     `json:"uniqueIdentifier,omitempty"`
}

LabVirtualMachinePropertiesFragment is properties of a virtual machine.

type LabsClient

type LabsClient struct {
	ManagementClient
}

LabsClient is the the DevTest Labs Client.

func NewLabsClient

func NewLabsClient(subscriptionID string) LabsClient

NewLabsClient creates an instance of the LabsClient client.

func NewLabsClientWithBaseURI

func NewLabsClientWithBaseURI(baseURI string, subscriptionID string) LabsClient

NewLabsClientWithBaseURI creates an instance of the LabsClient client.

func (LabsClient) ClaimAnyVM

func (client LabsClient) ClaimAnyVM(resourceGroupName string, name string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

ClaimAnyVM claim a random claimable virtual machine in the lab. This operation can take a while to complete. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. name is the name of the lab.

func (LabsClient) ClaimAnyVMPreparer

func (client LabsClient) ClaimAnyVMPreparer(resourceGroupName string, name string, cancel <-chan struct{}) (*http.Request, error)

ClaimAnyVMPreparer prepares the ClaimAnyVM request.

func (LabsClient) ClaimAnyVMResponder

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

ClaimAnyVMResponder handles the response to the ClaimAnyVM request. The method always closes the http.Response Body.

func (LabsClient) ClaimAnyVMSender

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

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

func (LabsClient) CreateEnvironment

func (client LabsClient) CreateEnvironment(resourceGroupName string, name string, labVirtualMachineCreationParameter LabVirtualMachineCreationParameter, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

CreateEnvironment create virtual machines in a lab. This operation can take a while to complete. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. name is the name of the lab. labVirtualMachineCreationParameter is properties for creating a virtual machine.

func (LabsClient) CreateEnvironmentPreparer

func (client LabsClient) CreateEnvironmentPreparer(resourceGroupName string, name string, labVirtualMachineCreationParameter LabVirtualMachineCreationParameter, cancel <-chan struct{}) (*http.Request, error)

CreateEnvironmentPreparer prepares the CreateEnvironment request.

func (LabsClient) CreateEnvironmentResponder

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

CreateEnvironmentResponder handles the response to the CreateEnvironment request. The method always closes the http.Response Body.

func (LabsClient) CreateEnvironmentSender

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

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

func (LabsClient) CreateOrUpdate

func (client LabsClient) CreateOrUpdate(resourceGroupName string, name string, lab Lab, cancel <-chan struct{}) (<-chan Lab, <-chan error)

CreateOrUpdate create or replace an existing lab. This operation can take a while to complete. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. name is the name of the lab. lab is a lab.

func (LabsClient) CreateOrUpdatePreparer

func (client LabsClient) CreateOrUpdatePreparer(resourceGroupName string, name string, lab Lab, cancel <-chan struct{}) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (LabsClient) CreateOrUpdateResponder

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

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

func (LabsClient) CreateOrUpdateSender

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

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

func (LabsClient) Delete

func (client LabsClient) Delete(resourceGroupName string, name string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

Delete delete lab. This operation can take a while to complete. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. name is the name of the lab.

func (LabsClient) DeletePreparer

func (client LabsClient) DeletePreparer(resourceGroupName string, name string, cancel <-chan struct{}) (*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) (*http.Response, error)

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

func (LabsClient) ExportResourceUsage

func (client LabsClient) ExportResourceUsage(resourceGroupName string, name string, exportResourceUsageParameters ExportResourceUsageParameters, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

ExportResourceUsage exports the lab resource usage into a storage account This operation can take a while to complete. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. name is the name of the lab. exportResourceUsageParameters is the parameters of the export operation.

func (LabsClient) ExportResourceUsagePreparer

func (client LabsClient) ExportResourceUsagePreparer(resourceGroupName string, name string, exportResourceUsageParameters ExportResourceUsageParameters, cancel <-chan struct{}) (*http.Request, error)

ExportResourceUsagePreparer prepares the ExportResourceUsage request.

func (LabsClient) ExportResourceUsageResponder

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

ExportResourceUsageResponder handles the response to the ExportResourceUsage request. The method always closes the http.Response Body.

func (LabsClient) ExportResourceUsageSender

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

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

func (LabsClient) GenerateUploadURI

func (client LabsClient) GenerateUploadURI(resourceGroupName string, name string, generateUploadURIParameter GenerateUploadURIParameter) (result GenerateUploadURIResponse, err error)

GenerateUploadURI generate a URI for uploading custom disk images to a Lab.

resourceGroupName is the name of the resource group. name is the name of the lab. generateUploadURIParameter is properties for generating an upload URI.

func (LabsClient) GenerateUploadURIPreparer

func (client LabsClient) GenerateUploadURIPreparer(resourceGroupName string, name string, generateUploadURIParameter GenerateUploadURIParameter) (*http.Request, error)

GenerateUploadURIPreparer prepares the GenerateUploadURI request.

func (LabsClient) GenerateUploadURIResponder

func (client LabsClient) GenerateUploadURIResponder(resp *http.Response) (result GenerateUploadURIResponse, err error)

GenerateUploadURIResponder handles the response to the GenerateUploadURI request. The method always closes the http.Response Body.

func (LabsClient) GenerateUploadURISender

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

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

func (LabsClient) Get

func (client LabsClient) Get(resourceGroupName string, name string, expand string) (result Lab, err error)

Get get lab.

resourceGroupName is the name of the resource group. name is the name of the lab. expand is specify the $expand query. Example: 'properties($select=defaultStorageAccount)'

func (LabsClient) GetPreparer

func (client LabsClient) GetPreparer(resourceGroupName string, name string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (LabsClient) GetResponder

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

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

func (LabsClient) GetSender

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

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

func (LabsClient) ListByResourceGroup

func (client LabsClient) ListByResourceGroup(resourceGroupName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationLab, err error)

ListByResourceGroup list labs in a resource group.

resourceGroupName is the name of the resource group. expand is specify the $expand query. Example: 'properties($select=defaultStorageAccount)' filter is the filter to apply to the operation. top is the maximum number of resources to return from the operation. orderby is the ordering expression for the results, using OData notation.

func (LabsClient) ListByResourceGroupComplete

func (client LabsClient) ListByResourceGroupComplete(resourceGroupName string, expand string, filter string, top *int32, orderby string, cancel <-chan struct{}) (<-chan Lab, <-chan error)

ListByResourceGroupComplete gets all elements from the list without paging.

func (LabsClient) ListByResourceGroupNextResults

func (client LabsClient) ListByResourceGroupNextResults(lastResults ResponseWithContinuationLab) (result ResponseWithContinuationLab, err error)

ListByResourceGroupNextResults retrieves the next set of results, if any.

func (LabsClient) ListByResourceGroupPreparer

func (client LabsClient) ListByResourceGroupPreparer(resourceGroupName string, expand string, filter string, top *int32, orderby string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (LabsClient) ListByResourceGroupResponder

func (client LabsClient) ListByResourceGroupResponder(resp *http.Response) (result ResponseWithContinuationLab, 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(expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationLab, err error)

ListBySubscription list labs in a subscription.

expand is specify the $expand query. Example: 'properties($select=defaultStorageAccount)' filter is the filter to apply to the operation. top is the maximum number of resources to return from the operation. orderby is the ordering expression for the results, using OData notation.

func (LabsClient) ListBySubscriptionComplete

func (client LabsClient) ListBySubscriptionComplete(expand string, filter string, top *int32, orderby string, cancel <-chan struct{}) (<-chan Lab, <-chan error)

ListBySubscriptionComplete gets all elements from the list without paging.

func (LabsClient) ListBySubscriptionNextResults

func (client LabsClient) ListBySubscriptionNextResults(lastResults ResponseWithContinuationLab) (result ResponseWithContinuationLab, err error)

ListBySubscriptionNextResults retrieves the next set of results, if any.

func (LabsClient) ListBySubscriptionPreparer

func (client LabsClient) ListBySubscriptionPreparer(expand string, filter string, top *int32, orderby string) (*http.Request, error)

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (LabsClient) ListBySubscriptionResponder

func (client LabsClient) ListBySubscriptionResponder(resp *http.Response) (result ResponseWithContinuationLab, 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) ListVhds

func (client LabsClient) ListVhds(resourceGroupName string, name string) (result ResponseWithContinuationLabVhd, err error)

ListVhds list disk images available for custom image creation.

resourceGroupName is the name of the resource group. name is the name of the lab.

func (LabsClient) ListVhdsComplete

func (client LabsClient) ListVhdsComplete(resourceGroupName string, name string, cancel <-chan struct{}) (<-chan LabVhd, <-chan error)

ListVhdsComplete gets all elements from the list without paging.

func (LabsClient) ListVhdsNextResults

func (client LabsClient) ListVhdsNextResults(lastResults ResponseWithContinuationLabVhd) (result ResponseWithContinuationLabVhd, err error)

ListVhdsNextResults retrieves the next set of results, if any.

func (LabsClient) ListVhdsPreparer

func (client LabsClient) ListVhdsPreparer(resourceGroupName string, name string) (*http.Request, error)

ListVhdsPreparer prepares the ListVhds request.

func (LabsClient) ListVhdsResponder

func (client LabsClient) ListVhdsResponder(resp *http.Response) (result ResponseWithContinuationLabVhd, err error)

ListVhdsResponder handles the response to the ListVhds request. The method always closes the http.Response Body.

func (LabsClient) ListVhdsSender

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

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

func (LabsClient) Update

func (client LabsClient) Update(resourceGroupName string, name string, lab LabFragment) (result Lab, err error)

Update modify properties of labs.

resourceGroupName is the name of the resource group. name is the name of the lab. lab is a lab.

func (LabsClient) UpdatePreparer

func (client LabsClient) UpdatePreparer(resourceGroupName string, name string, lab LabFragment) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (LabsClient) UpdateResponder

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

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

func (LabsClient) UpdateSender

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

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

type LinuxOsInfo

type LinuxOsInfo struct {
	LinuxOsState LinuxOsState `json:"linuxOsState,omitempty"`
}

LinuxOsInfo is information about a Linux OS.

type LinuxOsState

type LinuxOsState string

LinuxOsState enumerates the values for linux os state.

const (
	// DeprovisionApplied specifies the deprovision applied state for linux os state.
	DeprovisionApplied LinuxOsState = "DeprovisionApplied"
	// DeprovisionRequested specifies the deprovision requested state for linux os state.
	DeprovisionRequested LinuxOsState = "DeprovisionRequested"
	// NonDeprovisioned specifies the non deprovisioned state for linux os state.
	NonDeprovisioned LinuxOsState = "NonDeprovisioned"
)

type ManagementClient

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

ManagementClient is the base client for Devtestlabs.

func New

func New(subscriptionID string) ManagementClient

New creates an instance of the ManagementClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) ManagementClient

NewWithBaseURI creates an instance of the ManagementClient client.

type NetworkInterfaceProperties

type NetworkInterfaceProperties struct {
	VirtualNetworkID                   *string                             `json:"virtualNetworkId,omitempty"`
	SubnetID                           *string                             `json:"subnetId,omitempty"`
	PublicIPAddressID                  *string                             `json:"publicIpAddressId,omitempty"`
	PublicIPAddress                    *string                             `json:"publicIpAddress,omitempty"`
	PrivateIPAddress                   *string                             `json:"privateIpAddress,omitempty"`
	DNSName                            *string                             `json:"dnsName,omitempty"`
	RdpAuthority                       *string                             `json:"rdpAuthority,omitempty"`
	SSHAuthority                       *string                             `json:"sshAuthority,omitempty"`
	SharedPublicIPAddressConfiguration *SharedPublicIPAddressConfiguration `json:"sharedPublicIpAddressConfiguration,omitempty"`
}

NetworkInterfaceProperties is properties of a network interface.

type NetworkInterfacePropertiesFragment

type NetworkInterfacePropertiesFragment struct {
	VirtualNetworkID                   *string                                     `json:"virtualNetworkId,omitempty"`
	SubnetID                           *string                                     `json:"subnetId,omitempty"`
	PublicIPAddressID                  *string                                     `json:"publicIpAddressId,omitempty"`
	PublicIPAddress                    *string                                     `json:"publicIpAddress,omitempty"`
	PrivateIPAddress                   *string                                     `json:"privateIpAddress,omitempty"`
	DNSName                            *string                                     `json:"dnsName,omitempty"`
	RdpAuthority                       *string                                     `json:"rdpAuthority,omitempty"`
	SSHAuthority                       *string                                     `json:"sshAuthority,omitempty"`
	SharedPublicIPAddressConfiguration *SharedPublicIPAddressConfigurationFragment `json:"sharedPublicIpAddressConfiguration,omitempty"`
}

NetworkInterfacePropertiesFragment is properties of a network interface.

type NotificationChannel

type NotificationChannel struct {
	autorest.Response              `json:"-"`
	ID                             *string             `json:"id,omitempty"`
	Name                           *string             `json:"name,omitempty"`
	Type                           *string             `json:"type,omitempty"`
	Location                       *string             `json:"location,omitempty"`
	Tags                           *map[string]*string `json:"tags,omitempty"`
	*NotificationChannelProperties `json:"properties,omitempty"`
}

NotificationChannel is a notification.

type NotificationChannelEventType

type NotificationChannelEventType string

NotificationChannelEventType enumerates the values for notification channel event type.

const (
	// AutoShutdown specifies the auto shutdown state for notification channel event type.
	AutoShutdown NotificationChannelEventType = "AutoShutdown"
	// Cost specifies the cost state for notification channel event type.
	Cost NotificationChannelEventType = "Cost"
)

type NotificationChannelFragment

type NotificationChannelFragment struct {
	ID                                     *string             `json:"id,omitempty"`
	Name                                   *string             `json:"name,omitempty"`
	Type                                   *string             `json:"type,omitempty"`
	Location                               *string             `json:"location,omitempty"`
	Tags                                   *map[string]*string `json:"tags,omitempty"`
	*NotificationChannelPropertiesFragment `json:"properties,omitempty"`
}

NotificationChannelFragment is a notification.

type NotificationChannelProperties

type NotificationChannelProperties struct {
	WebHookURL        *string    `json:"webHookUrl,omitempty"`
	Description       *string    `json:"description,omitempty"`
	Events            *[]Event   `json:"events,omitempty"`
	CreatedDate       *date.Time `json:"createdDate,omitempty"`
	ProvisioningState *string    `json:"provisioningState,omitempty"`
	UniqueIdentifier  *string    `json:"uniqueIdentifier,omitempty"`
}

NotificationChannelProperties is properties of a schedule.

type NotificationChannelPropertiesFragment

type NotificationChannelPropertiesFragment struct {
	WebHookURL        *string          `json:"webHookUrl,omitempty"`
	Description       *string          `json:"description,omitempty"`
	Events            *[]EventFragment `json:"events,omitempty"`
	ProvisioningState *string          `json:"provisioningState,omitempty"`
	UniqueIdentifier  *string          `json:"uniqueIdentifier,omitempty"`
}

NotificationChannelPropertiesFragment is properties of a schedule.

type NotificationChannelsClient

type NotificationChannelsClient struct {
	ManagementClient
}

NotificationChannelsClient is the the DevTest Labs Client.

func NewNotificationChannelsClient

func NewNotificationChannelsClient(subscriptionID string) NotificationChannelsClient

NewNotificationChannelsClient creates an instance of the NotificationChannelsClient client.

func NewNotificationChannelsClientWithBaseURI

func NewNotificationChannelsClientWithBaseURI(baseURI string, subscriptionID string) NotificationChannelsClient

NewNotificationChannelsClientWithBaseURI creates an instance of the NotificationChannelsClient client.

func (NotificationChannelsClient) CreateOrUpdate

func (client NotificationChannelsClient) CreateOrUpdate(resourceGroupName string, labName string, name string, notificationChannel NotificationChannel) (result NotificationChannel, err error)

CreateOrUpdate create or replace an existing notificationChannel.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the notificationChannel. notificationChannel is a notification.

func (NotificationChannelsClient) CreateOrUpdatePreparer

func (client NotificationChannelsClient) CreateOrUpdatePreparer(resourceGroupName string, labName string, name string, notificationChannel NotificationChannel) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (NotificationChannelsClient) CreateOrUpdateResponder

func (client NotificationChannelsClient) CreateOrUpdateResponder(resp *http.Response) (result NotificationChannel, err error)

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

func (NotificationChannelsClient) CreateOrUpdateSender

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

func (client NotificationChannelsClient) Delete(resourceGroupName string, labName string, name string) (result autorest.Response, err error)

Delete delete notificationchannel.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the notificationChannel.

func (NotificationChannelsClient) DeletePreparer

func (client NotificationChannelsClient) DeletePreparer(resourceGroupName string, labName string, name string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (NotificationChannelsClient) DeleteResponder

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

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

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

func (NotificationChannelsClient) Get

func (client NotificationChannelsClient) Get(resourceGroupName string, labName string, name string, expand string) (result NotificationChannel, err error)

Get get notificationchannel.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the notificationChannel. expand is specify the $expand query. Example: 'properties($select=webHookUrl)'

func (NotificationChannelsClient) GetPreparer

func (client NotificationChannelsClient) GetPreparer(resourceGroupName string, labName string, name string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (NotificationChannelsClient) GetResponder

func (client NotificationChannelsClient) GetResponder(resp *http.Response) (result NotificationChannel, err error)

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

func (NotificationChannelsClient) GetSender

func (client NotificationChannelsClient) 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 (NotificationChannelsClient) List

func (client NotificationChannelsClient) List(resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationNotificationChannel, err error)

List list notificationchannels in a given lab.

resourceGroupName is the name of the resource group. labName is the name of the lab. expand is specify the $expand query. Example: 'properties($select=webHookUrl)' filter is the filter to apply to the operation. top is the maximum number of resources to return from the operation. orderby is the ordering expression for the results, using OData notation.

func (NotificationChannelsClient) ListComplete

func (client NotificationChannelsClient) ListComplete(resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string, cancel <-chan struct{}) (<-chan NotificationChannel, <-chan error)

ListComplete gets all elements from the list without paging.

func (NotificationChannelsClient) ListNextResults

ListNextResults retrieves the next set of results, if any.

func (NotificationChannelsClient) ListPreparer

func (client NotificationChannelsClient) ListPreparer(resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string) (*http.Request, error)

ListPreparer prepares the List request.

func (NotificationChannelsClient) ListResponder

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

func (NotificationChannelsClient) ListSender

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

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

func (NotificationChannelsClient) Notify

func (client NotificationChannelsClient) Notify(resourceGroupName string, labName string, name string, notifyParameters NotifyParameters) (result autorest.Response, err error)

Notify send notification to provided channel.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the notificationChannel. notifyParameters is properties for generating a Notification.

func (NotificationChannelsClient) NotifyPreparer

func (client NotificationChannelsClient) NotifyPreparer(resourceGroupName string, labName string, name string, notifyParameters NotifyParameters) (*http.Request, error)

NotifyPreparer prepares the Notify request.

func (NotificationChannelsClient) NotifyResponder

func (client NotificationChannelsClient) NotifyResponder(resp *http.Response) (result autorest.Response, err error)

NotifyResponder handles the response to the Notify request. The method always closes the http.Response Body.

func (NotificationChannelsClient) NotifySender

func (client NotificationChannelsClient) NotifySender(req *http.Request) (*http.Response, error)

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

func (NotificationChannelsClient) Update

func (client NotificationChannelsClient) Update(resourceGroupName string, labName string, name string, notificationChannel NotificationChannelFragment) (result NotificationChannel, err error)

Update modify properties of notificationchannels.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the notificationChannel. notificationChannel is a notification.

func (NotificationChannelsClient) UpdatePreparer

func (client NotificationChannelsClient) UpdatePreparer(resourceGroupName string, labName string, name string, notificationChannel NotificationChannelFragment) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (NotificationChannelsClient) UpdateResponder

func (client NotificationChannelsClient) UpdateResponder(resp *http.Response) (result NotificationChannel, err error)

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

func (NotificationChannelsClient) UpdateSender

func (client NotificationChannelsClient) 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 NotificationSettings

type NotificationSettings struct {
	Status        NotificationStatus `json:"status,omitempty"`
	TimeInMinutes *int32             `json:"timeInMinutes,omitempty"`
	WebhookURL    *string            `json:"webhookUrl,omitempty"`
}

NotificationSettings is notification settings for a schedule.

type NotificationSettingsFragment

type NotificationSettingsFragment struct {
	Status        NotificationStatus `json:"status,omitempty"`
	TimeInMinutes *int32             `json:"timeInMinutes,omitempty"`
	WebhookURL    *string            `json:"webhookUrl,omitempty"`
}

NotificationSettingsFragment is notification settings for a schedule.

type NotificationStatus

type NotificationStatus string

NotificationStatus enumerates the values for notification status.

const (
	// NotificationStatusDisabled specifies the notification status disabled state for notification status.
	NotificationStatusDisabled NotificationStatus = "Disabled"
	// NotificationStatusEnabled specifies the notification status enabled state for notification status.
	NotificationStatusEnabled NotificationStatus = "Enabled"
)

type NotifyParameters

type NotifyParameters struct {
	EventName   NotificationChannelEventType `json:"eventName,omitempty"`
	JSONPayload *string                      `json:"jsonPayload,omitempty"`
}

NotifyParameters is properties for generating a Notification.

type ParameterInfo

type ParameterInfo struct {
	Name  *string `json:"name,omitempty"`
	Value *string `json:"value,omitempty"`
}

ParameterInfo is information about an artifact's parameter.

type ParametersValueFileInfo

type ParametersValueFileInfo struct {
	FileName            *string                 `json:"fileName,omitempty"`
	ParametersValueInfo *map[string]interface{} `json:"parametersValueInfo,omitempty"`
}

ParametersValueFileInfo is a file containing a set of parameter values for an ARM template.

type PercentageCostThresholdProperties

type PercentageCostThresholdProperties struct {
	ThresholdValue *float64 `json:"thresholdValue,omitempty"`
}

PercentageCostThresholdProperties is properties of a percentage cost threshold.

type PoliciesClient

type PoliciesClient struct {
	ManagementClient
}

PoliciesClient is the the DevTest Labs Client.

func NewPoliciesClient

func NewPoliciesClient(subscriptionID string) PoliciesClient

NewPoliciesClient creates an instance of the PoliciesClient client.

func NewPoliciesClientWithBaseURI

func NewPoliciesClientWithBaseURI(baseURI string, subscriptionID string) PoliciesClient

NewPoliciesClientWithBaseURI creates an instance of the PoliciesClient client.

func (PoliciesClient) CreateOrUpdate

func (client PoliciesClient) CreateOrUpdate(resourceGroupName string, labName string, policySetName string, name string, policy Policy) (result Policy, err error)

CreateOrUpdate create or replace an existing policy.

resourceGroupName is the name of the resource group. labName is the name of the lab. policySetName is the name of the policy set. name is the name of the policy. policy is a Policy.

func (PoliciesClient) CreateOrUpdatePreparer

func (client PoliciesClient) CreateOrUpdatePreparer(resourceGroupName string, labName string, policySetName string, name string, policy Policy) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (PoliciesClient) CreateOrUpdateResponder

func (client PoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result Policy, err error)

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

func (PoliciesClient) CreateOrUpdateSender

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

func (client PoliciesClient) Delete(resourceGroupName string, labName string, policySetName string, name string) (result autorest.Response, err error)

Delete delete policy.

resourceGroupName is the name of the resource group. labName is the name of the lab. policySetName is the name of the policy set. name is the name of the policy.

func (PoliciesClient) DeletePreparer

func (client PoliciesClient) DeletePreparer(resourceGroupName string, labName string, policySetName string, name string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (PoliciesClient) DeleteResponder

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

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

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

func (PoliciesClient) Get

func (client PoliciesClient) Get(resourceGroupName string, labName string, policySetName string, name string, expand string) (result Policy, err error)

Get get policy.

resourceGroupName is the name of the resource group. labName is the name of the lab. policySetName is the name of the policy set. name is the name of the policy. expand is specify the $expand query. Example: 'properties($select=description)'

func (PoliciesClient) GetPreparer

func (client PoliciesClient) GetPreparer(resourceGroupName string, labName string, policySetName string, name string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (PoliciesClient) GetResponder

func (client PoliciesClient) GetResponder(resp *http.Response) (result Policy, err error)

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

func (PoliciesClient) GetSender

func (client PoliciesClient) 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 (PoliciesClient) List

func (client PoliciesClient) List(resourceGroupName string, labName string, policySetName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationPolicy, err error)

List list policies in a given policy set.

resourceGroupName is the name of the resource group. labName is the name of the lab. policySetName is the name of the policy set. expand is specify the $expand query. Example: 'properties($select=description)' filter is the filter to apply to the operation. top is the maximum number of resources to return from the operation. orderby is the ordering expression for the results, using OData notation.

func (PoliciesClient) ListComplete

func (client PoliciesClient) ListComplete(resourceGroupName string, labName string, policySetName string, expand string, filter string, top *int32, orderby string, cancel <-chan struct{}) (<-chan Policy, <-chan error)

ListComplete gets all elements from the list without paging.

func (PoliciesClient) ListNextResults

func (client PoliciesClient) ListNextResults(lastResults ResponseWithContinuationPolicy) (result ResponseWithContinuationPolicy, err error)

ListNextResults retrieves the next set of results, if any.

func (PoliciesClient) ListPreparer

func (client PoliciesClient) ListPreparer(resourceGroupName string, labName string, policySetName string, expand string, filter string, top *int32, orderby string) (*http.Request, error)

ListPreparer prepares the List request.

func (PoliciesClient) ListResponder

func (client PoliciesClient) ListResponder(resp *http.Response) (result ResponseWithContinuationPolicy, err error)

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

func (PoliciesClient) ListSender

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

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

func (PoliciesClient) Update

func (client PoliciesClient) Update(resourceGroupName string, labName string, policySetName string, name string, policy PolicyFragment) (result Policy, err error)

Update modify properties of policies.

resourceGroupName is the name of the resource group. labName is the name of the lab. policySetName is the name of the policy set. name is the name of the policy. policy is a Policy.

func (PoliciesClient) UpdatePreparer

func (client PoliciesClient) UpdatePreparer(resourceGroupName string, labName string, policySetName string, name string, policy PolicyFragment) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (PoliciesClient) UpdateResponder

func (client PoliciesClient) UpdateResponder(resp *http.Response) (result Policy, err error)

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

func (PoliciesClient) UpdateSender

func (client PoliciesClient) 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 Policy

type Policy struct {
	autorest.Response `json:"-"`
	ID                *string             `json:"id,omitempty"`
	Name              *string             `json:"name,omitempty"`
	Type              *string             `json:"type,omitempty"`
	Location          *string             `json:"location,omitempty"`
	Tags              *map[string]*string `json:"tags,omitempty"`
	*PolicyProperties `json:"properties,omitempty"`
}

Policy is a Policy.

type PolicyEvaluatorType

type PolicyEvaluatorType string

PolicyEvaluatorType enumerates the values for policy evaluator type.

const (
	// AllowedValuesPolicy specifies the allowed values policy state for policy evaluator type.
	AllowedValuesPolicy PolicyEvaluatorType = "AllowedValuesPolicy"
	// MaxValuePolicy specifies the max value policy state for policy evaluator type.
	MaxValuePolicy PolicyEvaluatorType = "MaxValuePolicy"
)

type PolicyFactName

type PolicyFactName string

PolicyFactName enumerates the values for policy fact name.

const (
	// PolicyFactNameGalleryImage specifies the policy fact name gallery image state for policy fact name.
	PolicyFactNameGalleryImage PolicyFactName = "GalleryImage"
	// PolicyFactNameLabPremiumVMCount specifies the policy fact name lab premium vm count state for policy fact name.
	PolicyFactNameLabPremiumVMCount PolicyFactName = "LabPremiumVmCount"
	// PolicyFactNameLabTargetCost specifies the policy fact name lab target cost state for policy fact name.
	PolicyFactNameLabTargetCost PolicyFactName = "LabTargetCost"
	// PolicyFactNameLabVMCount specifies the policy fact name lab vm count state for policy fact name.
	PolicyFactNameLabVMCount PolicyFactName = "LabVmCount"
	// PolicyFactNameLabVMSize specifies the policy fact name lab vm size state for policy fact name.
	PolicyFactNameLabVMSize PolicyFactName = "LabVmSize"
	// PolicyFactNameUserOwnedLabPremiumVMCount specifies the policy fact name user owned lab premium vm count state for
	// policy fact name.
	PolicyFactNameUserOwnedLabPremiumVMCount PolicyFactName = "UserOwnedLabPremiumVmCount"
	// PolicyFactNameUserOwnedLabVMCount specifies the policy fact name user owned lab vm count state for policy fact name.
	PolicyFactNameUserOwnedLabVMCount PolicyFactName = "UserOwnedLabVmCount"
	// PolicyFactNameUserOwnedLabVMCountInSubnet specifies the policy fact name user owned lab vm count in subnet state for
	// policy fact name.
	PolicyFactNameUserOwnedLabVMCountInSubnet PolicyFactName = "UserOwnedLabVmCountInSubnet"
)

type PolicyFragment

type PolicyFragment struct {
	ID                        *string             `json:"id,omitempty"`
	Name                      *string             `json:"name,omitempty"`
	Type                      *string             `json:"type,omitempty"`
	Location                  *string             `json:"location,omitempty"`
	Tags                      *map[string]*string `json:"tags,omitempty"`
	*PolicyPropertiesFragment `json:"properties,omitempty"`
}

PolicyFragment is a Policy.

type PolicyProperties

type PolicyProperties struct {
	Description       *string             `json:"description,omitempty"`
	Status            PolicyStatus        `json:"status,omitempty"`
	FactName          PolicyFactName      `json:"factName,omitempty"`
	FactData          *string             `json:"factData,omitempty"`
	Threshold         *string             `json:"threshold,omitempty"`
	EvaluatorType     PolicyEvaluatorType `json:"evaluatorType,omitempty"`
	CreatedDate       *date.Time          `json:"createdDate,omitempty"`
	ProvisioningState *string             `json:"provisioningState,omitempty"`
	UniqueIdentifier  *string             `json:"uniqueIdentifier,omitempty"`
}

PolicyProperties is properties of a Policy.

type PolicyPropertiesFragment

type PolicyPropertiesFragment struct {
	Description       *string             `json:"description,omitempty"`
	Status            PolicyStatus        `json:"status,omitempty"`
	FactName          PolicyFactName      `json:"factName,omitempty"`
	FactData          *string             `json:"factData,omitempty"`
	Threshold         *string             `json:"threshold,omitempty"`
	EvaluatorType     PolicyEvaluatorType `json:"evaluatorType,omitempty"`
	ProvisioningState *string             `json:"provisioningState,omitempty"`
	UniqueIdentifier  *string             `json:"uniqueIdentifier,omitempty"`
}

PolicyPropertiesFragment is properties of a Policy.

type PolicySetResult

type PolicySetResult struct {
	HasError         *bool              `json:"hasError,omitempty"`
	PolicyViolations *[]PolicyViolation `json:"policyViolations,omitempty"`
}

PolicySetResult is result of a policy set evaluation.

type PolicySetsClient

type PolicySetsClient struct {
	ManagementClient
}

PolicySetsClient is the the DevTest Labs Client.

func NewPolicySetsClient

func NewPolicySetsClient(subscriptionID string) PolicySetsClient

NewPolicySetsClient creates an instance of the PolicySetsClient client.

func NewPolicySetsClientWithBaseURI

func NewPolicySetsClientWithBaseURI(baseURI string, subscriptionID string) PolicySetsClient

NewPolicySetsClientWithBaseURI creates an instance of the PolicySetsClient client.

func (PolicySetsClient) EvaluatePolicies

func (client PolicySetsClient) EvaluatePolicies(resourceGroupName string, labName string, name string, evaluatePoliciesRequest EvaluatePoliciesRequest) (result EvaluatePoliciesResponse, err error)

EvaluatePolicies evaluates lab policy.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the policy set. evaluatePoliciesRequest is request body for evaluating a policy set.

func (PolicySetsClient) EvaluatePoliciesPreparer

func (client PolicySetsClient) EvaluatePoliciesPreparer(resourceGroupName string, labName string, name string, evaluatePoliciesRequest EvaluatePoliciesRequest) (*http.Request, error)

EvaluatePoliciesPreparer prepares the EvaluatePolicies request.

func (PolicySetsClient) EvaluatePoliciesResponder

func (client PolicySetsClient) EvaluatePoliciesResponder(resp *http.Response) (result EvaluatePoliciesResponse, err error)

EvaluatePoliciesResponder handles the response to the EvaluatePolicies request. The method always closes the http.Response Body.

func (PolicySetsClient) EvaluatePoliciesSender

func (client PolicySetsClient) EvaluatePoliciesSender(req *http.Request) (*http.Response, error)

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

type PolicyStatus

type PolicyStatus string

PolicyStatus enumerates the values for policy status.

const (
	// PolicyStatusDisabled specifies the policy status disabled state for policy status.
	PolicyStatusDisabled PolicyStatus = "Disabled"
	// PolicyStatusEnabled specifies the policy status enabled state for policy status.
	PolicyStatusEnabled PolicyStatus = "Enabled"
)

type PolicyViolation

type PolicyViolation struct {
	Code    *string `json:"code,omitempty"`
	Message *string `json:"message,omitempty"`
}

PolicyViolation is policy violation.

type Port

type Port struct {
	TransportProtocol TransportProtocol `json:"transportProtocol,omitempty"`
	BackendPort       *int32            `json:"backendPort,omitempty"`
}

Port is properties of a network port.

type PortFragment

type PortFragment struct {
	TransportProtocol TransportProtocol `json:"transportProtocol,omitempty"`
	BackendPort       *int32            `json:"backendPort,omitempty"`
}

PortFragment is properties of a network port.

type PremiumDataDisk

type PremiumDataDisk string

PremiumDataDisk enumerates the values for premium data disk.

const (
	// PremiumDataDiskDisabled specifies the premium data disk disabled state for premium data disk.
	PremiumDataDiskDisabled PremiumDataDisk = "Disabled"
	// PremiumDataDiskEnabled specifies the premium data disk enabled state for premium data disk.
	PremiumDataDiskEnabled PremiumDataDisk = "Enabled"
)

type ReportingCycleType

type ReportingCycleType string

ReportingCycleType enumerates the values for reporting cycle type.

const (
	// CalendarMonth specifies the calendar month state for reporting cycle type.
	CalendarMonth ReportingCycleType = "CalendarMonth"
	// Custom specifies the custom state for reporting cycle type.
	Custom ReportingCycleType = "Custom"
)

type Resource

type Resource struct {
	ID       *string             `json:"id,omitempty"`
	Name     *string             `json:"name,omitempty"`
	Type     *string             `json:"type,omitempty"`
	Location *string             `json:"location,omitempty"`
	Tags     *map[string]*string `json:"tags,omitempty"`
}

Resource is an Azure resource.

type ResponseWithContinuationArmTemplate

type ResponseWithContinuationArmTemplate struct {
	autorest.Response `json:"-"`
	Value             *[]ArmTemplate `json:"value,omitempty"`
	NextLink          *string        `json:"nextLink,omitempty"`
}

ResponseWithContinuationArmTemplate is the response of a list operation.

func (ResponseWithContinuationArmTemplate) ResponseWithContinuationArmTemplatePreparer

func (client ResponseWithContinuationArmTemplate) ResponseWithContinuationArmTemplatePreparer() (*http.Request, error)

ResponseWithContinuationArmTemplatePreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type ResponseWithContinuationArtifact

type ResponseWithContinuationArtifact struct {
	autorest.Response `json:"-"`
	Value             *[]Artifact `json:"value,omitempty"`
	NextLink          *string     `json:"nextLink,omitempty"`
}

ResponseWithContinuationArtifact is the response of a list operation.

func (ResponseWithContinuationArtifact) ResponseWithContinuationArtifactPreparer

func (client ResponseWithContinuationArtifact) ResponseWithContinuationArtifactPreparer() (*http.Request, error)

ResponseWithContinuationArtifactPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type ResponseWithContinuationArtifactSource

type ResponseWithContinuationArtifactSource struct {
	autorest.Response `json:"-"`
	Value             *[]ArtifactSource `json:"value,omitempty"`
	NextLink          *string           `json:"nextLink,omitempty"`
}

ResponseWithContinuationArtifactSource is the response of a list operation.

func (ResponseWithContinuationArtifactSource) ResponseWithContinuationArtifactSourcePreparer

func (client ResponseWithContinuationArtifactSource) ResponseWithContinuationArtifactSourcePreparer() (*http.Request, error)

ResponseWithContinuationArtifactSourcePreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type ResponseWithContinuationCustomImage

type ResponseWithContinuationCustomImage struct {
	autorest.Response `json:"-"`
	Value             *[]CustomImage `json:"value,omitempty"`
	NextLink          *string        `json:"nextLink,omitempty"`
}

ResponseWithContinuationCustomImage is the response of a list operation.

func (ResponseWithContinuationCustomImage) ResponseWithContinuationCustomImagePreparer

func (client ResponseWithContinuationCustomImage) ResponseWithContinuationCustomImagePreparer() (*http.Request, error)

ResponseWithContinuationCustomImagePreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type ResponseWithContinuationDisk

type ResponseWithContinuationDisk struct {
	autorest.Response `json:"-"`
	Value             *[]Disk `json:"value,omitempty"`
	NextLink          *string `json:"nextLink,omitempty"`
}

ResponseWithContinuationDisk is the response of a list operation.

func (ResponseWithContinuationDisk) ResponseWithContinuationDiskPreparer

func (client ResponseWithContinuationDisk) ResponseWithContinuationDiskPreparer() (*http.Request, error)

ResponseWithContinuationDiskPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type ResponseWithContinuationDtlEnvironment

type ResponseWithContinuationDtlEnvironment struct {
	autorest.Response `json:"-"`
	Value             *[]DtlEnvironment `json:"value,omitempty"`
	NextLink          *string           `json:"nextLink,omitempty"`
}

ResponseWithContinuationDtlEnvironment is the response of a list operation.

func (ResponseWithContinuationDtlEnvironment) ResponseWithContinuationDtlEnvironmentPreparer

func (client ResponseWithContinuationDtlEnvironment) ResponseWithContinuationDtlEnvironmentPreparer() (*http.Request, error)

ResponseWithContinuationDtlEnvironmentPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type ResponseWithContinuationFormula

type ResponseWithContinuationFormula struct {
	autorest.Response `json:"-"`
	Value             *[]Formula `json:"value,omitempty"`
	NextLink          *string    `json:"nextLink,omitempty"`
}

ResponseWithContinuationFormula is the response of a list operation.

func (ResponseWithContinuationFormula) ResponseWithContinuationFormulaPreparer

func (client ResponseWithContinuationFormula) ResponseWithContinuationFormulaPreparer() (*http.Request, error)

ResponseWithContinuationFormulaPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type ResponseWithContinuationGalleryImage

type ResponseWithContinuationGalleryImage struct {
	autorest.Response `json:"-"`
	Value             *[]GalleryImage `json:"value,omitempty"`
	NextLink          *string         `json:"nextLink,omitempty"`
}

ResponseWithContinuationGalleryImage is the response of a list operation.

func (ResponseWithContinuationGalleryImage) ResponseWithContinuationGalleryImagePreparer

func (client ResponseWithContinuationGalleryImage) ResponseWithContinuationGalleryImagePreparer() (*http.Request, error)

ResponseWithContinuationGalleryImagePreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type ResponseWithContinuationLab

type ResponseWithContinuationLab struct {
	autorest.Response `json:"-"`
	Value             *[]Lab  `json:"value,omitempty"`
	NextLink          *string `json:"nextLink,omitempty"`
}

ResponseWithContinuationLab is the response of a list operation.

func (ResponseWithContinuationLab) ResponseWithContinuationLabPreparer

func (client ResponseWithContinuationLab) ResponseWithContinuationLabPreparer() (*http.Request, error)

ResponseWithContinuationLabPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type ResponseWithContinuationLabVhd

type ResponseWithContinuationLabVhd struct {
	autorest.Response `json:"-"`
	Value             *[]LabVhd `json:"value,omitempty"`
	NextLink          *string   `json:"nextLink,omitempty"`
}

ResponseWithContinuationLabVhd is the response of a list operation.

func (ResponseWithContinuationLabVhd) ResponseWithContinuationLabVhdPreparer

func (client ResponseWithContinuationLabVhd) ResponseWithContinuationLabVhdPreparer() (*http.Request, error)

ResponseWithContinuationLabVhdPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type ResponseWithContinuationLabVirtualMachine

type ResponseWithContinuationLabVirtualMachine struct {
	autorest.Response `json:"-"`
	Value             *[]LabVirtualMachine `json:"value,omitempty"`
	NextLink          *string              `json:"nextLink,omitempty"`
}

ResponseWithContinuationLabVirtualMachine is the response of a list operation.

func (ResponseWithContinuationLabVirtualMachine) ResponseWithContinuationLabVirtualMachinePreparer

func (client ResponseWithContinuationLabVirtualMachine) ResponseWithContinuationLabVirtualMachinePreparer() (*http.Request, error)

ResponseWithContinuationLabVirtualMachinePreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type ResponseWithContinuationNotificationChannel

type ResponseWithContinuationNotificationChannel struct {
	autorest.Response `json:"-"`
	Value             *[]NotificationChannel `json:"value,omitempty"`
	NextLink          *string                `json:"nextLink,omitempty"`
}

ResponseWithContinuationNotificationChannel is the response of a list operation.

func (ResponseWithContinuationNotificationChannel) ResponseWithContinuationNotificationChannelPreparer

func (client ResponseWithContinuationNotificationChannel) ResponseWithContinuationNotificationChannelPreparer() (*http.Request, error)

ResponseWithContinuationNotificationChannelPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type ResponseWithContinuationPolicy

type ResponseWithContinuationPolicy struct {
	autorest.Response `json:"-"`
	Value             *[]Policy `json:"value,omitempty"`
	NextLink          *string   `json:"nextLink,omitempty"`
}

ResponseWithContinuationPolicy is the response of a list operation.

func (ResponseWithContinuationPolicy) ResponseWithContinuationPolicyPreparer

func (client ResponseWithContinuationPolicy) ResponseWithContinuationPolicyPreparer() (*http.Request, error)

ResponseWithContinuationPolicyPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type ResponseWithContinuationSchedule

type ResponseWithContinuationSchedule struct {
	autorest.Response `json:"-"`
	Value             *[]Schedule `json:"value,omitempty"`
	NextLink          *string     `json:"nextLink,omitempty"`
}

ResponseWithContinuationSchedule is the response of a list operation.

func (ResponseWithContinuationSchedule) ResponseWithContinuationSchedulePreparer

func (client ResponseWithContinuationSchedule) ResponseWithContinuationSchedulePreparer() (*http.Request, error)

ResponseWithContinuationSchedulePreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type ResponseWithContinuationSecret

type ResponseWithContinuationSecret struct {
	autorest.Response `json:"-"`
	Value             *[]Secret `json:"value,omitempty"`
	NextLink          *string   `json:"nextLink,omitempty"`
}

ResponseWithContinuationSecret is the response of a list operation.

func (ResponseWithContinuationSecret) ResponseWithContinuationSecretPreparer

func (client ResponseWithContinuationSecret) ResponseWithContinuationSecretPreparer() (*http.Request, error)

ResponseWithContinuationSecretPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type ResponseWithContinuationServiceRunner

type ResponseWithContinuationServiceRunner struct {
	autorest.Response `json:"-"`
	Value             *[]ServiceRunner `json:"value,omitempty"`
	NextLink          *string          `json:"nextLink,omitempty"`
}

ResponseWithContinuationServiceRunner is the response of a list operation.

func (ResponseWithContinuationServiceRunner) ResponseWithContinuationServiceRunnerPreparer

func (client ResponseWithContinuationServiceRunner) ResponseWithContinuationServiceRunnerPreparer() (*http.Request, error)

ResponseWithContinuationServiceRunnerPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type ResponseWithContinuationUser

type ResponseWithContinuationUser struct {
	autorest.Response `json:"-"`
	Value             *[]User `json:"value,omitempty"`
	NextLink          *string `json:"nextLink,omitempty"`
}

ResponseWithContinuationUser is the response of a list operation.

func (ResponseWithContinuationUser) ResponseWithContinuationUserPreparer

func (client ResponseWithContinuationUser) ResponseWithContinuationUserPreparer() (*http.Request, error)

ResponseWithContinuationUserPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type ResponseWithContinuationVirtualNetwork

type ResponseWithContinuationVirtualNetwork struct {
	autorest.Response `json:"-"`
	Value             *[]VirtualNetwork `json:"value,omitempty"`
	NextLink          *string           `json:"nextLink,omitempty"`
}

ResponseWithContinuationVirtualNetwork is the response of a list operation.

func (ResponseWithContinuationVirtualNetwork) ResponseWithContinuationVirtualNetworkPreparer

func (client ResponseWithContinuationVirtualNetwork) ResponseWithContinuationVirtualNetworkPreparer() (*http.Request, error)

ResponseWithContinuationVirtualNetworkPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type RetargetScheduleProperties

type RetargetScheduleProperties struct {
	CurrentResourceID *string `json:"currentResourceId,omitempty"`
	TargetResourceID  *string `json:"targetResourceId,omitempty"`
}

RetargetScheduleProperties is properties for retargeting a virtual machine schedule.

type Schedule

type Schedule struct {
	autorest.Response   `json:"-"`
	ID                  *string             `json:"id,omitempty"`
	Name                *string             `json:"name,omitempty"`
	Type                *string             `json:"type,omitempty"`
	Location            *string             `json:"location,omitempty"`
	Tags                *map[string]*string `json:"tags,omitempty"`
	*ScheduleProperties `json:"properties,omitempty"`
}

Schedule is a schedule.

type ScheduleFragment

type ScheduleFragment struct {
	ID                          *string             `json:"id,omitempty"`
	Name                        *string             `json:"name,omitempty"`
	Type                        *string             `json:"type,omitempty"`
	Location                    *string             `json:"location,omitempty"`
	Tags                        *map[string]*string `json:"tags,omitempty"`
	*SchedulePropertiesFragment `json:"properties,omitempty"`
}

ScheduleFragment is a schedule.

type ScheduleProperties

type ScheduleProperties struct {
	Status               EnableStatus          `json:"status,omitempty"`
	TaskType             *string               `json:"taskType,omitempty"`
	WeeklyRecurrence     *WeekDetails          `json:"weeklyRecurrence,omitempty"`
	DailyRecurrence      *DayDetails           `json:"dailyRecurrence,omitempty"`
	HourlyRecurrence     *HourDetails          `json:"hourlyRecurrence,omitempty"`
	TimeZoneID           *string               `json:"timeZoneId,omitempty"`
	NotificationSettings *NotificationSettings `json:"notificationSettings,omitempty"`
	CreatedDate          *date.Time            `json:"createdDate,omitempty"`
	TargetResourceID     *string               `json:"targetResourceId,omitempty"`
	ProvisioningState    *string               `json:"provisioningState,omitempty"`
	UniqueIdentifier     *string               `json:"uniqueIdentifier,omitempty"`
}

ScheduleProperties is properties of a schedule.

type SchedulePropertiesFragment

type SchedulePropertiesFragment struct {
	Status               EnableStatus                  `json:"status,omitempty"`
	TaskType             *string                       `json:"taskType,omitempty"`
	WeeklyRecurrence     *WeekDetailsFragment          `json:"weeklyRecurrence,omitempty"`
	DailyRecurrence      *DayDetailsFragment           `json:"dailyRecurrence,omitempty"`
	HourlyRecurrence     *HourDetailsFragment          `json:"hourlyRecurrence,omitempty"`
	TimeZoneID           *string                       `json:"timeZoneId,omitempty"`
	NotificationSettings *NotificationSettingsFragment `json:"notificationSettings,omitempty"`
	TargetResourceID     *string                       `json:"targetResourceId,omitempty"`
	ProvisioningState    *string                       `json:"provisioningState,omitempty"`
	UniqueIdentifier     *string                       `json:"uniqueIdentifier,omitempty"`
}

SchedulePropertiesFragment is properties of a schedule.

type SchedulesClient

type SchedulesClient struct {
	ManagementClient
}

SchedulesClient is the the DevTest Labs Client.

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.

func (SchedulesClient) CreateOrUpdate

func (client SchedulesClient) CreateOrUpdate(resourceGroupName string, labName string, name string, schedule Schedule) (result Schedule, err error)

CreateOrUpdate create or replace an existing schedule.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the schedule. schedule is a schedule.

func (SchedulesClient) CreateOrUpdatePreparer

func (client SchedulesClient) CreateOrUpdatePreparer(resourceGroupName string, labName string, name string, schedule Schedule) (*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(resourceGroupName string, labName string, name string) (result autorest.Response, err error)

Delete delete schedule.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the schedule.

func (SchedulesClient) DeletePreparer

func (client SchedulesClient) DeletePreparer(resourceGroupName string, labName string, name 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) (*http.Response, error)

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

func (SchedulesClient) Execute

func (client SchedulesClient) Execute(resourceGroupName string, labName string, name string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

Execute execute a schedule. This operation can take a while to complete. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the schedule.

func (SchedulesClient) ExecutePreparer

func (client SchedulesClient) ExecutePreparer(resourceGroupName string, labName string, name string, cancel <-chan struct{}) (*http.Request, error)

ExecutePreparer prepares the Execute request.

func (SchedulesClient) ExecuteResponder

func (client SchedulesClient) ExecuteResponder(resp *http.Response) (result autorest.Response, err error)

ExecuteResponder handles the response to the Execute request. The method always closes the http.Response Body.

func (SchedulesClient) ExecuteSender

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

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

func (SchedulesClient) Get

func (client SchedulesClient) Get(resourceGroupName string, labName string, name string, expand string) (result Schedule, err error)

Get get schedule.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the schedule. expand is specify the $expand query. Example: 'properties($select=status)'

func (SchedulesClient) GetPreparer

func (client SchedulesClient) GetPreparer(resourceGroupName string, labName string, name string, expand 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) List

func (client SchedulesClient) List(resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationSchedule, err error)

List list schedules in a given lab.

resourceGroupName is the name of the resource group. labName is the name of the lab. expand is specify the $expand query. Example: 'properties($select=status)' filter is the filter to apply to the operation. top is the maximum number of resources to return from the operation. orderby is the ordering expression for the results, using OData notation.

func (SchedulesClient) ListApplicable

func (client SchedulesClient) ListApplicable(resourceGroupName string, labName string, name string) (result ResponseWithContinuationSchedule, err error)

ListApplicable lists all applicable schedules

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the schedule.

func (SchedulesClient) ListApplicableComplete

func (client SchedulesClient) ListApplicableComplete(resourceGroupName string, labName string, name string, cancel <-chan struct{}) (<-chan Schedule, <-chan error)

ListApplicableComplete gets all elements from the list without paging.

func (SchedulesClient) ListApplicableNextResults

func (client SchedulesClient) ListApplicableNextResults(lastResults ResponseWithContinuationSchedule) (result ResponseWithContinuationSchedule, err error)

ListApplicableNextResults retrieves the next set of results, if any.

func (SchedulesClient) ListApplicablePreparer

func (client SchedulesClient) ListApplicablePreparer(resourceGroupName string, labName string, name string) (*http.Request, error)

ListApplicablePreparer prepares the ListApplicable request.

func (SchedulesClient) ListApplicableResponder

func (client SchedulesClient) ListApplicableResponder(resp *http.Response) (result ResponseWithContinuationSchedule, err error)

ListApplicableResponder handles the response to the ListApplicable request. The method always closes the http.Response Body.

func (SchedulesClient) ListApplicableSender

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

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

func (SchedulesClient) ListComplete

func (client SchedulesClient) ListComplete(resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string, cancel <-chan struct{}) (<-chan Schedule, <-chan error)

ListComplete gets all elements from the list without paging.

func (SchedulesClient) ListNextResults

func (client SchedulesClient) ListNextResults(lastResults ResponseWithContinuationSchedule) (result ResponseWithContinuationSchedule, err error)

ListNextResults retrieves the next set of results, if any.

func (SchedulesClient) ListPreparer

func (client SchedulesClient) ListPreparer(resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string) (*http.Request, error)

ListPreparer prepares the List request.

func (SchedulesClient) ListResponder

func (client SchedulesClient) ListResponder(resp *http.Response) (result ResponseWithContinuationSchedule, err error)

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

func (SchedulesClient) ListSender

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

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

func (SchedulesClient) Update

func (client SchedulesClient) Update(resourceGroupName string, labName string, name string, schedule ScheduleFragment) (result Schedule, err error)

Update modify properties of schedules.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the schedule. schedule is a schedule.

func (SchedulesClient) UpdatePreparer

func (client SchedulesClient) UpdatePreparer(resourceGroupName string, labName string, name string, schedule ScheduleFragment) (*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 Secret

type Secret struct {
	autorest.Response `json:"-"`
	ID                *string             `json:"id,omitempty"`
	Name              *string             `json:"name,omitempty"`
	Type              *string             `json:"type,omitempty"`
	Location          *string             `json:"location,omitempty"`
	Tags              *map[string]*string `json:"tags,omitempty"`
	*SecretProperties `json:"properties,omitempty"`
}

Secret is a secret.

type SecretProperties

type SecretProperties struct {
	Value             *string `json:"value,omitempty"`
	ProvisioningState *string `json:"provisioningState,omitempty"`
	UniqueIdentifier  *string `json:"uniqueIdentifier,omitempty"`
}

SecretProperties is properties of a secret.

type SecretsClient

type SecretsClient struct {
	ManagementClient
}

SecretsClient is the the DevTest Labs Client.

func NewSecretsClient

func NewSecretsClient(subscriptionID string) SecretsClient

NewSecretsClient creates an instance of the SecretsClient client.

func NewSecretsClientWithBaseURI

func NewSecretsClientWithBaseURI(baseURI string, subscriptionID string) SecretsClient

NewSecretsClientWithBaseURI creates an instance of the SecretsClient client.

func (SecretsClient) CreateOrUpdate

func (client SecretsClient) CreateOrUpdate(resourceGroupName string, labName string, userName string, name string, secret Secret) (result Secret, err error)

CreateOrUpdate create or replace an existing secret.

resourceGroupName is the name of the resource group. labName is the name of the lab. userName is the name of the user profile. name is the name of the secret. secret is a secret.

func (SecretsClient) CreateOrUpdatePreparer

func (client SecretsClient) CreateOrUpdatePreparer(resourceGroupName string, labName string, userName string, name string, secret Secret) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (SecretsClient) CreateOrUpdateResponder

func (client SecretsClient) CreateOrUpdateResponder(resp *http.Response) (result Secret, err error)

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

func (SecretsClient) CreateOrUpdateSender

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

func (client SecretsClient) Delete(resourceGroupName string, labName string, userName string, name string) (result autorest.Response, err error)

Delete delete secret.

resourceGroupName is the name of the resource group. labName is the name of the lab. userName is the name of the user profile. name is the name of the secret.

func (SecretsClient) DeletePreparer

func (client SecretsClient) DeletePreparer(resourceGroupName string, labName string, userName string, name string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (SecretsClient) DeleteResponder

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

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

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

func (SecretsClient) Get

func (client SecretsClient) Get(resourceGroupName string, labName string, userName string, name string, expand string) (result Secret, err error)

Get get secret.

resourceGroupName is the name of the resource group. labName is the name of the lab. userName is the name of the user profile. name is the name of the secret. expand is specify the $expand query. Example: 'properties($select=value)'

func (SecretsClient) GetPreparer

func (client SecretsClient) GetPreparer(resourceGroupName string, labName string, userName string, name string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (SecretsClient) GetResponder

func (client SecretsClient) GetResponder(resp *http.Response) (result Secret, err error)

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

func (SecretsClient) GetSender

func (client SecretsClient) 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 (SecretsClient) List

func (client SecretsClient) List(resourceGroupName string, labName string, userName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationSecret, err error)

List list secrets in a given user profile.

resourceGroupName is the name of the resource group. labName is the name of the lab. userName is the name of the user profile. expand is specify the $expand query. Example: 'properties($select=value)' filter is the filter to apply to the operation. top is the maximum number of resources to return from the operation. orderby is the ordering expression for the results, using OData notation.

func (SecretsClient) ListComplete

func (client SecretsClient) ListComplete(resourceGroupName string, labName string, userName string, expand string, filter string, top *int32, orderby string, cancel <-chan struct{}) (<-chan Secret, <-chan error)

ListComplete gets all elements from the list without paging.

func (SecretsClient) ListNextResults

func (client SecretsClient) ListNextResults(lastResults ResponseWithContinuationSecret) (result ResponseWithContinuationSecret, err error)

ListNextResults retrieves the next set of results, if any.

func (SecretsClient) ListPreparer

func (client SecretsClient) ListPreparer(resourceGroupName string, labName string, userName string, expand string, filter string, top *int32, orderby string) (*http.Request, error)

ListPreparer prepares the List request.

func (SecretsClient) ListResponder

func (client SecretsClient) ListResponder(resp *http.Response) (result ResponseWithContinuationSecret, err error)

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

func (SecretsClient) ListSender

func (client SecretsClient) 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 ServiceRunner

type ServiceRunner struct {
	autorest.Response `json:"-"`
	ID                *string             `json:"id,omitempty"`
	Name              *string             `json:"name,omitempty"`
	Type              *string             `json:"type,omitempty"`
	Location          *string             `json:"location,omitempty"`
	Tags              *map[string]*string `json:"tags,omitempty"`
	Identity          *IdentityProperties `json:"identity,omitempty"`
}

ServiceRunner is a container for a managed identity to execute DevTest lab services.

type ServiceRunnersClient

type ServiceRunnersClient struct {
	ManagementClient
}

ServiceRunnersClient is the the DevTest Labs Client.

func NewServiceRunnersClient

func NewServiceRunnersClient(subscriptionID string) ServiceRunnersClient

NewServiceRunnersClient creates an instance of the ServiceRunnersClient client.

func NewServiceRunnersClientWithBaseURI

func NewServiceRunnersClientWithBaseURI(baseURI string, subscriptionID string) ServiceRunnersClient

NewServiceRunnersClientWithBaseURI creates an instance of the ServiceRunnersClient client.

func (ServiceRunnersClient) CreateOrUpdate

func (client ServiceRunnersClient) CreateOrUpdate(resourceGroupName string, labName string, name string, serviceRunner ServiceRunner) (result ServiceRunner, err error)

CreateOrUpdate create or replace an existing Service runner.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the service runner. serviceRunner is a container for a managed identity to execute DevTest lab services.

func (ServiceRunnersClient) CreateOrUpdatePreparer

func (client ServiceRunnersClient) CreateOrUpdatePreparer(resourceGroupName string, labName string, name string, serviceRunner ServiceRunner) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ServiceRunnersClient) CreateOrUpdateResponder

func (client ServiceRunnersClient) CreateOrUpdateResponder(resp *http.Response) (result ServiceRunner, err error)

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

func (ServiceRunnersClient) CreateOrUpdateSender

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

func (client ServiceRunnersClient) Delete(resourceGroupName string, labName string, name string) (result autorest.Response, err error)

Delete delete service runner.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the service runner.

func (ServiceRunnersClient) DeletePreparer

func (client ServiceRunnersClient) DeletePreparer(resourceGroupName string, labName string, name string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ServiceRunnersClient) DeleteResponder

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

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

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

func (ServiceRunnersClient) Get

func (client ServiceRunnersClient) Get(resourceGroupName string, labName string, name string) (result ServiceRunner, err error)

Get get service runner.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the service runner.

func (ServiceRunnersClient) GetPreparer

func (client ServiceRunnersClient) GetPreparer(resourceGroupName string, labName string, name string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ServiceRunnersClient) GetResponder

func (client ServiceRunnersClient) GetResponder(resp *http.Response) (result ServiceRunner, err error)

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

func (ServiceRunnersClient) GetSender

func (client ServiceRunnersClient) 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 (ServiceRunnersClient) List

func (client ServiceRunnersClient) List(resourceGroupName string, labName string, filter string, top *int32, orderby string) (result ResponseWithContinuationServiceRunner, err error)

List list service runners in a given lab.

resourceGroupName is the name of the resource group. labName is the name of the lab. filter is the filter to apply to the operation. top is the maximum number of resources to return from the operation. orderby is the ordering expression for the results, using OData notation.

func (ServiceRunnersClient) ListComplete

func (client ServiceRunnersClient) ListComplete(resourceGroupName string, labName string, filter string, top *int32, orderby string, cancel <-chan struct{}) (<-chan ServiceRunner, <-chan error)

ListComplete gets all elements from the list without paging.

func (ServiceRunnersClient) ListNextResults

ListNextResults retrieves the next set of results, if any.

func (ServiceRunnersClient) ListPreparer

func (client ServiceRunnersClient) ListPreparer(resourceGroupName string, labName string, filter string, top *int32, orderby string) (*http.Request, error)

ListPreparer prepares the List request.

func (ServiceRunnersClient) ListResponder

func (client ServiceRunnersClient) ListResponder(resp *http.Response) (result ResponseWithContinuationServiceRunner, err error)

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

func (ServiceRunnersClient) ListSender

func (client ServiceRunnersClient) 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 SharedPublicIPAddressConfiguration

type SharedPublicIPAddressConfiguration struct {
	InboundNatRules *[]InboundNatRule `json:"inboundNatRules,omitempty"`
}

SharedPublicIPAddressConfiguration is properties of a virtual machine that determine how it is connected to a load balancer.

type SharedPublicIPAddressConfigurationFragment

type SharedPublicIPAddressConfigurationFragment struct {
	InboundNatRules *[]InboundNatRuleFragment `json:"inboundNatRules,omitempty"`
}

SharedPublicIPAddressConfigurationFragment is properties of a virtual machine that determine how it is connected to a load balancer.

type ShutdownNotificationContent

type ShutdownNotificationContent struct {
	SkipURL           *string `json:"skipUrl,omitempty"`
	DelayURL60        *string `json:"delayUrl60,omitempty"`
	DelayURL120       *string `json:"delayUrl120,omitempty"`
	VMName            *string `json:"vmName,omitempty"`
	GUID              *string `json:"guid,omitempty"`
	Owner             *string `json:"owner,omitempty"`
	EventType         *string `json:"eventType,omitempty"`
	Text              *string `json:"text,omitempty"`
	SubscriptionID    *string `json:"subscriptionId,omitempty"`
	ResourceGroupName *string `json:"resourceGroupName,omitempty"`
	LabName           *string `json:"labName,omitempty"`
}

ShutdownNotificationContent is the contents of a shutdown notification. Webhooks can use this type to deserialize the request body when they get notified of an imminent shutdown.

type SourceControlType

type SourceControlType string

SourceControlType enumerates the values for source control type.

const (
	// GitHub specifies the git hub state for source control type.
	GitHub SourceControlType = "GitHub"
	// VsoGit specifies the vso git state for source control type.
	VsoGit SourceControlType = "VsoGit"
)

type StorageType

type StorageType string

StorageType enumerates the values for storage type.

const (
	// Premium specifies the premium state for storage type.
	Premium StorageType = "Premium"
	// Standard specifies the standard state for storage type.
	Standard StorageType = "Standard"
)

type Subnet

type Subnet struct {
	ResourceID    *string             `json:"resourceId,omitempty"`
	LabSubnetName *string             `json:"labSubnetName,omitempty"`
	AllowPublicIP UsagePermissionType `json:"allowPublicIp,omitempty"`
}

Subnet is subnet information.

type SubnetFragment

type SubnetFragment struct {
	ResourceID    *string             `json:"resourceId,omitempty"`
	LabSubnetName *string             `json:"labSubnetName,omitempty"`
	AllowPublicIP UsagePermissionType `json:"allowPublicIp,omitempty"`
}

SubnetFragment is subnet information.

type SubnetOverride

type SubnetOverride struct {
	ResourceID                         *string                                   `json:"resourceId,omitempty"`
	LabSubnetName                      *string                                   `json:"labSubnetName,omitempty"`
	UseInVMCreationPermission          UsagePermissionType                       `json:"useInVmCreationPermission,omitempty"`
	UsePublicIPAddressPermission       UsagePermissionType                       `json:"usePublicIpAddressPermission,omitempty"`
	SharedPublicIPAddressConfiguration *SubnetSharedPublicIPAddressConfiguration `json:"sharedPublicIpAddressConfiguration,omitempty"`
	VirtualNetworkPoolName             *string                                   `json:"virtualNetworkPoolName,omitempty"`
}

SubnetOverride is property overrides on a subnet of a virtual network.

type SubnetOverrideFragment

type SubnetOverrideFragment struct {
	ResourceID                         *string                                           `json:"resourceId,omitempty"`
	LabSubnetName                      *string                                           `json:"labSubnetName,omitempty"`
	UseInVMCreationPermission          UsagePermissionType                               `json:"useInVmCreationPermission,omitempty"`
	UsePublicIPAddressPermission       UsagePermissionType                               `json:"usePublicIpAddressPermission,omitempty"`
	SharedPublicIPAddressConfiguration *SubnetSharedPublicIPAddressConfigurationFragment `json:"sharedPublicIpAddressConfiguration,omitempty"`
	VirtualNetworkPoolName             *string                                           `json:"virtualNetworkPoolName,omitempty"`
}

SubnetOverrideFragment is property overrides on a subnet of a virtual network.

type SubnetSharedPublicIPAddressConfiguration

type SubnetSharedPublicIPAddressConfiguration struct {
	AllowedPorts *[]Port `json:"allowedPorts,omitempty"`
}

SubnetSharedPublicIPAddressConfiguration is configuration for public IP address sharing.

type SubnetSharedPublicIPAddressConfigurationFragment

type SubnetSharedPublicIPAddressConfigurationFragment struct {
	AllowedPorts *[]PortFragment `json:"allowedPorts,omitempty"`
}

SubnetSharedPublicIPAddressConfigurationFragment is configuration for public IP address sharing.

type TargetCostProperties

type TargetCostProperties struct {
	Status             TargetCostStatus           `json:"status,omitempty"`
	Target             *int32                     `json:"target,omitempty"`
	CostThresholds     *[]CostThresholdProperties `json:"costThresholds,omitempty"`
	CycleStartDateTime *date.Time                 `json:"cycleStartDateTime,omitempty"`
	CycleEndDateTime   *date.Time                 `json:"cycleEndDateTime,omitempty"`
	CycleType          ReportingCycleType         `json:"cycleType,omitempty"`
}

TargetCostProperties is properties of a cost target.

type TargetCostStatus

type TargetCostStatus string

TargetCostStatus enumerates the values for target cost status.

const (
	// TargetCostStatusDisabled specifies the target cost status disabled state for target cost status.
	TargetCostStatusDisabled TargetCostStatus = "Disabled"
	// TargetCostStatusEnabled specifies the target cost status enabled state for target cost status.
	TargetCostStatusEnabled TargetCostStatus = "Enabled"
)

type TransportProtocol

type TransportProtocol string

TransportProtocol enumerates the values for transport protocol.

const (
	// TCP specifies the tcp state for transport protocol.
	TCP TransportProtocol = "Tcp"
	// UDP specifies the udp state for transport protocol.
	UDP TransportProtocol = "Udp"
)

type UsagePermissionType

type UsagePermissionType string

UsagePermissionType enumerates the values for usage permission type.

const (
	// Allow specifies the allow state for usage permission type.
	Allow UsagePermissionType = "Allow"
	// Default specifies the default state for usage permission type.
	Default UsagePermissionType = "Default"
	// Deny specifies the deny state for usage permission type.
	Deny UsagePermissionType = "Deny"
)

type User

type User struct {
	autorest.Response `json:"-"`
	ID                *string             `json:"id,omitempty"`
	Name              *string             `json:"name,omitempty"`
	Type              *string             `json:"type,omitempty"`
	Location          *string             `json:"location,omitempty"`
	Tags              *map[string]*string `json:"tags,omitempty"`
	*UserProperties   `json:"properties,omitempty"`
}

User is profile of a lab user.

type UserFragment

type UserFragment struct {
	ID                      *string             `json:"id,omitempty"`
	Name                    *string             `json:"name,omitempty"`
	Type                    *string             `json:"type,omitempty"`
	Location                *string             `json:"location,omitempty"`
	Tags                    *map[string]*string `json:"tags,omitempty"`
	*UserPropertiesFragment `json:"properties,omitempty"`
}

UserFragment is profile of a lab user.

type UserIdentity

type UserIdentity struct {
	PrincipalName *string `json:"principalName,omitempty"`
	PrincipalID   *string `json:"principalId,omitempty"`
	TenantID      *string `json:"tenantId,omitempty"`
	ObjectID      *string `json:"objectId,omitempty"`
	AppID         *string `json:"appId,omitempty"`
}

UserIdentity is identity attributes of a lab user.

type UserIdentityFragment

type UserIdentityFragment struct {
	PrincipalName *string `json:"principalName,omitempty"`
	PrincipalID   *string `json:"principalId,omitempty"`
	TenantID      *string `json:"tenantId,omitempty"`
	ObjectID      *string `json:"objectId,omitempty"`
	AppID         *string `json:"appId,omitempty"`
}

UserIdentityFragment is identity attributes of a lab user.

type UserProperties

type UserProperties struct {
	Identity          *UserIdentity    `json:"identity,omitempty"`
	SecretStore       *UserSecretStore `json:"secretStore,omitempty"`
	CreatedDate       *date.Time       `json:"createdDate,omitempty"`
	ProvisioningState *string          `json:"provisioningState,omitempty"`
	UniqueIdentifier  *string          `json:"uniqueIdentifier,omitempty"`
}

UserProperties is properties of a lab user profile.

type UserPropertiesFragment

type UserPropertiesFragment struct {
	Identity          *UserIdentityFragment    `json:"identity,omitempty"`
	SecretStore       *UserSecretStoreFragment `json:"secretStore,omitempty"`
	ProvisioningState *string                  `json:"provisioningState,omitempty"`
	UniqueIdentifier  *string                  `json:"uniqueIdentifier,omitempty"`
}

UserPropertiesFragment is properties of a lab user profile.

type UserSecretStore

type UserSecretStore struct {
	KeyVaultURI *string `json:"keyVaultUri,omitempty"`
	KeyVaultID  *string `json:"keyVaultId,omitempty"`
}

UserSecretStore is properties of a user's secret store.

type UserSecretStoreFragment

type UserSecretStoreFragment struct {
	KeyVaultURI *string `json:"keyVaultUri,omitempty"`
	KeyVaultID  *string `json:"keyVaultId,omitempty"`
}

UserSecretStoreFragment is properties of a user's secret store.

type UsersClient

type UsersClient struct {
	ManagementClient
}

UsersClient is the the DevTest Labs Client.

func NewUsersClient

func NewUsersClient(subscriptionID string) UsersClient

NewUsersClient creates an instance of the UsersClient client.

func NewUsersClientWithBaseURI

func NewUsersClientWithBaseURI(baseURI string, subscriptionID string) UsersClient

NewUsersClientWithBaseURI creates an instance of the UsersClient client.

func (UsersClient) CreateOrUpdate

func (client UsersClient) CreateOrUpdate(resourceGroupName string, labName string, name string, userParameter User) (result User, err error)

CreateOrUpdate create or replace an existing user profile.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the user profile. userParameter is profile of a lab user.

func (UsersClient) CreateOrUpdatePreparer

func (client UsersClient) CreateOrUpdatePreparer(resourceGroupName string, labName string, name string, userParameter User) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (UsersClient) CreateOrUpdateResponder

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

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

func (UsersClient) CreateOrUpdateSender

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

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

func (UsersClient) Delete

func (client UsersClient) Delete(resourceGroupName string, labName string, name string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

Delete delete user profile. This operation can take a while to complete. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the user profile.

func (UsersClient) DeletePreparer

func (client UsersClient) DeletePreparer(resourceGroupName string, labName string, name string, cancel <-chan struct{}) (*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) (*http.Response, 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(resourceGroupName string, labName string, name string, expand string) (result User, err error)

Get get user profile.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the user profile. expand is specify the $expand query. Example: 'properties($select=identity)'

func (UsersClient) GetPreparer

func (client UsersClient) GetPreparer(resourceGroupName string, labName string, name string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (UsersClient) GetResponder

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

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

func (UsersClient) GetSender

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

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

func (UsersClient) List

func (client UsersClient) List(resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationUser, err error)

List list user profiles in a given lab.

resourceGroupName is the name of the resource group. labName is the name of the lab. expand is specify the $expand query. Example: 'properties($select=identity)' filter is the filter to apply to the operation. top is the maximum number of resources to return from the operation. orderby is the ordering expression for the results, using OData notation.

func (UsersClient) ListComplete

func (client UsersClient) ListComplete(resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string, cancel <-chan struct{}) (<-chan User, <-chan error)

ListComplete gets all elements from the list without paging.

func (UsersClient) ListNextResults

func (client UsersClient) ListNextResults(lastResults ResponseWithContinuationUser) (result ResponseWithContinuationUser, err error)

ListNextResults retrieves the next set of results, if any.

func (UsersClient) ListPreparer

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

ListPreparer prepares the List request.

func (UsersClient) ListResponder

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

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

func (UsersClient) ListSender

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

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

func (UsersClient) Update

func (client UsersClient) Update(resourceGroupName string, labName string, name string, userParameter UserFragment) (result User, err error)

Update modify properties of user profiles.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the user profile. userParameter is profile of a lab user.

func (UsersClient) UpdatePreparer

func (client UsersClient) UpdatePreparer(resourceGroupName string, labName string, name string, userParameter UserFragment) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (UsersClient) UpdateResponder

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

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

func (UsersClient) UpdateSender

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

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

type VirtualMachineCreationSource

type VirtualMachineCreationSource string

VirtualMachineCreationSource enumerates the values for virtual machine creation source.

const (
	// FromCustomImage specifies the from custom image state for virtual machine creation source.
	FromCustomImage VirtualMachineCreationSource = "FromCustomImage"
	// FromGalleryImage specifies the from gallery image state for virtual machine creation source.
	FromGalleryImage VirtualMachineCreationSource = "FromGalleryImage"
)

type VirtualMachineSchedulesClient

type VirtualMachineSchedulesClient struct {
	ManagementClient
}

VirtualMachineSchedulesClient is the the DevTest Labs Client.

func NewVirtualMachineSchedulesClient

func NewVirtualMachineSchedulesClient(subscriptionID string) VirtualMachineSchedulesClient

NewVirtualMachineSchedulesClient creates an instance of the VirtualMachineSchedulesClient client.

func NewVirtualMachineSchedulesClientWithBaseURI

func NewVirtualMachineSchedulesClientWithBaseURI(baseURI string, subscriptionID string) VirtualMachineSchedulesClient

NewVirtualMachineSchedulesClientWithBaseURI creates an instance of the VirtualMachineSchedulesClient client.

func (VirtualMachineSchedulesClient) CreateOrUpdate

func (client VirtualMachineSchedulesClient) CreateOrUpdate(resourceGroupName string, labName string, virtualMachineName string, name string, schedule Schedule) (result Schedule, err error)

CreateOrUpdate create or replace an existing schedule.

resourceGroupName is the name of the resource group. labName is the name of the lab. virtualMachineName is the name of the virtual machine. name is the name of the schedule. schedule is a schedule.

func (VirtualMachineSchedulesClient) CreateOrUpdatePreparer

func (client VirtualMachineSchedulesClient) CreateOrUpdatePreparer(resourceGroupName string, labName string, virtualMachineName string, name string, schedule Schedule) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (VirtualMachineSchedulesClient) CreateOrUpdateResponder

func (client VirtualMachineSchedulesClient) 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 (VirtualMachineSchedulesClient) CreateOrUpdateSender

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

func (client VirtualMachineSchedulesClient) Delete(resourceGroupName string, labName string, virtualMachineName string, name string) (result autorest.Response, err error)

Delete delete schedule.

resourceGroupName is the name of the resource group. labName is the name of the lab. virtualMachineName is the name of the virtual machine. name is the name of the schedule.

func (VirtualMachineSchedulesClient) DeletePreparer

func (client VirtualMachineSchedulesClient) DeletePreparer(resourceGroupName string, labName string, virtualMachineName string, name string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (VirtualMachineSchedulesClient) DeleteResponder

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

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

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

func (VirtualMachineSchedulesClient) Execute

func (client VirtualMachineSchedulesClient) Execute(resourceGroupName string, labName string, virtualMachineName string, name string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

Execute execute a schedule. This operation can take a while to complete. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. labName is the name of the lab. virtualMachineName is the name of the virtual machine. name is the name of the schedule.

func (VirtualMachineSchedulesClient) ExecutePreparer

func (client VirtualMachineSchedulesClient) ExecutePreparer(resourceGroupName string, labName string, virtualMachineName string, name string, cancel <-chan struct{}) (*http.Request, error)

ExecutePreparer prepares the Execute request.

func (VirtualMachineSchedulesClient) ExecuteResponder

func (client VirtualMachineSchedulesClient) ExecuteResponder(resp *http.Response) (result autorest.Response, err error)

ExecuteResponder handles the response to the Execute request. The method always closes the http.Response Body.

func (VirtualMachineSchedulesClient) ExecuteSender

func (client VirtualMachineSchedulesClient) ExecuteSender(req *http.Request) (*http.Response, error)

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

func (VirtualMachineSchedulesClient) Get

func (client VirtualMachineSchedulesClient) Get(resourceGroupName string, labName string, virtualMachineName string, name string, expand string) (result Schedule, err error)

Get get schedule.

resourceGroupName is the name of the resource group. labName is the name of the lab. virtualMachineName is the name of the virtual machine. name is the name of the schedule. expand is specify the $expand query. Example: 'properties($select=status)'

func (VirtualMachineSchedulesClient) GetPreparer

func (client VirtualMachineSchedulesClient) GetPreparer(resourceGroupName string, labName string, virtualMachineName string, name string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (VirtualMachineSchedulesClient) GetResponder

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

func (client VirtualMachineSchedulesClient) 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 (VirtualMachineSchedulesClient) List

func (client VirtualMachineSchedulesClient) List(resourceGroupName string, labName string, virtualMachineName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationSchedule, err error)

List list schedules in a given virtual machine.

resourceGroupName is the name of the resource group. labName is the name of the lab. virtualMachineName is the name of the virtual machine. expand is specify the $expand query. Example: 'properties($select=status)' filter is the filter to apply to the operation. top is the maximum number of resources to return from the operation. orderby is the ordering expression for the results, using OData notation.

func (VirtualMachineSchedulesClient) ListComplete

func (client VirtualMachineSchedulesClient) ListComplete(resourceGroupName string, labName string, virtualMachineName string, expand string, filter string, top *int32, orderby string, cancel <-chan struct{}) (<-chan Schedule, <-chan error)

ListComplete gets all elements from the list without paging.

func (VirtualMachineSchedulesClient) ListNextResults

ListNextResults retrieves the next set of results, if any.

func (VirtualMachineSchedulesClient) ListPreparer

func (client VirtualMachineSchedulesClient) ListPreparer(resourceGroupName string, labName string, virtualMachineName string, expand string, filter string, top *int32, orderby string) (*http.Request, error)

ListPreparer prepares the List request.

func (VirtualMachineSchedulesClient) ListResponder

func (client VirtualMachineSchedulesClient) ListResponder(resp *http.Response) (result ResponseWithContinuationSchedule, err error)

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

func (VirtualMachineSchedulesClient) ListSender

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

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

func (VirtualMachineSchedulesClient) Update

func (client VirtualMachineSchedulesClient) Update(resourceGroupName string, labName string, virtualMachineName string, name string, schedule ScheduleFragment) (result Schedule, err error)

Update modify properties of schedules.

resourceGroupName is the name of the resource group. labName is the name of the lab. virtualMachineName is the name of the virtual machine. name is the name of the schedule. schedule is a schedule.

func (VirtualMachineSchedulesClient) UpdatePreparer

func (client VirtualMachineSchedulesClient) UpdatePreparer(resourceGroupName string, labName string, virtualMachineName string, name string, schedule ScheduleFragment) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (VirtualMachineSchedulesClient) UpdateResponder

func (client VirtualMachineSchedulesClient) 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 (VirtualMachineSchedulesClient) UpdateSender

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

type VirtualMachinesClient struct {
	ManagementClient
}

VirtualMachinesClient is the the DevTest Labs Client.

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.

func (VirtualMachinesClient) AddDataDisk

func (client VirtualMachinesClient) AddDataDisk(resourceGroupName string, labName string, name string, dataDiskProperties DataDiskProperties, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

AddDataDisk attach a new or existing data disk to virtual machine. This operation can take a while to complete. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the virtual machine. dataDiskProperties is request body for adding a new or existing data disk to a virtual machine.

func (VirtualMachinesClient) AddDataDiskPreparer

func (client VirtualMachinesClient) AddDataDiskPreparer(resourceGroupName string, labName string, name string, dataDiskProperties DataDiskProperties, cancel <-chan struct{}) (*http.Request, error)

AddDataDiskPreparer prepares the AddDataDisk request.

func (VirtualMachinesClient) AddDataDiskResponder

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

AddDataDiskResponder handles the response to the AddDataDisk request. The method always closes the http.Response Body.

func (VirtualMachinesClient) AddDataDiskSender

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

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

func (VirtualMachinesClient) ApplyArtifacts

func (client VirtualMachinesClient) ApplyArtifacts(resourceGroupName string, labName string, name string, applyArtifactsRequest ApplyArtifactsRequest, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

ApplyArtifacts apply artifacts to virtual machine. This operation can take a while to complete. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the virtual machine. applyArtifactsRequest is request body for applying artifacts to a virtual machine.

func (VirtualMachinesClient) ApplyArtifactsPreparer

func (client VirtualMachinesClient) ApplyArtifactsPreparer(resourceGroupName string, labName string, name string, applyArtifactsRequest ApplyArtifactsRequest, cancel <-chan struct{}) (*http.Request, error)

ApplyArtifactsPreparer prepares the ApplyArtifacts request.

func (VirtualMachinesClient) ApplyArtifactsResponder

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

ApplyArtifactsResponder handles the response to the ApplyArtifacts request. The method always closes the http.Response Body.

func (VirtualMachinesClient) ApplyArtifactsSender

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

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

func (VirtualMachinesClient) Claim

func (client VirtualMachinesClient) Claim(resourceGroupName string, labName string, name string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

Claim take ownership of an existing virtual machine This operation can take a while to complete. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the virtual machine.

func (VirtualMachinesClient) ClaimPreparer

func (client VirtualMachinesClient) ClaimPreparer(resourceGroupName string, labName string, name string, cancel <-chan struct{}) (*http.Request, error)

ClaimPreparer prepares the Claim request.

func (VirtualMachinesClient) ClaimResponder

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

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

func (VirtualMachinesClient) ClaimSender

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

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

func (VirtualMachinesClient) CreateOrUpdate

func (client VirtualMachinesClient) CreateOrUpdate(resourceGroupName string, labName string, name string, labVirtualMachine LabVirtualMachine, cancel <-chan struct{}) (<-chan LabVirtualMachine, <-chan error)

CreateOrUpdate create or replace an existing Virtual machine. This operation can take a while to complete. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the virtual machine. labVirtualMachine is a virtual machine.

func (VirtualMachinesClient) CreateOrUpdatePreparer

func (client VirtualMachinesClient) CreateOrUpdatePreparer(resourceGroupName string, labName string, name string, labVirtualMachine LabVirtualMachine, cancel <-chan struct{}) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (VirtualMachinesClient) CreateOrUpdateResponder

func (client VirtualMachinesClient) CreateOrUpdateResponder(resp *http.Response) (result LabVirtualMachine, err error)

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

func (VirtualMachinesClient) CreateOrUpdateSender

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

func (client VirtualMachinesClient) Delete(resourceGroupName string, labName string, name string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

Delete delete virtual machine. This operation can take a while to complete. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the virtual machine.

func (VirtualMachinesClient) DeletePreparer

func (client VirtualMachinesClient) DeletePreparer(resourceGroupName string, labName string, name string, cancel <-chan struct{}) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (VirtualMachinesClient) DeleteResponder

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

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

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

func (VirtualMachinesClient) DetachDataDisk

func (client VirtualMachinesClient) DetachDataDisk(resourceGroupName string, labName string, name string, detachDataDiskProperties DetachDataDiskProperties, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

DetachDataDisk detach the specified disk from the virtual machine. This operation can take a while to complete. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the virtual machine. detachDataDiskProperties is request body for detaching data disk from a virtual machine.

func (VirtualMachinesClient) DetachDataDiskPreparer

func (client VirtualMachinesClient) DetachDataDiskPreparer(resourceGroupName string, labName string, name string, detachDataDiskProperties DetachDataDiskProperties, cancel <-chan struct{}) (*http.Request, error)

DetachDataDiskPreparer prepares the DetachDataDisk request.

func (VirtualMachinesClient) DetachDataDiskResponder

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

DetachDataDiskResponder handles the response to the DetachDataDisk request. The method always closes the http.Response Body.

func (VirtualMachinesClient) DetachDataDiskSender

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

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

func (VirtualMachinesClient) Get

func (client VirtualMachinesClient) Get(resourceGroupName string, labName string, name string, expand string) (result LabVirtualMachine, err error)

Get get virtual machine.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the virtual machine. expand is specify the $expand query. Example: 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)'

func (VirtualMachinesClient) GetPreparer

func (client VirtualMachinesClient) GetPreparer(resourceGroupName string, labName string, name string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (VirtualMachinesClient) GetResponder

func (client VirtualMachinesClient) GetResponder(resp *http.Response) (result LabVirtualMachine, 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) List

func (client VirtualMachinesClient) List(resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationLabVirtualMachine, err error)

List list virtual machines in a given lab.

resourceGroupName is the name of the resource group. labName is the name of the lab. expand is specify the $expand query. Example: 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)' filter is the filter to apply to the operation. top is the maximum number of resources to return from the operation. orderby is the ordering expression for the results, using OData notation.

func (VirtualMachinesClient) ListApplicableSchedules

func (client VirtualMachinesClient) ListApplicableSchedules(resourceGroupName string, labName string, name string) (result ApplicableSchedule, err error)

ListApplicableSchedules lists all applicable schedules

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the virtual machine.

func (VirtualMachinesClient) ListApplicableSchedulesPreparer

func (client VirtualMachinesClient) ListApplicableSchedulesPreparer(resourceGroupName string, labName string, name string) (*http.Request, error)

ListApplicableSchedulesPreparer prepares the ListApplicableSchedules request.

func (VirtualMachinesClient) ListApplicableSchedulesResponder

func (client VirtualMachinesClient) ListApplicableSchedulesResponder(resp *http.Response) (result ApplicableSchedule, err error)

ListApplicableSchedulesResponder handles the response to the ListApplicableSchedules request. The method always closes the http.Response Body.

func (VirtualMachinesClient) ListApplicableSchedulesSender

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

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

func (VirtualMachinesClient) ListComplete

func (client VirtualMachinesClient) ListComplete(resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string, cancel <-chan struct{}) (<-chan LabVirtualMachine, <-chan error)

ListComplete gets all elements from the list without paging.

func (VirtualMachinesClient) ListNextResults

ListNextResults retrieves the next set of results, if any.

func (VirtualMachinesClient) ListPreparer

func (client VirtualMachinesClient) ListPreparer(resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string) (*http.Request, error)

ListPreparer prepares the List request.

func (VirtualMachinesClient) ListResponder

func (client VirtualMachinesClient) ListResponder(resp *http.Response) (result ResponseWithContinuationLabVirtualMachine, err error)

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

func (VirtualMachinesClient) ListSender

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

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

func (VirtualMachinesClient) Start

func (client VirtualMachinesClient) Start(resourceGroupName string, labName string, name string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

Start start a virtual machine. This operation can take a while to complete. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the virtual machine.

func (VirtualMachinesClient) StartPreparer

func (client VirtualMachinesClient) StartPreparer(resourceGroupName string, labName string, name string, cancel <-chan struct{}) (*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) (*http.Response, 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(resourceGroupName string, labName string, name string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

Stop stop a virtual machine This operation can take a while to complete. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the virtual machine.

func (VirtualMachinesClient) StopPreparer

func (client VirtualMachinesClient) StopPreparer(resourceGroupName string, labName string, name string, cancel <-chan struct{}) (*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) (*http.Response, error)

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

func (VirtualMachinesClient) Update

func (client VirtualMachinesClient) Update(resourceGroupName string, labName string, name string, labVirtualMachine LabVirtualMachineFragment) (result LabVirtualMachine, err error)

Update modify properties of virtual machines.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the virtual machine. labVirtualMachine is a virtual machine.

func (VirtualMachinesClient) UpdatePreparer

func (client VirtualMachinesClient) UpdatePreparer(resourceGroupName string, labName string, name string, labVirtualMachine LabVirtualMachineFragment) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (VirtualMachinesClient) UpdateResponder

func (client VirtualMachinesClient) UpdateResponder(resp *http.Response) (result LabVirtualMachine, err error)

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

func (VirtualMachinesClient) UpdateSender

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

type VirtualNetwork struct {
	autorest.Response         `json:"-"`
	ID                        *string             `json:"id,omitempty"`
	Name                      *string             `json:"name,omitempty"`
	Type                      *string             `json:"type,omitempty"`
	Location                  *string             `json:"location,omitempty"`
	Tags                      *map[string]*string `json:"tags,omitempty"`
	*VirtualNetworkProperties `json:"properties,omitempty"`
}

VirtualNetwork is a virtual network.

type VirtualNetworkFragment

type VirtualNetworkFragment struct {
	ID                                *string             `json:"id,omitempty"`
	Name                              *string             `json:"name,omitempty"`
	Type                              *string             `json:"type,omitempty"`
	Location                          *string             `json:"location,omitempty"`
	Tags                              *map[string]*string `json:"tags,omitempty"`
	*VirtualNetworkPropertiesFragment `json:"properties,omitempty"`
}

VirtualNetworkFragment is a virtual network.

type VirtualNetworkProperties

type VirtualNetworkProperties struct {
	AllowedSubnets             *[]Subnet         `json:"allowedSubnets,omitempty"`
	Description                *string           `json:"description,omitempty"`
	ExternalProviderResourceID *string           `json:"externalProviderResourceId,omitempty"`
	ExternalSubnets            *[]ExternalSubnet `json:"externalSubnets,omitempty"`
	SubnetOverrides            *[]SubnetOverride `json:"subnetOverrides,omitempty"`
	CreatedDate                *date.Time        `json:"createdDate,omitempty"`
	ProvisioningState          *string           `json:"provisioningState,omitempty"`
	UniqueIdentifier           *string           `json:"uniqueIdentifier,omitempty"`
}

VirtualNetworkProperties is properties of a virtual network.

type VirtualNetworkPropertiesFragment

type VirtualNetworkPropertiesFragment struct {
	AllowedSubnets             *[]SubnetFragment         `json:"allowedSubnets,omitempty"`
	Description                *string                   `json:"description,omitempty"`
	ExternalProviderResourceID *string                   `json:"externalProviderResourceId,omitempty"`
	ExternalSubnets            *[]ExternalSubnetFragment `json:"externalSubnets,omitempty"`
	SubnetOverrides            *[]SubnetOverrideFragment `json:"subnetOverrides,omitempty"`
	ProvisioningState          *string                   `json:"provisioningState,omitempty"`
	UniqueIdentifier           *string                   `json:"uniqueIdentifier,omitempty"`
}

VirtualNetworkPropertiesFragment is properties of a virtual network.

type VirtualNetworksClient

type VirtualNetworksClient struct {
	ManagementClient
}

VirtualNetworksClient is the the DevTest Labs Client.

func NewVirtualNetworksClient

func NewVirtualNetworksClient(subscriptionID string) VirtualNetworksClient

NewVirtualNetworksClient creates an instance of the VirtualNetworksClient client.

func NewVirtualNetworksClientWithBaseURI

func NewVirtualNetworksClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworksClient

NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client.

func (VirtualNetworksClient) CreateOrUpdate

func (client VirtualNetworksClient) CreateOrUpdate(resourceGroupName string, labName string, name string, virtualNetwork VirtualNetwork, cancel <-chan struct{}) (<-chan VirtualNetwork, <-chan error)

CreateOrUpdate create or replace an existing virtual network. This operation can take a while to complete. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the virtual network. virtualNetwork is a virtual network.

func (VirtualNetworksClient) CreateOrUpdatePreparer

func (client VirtualNetworksClient) CreateOrUpdatePreparer(resourceGroupName string, labName string, name string, virtualNetwork VirtualNetwork, cancel <-chan struct{}) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (VirtualNetworksClient) CreateOrUpdateResponder

func (client VirtualNetworksClient) CreateOrUpdateResponder(resp *http.Response) (result VirtualNetwork, err error)

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

func (VirtualNetworksClient) CreateOrUpdateSender

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

func (client VirtualNetworksClient) Delete(resourceGroupName string, labName string, name string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

Delete delete virtual network. This operation can take a while to complete. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the virtual network.

func (VirtualNetworksClient) DeletePreparer

func (client VirtualNetworksClient) DeletePreparer(resourceGroupName string, labName string, name string, cancel <-chan struct{}) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (VirtualNetworksClient) DeleteResponder

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

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

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

func (VirtualNetworksClient) Get

func (client VirtualNetworksClient) Get(resourceGroupName string, labName string, name string, expand string) (result VirtualNetwork, err error)

Get get virtual network.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the virtual network. expand is specify the $expand query. Example: 'properties($expand=externalSubnets)'

func (VirtualNetworksClient) GetPreparer

func (client VirtualNetworksClient) GetPreparer(resourceGroupName string, labName string, name string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (VirtualNetworksClient) GetResponder

func (client VirtualNetworksClient) GetResponder(resp *http.Response) (result VirtualNetwork, err error)

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

func (VirtualNetworksClient) GetSender

func (client VirtualNetworksClient) 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 (VirtualNetworksClient) List

func (client VirtualNetworksClient) List(resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationVirtualNetwork, err error)

List list virtual networks in a given lab.

resourceGroupName is the name of the resource group. labName is the name of the lab. expand is specify the $expand query. Example: 'properties($expand=externalSubnets)' filter is the filter to apply to the operation. top is the maximum number of resources to return from the operation. orderby is the ordering expression for the results, using OData notation.

func (VirtualNetworksClient) ListComplete

func (client VirtualNetworksClient) ListComplete(resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string, cancel <-chan struct{}) (<-chan VirtualNetwork, <-chan error)

ListComplete gets all elements from the list without paging.

func (VirtualNetworksClient) ListNextResults

ListNextResults retrieves the next set of results, if any.

func (VirtualNetworksClient) ListPreparer

func (client VirtualNetworksClient) ListPreparer(resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string) (*http.Request, error)

ListPreparer prepares the List request.

func (VirtualNetworksClient) ListResponder

func (client VirtualNetworksClient) ListResponder(resp *http.Response) (result ResponseWithContinuationVirtualNetwork, err error)

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

func (VirtualNetworksClient) ListSender

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

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

func (VirtualNetworksClient) Update

func (client VirtualNetworksClient) Update(resourceGroupName string, labName string, name string, virtualNetwork VirtualNetworkFragment) (result VirtualNetwork, err error)

Update modify properties of virtual networks.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the virtual network. virtualNetwork is a virtual network.

func (VirtualNetworksClient) UpdatePreparer

func (client VirtualNetworksClient) UpdatePreparer(resourceGroupName string, labName string, name string, virtualNetwork VirtualNetworkFragment) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (VirtualNetworksClient) UpdateResponder

func (client VirtualNetworksClient) UpdateResponder(resp *http.Response) (result VirtualNetwork, err error)

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

func (VirtualNetworksClient) UpdateSender

func (client VirtualNetworksClient) 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 WeekDetails

type WeekDetails struct {
	Weekdays *[]string `json:"weekdays,omitempty"`
	Time     *string   `json:"time,omitempty"`
}

WeekDetails is properties of a weekly schedule.

type WeekDetailsFragment

type WeekDetailsFragment struct {
	Weekdays *[]string `json:"weekdays,omitempty"`
	Time     *string   `json:"time,omitempty"`
}

WeekDetailsFragment is properties of a weekly schedule.

type WindowsOsInfo

type WindowsOsInfo struct {
	WindowsOsState WindowsOsState `json:"windowsOsState,omitempty"`
}

WindowsOsInfo is information about a Windows OS.

type WindowsOsState

type WindowsOsState string

WindowsOsState enumerates the values for windows os state.

const (
	// NonSysprepped specifies the non sysprepped state for windows os state.
	NonSysprepped WindowsOsState = "NonSysprepped"
	// SysprepApplied specifies the sysprep applied state for windows os state.
	SysprepApplied WindowsOsState = "SysprepApplied"
	// SysprepRequested specifies the sysprep requested state for windows os state.
	SysprepRequested WindowsOsState = "SysprepRequested"
)

Jump to

Keyboard shortcuts

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