azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/devtestlabs/mgmt/2016-05-15/dtl Index | Files | Directories

package dtl

import "github.com/Azure/azure-sdk-for-go/services/devtestlabs/mgmt/2016-05-15/dtl"

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

The DevTest Labs Client.

Index

Package Files

armtemplates.go artifacts.go artifactsources.go client.go costs.go customimages.go disks.go environments.go formulas.go galleryimages.go globalschedules.go labs.go models.go notificationchannels.go operations.go policies.go policysets.go provideroperations.go schedules.go secrets.go servicerunners.go users.go version.go virtualmachines.go virtualmachineschedules.go virtualnetworks.go

Constants

const (
    // DefaultBaseURI is the default URI used for the service Dtl
    DefaultBaseURI = "https://management.azure.com"
)

func UserAgent Uses

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version Uses

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

type ApplicableSchedule Uses

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 Uses

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

MarshalJSON is the custom marshaler for ApplicableSchedule.

func (*ApplicableSchedule) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ApplicableSchedule struct.

type ApplicableScheduleFragment Uses

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

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

func (ApplicableScheduleFragment) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ApplicableScheduleFragment.

func (*ApplicableScheduleFragment) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ApplicableScheduleFragment struct.

type ApplicableScheduleProperties Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for ArmTemplate.

func (*ArmTemplate) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ArmTemplate struct.

type ArmTemplateInfo Uses

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 ArmTemplateParameterProperties Uses

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 Uses

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

ArmTemplateProperties properties of an Azure Resource Manager template.

type ArmTemplatesClient Uses

type ArmTemplatesClient struct {
    BaseClient
}

ArmTemplatesClient is the the DevTest Labs Client.

func NewArmTemplatesClient Uses

func NewArmTemplatesClient(subscriptionID string) ArmTemplatesClient

NewArmTemplatesClient creates an instance of the ArmTemplatesClient client.

func NewArmTemplatesClientWithBaseURI Uses

func NewArmTemplatesClientWithBaseURI(baseURI string, subscriptionID string) ArmTemplatesClient

NewArmTemplatesClientWithBaseURI creates an instance of the ArmTemplatesClient client.

func (ArmTemplatesClient) Get Uses

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 Uses

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 Uses

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 Uses

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 Uses

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. 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. top - the maximum number of resources to return from the operation. orderby - the ordering expression for the results, using OData notation.

func (ArmTemplatesClient) ListComplete Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for Artifact.

func (*Artifact) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Artifact struct.

type ArtifactDeploymentStatusProperties Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for ArtifactSource.

func (*ArtifactSource) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ArtifactSource struct.

type ArtifactSourceFragment Uses

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

ArtifactSourceFragment properties of an artifact source.

func (ArtifactSourceFragment) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ArtifactSourceFragment.

func (*ArtifactSourceFragment) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ArtifactSourceFragment struct.

type ArtifactSourceProperties Uses

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

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 Uses

type ArtifactSourcesClient struct {
    BaseClient
}

ArtifactSourcesClient is the the DevTest Labs Client.

func NewArtifactSourcesClient Uses

func NewArtifactSourcesClient(subscriptionID string) ArtifactSourcesClient

NewArtifactSourcesClient creates an instance of the ArtifactSourcesClient client.

func NewArtifactSourcesClientWithBaseURI Uses

func NewArtifactSourcesClientWithBaseURI(baseURI string, subscriptionID string) ArtifactSourcesClient

NewArtifactSourcesClientWithBaseURI creates an instance of the ArtifactSourcesClient client.

func (ArtifactSourcesClient) CreateOrUpdate Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

DeletePreparer prepares the Delete request.

func (ArtifactSourcesClient) DeleteResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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. 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. top - the maximum number of resources to return from the operation. orderby - the ordering expression for the results, using OData notation.

func (ArtifactSourcesClient) ListComplete Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

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 Uses

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 Uses

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 Uses

type ArtifactsClient struct {
    BaseClient
}

ArtifactsClient is the the DevTest Labs Client.

func NewArtifactsClient Uses

func NewArtifactsClient(subscriptionID string) ArtifactsClient

NewArtifactsClient creates an instance of the ArtifactsClient client.

func NewArtifactsClientWithBaseURI Uses

func NewArtifactsClientWithBaseURI(baseURI string, subscriptionID string) ArtifactsClient

NewArtifactsClientWithBaseURI creates an instance of the ArtifactsClient client.

func (ArtifactsClient) GenerateArmTemplate Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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. 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. top - the maximum number of resources to return from the operation. orderby - the ordering expression for the results, using OData notation.

func (ArtifactsClient) ListComplete Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

BaseClient is the base client for Dtl.

func New Uses

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type BulkCreationParameters Uses

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 Uses

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

CloudError error from a REST request.

type CloudErrorBody Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

type CostThresholdStatus string

CostThresholdStatus enumerates the values for cost threshold status.

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

func PossibleCostThresholdStatusValues Uses

func PossibleCostThresholdStatusValues() []CostThresholdStatus

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

type CostType Uses

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 Uses

func PossibleCostTypeValues() []CostType

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

type CostsClient Uses

type CostsClient struct {
    BaseClient
}

CostsClient is the the DevTest Labs Client.

func NewCostsClient Uses

func NewCostsClient(subscriptionID string) CostsClient

