dtl

package
v11.2.2-beta+incompatible Latest Latest
Warning

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

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

Documentation

Overview

Package dtl implements the Azure ARM Dtl service API version 2015-05-21-preview.

Azure DevTest Labs REST API version 2015-05-21-preview.

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Dtl
	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:"-"`
	*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 ArtifactClient

type ArtifactClient struct {
	ManagementClient
}

ArtifactClient is the azure DevTest Labs REST API version 2015-05-21-preview.

func NewArtifactClient

func NewArtifactClient(subscriptionID string) ArtifactClient

NewArtifactClient creates an instance of the ArtifactClient client.

func NewArtifactClientWithBaseURI

func NewArtifactClientWithBaseURI(baseURI string, subscriptionID string) ArtifactClient

NewArtifactClientWithBaseURI creates an instance of the ArtifactClient client.

func (ArtifactClient) GenerateArmTemplate

func (client ArtifactClient) 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 (ArtifactClient) GenerateArmTemplatePreparer

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

GenerateArmTemplatePreparer prepares the GenerateArmTemplate request.

func (ArtifactClient) GenerateArmTemplateResponder

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

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

func (client ArtifactClient) 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 (ArtifactClient) GetResourcePreparer

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

GetResourcePreparer prepares the GetResource request.

func (ArtifactClient) GetResourceResponder

func (client ArtifactClient) 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 (ArtifactClient) GetResourceSender

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

func (client ArtifactClient) List(resourceGroupName string, labName string, artifactSourceName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationArtifact, err error)

List list artifacts.

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.

func (ArtifactClient) ListComplete

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

ListComplete gets all elements from the list without paging.

func (ArtifactClient) ListNextResults

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

ListNextResults retrieves the next set of results, if any.

func (ArtifactClient) ListPreparer

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

ListPreparer prepares the List request.

func (ArtifactClient) ListResponder

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

func (client ArtifactClient) 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 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 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:"-"`
	*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 ArtifactSourceClient

type ArtifactSourceClient struct {
	ManagementClient
}

ArtifactSourceClient is the azure DevTest Labs REST API version 2015-05-21-preview.

func NewArtifactSourceClient

func NewArtifactSourceClient(subscriptionID string) ArtifactSourceClient

NewArtifactSourceClient creates an instance of the ArtifactSourceClient client.

func NewArtifactSourceClientWithBaseURI

func NewArtifactSourceClientWithBaseURI(baseURI string, subscriptionID string) ArtifactSourceClient

NewArtifactSourceClientWithBaseURI creates an instance of the ArtifactSourceClient client.

func (ArtifactSourceClient) CreateOrUpdateResource

func (client ArtifactSourceClient) 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 (ArtifactSourceClient) CreateOrUpdateResourcePreparer

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

CreateOrUpdateResourcePreparer prepares the CreateOrUpdateResource request.

func (ArtifactSourceClient) CreateOrUpdateResourceResponder

func (client ArtifactSourceClient) 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 (ArtifactSourceClient) CreateOrUpdateResourceSender

func (client ArtifactSourceClient) 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 (ArtifactSourceClient) DeleteResource

func (client ArtifactSourceClient) 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 (ArtifactSourceClient) DeleteResourcePreparer

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

DeleteResourcePreparer prepares the DeleteResource request.

func (ArtifactSourceClient) DeleteResourceResponder

func (client ArtifactSourceClient) 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 (ArtifactSourceClient) DeleteResourceSender

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

func (client ArtifactSourceClient) 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 (ArtifactSourceClient) GetResourcePreparer

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

GetResourcePreparer prepares the GetResource request.

func (ArtifactSourceClient) GetResourceResponder

func (client ArtifactSourceClient) 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 (ArtifactSourceClient) GetResourceSender

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

func (client ArtifactSourceClient) List(resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationArtifactSource, err error)

List list artifact sources.

resourceGroupName is the name of the resource group. labName is the name of the lab. filter is the filter to apply on the operation.

func (ArtifactSourceClient) ListComplete

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

ListComplete gets all elements from the list without paging.

func (ArtifactSourceClient) ListNextResults

