dtl

package
Version: v38.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package dtl implements the Azure ARM Dtl service API version 2018-09-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:"-"`
	// ApplicableScheduleProperties - The properties of the resource.
	*ApplicableScheduleProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; The identifier of the resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; 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"`
}

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

func (ApplicableSchedule) MarshalJSON

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

MarshalJSON is the custom marshaler for ApplicableSchedule.

func (*ApplicableSchedule) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for ApplicableSchedule struct.

type ApplicableScheduleFragment

type ApplicableScheduleFragment struct {
	// ApplicableSchedulePropertiesFragment - The properties of the resource.
	*ApplicableSchedulePropertiesFragment `json:"properties,omitempty"`
	// Tags - The tags of the resource.
	Tags map[string]*string `json:"tags"`
}

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

func (ApplicableScheduleFragment) MarshalJSON

func (asf ApplicableScheduleFragment) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ApplicableScheduleFragment.

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:"-"`
	// ArmTemplateProperties - The properties of the resource.
	*ArmTemplateProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; The identifier of the resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; 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"`
}

ArmTemplate an Azure Resource Manager template.

func (ArmTemplate) MarshalJSON

func (at ArmTemplate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ArmTemplate.

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 interface{} `json:"template,omitempty"`
	// Parameters - The parameters of the ARM template.
	Parameters interface{} `json:"parameters,omitempty"`
}

ArmTemplateInfo information about a generated ARM template.

type ArmTemplateList

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

ArmTemplateList the response of a list operation.

func (ArmTemplateList) IsEmpty