NewCostsClient creates an instance of the CostsClient client.

func NewCostsClientWithBaseURI Uses

func NewCostsClientWithBaseURI(baseURI string, subscriptionID string) CostsClient

NewCostsClientWithBaseURI creates an instance of the CostsClient client.

func (CostsClient) CreateOrUpdate Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for CustomImage.

func (*CustomImage) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for CustomImage struct.

type CustomImageOsType Uses

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 Uses

func PossibleCustomImageOsTypeValues() []CustomImageOsType

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

type CustomImageProperties Uses

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"`
    // 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 Uses

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 Uses

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 Uses

type CustomImagesClient struct {
    BaseClient
}

CustomImagesClient is the the DevTest Labs Client.

func NewCustomImagesClient Uses

func NewCustomImagesClient(subscriptionID string) CustomImagesClient

NewCustomImagesClient creates an instance of the CustomImagesClient client.

func NewCustomImagesClientWithBaseURI Uses

func NewCustomImagesClientWithBaseURI(baseURI string, subscriptionID string) CustomImagesClient

NewCustomImagesClientWithBaseURI creates an instance of the CustomImagesClient client.

func (CustomImagesClient) CreateOrUpdate Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

DeletePreparer prepares the Delete request.

func (CustomImagesClient) DeleteResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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. 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. top - the maximum number of resources to return from the operation. orderby - the ordering expression for the results, using OData notation.

func (CustomImagesClient) ListComplete Uses

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 Uses

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 Uses

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 Uses

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 Uses

type CustomImagesCreateOrUpdateFuture struct {
    azure.Future
}

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

func (*CustomImagesCreateOrUpdateFuture) Result Uses

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 Uses

type CustomImagesDeleteFuture struct {
    azure.Future
}

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

func (*CustomImagesDeleteFuture) Result Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

Disk a Disk.

func (Disk) MarshalJSON Uses

func (d Disk) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Disk.

func (*Disk) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Disk struct.

type DiskProperties Uses

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 - READ-ONLY; 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 Uses

type DisksAttachFuture struct {
    azure.Future
}

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

func (*DisksAttachFuture) Result Uses

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 Uses

type DisksClient struct {
    BaseClient
}

DisksClient is the the DevTest Labs Client.

func NewDisksClient Uses

func NewDisksClient(subscriptionID string) DisksClient

NewDisksClient creates an instance of the DisksClient client.

func NewDisksClientWithBaseURI Uses

func NewDisksClientWithBaseURI(baseURI string, subscriptionID string) DisksClient

NewDisksClientWithBaseURI creates an instance of the DisksClient client.

func (DisksClient) Attach Uses

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. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. userName - the name of the user profile. name - the name of the disk. attachDiskProperties - properties of the disk to attach.

func (DisksClient) AttachPreparer Uses

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 Uses

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 Uses

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 Uses

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. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. userName - the name of the user profile. name - the name of the disk. disk - a Disk.

func (DisksClient) CreateOrUpdatePreparer Uses

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 Uses

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 Uses

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 Uses

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. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. userName - the name of the user profile. name - the name of the disk.

func (DisksClient) DeletePreparer Uses

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 Uses

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 Uses

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 Uses

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. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. userName - the name of the user profile. name - the name of the disk. detachDiskProperties - properties of the disk to detach.

func (DisksClient) DetachPreparer Uses

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 Uses

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 Uses

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 Uses

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

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

func (DisksClient) GetPreparer Uses

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 Uses

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 Uses

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 Uses

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

func (DisksClient) ListComplete Uses

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 Uses

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 Uses

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 Uses

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 Uses

type DisksCreateOrUpdateFuture struct {
    azure.Future
}

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

func (*DisksCreateOrUpdateFuture) Result Uses

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 Uses

type DisksDeleteFuture struct {
    azure.Future
}

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

func (*DisksDeleteFuture) Result Uses

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 Uses

type DisksDetachFuture struct {
    azure.Future
}

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

func (*DisksDetachFuture) Result Uses

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 Uses

type EnableStatus string

EnableStatus enumerates the values for enable status.

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

func PossibleEnableStatusValues Uses

func PossibleEnableStatusValues() []EnableStatus

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

type Environment Uses

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

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

func (Environment) MarshalJSON Uses

func (e Environment) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Environment.

func (*Environment) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Environment struct.

type EnvironmentDeploymentProperties Uses

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 Uses

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 - READ-ONLY; The identifier of the resource group containing the environment's resources.
    ResourceGroupID *string `json:"resourceGroupId,omitempty"`
    // CreatedByUser - READ-ONLY; 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 Uses

type EnvironmentsClient struct {
    BaseClient
}

EnvironmentsClient is the the DevTest Labs Client.

func NewEnvironmentsClient Uses

func NewEnvironmentsClient(subscriptionID string) EnvironmentsClient

NewEnvironmentsClient creates an instance of the EnvironmentsClient client.

func NewEnvironmentsClientWithBaseURI Uses

func NewEnvironmentsClientWithBaseURI(baseURI string, subscriptionID string) EnvironmentsClient

NewEnvironmentsClientWithBaseURI creates an instance of the EnvironmentsClient client.

func (EnvironmentsClient) CreateOrUpdate Uses

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. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. userName - the name of the user profile. name - the name of the environment. dtlEnvironment - an environment, which is essentially an ARM template deployment.

