dtl

package
v66.0.0-wiz01+incompat... Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Deprecated: Please note, this package has been deprecated. A replacement package is available github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devtestlabs/armdevtestlabs(https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devtestlabs/armdevtestlabs). We strongly encourage you to upgrade to continue receiving updates. See [Migration Guide](https://aka.ms/azsdk/golang/t2/migration) for guidance on upgrading. Refer to our [deprecation policy](https://azure.github.io/azure-sdk/policies_support.html) for more details.

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 - The list of artifacts to apply.
	Artifacts *[]ArtifactInstallProperties `json:"artifacts,omitempty"`
}

ApplyArtifactsRequest request body for applying artifacts to a virtual machine.

type ArmTemplateInfo

type ArmTemplateInfo struct {
	autorest.Response `json:"-"`
	// Template - The template's contents.
	Template interface{} `json:"template,omitempty"`
	// Parameters - The parameters of the ARM template.
	Parameters interface{} `json:"parameters,omitempty"`
}

ArmTemplateInfo information about a generated ARM template.

type Artifact

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

Artifact an artifact.

func (Artifact) MarshalJSON

func (a Artifact) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Artifact.

func (*Artifact) UnmarshalJSON

func (a *Artifact) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Artifact struct.

type ArtifactClient

type ArtifactClient struct {
	BaseClient
}

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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ArtifactClient) GenerateArmTemplate