func (atl ArmTemplateList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ArmTemplateListIterator

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

ArmTemplateListIterator provides access to a complete listing of ArmTemplate values.

func NewArmTemplateListIterator

func NewArmTemplateListIterator(page ArmTemplateListPage) ArmTemplateListIterator

Creates a new instance of the ArmTemplateListIterator type.

func (*ArmTemplateListIterator) Next deprecated

This method has been deprecated.
func (iter *ArmTemplateListIterator) Next() error

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

func (*ArmTemplateListIterator) NextWithContext

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

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

func (ArmTemplateListIterator) NotDone

func (iter ArmTemplateListIterator) NotDone() bool

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

func (ArmTemplateListIterator) Response

func (iter ArmTemplateListIterator) Response() ArmTemplateList

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

func (ArmTemplateListIterator) Value

func (iter ArmTemplateListIterator) Value() ArmTemplate

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

type ArmTemplateListPage

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

ArmTemplateListPage contains a page of ArmTemplate values.

func NewArmTemplateListPage

func NewArmTemplateListPage(getNextPage func(context.Context, ArmTemplateList) (ArmTemplateList, error)) ArmTemplateListPage

Creates a new instance of the ArmTemplateListPage type.

func (*ArmTemplateListPage) Next deprecated

This method has been deprecated.
func (page *ArmTemplateListPage) Next() error

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

func (*ArmTemplateListPage) NextWithContext

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

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

func (ArmTemplateListPage) NotDone

func (page ArmTemplateListPage) NotDone() bool

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

func (ArmTemplateListPage) Response

func (page ArmTemplateListPage) Response() ArmTemplateList

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

func (ArmTemplateListPage) Values

func (page ArmTemplateListPage) Values() []ArmTemplate

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

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 ArmTemplateParameterPropertiesFragment

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

ArmTemplateParameterPropertiesFragment properties of an Azure Resource Manager template parameter.

type ArmTemplateProperties

type ArmTemplateProperties struct {
	// DisplayName - READ-ONLY; The display name of the ARM template.
	DisplayName *string `json:"displayName,omitempty"`
	// Description - READ-ONLY; The description of the ARM template.
	Description *string `json:"description,omitempty"`
	// Publisher - READ-ONLY; The publisher of the ARM template.
	Publisher *string `json:"publisher,omitempty"`
	// Icon - READ-ONLY; The URI to the icon of the ARM template.
	Icon *string `json:"icon,omitempty"`
	// Contents - READ-ONLY; The contents of the ARM template.
	Contents interface{} `json:"contents,omitempty"`
	// CreatedDate - READ-ONLY; The creation date of the armTemplate.
	CreatedDate *date.Time `json:"createdDate,omitempty"`
	// ParametersValueFilesInfo - READ-ONLY; File name and parameter values information from all azuredeploy.*.parameters.json for the ARM template.
	ParametersValueFilesInfo *[]ParametersValueFileInfo `json:"parametersValueFilesInfo,omitempty"`
	// Enabled - READ-ONLY; Whether or not ARM template is enabled for use by lab user.
	Enabled *bool `json:"enabled,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. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. artifactSourceName - the name of the artifact source. name - the name of the azure resource manager template. expand - 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 ArmTemplateListPage, err error)

List list azure resource manager templates in a given artifact source. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. artifactSourceName - the name of the artifact source. expand - specify the $expand query. Example: 'properties($select=displayName)' filter - the filter to apply to the operation. Example: '$filter=contains(name,'myName') top - the maximum number of resources to return from the operation. Example: '$top=10' orderby - the ordering expression for the results, using OData notation. Example: '$orderby=name desc'

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 ArmTemplateListIterator, 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 ArmTemplateList, 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:"-"`
	// ArtifactProperties - The properties of the resource.
	*ArtifactProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; The identifier of the resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource.
	Type *string `json:"type,omitempty"`
	// Location - The location of the resource.
	Location *string `json:"location,omitempty"`
	// Tags - The tags of the resource.
	Tags map[string]*string `json:"tags"`
}

Artifact an artifact.

func (Artifact) MarshalJSON

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

MarshalJSON is the custom marshaler for Artifact.

func (*Artifact) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Artifact struct.

type 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"`
	// ArtifactTitle - The artifact's title.
	ArtifactTitle *string `json:"artifactTitle,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"`
	// ArtifactTitle - The artifact's title.
	ArtifactTitle *string `json:"artifactTitle,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 ArtifactList

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

ArtifactList the response of a list operation.

func (ArtifactList) IsEmpty

func (al ArtifactList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ArtifactListIterator

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

ArtifactListIterator provides access to a complete listing of Artifact values.

func NewArtifactListIterator

func NewArtifactListIterator(page ArtifactListPage) ArtifactListIterator

Creates a new instance of the ArtifactListIterator type.

func (*ArtifactListIterator) Next deprecated

This method has been deprecated.
func (iter *ArtifactListIterator) Next() error

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

func (*ArtifactListIterator) NextWithContext

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

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

func (ArtifactListIterator) NotDone

func (iter ArtifactListIterator) NotDone() bool

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

func (ArtifactListIterator) Response

func (iter ArtifactListIterator) Response() ArtifactList

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

func (ArtifactListIterator) Value

func (iter ArtifactListIterator) Value() Artifact

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

type ArtifactListPage

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

ArtifactListPage contains a page of Artifact values.

func NewArtifactListPage

func NewArtifactListPage(getNextPage func(context.Context, ArtifactList) (ArtifactList, error)) ArtifactListPage

Creates a new instance of the ArtifactListPage type.

func (*ArtifactListPage) Next deprecated

This method has been deprecated.
func (page *ArtifactListPage) Next() error

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

func (*ArtifactListPage) NextWithContext

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

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

func (ArtifactListPage) NotDone

func (page ArtifactListPage) NotDone() bool

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

func (ArtifactListPage) Response

func (page ArtifactListPage) Response() ArtifactList

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

func (ArtifactListPage) Values

func (page ArtifactListPage) Values() []Artifact

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

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 - READ-ONLY; The artifact's title.
	Title *string `json:"title,omitempty"`
	// Description - READ-ONLY; The artifact's description.
	Description *string `json:"description,omitempty"`
	// Publisher - READ-ONLY; The artifact's publisher.
	Publisher *string `json:"publisher,omitempty"`
	// FilePath - READ-ONLY; The file path to the artifact.
	FilePath *string `json:"filePath,omitempty"`
	// Icon - READ-ONLY; The URI to the artifact icon.
	Icon *string `json:"icon,omitempty"`
	// TargetOsType - READ-ONLY; The artifact's target OS.
	TargetOsType *string `json:"targetOsType,omitempty"`
	// Parameters - READ-ONLY; The artifact's parameters.
	Parameters interface{} `json:"parameters,omitempty"`
	// CreatedDate - READ-ONLY; The artifact's creation date.
	CreatedDate *date.Time `json:"createdDate,omitempty"`
}

ArtifactProperties properties of an artifact.

type ArtifactSource

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

ArtifactSource properties of an artifact source.

func (ArtifactSource) MarshalJSON

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

MarshalJSON is the custom marshaler for ArtifactSource.

func (*ArtifactSource) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for ArtifactSource struct.

type ArtifactSourceFragment

type ArtifactSourceFragment struct {
	// ArtifactSourcePropertiesFragment - The properties of the resource.
	*ArtifactSourcePropertiesFragment `json:"properties,omitempty"`
	// Tags - The tags of the resource.
	Tags map[string]*string `json:"tags"`
}

ArtifactSourceFragment properties of an artifact source.

func (ArtifactSourceFragment) MarshalJSON

func (asf ArtifactSourceFragment) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ArtifactSourceFragment.

func (*ArtifactSourceFragment) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for ArtifactSourceFragment struct.

type ArtifactSourceList

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

ArtifactSourceList the response of a list operation.

func (ArtifactSourceList) IsEmpty

func (asl ArtifactSourceList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ArtifactSourceListIterator

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

ArtifactSourceListIterator provides access to a complete listing of ArtifactSource values.

func NewArtifactSourceListIterator

func NewArtifactSourceListIterator(page ArtifactSourceListPage) ArtifactSourceListIterator

Creates a new instance of the ArtifactSourceListIterator type.

func (*ArtifactSourceListIterator) Next deprecated

This method has been deprecated.
func (iter *ArtifactSourceListIterator) Next() error

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

func (*ArtifactSourceListIterator) NextWithContext

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

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

func (ArtifactSourceListIterator) NotDone

func (iter ArtifactSourceListIterator) NotDone() bool

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

func (ArtifactSourceListIterator) Response

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

func (ArtifactSourceListIterator) Value

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

type ArtifactSourceListPage

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

ArtifactSourceListPage contains a page of ArtifactSource values.

func NewArtifactSourceListPage

func NewArtifactSourceListPage(getNextPage func(context.Context, ArtifactSourceList) (ArtifactSourceList, error)) ArtifactSourceListPage

Creates a new instance of the ArtifactSourceListPage type.

func (*ArtifactSourceListPage) Next deprecated

This method has been deprecated.
func (page *ArtifactSourceListPage) Next() error

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

func (*ArtifactSourceListPage) NextWithContext

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

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

func (ArtifactSourceListPage) NotDone

func (page ArtifactSourceListPage) NotDone() bool

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

func (ArtifactSourceListPage) Response

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

func (ArtifactSourceListPage) Values

func (page ArtifactSourceListPage) Values() []ArtifactSource

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

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 - READ-ONLY; The artifact source's creation date.
	CreatedDate *date.Time `json:"createdDate,omitempty"`
	// ProvisioningState - READ-ONLY; The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// UniqueIdentifier - READ-ONLY; 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"`
}

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. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the artifact source. artifactSource - 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. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - 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. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the artifact source. expand - 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 ArtifactSourceListPage, err error)

