dtl

package
v12.4.0-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package dtl implements the Azure ARM Dtl service API version 2016-05-15.

The DevTest Labs Client.

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 ApplicableSchedule

type ApplicableSchedule struct {
	autorest.Response `json:"-"`
	// 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,omitempty"`
	// ApplicableScheduleProperties - The properties of the resource.
	*ApplicableScheduleProperties `json:"properties,omitempty"`
}

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

func (*ApplicableSchedule) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for ApplicableSchedule struct.

type ApplicableScheduleFragment

type ApplicableScheduleFragment struct {
	// 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,omitempty"`
	// ApplicableSchedulePropertiesFragment - The properties of the resource.
	*ApplicableSchedulePropertiesFragment `json:"properties,omitempty"`
}

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

func (*ApplicableScheduleFragment) UnmarshalJSON

func (asf *ApplicableScheduleFragment) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ApplicableScheduleFragment struct.

type ApplicableScheduleProperties

type ApplicableScheduleProperties struct {
	// LabVmsShutdown - The auto-shutdown schedule, if one has been set at the lab or lab resource level.
	LabVmsShutdown *Schedule `json:"labVmsShutdown,omitempty"`
	// LabVmsStartup - The auto-startup schedule, if one has been set at the lab or lab resource level.
	LabVmsStartup *Schedule `json:"labVmsStartup,omitempty"`
}

ApplicableScheduleProperties properties of a schedules applicable to a virtual machine.

type ApplicableSchedulePropertiesFragment

type ApplicableSchedulePropertiesFragment struct {
	// LabVmsShutdown - The auto-shutdown schedule, if one has been set at the lab or lab resource level.
	LabVmsShutdown *ScheduleFragment `json:"labVmsShutdown,omitempty"`
	// LabVmsStartup - The auto-startup schedule, if one has been set at the lab or lab resource level.
	LabVmsStartup *ScheduleFragment `json:"labVmsStartup,omitempty"`
}

ApplicableSchedulePropertiesFragment properties of a schedules applicable to a virtual machine.

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 ArmTemplate

type ArmTemplate struct {
	autorest.Response `json:"-"`
	// 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,omitempty"`
	// ArmTemplateProperties - The properties of the resource.
	*ArmTemplateProperties `json:"properties,omitempty"`
}

ArmTemplate an Azure Resource Manager template.

func (*ArmTemplate) UnmarshalJSON

func (at *ArmTemplate) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ArmTemplate struct.

type ArmTemplateInfo

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

ArmTemplateInfo information about a generated ARM template.

type ArmTemplateParameterProperties

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

ArmTemplateParameterProperties properties of an Azure Resource Manager template parameter.

type ArmTemplateProperties

type ArmTemplateProperties struct {
	// DisplayName - The display name of the ARM template.
	DisplayName *string `json:"displayName,omitempty"`
	// Description - The description of the ARM template.
	Description *string `json:"description,omitempty"`
	// Publisher - The publisher of the ARM template.
	Publisher *string `json:"publisher,omitempty"`
	// Icon - The URI to the icon of the ARM template.
	Icon *string `json:"icon,omitempty"`
	// Contents - The contents of the ARM template.
	Contents *map[string]interface{} `json:"contents,omitempty"`
	// CreatedDate - The creation date of the armTemplate.
	CreatedDate *date.Time `json:"createdDate,omitempty"`
	// ParametersValueFilesInfo - File name and parameter values information from all azuredeploy.*.parameters.json for the ARM template.
	ParametersValueFilesInfo *[]ParametersValueFileInfo `json:"parametersValueFilesInfo,omitempty"`
}

ArmTemplateProperties properties of an Azure Resource Manager template.

type ArmTemplatesClient

type ArmTemplatesClient struct {
	BaseClient
}

ArmTemplatesClient is the the DevTest Labs Client.

func NewArmTemplatesClient

func NewArmTemplatesClient(subscriptionID string) ArmTemplatesClient

NewArmTemplatesClient creates an instance of the ArmTemplatesClient client.

func NewArmTemplatesClientWithBaseURI

func NewArmTemplatesClientWithBaseURI(baseURI string, subscriptionID string) ArmTemplatesClient

NewArmTemplatesClientWithBaseURI creates an instance of the ArmTemplatesClient client.

func (ArmTemplatesClient) Get

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

Get get azure resource manager template.

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

func (ArmTemplatesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ArmTemplatesClient) GetResponder

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

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

func (ArmTemplatesClient) GetSender

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

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

func (ArmTemplatesClient) List

func (client ArmTemplatesClient) List(ctx context.Context, resourceGroupName string, labName string, artifactSourceName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationArmTemplatePage, err error)

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

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

func (ArmTemplatesClient) ListComplete

func (client ArmTemplatesClient) ListComplete(ctx context.Context, resourceGroupName string, labName string, artifactSourceName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationArmTemplateIterator, err error)

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

func (ArmTemplatesClient) ListPreparer

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

ListPreparer prepares the List request.

func (ArmTemplatesClient) ListResponder

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

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

func (ArmTemplatesClient) ListSender

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

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

type Artifact

type Artifact struct {
	autorest.Response `json:"-"`
	// ID - 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,omitempty"`
	// ArtifactProperties - The properties of the resource.
	*ArtifactProperties `json:"properties,omitempty"`
}

Artifact an artifact.

func (*Artifact) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Artifact struct.

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 ArtifactDeploymentStatusPropertiesFragment

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

ArtifactDeploymentStatusPropertiesFragment 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"`
	// Status - The status of the artifact.
	Status *string `json:"status,omitempty"`
	// DeploymentStatusMessage - The status message from the deployment.
	DeploymentStatusMessage *string `json:"deploymentStatusMessage,omitempty"`
	// VMExtensionStatusMessage - The status message from the virtual machine extension.
	VMExtensionStatusMessage *string `json:"vmExtensionStatusMessage,omitempty"`
	// InstallTime - The time that the artifact starts to install on the virtual machine.
	InstallTime *date.Time `json:"installTime,omitempty"`
}

ArtifactInstallProperties properties of an artifact.

type ArtifactInstallPropertiesFragment

type ArtifactInstallPropertiesFragment struct {
	// ArtifactID - The artifact's identifier.
	ArtifactID *string `json:"artifactId,omitempty"`
	// Parameters - The parameters of the artifact.
	Parameters *[]ArtifactParameterPropertiesFragment `json:"parameters,omitempty"`
	// Status - The status of the artifact.
	Status *string `json:"status,omitempty"`
	// DeploymentStatusMessage - The status message from the deployment.
	DeploymentStatusMessage *string `json:"deploymentStatusMessage,omitempty"`
	// VMExtensionStatusMessage - The status message from the virtual machine extension.
	VMExtensionStatusMessage *string `json:"vmExtensionStatusMessage,omitempty"`
	// InstallTime - The time that the artifact starts to install on the virtual machine.
	InstallTime *date.Time `json:"installTime,omitempty"`
}

ArtifactInstallPropertiesFragment 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 ArtifactParameterPropertiesFragment

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

ArtifactParameterPropertiesFragment properties of an artifact parameter.

type ArtifactProperties

type ArtifactProperties struct {
	// Title - The artifact's title.
	Title *string `json:"title,omitempty"`
	// Description - The artifact's description.
	Description *string `json:"description,omitempty"`
	// Publisher - The artifact's publisher.
	Publisher *string `json:"publisher,omitempty"`
	// FilePath - The file path to the artifact.
	FilePath *string `json:"filePath,omitempty"`
	// Icon - The URI to the artifact icon.
	Icon *string `json:"icon,omitempty"`
	// TargetOsType - The artifact's target OS.
	TargetOsType *string `json:"targetOsType,omitempty"`
	// Parameters - The artifact's parameters.
	Parameters *map[string]interface{} `json:"parameters,omitempty"`
	// CreatedDate - The artifact's creation date.
	CreatedDate *date.Time `json:"createdDate,omitempty"`
}

ArtifactProperties properties of an artifact.

type ArtifactSource

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

ArtifactSource properties of an artifact source.

func (*ArtifactSource) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for ArtifactSource struct.

type ArtifactSourceFragment

type ArtifactSourceFragment struct {
	// 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,omitempty"`
	// ArtifactSourcePropertiesFragment - The properties of the resource.
	*ArtifactSourcePropertiesFragment `json:"properties,omitempty"`
}

ArtifactSourceFragment properties of an artifact source.

func (*ArtifactSourceFragment) UnmarshalJSON

func (asf *ArtifactSourceFragment) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ArtifactSourceFragment struct.

type ArtifactSourceProperties

type ArtifactSourceProperties struct {
	// DisplayName - The artifact source's display name.
	DisplayName *string `json:"displayName,omitempty"`
	// URI - The artifact source's URI.
	URI *string `json:"uri,omitempty"`
	// SourceType - The artifact source's type. Possible values include: 'VsoGit', 'GitHub'
	SourceType SourceControlType `json:"sourceType,omitempty"`
	// FolderPath - The folder containing artifacts.
	FolderPath *string `json:"folderPath,omitempty"`
	// ArmTemplateFolderPath - The folder containing Azure Resource Manager templates.
	ArmTemplateFolderPath *string `json:"armTemplateFolderPath,omitempty"`
	// BranchRef - The artifact source's branch reference.
	BranchRef *string `json:"branchRef,omitempty"`
	// SecurityToken - The security token to authenticate to the artifact source.
	SecurityToken *string `json:"securityToken,omitempty"`
	// Status - Indicates if the artifact source is enabled (values: Enabled, Disabled). Possible values include: 'EnableStatusEnabled', 'EnableStatusDisabled'
	Status EnableStatus `json:"status,omitempty"`
	// CreatedDate - The artifact source's creation date.
	CreatedDate *date.Time `json:"createdDate,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// UniqueIdentifier - The unique immutable identifier of a resource (Guid).
	UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}

ArtifactSourceProperties properties of an artifact source.

type ArtifactSourcePropertiesFragment

type ArtifactSourcePropertiesFragment struct {
	// DisplayName - The artifact source's display name.
	DisplayName *string `json:"displayName,omitempty"`
	// URI - The artifact source's URI.
	URI *string `json:"uri,omitempty"`
	// SourceType - The artifact source's type. Possible values include: 'VsoGit', 'GitHub'
	SourceType SourceControlType `json:"sourceType,omitempty"`
	// FolderPath - The folder containing artifacts.
	FolderPath *string `json:"folderPath,omitempty"`
	// ArmTemplateFolderPath - The folder containing Azure Resource Manager templates.
	ArmTemplateFolderPath *string `json:"armTemplateFolderPath,omitempty"`
	// BranchRef - The artifact source's branch reference.
	BranchRef *string `json:"branchRef,omitempty"`
	// SecurityToken - The security token to authenticate to the artifact source.
	SecurityToken *string `json:"securityToken,omitempty"`
	// Status - Indicates if the artifact source is enabled (values: Enabled, Disabled). Possible values include: 'EnableStatusEnabled', 'EnableStatusDisabled'
	Status EnableStatus `json:"status,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// UniqueIdentifier - The unique immutable identifier of a resource (Guid).
	UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}

ArtifactSourcePropertiesFragment properties of an artifact source.

type ArtifactSourcesClient

type ArtifactSourcesClient struct {
	BaseClient
}

ArtifactSourcesClient is the the DevTest Labs Client.

func NewArtifactSourcesClient

func NewArtifactSourcesClient(subscriptionID string) ArtifactSourcesClient

NewArtifactSourcesClient creates an instance of the ArtifactSourcesClient client.

func NewArtifactSourcesClientWithBaseURI

func NewArtifactSourcesClientWithBaseURI(baseURI string, subscriptionID string) ArtifactSourcesClient

NewArtifactSourcesClientWithBaseURI creates an instance of the ArtifactSourcesClient client.

func (ArtifactSourcesClient) CreateOrUpdate

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

CreateOrUpdate create or replace an existing artifact source.

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

func (ArtifactSourcesClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ArtifactSourcesClient) CreateOrUpdateResponder

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

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

func (ArtifactSourcesClient) CreateOrUpdateSender

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

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

func (ArtifactSourcesClient) Delete

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

Delete delete artifact source.

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