func (client ArtifactClient) GenerateArmTemplate(ctx context.Context, 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. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. artifactSourceName - the name of the artifact source. name - the name of the artifact.

func (ArtifactClient) GenerateArmTemplatePreparer

func (client ArtifactClient) GenerateArmTemplatePreparer(ctx context.Context, 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(ctx context.Context, resourceGroupName string, labName string, artifactSourceName string, name string) (result Artifact, err error)

GetResource get artifact. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. artifactSourceName - the name of the artifact source. name - the name of the artifact.

func (ArtifactClient) GetResourcePreparer

func (client ArtifactClient) GetResourcePreparer(ctx context.Context, 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(ctx context.Context, resourceGroupName string, labName string, artifactSourceName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationArtifactPage, err error)

List list artifacts. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. artifactSourceName - the name of the artifact source. filter - the filter to apply on the operation.

func (ArtifactClient) ListComplete

func (client ArtifactClient) ListComplete(ctx context.Context, resourceGroupName string, labName string, artifactSourceName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationArtifactIterator, err error)

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

func (ArtifactClient) ListPreparer

func (client ArtifactClient) ListPreparer(ctx context.Context, 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 - The deployment status of the artifact.
	DeploymentStatus *string `json:"deploymentStatus,omitempty"`
	// ArtifactsApplied - The total count of the artifacts that were successfully applied.
	ArtifactsApplied *int32 `json:"artifactsApplied,omitempty"`
	// TotalArtifacts - The total count of the artifacts that were tentatively applied.
	TotalArtifacts *int32 `json:"totalArtifacts,omitempty"`
}

ArtifactDeploymentStatusProperties properties of an artifact deployment.

type ArtifactInstallProperties

type ArtifactInstallProperties struct {
	// ArtifactID - The artifact's identifier.
	ArtifactID *string `json:"artifactId,omitempty"`
	// Parameters - The parameters of the artifact.
	Parameters *[]ArtifactParameterProperties `json:"parameters,omitempty"`
}

ArtifactInstallProperties properties of an artifact.

type ArtifactParameterProperties

type ArtifactParameterProperties struct {
	// Name - The name of the artifact parameter.
	Name *string `json:"name,omitempty"`
	// Value - The value of the artifact parameter.
	Value *string `json:"value,omitempty"`
}

ArtifactParameterProperties properties of an artifact parameter.

type ArtifactProperties

type ArtifactProperties struct {
	// Title - The title of the artifact.
	Title *string `json:"title,omitempty"`
	// Description - The description of the artifact.
	Description *string `json:"description,omitempty"`
	// FilePath - The file path of the artifact.
	FilePath *string `json:"filePath,omitempty"`
	// Icon - The icon of the artifact.
	Icon *string `json:"icon,omitempty"`
	// TargetOsType - Gets or sets the type of the target os.
	TargetOsType *string `json:"targetOsType,omitempty"`
	// Parameters - The parameters of the artifact.
	Parameters interface{} `json:"parameters,omitempty"`
}

ArtifactProperties properties of an artifact.

type ArtifactSource

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

ArtifactSource properties of an artifact source.

func (ArtifactSource) MarshalJSON

func (as ArtifactSource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ArtifactSource.

func (*ArtifactSource) UnmarshalJSON

func (as *ArtifactSource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ArtifactSource struct.

type ArtifactSourceClient

type ArtifactSourceClient struct {
	BaseClient
}

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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ArtifactSourceClient) CreateOrUpdateResource

func (client ArtifactSourceClient) CreateOrUpdateResource(ctx context.Context, resourceGroupName string, labName string, name string, artifactSource ArtifactSource) (result ArtifactSource, err error)

CreateOrUpdateResource create or replace an existing artifact source. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the artifact source.

func (ArtifactSourceClient) CreateOrUpdateResourcePreparer

func (client ArtifactSourceClient) CreateOrUpdateResourcePreparer(ctx context.Context, 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(ctx context.Context, resourceGroupName string, labName string, name string) (result autorest.Response, err error)

DeleteResource delete artifact source. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the artifact source.

func (ArtifactSourceClient) DeleteResourcePreparer

func (client ArtifactSourceClient) DeleteResourcePreparer(ctx context.Context, 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(ctx context.Context, resourceGroupName string, labName string, name string) (result ArtifactSource, err error)

GetResource get artifact source. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the artifact source.

func (ArtifactSourceClient) GetResourcePreparer

func (client ArtifactSourceClient) GetResourcePreparer(ctx context.Context, 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(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationArtifactSourcePage, err error)

List list artifact sources. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. filter - the filter to apply on the operation.

func (ArtifactSourceClient) ListComplete

func (client ArtifactSourceClient) ListComplete(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationArtifactSourceIterator, err error)

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

func (ArtifactSourceClient) ListPreparer

func (client ArtifactSourceClient) ListPreparer(ctx context.Context, 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(ctx context.Context, resourceGroupName string, labName string, name string, artifactSource ArtifactSource) (result ArtifactSource, err error)

PatchResource modify properties of artifact sources. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the artifact source.

func (ArtifactSourceClient) PatchResourcePreparer

func (client ArtifactSourceClient) PatchResourcePreparer(ctx context.Context, 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 - The display name of the artifact source.
	DisplayName *string `json:"displayName,omitempty"`
	// URI - The URI of the artifact source.
	URI *string `json:"uri,omitempty"`
	// SourceType - The type of the artifact source. Possible values include: 'VsoGit', 'GitHub'
	SourceType SourceControlType `json:"sourceType,omitempty"`
	// FolderPath - The folder path of the artifact source.
	FolderPath *string `json:"folderPath,omitempty"`
	// BranchRef - The branch reference of the artifact source.
	BranchRef *string `json:"branchRef,omitempty"`
	// SecurityToken - The security token of the artifact source.
	SecurityToken *string `json:"securityToken,omitempty"`
	// Status - The status of the artifact source. Possible values include: 'Enabled', 'Disabled'
	Status EnableStatus `json:"status,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
}

ArtifactSourceProperties properties of an artifact source.

type BaseClient

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

BaseClient is the base client for Dtl.

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

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

type CloudError

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

CloudError ...

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

type Cost

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

Cost a cost item.

func (Cost) MarshalJSON

func (c Cost) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Cost.

func (*Cost) UnmarshalJSON

func (c *Cost) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Cost struct.

type CostClient

type CostClient struct {
	BaseClient
}

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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (CostClient) GetResource

func (client CostClient) GetResource(ctx context.Context, resourceGroupName string, labName string, name string) (result Cost, err error)

GetResource get cost. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the cost.

func (CostClient) GetResourcePreparer

func (client CostClient) GetResourcePreparer(ctx context.Context, 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(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationCostPage, err error)

List list costs. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. filter - the filter to apply on the operation.

func (CostClient) ListComplete

func (client CostClient) ListComplete(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationCostIterator, err error)

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

func (CostClient) ListPreparer

func (client CostClient) ListPreparer(ctx context.Context, 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(ctx context.Context, resourceGroupName string, labName string, name string) (result CostRefreshDataFuture, err error)

RefreshData refresh Lab's Cost Data. This operation can take a while to complete. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the cost.

func (CostClient) RefreshDataPreparer

func (client CostClient) RefreshDataPreparer(ctx context.Context, resourceGroupName string, labName string, name string) (*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) (future CostRefreshDataFuture, err 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 - The properties of the resource.
	*CostInsightProperties `json:"properties,omitempty"`
	// ID - The identifier of the resource.
	ID *string `json:"id,omitempty"`
	// Name - The name of the resource.
	Name *string `json:"name,omitempty"`
	// Type - The type of the resource.
	Type *string `json:"type,omitempty"`
	// Location - The location of the resource.
	Location *string `json:"location,omitempty"`
	// Tags - The tags of the resource.
	Tags map[string]*string `json:"tags"`
}

CostInsight ...

func (CostInsight) MarshalJSON

func (ci CostInsight) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CostInsight.

func (*CostInsight) UnmarshalJSON

func (ci *CostInsight) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for CostInsight struct.

type CostInsightClient

type CostInsightClient struct {
	BaseClient
}

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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (CostInsightClient) GetResource

func (client CostInsightClient) GetResource(ctx context.Context, resourceGroupName string, labName string, name string) (result CostInsight, err error)

GetResource get cost insight. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the cost insight.

func (CostInsightClient) GetResourcePreparer

func (client CostInsightClient) GetResourcePreparer(ctx context.Context, 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(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationCostInsightPage, err error)

List list cost insights. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. filter - the filter to apply on the operation.

func (CostInsightClient) ListComplete

func (client CostInsightClient) ListComplete(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationCostInsightIterator, err error)

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

func (CostInsightClient) ListPreparer

func (client CostInsightClient) ListPreparer(ctx context.Context, 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(ctx context.Context, resourceGroupName string, labName string, name string) (result CostInsightRefreshDataFuture, err error)

RefreshData refresh Lab's Cost Insight Data. This operation can take a while to complete. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the cost insight.

func (CostInsightClient) RefreshDataPreparer

func (client CostInsightClient) RefreshDataPreparer(ctx context.Context, resourceGroupName string, labName string, name string) (*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) (future CostInsightRefreshDataFuture, err 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 - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
}

CostInsightProperties ...

type CostInsightRefreshDataFuture

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

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

func (*CostInsightRefreshDataFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type CostPerDayProperties

type CostPerDayProperties struct {
	// Date - The date of the cost item.
	Date *date.Time `json:"date,omitempty"`
	// Cost - The cost of the cost item.
	Cost *float64 `json:"cost,omitempty"`
	// CostType - The type of the cost. Possible values include: 'Unavailable', 'Reported', 'Projected'
	CostType CostPropertyType `json:"costType,omitempty"`
}

CostPerDayProperties the per-day properties of a cost item.

type CostProperties

type CostProperties struct {
	// CurrencyCode - The currency code of the cost.
	CurrencyCode *string `json:"currencyCode,omitempty"`
	// Costs - The per-day costs items of the cost.
	Costs *[]CostPerDayProperties `json:"costs,omitempty"`
}

CostProperties properties of a cost item.

type CostPropertyType

type CostPropertyType string

CostPropertyType enumerates the values for cost property type.

const (
	// Projected ...
	Projected CostPropertyType = "Projected"
	// Reported ...
	Reported CostPropertyType = "Reported"
	// Unavailable ...
	Unavailable CostPropertyType = "Unavailable"
)

func PossibleCostPropertyTypeValues

func PossibleCostPropertyTypeValues() []CostPropertyType

PossibleCostPropertyTypeValues returns an array of possible values for the CostPropertyType const type.

type CostRefreshDataFuture

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

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

func (*CostRefreshDataFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type CustomImage

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

CustomImage a custom image.

func (CustomImage) MarshalJSON

func (ci CustomImage) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CustomImage.

func (*CustomImage) UnmarshalJSON

func (ci *CustomImage) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for CustomImage struct.

type CustomImageClient

type CustomImageClient struct {
	BaseClient
}

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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (CustomImageClient) CreateOrUpdateResource

func (client CustomImageClient) CreateOrUpdateResource(ctx context.Context, resourceGroupName string, labName string, name string, customImage CustomImage) (result CustomImageCreateOrUpdateResourceFuture, err error)

CreateOrUpdateResource create or replace an existing custom image. This operation can take a while to complete. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the custom image.

func (CustomImageClient) CreateOrUpdateResourcePreparer

func (client CustomImageClient) CreateOrUpdateResourcePreparer(ctx context.Context, resourceGroupName string, labName string, name string, customImage CustomImage) (*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) (future CustomImageCreateOrUpdateResourceFuture, err 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(ctx context.Context, resourceGroupName string, labName string, name string) (result CustomImageDeleteResourceFuture, err error)

DeleteResource delete custom image. This operation can take a while to complete. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the custom image.

func (CustomImageClient) DeleteResourcePreparer

func (client CustomImageClient) DeleteResourcePreparer(ctx context.Context, resourceGroupName string, labName string, name string) (*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) (future CustomImageDeleteResourceFuture, err 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(ctx context.Context, resourceGroupName string, labName string, name string) (result CustomImage, err error)

GetResource get custom image. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the custom image.

func (CustomImageClient) GetResourcePreparer

func (client CustomImageClient) GetResourcePreparer(ctx context.Context, 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(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationCustomImagePage, err error)

List list custom images. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. filter - the filter to apply on the operation.

func (CustomImageClient) ListComplete

func (client CustomImageClient) ListComplete(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationCustomImageIterator, err error)

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

func (CustomImageClient) ListPreparer

func (client CustomImageClient) ListPreparer(ctx context.Context, 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 CustomImageCreateOrUpdateResourceFuture

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

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

func (*CustomImageCreateOrUpdateResourceFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type CustomImageDeleteResourceFuture

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

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

func (*CustomImageDeleteResourceFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type CustomImageOsType

type CustomImageOsType string

CustomImageOsType enumerates the values for custom image os type.

const (
	// Linux ...
	Linux CustomImageOsType = "Linux"
	// None ...
	None CustomImageOsType = "None"
	// Windows ...
	Windows CustomImageOsType = "Windows"
)

func PossibleCustomImageOsTypeValues

func PossibleCustomImageOsTypeValues() []CustomImageOsType

PossibleCustomImageOsTypeValues returns an array of possible values for the CustomImageOsType const type.

type CustomImageProperties

type CustomImageProperties struct {
	VM *CustomImagePropertiesFromVM `json:"vm,omitempty"`
	// Vhd - The VHD from which the image is to be created.
	Vhd *CustomImagePropertiesCustom `json:"vhd,omitempty"`
	// Description - The description of the custom image.
	Description *string `json:"description,omitempty"`
	// OsType - The OS type of the custom image. Possible values include: 'Windows', 'Linux', 'None'
	OsType CustomImageOsType `json:"osType,omitempty"`
	// Author - The author of the custom image.
	Author *string `json:"author,omitempty"`
	// CreationDate - The creation date of the custom image.
	CreationDate *date.Time `json:"creationDate,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
}

CustomImageProperties properties of a custom image.

type CustomImagePropertiesCustom

type CustomImagePropertiesCustom struct {
	// ImageName - The image name.
	ImageName *string `json:"imageName,omitempty"`
	// SysPrep - Indicates whether sysprep has been run on the VHD.
	SysPrep *bool `json:"sysPrep,omitempty"`
}

CustomImagePropertiesCustom properties for creating a custom image from a VHD.

type CustomImagePropertiesFromVM

type CustomImagePropertiesFromVM struct {
	// SourceVMID - The source vm identifier.
	SourceVMID *string `json:"sourceVmId,omitempty"`
	// SysPrep - Indicates whether sysprep has been run on the VHD.
	SysPrep *bool `json:"sysPrep,omitempty"`
	// WindowsOsInfo - The Windows OS information of the VM.
	WindowsOsInfo *WindowsOsInfo `json:"windowsOsInfo,omitempty"`
	// LinuxOsInfo - The Linux OS information of the VM.
	LinuxOsInfo *LinuxOsInfo `json:"linuxOsInfo,omitempty"`
}

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

type DayDetails

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

DayDetails properties of a daily schedule.

type EnableStatus

type EnableStatus string

EnableStatus enumerates the values for enable status.

const (
	// Disabled ...
	Disabled EnableStatus = "Disabled"
	// Enabled ...
	Enabled EnableStatus = "Enabled"
)

func PossibleEnableStatusValues

func PossibleEnableStatusValues() []EnableStatus

PossibleEnableStatusValues returns an array of possible values for the EnableStatus const type.

type EvaluatePoliciesProperties

type EvaluatePoliciesProperties struct {
	// FactName - The fact name.
	FactName *string `json:"factName,omitempty"`
	// FactData - The fact data.
	FactData *string `json:"factData,omitempty"`
	// ValueOffset - The value offset.
	ValueOffset *string `json:"valueOffset,omitempty"`
}

EvaluatePoliciesProperties properties for evaluating a policy set.

type EvaluatePoliciesRequest

type EvaluatePoliciesRequest struct {
	// Policies - Policies to evaluate.
	Policies *[]EvaluatePoliciesProperties `json:"policies,omitempty"`
}

EvaluatePoliciesRequest request body for evaluating a policy set.

type EvaluatePoliciesResponse

type EvaluatePoliciesResponse struct {
	autorest.Response `json:"-"`
	// Results - Results of evaluating a policy set.
	Results *[]PolicySetResult `json:"results,omitempty"`
}

EvaluatePoliciesResponse response body for evaluating a policy set.

type Formula

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

Formula a formula.

func (Formula) MarshalJSON

func (f Formula) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Formula.

func (*Formula) UnmarshalJSON

func (f *Formula) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Formula struct.

type FormulaClient

type FormulaClient struct {
	BaseClient
}

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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (FormulaClient) CreateOrUpdateResource

func (client FormulaClient) CreateOrUpdateResource(ctx context.Context, resourceGroupName string, labName string, name string, formula Formula) (result FormulaCreateOrUpdateResourceFuture, err error)

CreateOrUpdateResource create or replace an existing Formula. This operation can take a while to complete. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the formula.

func (FormulaClient) CreateOrUpdateResourcePreparer

func (client FormulaClient) CreateOrUpdateResourcePreparer(ctx context.Context, resourceGroupName string, labName string, name string, formula Formula) (*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) (future FormulaCreateOrUpdateResourceFuture, err 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(ctx context.Context, resourceGroupName string, labName string, name string) (result autorest.Response, err error)

DeleteResource delete formula. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the formula.

func (FormulaClient) DeleteResourcePreparer

func (client FormulaClient) DeleteResourcePreparer(ctx context.Context, 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(ctx context.Context, resourceGroupName string, labName string, name string) (result Formula, err error)

GetResource get formula. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the formula.

func (FormulaClient) GetResourcePreparer

func (client FormulaClient) GetResourcePreparer(ctx context.Context, 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(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationFormulaPage, err error)

List list formulas. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. filter - the filter to apply on the operation.

func (FormulaClient) ListComplete

func (client FormulaClient) ListComplete(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationFormulaIterator, err error)

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

func (FormulaClient) ListPreparer

func (client FormulaClient) ListPreparer(ctx context.Context, 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 FormulaCreateOrUpdateResourceFuture

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

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

func (*FormulaCreateOrUpdateResourceFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type FormulaProperties

type FormulaProperties struct {
	// Description - The description of the formula.
	Description *string `json:"description,omitempty"`
	// Author - The author of the formula.
	Author *string `json:"author,omitempty"`
	// OsType - The OS type of the formula.
	OsType *string `json:"osType,omitempty"`
	// CreationDate - The creation date of the formula.
	CreationDate *date.Time `json:"creationDate,omitempty"`
	// FormulaContent - The content of the formula.
	FormulaContent *LabVirtualMachine `json:"formulaContent,omitempty"`
	// VM - Information about a VM from which a formula is to be created.
	VM *FormulaPropertiesFromVM `json:"vm,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
}

FormulaProperties properties of a formula.

type FormulaPropertiesFromVM

type FormulaPropertiesFromVM struct {
	// LabVMID - The identifier of the VM from which a formula is to be created.
	LabVMID *string `json:"labVmId,omitempty"`
}

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

type GalleryImage

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

GalleryImage a gallery image.

func (GalleryImage) MarshalJSON

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

MarshalJSON is the custom marshaler for GalleryImage.

func (*GalleryImage) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for GalleryImage struct.

type GalleryImageClient

type GalleryImageClient struct {
	BaseClient
}

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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (GalleryImageClient) List

func (client GalleryImageClient) List(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationGalleryImagePage, err error)

List list gallery images. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. filter - the filter to apply on the operation.

func (GalleryImageClient) ListComplete

func (client GalleryImageClient) ListComplete(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationGalleryImageIterator, err error)

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

func (GalleryImageClient) ListPreparer

func (client GalleryImageClient) ListPreparer(ctx context.Context, 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 - The author of the gallery image.
	Author *string `json:"author,omitempty"`
	// CreatedDate - The creation date of the gallery image.
	CreatedDate *date.Time `json:"createdDate,omitempty"`
	// Description - The description of the gallery image.
	Description *string `json:"description,omitempty"`
	// ImageReference - The image reference of the gallery image.
	ImageReference *GalleryImageReference `json:"imageReference,omitempty"`
	// Icon - The icon of the gallery image.
	Icon *string `json:"icon,omitempty"`
	// Enabled - Indicates whether this gallery image is enabled.
	Enabled *bool `json:"enabled,omitempty"`
}

GalleryImageProperties properties of a gallery image.

type GalleryImageReference

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

GalleryImageReference the reference information for an Azure Marketplace image.

type GenerateArmTemplateRequest

type GenerateArmTemplateRequest struct {
	// VirtualMachineName - The resource name of the virtual machine.
	VirtualMachineName *string `json:"virtualMachineName,omitempty"`
	// Parameters - The parameters of the ARM template.
	Parameters *[]ParameterInfo `json:"parameters,omitempty"`
	// Location - The location of the virtual machine.
	Location *string `json:"location,omitempty"`
}

GenerateArmTemplateRequest parameters for generating an ARM template for deploying artifacts.

type GenerateUploadURIParameter

type GenerateUploadURIParameter struct {
	// BlobName - The blob name of the upload URI.
	BlobName *string `json:"blobName,omitempty"`
}

GenerateUploadURIParameter properties for generating an upload URI.

type GenerateUploadURIResponse

type GenerateUploadURIResponse struct {
	autorest.Response `json:"-"`
	// UploadURI - The upload URI for the VHD.
	UploadURI *string `json:"uploadUri,omitempty"`
}

GenerateUploadURIResponse response body for generating an upload URI.

type HourDetails

type HourDetails struct {
	// Minute - Minutes of the hour the schedule will run.
	Minute *int32 `json:"minute,omitempty"`
}

HourDetails properties of an hourly schedule.

type Lab

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

Lab a lab.

func (Lab) MarshalJSON

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

MarshalJSON is the custom marshaler for Lab.

func (*Lab) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Lab struct.

type LabClient

type LabClient struct {
	BaseClient
}

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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (LabClient) CreateEnvironment

func (client LabClient) CreateEnvironment(ctx context.Context, resourceGroupName string, name string, labVirtualMachine LabVirtualMachine) (result LabCreateEnvironmentFuture, err error)

CreateEnvironment create virtual machines in a Lab. This operation can take a while to complete. Parameters: resourceGroupName - the name of the resource group. name - the name of the lab.

func (LabClient) CreateEnvironmentPreparer

func (client LabClient) CreateEnvironmentPreparer(ctx context.Context, resourceGroupName string, name string, labVirtualMachine LabVirtualMachine) (*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) (future LabCreateEnvironmentFuture, err 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(ctx context.Context, resourceGroupName string, name string, lab Lab) (result LabCreateOrUpdateResourceFuture, err error)

CreateOrUpdateResource create or replace an existing Lab. This operation can take a while to complete. Parameters: resourceGroupName - the name of the resource group. name - the name of the lab.

func (LabClient) CreateOrUpdateResourcePreparer

func (client LabClient) CreateOrUpdateResourcePreparer(ctx context.Context, resourceGroupName string, name string, lab Lab) (*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) (future LabCreateOrUpdateResourceFuture, err 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(ctx context.Context, resourceGroupName string, name string) (result LabDeleteResourceFuture, err error)

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

func (LabClient) DeleteResourcePreparer

func (client LabClient) DeleteResourcePreparer(ctx context.Context, resourceGroupName string, name string) (*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) (future LabDeleteResourceFuture, err 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(ctx context.Context, resourceGroupName string, name string, generateUploadURIParameter GenerateUploadURIParameter) (result GenerateUploadURIResponse, err error)

GenerateUploadURI generate a URI for uploading custom disk images to a Lab. Parameters: resourceGroupName - the name of the resource group. name - the name of the lab.

func (LabClient) GenerateUploadURIPreparer

func (client LabClient) GenerateUploadURIPreparer(ctx context.Context, 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(ctx context.Context, resourceGroupName string, name string) (result Lab, err error)

GetResource get lab. Parameters: resourceGroupName - the name of the resource group. name - the name of the lab.

func (LabClient) GetResourcePreparer

func (client LabClient) GetResourcePreparer(ctx context.Context, 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(ctx context.Context, resourceGroupName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationLabPage, err error)

ListByResourceGroup list labs. Parameters: resourceGroupName - the name of the resource group. filter - the filter to apply on the operation.

func (LabClient) ListByResourceGroupComplete

func (client LabClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationLabIterator, err error)

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

func (LabClient) ListByResourceGroupPreparer

func (client LabClient) ListByResourceGroupPreparer(ctx context.Context, 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(ctx context.Context, filter string, top *int32, orderBy string) (result ResponseWithContinuationLabPage, err error)

ListBySubscription list labs. Parameters: filter - the filter to apply on the operation.

func (LabClient) ListBySubscriptionComplete

func (client LabClient) ListBySubscriptionComplete(ctx context.Context, filter string, top *int32, orderBy string) (result ResponseWithContinuationLabIterator, err error)

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

func (LabClient) ListBySubscriptionPreparer

func (client LabClient) ListBySubscriptionPreparer(ctx context.Context, 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(ctx context.Context, resourceGroupName string, name string) (result ResponseWithContinuationLabVhdPage, err error)

ListVhds list disk images available for custom image creation. Parameters: resourceGroupName - the name of the resource group. name - the name of the lab.

func (LabClient) ListVhdsComplete

func (client LabClient) ListVhdsComplete(ctx context.Context, resourceGroupName string, name string) (result ResponseWithContinuationLabVhdIterator, err error)

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

func (LabClient) ListVhdsPreparer

func (client LabClient) ListVhdsPreparer(ctx context.Context, 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(ctx context.Context, resourceGroupName string, name string, lab Lab) (result Lab, err error)

PatchResource modify properties of labs. Parameters: resourceGroupName - the name of the resource group. name - the name of the lab.

func (LabClient) PatchResourcePreparer

func (client LabClient) PatchResourcePreparer(ctx context.Context, 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 LabCreateEnvironmentFuture

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

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

func (*LabCreateEnvironmentFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type LabCreateOrUpdateResourceFuture

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

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

func (*LabCreateOrUpdateResourceFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type LabDeleteResourceFuture

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

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

func (*LabDeleteResourceFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type LabProperties

type LabProperties struct {
	// DefaultStorageAccount - The lab's default storage account.
	DefaultStorageAccount *string `json:"defaultStorageAccount,omitempty"`
	// ArtifactsStorageAccount - The artifact storage account of the lab.
	ArtifactsStorageAccount *string `json:"artifactsStorageAccount,omitempty"`
	// StorageAccounts - The storage accounts of the lab.
	StorageAccounts *[]string `json:"storageAccounts,omitempty"`
	// VaultName - The name of the key vault of the lab.
	VaultName *string `json:"vaultName,omitempty"`
	// LabStorageType - The type of the lab storage. Possible values include: 'Standard', 'Premium'
	LabStorageType LabStorageType `json:"labStorageType,omitempty"`
	// DefaultVirtualNetworkID - The default virtual network identifier of the lab.
	DefaultVirtualNetworkID *string `json:"defaultVirtualNetworkId,omitempty"`
	// CreatedDate - The creation date of the lab.
	CreatedDate *date.Time `json:"createdDate,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
}

LabProperties properties of a lab.

type LabStorageType

type LabStorageType string

LabStorageType enumerates the values for lab storage type.

const (
	// Premium ...
	Premium LabStorageType = "Premium"
	// Standard ...
	Standard LabStorageType = "Standard"
)

func PossibleLabStorageTypeValues

func PossibleLabStorageTypeValues() []LabStorageType

PossibleLabStorageTypeValues returns an array of possible values for the LabStorageType const type.

type LabVhd

type LabVhd struct {
	// ID - The absolute URI of the VHD.
	ID *string `json:"id,omitempty"`
}

LabVhd properties of a VHD in the lab.

type LabVirtualMachine

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

LabVirtualMachine a virtual machine.

func (LabVirtualMachine) MarshalJSON

func (lvm LabVirtualMachine) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LabVirtualMachine.

func (*LabVirtualMachine) UnmarshalJSON

func (lvm *LabVirtualMachine) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for LabVirtualMachine struct.

type LabVirtualMachineProperties

type LabVirtualMachineProperties struct {
	// Notes - The notes of the virtual machine.
	Notes *string `json:"notes,omitempty"`
	// OwnerObjectID - The object identifier of the owner of the virtual machine.
	OwnerObjectID *string `json:"ownerObjectId,omitempty"`
	// CreatedByUserID - The object identifier of the creator of the virtual machine.
	CreatedByUserID *string `json:"createdByUserId,omitempty"`
	// CreatedByUser - The email address of creator of the virtual machine.
	CreatedByUser *string `json:"createdByUser,omitempty"`
	// ComputeID - The resource identifier (Microsoft.Compute) of the virtual machine.
	ComputeID *string `json:"computeId,omitempty"`
	// CustomImageID - The custom image identifier of the virtual machine.
	CustomImageID *string `json:"customImageId,omitempty"`
	// OsType - The OS type of the virtual machine.
	OsType *string `json:"osType,omitempty"`
	// Size - The size of the virtual machine.
	Size *string `json:"size,omitempty"`
	// UserName - The user name of the virtual machine.
	UserName *string `json:"userName,omitempty"`
	// Password - The password of the virtual machine administrator.
	Password *string `json:"password,omitempty"`
	// SSHKey - The SSH key of the virtual machine administrator.
	SSHKey *string `json:"sshKey,omitempty"`
	// IsAuthenticationWithSSHKey - A value indicating whether this virtual machine uses an SSH key for authentication.
	IsAuthenticationWithSSHKey *bool `json:"isAuthenticationWithSshKey,omitempty"`
	// Fqdn - The fully-qualified domain name of the virtual machine.
	Fqdn *string `json:"fqdn,omitempty"`
	// LabSubnetName - The lab subnet name of the virtual machine.
	LabSubnetName *string `json:"labSubnetName,omitempty"`
	// LabVirtualNetworkID - The lab virtual network identifier of the virtual machine.
	LabVirtualNetworkID *string `json:"labVirtualNetworkId,omitempty"`
	// DisallowPublicIPAddress - Indicates whether the virtual machine is to be created without a public IP address.
	DisallowPublicIPAddress *bool `json:"disallowPublicIpAddress,omitempty"`
	// Artifacts - The artifacts to be installed on the virtual machine.
	Artifacts *[]ArtifactInstallProperties `json:"artifacts,omitempty"`
	// ArtifactDeploymentStatus - The artifact deployment status for the virtual machine.
	ArtifactDeploymentStatus *ArtifactDeploymentStatusProperties `json:"artifactDeploymentStatus,omitempty"`
	// GalleryImageReference - The Microsoft Azure Marketplace image reference of the virtual machine.
	GalleryImageReference *GalleryImageReference `json:"galleryImageReference,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
}

LabVirtualMachineProperties properties of a virtual machine.

type LinuxOsInfo

type LinuxOsInfo struct {
	// LinuxOsState - The state of the Linux OS. Possible values include: 'NonDeprovisioned', 'DeprovisionRequested', 'DeprovisionApplied'
	LinuxOsState LinuxOsState `json:"linuxOsState,omitempty"`
}

LinuxOsInfo information about a Linux OS.

type LinuxOsState

type LinuxOsState string

LinuxOsState enumerates the values for linux os state.

const (
	// DeprovisionApplied ...
	DeprovisionApplied LinuxOsState = "DeprovisionApplied"
	// DeprovisionRequested ...
	DeprovisionRequested LinuxOsState = "DeprovisionRequested"
	// NonDeprovisioned ...
	NonDeprovisioned LinuxOsState = "NonDeprovisioned"
)

func PossibleLinuxOsStateValues

func PossibleLinuxOsStateValues() []LinuxOsState

PossibleLinuxOsStateValues returns an array of possible values for the LinuxOsState const type.

type ParameterInfo

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

ParameterInfo ...

type Policy

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

Policy a Policy.

func (Policy) MarshalJSON

func (p Policy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Policy.

func (*Policy) UnmarshalJSON

func (p *Policy) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Policy struct.

type PolicyClient

type PolicyClient struct {
	BaseClient
}

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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (PolicyClient) CreateOrUpdateResource

func (client PolicyClient) CreateOrUpdateResource(ctx context.Context, resourceGroupName string, labName string, policySetName string, name string, policy Policy) (result Policy, err error)

CreateOrUpdateResource create or replace an existing policy. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. policySetName - the name of the policy set. name - the name of the policy.

func (PolicyClient) CreateOrUpdateResourcePreparer

func (client PolicyClient) CreateOrUpdateResourcePreparer(ctx context.Context, 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(ctx context.Context, resourceGroupName string, labName string, policySetName string, name string) (result autorest.Response, err error)

DeleteResource delete policy. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. policySetName - the name of the policy set. name - the name of the policy.

func (PolicyClient) DeleteResourcePreparer

func (client PolicyClient) DeleteResourcePreparer(ctx context.Context, 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(ctx context.Context, resourceGroupName string, labName string, policySetName string, name string) (result Policy, err error)

GetResource get policy. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. policySetName - the name of the policy set. name - the name of the policy.

func (PolicyClient) GetResourcePreparer

func (client PolicyClient) GetResourcePreparer(ctx context.Context, 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(ctx context.Context, resourceGroupName string, labName string, policySetName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationPolicyPage, err error)

List list policies. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. policySetName - the name of the policy set. filter - the filter to apply on the operation.

func (PolicyClient) ListComplete

func (client PolicyClient) ListComplete(ctx context.Context, resourceGroupName string, labName string, policySetName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationPolicyIterator, err error)

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

func (PolicyClient) ListPreparer

func (client PolicyClient) ListPreparer(ctx context.Context, 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(ctx context.Context, resourceGroupName string, labName string, policySetName string, name string, policy Policy) (result Policy, err error)

PatchResource modify properties of policies. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. policySetName - the name of the policy set. name - the name of the policy.

func (PolicyClient) PatchResourcePreparer

func (client PolicyClient) PatchResourcePreparer(ctx context.Context, 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 ...
	AllowedValuesPolicy PolicyEvaluatorType = "AllowedValuesPolicy"
	// MaxValuePolicy ...
	MaxValuePolicy PolicyEvaluatorType = "MaxValuePolicy"
)

func PossiblePolicyEvaluatorTypeValues

func PossiblePolicyEvaluatorTypeValues() []PolicyEvaluatorType

PossiblePolicyEvaluatorTypeValues returns an array of possible values for the PolicyEvaluatorType const type.

type PolicyFactName

type PolicyFactName string

PolicyFactName enumerates the values for policy fact name.

const (
	// PolicyFactNameGalleryImage ...
	PolicyFactNameGalleryImage PolicyFactName = "GalleryImage"
	// PolicyFactNameLabVMCount ...
	PolicyFactNameLabVMCount PolicyFactName = "LabVmCount"
	// PolicyFactNameLabVMSize ...
	PolicyFactNameLabVMSize PolicyFactName = "LabVmSize"
	// PolicyFactNameUserOwnedLabVMCount ...
	PolicyFactNameUserOwnedLabVMCount PolicyFactName = "UserOwnedLabVmCount"
	// PolicyFactNameUserOwnedLabVMCountInSubnet ...
	PolicyFactNameUserOwnedLabVMCountInSubnet PolicyFactName = "UserOwnedLabVmCountInSubnet"
)

func PossiblePolicyFactNameValues

func PossiblePolicyFactNameValues() []PolicyFactName

PossiblePolicyFactNameValues returns an array of possible values for the PolicyFactName const type.

type PolicyProperties

type PolicyProperties struct {
	// Description - The description of the policy.
	Description *string `json:"description,omitempty"`
	// Status - The status of the policy. Possible values include: 'PolicyStatusEnabled', 'PolicyStatusDisabled'
	Status PolicyStatus `json:"status,omitempty"`
	// FactName - The fact name of the policy. Possible values include: 'PolicyFactNameUserOwnedLabVMCount', 'PolicyFactNameLabVMCount', 'PolicyFactNameLabVMSize', 'PolicyFactNameGalleryImage', 'PolicyFactNameUserOwnedLabVMCountInSubnet'
	FactName PolicyFactName `json:"factName,omitempty"`
	// FactData - The fact data of the policy.
	FactData *string `json:"factData,omitempty"`
	// Threshold - The threshold of the policy.
	Threshold *string `json:"threshold,omitempty"`
	// EvaluatorType - The evaluator type of the policy. Possible values include: 'AllowedValuesPolicy', 'MaxValuePolicy'
	EvaluatorType PolicyEvaluatorType `json:"evaluatorType,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
}

PolicyProperties properties of a Policy.

type PolicySetClient

type PolicySetClient struct {
	BaseClient
}

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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (PolicySetClient) EvaluatePolicies

func (client PolicySetClient) EvaluatePolicies(ctx context.Context, resourceGroupName string, labName string, name string, evaluatePoliciesRequest EvaluatePoliciesRequest) (result EvaluatePoliciesResponse, err error)

EvaluatePolicies evaluates Lab Policy. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the policy set.

func (PolicySetClient) EvaluatePoliciesPreparer

func (client PolicySetClient) EvaluatePoliciesPreparer(ctx context.Context, 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 - A value indicating whether this policy set evaluation has discovered violations.
	HasError *bool `json:"hasError,omitempty"`
	// PolicyViolations - The list of policy violations.
	PolicyViolations *[]PolicyViolation `json:"policyViolations,omitempty"`
}

PolicySetResult result of a policy set evaluation.

type PolicyStatus

type PolicyStatus string

PolicyStatus enumerates the values for policy status.

const (
	// PolicyStatusDisabled ...
	PolicyStatusDisabled PolicyStatus = "Disabled"
	// PolicyStatusEnabled ...
	PolicyStatusEnabled PolicyStatus = "Enabled"
)

func PossiblePolicyStatusValues

func PossiblePolicyStatusValues() []PolicyStatus

PossiblePolicyStatusValues returns an array of possible values for the PolicyStatus const type.

type PolicyViolation

type PolicyViolation struct {
	// Code - The code of the policy violation.
	Code *string `json:"code,omitempty"`
	// Message - The message of the policy violation.
	Message *string `json:"message,omitempty"`
}

PolicyViolation policy violation.

type ResponseWithContinuationArtifact

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

ResponseWithContinuationArtifact the response of a list operation.

func (ResponseWithContinuationArtifact) IsEmpty

func (rwcA ResponseWithContinuationArtifact) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ResponseWithContinuationArtifactIterator

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

ResponseWithContinuationArtifactIterator provides access to a complete listing of Artifact values.

func NewResponseWithContinuationArtifactIterator

func NewResponseWithContinuationArtifactIterator(page ResponseWithContinuationArtifactPage) ResponseWithContinuationArtifactIterator

Creates a new instance of the ResponseWithContinuationArtifactIterator type.

func (*ResponseWithContinuationArtifactIterator) Next

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

func (*ResponseWithContinuationArtifactIterator) NextWithContext

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

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

func (ResponseWithContinuationArtifactIterator) NotDone

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

func (ResponseWithContinuationArtifactIterator) Response

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

func (ResponseWithContinuationArtifactIterator) Value

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

type ResponseWithContinuationArtifactPage

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

ResponseWithContinuationArtifactPage contains a page of Artifact values.

func NewResponseWithContinuationArtifactPage

Creates a new instance of the ResponseWithContinuationArtifactPage type.

func (*ResponseWithContinuationArtifactPage) Next

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

func (*ResponseWithContinuationArtifactPage) NextWithContext

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

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

func (ResponseWithContinuationArtifactPage) NotDone

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

func (ResponseWithContinuationArtifactPage) Response

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

func (ResponseWithContinuationArtifactPage) Values

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

type ResponseWithContinuationArtifactSource

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

ResponseWithContinuationArtifactSource the response of a list operation.

func (ResponseWithContinuationArtifactSource) IsEmpty

IsEmpty returns true if the ListResult contains no values.

type ResponseWithContinuationArtifactSourceIterator

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

ResponseWithContinuationArtifactSourceIterator provides access to a complete listing of ArtifactSource values.

func NewResponseWithContinuationArtifactSourceIterator

func NewResponseWithContinuationArtifactSourceIterator(page ResponseWithContinuationArtifactSourcePage) ResponseWithContinuationArtifactSourceIterator

Creates a new instance of the ResponseWithContinuationArtifactSourceIterator type.

func (*ResponseWithContinuationArtifactSourceIterator) Next

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

func (*ResponseWithContinuationArtifactSourceIterator) NextWithContext

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

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

func (ResponseWithContinuationArtifactSourceIterator) NotDone

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

func (ResponseWithContinuationArtifactSourceIterator) Response

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

func (ResponseWithContinuationArtifactSourceIterator) Value

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

type ResponseWithContinuationArtifactSourcePage

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

ResponseWithContinuationArtifactSourcePage contains a page of ArtifactSource values.

func NewResponseWithContinuationArtifactSourcePage

Creates a new instance of the ResponseWithContinuationArtifactSourcePage type.

func (*ResponseWithContinuationArtifactSourcePage) Next

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

func (*ResponseWithContinuationArtifactSourcePage) NextWithContext

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

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

func (ResponseWithContinuationArtifactSourcePage) NotDone

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

func (ResponseWithContinuationArtifactSourcePage) Response

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

func (ResponseWithContinuationArtifactSourcePage) Values

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

type ResponseWithContinuationCost

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

ResponseWithContinuationCost the response of a list operation.

func (ResponseWithContinuationCost) IsEmpty

func (rwcC ResponseWithContinuationCost) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ResponseWithContinuationCostInsight

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

ResponseWithContinuationCostInsight the response of a list operation.

func (ResponseWithContinuationCostInsight) IsEmpty

func (rwcCi ResponseWithContinuationCostInsight) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ResponseWithContinuationCostInsightIterator

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

ResponseWithContinuationCostInsightIterator provides access to a complete listing of CostInsight values.

func NewResponseWithContinuationCostInsightIterator

func NewResponseWithContinuationCostInsightIterator(page ResponseWithContinuationCostInsightPage) ResponseWithContinuationCostInsightIterator

Creates a new instance of the ResponseWithContinuationCostInsightIterator type.

func (*ResponseWithContinuationCostInsightIterator) Next

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

func (*ResponseWithContinuationCostInsightIterator) NextWithContext

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

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

func (ResponseWithContinuationCostInsightIterator) NotDone

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

func (ResponseWithContinuationCostInsightIterator) Response

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

func (ResponseWithContinuationCostInsightIterator) Value

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

type ResponseWithContinuationCostInsightPage

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

ResponseWithContinuationCostInsightPage contains a page of CostInsight values.

func NewResponseWithContinuationCostInsightPage

Creates a new instance of the ResponseWithContinuationCostInsightPage type.

func (*ResponseWithContinuationCostInsightPage) Next

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

func (*ResponseWithContinuationCostInsightPage) NextWithContext

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

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

func (ResponseWithContinuationCostInsightPage) NotDone

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

func (ResponseWithContinuationCostInsightPage) Response

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

func (ResponseWithContinuationCostInsightPage) Values

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

type ResponseWithContinuationCostIterator

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

ResponseWithContinuationCostIterator provides access to a complete listing of Cost values.

func NewResponseWithContinuationCostIterator

func NewResponseWithContinuationCostIterator(page ResponseWithContinuationCostPage) ResponseWithContinuationCostIterator

Creates a new instance of the ResponseWithContinuationCostIterator type.

func (*ResponseWithContinuationCostIterator) Next

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

func (*ResponseWithContinuationCostIterator) NextWithContext

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

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

func (ResponseWithContinuationCostIterator) NotDone

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

func (ResponseWithContinuationCostIterator) Response

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

func (ResponseWithContinuationCostIterator) Value

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

type ResponseWithContinuationCostPage

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

ResponseWithContinuationCostPage contains a page of Cost values.

func NewResponseWithContinuationCostPage

Creates a new instance of the ResponseWithContinuationCostPage type.

func (*ResponseWithContinuationCostPage) Next

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

func (*ResponseWithContinuationCostPage) NextWithContext

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

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

func (ResponseWithContinuationCostPage) NotDone

func (page ResponseWithContinuationCostPage) NotDone() bool

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

func (ResponseWithContinuationCostPage) Response

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

func (ResponseWithContinuationCostPage) Values

func (page ResponseWithContinuationCostPage) Values() []Cost

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

type ResponseWithContinuationCustomImage

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

ResponseWithContinuationCustomImage the response of a list operation.

func (ResponseWithContinuationCustomImage) IsEmpty

func (rwcCi ResponseWithContinuationCustomImage) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ResponseWithContinuationCustomImageIterator

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

ResponseWithContinuationCustomImageIterator provides access to a complete listing of CustomImage values.

func NewResponseWithContinuationCustomImageIterator

func NewResponseWithContinuationCustomImageIterator(page ResponseWithContinuationCustomImagePage) ResponseWithContinuationCustomImageIterator

Creates a new instance of the ResponseWithContinuationCustomImageIterator type.

func (*ResponseWithContinuationCustomImageIterator) Next

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

func (*ResponseWithContinuationCustomImageIterator) NextWithContext

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

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

func (ResponseWithContinuationCustomImageIterator) NotDone

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

func (ResponseWithContinuationCustomImageIterator) Response

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

func (ResponseWithContinuationCustomImageIterator) Value

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

type ResponseWithContinuationCustomImagePage

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

ResponseWithContinuationCustomImagePage contains a page of CustomImage values.

func NewResponseWithContinuationCustomImagePage

Creates a new instance of the ResponseWithContinuationCustomImagePage type.

func (*ResponseWithContinuationCustomImagePage) Next

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

func (*ResponseWithContinuationCustomImagePage) NextWithContext

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

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

func (ResponseWithContinuationCustomImagePage) NotDone

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

func (ResponseWithContinuationCustomImagePage) Response

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

func (ResponseWithContinuationCustomImagePage) Values

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

type ResponseWithContinuationFormula

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

ResponseWithContinuationFormula the response of a list operation.

func (ResponseWithContinuationFormula) IsEmpty

func (rwcF ResponseWithContinuationFormula) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ResponseWithContinuationFormulaIterator

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

ResponseWithContinuationFormulaIterator provides access to a complete listing of Formula values.

func NewResponseWithContinuationFormulaIterator

func NewResponseWithContinuationFormulaIterator(page ResponseWithContinuationFormulaPage) ResponseWithContinuationFormulaIterator

Creates a new instance of the ResponseWithContinuationFormulaIterator type.

func (*ResponseWithContinuationFormulaIterator) Next

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

func (*ResponseWithContinuationFormulaIterator) NextWithContext

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

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

func (ResponseWithContinuationFormulaIterator) NotDone

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

func (ResponseWithContinuationFormulaIterator) Response

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

func (ResponseWithContinuationFormulaIterator) Value

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

type ResponseWithContinuationFormulaPage

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

ResponseWithContinuationFormulaPage contains a page of Formula values.

func NewResponseWithContinuationFormulaPage

Creates a new instance of the ResponseWithContinuationFormulaPage type.

func (*ResponseWithContinuationFormulaPage) Next

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

func (*ResponseWithContinuationFormulaPage) NextWithContext

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

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

func (ResponseWithContinuationFormulaPage) NotDone

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

func (ResponseWithContinuationFormulaPage) Response

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

func (ResponseWithContinuationFormulaPage) Values

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

type ResponseWithContinuationGalleryImage

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

ResponseWithContinuationGalleryImage the response of a list operation.

func (ResponseWithContinuationGalleryImage) IsEmpty

IsEmpty returns true if the ListResult contains no values.

type ResponseWithContinuationGalleryImageIterator

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

ResponseWithContinuationGalleryImageIterator provides access to a complete listing of GalleryImage values.

func NewResponseWithContinuationGalleryImageIterator

func NewResponseWithContinuationGalleryImageIterator(page ResponseWithContinuationGalleryImagePage) ResponseWithContinuationGalleryImageIterator

Creates a new instance of the ResponseWithContinuationGalleryImageIterator type.

func (*ResponseWithContinuationGalleryImageIterator) Next

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

func (*ResponseWithContinuationGalleryImageIterator) NextWithContext

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

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

func (ResponseWithContinuationGalleryImageIterator) NotDone

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

func (ResponseWithContinuationGalleryImageIterator) Response

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

func (ResponseWithContinuationGalleryImageIterator) Value

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

type ResponseWithContinuationGalleryImagePage

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

ResponseWithContinuationGalleryImagePage contains a page of GalleryImage values.

func NewResponseWithContinuationGalleryImagePage

Creates a new instance of the ResponseWithContinuationGalleryImagePage type.

func (*ResponseWithContinuationGalleryImagePage) Next

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

func (*ResponseWithContinuationGalleryImagePage) NextWithContext

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

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

func (ResponseWithContinuationGalleryImagePage) NotDone

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

func (ResponseWithContinuationGalleryImagePage) Response

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

func (ResponseWithContinuationGalleryImagePage) Values

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

type ResponseWithContinuationLab

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

ResponseWithContinuationLab the response of a list operation.

func (ResponseWithContinuationLab) IsEmpty

func (rwcL ResponseWithContinuationLab) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ResponseWithContinuationLabIterator

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

ResponseWithContinuationLabIterator provides access to a complete listing of Lab values.

func NewResponseWithContinuationLabIterator

func NewResponseWithContinuationLabIterator(page ResponseWithContinuationLabPage) ResponseWithContinuationLabIterator

Creates a new instance of the ResponseWithContinuationLabIterator type.

func (*ResponseWithContinuationLabIterator) Next

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

func (*ResponseWithContinuationLabIterator) NextWithContext

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

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

func (ResponseWithContinuationLabIterator) NotDone

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

func (ResponseWithContinuationLabIterator) Response

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

func (ResponseWithContinuationLabIterator) Value

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

type ResponseWithContinuationLabPage

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

ResponseWithContinuationLabPage contains a page of Lab values.

func NewResponseWithContinuationLabPage

Creates a new instance of the ResponseWithContinuationLabPage type.

func (*ResponseWithContinuationLabPage) Next

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

func (*ResponseWithContinuationLabPage) NextWithContext

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

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

func (ResponseWithContinuationLabPage) NotDone

func (page ResponseWithContinuationLabPage) NotDone() bool

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

func (ResponseWithContinuationLabPage) Response

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

func (ResponseWithContinuationLabPage) Values

func (page ResponseWithContinuationLabPage) Values() []Lab

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

type ResponseWithContinuationLabVhd

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

ResponseWithContinuationLabVhd the response of a list operation.

func (ResponseWithContinuationLabVhd) IsEmpty

func (rwcLv ResponseWithContinuationLabVhd) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ResponseWithContinuationLabVhdIterator

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

ResponseWithContinuationLabVhdIterator provides access to a complete listing of LabVhd values.

func NewResponseWithContinuationLabVhdIterator

func NewResponseWithContinuationLabVhdIterator(page ResponseWithContinuationLabVhdPage) ResponseWithContinuationLabVhdIterator

Creates a new instance of the ResponseWithContinuationLabVhdIterator type.

func (*ResponseWithContinuationLabVhdIterator) Next

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

func (*ResponseWithContinuationLabVhdIterator) NextWithContext

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

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

func (ResponseWithContinuationLabVhdIterator) NotDone

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

func (ResponseWithContinuationLabVhdIterator) Response

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

func (ResponseWithContinuationLabVhdIterator) Value

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

type ResponseWithContinuationLabVhdPage

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

ResponseWithContinuationLabVhdPage contains a page of LabVhd values.

func NewResponseWithContinuationLabVhdPage

Creates a new instance of the ResponseWithContinuationLabVhdPage type.

func (*ResponseWithContinuationLabVhdPage) Next

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

func (*ResponseWithContinuationLabVhdPage) NextWithContext

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

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

func (ResponseWithContinuationLabVhdPage) NotDone

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

func (ResponseWithContinuationLabVhdPage) Response

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

func (ResponseWithContinuationLabVhdPage) Values

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

type ResponseWithContinuationLabVirtualMachine

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

ResponseWithContinuationLabVirtualMachine the response of a list operation.

func (ResponseWithContinuationLabVirtualMachine) IsEmpty

IsEmpty returns true if the ListResult contains no values.

type ResponseWithContinuationLabVirtualMachineIterator

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

ResponseWithContinuationLabVirtualMachineIterator provides access to a complete listing of LabVirtualMachine values.

func NewResponseWithContinuationLabVirtualMachineIterator

func NewResponseWithContinuationLabVirtualMachineIterator(page ResponseWithContinuationLabVirtualMachinePage) ResponseWithContinuationLabVirtualMachineIterator

Creates a new instance of the ResponseWithContinuationLabVirtualMachineIterator type.

func (*ResponseWithContinuationLabVirtualMachineIterator) Next

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

func (*ResponseWithContinuationLabVirtualMachineIterator) NextWithContext

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

func (ResponseWithContinuationLabVirtualMachineIterator) NotDone

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

func (ResponseWithContinuationLabVirtualMachineIterator) Response

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

func (ResponseWithContinuationLabVirtualMachineIterator) Value

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

type ResponseWithContinuationLabVirtualMachinePage

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

ResponseWithContinuationLabVirtualMachinePage contains a page of LabVirtualMachine values.

func NewResponseWithContinuationLabVirtualMachinePage

Creates a new instance of the ResponseWithContinuationLabVirtualMachinePage type.

func (*ResponseWithContinuationLabVirtualMachinePage) Next

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

func (*ResponseWithContinuationLabVirtualMachinePage) NextWithContext

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

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

func (ResponseWithContinuationLabVirtualMachinePage) NotDone

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

func (ResponseWithContinuationLabVirtualMachinePage) Response

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

func (ResponseWithContinuationLabVirtualMachinePage) Values

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

type ResponseWithContinuationPolicy

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

ResponseWithContinuationPolicy the response of a list operation.

func (ResponseWithContinuationPolicy) IsEmpty

func (rwcP ResponseWithContinuationPolicy) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ResponseWithContinuationPolicyIterator

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

ResponseWithContinuationPolicyIterator provides access to a complete listing of Policy values.

func NewResponseWithContinuationPolicyIterator

func NewResponseWithContinuationPolicyIterator(page ResponseWithContinuationPolicyPage) ResponseWithContinuationPolicyIterator

Creates a new instance of the ResponseWithContinuationPolicyIterator type.

func (*ResponseWithContinuationPolicyIterator) Next

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

func (*ResponseWithContinuationPolicyIterator) NextWithContext

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

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

func (ResponseWithContinuationPolicyIterator) NotDone

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

func (ResponseWithContinuationPolicyIterator) Response

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

func (ResponseWithContinuationPolicyIterator) Value

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

type ResponseWithContinuationPolicyPage

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

ResponseWithContinuationPolicyPage contains a page of Policy values.

func NewResponseWithContinuationPolicyPage

Creates a new instance of the ResponseWithContinuationPolicyPage type.

func (*ResponseWithContinuationPolicyPage) Next

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

func (*ResponseWithContinuationPolicyPage) NextWithContext

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

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

func (ResponseWithContinuationPolicyPage) NotDone

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

func (ResponseWithContinuationPolicyPage) Response

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

func (ResponseWithContinuationPolicyPage) Values

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

type ResponseWithContinuationSchedule

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

ResponseWithContinuationSchedule the response of a list operation.

func (ResponseWithContinuationSchedule) IsEmpty

func (rwcS ResponseWithContinuationSchedule) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ResponseWithContinuationScheduleIterator

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

ResponseWithContinuationScheduleIterator provides access to a complete listing of Schedule values.

func NewResponseWithContinuationScheduleIterator

func NewResponseWithContinuationScheduleIterator(page ResponseWithContinuationSchedulePage) ResponseWithContinuationScheduleIterator

Creates a new instance of the ResponseWithContinuationScheduleIterator type.

func (*ResponseWithContinuationScheduleIterator) Next

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

func (*ResponseWithContinuationScheduleIterator) NextWithContext

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

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

func (ResponseWithContinuationScheduleIterator) NotDone

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

func (ResponseWithContinuationScheduleIterator) Response

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

func (ResponseWithContinuationScheduleIterator) Value

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

type ResponseWithContinuationSchedulePage

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

ResponseWithContinuationSchedulePage contains a page of Schedule values.

func NewResponseWithContinuationSchedulePage

Creates a new instance of the ResponseWithContinuationSchedulePage type.

func (*ResponseWithContinuationSchedulePage) Next

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

func (*ResponseWithContinuationSchedulePage) NextWithContext

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

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

func (ResponseWithContinuationSchedulePage) NotDone

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

func (ResponseWithContinuationSchedulePage) Response

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

func (ResponseWithContinuationSchedulePage) Values

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

type ResponseWithContinuationVirtualNetwork

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

ResponseWithContinuationVirtualNetwork the response of a list operation.

func (ResponseWithContinuationVirtualNetwork) IsEmpty

IsEmpty returns true if the ListResult contains no values.

type ResponseWithContinuationVirtualNetworkIterator

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

ResponseWithContinuationVirtualNetworkIterator provides access to a complete listing of VirtualNetwork values.

func NewResponseWithContinuationVirtualNetworkIterator

func NewResponseWithContinuationVirtualNetworkIterator(page ResponseWithContinuationVirtualNetworkPage) ResponseWithContinuationVirtualNetworkIterator

Creates a new instance of the ResponseWithContinuationVirtualNetworkIterator type.

func (*ResponseWithContinuationVirtualNetworkIterator) Next

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

func (*ResponseWithContinuationVirtualNetworkIterator) NextWithContext

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

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

func (ResponseWithContinuationVirtualNetworkIterator) NotDone

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

func (ResponseWithContinuationVirtualNetworkIterator) Response

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

func (ResponseWithContinuationVirtualNetworkIterator) Value

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

type ResponseWithContinuationVirtualNetworkPage

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

ResponseWithContinuationVirtualNetworkPage contains a page of VirtualNetwork values.

func NewResponseWithContinuationVirtualNetworkPage

Creates a new instance of the ResponseWithContinuationVirtualNetworkPage type.

func (*ResponseWithContinuationVirtualNetworkPage) Next

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

func (*ResponseWithContinuationVirtualNetworkPage) NextWithContext

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

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

func (ResponseWithContinuationVirtualNetworkPage) NotDone

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

func (ResponseWithContinuationVirtualNetworkPage) Response

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

func (ResponseWithContinuationVirtualNetworkPage) Values

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

type Schedule

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

Schedule a schedule.

func (Schedule) MarshalJSON

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

MarshalJSON is the custom marshaler for Schedule.

func (*Schedule) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Schedule struct.

type ScheduleClient

type ScheduleClient struct {
	BaseClient
}

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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ScheduleClient) CreateOrUpdateResource

func (client ScheduleClient) CreateOrUpdateResource(ctx context.Context, resourceGroupName string, labName string, name string, schedule Schedule) (result ScheduleCreateOrUpdateResourceFuture, err error)

CreateOrUpdateResource create or replace an existing schedule. This operation can take a while to complete. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the schedule.

func (ScheduleClient) CreateOrUpdateResourcePreparer

func (client ScheduleClient) CreateOrUpdateResourcePreparer(ctx context.Context, resourceGroupName string, labName string, name string, schedule Schedule) (*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) (future ScheduleCreateOrUpdateResourceFuture, err 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(ctx context.Context, resourceGroupName string, labName string, name string) (result ScheduleDeleteResourceFuture, err error)

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

func (ScheduleClient) DeleteResourcePreparer

func (client ScheduleClient) DeleteResourcePreparer(ctx context.Context, resourceGroupName string, labName string, name string) (*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) (future ScheduleDeleteResourceFuture, err 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(ctx context.Context, resourceGroupName string, labName string, name string) (result ScheduleExecuteFuture, err error)

Execute execute a schedule. This operation can take a while to complete. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the schedule.

func (ScheduleClient) ExecutePreparer

func (client ScheduleClient) ExecutePreparer(ctx context.Context, resourceGroupName string, labName string, name string) (*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) (future ScheduleExecuteFuture, err 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(ctx context.Context, resourceGroupName string, labName string, name string) (result Schedule, err error)

GetResource get schedule. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the schedule.

func (ScheduleClient) GetResourcePreparer

func (client ScheduleClient) GetResourcePreparer(ctx context.Context, 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(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationSchedulePage, err error)

List list schedules. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. filter - the filter to apply on the operation.

func (ScheduleClient) ListComplete

func (client ScheduleClient) ListComplete(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationScheduleIterator, err error)

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

func (ScheduleClient) ListPreparer

func (client ScheduleClient) ListPreparer(ctx context.Context, 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(ctx context.Context, resourceGroupName string, labName string, name string, schedule Schedule) (result Schedule, err error)

PatchResource modify properties of schedules. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the schedule.

func (ScheduleClient) PatchResourcePreparer

func (client ScheduleClient) PatchResourcePreparer(ctx context.Context, 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 ScheduleCreateOrUpdateResourceFuture

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

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

func (*ScheduleCreateOrUpdateResourceFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ScheduleDeleteResourceFuture

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

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

func (*ScheduleDeleteResourceFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ScheduleExecuteFuture

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

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

func (*ScheduleExecuteFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ScheduleProperties

type ScheduleProperties struct {
	// Status - The status of the schedule. Possible values include: 'Enabled', 'Disabled'
	Status EnableStatus `json:"status,omitempty"`
	// TaskType - The task type of the schedule. Possible values include: 'LabVmsShutdownTask', 'LabVmsStartupTask', 'LabBillingTask'
	TaskType TaskType `json:"taskType,omitempty"`
	// WeeklyRecurrence - The weekly recurrence of the schedule.
	WeeklyRecurrence *WeekDetails `json:"weeklyRecurrence,omitempty"`
	// DailyRecurrence - The daily recurrence of the schedule.
	DailyRecurrence *DayDetails `json:"dailyRecurrence,omitempty"`
	// HourlyRecurrence - The hourly recurrence of the schedule.
	HourlyRecurrence *HourDetails `json:"hourlyRecurrence,omitempty"`
	// TimeZoneID - The time zone id.
	TimeZoneID *string `json:"timeZoneId,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
}

ScheduleProperties properties of a schedule.

type SourceControlType

type SourceControlType string

SourceControlType enumerates the values for source control type.

const (
	// GitHub ...
	GitHub SourceControlType = "GitHub"
	// VsoGit ...
	VsoGit SourceControlType = "VsoGit"
)

func PossibleSourceControlTypeValues

func PossibleSourceControlTypeValues() []SourceControlType

PossibleSourceControlTypeValues returns an array of possible values for the SourceControlType const type.

type Subnet

type Subnet struct {
	ResourceID    *string `json:"resourceId,omitempty"`
	LabSubnetName *string `json:"labSubnetName,omitempty"`
	// AllowPublicIP - Possible values include: 'Default', 'Deny', 'Allow'
	AllowPublicIP UsagePermissionType `json:"allowPublicIp,omitempty"`
}

Subnet ...

type SubnetOverride

type SubnetOverride struct {
	// ResourceID - The resource identifier of the subnet.
	ResourceID *string `json:"resourceId,omitempty"`
	// LabSubnetName - The name given to the subnet within the lab.
	LabSubnetName *string `json:"labSubnetName,omitempty"`
	// UseInVMCreationPermission - Indicates whether this subnet can be used during virtual machine creation. Possible values include: 'Default', 'Deny', 'Allow'
	UseInVMCreationPermission UsagePermissionType `json:"useInVmCreationPermission,omitempty"`
	// UsePublicIPAddressPermission - Indicates whether public IP addresses can be assigned to virtual machines on this subnet. Possible values include: 'Default', 'Deny', 'Allow'
	UsePublicIPAddressPermission UsagePermissionType `json:"usePublicIpAddressPermission,omitempty"`
}

SubnetOverride property overrides on a subnet of a virtual network.

type SubscriptionNotification

type SubscriptionNotification struct {
	RegistrationDate *string `json:"registrationDate,omitempty"`
	// State - Possible values include: 'NotDefined', 'Registered', 'Unregistered', 'Warned', 'Suspended', 'Deleted'
	State      SubscriptionNotificationState       `json:"state,omitempty"`
	Properties *SubscriptionNotificationProperties `json:"properties,omitempty"`
}

SubscriptionNotification ...

type SubscriptionNotificationProperties

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

SubscriptionNotificationProperties ...

type SubscriptionNotificationState

type SubscriptionNotificationState string

SubscriptionNotificationState enumerates the values for subscription notification state.

const (
	// Deleted ...
	Deleted SubscriptionNotificationState = "Deleted"
	// NotDefined ...
	NotDefined SubscriptionNotificationState = "NotDefined"
	// Registered ...
	Registered SubscriptionNotificationState = "Registered"
	// Suspended ...
	Suspended SubscriptionNotificationState = "Suspended"
	// Unregistered ...
	Unregistered SubscriptionNotificationState = "Unregistered"
	// Warned ...
	Warned SubscriptionNotificationState = "Warned"
)

func PossibleSubscriptionNotificationStateValues

func PossibleSubscriptionNotificationStateValues() []SubscriptionNotificationState

PossibleSubscriptionNotificationStateValues returns an array of possible values for the SubscriptionNotificationState const type.

type TaskType

type TaskType string

TaskType enumerates the values for task type.

const (
	// LabBillingTask ...
	LabBillingTask TaskType = "LabBillingTask"
	// LabVmsShutdownTask ...
	LabVmsShutdownTask TaskType = "LabVmsShutdownTask"
	// LabVmsStartupTask ...
	LabVmsStartupTask TaskType = "LabVmsStartupTask"
)

func PossibleTaskTypeValues

func PossibleTaskTypeValues() []TaskType

PossibleTaskTypeValues returns an array of possible values for the TaskType const type.

type UsagePermissionType

type UsagePermissionType string

UsagePermissionType enumerates the values for usage permission type.

const (
	// Allow ...
	Allow UsagePermissionType = "Allow"
	// Default ...
	Default UsagePermissionType = "Default"
	// Deny ...
	Deny UsagePermissionType = "Deny"
)

func PossibleUsagePermissionTypeValues

func PossibleUsagePermissionTypeValues() []UsagePermissionType

PossibleUsagePermissionTypeValues returns an array of possible values for the UsagePermissionType const type.

type VMCostProperties

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

VMCostProperties ...

type VirtualMachineApplyArtifactsFuture

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

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

func (*VirtualMachineApplyArtifactsFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type VirtualMachineClient

type VirtualMachineClient struct {
	BaseClient
}

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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (VirtualMachineClient) ApplyArtifacts

func (client VirtualMachineClient) ApplyArtifacts(ctx context.Context, resourceGroupName string, labName string, name string, applyArtifactsRequest ApplyArtifactsRequest) (result VirtualMachineApplyArtifactsFuture, err error)

ApplyArtifacts apply artifacts to Lab VM. This operation can take a while to complete. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the virtual Machine.

func (VirtualMachineClient) ApplyArtifactsPreparer

func (client VirtualMachineClient) ApplyArtifactsPreparer(ctx context.Context, resourceGroupName string, labName string, name string, applyArtifactsRequest ApplyArtifactsRequest) (*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) (future VirtualMachineApplyArtifactsFuture, err 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(ctx context.Context, resourceGroupName string, labName string, name string, labVirtualMachine LabVirtualMachine) (result VirtualMachineCreateOrUpdateResourceFuture, err error)

CreateOrUpdateResource create or replace an existing Virtual Machine. This operation can take a while to complete. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the virtual Machine.

func (VirtualMachineClient) CreateOrUpdateResourcePreparer

func (client VirtualMachineClient) CreateOrUpdateResourcePreparer(ctx context.Context, resourceGroupName string, labName string, name string, labVirtualMachine LabVirtualMachine) (*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) (future VirtualMachineCreateOrUpdateResourceFuture, err 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(ctx context.Context, resourceGroupName string, labName string, name string) (result VirtualMachineDeleteResourceFuture, err error)

DeleteResource delete virtual machine. This operation can take a while to complete. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the virtual Machine.

func (VirtualMachineClient) DeleteResourcePreparer

func (client VirtualMachineClient) DeleteResourcePreparer(ctx context.Context, resourceGroupName string, labName string, name string) (*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) (future VirtualMachineDeleteResourceFuture, err 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(ctx context.Context, resourceGroupName string, labName string, name string) (result LabVirtualMachine, err error)

GetResource get virtual machine. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the virtual Machine.

func (VirtualMachineClient) GetResourcePreparer

func (client VirtualMachineClient) GetResourcePreparer(ctx context.Context, 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(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationLabVirtualMachinePage, err error)

List list virtual machines. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. filter - the filter to apply on the operation.

func (VirtualMachineClient) ListComplete

func (client VirtualMachineClient) ListComplete(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationLabVirtualMachineIterator, err error)

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

func (VirtualMachineClient) ListPreparer

func (client VirtualMachineClient) ListPreparer(ctx context.Context, 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(ctx context.Context, resourceGroupName string, labName string, name string, labVirtualMachine LabVirtualMachine) (result LabVirtualMachine, err error)

PatchResource modify properties of virtual machines. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the virtual Machine.

func (VirtualMachineClient) PatchResourcePreparer

func (client VirtualMachineClient) PatchResourcePreparer(ctx context.Context, 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(ctx context.Context, resourceGroupName string, labName string, name string) (result VirtualMachineStartFuture, err error)

Start start a Lab VM. This operation can take a while to complete. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the virtual Machine.

func (VirtualMachineClient) StartPreparer

func (client VirtualMachineClient) StartPreparer(ctx context.Context, resourceGroupName string, labName string, name string) (*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) (future VirtualMachineStartFuture, err 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(ctx context.Context, resourceGroupName string, labName string, name string) (result VirtualMachineStopFuture, err error)

Stop stop a Lab VM. This operation can take a while to complete. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the virtual Machine.

func (VirtualMachineClient) StopPreparer

func (client VirtualMachineClient) StopPreparer(ctx context.Context, resourceGroupName string, labName string, name string) (*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) (future VirtualMachineStopFuture, err error)

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

type VirtualMachineCreateOrUpdateResourceFuture

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

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

func (*VirtualMachineCreateOrUpdateResourceFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type VirtualMachineDeleteResourceFuture

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

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

func (*VirtualMachineDeleteResourceFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type VirtualMachineStartFuture

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

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

func (*VirtualMachineStartFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type VirtualMachineStopFuture

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

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

func (*VirtualMachineStopFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type VirtualNetwork

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

VirtualNetwork a virtual network.

func (VirtualNetwork) MarshalJSON

func (vn VirtualNetwork) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VirtualNetwork.

func (*VirtualNetwork) UnmarshalJSON

func (vn *VirtualNetwork) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for VirtualNetwork struct.

type VirtualNetworkClient

type VirtualNetworkClient struct {
	BaseClient
}

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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (VirtualNetworkClient) CreateOrUpdateResource

func (client VirtualNetworkClient) CreateOrUpdateResource(ctx context.Context, resourceGroupName string, labName string, name string, virtualNetwork VirtualNetwork) (result VirtualNetworkCreateOrUpdateResourceFuture, err error)

CreateOrUpdateResource create or replace an existing virtual network. This operation can take a while to complete. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the virtual network.

func (VirtualNetworkClient) CreateOrUpdateResourcePreparer

func (client VirtualNetworkClient) CreateOrUpdateResourcePreparer(ctx context.Context, resourceGroupName string, labName string, name string, virtualNetwork VirtualNetwork) (*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) (future VirtualNetworkCreateOrUpdateResourceFuture, err 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(ctx context.Context, resourceGroupName string, labName string, name string) (result VirtualNetworkDeleteResourceFuture, err error)

DeleteResource delete virtual network. This operation can take a while to complete. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the virtual network.

func (VirtualNetworkClient) DeleteResourcePreparer

func (client VirtualNetworkClient) DeleteResourcePreparer(ctx context.Context, resourceGroupName string, labName string, name string) (*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) (future VirtualNetworkDeleteResourceFuture, err 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(ctx context.Context, resourceGroupName string, labName string, name string) (result VirtualNetwork, err error)

GetResource get virtual network. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the virtual network.

func (VirtualNetworkClient) GetResourcePreparer

func (client VirtualNetworkClient) GetResourcePreparer(ctx context.Context, 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(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationVirtualNetworkPage, err error)

List list virtual networks. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. filter - the filter to apply on the operation.

func (VirtualNetworkClient) ListComplete

func (client VirtualNetworkClient) ListComplete(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationVirtualNetworkIterator, err error)

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

func (VirtualNetworkClient) ListPreparer

func (client VirtualNetworkClient) ListPreparer(ctx context.Context, 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(ctx context.Context, resourceGroupName string, labName string, name string, virtualNetwork VirtualNetwork) (result VirtualNetwork, err error)

PatchResource modify properties of virtual networks. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the virtual network.

func (VirtualNetworkClient) PatchResourcePreparer

func (client VirtualNetworkClient) PatchResourcePreparer(ctx context.Context, 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 VirtualNetworkCreateOrUpdateResourceFuture

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

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

func (*VirtualNetworkCreateOrUpdateResourceFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type VirtualNetworkDeleteResourceFuture

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

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

func (*VirtualNetworkDeleteResourceFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type VirtualNetworkProperties

type VirtualNetworkProperties struct {
	// AllowedSubnets - The allowed subnets of the virtual network.
	AllowedSubnets *[]Subnet `json:"allowedSubnets,omitempty"`
	// Description - The description of the virtual network.
	Description *string `json:"description,omitempty"`
	// ExternalProviderResourceID - The Microsoft.Network resource identifier of the virtual network.
	ExternalProviderResourceID *string `json:"externalProviderResourceId,omitempty"`
	// SubnetOverrides - The subnet overrides of the virtual network.
	SubnetOverrides *[]SubnetOverride `json:"subnetOverrides,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
}

VirtualNetworkProperties properties of a virtual network.

type WeekDetails

type WeekDetails struct {
	// Weekdays - The days of the week.
	Weekdays *[]string `json:"weekdays,omitempty"`
	// Time - The time of the day.
	Time *string `json:"time,omitempty"`
}

WeekDetails properties of a weekly schedule.

type WindowsOsInfo

type WindowsOsInfo struct {
	// WindowsOsState - The state of the Windows OS. Possible values include: 'NonSysprepped', 'SysprepRequested', 'SysprepApplied'
	WindowsOsState WindowsOsState `json:"windowsOsState,omitempty"`
}

WindowsOsInfo information about a Windows OS.

type WindowsOsState

type WindowsOsState string

WindowsOsState enumerates the values for windows os state.

const (
	// NonSysprepped ...
	NonSysprepped WindowsOsState = "NonSysprepped"
	// SysprepApplied ...
	SysprepApplied WindowsOsState = "SysprepApplied"
	// SysprepRequested ...
	SysprepRequested WindowsOsState = "SysprepRequested"
)

func PossibleWindowsOsStateValues

func PossibleWindowsOsStateValues() []WindowsOsState

PossibleWindowsOsStateValues returns an array of possible values for the WindowsOsState const type.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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