List list artifact sources in a given lab. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. expand - specify the $expand query. Example: 'properties($select=displayName)' filter - the filter to apply to the operation. Example: '$filter=contains(name,'myName') top - the maximum number of resources to return from the operation. Example: '$top=10' orderby - the ordering expression for the results, using OData notation. Example: '$orderby=name desc'

func (ArtifactSourcesClient) ListComplete

func (client ArtifactSourcesClient) ListComplete(ctx context.Context, resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string) (result ArtifactSourceListIterator, 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 ArtifactSourceList, 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 allows modifying tags of artifact sources. All other properties will be ignored. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the artifact source. artifactSource - 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. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. artifactSourceName - the name of the artifact source. name - the name of the artifact. generateArmTemplateRequest - 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. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. artifactSourceName - the name of the artifact source. name - the name of the artifact. expand - 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 ArtifactListPage, err error)

List list artifacts in a given artifact source. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. artifactSourceName - the name of the artifact source. expand - specify the $expand query. Example: 'properties($select=title)' filter - the filter to apply to the operation. Example: '$filter=contains(name,'myName') top - the maximum number of resources to return from the operation. Example: '$top=10' orderby - the ordering expression for the results, using OData notation. Example: '$orderby=name desc'

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 ArtifactListIterator, 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 ArtifactList, 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', 'StandardSSD'
	DiskType StorageType `json:"diskType,omitempty"`
}

AttachNewDataDiskOptions properties to attach new disk to the Virtual Machine.

type AttachNewDataDiskOptionsFragment

type AttachNewDataDiskOptionsFragment 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', 'StandardSSD'
	DiskType StorageType `json:"diskType,omitempty"`
}

AttachNewDataDiskOptionsFragment 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 BulkCreationParametersFragment

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

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

type CloudError