func (ArtifactSourcesClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (ArtifactSourcesClient) DeleteResponder

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

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

func (ArtifactSourcesClient) DeleteSender

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

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

func (ArtifactSourcesClient) Get

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

Get get artifact source.

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

func (ArtifactSourcesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ArtifactSourcesClient) GetResponder

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

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

func (ArtifactSourcesClient) GetSender

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

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

func (ArtifactSourcesClient) List

func (client ArtifactSourcesClient) List(ctx context.Context, resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationArtifactSourcePage, err error)

List list artifact sources in a given lab.

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

func (ArtifactSourcesClient) ListComplete

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

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

func (ArtifactSourcesClient) ListPreparer

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

ListPreparer prepares the List request.

func (ArtifactSourcesClient) ListResponder

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

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

func (ArtifactSourcesClient) ListSender

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

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

func (ArtifactSourcesClient) Update

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

Update modify properties of artifact sources.

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

func (ArtifactSourcesClient) UpdatePreparer

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

UpdatePreparer prepares the Update request.

func (ArtifactSourcesClient) UpdateResponder

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

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

func (ArtifactSourcesClient) UpdateSender

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

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

type ArtifactsClient

type ArtifactsClient struct {
	BaseClient
}

ArtifactsClient is the the DevTest Labs Client.

func NewArtifactsClient

func NewArtifactsClient(subscriptionID string) ArtifactsClient

NewArtifactsClient creates an instance of the ArtifactsClient client.

func NewArtifactsClientWithBaseURI

func NewArtifactsClientWithBaseURI(baseURI string, subscriptionID string) ArtifactsClient

NewArtifactsClientWithBaseURI creates an instance of the ArtifactsClient client.

func (ArtifactsClient) GenerateArmTemplate

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

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

func (ArtifactsClient) GenerateArmTemplatePreparer

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

GenerateArmTemplatePreparer prepares the GenerateArmTemplate request.

func (ArtifactsClient) GenerateArmTemplateResponder

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

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

func (ArtifactsClient) GenerateArmTemplateSender

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

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

func (ArtifactsClient) Get

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

Get get artifact.

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

func (ArtifactsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ArtifactsClient) GetResponder

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

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

func (ArtifactsClient) GetSender

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

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

func (ArtifactsClient) List

func (client ArtifactsClient) List(ctx context.Context, resourceGroupName string, labName string, artifactSourceName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationArtifactPage, err error)

List list artifacts in a given artifact source.

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

func (ArtifactsClient) ListComplete

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

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

func (ArtifactsClient) ListPreparer

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

ListPreparer prepares the List request.

func (ArtifactsClient) ListResponder

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

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

func (ArtifactsClient) ListSender

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

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

type AttachDiskProperties

type AttachDiskProperties struct {
	// LeasedByLabVMID - The resource ID of the Lab virtual machine to which the disk is attached.
	LeasedByLabVMID *string `json:"leasedByLabVmId,omitempty"`
}

AttachDiskProperties properties of the disk to attach.

type AttachNewDataDiskOptions

type AttachNewDataDiskOptions struct {
	// DiskSizeGiB - Size of the disk to be attached in GibiBytes.
	DiskSizeGiB *int32 `json:"diskSizeGiB,omitempty"`
	// DiskName - The name of the disk to be attached.
	DiskName *string `json:"diskName,omitempty"`
	// DiskType - The storage type for the disk (i.e. Standard, Premium). Possible values include: 'Standard', 'Premium'
	DiskType StorageType `json:"diskType,omitempty"`
}

AttachNewDataDiskOptions properties to attach new disk to the Virtual Machine.

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.

type BulkCreationParameters

type BulkCreationParameters struct {
	// InstanceCount - The number of virtual machine instances to create.
	InstanceCount *int32 `json:"instanceCount,omitempty"`
}

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

type CloudError

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

CloudError error from a REST request.

type CloudErrorBody

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

CloudErrorBody body of an error from a REST request.

type ComputeDataDisk

type ComputeDataDisk struct {
	// Name - Gets data disk name.
	Name *string `json:"name,omitempty"`
	// DiskURI - When backed by a blob, the URI of underlying blob.
	DiskURI *string `json:"diskUri,omitempty"`
	// ManagedDiskID - When backed by managed disk, this is the ID of the compute disk resource.
	ManagedDiskID *string `json:"managedDiskId,omitempty"`
	// DiskSizeGiB - Gets data disk size in GiB.
	DiskSizeGiB *int32 `json:"diskSizeGiB,omitempty"`
}

ComputeDataDisk a data disks attached to a virtual machine.

type ComputeDataDiskFragment

type ComputeDataDiskFragment struct {
	// Name - Gets data disk name.
	Name *string `json:"name,omitempty"`
	// DiskURI - When backed by a blob, the URI of underlying blob.
	DiskURI *string `json:"diskUri,omitempty"`
	// ManagedDiskID - When backed by managed disk, this is the ID of the compute disk resource.
	ManagedDiskID *string `json:"managedDiskId,omitempty"`
	// DiskSizeGiB - Gets data disk size in GiB.
	DiskSizeGiB *int32 `json:"diskSizeGiB,omitempty"`
}

ComputeDataDiskFragment a data disks attached to a virtual machine.

type ComputeVMInstanceViewStatus

type ComputeVMInstanceViewStatus struct {
	// Code - Gets the status Code.
	Code *string `json:"code,omitempty"`
	// DisplayStatus - Gets the short localizable label for the status.
	DisplayStatus *string `json:"displayStatus,omitempty"`
	// Message - Gets the message associated with the status.
	Message *string `json:"message,omitempty"`
}

ComputeVMInstanceViewStatus status information about a virtual machine.

type ComputeVMInstanceViewStatusFragment

type ComputeVMInstanceViewStatusFragment struct {
	// Code - Gets the status Code.
	Code *string `json:"code,omitempty"`
	// DisplayStatus - Gets the short localizable label for the status.
	DisplayStatus *string `json:"displayStatus,omitempty"`
	// Message - Gets the message associated with the status.
	Message *string `json:"message,omitempty"`
}

ComputeVMInstanceViewStatusFragment status information about a virtual machine.

type ComputeVMProperties

type ComputeVMProperties struct {
	// Statuses - Gets the statuses of the virtual machine.
	Statuses *[]ComputeVMInstanceViewStatus `json:"statuses,omitempty"`
	// OsType - Gets the OS type of the virtual machine.
	OsType *string `json:"osType,omitempty"`
	// VMSize - Gets the size of the virtual machine.
	VMSize *string `json:"vmSize,omitempty"`
	// NetworkInterfaceID - Gets the network interface ID of the virtual machine.
	NetworkInterfaceID *string `json:"networkInterfaceId,omitempty"`
	// OsDiskID - Gets OS disk blob uri for the virtual machine.
	OsDiskID *string `json:"osDiskId,omitempty"`
	// DataDiskIds - Gets data disks blob uri for the virtual machine.
	DataDiskIds *[]string `json:"dataDiskIds,omitempty"`
	// DataDisks - Gets all data disks attached to the virtual machine.
	DataDisks *[]ComputeDataDisk `json:"dataDisks,omitempty"`
}

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

type ComputeVMPropertiesFragment

type ComputeVMPropertiesFragment struct {
	// Statuses - Gets the statuses of the virtual machine.
	Statuses *[]ComputeVMInstanceViewStatusFragment `json:"statuses,omitempty"`
	// OsType - Gets the OS type of the virtual machine.
	OsType *string `json:"osType,omitempty"`
	// VMSize - Gets the size of the virtual machine.
	VMSize *string `json:"vmSize,omitempty"`
	// NetworkInterfaceID - Gets the network interface ID of the virtual machine.
	NetworkInterfaceID *string `json:"networkInterfaceId,omitempty"`
	// OsDiskID - Gets OS disk blob uri for the virtual machine.
	OsDiskID *string `json:"osDiskId,omitempty"`
	// DataDiskIds - Gets data disks blob uri for the virtual machine.
	DataDiskIds *[]string `json:"dataDiskIds,omitempty"`
	// DataDisks - Gets all data disks attached to the virtual machine.
	DataDisks *[]ComputeDataDiskFragment `json:"dataDisks,omitempty"`
}

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

type CostThresholdProperties

type CostThresholdProperties struct {
	// ThresholdID - The ID of the cost threshold item.
	ThresholdID *string `json:"thresholdId,omitempty"`
	// PercentageThreshold - The value of the percentage cost threshold.
	PercentageThreshold *PercentageCostThresholdProperties `json:"percentageThreshold,omitempty"`
	// DisplayOnChart - Indicates whether this threshold will be displayed on cost charts. Possible values include: 'Enabled', 'Disabled'
	DisplayOnChart CostThresholdStatus `json:"displayOnChart,omitempty"`
	// SendNotificationWhenExceeded - Indicates whether notifications will be sent when this threshold is exceeded. Possible values include: 'Enabled', 'Disabled'
	SendNotificationWhenExceeded CostThresholdStatus `json:"sendNotificationWhenExceeded,omitempty"`
	// NotificationSent - Indicates the datetime when notifications were last sent for this threshold.
	NotificationSent *string `json:"NotificationSent,omitempty"`
}

CostThresholdProperties properties of a cost threshold item.

type CostThresholdStatus

type CostThresholdStatus string

CostThresholdStatus enumerates the values for cost threshold status.

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

type CostType

type CostType string

CostType enumerates the values for cost type.

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

type CostsClient

type CostsClient struct {
	BaseClient
}

CostsClient is the the DevTest Labs Client.

func NewCostsClient

func NewCostsClient(subscriptionID string) CostsClient

NewCostsClient creates an instance of the CostsClient client.

func NewCostsClientWithBaseURI

func NewCostsClientWithBaseURI(baseURI string, subscriptionID string) CostsClient

NewCostsClientWithBaseURI creates an instance of the CostsClient client.

func (CostsClient) CreateOrUpdate

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

CreateOrUpdate create or replace an existing cost.

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

func (CostsClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (CostsClient) CreateOrUpdateResponder

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

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

func (CostsClient) CreateOrUpdateSender

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

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

func (CostsClient) Get

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

Get get cost.

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

func (CostsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (CostsClient) GetResponder

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

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

func (CostsClient) GetSender

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

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

type CustomImage

type CustomImage struct {
	autorest.Response `json:"-"`
	// ID - 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,omitempty"`
	// CustomImageProperties - The properties of the resource.
	*CustomImageProperties `json:"properties,omitempty"`
}

CustomImage a custom image.

func (*CustomImage) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for CustomImage struct.

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

type CustomImageProperties

type CustomImageProperties struct {
	// VM - The virtual machine from which the image is to be created.
	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"`
	// 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"`
	// ManagedImageID - The Managed Image Id backing the custom image.
	ManagedImageID *string `json:"managedImageId,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// UniqueIdentifier - The unique immutable identifier of a resource (Guid).
	UniqueIdentifier *string `json:"uniqueIdentifier,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"`
	// OsType - The OS type of the custom image (i.e. Windows, Linux). Possible values include: 'Windows', 'Linux', 'None'
	OsType CustomImageOsType `json:"osType,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"`
	// 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 CustomImagesClient

type CustomImagesClient struct {
	BaseClient
}

CustomImagesClient is the the DevTest Labs Client.

func NewCustomImagesClient

func NewCustomImagesClient(subscriptionID string) CustomImagesClient

NewCustomImagesClient creates an instance of the CustomImagesClient client.

func NewCustomImagesClientWithBaseURI

func NewCustomImagesClientWithBaseURI(baseURI string, subscriptionID string) CustomImagesClient

NewCustomImagesClientWithBaseURI creates an instance of the CustomImagesClient client.

func (CustomImagesClient) CreateOrUpdate

func (client CustomImagesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, labName string, name string, customImage CustomImage) (result CustomImagesCreateOrUpdateFuture, err error)

CreateOrUpdate create or replace an existing custom image. This operation can take a while to complete.

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

func (CustomImagesClient) CreateOrUpdatePreparer

func (client CustomImagesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, labName string, name string, customImage CustomImage) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (CustomImagesClient) CreateOrUpdateResponder

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

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

func (CustomImagesClient) CreateOrUpdateSender

func (client CustomImagesClient) CreateOrUpdateSender(req *http.Request) (future CustomImagesCreateOrUpdateFuture, err error)

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

func (CustomImagesClient) Delete

func (client CustomImagesClient) Delete(ctx context.Context, resourceGroupName string, labName string, name string) (result CustomImagesDeleteFuture, err error)

Delete delete custom image. This operation can take a while to complete.

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

func (CustomImagesClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (CustomImagesClient) DeleteResponder

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

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

func (CustomImagesClient) DeleteSender

func (client CustomImagesClient) DeleteSender(req *http.Request) (future CustomImagesDeleteFuture, err error)

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

func (CustomImagesClient) Get

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

Get get custom image.

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

func (CustomImagesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (CustomImagesClient) GetResponder

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

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

func (CustomImagesClient) GetSender

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

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

func (CustomImagesClient) List

func (client CustomImagesClient) List(ctx context.Context, resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationCustomImagePage, err error)

List list custom images in a given lab.

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

func (CustomImagesClient) ListComplete

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

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

func (CustomImagesClient) ListPreparer

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

ListPreparer prepares the List request.

func (CustomImagesClient) ListResponder

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

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

func (CustomImagesClient) ListSender

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

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

type CustomImagesCreateOrUpdateFuture

type CustomImagesCreateOrUpdateFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (CustomImagesCreateOrUpdateFuture) Result

func (future CustomImagesCreateOrUpdateFuture) Result(client CustomImagesClient) (ci CustomImage, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type CustomImagesDeleteFuture

type CustomImagesDeleteFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (CustomImagesDeleteFuture) Result

func (future CustomImagesDeleteFuture) Result(client CustomImagesClient) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type DataDiskProperties

type DataDiskProperties struct {
	// AttachNewDataDiskOptions - Specifies options to attach a new disk to the virtual machine.
	AttachNewDataDiskOptions *AttachNewDataDiskOptions `json:"attachNewDataDiskOptions,omitempty"`
	// ExistingLabDiskID - Specifies the existing lab disk id to attach to virtual machine.
	ExistingLabDiskID *string `json:"existingLabDiskId,omitempty"`
	// HostCaching - Caching option for a data disk (i.e. None, ReadOnly, ReadWrite). Possible values include: 'HostCachingOptionsNone', 'HostCachingOptionsReadOnly', 'HostCachingOptionsReadWrite'
	HostCaching HostCachingOptions `json:"hostCaching,omitempty"`
}

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

type DayDetails

type DayDetails struct {
	// Time - The time of day the schedule will occur.
	Time *string `json:"time,omitempty"`
}

DayDetails properties of a daily schedule.

type DayDetailsFragment

type DayDetailsFragment struct {
	// Time - The time of day the schedule will occur.
	Time *string `json:"time,omitempty"`
}

DayDetailsFragment properties of a daily schedule.

type DetachDataDiskProperties

type DetachDataDiskProperties struct {
	// ExistingLabDiskID - Specifies the disk resource ID to detach from virtual machine.
	ExistingLabDiskID *string `json:"existingLabDiskId,omitempty"`
}

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

type DetachDiskProperties

type DetachDiskProperties struct {
	// LeasedByLabVMID - The resource ID of the Lab VM to which the disk is attached.
	LeasedByLabVMID *string `json:"leasedByLabVmId,omitempty"`
}

DetachDiskProperties properties of the disk to detach.

type Disk

type Disk struct {
	autorest.Response `json:"-"`
	// 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,omitempty"`
	// DiskProperties - The properties of the resource.
	*DiskProperties `json:"properties,omitempty"`
}

Disk a Disk.

func (*Disk) UnmarshalJSON

func (d *Disk) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Disk struct.

type DiskProperties

type DiskProperties struct {
	// DiskType - The storage type for the disk (i.e. Standard, Premium). Possible values include: 'Standard', 'Premium'
	DiskType StorageType `json:"diskType,omitempty"`
	// DiskSizeGiB - The size of the disk in GibiBytes.
	DiskSizeGiB *int32 `json:"diskSizeGiB,omitempty"`
	// LeasedByLabVMID - The resource ID of the VM to which this disk is leased.
	LeasedByLabVMID *string `json:"leasedByLabVmId,omitempty"`
	// DiskBlobName - When backed by a blob, the name of the VHD blob without extension.
	DiskBlobName *string `json:"diskBlobName,omitempty"`
	// DiskURI - When backed by a blob, the URI of underlying blob.
	DiskURI *string `json:"diskUri,omitempty"`
	// CreatedDate - The creation date of the disk.
	CreatedDate *date.Time `json:"createdDate,omitempty"`
	// HostCaching - The host caching policy of the disk (i.e. None, ReadOnly, ReadWrite).
	HostCaching *string `json:"hostCaching,omitempty"`
	// ManagedDiskID - When backed by managed disk, this is the ID of the compute disk resource.
	ManagedDiskID *string `json:"managedDiskId,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// UniqueIdentifier - The unique immutable identifier of a resource (Guid).
	UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}

DiskProperties properties of a disk.

type DisksAttachFuture

type DisksAttachFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (DisksAttachFuture) Result

func (future DisksAttachFuture) Result(client DisksClient) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type DisksClient

type DisksClient struct {
	BaseClient
}

DisksClient is the the DevTest Labs Client.

func NewDisksClient

func NewDisksClient(subscriptionID string) DisksClient

NewDisksClient creates an instance of the DisksClient client.

func NewDisksClientWithBaseURI

func NewDisksClientWithBaseURI(baseURI string, subscriptionID string) DisksClient

NewDisksClientWithBaseURI creates an instance of the DisksClient client.

func (DisksClient) Attach

func (client DisksClient) Attach(ctx context.Context, resourceGroupName string, labName string, userName string, name string, attachDiskProperties AttachDiskProperties) (result DisksAttachFuture, err error)

Attach attach and create the lease of the disk to the virtual machine. This operation can take a while to complete.

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

func (DisksClient) AttachPreparer

func (client DisksClient) AttachPreparer(ctx context.Context, resourceGroupName string, labName string, userName string, name string, attachDiskProperties AttachDiskProperties) (*http.Request, error)

AttachPreparer prepares the Attach request.

func (DisksClient) AttachResponder

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

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

func (DisksClient) AttachSender

func (client DisksClient) AttachSender(req *http.Request) (future DisksAttachFuture, err error)

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

func (DisksClient) CreateOrUpdate

func (client DisksClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, labName string, userName string, name string, disk Disk) (result DisksCreateOrUpdateFuture, err error)

CreateOrUpdate create or replace an existing disk. This operation can take a while to complete.

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

func (DisksClient) CreateOrUpdatePreparer

func (client DisksClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, labName string, userName string, name string, disk Disk) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DisksClient) CreateOrUpdateResponder

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

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

func (DisksClient) CreateOrUpdateSender

func (client DisksClient) CreateOrUpdateSender(req *http.Request) (future DisksCreateOrUpdateFuture, err error)

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

func (DisksClient) Delete

func (client DisksClient) Delete(ctx context.Context, resourceGroupName string, labName string, userName string, name string) (result DisksDeleteFuture, err error)

Delete delete disk. This operation can take a while to complete.

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

func (DisksClient) DeletePreparer

func (client DisksClient) DeletePreparer(ctx context.Context, resourceGroupName string, labName string, userName string, name string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (DisksClient) DeleteResponder

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

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

func (DisksClient) DeleteSender

func (client DisksClient) DeleteSender(req *http.Request) (future DisksDeleteFuture, err error)

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

func (DisksClient) Detach

func (client DisksClient) Detach(ctx context.Context, resourceGroupName string, labName string, userName string, name string, detachDiskProperties DetachDiskProperties) (result DisksDetachFuture, err error)

Detach detach and break the lease of the disk attached to the virtual machine. This operation can take a while to complete.

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

func (DisksClient) DetachPreparer

func (client DisksClient) DetachPreparer(ctx context.Context, resourceGroupName string, labName string, userName string, name string, detachDiskProperties DetachDiskProperties) (*http.Request, error)

DetachPreparer prepares the Detach request.

func (DisksClient) DetachResponder

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

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

func (DisksClient) DetachSender

func (client DisksClient) DetachSender(req *http.Request) (future DisksDetachFuture, err error)

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

func (DisksClient) Get

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

Get get disk.

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

func (DisksClient) GetPreparer

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

GetPreparer prepares the Get request.

func (DisksClient) GetResponder

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

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

func (DisksClient) GetSender

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

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

func (DisksClient) List

func (client DisksClient) List(ctx context.Context, resourceGroupName string, labName string, userName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationDiskPage, err error)

List list disks in a given user profile.

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

func (DisksClient) ListComplete

func (client DisksClient) ListComplete(ctx context.Context, resourceGroupName string, labName string, userName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationDiskIterator, err error)

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

func (DisksClient) ListPreparer

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

ListPreparer prepares the List request.

func (DisksClient) ListResponder

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

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

func (DisksClient) ListSender

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

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

type DisksCreateOrUpdateFuture

type DisksCreateOrUpdateFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (DisksCreateOrUpdateFuture) Result

func (future DisksCreateOrUpdateFuture) Result(client DisksClient) (d Disk, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type DisksDeleteFuture

type DisksDeleteFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (DisksDeleteFuture) Result

func (future DisksDeleteFuture) Result(client DisksClient) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type DisksDetachFuture

type DisksDetachFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (DisksDetachFuture) Result

func (future DisksDetachFuture) Result(client DisksClient) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type EnableStatus

type EnableStatus string

EnableStatus enumerates the values for enable status.

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

type Environment

type Environment struct {
	autorest.Response `json:"-"`
	// 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,omitempty"`
	// EnvironmentProperties - The properties of the resource.
	*EnvironmentProperties `json:"properties,omitempty"`
}

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

func (*Environment) UnmarshalJSON

func (e *Environment) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Environment struct.

type EnvironmentDeploymentProperties

type EnvironmentDeploymentProperties struct {
	// ArmTemplateID - The Azure Resource Manager template's identifier.
	ArmTemplateID *string `json:"armTemplateId,omitempty"`
	// Parameters - The parameters of the Azure Resource Manager template.
	Parameters *[]ArmTemplateParameterProperties `json:"parameters,omitempty"`
}

EnvironmentDeploymentProperties properties of an environment deployment.

type EnvironmentProperties

type EnvironmentProperties struct {
	// DeploymentProperties - The deployment properties of the environment.
	DeploymentProperties *EnvironmentDeploymentProperties `json:"deploymentProperties,omitempty"`
	// ArmTemplateDisplayName - The display name of the Azure Resource Manager template that produced the environment.
	ArmTemplateDisplayName *string `json:"armTemplateDisplayName,omitempty"`
	// ResourceGroupID - The identifier of the resource group containing the environment's resources.
	ResourceGroupID *string `json:"resourceGroupId,omitempty"`
	// CreatedByUser - The creator of the environment.
	CreatedByUser *string `json:"createdByUser,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// UniqueIdentifier - The unique immutable identifier of a resource (Guid).
	UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}

EnvironmentProperties properties of an environment.

type EnvironmentsClient

type EnvironmentsClient struct {
	BaseClient
}

EnvironmentsClient is the the DevTest Labs Client.

func NewEnvironmentsClient

func NewEnvironmentsClient(subscriptionID string) EnvironmentsClient

NewEnvironmentsClient creates an instance of the EnvironmentsClient client.

func NewEnvironmentsClientWithBaseURI

func NewEnvironmentsClientWithBaseURI(baseURI string, subscriptionID string) EnvironmentsClient

NewEnvironmentsClientWithBaseURI creates an instance of the EnvironmentsClient client.

func (EnvironmentsClient) CreateOrUpdate

func (client EnvironmentsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, labName string, userName string, name string, dtlEnvironment Environment) (result EnvironmentsCreateOrUpdateFuture, err error)

CreateOrUpdate create or replace an existing environment. This operation can take a while to complete.

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

func (EnvironmentsClient) CreateOrUpdatePreparer

func (client EnvironmentsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, labName string, userName string, name string, dtlEnvironment Environment) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (EnvironmentsClient) CreateOrUpdateResponder

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

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

func (EnvironmentsClient) CreateOrUpdateSender

func (client EnvironmentsClient) CreateOrUpdateSender(req *http.Request) (future EnvironmentsCreateOrUpdateFuture, err error)

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

func (EnvironmentsClient) Delete

func (client EnvironmentsClient) Delete(ctx context.Context, resourceGroupName string, labName string, userName string, name string) (result EnvironmentsDeleteFuture, err error)

Delete delete environment. This operation can take a while to complete.

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

func (EnvironmentsClient) DeletePreparer

func (client EnvironmentsClient) DeletePreparer(ctx context.Context, resourceGroupName string, labName string, userName string, name string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (EnvironmentsClient) DeleteResponder

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

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

func (EnvironmentsClient) DeleteSender

func (client EnvironmentsClient) DeleteSender(req *http.Request) (future EnvironmentsDeleteFuture, err error)

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

func (EnvironmentsClient) Get

func (client EnvironmentsClient) Get(ctx context.Context, resourceGroupName string, labName string, userName string, name string, expand string) (result Environment, err error)

Get get environment.

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

func (EnvironmentsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (EnvironmentsClient) GetResponder

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

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

func (EnvironmentsClient) GetSender

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

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

func (EnvironmentsClient) List

func (client EnvironmentsClient) List(ctx context.Context, resourceGroupName string, labName string, userName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationDtlEnvironmentPage, err error)

List list environments in a given user profile.

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

func (EnvironmentsClient) ListComplete

func (client EnvironmentsClient) ListComplete(ctx context.Context, resourceGroupName string, labName string, userName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationDtlEnvironmentIterator, err error)

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

func (EnvironmentsClient) ListPreparer

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

ListPreparer prepares the List request.

func (EnvironmentsClient) ListResponder

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

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

func (EnvironmentsClient) ListSender

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

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

type EnvironmentsCreateOrUpdateFuture

type EnvironmentsCreateOrUpdateFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (EnvironmentsCreateOrUpdateFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type EnvironmentsDeleteFuture

type EnvironmentsDeleteFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (EnvironmentsDeleteFuture) Result

func (future EnvironmentsDeleteFuture) Result(client EnvironmentsClient) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

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 Event

type Event struct {
	// EventName - The event type for which this notification is enabled (i.e. AutoShutdown, Cost). Possible values include: 'AutoShutdown', 'Cost'
	EventName NotificationChannelEventType `json:"eventName,omitempty"`
}

Event an event to be notified for.

type EventFragment

type EventFragment struct {
	// EventName - The event type for which this notification is enabled (i.e. AutoShutdown, Cost). Possible values include: 'AutoShutdown', 'Cost'
	EventName NotificationChannelEventType `json:"eventName,omitempty"`
}

EventFragment an event to be notified for.

type ExportResourceUsageParameters

type ExportResourceUsageParameters struct {
	// BlobStorageAbsoluteSasURI - The blob storage absolute sas uri with write permission to the container which the usage data needs to be uploaded to.
	BlobStorageAbsoluteSasURI *string `json:"blobStorageAbsoluteSasUri,omitempty"`
	// UsageStartDate - The start time of the usage. If not provided, usage will be reported since the beginning of data collection.
	UsageStartDate *date.Time `json:"usageStartDate,omitempty"`
}

ExportResourceUsageParameters the parameters of the export operation.

type ExternalSubnet

type ExternalSubnet struct {
	// ID - Gets or sets the identifier.
	ID *string `json:"id,omitempty"`
	// Name - Gets or sets the name.
	Name *string `json:"name,omitempty"`
}

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

type ExternalSubnetFragment

type ExternalSubnetFragment struct {
	// ID - Gets or sets the identifier.
	ID *string `json:"id,omitempty"`
	// Name - Gets or sets the name.
	Name *string `json:"name,omitempty"`
}

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

type FileUploadOptions

type FileUploadOptions string

FileUploadOptions enumerates the values for file upload options.

const (
	// FileUploadOptionsNone ...
	FileUploadOptionsNone FileUploadOptions = "None"
	// FileUploadOptionsUploadFilesAndGenerateSasTokens ...
	FileUploadOptionsUploadFilesAndGenerateSasTokens FileUploadOptions = "UploadFilesAndGenerateSasTokens"
)

type Formula

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

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

func (*Formula) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Formula struct.

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 *LabVirtualMachineCreationParameter `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"`
	// UniqueIdentifier - The unique immutable identifier of a resource (Guid).
	UniqueIdentifier *string `json:"uniqueIdentifier,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 FormulasClient

type FormulasClient struct {
	BaseClient
}

FormulasClient is the the DevTest Labs Client.

func NewFormulasClient

func NewFormulasClient(subscriptionID string) FormulasClient

NewFormulasClient creates an instance of the FormulasClient client.

func NewFormulasClientWithBaseURI

func NewFormulasClientWithBaseURI(baseURI string, subscriptionID string) FormulasClient

NewFormulasClientWithBaseURI creates an instance of the FormulasClient client.

func (FormulasClient) CreateOrUpdate

func (client FormulasClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, labName string, name string, formula Formula) (result FormulasCreateOrUpdateFuture, err error)

CreateOrUpdate create or replace an existing Formula. This operation can take a while to complete.

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

func (FormulasClient) CreateOrUpdatePreparer

func (client FormulasClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, labName string, name string, formula Formula) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (FormulasClient) CreateOrUpdateResponder

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

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

func (FormulasClient) CreateOrUpdateSender

func (client FormulasClient) CreateOrUpdateSender(req *http.Request) (future FormulasCreateOrUpdateFuture, err error)

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

func (FormulasClient) Delete

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

Delete delete formula.

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

func (FormulasClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (FormulasClient) DeleteResponder

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

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

func (FormulasClient) DeleteSender

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

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

func (FormulasClient) Get

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

Get get formula.

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

func (FormulasClient) GetPreparer

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

GetPreparer prepares the Get request.

func (FormulasClient) GetResponder

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

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

func (FormulasClient) GetSender

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

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

func (FormulasClient) List

func (client FormulasClient) List(ctx context.Context, resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationFormulaPage, err error)

List list formulas in a given lab.

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

func (FormulasClient) ListComplete

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

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

func (FormulasClient) ListPreparer

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

ListPreparer prepares the List request.

func (FormulasClient) ListResponder

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

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

func (FormulasClient) ListSender

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

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

type FormulasCreateOrUpdateFuture

type FormulasCreateOrUpdateFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (FormulasCreateOrUpdateFuture) Result

func (future FormulasCreateOrUpdateFuture) Result(client FormulasClient) (f Formula, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type GalleryImage

type GalleryImage struct {
	// 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,omitempty"`
	// GalleryImageProperties - The properties of the resource.
	*GalleryImageProperties `json:"properties,omitempty"`
}

GalleryImage a gallery image.

func (*GalleryImage) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for GalleryImage struct.

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 GalleryImageReferenceFragment

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

GalleryImageReferenceFragment the reference information for an Azure Marketplace image.

type GalleryImagesClient

type GalleryImagesClient struct {
	BaseClient
}

GalleryImagesClient is the the DevTest Labs Client.

func NewGalleryImagesClient

func NewGalleryImagesClient(subscriptionID string) GalleryImagesClient

NewGalleryImagesClient creates an instance of the GalleryImagesClient client.

func NewGalleryImagesClientWithBaseURI

func NewGalleryImagesClientWithBaseURI(baseURI string, subscriptionID string) GalleryImagesClient

NewGalleryImagesClientWithBaseURI creates an instance of the GalleryImagesClient client.

func (GalleryImagesClient) List

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

List list gallery images in a given lab.

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

func (GalleryImagesClient) ListComplete

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

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

func (GalleryImagesClient) ListPreparer

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

ListPreparer prepares the List request.

func (GalleryImagesClient) ListResponder

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

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

func (GalleryImagesClient) ListSender

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

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

type GenerateArmTemplateRequest

type GenerateArmTemplateRequest struct {
	// VirtualMachineName - 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"`
	// FileUploadOptions - Options for uploading the files for the artifact. UploadFilesAndGenerateSasTokens is the default value. Possible values include: 'FileUploadOptionsUploadFilesAndGenerateSasTokens', 'FileUploadOptionsNone'
	FileUploadOptions FileUploadOptions `json:"fileUploadOptions,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 reponse body for generating an upload URI.

type GlobalSchedulesClient

type GlobalSchedulesClient struct {
	BaseClient
}

GlobalSchedulesClient is the the DevTest Labs Client.

func NewGlobalSchedulesClient

func NewGlobalSchedulesClient(subscriptionID string) GlobalSchedulesClient

NewGlobalSchedulesClient creates an instance of the GlobalSchedulesClient client.

func NewGlobalSchedulesClientWithBaseURI

func NewGlobalSchedulesClientWithBaseURI(baseURI string, subscriptionID string) GlobalSchedulesClient

NewGlobalSchedulesClientWithBaseURI creates an instance of the GlobalSchedulesClient client.

func (GlobalSchedulesClient) CreateOrUpdate

func (client GlobalSchedulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, name string, schedule Schedule) (result Schedule, err error)

CreateOrUpdate create or replace an existing schedule.

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

func (GlobalSchedulesClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (GlobalSchedulesClient) CreateOrUpdateResponder

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

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

func (GlobalSchedulesClient) CreateOrUpdateSender

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

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

func (GlobalSchedulesClient) Delete

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

Delete delete schedule.

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

func (GlobalSchedulesClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (GlobalSchedulesClient) DeleteResponder

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

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

func (GlobalSchedulesClient) DeleteSender

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

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

func (GlobalSchedulesClient) Execute

func (client GlobalSchedulesClient) Execute(ctx context.Context, resourceGroupName string, name string) (result GlobalSchedulesExecuteFuture, err error)

Execute execute a schedule. This operation can take a while to complete.

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

func (GlobalSchedulesClient) ExecutePreparer

func (client GlobalSchedulesClient) ExecutePreparer(ctx context.Context, resourceGroupName string, name string) (*http.Request, error)

ExecutePreparer prepares the Execute request.

func (GlobalSchedulesClient) ExecuteResponder

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

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

func (GlobalSchedulesClient) ExecuteSender

func (client GlobalSchedulesClient) ExecuteSender(req *http.Request) (future GlobalSchedulesExecuteFuture, err error)

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

func (GlobalSchedulesClient) Get

func (client GlobalSchedulesClient) Get(ctx context.Context, resourceGroupName string, name string, expand string) (result Schedule, err error)

Get get schedule.

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

func (GlobalSchedulesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (GlobalSchedulesClient) GetResponder

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

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

func (GlobalSchedulesClient) GetSender

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

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

func (GlobalSchedulesClient) ListByResourceGroup

func (client GlobalSchedulesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationSchedulePage, err error)

ListByResourceGroup list schedules in a resource group.

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

func (GlobalSchedulesClient) ListByResourceGroupComplete

func (client GlobalSchedulesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationScheduleIterator, err error)

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

func (GlobalSchedulesClient) ListByResourceGroupPreparer

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (GlobalSchedulesClient) ListByResourceGroupResponder

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

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

func (GlobalSchedulesClient) ListByResourceGroupSender

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

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

func (GlobalSchedulesClient) ListBySubscription

func (client GlobalSchedulesClient) ListBySubscription(ctx context.Context, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationSchedulePage, err error)

ListBySubscription list schedules in a subscription.

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

func (GlobalSchedulesClient) ListBySubscriptionComplete

func (client GlobalSchedulesClient) ListBySubscriptionComplete(ctx context.Context, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationScheduleIterator, err error)

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

func (GlobalSchedulesClient) ListBySubscriptionPreparer

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

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (GlobalSchedulesClient) ListBySubscriptionResponder

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

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

func (GlobalSchedulesClient) ListBySubscriptionSender

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

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

func (GlobalSchedulesClient) Retarget

func (client GlobalSchedulesClient) Retarget(ctx context.Context, resourceGroupName string, name string, retargetScheduleProperties RetargetScheduleProperties) (result GlobalSchedulesRetargetFuture, err error)

Retarget updates a schedule's target resource Id. This operation can take a while to complete.

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

func (GlobalSchedulesClient) RetargetPreparer

func (client GlobalSchedulesClient) RetargetPreparer(ctx context.Context, resourceGroupName string, name string, retargetScheduleProperties RetargetScheduleProperties) (*http.Request, error)

RetargetPreparer prepares the Retarget request.

func (GlobalSchedulesClient) RetargetResponder

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

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

func (GlobalSchedulesClient) RetargetSender

func (client GlobalSchedulesClient) RetargetSender(req *http.Request) (future GlobalSchedulesRetargetFuture, err error)

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

func (GlobalSchedulesClient) Update

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

Update modify properties of schedules.

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

func (GlobalSchedulesClient) UpdatePreparer

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

UpdatePreparer prepares the Update request.

func (GlobalSchedulesClient) UpdateResponder

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

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

func (GlobalSchedulesClient) UpdateSender

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

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

type GlobalSchedulesExecuteFuture

type GlobalSchedulesExecuteFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (GlobalSchedulesExecuteFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type GlobalSchedulesRetargetFuture

type GlobalSchedulesRetargetFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (GlobalSchedulesRetargetFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type HTTPStatusCode

type HTTPStatusCode string

HTTPStatusCode enumerates the values for http status code.

const (
	// Accepted ...
	Accepted HTTPStatusCode = "Accepted"
	// BadGateway ...
	BadGateway HTTPStatusCode = "BadGateway"
	// BadRequest ...
	BadRequest HTTPStatusCode = "BadRequest"
	// Conflict ...
	Conflict HTTPStatusCode = "Conflict"
	// Continue ...
	Continue HTTPStatusCode = "Continue"
	// Created ...
	Created HTTPStatusCode = "Created"
	// ExpectationFailed ...
	ExpectationFailed HTTPStatusCode = "ExpectationFailed"
	// Forbidden ...
	Forbidden HTTPStatusCode = "Forbidden"
	// GatewayTimeout ...
	GatewayTimeout HTTPStatusCode = "GatewayTimeout"
	// Gone ...
	Gone HTTPStatusCode = "Gone"
	// HTTPVersionNotSupported ...
	HTTPVersionNotSupported HTTPStatusCode = "HttpVersionNotSupported"
	// InternalServerError ...
	InternalServerError HTTPStatusCode = "InternalServerError"
	// LengthRequired ...
	LengthRequired HTTPStatusCode = "LengthRequired"
	// MethodNotAllowed ...
	MethodNotAllowed HTTPStatusCode = "MethodNotAllowed"
	// MovedPermanently ...
	MovedPermanently HTTPStatusCode = "MovedPermanently"
	// MultipleChoices ...
	MultipleChoices HTTPStatusCode = "MultipleChoices"
	// NoContent ...
	NoContent HTTPStatusCode = "NoContent"
	// NonAuthoritativeInformation ...
	NonAuthoritativeInformation HTTPStatusCode = "NonAuthoritativeInformation"
	// NotAcceptable ...
	NotAcceptable HTTPStatusCode = "NotAcceptable"
	// NotFound ...
	NotFound HTTPStatusCode = "NotFound"
	// NotImplemented ...
	NotImplemented HTTPStatusCode = "NotImplemented"
	// NotModified ...
	NotModified HTTPStatusCode = "NotModified"
	// OK ...
	OK HTTPStatusCode = "OK"
	// PartialContent ...
	PartialContent HTTPStatusCode = "PartialContent"
	// PaymentRequired ...
	PaymentRequired HTTPStatusCode = "PaymentRequired"
	// PreconditionFailed ...
	PreconditionFailed HTTPStatusCode = "PreconditionFailed"
	// ProxyAuthenticationRequired ...
	ProxyAuthenticationRequired HTTPStatusCode = "ProxyAuthenticationRequired"
	// Redirect ...
	Redirect HTTPStatusCode = "Redirect"
	// RequestedRangeNotSatisfiable ...
	RequestedRangeNotSatisfiable HTTPStatusCode = "RequestedRangeNotSatisfiable"
	// RequestEntityTooLarge ...
	RequestEntityTooLarge HTTPStatusCode = "RequestEntityTooLarge"
	// RequestTimeout ...
	RequestTimeout HTTPStatusCode = "RequestTimeout"
	// RequestURITooLong ...
	RequestURITooLong HTTPStatusCode = "RequestUriTooLong"
	// ResetContent ...
	ResetContent HTTPStatusCode = "ResetContent"
	// SeeOther ...
	SeeOther HTTPStatusCode = "SeeOther"
	// ServiceUnavailable ...
	ServiceUnavailable HTTPStatusCode = "ServiceUnavailable"
	// SwitchingProtocols ...
	SwitchingProtocols HTTPStatusCode = "SwitchingProtocols"
	// TemporaryRedirect ...
	TemporaryRedirect HTTPStatusCode = "TemporaryRedirect"
	// Unauthorized ...
	Unauthorized HTTPStatusCode = "Unauthorized"
	// UnsupportedMediaType ...
	UnsupportedMediaType HTTPStatusCode = "UnsupportedMediaType"
	// Unused ...
	Unused HTTPStatusCode = "Unused"
	// UpgradeRequired ...
	UpgradeRequired HTTPStatusCode = "UpgradeRequired"
	// UseProxy ...
	UseProxy HTTPStatusCode = "UseProxy"
)

type HostCachingOptions

type HostCachingOptions string

HostCachingOptions enumerates the values for host caching options.

const (
	// HostCachingOptionsNone ...
	HostCachingOptionsNone HostCachingOptions = "None"
	// HostCachingOptionsReadOnly ...
	HostCachingOptionsReadOnly HostCachingOptions = "ReadOnly"
	// HostCachingOptionsReadWrite ...
	HostCachingOptionsReadWrite HostCachingOptions = "ReadWrite"
)

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 HourDetailsFragment

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

HourDetailsFragment properties of an hourly schedule.

type IdentityProperties

type IdentityProperties struct {
	// Type - Managed identity.
	Type *string `json:"type,omitempty"`
	// PrincipalID - The principal id of resource identity.
	PrincipalID *string `json:"principalId,omitempty"`
	// TenantID - The tenant identifier of resource.
	TenantID *string `json:"tenantId,omitempty"`
	// ClientSecretURL - The client secret URL of the identity.
	ClientSecretURL *string `json:"clientSecretUrl,omitempty"`
}

IdentityProperties identityProperties

type InboundNatRule

type InboundNatRule struct {
	// TransportProtocol - The transport protocol for the endpoint. Possible values include: 'TCP', 'UDP'
	TransportProtocol TransportProtocol `json:"transportProtocol,omitempty"`
	// FrontendPort - The external endpoint port of the inbound connection. Possible values range between 1 and 65535, inclusive. If unspecified, a value will be allocated automatically.
	FrontendPort *int32 `json:"frontendPort,omitempty"`
	// BackendPort - The port to which the external traffic will be redirected.
	BackendPort *int32 `json:"backendPort,omitempty"`
}

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

type InboundNatRuleFragment

type InboundNatRuleFragment struct {
	// TransportProtocol - The transport protocol for the endpoint. Possible values include: 'TCP', 'UDP'
	TransportProtocol TransportProtocol `json:"transportProtocol,omitempty"`
	// FrontendPort - The external endpoint port of the inbound connection. Possible values range between 1 and 65535, inclusive. If unspecified, a value will be allocated automatically.
	FrontendPort *int32 `json:"frontendPort,omitempty"`
	// BackendPort - The port to which the external traffic will be redirected.
	BackendPort *int32 `json:"backendPort,omitempty"`
}

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

type Lab

type Lab struct {
	autorest.Response `json:"-"`
	// ID - 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,omitempty"`
	// LabProperties - The properties of the resource.
	*LabProperties `json:"properties,omitempty"`
}

Lab a lab.

func (*Lab) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Lab struct.

type LabCost

type LabCost struct {
	autorest.Response `json:"-"`
	// 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,omitempty"`
	// LabCostProperties - The properties of the resource.
	*LabCostProperties `json:"properties,omitempty"`
}

LabCost a cost item.

func (*LabCost) UnmarshalJSON

func (lc *LabCost) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for LabCost struct.

type LabCostDetailsProperties

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

LabCostDetailsProperties the properties of a lab cost item.

type LabCostProperties

type LabCostProperties struct {
	// TargetCost - The target cost properties
	TargetCost *TargetCostProperties `json:"targetCost,omitempty"`
	// LabCostSummary - The lab cost summary component of the cost data.
	LabCostSummary *LabCostSummaryProperties `json:"labCostSummary,omitempty"`
	// LabCostDetails - The lab cost details component of the cost data.
	LabCostDetails *[]LabCostDetailsProperties `json:"labCostDetails,omitempty"`
	// ResourceCosts - The resource cost component of the cost data.
	ResourceCosts *[]LabResourceCostProperties `json:"resourceCosts,omitempty"`
	// CurrencyCode - The currency code of the cost.
	CurrencyCode *string `json:"currencyCode,omitempty"`
	// StartDateTime - The start time of the cost data.
	StartDateTime *date.Time `json:"startDateTime,omitempty"`
	// EndDateTime - The end time of the cost data.
	EndDateTime *date.Time `json:"endDateTime,omitempty"`
	// CreatedDate - The creation date of the cost.
	CreatedDate *date.Time `json:"createdDate,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// UniqueIdentifier - The unique immutable identifier of a resource (Guid).
	UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}

LabCostProperties properties of a cost item.

type LabCostSummaryProperties

type LabCostSummaryProperties struct {
	// EstimatedLabCost - The cost component of the cost item.
	EstimatedLabCost *float64 `json:"estimatedLabCost,omitempty"`
}

LabCostSummaryProperties the properties of the cost summary.

type LabFragment

type LabFragment struct {
	// 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,omitempty"`
	// LabPropertiesFragment - The properties of the resource.
	*LabPropertiesFragment `json:"properties,omitempty"`
}

LabFragment a lab.

func (*LabFragment) UnmarshalJSON

func (lf *LabFragment) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for LabFragment struct.

type LabProperties

type LabProperties struct {
	// DefaultStorageAccount - The lab's default storage account.
	DefaultStorageAccount *string `json:"defaultStorageAccount,omitempty"`
	// DefaultPremiumStorageAccount - The lab's default premium storage account.
	DefaultPremiumStorageAccount *string `json:"defaultPremiumStorageAccount,omitempty"`
	// ArtifactsStorageAccount - The lab's artifact storage account.
	ArtifactsStorageAccount *string `json:"artifactsStorageAccount,omitempty"`
	// PremiumDataDiskStorageAccount - The lab's premium data disk storage account.
	PremiumDataDiskStorageAccount *string `json:"premiumDataDiskStorageAccount,omitempty"`
	// VaultName - The lab's Key vault.
	VaultName *string `json:"vaultName,omitempty"`
	// LabStorageType - Type of storage used by the lab. It can be either Premium or Standard. Default is Premium. Possible values include: 'Standard', 'Premium'
	LabStorageType StorageType `json:"labStorageType,omitempty"`
	// CreatedDate - The creation date of the lab.
	CreatedDate *date.Time `json:"createdDate,omitempty"`
	// PremiumDataDisks - The setting to enable usage of premium data disks.
	// When its value is 'Enabled', creation of standard or premium data disks is allowed.
	// When its value is 'Disabled', only creation of standard data disks is allowed. Possible values include: 'PremiumDataDiskDisabled', 'PremiumDataDiskEnabled'
	PremiumDataDisks PremiumDataDisk `json:"premiumDataDisks,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// UniqueIdentifier - The unique immutable identifier of a resource (Guid).
	UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}

LabProperties properties of a lab.

type LabPropertiesFragment

type LabPropertiesFragment struct {
	// LabStorageType - Type of storage used by the lab. It can be either Premium or Standard. Default is Premium. Possible values include: 'Standard', 'Premium'
	LabStorageType StorageType `json:"labStorageType,omitempty"`
	// PremiumDataDisks - The setting to enable usage of premium data disks.
	// When its value is 'Enabled', creation of standard or premium data disks is allowed.
	// When its value is 'Disabled', only creation of standard data disks is allowed. Possible values include: 'PremiumDataDiskDisabled', 'PremiumDataDiskEnabled'
	PremiumDataDisks PremiumDataDisk `json:"premiumDataDisks,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// UniqueIdentifier - The unique immutable identifier of a resource (Guid).
	UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}

LabPropertiesFragment properties of a lab.

type LabResourceCostProperties

type LabResourceCostProperties struct {
	// Resourcename - The name of the resource.
	Resourcename *string `json:"resourcename,omitempty"`
	// ResourceUID - The unique identifier of the resource.
	ResourceUID *string `json:"resourceUId,omitempty"`
	// ResourceCost - The cost component of the resource cost item.
	ResourceCost *float64 `json:"resourceCost,omitempty"`
	// ResourceType - The logical resource type (ex. virtualmachine, storageaccount)
	ResourceType *string `json:"resourceType,omitempty"`
	// ResourceOwner - The owner of the resource (ex. janedoe@microsoft.com)
	ResourceOwner *string `json:"resourceOwner,omitempty"`
	// ResourcePricingTier - The category of the resource (ex. Premium_LRS, Standard_DS1)
	ResourcePricingTier *string `json:"resourcePricingTier,omitempty"`
	// ResourceStatus - The status of the resource (ex. Active)
	ResourceStatus *string `json:"resourceStatus,omitempty"`
	// ResourceID - The ID of the resource
	ResourceID *string `json:"resourceId,omitempty"`
	// ExternalResourceID - The ID of the external resource
	ExternalResourceID *string `json:"externalResourceId,omitempty"`
}

LabResourceCostProperties the properties of a resource cost item.

type LabVhd

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

LabVhd properties of a VHD in the lab.

type LabVirtualMachine

type LabVirtualMachine struct {
	autorest.Response `json:"-"`
	// 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,omitempty"`
	// LabVirtualMachineProperties - The properties of the resource.
	*LabVirtualMachineProperties `json:"properties,omitempty"`
}

LabVirtualMachine a virtual machine.

func (*LabVirtualMachine) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for LabVirtualMachine struct.

type LabVirtualMachineCreationParameter

type LabVirtualMachineCreationParameter struct {
	// LabVirtualMachineCreationParameterProperties - The properties of the resource.
	*LabVirtualMachineCreationParameterProperties `json:"properties,omitempty"`
	// Name - The name of the virtual machine or environment
	Name *string `json:"name,omitempty"`
	// Location - The location of the new virtual machine or environment
	Location *string `json:"location,omitempty"`
	// Tags - The tags of the resource.
	Tags *map[string]*string `json:"tags,omitempty"`
}

LabVirtualMachineCreationParameter properties for creating a virtual machine.

func (*LabVirtualMachineCreationParameter) UnmarshalJSON

func (lvmcp *LabVirtualMachineCreationParameter) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for LabVirtualMachineCreationParameter struct.

type LabVirtualMachineCreationParameterProperties

type LabVirtualMachineCreationParameterProperties struct {
	// BulkCreationParameters - The number of virtual machine instances to create.
	BulkCreationParameters *BulkCreationParameters `json:"bulkCreationParameters,omitempty"`
	// 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"`
	// OwnerUserPrincipalName - The user principal name of the virtual machine owner.
	OwnerUserPrincipalName *string `json:"ownerUserPrincipalName,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"`
	// CreatedDate - The creation date of the virtual machine.
	CreatedDate *date.Time `json:"createdDate,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 - Indicates 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"`
	// ComputeVM - The compute virtual machine properties.
	ComputeVM *ComputeVMProperties `json:"computeVm,omitempty"`
	// NetworkInterface - The network interface properties.
	NetworkInterface *NetworkInterfaceProperties `json:"networkInterface,omitempty"`
	// ApplicableSchedule - The applicable schedule for the virtual machine.
	ApplicableSchedule *ApplicableSchedule `json:"applicableSchedule,omitempty"`
	// ExpirationDate - The expiration date for VM.
	ExpirationDate *date.Time `json:"expirationDate,omitempty"`
	// AllowClaim - Indicates whether another user can take ownership of the virtual machine
	AllowClaim *bool `json:"allowClaim,omitempty"`
	// StorageType - Storage type to use for virtual machine (i.e. Standard, Premium).
	StorageType *string `json:"storageType,omitempty"`
	// VirtualMachineCreationSource - Tells source of creation of lab virtual machine. Output property only. Possible values include: 'FromCustomImage', 'FromGalleryImage'
	VirtualMachineCreationSource VirtualMachineCreationSource `json:"virtualMachineCreationSource,omitempty"`
	// EnvironmentID - The resource ID of the environment that contains this virtual machine, if any.
	EnvironmentID *string `json:"environmentId,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// UniqueIdentifier - The unique immutable identifier of a resource (Guid).
	UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}

LabVirtualMachineCreationParameterProperties properties for virtual machine creation.

type LabVirtualMachineFragment

type LabVirtualMachineFragment struct {
	// 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,omitempty"`
	// LabVirtualMachinePropertiesFragment - The properties of the resource.
	*LabVirtualMachinePropertiesFragment `json:"properties,omitempty"`
}

LabVirtualMachineFragment a virtual machine.

func (*LabVirtualMachineFragment) UnmarshalJSON

func (lvmf *LabVirtualMachineFragment) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for LabVirtualMachineFragment 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"`
	// OwnerUserPrincipalName - The user principal name of the virtual machine owner.
	OwnerUserPrincipalName *string `json:"ownerUserPrincipalName,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"`
	// CreatedDate - The creation date of the virtual machine.
	CreatedDate *date.Time `json:"createdDate,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 - Indicates 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"`
	// ComputeVM - The compute virtual machine properties.
	ComputeVM *ComputeVMProperties `json:"computeVm,omitempty"`
	// NetworkInterface - The network interface properties.
	NetworkInterface *NetworkInterfaceProperties `json:"networkInterface,omitempty"`
	// ApplicableSchedule - The applicable schedule for the virtual machine.
	ApplicableSchedule *ApplicableSchedule `json:"applicableSchedule,omitempty"`
	// ExpirationDate - The expiration date for VM.
	ExpirationDate *date.Time `json:"expirationDate,omitempty"`
	// AllowClaim - Indicates whether another user can take ownership of the virtual machine
	AllowClaim *bool `json:"allowClaim,omitempty"`
	// StorageType - Storage type to use for virtual machine (i.e. Standard, Premium).
	StorageType *string `json:"storageType,omitempty"`
	// VirtualMachineCreationSource - Tells source of creation of lab virtual machine. Output property only. Possible values include: 'FromCustomImage', 'FromGalleryImage'
	VirtualMachineCreationSource VirtualMachineCreationSource `json:"virtualMachineCreationSource,omitempty"`
	// EnvironmentID - The resource ID of the environment that contains this virtual machine, if any.
	EnvironmentID *string `json:"environmentId,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// UniqueIdentifier - The unique immutable identifier of a resource (Guid).
	UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}

LabVirtualMachineProperties properties of a virtual machine.

type LabVirtualMachinePropertiesFragment

type LabVirtualMachinePropertiesFragment 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"`
	// OwnerUserPrincipalName - The user principal name of the virtual machine owner.
	OwnerUserPrincipalName *string `json:"ownerUserPrincipalName,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"`
	// CreatedDate - The creation date of the virtual machine.
	CreatedDate *date.Time `json:"createdDate,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 - Indicates 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 *[]ArtifactInstallPropertiesFragment `json:"artifacts,omitempty"`
	// ArtifactDeploymentStatus - The artifact deployment status for the virtual machine.
	ArtifactDeploymentStatus *ArtifactDeploymentStatusPropertiesFragment `json:"artifactDeploymentStatus,omitempty"`
	// GalleryImageReference - The Microsoft Azure Marketplace image reference of the virtual machine.
	GalleryImageReference *GalleryImageReferenceFragment `json:"galleryImageReference,omitempty"`
	// ComputeVM - The compute virtual machine properties.
	ComputeVM *ComputeVMPropertiesFragment `json:"computeVm,omitempty"`
	// NetworkInterface - The network interface properties.
	NetworkInterface *NetworkInterfacePropertiesFragment `json:"networkInterface,omitempty"`
	// ApplicableSchedule - The applicable schedule for the virtual machine.
	ApplicableSchedule *ApplicableScheduleFragment `json:"applicableSchedule,omitempty"`
	// ExpirationDate - The expiration date for VM.
	ExpirationDate *date.Time `json:"expirationDate,omitempty"`
	// AllowClaim - Indicates whether another user can take ownership of the virtual machine
	AllowClaim *bool `json:"allowClaim,omitempty"`
	// StorageType - Storage type to use for virtual machine (i.e. Standard, Premium).
	StorageType *string `json:"storageType,omitempty"`
	// VirtualMachineCreationSource - Tells source of creation of lab virtual machine. Output property only. Possible values include: 'FromCustomImage', 'FromGalleryImage'
	VirtualMachineCreationSource VirtualMachineCreationSource `json:"virtualMachineCreationSource,omitempty"`
	// EnvironmentID - The resource ID of the environment that contains this virtual machine, if any.
	EnvironmentID *string `json:"environmentId,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// UniqueIdentifier - The unique immutable identifier of a resource (Guid).
	UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}

LabVirtualMachinePropertiesFragment properties of a virtual machine.

type LabsClaimAnyVMFuture

type LabsClaimAnyVMFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (LabsClaimAnyVMFuture) Result

func (future LabsClaimAnyVMFuture) Result(client LabsClient) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type LabsClient

type LabsClient struct {
	BaseClient
}

LabsClient is the the DevTest Labs Client.

func NewLabsClient

func NewLabsClient(subscriptionID string) LabsClient

NewLabsClient creates an instance of the LabsClient client.

func NewLabsClientWithBaseURI

func NewLabsClientWithBaseURI(baseURI string, subscriptionID string) LabsClient

NewLabsClientWithBaseURI creates an instance of the LabsClient client.

func (LabsClient) ClaimAnyVM

func (client LabsClient) ClaimAnyVM(ctx context.Context, resourceGroupName string, name string) (result LabsClaimAnyVMFuture, err error)

ClaimAnyVM claim a random claimable virtual machine in the lab. This operation can take a while to complete.

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

func (LabsClient) ClaimAnyVMPreparer

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

ClaimAnyVMPreparer prepares the ClaimAnyVM request.

func (LabsClient) ClaimAnyVMResponder

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

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

func (LabsClient) ClaimAnyVMSender

func (client LabsClient) ClaimAnyVMSender(req *http.Request) (future LabsClaimAnyVMFuture, err error)

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

func (LabsClient) CreateEnvironment

func (client LabsClient) CreateEnvironment(ctx context.Context, resourceGroupName string, name string, labVirtualMachineCreationParameter LabVirtualMachineCreationParameter) (result LabsCreateEnvironmentFuture, err error)

CreateEnvironment create virtual machines in a lab. This operation can take a while to complete.

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

func (LabsClient) CreateEnvironmentPreparer

func (client LabsClient) CreateEnvironmentPreparer(ctx context.Context, resourceGroupName string, name string, labVirtualMachineCreationParameter LabVirtualMachineCreationParameter) (*http.Request, error)

CreateEnvironmentPreparer prepares the CreateEnvironment request.

func (LabsClient) CreateEnvironmentResponder

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

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

func (LabsClient) CreateEnvironmentSender

func (client LabsClient) CreateEnvironmentSender(req *http.Request) (future LabsCreateEnvironmentFuture, err error)

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

func (LabsClient) CreateOrUpdate

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

CreateOrUpdate create or replace an existing lab. This operation can take a while to complete.

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

func (LabsClient) CreateOrUpdatePreparer

func (client LabsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, name string, lab Lab) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (LabsClient) CreateOrUpdateResponder

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

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

func (LabsClient) CreateOrUpdateSender

func (client LabsClient) CreateOrUpdateSender(req *http.Request) (future LabsCreateOrUpdateFuture, err error)

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

func (LabsClient) Delete

func (client LabsClient) Delete(ctx context.Context, resourceGroupName string, name string) (result LabsDeleteFuture, err error)

Delete delete lab. This operation can take a while to complete.

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

func (LabsClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (LabsClient) DeleteResponder

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

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

func (LabsClient) DeleteSender

func (client LabsClient) DeleteSender(req *http.Request) (future LabsDeleteFuture, err error)

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

func (LabsClient) ExportResourceUsage

func (client LabsClient) ExportResourceUsage(ctx context.Context, resourceGroupName string, name string, exportResourceUsageParameters ExportResourceUsageParameters) (result LabsExportResourceUsageFuture, err error)

ExportResourceUsage exports the lab resource usage into a storage account This operation can take a while to complete.

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

func (LabsClient) ExportResourceUsagePreparer

func (client LabsClient) ExportResourceUsagePreparer(ctx context.Context, resourceGroupName string, name string, exportResourceUsageParameters ExportResourceUsageParameters) (*http.Request, error)

ExportResourceUsagePreparer prepares the ExportResourceUsage request.

func (LabsClient) ExportResourceUsageResponder

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

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

func (LabsClient) ExportResourceUsageSender

func (client LabsClient) ExportResourceUsageSender(req *http.Request) (future LabsExportResourceUsageFuture, err error)

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

func (LabsClient) GenerateUploadURI

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

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

func (LabsClient) GenerateUploadURIPreparer

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

GenerateUploadURIPreparer prepares the GenerateUploadURI request.

func (LabsClient) GenerateUploadURIResponder

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

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

func (LabsClient) GenerateUploadURISender

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

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

func (LabsClient) Get

func (client LabsClient) Get(ctx context.Context, resourceGroupName string, name string, expand string) (result Lab, err error)

Get get lab.

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

func (LabsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (LabsClient) GetResponder

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

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

func (LabsClient) GetSender

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

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

func (LabsClient) ListByResourceGroup

func (client LabsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationLabPage, err error)

ListByResourceGroup list labs in a resource group.

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

func (LabsClient) ListByResourceGroupComplete

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

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

func (LabsClient) ListByResourceGroupPreparer

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (LabsClient) ListByResourceGroupResponder

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

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

func (LabsClient) ListByResourceGroupSender

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

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

func (LabsClient) ListBySubscription

func (client LabsClient) ListBySubscription(ctx context.Context, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationLabPage, err error)

ListBySubscription list labs in a subscription.

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

func (LabsClient) ListBySubscriptionComplete

func (client LabsClient) ListBySubscriptionComplete(ctx context.Context, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationLabIterator, err error)

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

func (LabsClient) ListBySubscriptionPreparer

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

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (LabsClient) ListBySubscriptionResponder

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

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

func (LabsClient) ListBySubscriptionSender

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

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

func (LabsClient) ListVhds

func (client LabsClient) ListVhds(ctx context.Context, resourceGroupName string, name string) (result ResponseWithContinuationLabVhdPage, err error)

ListVhds list disk images available for custom image creation.

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

func (LabsClient) ListVhdsComplete

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

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

func (LabsClient) ListVhdsPreparer

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

ListVhdsPreparer prepares the ListVhds request.

func (LabsClient) ListVhdsResponder

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

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

func (LabsClient) ListVhdsSender

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

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

func (LabsClient) Update

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

Update modify properties of labs.

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

func (LabsClient) UpdatePreparer

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

UpdatePreparer prepares the Update request.

func (LabsClient) UpdateResponder

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

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

func (LabsClient) UpdateSender

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

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

type LabsCreateEnvironmentFuture

type LabsCreateEnvironmentFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (LabsCreateEnvironmentFuture) Result

func (future LabsCreateEnvironmentFuture) Result(client LabsClient) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type LabsCreateOrUpdateFuture

type LabsCreateOrUpdateFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (LabsCreateOrUpdateFuture) Result

func (future LabsCreateOrUpdateFuture) Result(client LabsClient) (l Lab, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type LabsDeleteFuture

type LabsDeleteFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (LabsDeleteFuture) Result

func (future LabsDeleteFuture) Result(client LabsClient) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type LabsExportResourceUsageFuture

type LabsExportResourceUsageFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (LabsExportResourceUsageFuture) Result

func (future LabsExportResourceUsageFuture) Result(client LabsClient) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type LinuxOsInfo

type LinuxOsInfo struct {
	// LinuxOsState - The state of the Linux OS (i.e. NonDeprovisioned, DeprovisionRequested, DeprovisionApplied). 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"
)

type NetworkInterfaceProperties

type NetworkInterfaceProperties struct {
	// VirtualNetworkID - The resource ID of the virtual network.
	VirtualNetworkID *string `json:"virtualNetworkId,omitempty"`
	// SubnetID - The resource ID of the sub net.
	SubnetID *string `json:"subnetId,omitempty"`
	// PublicIPAddressID - The resource ID of the public IP address.
	PublicIPAddressID *string `json:"publicIpAddressId,omitempty"`
	// PublicIPAddress - The public IP address.
	PublicIPAddress *string `json:"publicIpAddress,omitempty"`
	// PrivateIPAddress - The private IP address.
	PrivateIPAddress *string `json:"privateIpAddress,omitempty"`
	// DNSName - The DNS name.
	DNSName *string `json:"dnsName,omitempty"`
	// RdpAuthority - The RdpAuthority property is a server DNS host name or IP address followed by the service port number for RDP (Remote Desktop Protocol).
	RdpAuthority *string `json:"rdpAuthority,omitempty"`
	// SSHAuthority - The SshAuthority property is a server DNS host name or IP address followed by the service port number for SSH.
	SSHAuthority *string `json:"sshAuthority,omitempty"`
	// SharedPublicIPAddressConfiguration - The configuration for sharing a public IP address across multiple virtual machines.
	SharedPublicIPAddressConfiguration *SharedPublicIPAddressConfiguration `json:"sharedPublicIpAddressConfiguration,omitempty"`
}

NetworkInterfaceProperties properties of a network interface.

type NetworkInterfacePropertiesFragment

type NetworkInterfacePropertiesFragment struct {
	// VirtualNetworkID - The resource ID of the virtual network.
	VirtualNetworkID *string `json:"virtualNetworkId,omitempty"`
	// SubnetID - The resource ID of the sub net.
	SubnetID *string `json:"subnetId,omitempty"`
	// PublicIPAddressID - The resource ID of the public IP address.
	PublicIPAddressID *string `json:"publicIpAddressId,omitempty"`
	// PublicIPAddress - The public IP address.
	PublicIPAddress *string `json:"publicIpAddress,omitempty"`
	// PrivateIPAddress - The private IP address.
	PrivateIPAddress *string `json:"privateIpAddress,omitempty"`
	// DNSName - The DNS name.
	DNSName *string `json:"dnsName,omitempty"`
	// RdpAuthority - The RdpAuthority property is a server DNS host name or IP address followed by the service port number for RDP (Remote Desktop Protocol).
	RdpAuthority *string `json:"rdpAuthority,omitempty"`
	// SSHAuthority - The SshAuthority property is a server DNS host name or IP address followed by the service port number for SSH.
	SSHAuthority *string `json:"sshAuthority,omitempty"`
	// SharedPublicIPAddressConfiguration - The configuration for sharing a public IP address across multiple virtual machines.
	SharedPublicIPAddressConfiguration *SharedPublicIPAddressConfigurationFragment `json:"sharedPublicIpAddressConfiguration,omitempty"`
}

NetworkInterfacePropertiesFragment properties of a network interface.

type NotificationChannel

type NotificationChannel struct {
	autorest.Response `json:"-"`
	// 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,omitempty"`
	// NotificationChannelProperties - The properties of the resource.
	*NotificationChannelProperties `json:"properties,omitempty"`
}

NotificationChannel a notification.

func (*NotificationChannel) UnmarshalJSON

func (nc *NotificationChannel) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for NotificationChannel struct.

type NotificationChannelEventType

type NotificationChannelEventType string

NotificationChannelEventType enumerates the values for notification channel event type.

const (
	// AutoShutdown ...
	AutoShutdown NotificationChannelEventType = "AutoShutdown"
	// Cost ...
	Cost NotificationChannelEventType = "Cost"
)

type NotificationChannelFragment

type NotificationChannelFragment struct {
	// 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,omitempty"`
	// NotificationChannelPropertiesFragment - The properties of the resource.
	*NotificationChannelPropertiesFragment `json:"properties,omitempty"`
}

NotificationChannelFragment a notification.

func (*NotificationChannelFragment) UnmarshalJSON

func (ncf *NotificationChannelFragment) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for NotificationChannelFragment struct.

type NotificationChannelProperties

type NotificationChannelProperties struct {
	// WebHookURL - The webhook URL to send notifications to.
	WebHookURL *string `json:"webHookUrl,omitempty"`
	// Description - Description of notification.
	Description *string `json:"description,omitempty"`
	// Events - The list of event for which this notification is enabled.
	Events *[]Event `json:"events,omitempty"`
	// CreatedDate - The creation date of the notification channel.
	CreatedDate *date.Time `json:"createdDate,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// UniqueIdentifier - The unique immutable identifier of a resource (Guid).
	UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}

NotificationChannelProperties properties of a schedule.

type NotificationChannelPropertiesFragment

type NotificationChannelPropertiesFragment struct {
	// WebHookURL - The webhook URL to send notifications to.
	WebHookURL *string `json:"webHookUrl,omitempty"`
	// Description - Description of notification.
	Description *string `json:"description,omitempty"`
	// Events - The list of event for which this notification is enabled.
	Events *[]EventFragment `json:"events,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// UniqueIdentifier - The unique immutable identifier of a resource (Guid).
	UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}

NotificationChannelPropertiesFragment properties of a schedule.

type NotificationChannelsClient

type NotificationChannelsClient struct {
	BaseClient
}

NotificationChannelsClient is the the DevTest Labs Client.

func NewNotificationChannelsClient

func NewNotificationChannelsClient(subscriptionID string) NotificationChannelsClient

NewNotificationChannelsClient creates an instance of the NotificationChannelsClient client.

func NewNotificationChannelsClientWithBaseURI

func NewNotificationChannelsClientWithBaseURI(baseURI string, subscriptionID string) NotificationChannelsClient

NewNotificationChannelsClientWithBaseURI creates an instance of the NotificationChannelsClient client.

func (NotificationChannelsClient) CreateOrUpdate

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

CreateOrUpdate create or replace an existing notificationChannel.

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

func (NotificationChannelsClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (NotificationChannelsClient) CreateOrUpdateResponder

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

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

func (NotificationChannelsClient) CreateOrUpdateSender

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

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

func (NotificationChannelsClient) Delete

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

Delete delete notificationchannel.

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

func (NotificationChannelsClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (NotificationChannelsClient) DeleteResponder

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

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

func (NotificationChannelsClient) DeleteSender

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

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

func (NotificationChannelsClient) Get

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

Get get notificationchannel.

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

func (NotificationChannelsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (NotificationChannelsClient) GetResponder

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

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

func (NotificationChannelsClient) GetSender

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

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

func (NotificationChannelsClient) List

func (client NotificationChannelsClient) List(ctx context.Context, resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationNotificationChannelPage, err error)

List list notificationchannels in a given lab.

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

func (NotificationChannelsClient) ListComplete

func (client NotificationChannelsClient) ListComplete(ctx context.Context, resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationNotificationChannelIterator, err error)

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

func (NotificationChannelsClient) ListPreparer

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

ListPreparer prepares the List request.

func (NotificationChannelsClient) ListResponder

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

func (NotificationChannelsClient) ListSender

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

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

func (NotificationChannelsClient) Notify

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

Notify send notification to provided channel.

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

func (NotificationChannelsClient) NotifyPreparer

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

NotifyPreparer prepares the Notify request.

func (NotificationChannelsClient) NotifyResponder

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

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

func (NotificationChannelsClient) NotifySender

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

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

func (NotificationChannelsClient) Update

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

Update modify properties of notificationchannels.

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

func (NotificationChannelsClient) UpdatePreparer

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

UpdatePreparer prepares the Update request.

func (NotificationChannelsClient) UpdateResponder

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

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

func (NotificationChannelsClient) UpdateSender

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

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

type NotificationSettings

type NotificationSettings struct {
	// Status - If notifications are enabled for this schedule (i.e. Enabled, Disabled). Possible values include: 'NotificationStatusDisabled', 'NotificationStatusEnabled'
	Status NotificationStatus `json:"status,omitempty"`
	// TimeInMinutes - Time in minutes before event at which notification will be sent.
	TimeInMinutes *int32 `json:"timeInMinutes,omitempty"`
	// WebhookURL - The webhook URL to which the notification will be sent.
	WebhookURL *string `json:"webhookUrl,omitempty"`
}

NotificationSettings notification settings for a schedule.

type NotificationSettingsFragment

type NotificationSettingsFragment struct {
	// Status - If notifications are enabled for this schedule (i.e. Enabled, Disabled). Possible values include: 'NotificationStatusDisabled', 'NotificationStatusEnabled'
	Status NotificationStatus `json:"status,omitempty"`
	// TimeInMinutes - Time in minutes before event at which notification will be sent.
	TimeInMinutes *int32 `json:"timeInMinutes,omitempty"`
	// WebhookURL - The webhook URL to which the notification will be sent.
	WebhookURL *string `json:"webhookUrl,omitempty"`
}

NotificationSettingsFragment notification settings for a schedule.

type NotificationStatus

type NotificationStatus string

NotificationStatus enumerates the values for notification status.

const (
	// NotificationStatusDisabled ...
	NotificationStatusDisabled NotificationStatus = "Disabled"
	// NotificationStatusEnabled ...
	NotificationStatusEnabled NotificationStatus = "Enabled"
)

type NotifyParameters

type NotifyParameters struct {
	// EventName - The type of event (i.e. AutoShutdown, Cost). Possible values include: 'AutoShutdown', 'Cost'
	EventName NotificationChannelEventType `json:"eventName,omitempty"`
	// JSONPayload - Properties for the notification in json format.
	JSONPayload *string `json:"jsonPayload,omitempty"`
}

NotifyParameters properties for generating a Notification.

type OperationError

type OperationError struct {
	// Code - The error code of the operation error.
	Code *string `json:"code,omitempty"`
	// Message - The error message of the operation error.
	Message *string `json:"message,omitempty"`
}

OperationError error details for the operation in case of a failure.

type OperationResult

type OperationResult struct {
	autorest.Response `json:"-"`
	// Status - The operation status.
	Status *string `json:"status,omitempty"`
	// StatusCode - The status code for the operation. Possible values include: 'Continue', 'SwitchingProtocols', 'OK', 'Created', 'Accepted', 'NonAuthoritativeInformation', 'NoContent', 'ResetContent', 'PartialContent', 'MultipleChoices', 'MovedPermanently', 'Redirect', 'SeeOther', 'NotModified', 'UseProxy', 'Unused', 'TemporaryRedirect', 'BadRequest', 'Unauthorized', 'PaymentRequired', 'Forbidden', 'NotFound', 'MethodNotAllowed', 'NotAcceptable', 'ProxyAuthenticationRequired', 'RequestTimeout', 'Conflict', 'Gone', 'LengthRequired', 'PreconditionFailed', 'RequestEntityTooLarge', 'RequestURITooLong', 'UnsupportedMediaType', 'RequestedRangeNotSatisfiable', 'ExpectationFailed', 'UpgradeRequired', 'InternalServerError', 'NotImplemented', 'BadGateway', 'ServiceUnavailable', 'GatewayTimeout', 'HTTPVersionNotSupported'
	StatusCode HTTPStatusCode `json:"statusCode,omitempty"`
	// Error - Error details for the operation in case of a failure.
	Error *OperationError `json:"error,omitempty"`
}

OperationResult an Operation Result

type OperationsClient

type OperationsClient struct {
	BaseClient
}

OperationsClient is the the DevTest Labs Client.

func NewOperationsClient

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.

func (OperationsClient) Get

func (client OperationsClient) Get(ctx context.Context, locationName string, name string) (result OperationResult, err error)

Get get operation.

locationName is the name of the location. name is the name of the operation.

func (OperationsClient) GetPreparer

func (client OperationsClient) GetPreparer(ctx context.Context, locationName string, name string) (*http.Request, error)

GetPreparer prepares the Get request.

func (OperationsClient) GetResponder

func (client OperationsClient) GetResponder(resp *http.Response) (result OperationResult, err error)

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

func (OperationsClient) GetSender

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

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

type ParameterInfo

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

ParameterInfo information about an artifact's parameter.

type ParametersValueFileInfo

type ParametersValueFileInfo struct {
	// FileName - File name.
	FileName *string `json:"fileName,omitempty"`
	// ParametersValueInfo - Contents of the file.
	ParametersValueInfo *map[string]interface{} `json:"parametersValueInfo,omitempty"`
}

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

type PercentageCostThresholdProperties

type PercentageCostThresholdProperties struct {
	// ThresholdValue - The cost threshold value.
	ThresholdValue *float64 `json:"thresholdValue,omitempty"`
}

PercentageCostThresholdProperties properties of a percentage cost threshold.

type PoliciesClient

type PoliciesClient struct {
	BaseClient
}

PoliciesClient is the the DevTest Labs Client.

func NewPoliciesClient

func NewPoliciesClient(subscriptionID string) PoliciesClient

NewPoliciesClient creates an instance of the PoliciesClient client.

func NewPoliciesClientWithBaseURI

func NewPoliciesClientWithBaseURI(baseURI string, subscriptionID string) PoliciesClient

NewPoliciesClientWithBaseURI creates an instance of the PoliciesClient client.

func (PoliciesClient) CreateOrUpdate

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

CreateOrUpdate create or replace an existing policy.

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

func (PoliciesClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (PoliciesClient) CreateOrUpdateResponder

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

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

func (PoliciesClient) CreateOrUpdateSender

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

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

func (PoliciesClient) Delete

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

Delete delete policy.

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

func (PoliciesClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (PoliciesClient) DeleteResponder

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

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

func (PoliciesClient) DeleteSender

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

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

func (PoliciesClient) Get

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

Get get policy.

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

func (PoliciesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (PoliciesClient) GetResponder

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

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

func (PoliciesClient) GetSender

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

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

func (PoliciesClient) List

func (client PoliciesClient) List(ctx context.Context, resourceGroupName string, labName string, policySetName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationPolicyPage, err error)

List list policies in a given policy set.

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

func (PoliciesClient) ListComplete

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

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

func (PoliciesClient) ListPreparer

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

ListPreparer prepares the List request.

func (PoliciesClient) ListResponder

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

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

func (PoliciesClient) ListSender

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

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

func (PoliciesClient) Update

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

Update modify properties of policies.

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

func (PoliciesClient) UpdatePreparer

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

UpdatePreparer prepares the Update request.

func (PoliciesClient) UpdateResponder

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

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

func (PoliciesClient) UpdateSender

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

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

type Policy

type Policy struct {
	autorest.Response `json:"-"`
	// ID - 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,omitempty"`
	// PolicyProperties - The properties of the resource.
	*PolicyProperties `json:"properties,omitempty"`
}

Policy a Policy.

func (*Policy) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Policy struct.

type PolicyEvaluatorType

type PolicyEvaluatorType string

PolicyEvaluatorType enumerates the values for policy evaluator type.

const (
	// AllowedValuesPolicy ...
	AllowedValuesPolicy PolicyEvaluatorType = "AllowedValuesPolicy"
	// MaxValuePolicy ...
	MaxValuePolicy PolicyEvaluatorType = "MaxValuePolicy"
)

type PolicyFactName

type PolicyFactName string

PolicyFactName enumerates the values for policy fact name.

const (
	// PolicyFactNameGalleryImage ...
	PolicyFactNameGalleryImage PolicyFactName = "GalleryImage"
	// PolicyFactNameLabPremiumVMCount ...
	PolicyFactNameLabPremiumVMCount PolicyFactName = "LabPremiumVmCount"
	// PolicyFactNameLabTargetCost ...
	PolicyFactNameLabTargetCost PolicyFactName = "LabTargetCost"
	// PolicyFactNameLabVMCount ...
	PolicyFactNameLabVMCount PolicyFactName = "LabVmCount"
	// PolicyFactNameLabVMSize ...
	PolicyFactNameLabVMSize PolicyFactName = "LabVmSize"
	// PolicyFactNameUserOwnedLabPremiumVMCount ...
	PolicyFactNameUserOwnedLabPremiumVMCount PolicyFactName = "UserOwnedLabPremiumVmCount"
	// PolicyFactNameUserOwnedLabVMCount ...
	PolicyFactNameUserOwnedLabVMCount PolicyFactName = "UserOwnedLabVmCount"
	// PolicyFactNameUserOwnedLabVMCountInSubnet ...
	PolicyFactNameUserOwnedLabVMCountInSubnet PolicyFactName = "UserOwnedLabVmCountInSubnet"
)

type PolicyFragment

type PolicyFragment struct {
	// 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,omitempty"`
	// PolicyPropertiesFragment - The properties of the resource.
	*PolicyPropertiesFragment `json:"properties,omitempty"`
}

PolicyFragment a Policy.

func (*PolicyFragment) UnmarshalJSON

func (pf *PolicyFragment) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for PolicyFragment struct.

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 (e.g. LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc. Possible values include: 'PolicyFactNameUserOwnedLabVMCount', 'PolicyFactNameUserOwnedLabPremiumVMCount', 'PolicyFactNameLabVMCount', 'PolicyFactNameLabPremiumVMCount', 'PolicyFactNameLabVMSize', 'PolicyFactNameGalleryImage', 'PolicyFactNameUserOwnedLabVMCountInSubnet', 'PolicyFactNameLabTargetCost'
	FactName PolicyFactName `json:"factName,omitempty"`
	// FactData - The fact data of the policy.
	FactData *string `json:"factData,omitempty"`
	// Threshold - The threshold of the policy (i.e. a number for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy).
	Threshold *string `json:"threshold,omitempty"`
	// EvaluatorType - The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy). Possible values include: 'AllowedValuesPolicy', 'MaxValuePolicy'
	EvaluatorType PolicyEvaluatorType `json:"evaluatorType,omitempty"`
	// CreatedDate - The creation date of the policy.
	CreatedDate *date.Time `json:"createdDate,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// UniqueIdentifier - The unique immutable identifier of a resource (Guid).
	UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}

PolicyProperties properties of a Policy.

type PolicyPropertiesFragment

type PolicyPropertiesFragment 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 (e.g. LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc. Possible values include: 'PolicyFactNameUserOwnedLabVMCount', 'PolicyFactNameUserOwnedLabPremiumVMCount', 'PolicyFactNameLabVMCount', 'PolicyFactNameLabPremiumVMCount', 'PolicyFactNameLabVMSize', 'PolicyFactNameGalleryImage', 'PolicyFactNameUserOwnedLabVMCountInSubnet', 'PolicyFactNameLabTargetCost'
	FactName PolicyFactName `json:"factName,omitempty"`
	// FactData - The fact data of the policy.
	FactData *string `json:"factData,omitempty"`
	// Threshold - The threshold of the policy (i.e. a number for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy).
	Threshold *string `json:"threshold,omitempty"`
	// EvaluatorType - The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy). Possible values include: 'AllowedValuesPolicy', 'MaxValuePolicy'
	EvaluatorType PolicyEvaluatorType `json:"evaluatorType,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// UniqueIdentifier - The unique immutable identifier of a resource (Guid).
	UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}

PolicyPropertiesFragment properties of a Policy.

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 PolicySetsClient

type PolicySetsClient struct {
	BaseClient
}

PolicySetsClient is the the DevTest Labs Client.

func NewPolicySetsClient

func NewPolicySetsClient(subscriptionID string) PolicySetsClient

NewPolicySetsClient creates an instance of the PolicySetsClient client.

func NewPolicySetsClientWithBaseURI

func NewPolicySetsClientWithBaseURI(baseURI string, subscriptionID string) PolicySetsClient

NewPolicySetsClientWithBaseURI creates an instance of the PolicySetsClient client.

func (PolicySetsClient) EvaluatePolicies

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

EvaluatePolicies evaluates lab policy.

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

func (PolicySetsClient) EvaluatePoliciesPreparer

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

EvaluatePoliciesPreparer prepares the EvaluatePolicies request.

func (PolicySetsClient) EvaluatePoliciesResponder

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

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

func (PolicySetsClient) EvaluatePoliciesSender

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

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

type PolicyStatus

type PolicyStatus string

PolicyStatus enumerates the values for policy status.

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

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 Port

type Port struct {
	// TransportProtocol - Protocol type of the port. Possible values include: 'TCP', 'UDP'
	TransportProtocol TransportProtocol `json:"transportProtocol,omitempty"`
	// BackendPort - Backend port of the target virtual machine.
	BackendPort *int32 `json:"backendPort,omitempty"`
}

Port properties of a network port.

type PortFragment

type PortFragment struct {
	// TransportProtocol - Protocol type of the port. Possible values include: 'TCP', 'UDP'
	TransportProtocol TransportProtocol `json:"transportProtocol,omitempty"`
	// BackendPort - Backend port of the target virtual machine.
	BackendPort *int32 `json:"backendPort,omitempty"`
}

PortFragment properties of a network port.

type PremiumDataDisk

type PremiumDataDisk string

PremiumDataDisk enumerates the values for premium data disk.

const (
	// PremiumDataDiskDisabled ...
	PremiumDataDiskDisabled PremiumDataDisk = "Disabled"
	// PremiumDataDiskEnabled ...
	PremiumDataDiskEnabled PremiumDataDisk = "Enabled"
)

type ReportingCycleType

type ReportingCycleType string

ReportingCycleType enumerates the values for reporting cycle type.

const (
	// CalendarMonth ...
	CalendarMonth ReportingCycleType = "CalendarMonth"
	// Custom ...
	Custom ReportingCycleType = "Custom"
)

type Resource

type Resource struct {
	// 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,omitempty"`
}

Resource an Azure resource.

type ResponseWithContinuationArmTemplate

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

ResponseWithContinuationArmTemplate the response of a list operation.

func (ResponseWithContinuationArmTemplate) IsEmpty

func (rwcAt ResponseWithContinuationArmTemplate) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ResponseWithContinuationArmTemplateIterator

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

ResponseWithContinuationArmTemplateIterator provides access to a complete listing of ArmTemplate values.

func (*ResponseWithContinuationArmTemplateIterator) 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.

func (ResponseWithContinuationArmTemplateIterator) NotDone

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

func (ResponseWithContinuationArmTemplateIterator) Response

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

func (ResponseWithContinuationArmTemplateIterator) Value

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

type ResponseWithContinuationArmTemplatePage

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

ResponseWithContinuationArmTemplatePage contains a page of ArmTemplate values.

func (*ResponseWithContinuationArmTemplatePage) 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.

func (ResponseWithContinuationArmTemplatePage) NotDone

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

func (ResponseWithContinuationArmTemplatePage) Response

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

func (ResponseWithContinuationArmTemplatePage) Values

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

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

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

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

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

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

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

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 ResponseWithContinuationDisk

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

ResponseWithContinuationDisk the response of a list operation.

func (ResponseWithContinuationDisk) IsEmpty

func (rwcD ResponseWithContinuationDisk) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ResponseWithContinuationDiskIterator

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

ResponseWithContinuationDiskIterator provides access to a complete listing of Disk values.

func (*ResponseWithContinuationDiskIterator) 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.

func (ResponseWithContinuationDiskIterator) NotDone

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

func (ResponseWithContinuationDiskIterator) Response

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

func (ResponseWithContinuationDiskIterator) Value

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

type ResponseWithContinuationDiskPage

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

ResponseWithContinuationDiskPage contains a page of Disk values.

func (*ResponseWithContinuationDiskPage) 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.

func (ResponseWithContinuationDiskPage) NotDone

func (page ResponseWithContinuationDiskPage) NotDone() bool

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

func (ResponseWithContinuationDiskPage) Response

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

func (ResponseWithContinuationDiskPage) Values

func (page ResponseWithContinuationDiskPage) Values() []Disk

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

type ResponseWithContinuationDtlEnvironment

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

ResponseWithContinuationDtlEnvironment the response of a list operation.

func (ResponseWithContinuationDtlEnvironment) IsEmpty

IsEmpty returns true if the ListResult contains no values.

type ResponseWithContinuationDtlEnvironmentIterator

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

ResponseWithContinuationDtlEnvironmentIterator provides access to a complete listing of Environment values.

func (*ResponseWithContinuationDtlEnvironmentIterator) 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.

func (ResponseWithContinuationDtlEnvironmentIterator) NotDone

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

func (ResponseWithContinuationDtlEnvironmentIterator) Response

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

func (ResponseWithContinuationDtlEnvironmentIterator) Value

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

type ResponseWithContinuationDtlEnvironmentPage

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

ResponseWithContinuationDtlEnvironmentPage contains a page of Environment values.

func (*ResponseWithContinuationDtlEnvironmentPage) 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.

func (ResponseWithContinuationDtlEnvironmentPage) NotDone

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

func (ResponseWithContinuationDtlEnvironmentPage) Response

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

func (ResponseWithContinuationDtlEnvironmentPage) 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 (*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.

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

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

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

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

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

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

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

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

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

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 ResponseWithContinuationNotificationChannel

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

ResponseWithContinuationNotificationChannel the response of a list operation.

func (ResponseWithContinuationNotificationChannel) IsEmpty

IsEmpty returns true if the ListResult contains no values.

type ResponseWithContinuationNotificationChannelIterator

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

ResponseWithContinuationNotificationChannelIterator provides access to a complete listing of NotificationChannel values.

func (*ResponseWithContinuationNotificationChannelIterator) 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.

func (ResponseWithContinuationNotificationChannelIterator) NotDone

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

func (ResponseWithContinuationNotificationChannelIterator) Response

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

func (ResponseWithContinuationNotificationChannelIterator) Value

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

type ResponseWithContinuationNotificationChannelPage

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

ResponseWithContinuationNotificationChannelPage contains a page of NotificationChannel values.

func (*ResponseWithContinuationNotificationChannelPage) 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.

func (ResponseWithContinuationNotificationChannelPage) NotDone

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

func (ResponseWithContinuationNotificationChannelPage) Response

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

func (ResponseWithContinuationNotificationChannelPage) 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 (*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.

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

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

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

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 ResponseWithContinuationSecret

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

ResponseWithContinuationSecret the response of a list operation.

func (ResponseWithContinuationSecret) IsEmpty

func (rwcS ResponseWithContinuationSecret) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ResponseWithContinuationSecretIterator

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

ResponseWithContinuationSecretIterator provides access to a complete listing of Secret values.

func (*ResponseWithContinuationSecretIterator) 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.

func (ResponseWithContinuationSecretIterator) NotDone

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

func (ResponseWithContinuationSecretIterator) Response

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

func (ResponseWithContinuationSecretIterator) Value

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

type ResponseWithContinuationSecretPage

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

ResponseWithContinuationSecretPage contains a page of Secret values.

func (*ResponseWithContinuationSecretPage) 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.

func (ResponseWithContinuationSecretPage) NotDone

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

func (ResponseWithContinuationSecretPage) Response

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

func (ResponseWithContinuationSecretPage) Values

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

type ResponseWithContinuationServiceRunner

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

ResponseWithContinuationServiceRunner the response of a list operation.

func (ResponseWithContinuationServiceRunner) IsEmpty

IsEmpty returns true if the ListResult contains no values.

type ResponseWithContinuationServiceRunnerIterator

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

ResponseWithContinuationServiceRunnerIterator provides access to a complete listing of ServiceRunner values.

func (*ResponseWithContinuationServiceRunnerIterator) 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.

func (ResponseWithContinuationServiceRunnerIterator) NotDone

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

func (ResponseWithContinuationServiceRunnerIterator) Response

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

func (ResponseWithContinuationServiceRunnerIterator) Value

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

type ResponseWithContinuationServiceRunnerPage

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

ResponseWithContinuationServiceRunnerPage contains a page of ServiceRunner values.

func (*ResponseWithContinuationServiceRunnerPage) 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.

func (ResponseWithContinuationServiceRunnerPage) NotDone

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

func (ResponseWithContinuationServiceRunnerPage) Response

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

func (ResponseWithContinuationServiceRunnerPage) Values

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

type ResponseWithContinuationUser

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

ResponseWithContinuationUser the response of a list operation.

func (ResponseWithContinuationUser) IsEmpty

func (rwcU ResponseWithContinuationUser) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ResponseWithContinuationUserIterator

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

ResponseWithContinuationUserIterator provides access to a complete listing of User values.

func (*ResponseWithContinuationUserIterator) 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.

func (ResponseWithContinuationUserIterator) NotDone

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

func (ResponseWithContinuationUserIterator) Response

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

func (ResponseWithContinuationUserIterator) Value

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

type ResponseWithContinuationUserPage

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

ResponseWithContinuationUserPage contains a page of User values.

func (*ResponseWithContinuationUserPage) 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.

func (ResponseWithContinuationUserPage) NotDone

func (page ResponseWithContinuationUserPage) NotDone() bool

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

func (ResponseWithContinuationUserPage) Response

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

func (ResponseWithContinuationUserPage) Values

func (page ResponseWithContinuationUserPage) Values() []User

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

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

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 RetargetScheduleProperties

type RetargetScheduleProperties struct {
	// CurrentResourceID - The resource Id of the virtual machine on which the schedule operates
	CurrentResourceID *string `json:"currentResourceId,omitempty"`
	// TargetResourceID - The resource Id of the virtual machine that the schedule should be retargeted to
	TargetResourceID *string `json:"targetResourceId,omitempty"`
}

RetargetScheduleProperties properties for retargeting a virtual machine schedule.

type Schedule

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

Schedule a schedule.

func (*Schedule) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Schedule struct.

type ScheduleFragment

type ScheduleFragment struct {
	// 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,omitempty"`
	// SchedulePropertiesFragment - The properties of the resource.
	*SchedulePropertiesFragment `json:"properties,omitempty"`
}

ScheduleFragment a schedule.

func (*ScheduleFragment) UnmarshalJSON

func (sf *ScheduleFragment) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ScheduleFragment struct.

type ScheduleProperties

type ScheduleProperties struct {
	// Status - The status of the schedule (i.e. Enabled, Disabled). Possible values include: 'EnableStatusEnabled', 'EnableStatusDisabled'
	Status EnableStatus `json:"status,omitempty"`
	// TaskType - The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart).
	TaskType *string `json:"taskType,omitempty"`
	// WeeklyRecurrence - If the schedule will occur only some days of the week, specify the weekly recurrence.
	WeeklyRecurrence *WeekDetails `json:"weeklyRecurrence,omitempty"`
	// DailyRecurrence - If the schedule will occur once each day of the week, specify the daily recurrence.
	DailyRecurrence *DayDetails `json:"dailyRecurrence,omitempty"`
	// HourlyRecurrence - If the schedule will occur multiple times a day, specify the hourly recurrence.
	HourlyRecurrence *HourDetails `json:"hourlyRecurrence,omitempty"`
	// TimeZoneID - The time zone ID (e.g. Pacific Standard time).
	TimeZoneID *string `json:"timeZoneId,omitempty"`
	// NotificationSettings - Notification settings.
	NotificationSettings *NotificationSettings `json:"notificationSettings,omitempty"`
	// CreatedDate - The creation date of the schedule.
	CreatedDate *date.Time `json:"createdDate,omitempty"`
	// TargetResourceID - The resource ID to which the schedule belongs
	TargetResourceID *string `json:"targetResourceId,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// UniqueIdentifier - The unique immutable identifier of a resource (Guid).
	UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}

ScheduleProperties properties of a schedule.

type SchedulePropertiesFragment

type SchedulePropertiesFragment struct {
	// Status - The status of the schedule (i.e. Enabled, Disabled). Possible values include: 'EnableStatusEnabled', 'EnableStatusDisabled'
	Status EnableStatus `json:"status,omitempty"`
	// TaskType - The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart).
	TaskType *string `json:"taskType,omitempty"`
	// WeeklyRecurrence - If the schedule will occur only some days of the week, specify the weekly recurrence.
	WeeklyRecurrence *WeekDetailsFragment `json:"weeklyRecurrence,omitempty"`
	// DailyRecurrence - If the schedule will occur once each day of the week, specify the daily recurrence.
	DailyRecurrence *DayDetailsFragment `json:"dailyRecurrence,omitempty"`
	// HourlyRecurrence - If the schedule will occur multiple times a day, specify the hourly recurrence.
	HourlyRecurrence *HourDetailsFragment `json:"hourlyRecurrence,omitempty"`
	// TimeZoneID - The time zone ID (e.g. Pacific Standard time).
	TimeZoneID *string `json:"timeZoneId,omitempty"`
	// NotificationSettings - Notification settings.
	NotificationSettings *NotificationSettingsFragment `json:"notificationSettings,omitempty"`
	// TargetResourceID - The resource ID to which the schedule belongs
	TargetResourceID *string `json:"targetResourceId,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// UniqueIdentifier - The unique immutable identifier of a resource (Guid).
	UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}

SchedulePropertiesFragment properties of a schedule.

type SchedulesClient

type SchedulesClient struct {
	BaseClient
}

SchedulesClient is the the DevTest Labs Client.

func NewSchedulesClient

func NewSchedulesClient(subscriptionID string) SchedulesClient

NewSchedulesClient creates an instance of the SchedulesClient client.

func NewSchedulesClientWithBaseURI

func NewSchedulesClientWithBaseURI(baseURI string, subscriptionID string) SchedulesClient

NewSchedulesClientWithBaseURI creates an instance of the SchedulesClient client.

func (SchedulesClient) CreateOrUpdate

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

CreateOrUpdate create or replace an existing schedule.

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

func (SchedulesClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (SchedulesClient) CreateOrUpdateResponder

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

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

func (SchedulesClient) CreateOrUpdateSender

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

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

func (SchedulesClient) Delete

func (client SchedulesClient) Delete(ctx context.Context, resourceGroupName string, labName string, name string) (result autorest.Response, err error)

Delete delete schedule.

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

func (SchedulesClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (SchedulesClient) DeleteResponder

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

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

func (SchedulesClient) DeleteSender

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

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

func (SchedulesClient) Execute

func (client SchedulesClient) Execute(ctx context.Context, resourceGroupName string, labName string, name string) (result SchedulesExecuteFuture, err error)

Execute execute a schedule. This operation can take a while to complete.

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

func (SchedulesClient) ExecutePreparer

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

ExecutePreparer prepares the Execute request.

func (SchedulesClient) ExecuteResponder

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

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

func (SchedulesClient) ExecuteSender

func (client SchedulesClient) ExecuteSender(req *http.Request) (future SchedulesExecuteFuture, err error)

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

func (SchedulesClient) Get

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

Get get schedule.

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

func (SchedulesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (SchedulesClient) GetResponder

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

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

func (SchedulesClient) GetSender

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

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

func (SchedulesClient) List

func (client SchedulesClient) List(ctx context.Context, resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationSchedulePage, err error)

List list schedules in a given lab.

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

func (SchedulesClient) ListApplicable

func (client SchedulesClient) ListApplicable(ctx context.Context, resourceGroupName string, labName string, name string) (result ResponseWithContinuationSchedulePage, err error)

ListApplicable lists all applicable schedules

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

func (SchedulesClient) ListApplicableComplete

func (client SchedulesClient) ListApplicableComplete(ctx context.Context, resourceGroupName string, labName string, name string) (result ResponseWithContinuationScheduleIterator, err error)

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

func (SchedulesClient) ListApplicablePreparer

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

ListApplicablePreparer prepares the ListApplicable request.

func (SchedulesClient) ListApplicableResponder

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

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

func (SchedulesClient) ListApplicableSender

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

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

func (SchedulesClient) ListComplete

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

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

func (SchedulesClient) ListPreparer

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

ListPreparer prepares the List request.

func (SchedulesClient) ListResponder

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

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

func (SchedulesClient) ListSender

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

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

func (SchedulesClient) Update

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

Update modify properties of schedules.

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

func (SchedulesClient) UpdatePreparer

func (client SchedulesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, labName string, name string, schedule ScheduleFragment) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (SchedulesClient) UpdateResponder

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

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

func (SchedulesClient) UpdateSender

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

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

type SchedulesExecuteFuture

type SchedulesExecuteFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (SchedulesExecuteFuture) Result

func (future SchedulesExecuteFuture) Result(client SchedulesClient) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type Secret

type Secret struct {
	autorest.Response `json:"-"`
	// 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,omitempty"`
	// SecretProperties - The properties of the resource.
	*SecretProperties `json:"properties,omitempty"`
}

Secret a secret.

func (*Secret) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Secret struct.

type SecretProperties

type SecretProperties struct {
	// Value - The value of the secret for secret creation.
	Value *string `json:"value,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// UniqueIdentifier - The unique immutable identifier of a resource (Guid).
	UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}

SecretProperties properties of a secret.

type SecretsClient

type SecretsClient struct {
	BaseClient
}

SecretsClient is the the DevTest Labs Client.

func NewSecretsClient

func NewSecretsClient(subscriptionID string) SecretsClient

NewSecretsClient creates an instance of the SecretsClient client.

func NewSecretsClientWithBaseURI

func NewSecretsClientWithBaseURI(baseURI string, subscriptionID string) SecretsClient

NewSecretsClientWithBaseURI creates an instance of the SecretsClient client.

func (SecretsClient) CreateOrUpdate

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

CreateOrUpdate create or replace an existing secret.

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

func (SecretsClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (SecretsClient) CreateOrUpdateResponder

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

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

func (SecretsClient) CreateOrUpdateSender

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

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

func (SecretsClient) Delete

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

Delete delete secret.

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

func (SecretsClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (SecretsClient) DeleteResponder

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

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

func (SecretsClient) DeleteSender

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

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

func (SecretsClient) Get

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

Get get secret.

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

func (SecretsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (SecretsClient) GetResponder

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

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

func (SecretsClient) GetSender

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

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

func (SecretsClient) List

func (client SecretsClient) List(ctx context.Context, resourceGroupName string, labName string, userName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationSecretPage, err error)

List list secrets in a given user profile.

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

func (SecretsClient) ListComplete

func (client SecretsClient) ListComplete(ctx context.Context, resourceGroupName string, labName string, userName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationSecretIterator, err error)

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

func (SecretsClient) ListPreparer

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

ListPreparer prepares the List request.

func (SecretsClient) ListResponder

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

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

func (SecretsClient) ListSender

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

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

type ServiceRunner

type ServiceRunner struct {
	autorest.Response `json:"-"`
	// ID - 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,omitempty"`
	// Identity - The identity of the resource.
	Identity *IdentityProperties `json:"identity,omitempty"`
}

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

type ServiceRunnersClient

type ServiceRunnersClient struct {
	BaseClient
}

ServiceRunnersClient is the the DevTest Labs Client.

func NewServiceRunnersClient

func NewServiceRunnersClient(subscriptionID string) ServiceRunnersClient

NewServiceRunnersClient creates an instance of the ServiceRunnersClient client.

func NewServiceRunnersClientWithBaseURI

func NewServiceRunnersClientWithBaseURI(baseURI string, subscriptionID string) ServiceRunnersClient

NewServiceRunnersClientWithBaseURI creates an instance of the ServiceRunnersClient client.

func (ServiceRunnersClient) CreateOrUpdate

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

CreateOrUpdate create or replace an existing Service runner.

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

func (ServiceRunnersClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ServiceRunnersClient) CreateOrUpdateResponder

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

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

func (ServiceRunnersClient) CreateOrUpdateSender

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

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

func (ServiceRunnersClient) Delete

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

Delete delete service runner.

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

func (ServiceRunnersClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (ServiceRunnersClient) DeleteResponder

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

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

func (ServiceRunnersClient) DeleteSender

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

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

func (ServiceRunnersClient) Get

func (client ServiceRunnersClient) Get(ctx context.Context, resourceGroupName string, labName string, name string) (result ServiceRunner, err error)

Get get service runner.

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

func (ServiceRunnersClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ServiceRunnersClient) GetResponder

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

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

func (ServiceRunnersClient) GetSender

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

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

func (ServiceRunnersClient) List

func (client ServiceRunnersClient) List(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderby string) (result ResponseWithContinuationServiceRunnerPage, err error)

List list service runners in a given lab.

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

func (ServiceRunnersClient) ListComplete

func (client ServiceRunnersClient) ListComplete(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderby string) (result ResponseWithContinuationServiceRunnerIterator, err error)

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

func (ServiceRunnersClient) ListPreparer

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

ListPreparer prepares the List request.

func (ServiceRunnersClient) ListResponder

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

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

func (ServiceRunnersClient) ListSender

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

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

type SharedPublicIPAddressConfiguration

type SharedPublicIPAddressConfiguration struct {
	// InboundNatRules - The incoming NAT rules
	InboundNatRules *[]InboundNatRule `json:"inboundNatRules,omitempty"`
}

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

type SharedPublicIPAddressConfigurationFragment

type SharedPublicIPAddressConfigurationFragment struct {
	// InboundNatRules - The incoming NAT rules
	InboundNatRules *[]InboundNatRuleFragment `json:"inboundNatRules,omitempty"`
}

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

type ShutdownNotificationContent

type ShutdownNotificationContent struct {
	// SkipURL - The URL to skip auto-shutdown.
	SkipURL *string `json:"skipUrl,omitempty"`
	// DelayURL60 - The URL to delay shutdown by 60 minutes.
	DelayURL60 *string `json:"delayUrl60,omitempty"`
	// DelayURL120 - The URL to delay shutdown by 2 hours.
	DelayURL120 *string `json:"delayUrl120,omitempty"`
	// VMName - The virtual machine to be shut down.
	VMName *string `json:"vmName,omitempty"`
	// GUID - The GUID for the virtual machine to be shut down.
	GUID *string `json:"guid,omitempty"`
	// Owner - The owner of the virtual machine.
	Owner *string `json:"owner,omitempty"`
	// EventType - The event for which a notification will be sent.
	EventType *string `json:"eventType,omitempty"`
	// Text - The text for the notification.
	Text *string `json:"text,omitempty"`
	// SubscriptionID - The subscription ID for the schedule.
	SubscriptionID *string `json:"subscriptionId,omitempty"`
	// ResourceGroupName - The resource group name for the schedule.
	ResourceGroupName *string `json:"resourceGroupName,omitempty"`
	// LabName - The lab for the schedule.
	LabName *string `json:"labName,omitempty"`
}

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

type SourceControlType

type SourceControlType string

SourceControlType enumerates the values for source control type.

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

type StorageType

type StorageType string

StorageType enumerates the values for storage type.

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

type Subnet

type Subnet struct {
	// ResourceID - The resource ID of the subnet.
	ResourceID *string `json:"resourceId,omitempty"`
	// LabSubnetName - The name of the subnet as seen in the lab.
	LabSubnetName *string `json:"labSubnetName,omitempty"`
	// AllowPublicIP - The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)). Possible values include: 'Default', 'Deny', 'Allow'
	AllowPublicIP UsagePermissionType `json:"allowPublicIp,omitempty"`
}

Subnet subnet information.

type SubnetFragment

type SubnetFragment struct {
	// ResourceID - The resource ID of the subnet.
	ResourceID *string `json:"resourceId,omitempty"`
	// LabSubnetName - The name of the subnet as seen in the lab.
	LabSubnetName *string `json:"labSubnetName,omitempty"`
	// AllowPublicIP - The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)). Possible values include: 'Default', 'Deny', 'Allow'
	AllowPublicIP UsagePermissionType `json:"allowPublicIp,omitempty"`
}

SubnetFragment subnet information.

type SubnetOverride

type SubnetOverride struct {
	// ResourceID - The resource ID 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 (i.e. Allow, Deny). 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 (i.e. Allow, Deny). Possible values include: 'Default', 'Deny', 'Allow'
	UsePublicIPAddressPermission UsagePermissionType `json:"usePublicIpAddressPermission,omitempty"`
	// SharedPublicIPAddressConfiguration - Properties that virtual machines on this subnet will share.
	SharedPublicIPAddressConfiguration *SubnetSharedPublicIPAddressConfiguration `json:"sharedPublicIpAddressConfiguration,omitempty"`
	// VirtualNetworkPoolName - The virtual network pool associated with this subnet.
	VirtualNetworkPoolName *string `json:"virtualNetworkPoolName,omitempty"`
}

SubnetOverride property overrides on a subnet of a virtual network.

type SubnetOverrideFragment

type SubnetOverrideFragment struct {
	// ResourceID - The resource ID 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 (i.e. Allow, Deny). 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 (i.e. Allow, Deny). Possible values include: 'Default', 'Deny', 'Allow'
	UsePublicIPAddressPermission UsagePermissionType `json:"usePublicIpAddressPermission,omitempty"`
	// SharedPublicIPAddressConfiguration - Properties that virtual machines on this subnet will share.
	SharedPublicIPAddressConfiguration *SubnetSharedPublicIPAddressConfigurationFragment `json:"sharedPublicIpAddressConfiguration,omitempty"`
	// VirtualNetworkPoolName - The virtual network pool associated with this subnet.
	VirtualNetworkPoolName *string `json:"virtualNetworkPoolName,omitempty"`
}

SubnetOverrideFragment property overrides on a subnet of a virtual network.

type SubnetSharedPublicIPAddressConfiguration

type SubnetSharedPublicIPAddressConfiguration struct {
	// AllowedPorts - Backend ports that virtual machines on this subnet are allowed to expose
	AllowedPorts *[]Port `json:"allowedPorts,omitempty"`
}

SubnetSharedPublicIPAddressConfiguration configuration for public IP address sharing.

type SubnetSharedPublicIPAddressConfigurationFragment

type SubnetSharedPublicIPAddressConfigurationFragment struct {
	// AllowedPorts - Backend ports that virtual machines on this subnet are allowed to expose
	AllowedPorts *[]PortFragment `json:"allowedPorts,omitempty"`
}

SubnetSharedPublicIPAddressConfigurationFragment configuration for public IP address sharing.

type TargetCostProperties

type TargetCostProperties struct {
	// Status - Target cost status. Possible values include: 'TargetCostStatusEnabled', 'TargetCostStatusDisabled'
	Status TargetCostStatus `json:"status,omitempty"`
	// Target - Lab target cost
	Target *int32 `json:"target,omitempty"`
	// CostThresholds - Cost thresholds.
	CostThresholds *[]CostThresholdProperties `json:"costThresholds,omitempty"`
	// CycleStartDateTime - Reporting cycle start date.
	CycleStartDateTime *date.Time `json:"cycleStartDateTime,omitempty"`
	// CycleEndDateTime - Reporting cycle end date.
	CycleEndDateTime *date.Time `json:"cycleEndDateTime,omitempty"`
	// CycleType - Reporting cycle type. Possible values include: 'CalendarMonth', 'Custom'
	CycleType ReportingCycleType `json:"cycleType,omitempty"`
}

TargetCostProperties properties of a cost target.

type TargetCostStatus

type TargetCostStatus string

TargetCostStatus enumerates the values for target cost status.

const (
	// TargetCostStatusDisabled ...
	TargetCostStatusDisabled TargetCostStatus = "Disabled"
	// TargetCostStatusEnabled ...
	TargetCostStatusEnabled TargetCostStatus = "Enabled"
)

type TransportProtocol

type TransportProtocol string

TransportProtocol enumerates the values for transport protocol.

const (
	// TCP ...
	TCP TransportProtocol = "Tcp"
	// UDP ...
	UDP TransportProtocol = "Udp"
)

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

type User

type User struct {
	autorest.Response `json:"-"`
	// 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,omitempty"`
	// UserProperties - The properties of the resource.
	*UserProperties `json:"properties,omitempty"`
}

User profile of a lab user.

func (*User) UnmarshalJSON

func (u *User) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for User struct.

type UserFragment

type UserFragment struct {
	// 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,omitempty"`
	// UserPropertiesFragment - The properties of the resource.
	*UserPropertiesFragment `json:"properties,omitempty"`
}

UserFragment profile of a lab user.

func (*UserFragment) UnmarshalJSON

func (uf *UserFragment) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for UserFragment struct.

type UserIdentity

type UserIdentity struct {
	// PrincipalName - Set to the principal name / UPN of the client JWT making the request.
	PrincipalName *string `json:"principalName,omitempty"`
	// PrincipalID - Set to the principal Id of the client JWT making the request. Service principal will not have the principal Id.
	PrincipalID *string `json:"principalId,omitempty"`
	// TenantID - Set to the tenant ID of the client JWT making the request.
	TenantID *string `json:"tenantId,omitempty"`
	// ObjectID - Set to the object Id of the client JWT making the request. Not all users have object Id. For CSP (reseller) scenarios for example, object Id is not available.
	ObjectID *string `json:"objectId,omitempty"`
	// AppID - Set to the app Id of the client JWT making the request.
	AppID *string `json:"appId,omitempty"`
}

UserIdentity identity attributes of a lab user.

type UserIdentityFragment

type UserIdentityFragment struct {
	// PrincipalName - Set to the principal name / UPN of the client JWT making the request.
	PrincipalName *string `json:"principalName,omitempty"`
	// PrincipalID - Set to the principal Id of the client JWT making the request. Service principal will not have the principal Id.
	PrincipalID *string `json:"principalId,omitempty"`
	// TenantID - Set to the tenant ID of the client JWT making the request.
	TenantID *string `json:"tenantId,omitempty"`
	// ObjectID - Set to the object Id of the client JWT making the request. Not all users have object Id. For CSP (reseller) scenarios for example, object Id is not available.
	ObjectID *string `json:"objectId,omitempty"`
	// AppID - Set to the app Id of the client JWT making the request.
	AppID *string `json:"appId,omitempty"`
}

UserIdentityFragment identity attributes of a lab user.

type UserProperties

type UserProperties struct {
	// Identity - The identity of the user.
	Identity *UserIdentity `json:"identity,omitempty"`
	// SecretStore - The secret store of the user.
	SecretStore *UserSecretStore `json:"secretStore,omitempty"`
	// CreatedDate - The creation date of the user profile.
	CreatedDate *date.Time `json:"createdDate,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// UniqueIdentifier - The unique immutable identifier of a resource (Guid).
	UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}

UserProperties properties of a lab user profile.

type UserPropertiesFragment

type UserPropertiesFragment struct {
	// Identity - The identity of the user.
	Identity *UserIdentityFragment `json:"identity,omitempty"`
	// SecretStore - The secret store of the user.
	SecretStore *UserSecretStoreFragment `json:"secretStore,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// UniqueIdentifier - The unique immutable identifier of a resource (Guid).
	UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}

UserPropertiesFragment properties of a lab user profile.

type UserSecretStore

type UserSecretStore struct {
	// KeyVaultURI - The URI of the user's Key vault.
	KeyVaultURI *string `json:"keyVaultUri,omitempty"`
	// KeyVaultID - The ID of the user's Key vault.
	KeyVaultID *string `json:"keyVaultId,omitempty"`
}

UserSecretStore properties of a user's secret store.

type UserSecretStoreFragment

type UserSecretStoreFragment struct {
	// KeyVaultURI - The URI of the user's Key vault.
	KeyVaultURI *string `json:"keyVaultUri,omitempty"`
	// KeyVaultID - The ID of the user's Key vault.
	KeyVaultID *string `json:"keyVaultId,omitempty"`
}

UserSecretStoreFragment properties of a user's secret store.

type UsersClient

type UsersClient struct {
	BaseClient
}

UsersClient is the the DevTest Labs Client.

func NewUsersClient

func NewUsersClient(subscriptionID string) UsersClient

NewUsersClient creates an instance of the UsersClient client.

func NewUsersClientWithBaseURI

func NewUsersClientWithBaseURI(baseURI string, subscriptionID string) UsersClient

NewUsersClientWithBaseURI creates an instance of the UsersClient client.

func (UsersClient) CreateOrUpdate

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

CreateOrUpdate create or replace an existing user profile.

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

func (UsersClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (UsersClient) CreateOrUpdateResponder

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

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

func (UsersClient) CreateOrUpdateSender

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

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

func (UsersClient) Delete

func (client UsersClient) Delete(ctx context.Context, resourceGroupName string, labName string, name string) (result UsersDeleteFuture, err error)

Delete delete user profile. This operation can take a while to complete.

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

func (UsersClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (UsersClient) DeleteResponder

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

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

func (UsersClient) DeleteSender

func (client UsersClient) DeleteSender(req *http.Request) (future UsersDeleteFuture, err error)

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

func (UsersClient) Get

func (client UsersClient) Get(ctx context.Context, resourceGroupName string, labName string, name string, expand string) (result User, err error)

Get get user profile.

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

func (UsersClient) GetPreparer

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

GetPreparer prepares the Get request.

func (UsersClient) GetResponder

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

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

func (UsersClient) GetSender

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

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

func (UsersClient) List

func (client UsersClient) List(ctx context.Context, resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationUserPage, err error)

List list user profiles in a given lab.

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

func (UsersClient) ListComplete

func (client UsersClient) ListComplete(ctx context.Context, resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationUserIterator, err error)

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

func (UsersClient) ListPreparer

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

ListPreparer prepares the List request.

func (UsersClient) ListResponder

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

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

func (UsersClient) ListSender

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

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

func (UsersClient) Update

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

Update modify properties of user profiles.

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

func (UsersClient) UpdatePreparer

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

UpdatePreparer prepares the Update request.

func (UsersClient) UpdateResponder

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

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

func (UsersClient) UpdateSender

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

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

type UsersDeleteFuture

type UsersDeleteFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (UsersDeleteFuture) Result

func (future UsersDeleteFuture) Result(client UsersClient) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type VirtualMachineCreationSource

type VirtualMachineCreationSource string

VirtualMachineCreationSource enumerates the values for virtual machine creation source.

const (
	// FromCustomImage ...
	FromCustomImage VirtualMachineCreationSource = "FromCustomImage"
	// FromGalleryImage ...
	FromGalleryImage VirtualMachineCreationSource = "FromGalleryImage"
)

type VirtualMachineSchedulesClient

type VirtualMachineSchedulesClient struct {
	BaseClient
}

VirtualMachineSchedulesClient is the the DevTest Labs Client.

func NewVirtualMachineSchedulesClient

func NewVirtualMachineSchedulesClient(subscriptionID string) VirtualMachineSchedulesClient

NewVirtualMachineSchedulesClient creates an instance of the VirtualMachineSchedulesClient client.

func NewVirtualMachineSchedulesClientWithBaseURI

func NewVirtualMachineSchedulesClientWithBaseURI(baseURI string, subscriptionID string) VirtualMachineSchedulesClient

NewVirtualMachineSchedulesClientWithBaseURI creates an instance of the VirtualMachineSchedulesClient client.

func (VirtualMachineSchedulesClient) CreateOrUpdate

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

CreateOrUpdate create or replace an existing schedule.

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

func (VirtualMachineSchedulesClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (VirtualMachineSchedulesClient) CreateOrUpdateResponder

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

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

func (VirtualMachineSchedulesClient) CreateOrUpdateSender

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

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

func (VirtualMachineSchedulesClient) Delete

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

Delete delete schedule.

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

func (VirtualMachineSchedulesClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (VirtualMachineSchedulesClient) DeleteResponder

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

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

func (VirtualMachineSchedulesClient) DeleteSender

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

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

func (VirtualMachineSchedulesClient) Execute

func (client VirtualMachineSchedulesClient) Execute(ctx context.Context, resourceGroupName string, labName string, virtualMachineName string, name string) (result VirtualMachineSchedulesExecuteFuture, err error)

Execute execute a schedule. This operation can take a while to complete.

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

func (VirtualMachineSchedulesClient) ExecutePreparer

func (client VirtualMachineSchedulesClient) ExecutePreparer(ctx context.Context, resourceGroupName string, labName string, virtualMachineName string, name string) (*http.Request, error)

ExecutePreparer prepares the Execute request.

func (VirtualMachineSchedulesClient) ExecuteResponder

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

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

func (VirtualMachineSchedulesClient) ExecuteSender

func (client VirtualMachineSchedulesClient) ExecuteSender(req *http.Request) (future VirtualMachineSchedulesExecuteFuture, err error)

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

func (VirtualMachineSchedulesClient) Get

func (client VirtualMachineSchedulesClient) Get(ctx context.Context, resourceGroupName string, labName string, virtualMachineName string, name string, expand string) (result Schedule, err error)

Get get schedule.

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

func (VirtualMachineSchedulesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (VirtualMachineSchedulesClient) GetResponder

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

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

func (VirtualMachineSchedulesClient) GetSender

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

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

func (VirtualMachineSchedulesClient) List

func (client VirtualMachineSchedulesClient) List(ctx context.Context, resourceGroupName string, labName string, virtualMachineName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationSchedulePage, err error)

List list schedules in a given virtual machine.

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

func (VirtualMachineSchedulesClient) ListComplete

func (client VirtualMachineSchedulesClient) ListComplete(ctx context.Context, resourceGroupName string, labName string, virtualMachineName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationScheduleIterator, err error)

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

func (VirtualMachineSchedulesClient) ListPreparer

func (client VirtualMachineSchedulesClient) ListPreparer(ctx context.Context, resourceGroupName string, labName string, virtualMachineName string, expand string, filter string, top *int32, orderby string) (*http.Request, error)

ListPreparer prepares the List request.

func (VirtualMachineSchedulesClient) ListResponder

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

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

func (VirtualMachineSchedulesClient) ListSender

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

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

func (VirtualMachineSchedulesClient) Update

func (client VirtualMachineSchedulesClient) Update(ctx context.Context, resourceGroupName string, labName string, virtualMachineName string, name string, schedule ScheduleFragment) (result Schedule, err error)

Update modify properties of schedules.

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

func (VirtualMachineSchedulesClient) UpdatePreparer

func (client VirtualMachineSchedulesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, labName string, virtualMachineName string, name string, schedule ScheduleFragment) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (VirtualMachineSchedulesClient) UpdateResponder

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

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

func (VirtualMachineSchedulesClient) UpdateSender

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

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

type VirtualMachineSchedulesExecuteFuture

type VirtualMachineSchedulesExecuteFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (VirtualMachineSchedulesExecuteFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type VirtualMachinesAddDataDiskFuture

type VirtualMachinesAddDataDiskFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (VirtualMachinesAddDataDiskFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type VirtualMachinesApplyArtifactsFuture

type VirtualMachinesApplyArtifactsFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (VirtualMachinesApplyArtifactsFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type VirtualMachinesClaimFuture

type VirtualMachinesClaimFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (VirtualMachinesClaimFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type VirtualMachinesClient

type VirtualMachinesClient struct {
	BaseClient
}

VirtualMachinesClient is the the DevTest Labs Client.

func NewVirtualMachinesClient

func NewVirtualMachinesClient(subscriptionID string) VirtualMachinesClient

NewVirtualMachinesClient creates an instance of the VirtualMachinesClient client.

func NewVirtualMachinesClientWithBaseURI

func NewVirtualMachinesClientWithBaseURI(baseURI string, subscriptionID string) VirtualMachinesClient

NewVirtualMachinesClientWithBaseURI creates an instance of the VirtualMachinesClient client.

func (VirtualMachinesClient) AddDataDisk

func (client VirtualMachinesClient) AddDataDisk(ctx context.Context, resourceGroupName string, labName string, name string, dataDiskProperties DataDiskProperties) (result VirtualMachinesAddDataDiskFuture, err error)

AddDataDisk attach a new or existing data disk to virtual machine. This operation can take a while to complete.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the virtual machine. dataDiskProperties is request body for adding a new or existing data disk to a virtual machine.

func (VirtualMachinesClient) AddDataDiskPreparer

func (client VirtualMachinesClient) AddDataDiskPreparer(ctx context.Context, resourceGroupName string, labName string, name string, dataDiskProperties DataDiskProperties) (*http.Request, error)

AddDataDiskPreparer prepares the AddDataDisk request.

func (VirtualMachinesClient) AddDataDiskResponder

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

AddDataDiskResponder handles the response to the AddDataDisk request. The method always closes the http.Response Body.

func (VirtualMachinesClient) AddDataDiskSender

func (client VirtualMachinesClient) AddDataDiskSender(req *http.Request) (future VirtualMachinesAddDataDiskFuture, err error)

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

func (VirtualMachinesClient) ApplyArtifacts

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

ApplyArtifacts apply artifacts to virtual machine. This operation can take a while to complete.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the virtual machine. applyArtifactsRequest is request body for applying artifacts to a virtual machine.

func (VirtualMachinesClient) ApplyArtifactsPreparer

func (client VirtualMachinesClient) ApplyArtifactsPreparer(ctx context.Context, resourceGroupName string, labName string, name string, applyArtifactsRequest ApplyArtifactsRequest) (*http.Request, error)

ApplyArtifactsPreparer prepares the ApplyArtifacts request.

func (VirtualMachinesClient) ApplyArtifactsResponder

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

ApplyArtifactsResponder handles the response to the ApplyArtifacts request. The method always closes the http.Response Body.

func (VirtualMachinesClient) ApplyArtifactsSender

func (client VirtualMachinesClient) ApplyArtifactsSender(req *http.Request) (future VirtualMachinesApplyArtifactsFuture, err error)

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

func (VirtualMachinesClient) Claim

func (client VirtualMachinesClient) Claim(ctx context.Context, resourceGroupName string, labName string, name string) (result VirtualMachinesClaimFuture, err error)

Claim take ownership of an existing virtual machine This operation can take a while to complete.

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

func (VirtualMachinesClient) ClaimPreparer

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

ClaimPreparer prepares the Claim request.

func (VirtualMachinesClient) ClaimResponder

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

ClaimResponder handles the response to the Claim request. The method always closes the http.Response Body.

func (VirtualMachinesClient) ClaimSender

func (client VirtualMachinesClient) ClaimSender(req *http.Request) (future VirtualMachinesClaimFuture, err error)

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

func (VirtualMachinesClient) CreateOrUpdate

func (client VirtualMachinesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, labName string, name string, labVirtualMachine LabVirtualMachine) (result VirtualMachinesCreateOrUpdateFuture, err error)

CreateOrUpdate create or replace an existing Virtual machine. This operation can take a while to complete.

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

func (VirtualMachinesClient) CreateOrUpdatePreparer

func (client VirtualMachinesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, labName string, name string, labVirtualMachine LabVirtualMachine) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (VirtualMachinesClient) CreateOrUpdateResponder

func (client VirtualMachinesClient) CreateOrUpdateResponder(resp *http.Response) (result LabVirtualMachine, err error)

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

func (VirtualMachinesClient) CreateOrUpdateSender

func (client VirtualMachinesClient) CreateOrUpdateSender(req *http.Request) (future VirtualMachinesCreateOrUpdateFuture, err error)

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

func (VirtualMachinesClient) Delete

func (client VirtualMachinesClient) Delete(ctx context.Context, resourceGroupName string, labName string, name string) (result VirtualMachinesDeleteFuture, err error)

Delete delete virtual machine. This operation can take a while to complete.

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

func (VirtualMachinesClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (VirtualMachinesClient) DeleteResponder

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

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

func (VirtualMachinesClient) DeleteSender

func (client VirtualMachinesClient) DeleteSender(req *http.Request) (future VirtualMachinesDeleteFuture, err error)

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

func (VirtualMachinesClient) DetachDataDisk

func (client VirtualMachinesClient) DetachDataDisk(ctx context.Context, resourceGroupName string, labName string, name string, detachDataDiskProperties DetachDataDiskProperties) (result VirtualMachinesDetachDataDiskFuture, err error)

DetachDataDisk detach the specified disk from the virtual machine. This operation can take a while to complete.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the virtual machine. detachDataDiskProperties is request body for detaching data disk from a virtual machine.

func (VirtualMachinesClient) DetachDataDiskPreparer

func (client VirtualMachinesClient) DetachDataDiskPreparer(ctx context.Context, resourceGroupName string, labName string, name string, detachDataDiskProperties DetachDataDiskProperties) (*http.Request, error)

DetachDataDiskPreparer prepares the DetachDataDisk request.

func (VirtualMachinesClient) DetachDataDiskResponder

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

DetachDataDiskResponder handles the response to the DetachDataDisk request. The method always closes the http.Response Body.

func (VirtualMachinesClient) DetachDataDiskSender

func (client VirtualMachinesClient) DetachDataDiskSender(req *http.Request) (future VirtualMachinesDetachDataDiskFuture, err error)

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

func (VirtualMachinesClient) Get

func (client VirtualMachinesClient) Get(ctx context.Context, resourceGroupName string, labName string, name string, expand string) (result LabVirtualMachine, err error)

Get get virtual machine.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the virtual machine. expand is specify the $expand query. Example: 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)'

func (VirtualMachinesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (VirtualMachinesClient) GetResponder

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

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

func (VirtualMachinesClient) GetSender

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

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

func (VirtualMachinesClient) List

func (client VirtualMachinesClient) List(ctx context.Context, resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationLabVirtualMachinePage, err error)

List list virtual machines in a given lab.

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

func (VirtualMachinesClient) ListApplicableSchedules

func (client VirtualMachinesClient) ListApplicableSchedules(ctx context.Context, resourceGroupName string, labName string, name string) (result ApplicableSchedule, err error)

ListApplicableSchedules lists all applicable schedules

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

func (VirtualMachinesClient) ListApplicableSchedulesPreparer

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

ListApplicableSchedulesPreparer prepares the ListApplicableSchedules request.

func (VirtualMachinesClient) ListApplicableSchedulesResponder

func (client VirtualMachinesClient) ListApplicableSchedulesResponder(resp *http.Response) (result ApplicableSchedule, err error)

ListApplicableSchedulesResponder handles the response to the ListApplicableSchedules request. The method always closes the http.Response Body.

func (VirtualMachinesClient) ListApplicableSchedulesSender

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

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

func (VirtualMachinesClient) ListComplete

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

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

func (VirtualMachinesClient) ListPreparer

func (client VirtualMachinesClient) ListPreparer(ctx context.Context, resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string) (*http.Request, error)

ListPreparer prepares the List request.

func (VirtualMachinesClient) ListResponder

func (client VirtualMachinesClient) ListResponder(resp *http.Response) (result ResponseWithContinuationLabVirtualMachine, err error)

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

func (VirtualMachinesClient) ListSender

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

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

func (VirtualMachinesClient) Start

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

Start start a virtual machine. This operation can take a while to complete.

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

func (VirtualMachinesClient) StartPreparer

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

StartPreparer prepares the Start request.

func (VirtualMachinesClient) StartResponder

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

StartResponder handles the response to the Start request. The method always closes the http.Response Body.

func (VirtualMachinesClient) StartSender

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

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

func (VirtualMachinesClient) Stop

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

Stop stop a virtual machine This operation can take a while to complete.

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

func (VirtualMachinesClient) StopPreparer

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

StopPreparer prepares the Stop request.

func (VirtualMachinesClient) StopResponder

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

StopResponder handles the response to the Stop request. The method always closes the http.Response Body.

func (VirtualMachinesClient) StopSender

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

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

func (VirtualMachinesClient) Update

func (client VirtualMachinesClient) Update(ctx context.Context, resourceGroupName string, labName string, name string, labVirtualMachine LabVirtualMachineFragment) (result LabVirtualMachine, err error)

Update modify properties of virtual machines.

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

func (VirtualMachinesClient) UpdatePreparer

func (client VirtualMachinesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, labName string, name string, labVirtualMachine LabVirtualMachineFragment) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (VirtualMachinesClient) UpdateResponder

func (client VirtualMachinesClient) UpdateResponder(resp *http.Response) (result LabVirtualMachine, err error)

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

func (VirtualMachinesClient) UpdateSender

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

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

type VirtualMachinesCreateOrUpdateFuture

type VirtualMachinesCreateOrUpdateFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (VirtualMachinesCreateOrUpdateFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type VirtualMachinesDeleteFuture

type VirtualMachinesDeleteFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (VirtualMachinesDeleteFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type VirtualMachinesDetachDataDiskFuture

type VirtualMachinesDetachDataDiskFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (VirtualMachinesDetachDataDiskFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type VirtualMachinesStartFuture

type VirtualMachinesStartFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (VirtualMachinesStartFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type VirtualMachinesStopFuture

type VirtualMachinesStopFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (VirtualMachinesStopFuture) Result

func (future VirtualMachinesStopFuture) Result(client VirtualMachinesClient) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type VirtualNetwork

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

VirtualNetwork a virtual network.

func (*VirtualNetwork) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for VirtualNetwork struct.

type VirtualNetworkFragment

type VirtualNetworkFragment struct {
	// 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,omitempty"`
	// VirtualNetworkPropertiesFragment - The properties of the resource.
	*VirtualNetworkPropertiesFragment `json:"properties,omitempty"`
}

VirtualNetworkFragment a virtual network.

func (*VirtualNetworkFragment) UnmarshalJSON

func (vnf *VirtualNetworkFragment) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for VirtualNetworkFragment struct.

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"`
	// ExternalSubnets - The external subnet properties.
	ExternalSubnets *[]ExternalSubnet `json:"externalSubnets,omitempty"`
	// SubnetOverrides - The subnet overrides of the virtual network.
	SubnetOverrides *[]SubnetOverride `json:"subnetOverrides,omitempty"`
	// CreatedDate - The creation date of the virtual network.
	CreatedDate *date.Time `json:"createdDate,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// UniqueIdentifier - The unique immutable identifier of a resource (Guid).
	UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}

VirtualNetworkProperties properties of a virtual network.

type VirtualNetworkPropertiesFragment

type VirtualNetworkPropertiesFragment struct {
	// AllowedSubnets - The allowed subnets of the virtual network.
	AllowedSubnets *[]SubnetFragment `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"`
	// ExternalSubnets - The external subnet properties.
	ExternalSubnets *[]ExternalSubnetFragment `json:"externalSubnets,omitempty"`
	// SubnetOverrides - The subnet overrides of the virtual network.
	SubnetOverrides *[]SubnetOverrideFragment `json:"subnetOverrides,omitempty"`
	// ProvisioningState - The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// UniqueIdentifier - The unique immutable identifier of a resource (Guid).
	UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}

VirtualNetworkPropertiesFragment properties of a virtual network.

type VirtualNetworksClient

type VirtualNetworksClient struct {
	BaseClient
}

VirtualNetworksClient is the the DevTest Labs Client.

func NewVirtualNetworksClient

func NewVirtualNetworksClient(subscriptionID string) VirtualNetworksClient

NewVirtualNetworksClient creates an instance of the VirtualNetworksClient client.

func NewVirtualNetworksClientWithBaseURI

func NewVirtualNetworksClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworksClient

NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client.

func (VirtualNetworksClient) CreateOrUpdate

func (client VirtualNetworksClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, labName string, name string, virtualNetwork VirtualNetwork) (result VirtualNetworksCreateOrUpdateFuture, err error)

CreateOrUpdate create or replace an existing virtual network. This operation can take a while to complete.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the virtual network. virtualNetwork is a virtual network.

func (VirtualNetworksClient) CreateOrUpdatePreparer

func (client VirtualNetworksClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, labName string, name string, virtualNetwork VirtualNetwork) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (VirtualNetworksClient) CreateOrUpdateResponder

func (client VirtualNetworksClient) CreateOrUpdateResponder(resp *http.Response) (result VirtualNetwork, err error)

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

func (VirtualNetworksClient) CreateOrUpdateSender

func (client VirtualNetworksClient) CreateOrUpdateSender(req *http.Request) (future VirtualNetworksCreateOrUpdateFuture, err error)

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

func (VirtualNetworksClient) Delete

func (client VirtualNetworksClient) Delete(ctx context.Context, resourceGroupName string, labName string, name string) (result VirtualNetworksDeleteFuture, err error)

Delete delete virtual network. This operation can take a while to complete.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the virtual network.

func (VirtualNetworksClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (VirtualNetworksClient) DeleteResponder

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

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

func (VirtualNetworksClient) DeleteSender

func (client VirtualNetworksClient) DeleteSender(req *http.Request) (future VirtualNetworksDeleteFuture, err error)

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

func (VirtualNetworksClient) Get

func (client VirtualNetworksClient) Get(ctx context.Context, resourceGroupName string, labName string, name string, expand string) (result VirtualNetwork, err error)

Get get virtual network.

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

func (VirtualNetworksClient) GetPreparer

func (client VirtualNetworksClient) GetPreparer(ctx context.Context, resourceGroupName string, labName string, name string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (VirtualNetworksClient) GetResponder

func (client VirtualNetworksClient) GetResponder(resp *http.Response) (result VirtualNetwork, err error)

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

func (VirtualNetworksClient) GetSender

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

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

func (VirtualNetworksClient) List

func (client VirtualNetworksClient) List(ctx context.Context, resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationVirtualNetworkPage, err error)

List list virtual networks in a given lab.

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

func (VirtualNetworksClient) ListComplete

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

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

func (VirtualNetworksClient) ListPreparer

func (client VirtualNetworksClient) ListPreparer(ctx context.Context, resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string) (*http.Request, error)

ListPreparer prepares the List request.

func (VirtualNetworksClient) ListResponder

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

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

func (VirtualNetworksClient) ListSender

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

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

func (VirtualNetworksClient) Update

func (client VirtualNetworksClient) Update(ctx context.Context, resourceGroupName string, labName string, name string, virtualNetwork VirtualNetworkFragment) (result VirtualNetwork, err error)

Update modify properties of virtual networks.

resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the virtual network. virtualNetwork is a virtual network.

func (VirtualNetworksClient) UpdatePreparer

func (client VirtualNetworksClient) UpdatePreparer(ctx context.Context, resourceGroupName string, labName string, name string, virtualNetwork VirtualNetworkFragment) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (VirtualNetworksClient) UpdateResponder

func (client VirtualNetworksClient) UpdateResponder(resp *http.Response) (result VirtualNetwork, err error)

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

func (VirtualNetworksClient) UpdateSender

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

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

type VirtualNetworksCreateOrUpdateFuture

type VirtualNetworksCreateOrUpdateFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (VirtualNetworksCreateOrUpdateFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type VirtualNetworksDeleteFuture

type VirtualNetworksDeleteFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (VirtualNetworksDeleteFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type WeekDetails

type WeekDetails struct {
	// Weekdays - The days of the week for which the schedule is set (e.g. Sunday, Monday, Tuesday, etc.).
	Weekdays *[]string `json:"weekdays,omitempty"`
	// Time - The time of the day the schedule will occur.
	Time *string `json:"time,omitempty"`
}

WeekDetails properties of a weekly schedule.

type WeekDetailsFragment

type WeekDetailsFragment struct {
	// Weekdays - The days of the week for which the schedule is set (e.g. Sunday, Monday, Tuesday, etc.).
	Weekdays *[]string `json:"weekdays,omitempty"`
	// Time - The time of the day the schedule will occur.
	Time *string `json:"time,omitempty"`
}

WeekDetailsFragment properties of a weekly schedule.

type WindowsOsInfo

type WindowsOsInfo struct {
	// WindowsOsState - The state of the Windows OS (i.e. NonSysprepped, SysprepRequested, SysprepApplied). 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"
)

Jump to

Keyboard shortcuts

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