ListNextResults retrieves the next set of results, if any.

func (ArtifactSourceClient) ListPreparer

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

ListPreparer prepares the List request.

func (ArtifactSourceClient) ListResponder

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

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

func (ArtifactSourceClient) ListSender

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

func (client ArtifactSourceClient) 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 (ArtifactSourceClient) PatchResourcePreparer

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

PatchResourcePreparer prepares the PatchResource request.

func (ArtifactSourceClient) PatchResourceResponder

func (client ArtifactSourceClient) 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 (ArtifactSourceClient) PatchResourceSender

func (client ArtifactSourceClient) 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"`
}

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:"-"`
	*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 CostClient

type CostClient struct {
	ManagementClient
}

CostClient is the azure DevTest Labs REST API version 2015-05-21-preview.

func NewCostClient

func NewCostClient(subscriptionID string) CostClient

NewCostClient creates an instance of the CostClient client.

func NewCostClientWithBaseURI

func NewCostClientWithBaseURI(baseURI string, subscriptionID string) CostClient

NewCostClientWithBaseURI creates an instance of the CostClient client.

func (CostClient) GetResource

func (client CostClient) 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 (CostClient) GetResourcePreparer

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

GetResourcePreparer prepares the GetResource request.

func (CostClient) GetResourceResponder

func (client CostClient) 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 (CostClient) GetResourceSender

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

func (client CostClient) List(resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationCost, err error)

List list costs.

resourceGroupName is the name of the resource group. labName is the name of the lab. filter is the filter to apply on the operation.

func (CostClient) ListComplete

func (client CostClient) ListComplete(resourceGroupName string, labName string, filter string, top *int32, orderBy string, cancel <-chan struct{}) (<-chan Cost, <-chan error)

ListComplete gets all elements from the list without paging.

func (CostClient) ListNextResults

func (client CostClient) ListNextResults(lastResults ResponseWithContinuationCost) (result ResponseWithContinuationCost, err error)

ListNextResults retrieves the next set of results, if any.

func (CostClient) ListPreparer

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

ListPreparer prepares the List request.

func (CostClient) ListResponder

func (client CostClient) ListResponder(resp *http.Response) (result ResponseWithContinuationCost, err error)

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

func (CostClient) ListSender

func (client CostClient) 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 (CostClient) RefreshData

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

RefreshData refresh Lab's Cost Data. 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 cost.

func (CostClient) RefreshDataPreparer

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

RefreshDataPreparer prepares the RefreshData request.

func (CostClient) RefreshDataResponder

func (client CostClient) RefreshDataResponder(resp *http.Response) (result autorest.Response, err error)

RefreshDataResponder handles the response to the RefreshData request. The method always closes the http.Response Body.

func (CostClient) RefreshDataSender

func (client CostClient) RefreshDataSender(req *http.Request) (*http.Response, error)

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

type CostInsight

type CostInsight struct {
	autorest.Response      `json:"-"`
	*CostInsightProperties `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"`
}

CostInsight is

type CostInsightClient

type CostInsightClient struct {
	ManagementClient
}

CostInsightClient is the azure DevTest Labs REST API version 2015-05-21-preview.

func NewCostInsightClient

func NewCostInsightClient(subscriptionID string) CostInsightClient

NewCostInsightClient creates an instance of the CostInsightClient client.

func NewCostInsightClientWithBaseURI

func NewCostInsightClientWithBaseURI(baseURI string, subscriptionID string) CostInsightClient

NewCostInsightClientWithBaseURI creates an instance of the CostInsightClient client.

func (CostInsightClient) GetResource

func (client CostInsightClient) GetResource(resourceGroupName string, labName string, name string) (result CostInsight, err error)

GetResource get cost insight.

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

func (CostInsightClient) GetResourcePreparer

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

GetResourcePreparer prepares the GetResource request.

func (CostInsightClient) GetResourceResponder

func (client CostInsightClient) GetResourceResponder(resp *http.Response) (result CostInsight, err error)

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

func (CostInsightClient) GetResourceSender

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

func (client CostInsightClient) List(resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationCostInsight, err error)