type CloudError struct {
	// Error - The cloud error that occurred
	Error *CloudErrorBody `json:"error,omitempty"`
}

CloudError error from a REST request.

type CloudErrorBody

type CloudErrorBody struct {
	// Code - The error code.
	Code *string `json:"code,omitempty"`
	// Message - The error message.
	Message *string `json:"message,omitempty"`
	// Target - The error target.
	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"
)

func PossibleCostThresholdStatusValues

func PossibleCostThresholdStatusValues() []CostThresholdStatus

PossibleCostThresholdStatusValues returns an array of possible values for the CostThresholdStatus const type.

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

func PossibleCostTypeValues

func PossibleCostTypeValues() []CostType

PossibleCostTypeValues returns an array of possible values for the CostType const type.

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. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the cost. labCost - 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. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the cost. expand - 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:"-"`
	// CustomImageProperties - The properties of the resource.
	*CustomImageProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; The identifier of the resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource.
	Type *string `json:"type,omitempty"`
	// Location - The location of the resource.
	Location *string `json:"location,omitempty"`
	// Tags - The tags of the resource.
	Tags map[string]*string `json:"tags"`
}

CustomImage a custom image.

func (CustomImage) MarshalJSON

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

MarshalJSON is the custom marshaler for CustomImage.

func (*CustomImage) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for CustomImage struct.

type CustomImageFragment

type CustomImageFragment struct {
	// CustomImagePropertiesFragment - The properties of the resource.
	*CustomImagePropertiesFragment `json:"properties,omitempty"`
	// Tags - The tags of the resource.
	Tags map[string]*string `json:"tags"`
}

CustomImageFragment a custom image.

func (CustomImageFragment) MarshalJSON

func (cif CustomImageFragment) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CustomImageFragment.

func (*CustomImageFragment) UnmarshalJSON

func (cif *CustomImageFragment) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for CustomImageFragment struct.

type CustomImageList

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

CustomImageList the response of a list operation.

func (CustomImageList) IsEmpty

func (cil CustomImageList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type CustomImageListIterator

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

CustomImageListIterator provides access to a complete listing of CustomImage values.

func NewCustomImageListIterator

func NewCustomImageListIterator(page CustomImageListPage) CustomImageListIterator

Creates a new instance of the CustomImageListIterator type.

func (*CustomImageListIterator) Next deprecated

This method has been deprecated.
func (iter *CustomImageListIterator) Next() error

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

func (*CustomImageListIterator) NextWithContext

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

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

func (CustomImageListIterator) NotDone

func (iter CustomImageListIterator) NotDone() bool

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

func (CustomImageListIterator) Response

func (iter CustomImageListIterator) Response() CustomImageList

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

func (CustomImageListIterator) Value

func (iter CustomImageListIterator) Value() CustomImage

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

type CustomImageListPage

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

CustomImageListPage contains a page of CustomImage values.

func NewCustomImageListPage

func NewCustomImageListPage(getNextPage func(context.Context, CustomImageList) (CustomImageList, error)) CustomImageListPage

Creates a new instance of the CustomImageListPage type.

func (*CustomImageListPage) Next deprecated

This method has been deprecated.
func (page *CustomImageListPage) Next() error

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

func (*CustomImageListPage) NextWithContext

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

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

func (CustomImageListPage) NotDone

func (page CustomImageListPage) NotDone() bool

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

func (CustomImageListPage) Response

func (page CustomImageListPage) Response() CustomImageList

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

func (CustomImageListPage) Values

func (page CustomImageListPage) Values() []CustomImage

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

type CustomImageOsType

type CustomImageOsType string

CustomImageOsType enumerates the values for custom image os type.

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

func PossibleCustomImageOsTypeValues

func PossibleCustomImageOsTypeValues() []CustomImageOsType

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

type CustomImageProperties

type CustomImageProperties struct {
	// VM - 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 - READ-ONLY; 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"`
	// ManagedSnapshotID - The Managed Snapshot Id backing the custom image.
	ManagedSnapshotID *string `json:"managedSnapshotId,omitempty"`
	// DataDiskStorageInfo - Storage information about the data disks present in the custom image
	DataDiskStorageInfo *[]DataDiskStorageTypeInfo `json:"dataDiskStorageInfo,omitempty"`
	// CustomImagePlan - Storage information about the plan related to this custom image
	CustomImagePlan *CustomImagePropertiesFromPlan `json:"customImagePlan,omitempty"`
	// IsPlanAuthorized - Whether or not the custom images underlying offer/plan has been enabled for programmatic deployment
	IsPlanAuthorized *bool `json:"isPlanAuthorized,omitempty"`
	// ProvisioningState - READ-ONLY; The provisioning status of the resource.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// UniqueIdentifier - READ-ONLY; 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 CustomImagePropertiesCustomFragment

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