func (EnvironmentsClient) CreateOrUpdatePreparer Uses

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 Uses

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 Uses

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 Uses

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. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. userName - the name of the user profile. name - the name of the environment.

func (EnvironmentsClient) DeletePreparer Uses

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 Uses

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 Uses

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 Uses

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

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

func (EnvironmentsClient) GetPreparer Uses

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 Uses

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 Uses

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 Uses

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

func (EnvironmentsClient) ListComplete Uses

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 Uses

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 Uses

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 Uses

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 Uses

type EnvironmentsCreateOrUpdateFuture struct {
    azure.Future
}

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

func (*EnvironmentsCreateOrUpdateFuture) Result Uses

func (future *EnvironmentsCreateOrUpdateFuture) Result(client EnvironmentsClient) (e Environment, err error)

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

type EnvironmentsDeleteFuture Uses

type EnvironmentsDeleteFuture struct {
    azure.Future
}

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

func (*EnvironmentsDeleteFuture) Result Uses

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 Uses

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 Uses

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

EvaluatePoliciesRequest request body for evaluating a policy set.

type EvaluatePoliciesResponse Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

type FileUploadOptions string

FileUploadOptions enumerates the values for file upload options.

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

func PossibleFileUploadOptionsValues Uses

func PossibleFileUploadOptionsValues() []FileUploadOptions

PossibleFileUploadOptionsValues returns an array of possible values for the FileUploadOptions const type.

type Formula Uses

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

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

func (Formula) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Formula.

func (*Formula) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Formula struct.

type FormulaProperties Uses

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 - READ-ONLY; 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 Uses

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 Uses

type FormulasClient struct {
    BaseClient
}

FormulasClient is the the DevTest Labs Client.

func NewFormulasClient Uses

func NewFormulasClient(subscriptionID string) FormulasClient

NewFormulasClient creates an instance of the FormulasClient client.

func NewFormulasClientWithBaseURI Uses

func NewFormulasClientWithBaseURI(baseURI string, subscriptionID string) FormulasClient

NewFormulasClientWithBaseURI creates an instance of the FormulasClient client.

func (FormulasClient) CreateOrUpdate Uses

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. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the formula. formula - a formula for creating a VM, specifying an image base and other parameters

func (FormulasClient) CreateOrUpdatePreparer Uses

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 Uses

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 Uses

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 Uses

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

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

func (FormulasClient) DeletePreparer Uses

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

DeletePreparer prepares the Delete request.

func (FormulasClient) DeleteResponder Uses

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 Uses

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 Uses

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

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

func (FormulasClient) GetPreparer Uses

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 Uses

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 Uses

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 Uses

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

func (FormulasClient) ListComplete Uses

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 Uses

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 Uses

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 Uses

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 Uses

type FormulasCreateOrUpdateFuture struct {
    azure.Future
}

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

func (*FormulasCreateOrUpdateFuture) Result Uses

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 Uses

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

GalleryImage a gallery image.

func (GalleryImage) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for GalleryImage.

func (*GalleryImage) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for GalleryImage struct.

type GalleryImageProperties Uses