List list cost insights.

resourceGroupName is the name of the resource group. labName is the name of the lab. filter is the filter to apply on the operation.

func (CostInsightClient) ListComplete

func (client CostInsightClient) ListComplete(resourceGroupName string, labName string, filter string, top *int32, orderBy string, cancel <-chan struct{}) (<-chan CostInsight, <-chan error)

ListComplete gets all elements from the list without paging.

func (CostInsightClient) ListNextResults

func (client CostInsightClient) ListNextResults(lastResults ResponseWithContinuationCostInsight) (result ResponseWithContinuationCostInsight, err error)

ListNextResults retrieves the next set of results, if any.

func (CostInsightClient) ListPreparer

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

ListPreparer prepares the List request.

func (CostInsightClient) ListResponder

func (client CostInsightClient) ListResponder(resp *http.Response) (result ResponseWithContinuationCostInsight, err error)

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

func (CostInsightClient) ListSender

func (client CostInsightClient) 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 (CostInsightClient) RefreshData

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

RefreshData refresh Lab's Cost Insight Data. 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 cost insight.

func (CostInsightClient) RefreshDataPreparer

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

RefreshDataPreparer prepares the RefreshData request.

func (CostInsightClient) RefreshDataResponder

func (client CostInsightClient) RefreshDataResponder(resp *http.Response) (result autorest.Response, err error)

RefreshDataResponder handles the response to the RefreshData request. The method always closes the http.Response Body.

func (CostInsightClient) RefreshDataSender

func (client CostInsightClient) RefreshDataSender(req *http.Request) (*http.Response, error)

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

type CostInsightProperties

type CostInsightProperties struct {
	CurrencyCode      *string             `json:"currencyCode,omitempty"`
	VMCosts           *[]VMCostProperties `json:"vmCosts,omitempty"`
	ProvisioningState *string             `json:"provisioningState,omitempty"`
}

CostInsightProperties is

type CostPerDayProperties

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

CostPerDayProperties is the per-day properties of a cost item.

type CostProperties

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

CostProperties is properties of a cost item.

type CostPropertyType

type CostPropertyType string

CostPropertyType enumerates the values for cost property type.

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

type CustomImage