CustomImagePropertiesCustomFragment properties for creating a custom image from a VHD.

type CustomImagePropertiesFragment

type CustomImagePropertiesFragment struct {
	// VM - The virtual machine from which the image is to be created.
	VM *CustomImagePropertiesFromVMFragment `json:"vm,omitempty"`
	// Vhd - The VHD from which the image is to be created.
	Vhd *CustomImagePropertiesCustomFragment `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"`
	// ManagedImageID - The Managed Image Id backing the custom image.
	ManagedImageID *string `json:"managedImageId,omitempty"`
	// ManagedSnapshotID - The Managed Snapshot Id backing the custom image.
	ManagedSnapshotID *string `json:"managedSnapshotId,omitempty"`
	// DataDiskStorageInfo - Storage information about the data disks present in the custom image
	DataDiskStorageInfo *[]DataDiskStorageTypeInfoFragment `json:"dataDiskStorageInfo,omitempty"`
	// CustomImagePlan - Storage information about the plan related to this custom image
	CustomImagePlan *CustomImagePropertiesFromPlanFragment `json:"customImagePlan,omitempty"`
	// IsPlanAuthorized - Whether or not the custom images underlying offer/plan has been enabled for programmatic deployment
	IsPlanAuthorized *bool `json:"isPlanAuthorized,omitempty"`
}

CustomImagePropertiesFragment properties of a custom image.

type CustomImagePropertiesFromPlan

type CustomImagePropertiesFromPlan struct {
	// ID - The id of the plan, equivalent to name of the plan
	ID *string `json:"id,omitempty"`
	// Publisher - The publisher for the plan from the marketplace image the custom image is derived from
	Publisher *string `json:"publisher,omitempty"`
	// Offer - The offer for the plan from the marketplace image the custom image is derived from
	Offer *string `json:"offer,omitempty"`
}

CustomImagePropertiesFromPlan properties for plan on a custom image.

type CustomImagePropertiesFromPlanFragment

type CustomImagePropertiesFromPlanFragment struct {
	// ID - The id of the plan, equivalent to name of the plan
	ID *string `json:"id,omitempty"`
	// Publisher - The publisher for the plan from the marketplace image the custom image is derived from
	Publisher *string `json:"publisher,omitempty"`
	// Offer - The offer for the plan from the marketplace image the custom image is derived from
	Offer *string `json:"offer,omitempty"`
}

CustomImagePropertiesFromPlanFragment properties for plan on a custom image.

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 CustomImagePropertiesFromVMFragment

type CustomImagePropertiesFromVMFragment struct {
	// SourceVMID - The source vm identifier.
	SourceVMID *string `json:"sourceVmId,omitempty"`
	// WindowsOsInfo - The Windows OS information of the VM.
	WindowsOsInfo *WindowsOsInfoFragment `json:"windowsOsInfo,omitempty"`
	// LinuxOsInfo - The Linux OS information of the VM.
	LinuxOsInfo *LinuxOsInfoFragment `json:"linuxOsInfo,omitempty"`
}

CustomImagePropertiesFromVMFragment 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. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the custom image. customImage - 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. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - 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. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the custom image. expand - 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 CustomImageListPage, err error)

List list custom images in a given lab. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. expand - specify the $expand query. Example: 'properties($select=vm)' filter - the filter to apply to the operation. Example: '$filter=contains(name,'myName') top - the maximum number of resources to return from the operation. Example: '$top=10' orderby - the ordering expression for the results, using OData notation. Example: '$orderby=name desc'

func (CustomImagesClient) ListComplete

func (client CustomImagesClient) ListComplete(ctx context.Context, resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string) (result CustomImageListIterator, 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 CustomImageList, 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.

func (CustomImagesClient) Update

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

Update allows modifying tags of custom images. All other properties will be ignored. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the custom image. customImage - a custom image.

func (CustomImagesClient) UpdatePreparer

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

UpdatePreparer prepares the Update request.

func (CustomImagesClient) UpdateResponder

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

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

func (CustomImagesClient) UpdateSender

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

type CustomImagesCreateOrUpdateFuture struct {
	azure.Future
}

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 {