type GalleryImageProperties struct {
    // Author - The author of the gallery image.
    Author *string `json:"author,omitempty"`
    // CreatedDate - READ-ONLY; 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 Uses

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 Uses

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 Uses

type GalleryImagesClient struct {
    BaseClient
}

GalleryImagesClient is the the DevTest Labs Client.

func NewGalleryImagesClient Uses

func NewGalleryImagesClient(subscriptionID string) GalleryImagesClient

NewGalleryImagesClient creates an instance of the GalleryImagesClient client.

func NewGalleryImagesClientWithBaseURI Uses

func NewGalleryImagesClientWithBaseURI(baseURI string, subscriptionID string) GalleryImagesClient

NewGalleryImagesClientWithBaseURI creates an instance of the GalleryImagesClient client.

func (GalleryImagesClient) List Uses

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

func (GalleryImagesClient) ListComplete Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

GenerateUploadURIResponse response body for generating an upload URI.

type GlobalSchedulesClient Uses

type GlobalSchedulesClient struct {
    BaseClient
}

GlobalSchedulesClient is the the DevTest Labs Client.

func NewGlobalSchedulesClient Uses

func NewGlobalSchedulesClient(subscriptionID string) GlobalSchedulesClient

NewGlobalSchedulesClient creates an instance of the GlobalSchedulesClient client.

func NewGlobalSchedulesClientWithBaseURI Uses

func NewGlobalSchedulesClientWithBaseURI(baseURI string, subscriptionID string) GlobalSchedulesClient

NewGlobalSchedulesClientWithBaseURI creates an instance of the GlobalSchedulesClient client.

func (GlobalSchedulesClient) CreateOrUpdate Uses

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

CreateOrUpdate create or replace an existing schedule. Parameters: resourceGroupName - the name of the resource group. name - the name of the schedule. schedule - a schedule.

func (GlobalSchedulesClient) CreateOrUpdatePreparer Uses

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (GlobalSchedulesClient) CreateOrUpdateResponder Uses

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 Uses

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 Uses

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

Delete delete schedule. Parameters: resourceGroupName - the name of the resource group. name - the name of the schedule.

func (GlobalSchedulesClient) DeletePreparer Uses

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

DeletePreparer prepares the Delete request.

func (GlobalSchedulesClient) DeleteResponder Uses

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 Uses

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 Uses

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. Parameters: resourceGroupName - the name of the resource group. name - the name of the schedule.

func (GlobalSchedulesClient) ExecutePreparer Uses

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

ExecutePreparer prepares the Execute request.

func (GlobalSchedulesClient) ExecuteResponder Uses

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 Uses

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 Uses

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

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

func (GlobalSchedulesClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (GlobalSchedulesClient) GetResponder Uses

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 Uses

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 Uses

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. Parameters: resourceGroupName - the name of the resource group. expand - specify the $expand query. Example: 'properties($select=status)' filter - the filter to apply to the operation. top - the maximum number of resources to return from the operation. orderby - the ordering expression for the results, using OData notation.

func (GlobalSchedulesClient) ListByResourceGroupComplete Uses

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 Uses

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 Uses

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 Uses

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 Uses

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. Parameters: expand - specify the $expand query. Example: 'properties($select=status)' filter - the filter to apply to the operation. top - the maximum number of resources to return from the operation. orderby - the ordering expression for the results, using OData notation.

func (GlobalSchedulesClient) ListBySubscriptionComplete Uses

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 Uses

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 Uses

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 Uses

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 Uses

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. Parameters: resourceGroupName - the name of the resource group. name - the name of the schedule. retargetScheduleProperties - properties for retargeting a virtual machine schedule.

func (GlobalSchedulesClient) RetargetPreparer Uses

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

RetargetPreparer prepares the Retarget request.

func (GlobalSchedulesClient) RetargetResponder Uses

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 Uses

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 Uses

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

Update modify properties of schedules. Parameters: resourceGroupName - the name of the resource group. name - the name of the schedule. schedule - a schedule.

func (GlobalSchedulesClient) UpdatePreparer Uses

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

UpdatePreparer prepares the Update request.

func (GlobalSchedulesClient) UpdateResponder Uses

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 Uses

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 Uses

type GlobalSchedulesExecuteFuture struct {
    azure.Future
}

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

func (*GlobalSchedulesExecuteFuture) Result Uses

func (future *GlobalSchedulesExecuteFuture) Result(client GlobalSchedulesClient) (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 GlobalSchedulesRetargetFuture Uses

type GlobalSchedulesRetargetFuture struct {
    azure.Future
}

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

func (*GlobalSchedulesRetargetFuture) Result Uses

func (future *GlobalSchedulesRetargetFuture) Result(client GlobalSchedulesClient) (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 HTTPStatusCode Uses

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

func PossibleHTTPStatusCodeValues Uses

func PossibleHTTPStatusCodeValues() []HTTPStatusCode

PossibleHTTPStatusCodeValues returns an array of possible values for the HTTPStatusCode const type.

type HostCachingOptions Uses

type HostCachingOptions string

HostCachingOptions enumerates the values for host caching options.

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

func PossibleHostCachingOptionsValues Uses

func PossibleHostCachingOptionsValues() []HostCachingOptions

PossibleHostCachingOptionsValues returns an array of possible values for the HostCachingOptions const type.

type HourDetails Uses

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 Uses

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 Uses

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 properties of a managed identity

type InboundNatRule Uses

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 Uses

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 Uses

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

Lab a lab.

func (Lab) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Lab.

func (*Lab) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Lab struct.

type LabCost Uses

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

LabCost a cost item.

func (LabCost) MarshalJSON Uses

func (lc LabCost) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LabCost.

func (*LabCost) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for LabCost struct.

type LabCostDetailsProperties Uses

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 Uses

type LabCostProperties struct {
    // TargetCost - The target cost properties
    TargetCost *TargetCostProperties `json:"targetCost,omitempty"`
    // LabCostSummary - READ-ONLY; The lab cost summary component of the cost data.
    LabCostSummary *LabCostSummaryProperties `json:"labCostSummary,omitempty"`
    // LabCostDetails - READ-ONLY; The lab cost details component of the cost data.
    LabCostDetails *[]LabCostDetailsProperties `json:"labCostDetails,omitempty"`
    // ResourceCosts - READ-ONLY; 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 Uses

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 Uses

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

LabFragment a lab.

func (LabFragment) MarshalJSON Uses

func (lf LabFragment) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LabFragment.

func (*LabFragment) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for LabFragment struct.

type LabProperties Uses

type LabProperties struct {
    // DefaultStorageAccount - READ-ONLY; The lab's default storage account.
    DefaultStorageAccount *string `json:"defaultStorageAccount,omitempty"`
    // DefaultPremiumStorageAccount - READ-ONLY; The lab's default premium storage account.
    DefaultPremiumStorageAccount *string `json:"defaultPremiumStorageAccount,omitempty"`
    // ArtifactsStorageAccount - READ-ONLY; The lab's artifact storage account.
    ArtifactsStorageAccount *string `json:"artifactsStorageAccount,omitempty"`
    // PremiumDataDiskStorageAccount - READ-ONLY; The lab's premium data disk storage account.
    PremiumDataDiskStorageAccount *string `json:"premiumDataDiskStorageAccount,omitempty"`
    // VaultName - READ-ONLY; 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 - READ-ONLY; 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 Uses

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 Uses

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 Uses

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

LabVhd properties of a VHD in the lab.

type LabVirtualMachine Uses

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

LabVirtualMachine a virtual machine.

func (LabVirtualMachine) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for LabVirtualMachine.

func (*LabVirtualMachine) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for LabVirtualMachine struct.

type LabVirtualMachineCreationParameter Uses

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

LabVirtualMachineCreationParameter properties for creating a virtual machine.

func (LabVirtualMachineCreationParameter) MarshalJSON Uses

func (lvmcp LabVirtualMachineCreationParameter) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LabVirtualMachineCreationParameter.

func (*LabVirtualMachineCreationParameter) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for LabVirtualMachineCreationParameter struct.

type LabVirtualMachineCreationParameterProperties Uses

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 Uses

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

LabVirtualMachineFragment a virtual machine.

func (LabVirtualMachineFragment) MarshalJSON Uses

func (lvmf LabVirtualMachineFragment) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LabVirtualMachineFragment.

func (*LabVirtualMachineFragment) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for LabVirtualMachineFragment struct.

type LabVirtualMachineProperties Uses

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 - READ-ONLY; 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 Uses

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 Uses

type LabsClaimAnyVMFuture struct {
    azure.Future
}

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

func (*LabsClaimAnyVMFuture) Result Uses

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 Uses

type LabsClient struct {
    BaseClient
}

LabsClient is the the DevTest Labs Client.

func NewLabsClient Uses

func NewLabsClient(subscriptionID string) LabsClient

NewLabsClient creates an instance of the LabsClient client.

func NewLabsClientWithBaseURI Uses

func NewLabsClientWithBaseURI(baseURI string, subscriptionID string) LabsClient

NewLabsClientWithBaseURI creates an instance of the LabsClient client.

func (LabsClient) ClaimAnyVM Uses

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. Parameters: resourceGroupName - the name of the resource group. name - the name of the lab.

func (LabsClient) ClaimAnyVMPreparer Uses

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

ClaimAnyVMPreparer prepares the ClaimAnyVM request.

func (LabsClient) ClaimAnyVMResponder Uses

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 Uses

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 Uses

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. Parameters: resourceGroupName - the name of the resource group. name - the name of the lab. labVirtualMachineCreationParameter - properties for creating a virtual machine.

func (LabsClient) CreateEnvironmentPreparer Uses

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

CreateEnvironmentPreparer prepares the CreateEnvironment request.

func (LabsClient) CreateEnvironmentResponder Uses

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 Uses

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 Uses

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. Parameters: resourceGroupName - the name of the resource group. name - the name of the lab. lab - a lab.

func (LabsClient) CreateOrUpdatePreparer Uses

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (LabsClient) CreateOrUpdateResponder Uses

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 Uses

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 Uses

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. Parameters: resourceGroupName - the name of the resource group. name - the name of the lab.

func (LabsClient) DeletePreparer Uses

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

DeletePreparer prepares the Delete request.

func (LabsClient) DeleteResponder Uses

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 Uses

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 Uses

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. Parameters: resourceGroupName - the name of the resource group. name - the name of the lab. exportResourceUsageParameters - the parameters of the export operation.

func (LabsClient) ExportResourceUsagePreparer Uses

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

ExportResourceUsagePreparer prepares the ExportResourceUsage request.

func (LabsClient) ExportResourceUsageResponder Uses

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 Uses

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 Uses

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. Parameters: resourceGroupName - the name of the resource group. name - the name of the lab. generateUploadURIParameter - properties for generating an upload URI.

func (LabsClient) GenerateUploadURIPreparer Uses

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

GenerateUploadURIPreparer prepares the GenerateUploadURI request.

func (LabsClient) GenerateUploadURIResponder Uses

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 Uses

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 Uses

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

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

func (LabsClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (LabsClient) GetResponder Uses

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 Uses

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 Uses

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. Parameters: resourceGroupName - the name of the resource group. expand - specify the $expand query. Example: 'properties($select=defaultStorageAccount)' filter - the filter to apply to the operation. top - the maximum number of resources to return from the operation. orderby - the ordering expression for the results, using OData notation.

func (LabsClient) ListByResourceGroupComplete Uses

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 Uses

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 Uses

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 Uses

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 Uses

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. Parameters: expand - specify the $expand query. Example: 'properties($select=defaultStorageAccount)' filter - the filter to apply to the operation. top - the maximum number of resources to return from the operation. orderby - the ordering expression for the results, using OData notation.

func (LabsClient) ListBySubscriptionComplete Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

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

func (LabsClient) ListVhdsComplete Uses

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 Uses

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

ListVhdsPreparer prepares the ListVhds request.

func (LabsClient) ListVhdsResponder Uses

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 Uses

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 Uses

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

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

func (LabsClient) UpdatePreparer Uses

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

UpdatePreparer prepares the Update request.

func (LabsClient) UpdateResponder Uses

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 Uses

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 Uses

type LabsCreateEnvironmentFuture struct {
    azure.Future
}

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

func (*LabsCreateEnvironmentFuture) Result Uses

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 Uses

type LabsCreateOrUpdateFuture struct {
    azure.Future
}

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

func (*LabsCreateOrUpdateFuture) Result Uses

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 Uses

type LabsDeleteFuture struct {
    azure.Future
}

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

func (*LabsDeleteFuture) Result Uses

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 Uses

type LabsExportResourceUsageFuture struct {
    azure.Future
}

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

func (*LabsExportResourceUsageFuture) Result Uses

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 Uses

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 Uses

type LinuxOsState string

LinuxOsState enumerates the values for linux os state.

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

func PossibleLinuxOsStateValues Uses

func PossibleLinuxOsStateValues() []LinuxOsState

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

type NetworkInterfaceProperties Uses

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 Uses

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 Uses

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

NotificationChannel a notification.

func (NotificationChannel) MarshalJSON Uses

func (nc NotificationChannel) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for NotificationChannel.

func (*NotificationChannel) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for NotificationChannel struct.

type NotificationChannelEventType Uses

type NotificationChannelEventType string

NotificationChannelEventType enumerates the values for notification channel event type.

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

func PossibleNotificationChannelEventTypeValues Uses

func PossibleNotificationChannelEventTypeValues() []NotificationChannelEventType

PossibleNotificationChannelEventTypeValues returns an array of possible values for the NotificationChannelEventType const type.

type NotificationChannelFragment Uses

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

NotificationChannelFragment a notification.

func (NotificationChannelFragment) MarshalJSON Uses

func (ncf NotificationChannelFragment) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for NotificationChannelFragment.

func (*NotificationChannelFragment) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for NotificationChannelFragment struct.

type NotificationChannelProperties Uses

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 - READ-ONLY; 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 Uses

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 Uses

type NotificationChannelsClient struct {
    BaseClient
}

NotificationChannelsClient is the the DevTest Labs Client.

func NewNotificationChannelsClient Uses

func NewNotificationChannelsClient(subscriptionID string) NotificationChannelsClient

NewNotificationChannelsClient creates an instance of the NotificationChannelsClient client.

func NewNotificationChannelsClientWithBaseURI Uses

func NewNotificationChannelsClientWithBaseURI(baseURI string, subscriptionID string) NotificationChannelsClient

NewNotificationChannelsClientWithBaseURI creates an instance of the NotificationChannelsClient client.

func (NotificationChannelsClient) CreateOrUpdate Uses

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. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the notificationChannel. notificationChannel - a notification.

func (NotificationChannelsClient) CreateOrUpdatePreparer Uses

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 Uses

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 Uses

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 Uses

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

Delete delete notification channel. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the notificationChannel.

func (NotificationChannelsClient) DeletePreparer Uses

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

DeletePreparer prepares the Delete request.

func (NotificationChannelsClient) DeleteResponder Uses

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 Uses

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 Uses

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

Get get notification channels. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the notificationChannel. expand - specify the $expand query. Example: 'properties($select=webHookUrl)'

func (NotificationChannelsClient) GetPreparer Uses

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 Uses

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 Uses

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 Uses

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 notification channels 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=webHookUrl)' filter - the filter to apply to the operation. top - the maximum number of resources to return from the operation. orderby - the ordering expression for the results, using OData notation.

func (NotificationChannelsClient) ListComplete Uses

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 Uses

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 Uses

func (client NotificationChannelsClient) ListResponder(resp *http.Response) (result ResponseWithContinuationNotificationChannel, err error)

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

func (NotificationChannelsClient) ListSender Uses

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 Uses

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. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the notificationChannel. notifyParameters - properties for generating a Notification.

func (NotificationChannelsClient) NotifyPreparer Uses

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 Uses

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 Uses

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 Uses

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

Update modify properties of notification channels. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the notificationChannel. notificationChannel - a notification.

func (NotificationChannelsClient) UpdatePreparer Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

type NotificationStatus string

NotificationStatus enumerates the values for notification status.

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

func PossibleNotificationStatusValues Uses

func PossibleNotificationStatusValues() []NotificationStatus

PossibleNotificationStatusValues returns an array of possible values for the NotificationStatus const type.

type NotifyParameters Uses

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 Uses

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 OperationMetadata Uses

type OperationMetadata struct {
    // Name - Operation name: {provider}/{resource}/{operation}
    Name *string `json:"name,omitempty"`
    // Display - The object that describes the operations
    Display *OperationMetadataDisplay `json:"display,omitempty"`
}

OperationMetadata the REST API operation supported by DevTestLab ResourceProvider.

type OperationMetadataDisplay Uses

type OperationMetadataDisplay struct {
    // Provider - Friendly name of the resource provider
    Provider *string `json:"provider,omitempty"`
    // Resource - Resource type on which the operation is performed.
    Resource *string `json:"resource,omitempty"`
    // Operation - Operation type: read, write, delete, listKeys/action, etc.
    Operation *string `json:"operation,omitempty"`
    // Description - Friendly name of the operation
    Description *string `json:"description,omitempty"`
}

OperationMetadataDisplay the object that describes the operations

type OperationResult Uses

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 Uses

type OperationsClient struct {
    BaseClient
}

OperationsClient is the the DevTest Labs Client.

func NewOperationsClient Uses

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI Uses

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.

func (OperationsClient) Get Uses

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

Get get operation. Parameters: locationName - the name of the location. name - the name of the operation.

func (OperationsClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (OperationsClient) GetResponder Uses

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 Uses

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 Uses

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 Uses

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

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

type PercentageCostThresholdProperties Uses

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

PercentageCostThresholdProperties properties of a percentage cost threshold.

type PoliciesClient Uses

type PoliciesClient struct {
    BaseClient
}

PoliciesClient is the the DevTest Labs Client.

func NewPoliciesClient Uses

func NewPoliciesClient(subscriptionID string) PoliciesClient

NewPoliciesClient creates an instance of the PoliciesClient client.

func NewPoliciesClientWithBaseURI Uses

func NewPoliciesClientWithBaseURI(baseURI string, subscriptionID string) PoliciesClient

NewPoliciesClientWithBaseURI creates an instance of the PoliciesClient client.

func (PoliciesClient) CreateOrUpdate Uses

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. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. policySetName - the name of the policy set. name - the name of the policy. policy - a Policy.

func (PoliciesClient) CreateOrUpdatePreparer Uses

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 Uses

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 Uses

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 Uses

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

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

func (PoliciesClient) DeletePreparer Uses

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 Uses

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 Uses

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 Uses

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

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

func (PoliciesClient) GetPreparer Uses

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 Uses

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 Uses

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 Uses

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

func (PoliciesClient) ListComplete Uses

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 Uses

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 Uses

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 Uses

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 Uses

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. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. policySetName - the name of the policy set. name - the name of the policy. policy - a Policy.

func (PoliciesClient) UpdatePreparer Uses

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 Uses

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 Uses

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 Uses

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

Policy a Policy.

func (Policy) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Policy.

func (*Policy) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Policy struct.

type PolicyEvaluatorType Uses

type PolicyEvaluatorType string

PolicyEvaluatorType enumerates the values for policy evaluator type.

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

func PossiblePolicyEvaluatorTypeValues Uses

func PossiblePolicyEvaluatorTypeValues() []PolicyEvaluatorType

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

type PolicyFactName Uses

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

func PossiblePolicyFactNameValues Uses

func PossiblePolicyFactNameValues() []PolicyFactName

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

type PolicyFragment Uses

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

PolicyFragment a Policy.

func (PolicyFragment) MarshalJSON Uses

func (pf PolicyFragment) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PolicyFragment.

func (*PolicyFragment) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for PolicyFragment struct.

type PolicyProperties Uses

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 - READ-ONLY; 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 Uses

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 Uses

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 Uses

type PolicySetsClient struct {
    BaseClient
}

PolicySetsClient is the the DevTest Labs Client.

func NewPolicySetsClient Uses

func NewPolicySetsClient(subscriptionID string) PolicySetsClient

NewPolicySetsClient creates an instance of the PolicySetsClient client.

func NewPolicySetsClientWithBaseURI Uses

func NewPolicySetsClientWithBaseURI(baseURI string, subscriptionID string) PolicySetsClient

NewPolicySetsClientWithBaseURI creates an instance of the PolicySetsClient client.

func (PolicySetsClient) EvaluatePolicies Uses

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

EvaluatePolicies evaluates lab policy. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the policy set. evaluatePoliciesRequest - request body for evaluating a policy set.

func (PolicySetsClient) EvaluatePoliciesPreparer Uses

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 Uses

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 Uses

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 Uses

type PolicyStatus string

PolicyStatus enumerates the values for policy status.

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

func PossiblePolicyStatusValues Uses

func PossiblePolicyStatusValues() []PolicyStatus

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

type PolicyViolation Uses

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 Uses

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 Uses

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 Uses

type PremiumDataDisk string

PremiumDataDisk enumerates the values for premium data disk.

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

func PossiblePremiumDataDiskValues Uses

func PossiblePremiumDataDiskValues() []PremiumDataDisk

PossiblePremiumDataDiskValues returns an array of possible values for the PremiumDataDisk const type.

type ProviderOperationResult Uses

type ProviderOperationResult struct {
    autorest.Response `json:"-"`
    // Value - List of operations supported by the resource provider.
    Value *[]OperationMetadata `json:"value,omitempty"`
    // NextLink - READ-ONLY; URL to get the next set of operation list results if there are any.
    NextLink *string `json:"nextLink,omitempty"`
}

ProviderOperationResult result of the request to list REST API operations

func (ProviderOperationResult) IsEmpty Uses

func (por ProviderOperationResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ProviderOperationResultIterator Uses

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

ProviderOperationResultIterator provides access to a complete listing of OperationMetadata values.

func NewProviderOperationResultIterator Uses

func NewProviderOperationResultIterator(page ProviderOperationResultPage) ProviderOperationResultIterator

Creates a new instance of the ProviderOperationResultIterator type.

func (*ProviderOperationResultIterator) Next Uses

func (iter *ProviderOperationResultIterator) 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 (*ProviderOperationResultIterator) NextWithContext Uses

func (iter *ProviderOperationResultIterator) 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 (ProviderOperationResultIterator) NotDone Uses

func (iter ProviderOperationResultIterator) NotDone() bool

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

func (ProviderOperationResultIterator) Response Uses

func (iter ProviderOperationResultIterator) Response() ProviderOperationResult

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

func (ProviderOperationResultIterator) Value Uses

func (iter ProviderOperationResultIterator) Value() OperationMetadata

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

type ProviderOperationResultPage Uses

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

ProviderOperationResultPage contains a page of OperationMetadata values.

func NewProviderOperationResultPage Uses

func NewProviderOperationResultPage(getNextPage func(context.Context, ProviderOperationResult) (ProviderOperationResult, error)) ProviderOperationResultPage

Creates a new instance of the ProviderOperationResultPage type.

func (*ProviderOperationResultPage) Next Uses

func (page *ProviderOperationResultPage) 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 (*ProviderOperationResultPage) NextWithContext Uses

func (page *ProviderOperationResultPage) 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 (ProviderOperationResultPage) NotDone Uses

func (page ProviderOperationResultPage) NotDone() bool

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

func (ProviderOperationResultPage) Response Uses

func (page ProviderOperationResultPage) Response() ProviderOperationResult

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

func (ProviderOperationResultPage) Values Uses

func (page ProviderOperationResultPage) Values() []OperationMetadata

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

type ProviderOperationsClient Uses

type ProviderOperationsClient struct {
    BaseClient
}

ProviderOperationsClient is the the DevTest Labs Client.

func NewProviderOperationsClient Uses

func NewProviderOperationsClient(subscriptionID string) ProviderOperationsClient

NewProviderOperationsClient creates an instance of the ProviderOperationsClient client.

func NewProviderOperationsClientWithBaseURI Uses

func NewProviderOperationsClientWithBaseURI(baseURI string, subscriptionID string) ProviderOperationsClient

NewProviderOperationsClientWithBaseURI creates an instance of the ProviderOperationsClient client.

func (ProviderOperationsClient) List Uses

func (client ProviderOperationsClient) List(ctx context.Context) (result ProviderOperationResultPage, err error)

List result of the request to list REST API operations

func (ProviderOperationsClient) ListComplete Uses

func (client ProviderOperationsClient) ListComplete(ctx context.Context) (result ProviderOperationResultIterator, err error)

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

func (ProviderOperationsClient) ListPreparer Uses

func (client ProviderOperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (ProviderOperationsClient) ListResponder Uses

func (client ProviderOperationsClient) ListResponder(resp *http.Response) (result ProviderOperationResult, err error)

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

func (ProviderOperationsClient) ListSender Uses

func (client ProviderOperationsClient) 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 ReportingCycleType Uses

type ReportingCycleType string

ReportingCycleType enumerates the values for reporting cycle type.

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

func PossibleReportingCycleTypeValues Uses

func PossibleReportingCycleTypeValues() []ReportingCycleType

PossibleReportingCycleTypeValues returns an array of possible values for the ReportingCycleType const type.

type Resource Uses

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

Resource an Azure resource.

func (Resource) MarshalJSON Uses

func (r Resource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Resource.

type ResponseWithContinuationArmTemplate Uses

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 Uses

func (rwcAt ResponseWithContinuationArmTemplate) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ResponseWithContinuationArmTemplateIterator Uses

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

ResponseWithContinuationArmTemplateIterator provides access to a complete listing of ArmTemplate values.

func NewResponseWithContinuationArmTemplateIterator Uses

func NewResponseWithContinuationArmTemplateIterator(page ResponseWithContinuationArmTemplatePage) ResponseWithContinuationArmTemplateIterator

Creates a new instance of the ResponseWithContinuationArmTemplateIterator type.

func (*ResponseWithContinuationArmTemplateIterator) Next Uses

func (iter *ResponseWithContinuationArmTemplateIterator) 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 (*ResponseWithContinuationArmTemplateIterator) NextWithContext Uses

func (iter *ResponseWithContinuationArmTemplateIterator) 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 (ResponseWithContinuationArmTemplateIterator) NotDone Uses

func (iter ResponseWithContinuationArmTemplateIterator) NotDone() bool

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

func (ResponseWithContinuationArmTemplateIterator) Response Uses

func (iter ResponseWithContinuationArmTemplateIterator) Response() ResponseWithContinuationArmTemplate

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

func (ResponseWithContinuationArmTemplateIterator) Value Uses

func (iter ResponseWithContinuationArmTemplateIterator) Value() ArmTemplate

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

type ResponseWithContinuationArmTemplatePage Uses

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

ResponseWithContinuationArmTemplatePage contains a page of ArmTemplate values.

func NewResponseWithContinuationArmTemplatePage Uses

func NewResponseWithContinuationArmTemplatePage(getNextPage func(context.Context, ResponseWithContinuationArmTemplate) (ResponseWithContinuationArmTemplate, error)) ResponseWithContinuationArmTemplatePage

Creates a new instance of the ResponseWithContinuationArmTemplatePage type.

func (*ResponseWithContinuationArmTemplatePage) Next Uses

func (page *ResponseWithContinuationArmTemplatePage) 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 (*ResponseWithContinuationArmTemplatePage) NextWithContext Uses

func (page *ResponseWithContinuationArmTemplatePage) 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 (ResponseWithContinuationArmTemplatePage) NotDone Uses

func (page ResponseWithContinuationArmTemplatePage) NotDone() bool

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

func (ResponseWithContinuationArmTemplatePage) Response Uses

func (page ResponseWithContinuationArmTemplatePage) Response() ResponseWithContinuationArmTemplate

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

func (ResponseWithContinuationArmTemplatePage) Values Uses

func (page ResponseWithContinuationArmTemplatePage) Values() []ArmTemplate

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

type ResponseWithContinuationArtifact Uses

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