type CustomImage struct {
	autorest.Response      `json:"-"`
	*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 CustomImageClient

type CustomImageClient struct {
	ManagementClient
}

CustomImageClient is the azure DevTest Labs REST API version 2015-05-21-preview.

func NewCustomImageClient

func NewCustomImageClient(subscriptionID string) CustomImageClient

NewCustomImageClient creates an instance of the CustomImageClient client.

func NewCustomImageClientWithBaseURI

func NewCustomImageClientWithBaseURI(baseURI string, subscriptionID string) CustomImageClient

NewCustomImageClientWithBaseURI creates an instance of the CustomImageClient client.

func (CustomImageClient) CreateOrUpdateResource

func (client CustomImageClient) CreateOrUpdateResource(resourceGroupName string, labName string, name string, customImage CustomImage, cancel <-chan struct{}) (<-chan CustomImage, <-chan 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 (CustomImageClient) CreateOrUpdateResourcePreparer

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

CreateOrUpdateResourcePreparer prepares the CreateOrUpdateResource request.

func (CustomImageClient) CreateOrUpdateResourceResponder

func (client CustomImageClient) CreateOrUpdateResourceResponder(resp *http.Response) (result CustomImage, err error)

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

func (CustomImageClient) CreateOrUpdateResourceSender

func (client CustomImageClient) 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 (CustomImageClient) DeleteResource

func (client CustomImageClient) DeleteResource(resourceGroupName string, labName string, name string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan 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 (CustomImageClient) DeleteResourcePreparer

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

DeleteResourcePreparer prepares the DeleteResource request.

func (CustomImageClient) DeleteResourceResponder

func (client CustomImageClient) 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 (CustomImageClient) DeleteResourceSender

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

func (client CustomImageClient) 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 (CustomImageClient) GetResourcePreparer

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

GetResourcePreparer prepares the GetResource request.

func (CustomImageClient) GetResourceResponder

func (client CustomImageClient) 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 (CustomImageClient) GetResourceSender

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

func (client CustomImageClient) List(resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationCustomImage, err error)

List list custom images.

resourceGroupName is the name of the resource group. labName is the name of the lab. filter is the filter to apply on the operation.

func (CustomImageClient) ListComplete

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

ListComplete gets all elements from the list without paging.

func (CustomImageClient) ListNextResults

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

ListNextResults retrieves the next set of results, if any.

func (CustomImageClient) ListPreparer

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

ListPreparer prepares the List request.

func (CustomImageClient) ListResponder

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

func (client CustomImageClient) 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"`
	OsType            CustomImageOsType            `json:"osType,omitempty"`
	Author            *string                      `json:"author,omitempty"`
	CreationDate      *date.Time                   `json:"creationDate,omitempty"`
	ProvisioningState *string                      `json:"provisioningState,omitempty"`
}

CustomImageProperties is properties of a custom image.

type CustomImagePropertiesCustom

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

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

type CustomImagePropertiesFromVM

type CustomImagePropertiesFromVM struct {
	SourceVMID    *string        `json:"sourceVmId,omitempty"`
	SysPrep       *bool          `json:"sysPrep,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:"-"`
	*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 FormulaClient

type FormulaClient struct {
	ManagementClient
}

FormulaClient is the azure DevTest Labs REST API version 2015-05-21-preview.

func NewFormulaClient

func NewFormulaClient(subscriptionID string) FormulaClient

NewFormulaClient creates an instance of the FormulaClient client.

func NewFormulaClientWithBaseURI

func NewFormulaClientWithBaseURI(baseURI string, subscriptionID string) FormulaClient

NewFormulaClientWithBaseURI creates an instance of the FormulaClient client.

func (FormulaClient) CreateOrUpdateResource

func (client FormulaClient) CreateOrUpdateResource(resourceGroupName string, labName string, name string, formula Formula, cancel <-chan struct{}) (<-chan Formula, <-chan 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 (FormulaClient) CreateOrUpdateResourcePreparer

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

CreateOrUpdateResourcePreparer prepares the CreateOrUpdateResource request.

func (FormulaClient) CreateOrUpdateResourceResponder

func (client FormulaClient) CreateOrUpdateResourceResponder(resp *http.Response) (result Formula, err error)

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

func (FormulaClient) CreateOrUpdateResourceSender

func (client FormulaClient) 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 (FormulaClient) DeleteResource

func (client FormulaClient) 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 (FormulaClient) DeleteResourcePreparer

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

DeleteResourcePreparer prepares the DeleteResource request.

func (FormulaClient) DeleteResourceResponder

func (client FormulaClient) 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 (FormulaClient) DeleteResourceSender

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

func (client FormulaClient) 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 (FormulaClient) GetResourcePreparer

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

GetResourcePreparer prepares the GetResource request.

func (FormulaClient) GetResourceResponder

func (client FormulaClient) 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 (FormulaClient) GetResourceSender

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

func (client FormulaClient) List(resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationFormula, err error)

List list formulas.

resourceGroupName is the name of the resource group. labName is the name of the lab. filter is the filter to apply on the operation.

func (FormulaClient) ListComplete

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

ListComplete gets all elements from the list without paging.

func (FormulaClient) ListNextResults

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

ListNextResults retrieves the next set of results, if any.

func (FormulaClient) ListPreparer

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

ListPreparer prepares the List request.

func (FormulaClient) ListResponder

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

func (client FormulaClient) 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"`
}

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 {
	*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 GalleryImageClient

type GalleryImageClient struct {
	ManagementClient
}

GalleryImageClient is the azure DevTest Labs REST API version 2015-05-21-preview.

func NewGalleryImageClient

func NewGalleryImageClient(subscriptionID string) GalleryImageClient

NewGalleryImageClient creates an instance of the GalleryImageClient client.

func NewGalleryImageClientWithBaseURI

func NewGalleryImageClientWithBaseURI(baseURI string, subscriptionID string) GalleryImageClient

NewGalleryImageClientWithBaseURI creates an instance of the GalleryImageClient client.

func (GalleryImageClient) List

func (client GalleryImageClient) List(resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationGalleryImage, err error)

List list gallery images.

resourceGroupName is the name of the resource group. labName is the name of the lab. filter is the filter to apply on the operation.

func (GalleryImageClient) ListComplete

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

ListComplete gets all elements from the list without paging.

func (GalleryImageClient) ListNextResults

ListNextResults retrieves the next set of results, if any.

func (GalleryImageClient) ListPreparer

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

ListPreparer prepares the List request.

func (GalleryImageClient) ListResponder

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

func (client GalleryImageClient) 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:"-"`
	*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 LabClient

type LabClient struct {
	ManagementClient
}

LabClient is the azure DevTest Labs REST API version 2015-05-21-preview.

func NewLabClient

func NewLabClient(subscriptionID string) LabClient

NewLabClient creates an instance of the LabClient client.

func NewLabClientWithBaseURI

func NewLabClientWithBaseURI(baseURI string, subscriptionID string) LabClient

NewLabClientWithBaseURI creates an instance of the LabClient client.

func (LabClient) CreateEnvironment

func (client LabClient) CreateEnvironment(resourceGroupName string, name string, labVirtualMachine LabVirtualMachine, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

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

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

func (LabClient) CreateEnvironmentPreparer

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

CreateEnvironmentPreparer prepares the CreateEnvironment request.

func (LabClient) CreateEnvironmentResponder

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

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

func (client LabClient) CreateOrUpdateResource(resourceGroupName string, name string, lab Lab, cancel <-chan struct{}) (<-chan Lab, <-chan 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 (LabClient) CreateOrUpdateResourcePreparer

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

CreateOrUpdateResourcePreparer prepares the CreateOrUpdateResource request.

func (LabClient) CreateOrUpdateResourceResponder

func (client LabClient) CreateOrUpdateResourceResponder(resp *http.Response) (result Lab, err error)

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

func (LabClient) CreateOrUpdateResourceSender

func (client LabClient) 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 (LabClient) DeleteResource

func (client LabClient) DeleteResource(resourceGroupName string, name string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan 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 (LabClient) DeleteResourcePreparer

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

DeleteResourcePreparer prepares the DeleteResource request.

func (LabClient) DeleteResourceResponder

func (client LabClient) 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 (LabClient) DeleteResourceSender

func (client LabClient) 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 (LabClient) GenerateUploadURI

func (client LabClient) 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 (LabClient) GenerateUploadURIPreparer

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

GenerateUploadURIPreparer prepares the GenerateUploadURI request.

func (LabClient) GenerateUploadURIResponder

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

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

func (client LabClient) 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 (LabClient) GetResourcePreparer

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

GetResourcePreparer prepares the GetResource request.

func (LabClient) GetResourceResponder

func (client LabClient) 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 (LabClient) GetResourceSender

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

func (client LabClient) ListByResourceGroup(resourceGroupName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationLab, err error)

ListByResourceGroup list labs.

resourceGroupName is the name of the resource group. filter is the filter to apply on the operation.

func (LabClient) ListByResourceGroupComplete

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

ListByResourceGroupComplete gets all elements from the list without paging.

func (LabClient) ListByResourceGroupNextResults

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

ListByResourceGroupNextResults retrieves the next set of results, if any.

func (LabClient) ListByResourceGroupPreparer

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (LabClient) ListByResourceGroupResponder

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

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

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

ListBySubscription list labs.

filter is the filter to apply on the operation.

func (LabClient) ListBySubscriptionComplete

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

ListBySubscriptionComplete gets all elements from the list without paging.

func (LabClient) ListBySubscriptionNextResults

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

ListBySubscriptionNextResults retrieves the next set of results, if any.

func (LabClient) ListBySubscriptionPreparer

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

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (LabClient) ListBySubscriptionResponder

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

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

func (client LabClient) 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 (LabClient) ListVhdsComplete

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

ListVhdsComplete gets all elements from the list without paging.

func (LabClient) ListVhdsNextResults

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

ListVhdsNextResults retrieves the next set of results, if any.

func (LabClient) ListVhdsPreparer

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

ListVhdsPreparer prepares the ListVhds request.

func (LabClient) ListVhdsResponder

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

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

func (client LabClient) 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 (LabClient) PatchResourcePreparer

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

PatchResourcePreparer prepares the PatchResource request.

func (LabClient) PatchResourceResponder

func (client LabClient) 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 (LabClient) PatchResourceSender

func (client LabClient) 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"`
	StorageAccounts         *[]string      `json:"storageAccounts,omitempty"`
	VaultName               *string        `json:"vaultName,omitempty"`
	LabStorageType          LabStorageType `json:"labStorageType,omitempty"`
	DefaultVirtualNetworkID *string        `json:"defaultVirtualNetworkId,omitempty"`
	CreatedDate             *date.Time     `json:"createdDate,omitempty"`
	ProvisioningState       *string        `json:"provisioningState,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:"-"`
	*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"`
}

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
	SubscriptionID string
}

ManagementClient is the base client for Dtl.

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:"-"`
	*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 PolicyClient

type PolicyClient struct {
	ManagementClient
}

PolicyClient is the azure DevTest Labs REST API version 2015-05-21-preview.

func NewPolicyClient

func NewPolicyClient(subscriptionID string) PolicyClient

NewPolicyClient creates an instance of the PolicyClient client.

func NewPolicyClientWithBaseURI

func NewPolicyClientWithBaseURI(baseURI string, subscriptionID string) PolicyClient

NewPolicyClientWithBaseURI creates an instance of the PolicyClient client.

func (PolicyClient) CreateOrUpdateResource

func (client PolicyClient) 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 (PolicyClient) CreateOrUpdateResourcePreparer

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

CreateOrUpdateResourcePreparer prepares the CreateOrUpdateResource request.

func (PolicyClient) CreateOrUpdateResourceResponder

func (client PolicyClient) 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 (PolicyClient) CreateOrUpdateResourceSender

func (client PolicyClient) 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 (PolicyClient) DeleteResource

func (client PolicyClient) 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 (PolicyClient) DeleteResourcePreparer

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

DeleteResourcePreparer prepares the DeleteResource request.

func (PolicyClient) DeleteResourceResponder

func (client PolicyClient) 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 (PolicyClient) DeleteResourceSender

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

func (client PolicyClient) 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 (PolicyClient) GetResourcePreparer

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

GetResourcePreparer prepares the GetResource request.

func (PolicyClient) GetResourceResponder

func (client PolicyClient) 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 (PolicyClient) GetResourceSender

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

func (client PolicyClient) List(resourceGroupName string, labName string, policySetName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationPolicy, err error)

List list policies.

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.

func (PolicyClient) ListComplete

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

ListComplete gets all elements from the list without paging.

func (PolicyClient) ListNextResults

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

ListNextResults retrieves the next set of results, if any.

func (PolicyClient) ListPreparer

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

ListPreparer prepares the List request.

func (PolicyClient) ListResponder

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

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

func (client PolicyClient) 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 (PolicyClient) PatchResourcePreparer

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

PatchResourcePreparer prepares the PatchResource request.

func (PolicyClient) PatchResourceResponder

func (client PolicyClient) 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 (PolicyClient) PatchResourceSender

func (client PolicyClient) 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 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 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"`
}

PolicyProperties is properties of a Policy.

type PolicySetClient

type PolicySetClient struct {
	ManagementClient
}

PolicySetClient is the azure DevTest Labs REST API version 2015-05-21-preview.

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

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

ResponseWithContinuationCost is the response of a list operation.

func (ResponseWithContinuationCost) ResponseWithContinuationCostPreparer

func (client ResponseWithContinuationCost) ResponseWithContinuationCostPreparer() (*http.Request, error)

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

type ResponseWithContinuationCostInsight

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

ResponseWithContinuationCostInsight is the response of a list operation.

func (ResponseWithContinuationCostInsight) ResponseWithContinuationCostInsightPreparer

func (client ResponseWithContinuationCostInsight) ResponseWithContinuationCostInsightPreparer() (*http.Request, error)

ResponseWithContinuationCostInsightPreparer 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:"-"`
	*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 ScheduleClient

type ScheduleClient struct {
	ManagementClient
}

ScheduleClient is the azure DevTest Labs REST API version 2015-05-21-preview.

func NewScheduleClient

func NewScheduleClient(subscriptionID string) ScheduleClient

NewScheduleClient creates an instance of the ScheduleClient client.

func NewScheduleClientWithBaseURI

func NewScheduleClientWithBaseURI(baseURI string, subscriptionID string) ScheduleClient

NewScheduleClientWithBaseURI creates an instance of the ScheduleClient client.

func (ScheduleClient) CreateOrUpdateResource

func (client ScheduleClient) CreateOrUpdateResource(resourceGroupName string, labName string, name string, schedule Schedule, cancel <-chan struct{}) (<-chan Schedule, <-chan error)

CreateOrUpdateResource create or replace an existing 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 (ScheduleClient) CreateOrUpdateResourcePreparer

func (client ScheduleClient) CreateOrUpdateResourcePreparer(resourceGroupName string, labName string, name string, schedule Schedule, cancel <-chan struct{}) (*http.Request, error)

CreateOrUpdateResourcePreparer prepares the CreateOrUpdateResource request.

func (ScheduleClient) CreateOrUpdateResourceResponder

func (client ScheduleClient) 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 (ScheduleClient) CreateOrUpdateResourceSender

func (client ScheduleClient) 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 (ScheduleClient) DeleteResource

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

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

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

DeleteResourcePreparer prepares the DeleteResource request.

func (ScheduleClient) DeleteResourceResponder

func (client ScheduleClient) 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 (ScheduleClient) DeleteResourceSender

func (client ScheduleClient) 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 (ScheduleClient) Execute

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

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

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

func (ScheduleClient) ExecutePreparer

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

ExecutePreparer prepares the Execute request.

func (ScheduleClient) ExecuteResponder

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

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

func (client ScheduleClient) 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 (ScheduleClient) GetResourcePreparer

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

GetResourcePreparer prepares the GetResource request.

func (ScheduleClient) GetResourceResponder

func (client ScheduleClient) 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 (ScheduleClient) GetResourceSender

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

func (client ScheduleClient) List(resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationSchedule, err error)

List list schedules.

resourceGroupName is the name of the resource group. labName is the name of the lab. filter is the filter to apply on the operation.

func (ScheduleClient) ListComplete

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

ListComplete gets all elements from the list without paging.

func (ScheduleClient) ListNextResults

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

ListNextResults retrieves the next set of results, if any.

func (ScheduleClient) ListPreparer

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

ListPreparer prepares the List request.

func (ScheduleClient) ListResponder

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

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

func (client ScheduleClient) 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 (ScheduleClient) PatchResourcePreparer

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

PatchResourcePreparer prepares the PatchResource request.

func (ScheduleClient) PatchResourceResponder

func (client ScheduleClient) 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 (ScheduleClient) PatchResourceSender

func (client ScheduleClient) 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          TaskType     `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"`
}

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 TaskType

