devtestlabs

package
v5.0.0-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2016 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 (
	// APIVersion is the version of the Devtestlabs
	APIVersion = "2016-05-15"

	// 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 ApplyArtifactsRequest

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

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

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 Artifact

type Artifact struct {
	autorest.Response `json:"-"`
	Properties        *ArtifactProperties `json:"properties,omitempty"`
	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"`
}

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 ArtifactInstallProperties

type ArtifactInstallProperties struct {
	ArtifactID *string                        `json:"artifactId,omitempty"`
	Parameters *[]ArtifactParameterProperties `json:"parameters,omitempty"`
}

ArtifactInstallProperties is properties of an artifact.

type ArtifactOperationsClient

type ArtifactOperationsClient struct {
	ManagementClient
}

ArtifactOperationsClient is the the DevTest Labs Client.

func NewArtifactOperationsClient

func NewArtifactOperationsClient(subscriptionID string) ArtifactOperationsClient

NewArtifactOperationsClient creates an instance of the ArtifactOperationsClient client.

func NewArtifactOperationsClientWithBaseURI

func NewArtifactOperationsClientWithBaseURI(baseURI string, subscriptionID string) ArtifactOperationsClient

NewArtifactOperationsClientWithBaseURI creates an instance of the ArtifactOperationsClient client.

func (ArtifactOperationsClient) GenerateArmTemplate

func (client ArtifactOperationsClient) 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.

func (ArtifactOperationsClient) GenerateArmTemplatePreparer

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

GenerateArmTemplatePreparer prepares the GenerateArmTemplate request.

func (ArtifactOperationsClient) GenerateArmTemplateResponder

func (client ArtifactOperationsClient) 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 (ArtifactOperationsClient) GenerateArmTemplateSender

func (client ArtifactOperationsClient) 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 (ArtifactOperationsClient) GetResource

func (client ArtifactOperationsClient) GetResource(resourceGroupName string, labName string, artifactSourceName string, name string) (result Artifact, err error)

GetResource 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.

func (ArtifactOperationsClient) GetResourcePreparer

func (client ArtifactOperationsClient) GetResourcePreparer(resourceGroupName string, labName string, artifactSourceName string, name string) (*http.Request, error)

GetResourcePreparer prepares the GetResource request.

func (ArtifactOperationsClient) GetResourceResponder

func (client ArtifactOperationsClient) GetResourceResponder(resp *http.Response) (result Artifact, err error)

GetResourceResponder handles the response to the GetResource request. The method always closes the http.Response Body.

func (ArtifactOperationsClient) GetResourceSender

func (client ArtifactOperationsClient) GetResourceSender(req *http.Request) (*http.Response, error)

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

func (ArtifactOperationsClient) List

func (client ArtifactOperationsClient) List(resourceGroupName string, labName string, artifactSourceName 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. filter is the filter to apply on 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 (ArtifactOperationsClient) ListNextResults

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

ListNextResults retrieves the next set of results, if any.

func (ArtifactOperationsClient) ListPreparer

func (client ArtifactOperationsClient) ListPreparer(resourceGroupName string, labName string, artifactSourceName string, filter string, top *int32, orderBy string) (*http.Request, error)

ListPreparer prepares the List request.

func (ArtifactOperationsClient) ListResponder

func (client ArtifactOperationsClient) 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 (ArtifactOperationsClient) ListSender

func (client ArtifactOperationsClient) 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 ArtifactParameterProperties

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

ArtifactParameterProperties is properties of an artifact parameter.

type ArtifactProperties

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

ArtifactProperties is properties of an artifact.

type ArtifactSource

type ArtifactSource struct {
	autorest.Response `json:"-"`
	Properties        *ArtifactSourceProperties `json:"properties,omitempty"`
	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"`
}

ArtifactSource is properties of an artifact source.

type ArtifactSourceOperationsClient

type ArtifactSourceOperationsClient struct {
	ManagementClient
}

ArtifactSourceOperationsClient is the the DevTest Labs Client.

func NewArtifactSourceOperationsClient

func NewArtifactSourceOperationsClient(subscriptionID string) ArtifactSourceOperationsClient

NewArtifactSourceOperationsClient creates an instance of the ArtifactSourceOperationsClient client.

func NewArtifactSourceOperationsClientWithBaseURI

func NewArtifactSourceOperationsClientWithBaseURI(baseURI string, subscriptionID string) ArtifactSourceOperationsClient

NewArtifactSourceOperationsClientWithBaseURI creates an instance of the ArtifactSourceOperationsClient client.

func (ArtifactSourceOperationsClient) CreateOrUpdateResource

func (client ArtifactSourceOperationsClient) CreateOrUpdateResource(resourceGroupName string, labName string, name string, artifactSource ArtifactSource) (result ArtifactSource, err error)

CreateOrUpdateResource 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.

func (ArtifactSourceOperationsClient) CreateOrUpdateResourcePreparer

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

CreateOrUpdateResourcePreparer prepares the CreateOrUpdateResource request.

func (ArtifactSourceOperationsClient) CreateOrUpdateResourceResponder

func (client ArtifactSourceOperationsClient) CreateOrUpdateResourceResponder(resp *http.Response) (result ArtifactSource, err error)

CreateOrUpdateResourceResponder handles the response to the CreateOrUpdateResource request. The method always closes the http.Response Body.

func (ArtifactSourceOperationsClient) CreateOrUpdateResourceSender

func (client ArtifactSourceOperationsClient) CreateOrUpdateResourceSender(req *http.Request) (*http.Response, error)

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

func (ArtifactSourceOperationsClient) DeleteResource

func (client ArtifactSourceOperationsClient) DeleteResource(resourceGroupName string, labName string, name string) (result autorest.Response, err error)

DeleteResource 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 (ArtifactSourceOperationsClient) DeleteResourcePreparer

func (client ArtifactSourceOperationsClient) DeleteResourcePreparer(resourceGroupName string, labName string, name string) (*http.Request, error)

DeleteResourcePreparer prepares the DeleteResource request.

func (ArtifactSourceOperationsClient) DeleteResourceResponder

func (client ArtifactSourceOperationsClient) DeleteResourceResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResourceResponder handles the response to the DeleteResource request. The method always closes the http.Response Body.

func (ArtifactSourceOperationsClient) DeleteResourceSender

func (client ArtifactSourceOperationsClient) DeleteResourceSender(req *http.Request) (*http.Response, error)

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

func (ArtifactSourceOperationsClient) GetResource

func (client ArtifactSourceOperationsClient) GetResource(resourceGroupName string, labName string, name string) (result ArtifactSource, err error)

GetResource 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.

func (ArtifactSourceOperationsClient) GetResourcePreparer

func (client ArtifactSourceOperationsClient) GetResourcePreparer(resourceGroupName string, labName string, name string) (*http.Request, error)

GetResourcePreparer prepares the GetResource request.

func (ArtifactSourceOperationsClient) GetResourceResponder

func (client ArtifactSourceOperationsClient) GetResourceResponder(resp *http.Response) (result ArtifactSource, err error)

GetResourceResponder handles the response to the GetResource request. The method always closes the http.Response Body.

func (ArtifactSourceOperationsClient) GetResourceSender

func (client ArtifactSourceOperationsClient) GetResourceSender(req *http.Request) (*http.Response, error)

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

func (ArtifactSourceOperationsClient) List

func (client ArtifactSourceOperationsClient) List(resourceGroupName string, labName 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. filter is the filter to apply on 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 (ArtifactSourceOperationsClient) ListNextResults

ListNextResults retrieves the next set of results, if any.

func (ArtifactSourceOperationsClient) ListPreparer

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

ListPreparer prepares the List request.

func (ArtifactSourceOperationsClient) ListResponder

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

func (ArtifactSourceOperationsClient) ListSender

func (client ArtifactSourceOperationsClient) 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 (ArtifactSourceOperationsClient) PatchResource

func (client ArtifactSourceOperationsClient) PatchResource(resourceGroupName string, labName string, name string, artifactSource ArtifactSource) (result ArtifactSource, err error)

PatchResource 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.

func (ArtifactSourceOperationsClient) PatchResourcePreparer

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

PatchResourcePreparer prepares the PatchResource request.

func (ArtifactSourceOperationsClient) PatchResourceResponder

func (client ArtifactSourceOperationsClient) PatchResourceResponder(resp *http.Response) (result ArtifactSource, err error)

PatchResourceResponder handles the response to the PatchResource request. The method always closes the http.Response Body.

func (ArtifactSourceOperationsClient) PatchResourceSender

func (client ArtifactSourceOperationsClient) PatchResourceSender(req *http.Request) (*http.Response, error)

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

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"`
	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"`
}

ArtifactSourceProperties is properties of an artifact source.

type CloudError

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

CloudError is

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

type Cost

type Cost struct {
	autorest.Response `json:"-"`
	Properties        *CostProperties     `json:"properties,omitempty"`
	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"`
}

Cost is a cost item.

type CostOperationsClient

type CostOperationsClient struct {
	ManagementClient
}

CostOperationsClient is the the DevTest Labs Client.

func NewCostOperationsClient

func NewCostOperationsClient(subscriptionID string) CostOperationsClient

NewCostOperationsClient creates an instance of the CostOperationsClient client.

func NewCostOperationsClientWithBaseURI

func NewCostOperationsClientWithBaseURI(baseURI string, subscriptionID string) CostOperationsClient

NewCostOperationsClientWithBaseURI creates an instance of the CostOperationsClient client.

func (CostOperationsClient) GetResource

func (client CostOperationsClient) GetResource(resourceGroupName string, labName string, name string) (result Cost, err error)

GetResource get cost.

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

func (CostOperationsClient) GetResourcePreparer

func (client CostOperationsClient) GetResourcePreparer(resourceGroupName string, labName string, name string) (*http.Request, error)

GetResourcePreparer prepares the GetResource request.

func (CostOperationsClient) GetResourceResponder

func (client CostOperationsClient) GetResourceResponder(resp *http.Response) (result Cost, err error)

GetResourceResponder handles the response to the GetResource request. The method always closes the http.Response Body.

func (CostOperationsClient) GetResourceSender

func (client CostOperationsClient) GetResourceSender(req *http.Request) (*http.Response, error)

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

type CostPerDayProperties

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

CostPerDayProperties is the properties of a lab cost item.

type CostProperties

type CostProperties struct {
	CurrencyCode  *string                   `json:"currencyCode,omitempty"`
	Costs         *[]CostPerDayProperties   `json:"costs,omitempty"`
	ResourceCosts *[]ResourceCostProperties `json:"resourceCosts,omitempty"`
}

CostProperties is properties of a cost item.

type CustomImage

type CustomImage struct {
	autorest.Response `json:"-"`
	Properties        *CustomImageProperties `json:"properties,omitempty"`
	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"`
}

CustomImage is a custom image.

type CustomImageOperationsClient

type CustomImageOperationsClient struct {
	ManagementClient
}

CustomImageOperationsClient is the the DevTest Labs Client.

func NewCustomImageOperationsClient

func NewCustomImageOperationsClient(subscriptionID string) CustomImageOperationsClient

NewCustomImageOperationsClient creates an instance of the CustomImageOperationsClient client.

func NewCustomImageOperationsClientWithBaseURI

func NewCustomImageOperationsClientWithBaseURI(baseURI string, subscriptionID string) CustomImageOperationsClient

NewCustomImageOperationsClientWithBaseURI creates an instance of the CustomImageOperationsClient client.

func (CustomImageOperationsClient) CreateOrUpdateResource

func (client CustomImageOperationsClient) CreateOrUpdateResource(resourceGroupName string, labName string, name string, customImage CustomImage, cancel <-chan struct{}) (result autorest.Response, err error)

CreateOrUpdateResource 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.

func (CustomImageOperationsClient) CreateOrUpdateResourcePreparer

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

CreateOrUpdateResourcePreparer prepares the CreateOrUpdateResource request.

func (CustomImageOperationsClient) CreateOrUpdateResourceResponder

func (client CustomImageOperationsClient) CreateOrUpdateResourceResponder(resp *http.Response) (result autorest.Response, err error)

CreateOrUpdateResourceResponder handles the response to the CreateOrUpdateResource request. The method always closes the http.Response Body.

func (CustomImageOperationsClient) CreateOrUpdateResourceSender

func (client CustomImageOperationsClient) CreateOrUpdateResourceSender(req *http.Request) (*http.Response, error)

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

func (CustomImageOperationsClient) DeleteResource

func (client CustomImageOperationsClient) DeleteResource(resourceGroupName string, labName string, name string, cancel <-chan struct{}) (result autorest.Response, err error)

DeleteResource 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 (CustomImageOperationsClient) DeleteResourcePreparer

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

DeleteResourcePreparer prepares the DeleteResource request.

func (CustomImageOperationsClient) DeleteResourceResponder

func (client CustomImageOperationsClient) DeleteResourceResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResourceResponder handles the response to the DeleteResource request. The method always closes the http.Response Body.

func (CustomImageOperationsClient) DeleteResourceSender

func (client CustomImageOperationsClient) DeleteResourceSender(req *http.Request) (*http.Response, error)

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

func (CustomImageOperationsClient) GetResource

func (client CustomImageOperationsClient) GetResource(resourceGroupName string, labName string, name string) (result CustomImage, err error)

GetResource 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.

func (CustomImageOperationsClient) GetResourcePreparer

func (client CustomImageOperationsClient) GetResourcePreparer(resourceGroupName string, labName string, name string) (*http.Request, error)

GetResourcePreparer prepares the GetResource request.

func (CustomImageOperationsClient) GetResourceResponder

func (client CustomImageOperationsClient) GetResourceResponder(resp *http.Response) (result CustomImage, err error)

GetResourceResponder handles the response to the GetResource request. The method always closes the http.Response Body.

func (CustomImageOperationsClient) GetResourceSender

func (client CustomImageOperationsClient) GetResourceSender(req *http.Request) (*http.Response, error)

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

func (CustomImageOperationsClient) List

func (client CustomImageOperationsClient) List(resourceGroupName string, labName 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. filter is the filter to apply on 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 (CustomImageOperationsClient) ListNextResults

ListNextResults retrieves the next set of results, if any.

func (CustomImageOperationsClient) ListPreparer

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

ListPreparer prepares the List request.

func (CustomImageOperationsClient) ListResponder

func (client CustomImageOperationsClient) 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 (CustomImageOperationsClient) ListSender

func (client CustomImageOperationsClient) 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 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"`
	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 DayDetails

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

DayDetails is properties of a daily schedule.

type EnableStatus

type EnableStatus string

EnableStatus enumerates the values for enable status.

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

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 Formula

type Formula struct {
	autorest.Response `json:"-"`
	Properties        *FormulaProperties  `json:"properties,omitempty"`
	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"`
}

Formula is a formula.

type FormulaOperationsClient

type FormulaOperationsClient struct {
	ManagementClient
}

FormulaOperationsClient is the the DevTest Labs Client.

func NewFormulaOperationsClient

func NewFormulaOperationsClient(subscriptionID string) FormulaOperationsClient

NewFormulaOperationsClient creates an instance of the FormulaOperationsClient client.

func NewFormulaOperationsClientWithBaseURI

func NewFormulaOperationsClientWithBaseURI(baseURI string, subscriptionID string) FormulaOperationsClient

NewFormulaOperationsClientWithBaseURI creates an instance of the FormulaOperationsClient client.

func (FormulaOperationsClient) CreateOrUpdateResource

func (client FormulaOperationsClient) CreateOrUpdateResource(resourceGroupName string, labName string, name string, formula Formula, cancel <-chan struct{}) (result autorest.Response, err error)

CreateOrUpdateResource 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.

func (FormulaOperationsClient) CreateOrUpdateResourcePreparer

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

CreateOrUpdateResourcePreparer prepares the CreateOrUpdateResource request.

func (FormulaOperationsClient) CreateOrUpdateResourceResponder

func (client FormulaOperationsClient) CreateOrUpdateResourceResponder(resp *http.Response) (result autorest.Response, err error)

CreateOrUpdateResourceResponder handles the response to the CreateOrUpdateResource request. The method always closes the http.Response Body.

func (FormulaOperationsClient) CreateOrUpdateResourceSender

func (client FormulaOperationsClient) CreateOrUpdateResourceSender(req *http.Request) (*http.Response, error)

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

func (FormulaOperationsClient) DeleteResource

func (client FormulaOperationsClient) DeleteResource(resourceGroupName string, labName string, name string) (result autorest.Response, err error)

DeleteResource 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 (FormulaOperationsClient) DeleteResourcePreparer

func (client FormulaOperationsClient) DeleteResourcePreparer(resourceGroupName string, labName string, name string) (*http.Request, error)

DeleteResourcePreparer prepares the DeleteResource request.

func (FormulaOperationsClient) DeleteResourceResponder

func (client FormulaOperationsClient) DeleteResourceResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResourceResponder handles the response to the DeleteResource request. The method always closes the http.Response Body.

func (FormulaOperationsClient) DeleteResourceSender

func (client FormulaOperationsClient) DeleteResourceSender(req *http.Request) (*http.Response, error)

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

func (FormulaOperationsClient) GetResource

func (client FormulaOperationsClient) GetResource(resourceGroupName string, labName string, name string) (result Formula, err error)

GetResource get formula.

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

func (FormulaOperationsClient) GetResourcePreparer

func (client FormulaOperationsClient) GetResourcePreparer(resourceGroupName string, labName string, name string) (*http.Request, error)

GetResourcePreparer prepares the GetResource request.

func (FormulaOperationsClient) GetResourceResponder

func (client FormulaOperationsClient) GetResourceResponder(resp *http.Response) (result Formula, err error)

GetResourceResponder handles the response to the GetResource request. The method always closes the http.Response Body.

func (FormulaOperationsClient) GetResourceSender

func (client FormulaOperationsClient) GetResourceSender(req *http.Request) (*http.Response, error)

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

func (FormulaOperationsClient) List

func (client FormulaOperationsClient) List(resourceGroupName string, labName 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. filter is the filter to apply on 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 (FormulaOperationsClient) ListNextResults

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

ListNextResults retrieves the next set of results, if any.

func (FormulaOperationsClient) ListPreparer

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

ListPreparer prepares the List request.

func (FormulaOperationsClient) ListResponder

func (client FormulaOperationsClient) 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 (FormulaOperationsClient) ListSender

func (client FormulaOperationsClient) 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 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    *LabVirtualMachine       `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 GalleryImage

type GalleryImage struct {
	Properties *GalleryImageProperties `json:"properties,omitempty"`
	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"`
}

GalleryImage is a gallery image.

type GalleryImageOperationsClient

type GalleryImageOperationsClient struct {
	ManagementClient
}

GalleryImageOperationsClient is the the DevTest Labs Client.

func NewGalleryImageOperationsClient

func NewGalleryImageOperationsClient(subscriptionID string) GalleryImageOperationsClient

NewGalleryImageOperationsClient creates an instance of the GalleryImageOperationsClient client.

func NewGalleryImageOperationsClientWithBaseURI

func NewGalleryImageOperationsClientWithBaseURI(baseURI string, subscriptionID string) GalleryImageOperationsClient

NewGalleryImageOperationsClientWithBaseURI creates an instance of the GalleryImageOperationsClient client.

func (GalleryImageOperationsClient) List

func (client GalleryImageOperationsClient) List(resourceGroupName string, labName 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. filter is the filter to apply on 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 (GalleryImageOperationsClient) ListNextResults

ListNextResults retrieves the next set of results, if any.

func (GalleryImageOperationsClient) ListPreparer

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

ListPreparer prepares the List request.

func (GalleryImageOperationsClient) ListResponder

func (client GalleryImageOperationsClient) 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 (GalleryImageOperationsClient) ListSender

func (client GalleryImageOperationsClient) 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 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 GenerateArmTemplateRequest

type GenerateArmTemplateRequest struct {
	VirtualMachineName *string          `json:"virtualMachineName,omitempty"`
	Parameters         *[]ParameterInfo `json:"parameters,omitempty"`
	Location           *string          `json:"location,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 HourDetails

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

HourDetails is properties of an hourly schedule.

type Lab

type Lab struct {
	autorest.Response `json:"-"`
	Properties        *LabProperties      `json:"properties,omitempty"`
	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"`
}

Lab is a lab.

type LabCostType

type LabCostType string

LabCostType enumerates the values for lab cost type.

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

type LabOperationsClient

type LabOperationsClient struct {
	ManagementClient
}

LabOperationsClient is the the DevTest Labs Client.

func NewLabOperationsClient

func NewLabOperationsClient(subscriptionID string) LabOperationsClient

NewLabOperationsClient creates an instance of the LabOperationsClient client.

func NewLabOperationsClientWithBaseURI

func NewLabOperationsClientWithBaseURI(baseURI string, subscriptionID string) LabOperationsClient

NewLabOperationsClientWithBaseURI creates an instance of the LabOperationsClient client.

func (LabOperationsClient) CreateEnvironment

func (client LabOperationsClient) CreateEnvironment(resourceGroupName string, name string, labVirtualMachine LabVirtualMachine, cancel <-chan struct{}) (result autorest.Response, err 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.

func (LabOperationsClient) CreateEnvironmentPreparer

func (client LabOperationsClient) CreateEnvironmentPreparer(resourceGroupName string, name string, labVirtualMachine LabVirtualMachine, cancel <-chan struct{}) (*http.Request, error)

CreateEnvironmentPreparer prepares the CreateEnvironment request.

func (LabOperationsClient) CreateEnvironmentResponder

func (client LabOperationsClient) 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 (LabOperationsClient) CreateEnvironmentSender

func (client LabOperationsClient) 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 (LabOperationsClient) CreateOrUpdateResource

func (client LabOperationsClient) CreateOrUpdateResource(resourceGroupName string, name string, lab Lab, cancel <-chan struct{}) (result autorest.Response, err error)

CreateOrUpdateResource 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.

func (LabOperationsClient) CreateOrUpdateResourcePreparer

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

CreateOrUpdateResourcePreparer prepares the CreateOrUpdateResource request.

func (LabOperationsClient) CreateOrUpdateResourceResponder

func (client LabOperationsClient) CreateOrUpdateResourceResponder(resp *http.Response) (result autorest.Response, err error)

CreateOrUpdateResourceResponder handles the response to the CreateOrUpdateResource request. The method always closes the http.Response Body.

func (LabOperationsClient) CreateOrUpdateResourceSender

func (client LabOperationsClient) CreateOrUpdateResourceSender(req *http.Request) (*http.Response, error)

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

func (LabOperationsClient) DeleteResource

func (client LabOperationsClient) DeleteResource(resourceGroupName string, name string, cancel <-chan struct{}) (result autorest.Response, err error)

DeleteResource 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 (LabOperationsClient) DeleteResourcePreparer

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

DeleteResourcePreparer prepares the DeleteResource request.

func (LabOperationsClient) DeleteResourceResponder

func (client LabOperationsClient) DeleteResourceResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResourceResponder handles the response to the DeleteResource request. The method always closes the http.Response Body.

func (LabOperationsClient) DeleteResourceSender

func (client LabOperationsClient) DeleteResourceSender(req *http.Request) (*http.Response, error)

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

func (LabOperationsClient) GenerateUploadURI

func (client LabOperationsClient) 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.

func (LabOperationsClient) GenerateUploadURIPreparer

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

GenerateUploadURIPreparer prepares the GenerateUploadURI request.

func (LabOperationsClient) GenerateUploadURIResponder

func (client LabOperationsClient) 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 (LabOperationsClient) GenerateUploadURISender

func (client LabOperationsClient) 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 (LabOperationsClient) GetResource

func (client LabOperationsClient) GetResource(resourceGroupName string, name string) (result Lab, err error)

GetResource get lab.

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

func (LabOperationsClient) GetResourcePreparer

func (client LabOperationsClient) GetResourcePreparer(resourceGroupName string, name string) (*http.Request, error)

GetResourcePreparer prepares the GetResource request.

func (LabOperationsClient) GetResourceResponder

func (client LabOperationsClient) GetResourceResponder(resp *http.Response) (result Lab, err error)

GetResourceResponder handles the response to the GetResource request. The method always closes the http.Response Body.

func (LabOperationsClient) GetResourceSender

func (client LabOperationsClient) GetResourceSender(req *http.Request) (*http.Response, error)

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

func (LabOperationsClient) ListByResourceGroup

func (client LabOperationsClient) ListByResourceGroup(resourceGroupName 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. filter is the filter to apply on 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 (LabOperationsClient) ListByResourceGroupNextResults

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

ListByResourceGroupNextResults retrieves the next set of results, if any.

func (LabOperationsClient) ListByResourceGroupPreparer

func (client LabOperationsClient) ListByResourceGroupPreparer(resourceGroupName string, filter string, top *int32, orderBy string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (LabOperationsClient) ListByResourceGroupResponder

func (client LabOperationsClient) 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 (LabOperationsClient) ListByResourceGroupSender

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

func (client LabOperationsClient) ListBySubscription(filter string, top *int32, orderBy string) (result ResponseWithContinuationLab, err error)

ListBySubscription list labs in a subscription.

filter is the filter to apply on 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 (LabOperationsClient) ListBySubscriptionNextResults

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

ListBySubscriptionNextResults retrieves the next set of results, if any.

func (LabOperationsClient) ListBySubscriptionPreparer

func (client LabOperationsClient) ListBySubscriptionPreparer(filter string, top *int32, orderBy string) (*http.Request, error)

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (LabOperationsClient) ListBySubscriptionResponder

func (client LabOperationsClient) 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 (LabOperationsClient) ListBySubscriptionSender

func (client LabOperationsClient) 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 (LabOperationsClient) ListVhds

func (client LabOperationsClient) 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 (LabOperationsClient) ListVhdsNextResults

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

ListVhdsNextResults retrieves the next set of results, if any.

func (LabOperationsClient) ListVhdsPreparer

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

ListVhdsPreparer prepares the ListVhds request.

func (LabOperationsClient) ListVhdsResponder

func (client LabOperationsClient) 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 (LabOperationsClient) ListVhdsSender

func (client LabOperationsClient) 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 (LabOperationsClient) PatchResource

func (client LabOperationsClient) PatchResource(resourceGroupName string, name string, lab Lab) (result Lab, err error)

PatchResource modify properties of labs.

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

func (LabOperationsClient) PatchResourcePreparer

func (client LabOperationsClient) PatchResourcePreparer(resourceGroupName string, name string, lab Lab) (*http.Request, error)

PatchResourcePreparer prepares the PatchResource request.

func (LabOperationsClient) PatchResourceResponder

func (client LabOperationsClient) PatchResourceResponder(resp *http.Response) (result Lab, err error)

PatchResourceResponder handles the response to the PatchResource request. The method always closes the http.Response Body.

func (LabOperationsClient) PatchResourceSender

func (client LabOperationsClient) PatchResourceSender(req *http.Request) (*http.Response, error)

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

type LabProperties

type LabProperties struct {
	DefaultStorageAccount   *string        `json:"defaultStorageAccount,omitempty"`
	ArtifactsStorageAccount *string        `json:"artifactsStorageAccount,omitempty"`
	VaultName               *string        `json:"vaultName,omitempty"`
	LabStorageType          LabStorageType `json:"labStorageType,omitempty"`
	CreatedDate             *date.Time     `json:"createdDate,omitempty"`
	ProvisioningState       *string        `json:"provisioningState,omitempty"`
	UniqueIdentifier        *string        `json:"uniqueIdentifier,omitempty"`
}

LabProperties is properties of a lab.

type LabStorageType

type LabStorageType string

LabStorageType enumerates the values for lab storage type.

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

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:"-"`
	Properties        *LabVirtualMachineProperties `json:"properties,omitempty"`
	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"`
}

LabVirtualMachine is a virtual machine.

type LabVirtualMachineProperties

type LabVirtualMachineProperties struct {
	Notes                      *string                             `json:"notes,omitempty"`
	OwnerObjectID              *string                             `json:"ownerObjectId,omitempty"`
	CreatedByUserID            *string                             `json:"createdByUserId,omitempty"`
	CreatedByUser              *string                             `json:"createdByUser,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"`
	ProvisioningState          *string                             `json:"provisioningState,omitempty"`
	UniqueIdentifier           *string                             `json:"uniqueIdentifier,omitempty"`
}

LabVirtualMachineProperties is properties of a virtual machine.

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
	APIVersion     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 ParameterInfo

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

ParameterInfo is

type Policy

type Policy struct {
	autorest.Response `json:"-"`
	Properties        *PolicyProperties   `json:"properties,omitempty"`
	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"`
}

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"
	// 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"
	// 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 PolicyOperationsClient

type PolicyOperationsClient struct {
	ManagementClient
}

PolicyOperationsClient is the the DevTest Labs Client.

func NewPolicyOperationsClient

func NewPolicyOperationsClient(subscriptionID string) PolicyOperationsClient

NewPolicyOperationsClient creates an instance of the PolicyOperationsClient client.

func NewPolicyOperationsClientWithBaseURI

func NewPolicyOperationsClientWithBaseURI(baseURI string, subscriptionID string) PolicyOperationsClient

NewPolicyOperationsClientWithBaseURI creates an instance of the PolicyOperationsClient client.

func (PolicyOperationsClient) CreateOrUpdateResource

func (client PolicyOperationsClient) CreateOrUpdateResource(resourceGroupName string, labName string, policySetName string, name string, policy Policy) (result Policy, err error)

CreateOrUpdateResource 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.

func (PolicyOperationsClient) CreateOrUpdateResourcePreparer

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

CreateOrUpdateResourcePreparer prepares the CreateOrUpdateResource request.

func (PolicyOperationsClient) CreateOrUpdateResourceResponder

func (client PolicyOperationsClient) CreateOrUpdateResourceResponder(resp *http.Response) (result Policy, err error)

CreateOrUpdateResourceResponder handles the response to the CreateOrUpdateResource request. The method always closes the http.Response Body.

func (PolicyOperationsClient) CreateOrUpdateResourceSender

func (client PolicyOperationsClient) CreateOrUpdateResourceSender(req *http.Request) (*http.Response, error)

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

func (PolicyOperationsClient) DeleteResource

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

DeleteResource 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 (PolicyOperationsClient) DeleteResourcePreparer

func (client PolicyOperationsClient) DeleteResourcePreparer(resourceGroupName string, labName string, policySetName string, name string) (*http.Request, error)

DeleteResourcePreparer prepares the DeleteResource request.

func (PolicyOperationsClient) DeleteResourceResponder

func (client PolicyOperationsClient) DeleteResourceResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResourceResponder handles the response to the DeleteResource request. The method always closes the http.Response Body.

func (PolicyOperationsClient) DeleteResourceSender

func (client PolicyOperationsClient) DeleteResourceSender(req *http.Request) (*http.Response, error)

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

func (PolicyOperationsClient) GetResource

func (client PolicyOperationsClient) GetResource(resourceGroupName string, labName string, policySetName string, name string) (result Policy, err error)

GetResource 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.

func (PolicyOperationsClient) GetResourcePreparer

func (client PolicyOperationsClient) GetResourcePreparer(resourceGroupName string, labName string, policySetName string, name string) (*http.Request, error)

GetResourcePreparer prepares the GetResource request.

func (PolicyOperationsClient) GetResourceResponder

func (client PolicyOperationsClient) GetResourceResponder(resp *http.Response) (result Policy, err error)

GetResourceResponder handles the response to the GetResource request. The method always closes the http.Response Body.

func (PolicyOperationsClient) GetResourceSender

func (client PolicyOperationsClient) GetResourceSender(req *http.Request) (*http.Response, error)

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

func (PolicyOperationsClient) List

func (client PolicyOperationsClient) List(resourceGroupName string, labName string, policySetName 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. filter is the filter to apply on 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 (PolicyOperationsClient) ListNextResults

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

ListNextResults retrieves the next set of results, if any.

func (PolicyOperationsClient) ListPreparer

func (client PolicyOperationsClient) ListPreparer(resourceGroupName string, labName string, policySetName string, filter string, top *int32, orderBy string) (*http.Request, error)

ListPreparer prepares the List request.

func (PolicyOperationsClient) ListResponder

func (client PolicyOperationsClient) 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 (PolicyOperationsClient) ListSender

func (client PolicyOperationsClient) 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 (PolicyOperationsClient) PatchResource

func (client PolicyOperationsClient) PatchResource(resourceGroupName string, labName string, policySetName string, name string, policy Policy) (result Policy, err error)

PatchResource 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.

func (PolicyOperationsClient) PatchResourcePreparer

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

PatchResourcePreparer prepares the PatchResource request.

func (PolicyOperationsClient) PatchResourceResponder

func (client PolicyOperationsClient) PatchResourceResponder(resp *http.Response) (result Policy, err error)

PatchResourceResponder handles the response to the PatchResource request. The method always closes the http.Response Body.

func (PolicyOperationsClient) PatchResourceSender

func (client PolicyOperationsClient) PatchResourceSender(req *http.Request) (*http.Response, error)

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

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"`
	ProvisioningState *string             `json:"provisioningState,omitempty"`
	UniqueIdentifier  *string             `json:"uniqueIdentifier,omitempty"`
}

PolicyProperties is properties of a Policy.

type PolicySetClient

type PolicySetClient struct {
	ManagementClient
}

PolicySetClient is the the DevTest Labs Client.

func NewPolicySetClient

func NewPolicySetClient(subscriptionID string) PolicySetClient

NewPolicySetClient creates an instance of the PolicySetClient client.

func NewPolicySetClientWithBaseURI

func NewPolicySetClientWithBaseURI(baseURI string, subscriptionID string) PolicySetClient

NewPolicySetClientWithBaseURI creates an instance of the PolicySetClient client.

func (PolicySetClient) EvaluatePolicies

func (client PolicySetClient) 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.

func (PolicySetClient) EvaluatePoliciesPreparer

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

EvaluatePoliciesPreparer prepares the EvaluatePolicies request.

func (PolicySetClient) EvaluatePoliciesResponder

func (client PolicySetClient) 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 (PolicySetClient) EvaluatePoliciesSender

func (client PolicySetClient) 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 PolicySetResult

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

PolicySetResult is result of a policy set evaluation.

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 ResourceCostProperties

type ResourceCostProperties struct {
	Resourcename      *string  `json:"resourcename,omitempty"`
	ResourceGroupName *string  `json:"resourceGroupName,omitempty"`
	ResourceCost      *float64 `json:"resourceCost,omitempty"`
	Owner             *string  `json:"owner,omitempty"`
	Category          *string  `json:"category,omitempty"`
	Exists            *bool    `json:"exists,omitempty"`
	ResourceType      *string  `json:"resourceType,omitempty"`
}

ResourceCostProperties is the properties of a resource cost item.

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 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 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 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 Schedule

type Schedule struct {
	autorest.Response `json:"-"`
	Properties        *ScheduleProperties `json:"properties,omitempty"`
	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"`
}

Schedule is a schedule.

type ScheduleOperationsClient

type ScheduleOperationsClient struct {
	ManagementClient
}

ScheduleOperationsClient is the the DevTest Labs Client.

func NewScheduleOperationsClient

func NewScheduleOperationsClient(subscriptionID string) ScheduleOperationsClient

NewScheduleOperationsClient creates an instance of the ScheduleOperationsClient client.

func NewScheduleOperationsClientWithBaseURI

func NewScheduleOperationsClientWithBaseURI(baseURI string, subscriptionID string) ScheduleOperationsClient

NewScheduleOperationsClientWithBaseURI creates an instance of the ScheduleOperationsClient client.

func (ScheduleOperationsClient) CreateOrUpdateResource

func (client ScheduleOperationsClient) CreateOrUpdateResource(resourceGroupName string, labName string, name string, schedule Schedule) (result Schedule, err error)

CreateOrUpdateResource 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.

func (ScheduleOperationsClient) CreateOrUpdateResourcePreparer

func (client ScheduleOperationsClient) CreateOrUpdateResourcePreparer(resourceGroupName string, labName string, name string, schedule Schedule) (*http.Request, error)

CreateOrUpdateResourcePreparer prepares the CreateOrUpdateResource request.

func (ScheduleOperationsClient) CreateOrUpdateResourceResponder

func (client ScheduleOperationsClient) CreateOrUpdateResourceResponder(resp *http.Response) (result Schedule, err error)

CreateOrUpdateResourceResponder handles the response to the CreateOrUpdateResource request. The method always closes the http.Response Body.

func (ScheduleOperationsClient) CreateOrUpdateResourceSender

func (client ScheduleOperationsClient) CreateOrUpdateResourceSender(req *http.Request) (*http.Response, error)

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

func (ScheduleOperationsClient) DeleteResource

func (client ScheduleOperationsClient) DeleteResource(resourceGroupName string, labName string, name string) (result autorest.Response, err error)

DeleteResource 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 (ScheduleOperationsClient) DeleteResourcePreparer

func (client ScheduleOperationsClient) DeleteResourcePreparer(resourceGroupName string, labName string, name string) (*http.Request, error)

DeleteResourcePreparer prepares the DeleteResource request.

func (ScheduleOperationsClient) DeleteResourceResponder

func (client ScheduleOperationsClient) DeleteResourceResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResourceResponder handles the response to the DeleteResource request. The method always closes the http.Response Body.

func (ScheduleOperationsClient) DeleteResourceSender

func (client ScheduleOperationsClient) DeleteResourceSender(req *http.Request) (*http.Response, error)

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

func (ScheduleOperationsClient) Execute

func (client ScheduleOperationsClient) Execute(resourceGroupName string, labName string, name string, cancel <-chan struct{}) (result autorest.Response, err 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 (ScheduleOperationsClient) ExecutePreparer

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

ExecutePreparer prepares the Execute request.

func (ScheduleOperationsClient) ExecuteResponder

func (client ScheduleOperationsClient) 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 (ScheduleOperationsClient) ExecuteSender

func (client ScheduleOperationsClient) 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 (ScheduleOperationsClient) GetResource

func (client ScheduleOperationsClient) GetResource(resourceGroupName string, labName string, name string) (result Schedule, err error)

GetResource get schedule.

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

func (ScheduleOperationsClient) GetResourcePreparer

func (client ScheduleOperationsClient) GetResourcePreparer(resourceGroupName string, labName string, name string) (*http.Request, error)

GetResourcePreparer prepares the GetResource request.

func (ScheduleOperationsClient) GetResourceResponder

func (client ScheduleOperationsClient) GetResourceResponder(resp *http.Response) (result Schedule, err error)

GetResourceResponder handles the response to the GetResource request. The method always closes the http.Response Body.

func (ScheduleOperationsClient) GetResourceSender

func (client ScheduleOperationsClient) GetResourceSender(req *http.Request) (*http.Response, error)

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

func (ScheduleOperationsClient) List

func (client ScheduleOperationsClient) List(resourceGroupName string, labName 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. filter is the filter to apply on 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 (ScheduleOperationsClient) ListNextResults

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

ListNextResults retrieves the next set of results, if any.

func (ScheduleOperationsClient) ListPreparer

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

ListPreparer prepares the List request.

func (ScheduleOperationsClient) ListResponder

func (client ScheduleOperationsClient) 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 (ScheduleOperationsClient) ListSender

func (client ScheduleOperationsClient) 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 (ScheduleOperationsClient) PatchResource

func (client ScheduleOperationsClient) PatchResource(resourceGroupName string, labName string, name string, schedule Schedule) (result Schedule, err error)

PatchResource 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.

func (ScheduleOperationsClient) PatchResourcePreparer

func (client ScheduleOperationsClient) PatchResourcePreparer(resourceGroupName string, labName string, name string, schedule Schedule) (*http.Request, error)

PatchResourcePreparer prepares the PatchResource request.

func (ScheduleOperationsClient) PatchResourceResponder

func (client ScheduleOperationsClient) PatchResourceResponder(resp *http.Response) (result Schedule, err error)

PatchResourceResponder handles the response to the PatchResource request. The method always closes the http.Response Body.

func (ScheduleOperationsClient) PatchResourceSender

func (client ScheduleOperationsClient) PatchResourceSender(req *http.Request) (*http.Response, error)

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

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"`
	ProvisioningState *string      `json:"provisioningState,omitempty"`
	UniqueIdentifier  *string      `json:"uniqueIdentifier,omitempty"`
}

ScheduleProperties is properties of a schedule.

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 Subnet

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

Subnet is

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"`
}

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

type SubscriptionNotification

type SubscriptionNotification struct {
	RegistrationDate *string                             `json:"registrationDate,omitempty"`
	State            SubscriptionNotificationState       `json:"state,omitempty"`
	Properties       *SubscriptionNotificationProperties `json:"properties,omitempty"`
}

SubscriptionNotification is

type SubscriptionNotificationProperties

type SubscriptionNotificationProperties struct {
	TenantID *string `json:"tenantId,omitempty"`
}

SubscriptionNotificationProperties is

type SubscriptionNotificationState

type SubscriptionNotificationState string

SubscriptionNotificationState enumerates the values for subscription notification state.

const (
	// Deleted specifies the deleted state for subscription notification state.
	Deleted SubscriptionNotificationState = "Deleted"
	// NotDefined specifies the not defined state for subscription
	// notification state.
	NotDefined SubscriptionNotificationState = "NotDefined"
	// Registered specifies the registered state for subscription notification
	// state.
	Registered SubscriptionNotificationState = "Registered"
	// Suspended specifies the suspended state for subscription notification
	// state.
	Suspended SubscriptionNotificationState = "Suspended"
	// Unregistered specifies the unregistered state for subscription
	// notification state.
	Unregistered SubscriptionNotificationState = "Unregistered"
	// Warned specifies the warned state for subscription notification state.
	Warned SubscriptionNotificationState = "Warned"
)

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 VirtualMachineClient

type VirtualMachineClient struct {
	ManagementClient
}

VirtualMachineClient is the the DevTest Labs Client.

func NewVirtualMachineClient

func NewVirtualMachineClient(subscriptionID string) VirtualMachineClient

NewVirtualMachineClient creates an instance of the VirtualMachineClient client.

func NewVirtualMachineClientWithBaseURI

func NewVirtualMachineClientWithBaseURI(baseURI string, subscriptionID string) VirtualMachineClient

NewVirtualMachineClientWithBaseURI creates an instance of the VirtualMachineClient client.

func (VirtualMachineClient) ApplyArtifacts

func (client VirtualMachineClient) ApplyArtifacts(resourceGroupName string, labName string, name string, applyArtifactsRequest ApplyArtifactsRequest, cancel <-chan struct{}) (result autorest.Response, err error)

ApplyArtifacts apply artifacts to Lab VM. 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 (VirtualMachineClient) ApplyArtifactsPreparer

func (client VirtualMachineClient) ApplyArtifactsPreparer(resourceGroupName string, labName string, name string, applyArtifactsRequest ApplyArtifactsRequest, cancel <-chan struct{}) (*http.Request, error)

ApplyArtifactsPreparer prepares the ApplyArtifacts request.

func (VirtualMachineClient) ApplyArtifactsResponder

func (client VirtualMachineClient) 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 (VirtualMachineClient) ApplyArtifactsSender

func (client VirtualMachineClient) 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 (VirtualMachineClient) CreateOrUpdateResource

func (client VirtualMachineClient) CreateOrUpdateResource(resourceGroupName string, labName string, name string, labVirtualMachine LabVirtualMachine, cancel <-chan struct{}) (result autorest.Response, err error)

CreateOrUpdateResource 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.

func (VirtualMachineClient) CreateOrUpdateResourcePreparer

func (client VirtualMachineClient) CreateOrUpdateResourcePreparer(resourceGroupName string, labName string, name string, labVirtualMachine LabVirtualMachine, cancel <-chan struct{}) (*http.Request, error)

CreateOrUpdateResourcePreparer prepares the CreateOrUpdateResource request.

func (VirtualMachineClient) CreateOrUpdateResourceResponder

func (client VirtualMachineClient) CreateOrUpdateResourceResponder(resp *http.Response) (result autorest.Response, err error)

CreateOrUpdateResourceResponder handles the response to the CreateOrUpdateResource request. The method always closes the http.Response Body.

func (VirtualMachineClient) CreateOrUpdateResourceSender

func (client VirtualMachineClient) CreateOrUpdateResourceSender(req *http.Request) (*http.Response, error)

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

func (VirtualMachineClient) DeleteResource

func (client VirtualMachineClient) DeleteResource(resourceGroupName string, labName string, name string, cancel <-chan struct{}) (result autorest.Response, err error)

DeleteResource 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 (VirtualMachineClient) DeleteResourcePreparer

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

DeleteResourcePreparer prepares the DeleteResource request.

func (VirtualMachineClient) DeleteResourceResponder

func (client VirtualMachineClient) DeleteResourceResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResourceResponder handles the response to the DeleteResource request. The method always closes the http.Response Body.

func (VirtualMachineClient) DeleteResourceSender

func (client VirtualMachineClient) DeleteResourceSender(req *http.Request) (*http.Response, error)

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

func (VirtualMachineClient) GetResource

func (client VirtualMachineClient) GetResource(resourceGroupName string, labName string, name string) (result LabVirtualMachine, err error)

GetResource 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.

func (VirtualMachineClient) GetResourcePreparer

func (client VirtualMachineClient) GetResourcePreparer(resourceGroupName string, labName string, name string) (*http.Request, error)

GetResourcePreparer prepares the GetResource request.

func (VirtualMachineClient) GetResourceResponder

func (client VirtualMachineClient) GetResourceResponder(resp *http.Response) (result LabVirtualMachine, err error)

GetResourceResponder handles the response to the GetResource request. The method always closes the http.Response Body.

func (VirtualMachineClient) GetResourceSender

func (client VirtualMachineClient) GetResourceSender(req *http.Request) (*http.Response, error)

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

func (VirtualMachineClient) List

func (client VirtualMachineClient) List(resourceGroupName string, labName 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. filter is the filter to apply on 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 (VirtualMachineClient) ListNextResults

ListNextResults retrieves the next set of results, if any.

func (VirtualMachineClient) ListPreparer

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

ListPreparer prepares the List request.

func (VirtualMachineClient) ListResponder

func (client VirtualMachineClient) 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 (VirtualMachineClient) ListSender

func (client VirtualMachineClient) 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 (VirtualMachineClient) PatchResource

func (client VirtualMachineClient) PatchResource(resourceGroupName string, labName string, name string, labVirtualMachine LabVirtualMachine) (result LabVirtualMachine, err error)

PatchResource 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.

func (VirtualMachineClient) PatchResourcePreparer

func (client VirtualMachineClient) PatchResourcePreparer(resourceGroupName string, labName string, name string, labVirtualMachine LabVirtualMachine) (*http.Request, error)

PatchResourcePreparer prepares the PatchResource request.

func (VirtualMachineClient) PatchResourceResponder

func (client VirtualMachineClient) PatchResourceResponder(resp *http.Response) (result LabVirtualMachine, err error)

PatchResourceResponder handles the response to the PatchResource request. The method always closes the http.Response Body.

func (VirtualMachineClient) PatchResourceSender

func (client VirtualMachineClient) PatchResourceSender(req *http.Request) (*http.Response, error)

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

func (VirtualMachineClient) Start

func (client VirtualMachineClient) Start(resourceGroupName string, labName string, name string, cancel <-chan struct{}) (result autorest.Response, err error)

Start start a Lab VM. 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 (VirtualMachineClient) StartPreparer

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

StartPreparer prepares the Start request.

func (VirtualMachineClient) StartResponder

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

func (client VirtualMachineClient) 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 (VirtualMachineClient) Stop

func (client VirtualMachineClient) Stop(resourceGroupName string, labName string, name string, cancel <-chan struct{}) (result autorest.Response, err error)

Stop stop a Lab VM. 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 (VirtualMachineClient) StopPreparer

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

StopPreparer prepares the Stop request.

func (VirtualMachineClient) StopResponder

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

func (client VirtualMachineClient) 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.

type VirtualNetwork

type VirtualNetwork struct {
	autorest.Response `json:"-"`
	Properties        *VirtualNetworkProperties `json:"properties,omitempty"`
	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"`
}

VirtualNetwork is a virtual network.

type VirtualNetworkOperationsClient

type VirtualNetworkOperationsClient struct {
	ManagementClient
}

VirtualNetworkOperationsClient is the the DevTest Labs Client.

func NewVirtualNetworkOperationsClient

func NewVirtualNetworkOperationsClient(subscriptionID string) VirtualNetworkOperationsClient

NewVirtualNetworkOperationsClient creates an instance of the VirtualNetworkOperationsClient client.

func NewVirtualNetworkOperationsClientWithBaseURI

func NewVirtualNetworkOperationsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkOperationsClient

NewVirtualNetworkOperationsClientWithBaseURI creates an instance of the VirtualNetworkOperationsClient client.

func (VirtualNetworkOperationsClient) CreateOrUpdateResource

func (client VirtualNetworkOperationsClient) CreateOrUpdateResource(resourceGroupName string, labName string, name string, virtualNetwork VirtualNetwork, cancel <-chan struct{}) (result autorest.Response, err error)

CreateOrUpdateResource 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.

func (VirtualNetworkOperationsClient) CreateOrUpdateResourcePreparer

func (client VirtualNetworkOperationsClient) CreateOrUpdateResourcePreparer(resourceGroupName string, labName string, name string, virtualNetwork VirtualNetwork, cancel <-chan struct{}) (*http.Request, error)

CreateOrUpdateResourcePreparer prepares the CreateOrUpdateResource request.

func (VirtualNetworkOperationsClient) CreateOrUpdateResourceResponder

func (client VirtualNetworkOperationsClient) CreateOrUpdateResourceResponder(resp *http.Response) (result autorest.Response, err error)

CreateOrUpdateResourceResponder handles the response to the CreateOrUpdateResource request. The method always closes the http.Response Body.

func (VirtualNetworkOperationsClient) CreateOrUpdateResourceSender

func (client VirtualNetworkOperationsClient) CreateOrUpdateResourceSender(req *http.Request) (*http.Response, error)

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

func (VirtualNetworkOperationsClient) DeleteResource

func (client VirtualNetworkOperationsClient) DeleteResource(resourceGroupName string, labName string, name string, cancel <-chan struct{}) (result autorest.Response, err error)

DeleteResource 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 (VirtualNetworkOperationsClient) DeleteResourcePreparer

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

DeleteResourcePreparer prepares the DeleteResource request.

func (VirtualNetworkOperationsClient) DeleteResourceResponder

func (client VirtualNetworkOperationsClient) DeleteResourceResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResourceResponder handles the response to the DeleteResource request. The method always closes the http.Response Body.

func (VirtualNetworkOperationsClient) DeleteResourceSender

func (client VirtualNetworkOperationsClient) DeleteResourceSender(req *http.Request) (*http.Response, error)

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

func (VirtualNetworkOperationsClient) GetResource

func (client VirtualNetworkOperationsClient) GetResource(resourceGroupName string, labName string, name string) (result VirtualNetwork, err error)

GetResource 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.

func (VirtualNetworkOperationsClient) GetResourcePreparer

func (client VirtualNetworkOperationsClient) GetResourcePreparer(resourceGroupName string, labName string, name string) (*http.Request, error)

GetResourcePreparer prepares the GetResource request.

func (VirtualNetworkOperationsClient) GetResourceResponder

func (client VirtualNetworkOperationsClient) GetResourceResponder(resp *http.Response) (result VirtualNetwork, err error)

GetResourceResponder handles the response to the GetResource request. The method always closes the http.Response Body.

func (VirtualNetworkOperationsClient) GetResourceSender

func (client VirtualNetworkOperationsClient) GetResourceSender(req *http.Request) (*http.Response, error)

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

func (VirtualNetworkOperationsClient) List

func (client VirtualNetworkOperationsClient) List(resourceGroupName string, labName 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. filter is the filter to apply on 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 (VirtualNetworkOperationsClient) ListNextResults

ListNextResults retrieves the next set of results, if any.

func (VirtualNetworkOperationsClient) ListPreparer

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

ListPreparer prepares the List request.

func (VirtualNetworkOperationsClient) ListResponder

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

func (VirtualNetworkOperationsClient) ListSender

func (client VirtualNetworkOperationsClient) 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 (VirtualNetworkOperationsClient) PatchResource

func (client VirtualNetworkOperationsClient) PatchResource(resourceGroupName string, labName string, name string, virtualNetwork VirtualNetwork) (result VirtualNetwork, err error)

PatchResource 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.

func (VirtualNetworkOperationsClient) PatchResourcePreparer

func (client VirtualNetworkOperationsClient) PatchResourcePreparer(resourceGroupName string, labName string, name string, virtualNetwork VirtualNetwork) (*http.Request, error)

PatchResourcePreparer prepares the PatchResource request.

func (VirtualNetworkOperationsClient) PatchResourceResponder

func (client VirtualNetworkOperationsClient) PatchResourceResponder(resp *http.Response) (result VirtualNetwork, err error)

PatchResourceResponder handles the response to the PatchResource request. The method always closes the http.Response Body.

func (VirtualNetworkOperationsClient) PatchResourceSender

func (client VirtualNetworkOperationsClient) PatchResourceSender(req *http.Request) (*http.Response, error)

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

type VirtualNetworkProperties

type VirtualNetworkProperties struct {
	AllowedSubnets             *[]Subnet         `json:"allowedSubnets,omitempty"`
	Description                *string           `json:"description,omitempty"`
	ExternalProviderResourceID *string           `json:"externalProviderResourceId,omitempty"`
	SubnetOverrides            *[]SubnetOverride `json:"subnetOverrides,omitempty"`
	ProvisioningState          *string           `json:"provisioningState,omitempty"`
	UniqueIdentifier           *string           `json:"uniqueIdentifier,omitempty"`
}

VirtualNetworkProperties is properties of a virtual network.

type WeekDetails

type WeekDetails struct {
	Weekdays *[]string `json:"weekdays,omitempty"`
	Time     *string   `json:"time,omitempty"`
}

WeekDetails 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