type TaskType string

TaskType enumerates the values for task type.

const (
	// LabBillingTask specifies the lab billing task state for task type.
	LabBillingTask TaskType = "LabBillingTask"
	// LabVmsShutdownTask specifies the lab vms shutdown task state for task type.
	LabVmsShutdownTask TaskType = "LabVmsShutdownTask"
	// LabVmsStartupTask specifies the lab vms startup task state for task type.
	LabVmsStartupTask TaskType = "LabVmsStartupTask"
)

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 VMCostProperties

type VMCostProperties struct {
	Name              *string  `json:"name,omitempty"`
	ResourceGroupName *string  `json:"resourceGroupName,omitempty"`
	Cost              *float64 `json:"cost,omitempty"`
}

VMCostProperties is

type VirtualMachineClient

type VirtualMachineClient struct {
	ManagementClient
}

VirtualMachineClient is the azure DevTest Labs REST API version 2015-05-21-preview.

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{}) (<-chan autorest.Response, <-chan 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{}) (<-chan LabVirtualMachine, <-chan 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 LabVirtualMachine, 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{}) (<-chan autorest.Response, <-chan 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.

resourceGroupName is the name of the resource group. labName is the name of the lab. filter is the filter to apply on the operation.

func (VirtualMachineClient) ListComplete

func (client VirtualMachineClient) ListComplete(resourceGroupName string, labName string, filter string, top *int32, orderBy string, cancel <-chan struct{}) (<-chan LabVirtualMachine, <-chan error)

ListComplete gets all elements from the list without paging.

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{}) (<-chan autorest.Response, <-chan 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{}) (<-chan autorest.Response, <-chan 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:"-"`
	*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 VirtualNetworkClient

type VirtualNetworkClient struct {
	ManagementClient
}

VirtualNetworkClient is the azure DevTest Labs REST API version 2015-05-21-preview.

func NewVirtualNetworkClient

func NewVirtualNetworkClient(subscriptionID string) VirtualNetworkClient

NewVirtualNetworkClient creates an instance of the VirtualNetworkClient client.

func NewVirtualNetworkClientWithBaseURI

func NewVirtualNetworkClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkClient

NewVirtualNetworkClientWithBaseURI creates an instance of the VirtualNetworkClient client.

func (VirtualNetworkClient) CreateOrUpdateResource

func (client VirtualNetworkClient) CreateOrUpdateResource(resourceGroupName string, labName string, name string, virtualNetwork VirtualNetwork, cancel <-chan struct{}) (<-chan VirtualNetwork, <-chan 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 (VirtualNetworkClient) CreateOrUpdateResourcePreparer

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

CreateOrUpdateResourcePreparer prepares the CreateOrUpdateResource request.

func (VirtualNetworkClient) CreateOrUpdateResourceResponder

func (client VirtualNetworkClient) CreateOrUpdateResourceResponder(resp *http.Response) (result VirtualNetwork, err error)

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

func (VirtualNetworkClient) CreateOrUpdateResourceSender

func (client VirtualNetworkClient) 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 (VirtualNetworkClient) DeleteResource

func (client VirtualNetworkClient) DeleteResource(resourceGroupName string, labName string, name string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan 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 (VirtualNetworkClient) DeleteResourcePreparer

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

DeleteResourcePreparer prepares the DeleteResource request.

func (VirtualNetworkClient) DeleteResourceResponder

func (client VirtualNetworkClient) 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 (VirtualNetworkClient) DeleteResourceSender

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

func (client VirtualNetworkClient) 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 (VirtualNetworkClient) GetResourcePreparer

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

GetResourcePreparer prepares the GetResource request.

func (VirtualNetworkClient) GetResourceResponder

func (client VirtualNetworkClient) 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 (VirtualNetworkClient) GetResourceSender

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

func (client VirtualNetworkClient) List(resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationVirtualNetwork, err error)

List list virtual networks.

resourceGroupName is the name of the resource group. labName is the name of the lab. filter is the filter to apply on the operation.

func (VirtualNetworkClient) ListComplete

func (client VirtualNetworkClient) ListComplete(resourceGroupName string, labName string, filter string, top *int32, orderBy string, cancel <-chan struct{}) (<-chan VirtualNetwork, <-chan error)

ListComplete gets all elements from the list without paging.

func (VirtualNetworkClient) ListNextResults

ListNextResults retrieves the next set of results, if any.

func (VirtualNetworkClient) ListPreparer

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

ListPreparer prepares the List request.

func (VirtualNetworkClient) ListResponder

func (client VirtualNetworkClient) ListResponder(resp *http.Response) (result ResponseWithContinuationVirtualNetwork, err error)

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

func (VirtualNetworkClient) ListSender

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

func (client VirtualNetworkClient) 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 (VirtualNetworkClient) PatchResourcePreparer

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

PatchResourcePreparer prepares the PatchResource request.

func (VirtualNetworkClient) PatchResourceResponder

func (client VirtualNetworkClient) 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 (VirtualNetworkClient) PatchResourceSender

func (client VirtualNetworkClient) 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"`
}

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