const ( // DefaultBaseURI is the default URI used for the service Dtl DefaultBaseURI = "https://management.azure.com" )
func UserAgent() string
UserAgent returns the UserAgent string to use when sending http.Requests.
func Version() string
Version returns the semantic version (see http://semver.org) of the client.
ApplyArtifactsRequest request body for applying artifacts to a virtual machine.
type ApplyArtifactsRequest struct { // Artifacts - The list of artifacts to apply. Artifacts *[]ArtifactInstallProperties `json:"artifacts,omitempty"` }
ArmTemplateInfo information about a generated ARM template.
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"` }
Artifact an artifact.
type Artifact struct { autorest.Response `json:"-"` // ArtifactProperties - The properties of the resource. *ArtifactProperties `json:"properties,omitempty"` // ID - The identifier of the resource. ID *string `json:"id,omitempty"` // Name - The name of the resource. Name *string `json:"name,omitempty"` // Type - The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` // Tags - The tags of the resource. Tags map[string]*string `json:"tags"` }
func (a Artifact) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Artifact.
func (a *Artifact) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for Artifact struct.
ArtifactClient is the azure DevTest Labs REST API version 2015-05-21-preview.
type ArtifactClient struct { BaseClient }
func NewArtifactClient(subscriptionID string) ArtifactClient
NewArtifactClient creates an instance of the ArtifactClient client.
func NewArtifactClientWithBaseURI(baseURI string, subscriptionID string) ArtifactClient
NewArtifactClientWithBaseURI creates an instance of the ArtifactClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client ArtifactClient) GenerateArmTemplate(ctx context.Context, resourceGroupName string, labName string, artifactSourceName string, name string, generateArmTemplateRequest GenerateArmTemplateRequest) (result ArmTemplateInfo, err error)
GenerateArmTemplate generates an ARM template for the given artifact, uploads the required files to a storage account, and validates the generated artifact. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. artifactSourceName - the name of the artifact source. name - the name of the artifact.
func (client ArtifactClient) GenerateArmTemplatePreparer(ctx context.Context, resourceGroupName string, labName string, artifactSourceName string, name string, generateArmTemplateRequest GenerateArmTemplateRequest) (*http.Request, error)
GenerateArmTemplatePreparer prepares the GenerateArmTemplate request.
func (client ArtifactClient) GenerateArmTemplateResponder(resp *http.Response) (result ArmTemplateInfo, err error)
GenerateArmTemplateResponder handles the response to the GenerateArmTemplate request. The method always closes the http.Response Body.
func (client ArtifactClient) GenerateArmTemplateSender(req *http.Request) (*http.Response, error)
GenerateArmTemplateSender sends the GenerateArmTemplate request. The method will close the http.Response Body if it receives an error.
func (client ArtifactClient) GetResource(ctx context.Context, resourceGroupName string, labName string, artifactSourceName string, name string) (result Artifact, err error)
GetResource get artifact. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. artifactSourceName - the name of the artifact source. name - the name of the artifact.
func (client ArtifactClient) GetResourcePreparer(ctx context.Context, resourceGroupName string, labName string, artifactSourceName string, name string) (*http.Request, error)
GetResourcePreparer prepares the GetResource request.
func (client ArtifactClient) GetResourceResponder(resp *http.Response) (result Artifact, err error)
GetResourceResponder handles the response to the GetResource request. The method always closes the http.Response Body.
func (client ArtifactClient) GetResourceSender(req *http.Request) (*http.Response, error)
GetResourceSender sends the GetResource request. The method will close the http.Response Body if it receives an error.
func (client ArtifactClient) List(ctx context.Context, resourceGroupName string, labName string, artifactSourceName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationArtifactPage, err error)
List list artifacts. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. artifactSourceName - the name of the artifact source. filter - the filter to apply on the operation.
func (client ArtifactClient) ListComplete(ctx context.Context, resourceGroupName string, labName string, artifactSourceName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationArtifactIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client ArtifactClient) ListPreparer(ctx context.Context, resourceGroupName string, labName string, artifactSourceName string, filter string, top *int32, orderBy string) (*http.Request, error)
ListPreparer prepares the List request.
func (client ArtifactClient) ListResponder(resp *http.Response) (result ResponseWithContinuationArtifact, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (client ArtifactClient) ListSender(req *http.Request) (*http.Response, error)
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
ArtifactDeploymentStatusProperties properties of an artifact deployment.
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"` }
ArtifactInstallProperties properties of an artifact.
type ArtifactInstallProperties struct { // ArtifactID - The artifact's identifier. ArtifactID *string `json:"artifactId,omitempty"` // Parameters - The parameters of the artifact. Parameters *[]ArtifactParameterProperties `json:"parameters,omitempty"` }
ArtifactParameterProperties properties of an artifact parameter.
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"` }
ArtifactProperties properties of an artifact.
type ArtifactProperties struct { // Title - The title of the artifact. Title *string `json:"title,omitempty"` // Description - The description of the artifact. Description *string `json:"description,omitempty"` // FilePath - The file path of the artifact. FilePath *string `json:"filePath,omitempty"` // Icon - The icon of the artifact. Icon *string `json:"icon,omitempty"` // TargetOsType - Gets or sets the type of the target os. TargetOsType *string `json:"targetOsType,omitempty"` // Parameters - The parameters of the artifact. Parameters interface{} `json:"parameters,omitempty"` }
ArtifactSource properties of an artifact source.
type ArtifactSource struct { autorest.Response `json:"-"` // ArtifactSourceProperties - The properties of the resource. *ArtifactSourceProperties `json:"properties,omitempty"` // ID - The identifier of the resource. ID *string `json:"id,omitempty"` // Name - The name of the resource. Name *string `json:"name,omitempty"` // Type - The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` // Tags - The tags of the resource. Tags map[string]*string `json:"tags"` }
func (as ArtifactSource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ArtifactSource.
func (as *ArtifactSource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ArtifactSource struct.
ArtifactSourceClient is the azure DevTest Labs REST API version 2015-05-21-preview.
type ArtifactSourceClient struct { BaseClient }
func NewArtifactSourceClient(subscriptionID string) ArtifactSourceClient
NewArtifactSourceClient creates an instance of the ArtifactSourceClient client.
func NewArtifactSourceClientWithBaseURI(baseURI string, subscriptionID string) ArtifactSourceClient
NewArtifactSourceClientWithBaseURI creates an instance of the ArtifactSourceClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client ArtifactSourceClient) CreateOrUpdateResource(ctx context.Context, resourceGroupName string, labName string, name string, artifactSource ArtifactSource) (result ArtifactSource, err error)
CreateOrUpdateResource create or replace an existing artifact source. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the artifact source.
func (client ArtifactSourceClient) CreateOrUpdateResourcePreparer(ctx context.Context, resourceGroupName string, labName string, name string, artifactSource ArtifactSource) (*http.Request, error)
CreateOrUpdateResourcePreparer prepares the CreateOrUpdateResource request.
func (client ArtifactSourceClient) CreateOrUpdateResourceResponder(resp *http.Response) (result ArtifactSource, err error)
CreateOrUpdateResourceResponder handles the response to the CreateOrUpdateResource request. The method always closes the http.Response Body.
func (client ArtifactSourceClient) CreateOrUpdateResourceSender(req *http.Request) (*http.Response, error)
CreateOrUpdateResourceSender sends the CreateOrUpdateResource request. The method will close the http.Response Body if it receives an error.
func (client ArtifactSourceClient) DeleteResource(ctx context.Context, resourceGroupName string, labName string, name string) (result autorest.Response, err error)
DeleteResource delete artifact source. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the artifact source.
func (client ArtifactSourceClient) DeleteResourcePreparer(ctx context.Context, resourceGroupName string, labName string, name string) (*http.Request, error)
DeleteResourcePreparer prepares the DeleteResource request.
func (client ArtifactSourceClient) DeleteResourceResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResourceResponder handles the response to the DeleteResource request. The method always closes the http.Response Body.
func (client ArtifactSourceClient) DeleteResourceSender(req *http.Request) (*http.Response, error)
DeleteResourceSender sends the DeleteResource request. The method will close the http.Response Body if it receives an error.
func (client ArtifactSourceClient) GetResource(ctx context.Context, resourceGroupName string, labName string, name string) (result ArtifactSource, err error)
GetResource get artifact source. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the artifact source.
func (client ArtifactSourceClient) GetResourcePreparer(ctx context.Context, resourceGroupName string, labName string, name string) (*http.Request, error)
GetResourcePreparer prepares the GetResource request.
func (client ArtifactSourceClient) GetResourceResponder(resp *http.Response) (result ArtifactSource, err error)
GetResourceResponder handles the response to the GetResource request. The method always closes the http.Response Body.
func (client ArtifactSourceClient) GetResourceSender(req *http.Request) (*http.Response, error)
GetResourceSender sends the GetResource request. The method will close the http.Response Body if it receives an error.
func (client ArtifactSourceClient) List(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationArtifactSourcePage, err error)
List list artifact sources. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. filter - the filter to apply on the operation.
func (client ArtifactSourceClient) ListComplete(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationArtifactSourceIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client ArtifactSourceClient) ListPreparer(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (*http.Request, error)
ListPreparer prepares the List request.
func (client ArtifactSourceClient) ListResponder(resp *http.Response) (result ResponseWithContinuationArtifactSource, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (client ArtifactSourceClient) ListSender(req *http.Request) (*http.Response, error)
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
func (client ArtifactSourceClient) PatchResource(ctx context.Context, resourceGroupName string, labName string, name string, artifactSource ArtifactSource) (result ArtifactSource, err error)
PatchResource modify properties of artifact sources. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the artifact source.
func (client ArtifactSourceClient) PatchResourcePreparer(ctx context.Context, resourceGroupName string, labName string, name string, artifactSource ArtifactSource) (*http.Request, error)
PatchResourcePreparer prepares the PatchResource request.
func (client ArtifactSourceClient) PatchResourceResponder(resp *http.Response) (result ArtifactSource, err error)
PatchResourceResponder handles the response to the PatchResource request. The method always closes the http.Response Body.
func (client ArtifactSourceClient) PatchResourceSender(req *http.Request) (*http.Response, error)
PatchResourceSender sends the PatchResource request. The method will close the http.Response Body if it receives an error.
ArtifactSourceProperties properties of an artifact source.
type ArtifactSourceProperties struct { // DisplayName - The display name of the artifact source. DisplayName *string `json:"displayName,omitempty"` // URI - The URI of the artifact source. URI *string `json:"uri,omitempty"` // SourceType - The type of the artifact source. Possible values include: 'VsoGit', 'GitHub' SourceType SourceControlType `json:"sourceType,omitempty"` // FolderPath - The folder path of the artifact source. FolderPath *string `json:"folderPath,omitempty"` // BranchRef - The branch reference of the artifact source. BranchRef *string `json:"branchRef,omitempty"` // SecurityToken - The security token of the artifact source. SecurityToken *string `json:"securityToken,omitempty"` // Status - The status of the artifact source. Possible values include: 'Enabled', 'Disabled' Status EnableStatus `json:"status,omitempty"` // ProvisioningState - The provisioning status of the resource. ProvisioningState *string `json:"provisioningState,omitempty"` }
BaseClient is the base client for Dtl.
type BaseClient struct { autorest.Client BaseURI string SubscriptionID string }
func New(subscriptionID string) BaseClient
New creates an instance of the BaseClient client.
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient
NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
CloudError ...
type CloudError struct { Error *CloudErrorBody `json:"error,omitempty"` }
CloudErrorBody ...
type CloudErrorBody struct { Code *string `json:"code,omitempty"` Message *string `json:"message,omitempty"` Target *string `json:"target,omitempty"` Details *[]CloudErrorBody `json:"details,omitempty"` }
Cost a cost item.
type Cost struct { autorest.Response `json:"-"` // CostProperties - The properties of the resource. *CostProperties `json:"properties,omitempty"` // ID - The identifier of the resource. ID *string `json:"id,omitempty"` // Name - The name of the resource. Name *string `json:"name,omitempty"` // Type - The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` // Tags - The tags of the resource. Tags map[string]*string `json:"tags"` }
func (c Cost) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Cost.
func (c *Cost) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for Cost struct.
CostClient is the azure DevTest Labs REST API version 2015-05-21-preview.
type CostClient struct { BaseClient }
func NewCostClient(subscriptionID string) CostClient
NewCostClient creates an instance of the CostClient client.
func NewCostClientWithBaseURI(baseURI string, subscriptionID string) CostClient
NewCostClientWithBaseURI creates an instance of the CostClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client CostClient) GetResource(ctx context.Context, resourceGroupName string, labName string, name string) (result Cost, err error)
GetResource get cost. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the cost.
func (client CostClient) GetResourcePreparer(ctx context.Context, resourceGroupName string, labName string, name string) (*http.Request, error)
GetResourcePreparer prepares the GetResource request.
func (client CostClient) GetResourceResponder(resp *http.Response) (result Cost, err error)
GetResourceResponder handles the response to the GetResource request. The method always closes the http.Response Body.
func (client CostClient) GetResourceSender(req *http.Request) (*http.Response, error)
GetResourceSender sends the GetResource request. The method will close the http.Response Body if it receives an error.
func (client CostClient) List(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationCostPage, err error)
List list costs. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. filter - the filter to apply on the operation.
func (client CostClient) ListComplete(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationCostIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client CostClient) ListPreparer(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (*http.Request, error)
ListPreparer prepares the List request.
func (client CostClient) ListResponder(resp *http.Response) (result ResponseWithContinuationCost, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (client CostClient) ListSender(req *http.Request) (*http.Response, error)
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
func (client CostClient) RefreshData(ctx context.Context, resourceGroupName string, labName string, name string) (result CostRefreshDataFuture, err error)
RefreshData refresh Lab's Cost Data. This operation can take a while to complete. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the cost.
func (client CostClient) RefreshDataPreparer(ctx context.Context, resourceGroupName string, labName string, name string) (*http.Request, error)
RefreshDataPreparer prepares the RefreshData request.
func (client CostClient) RefreshDataResponder(resp *http.Response) (result autorest.Response, err error)
RefreshDataResponder handles the response to the RefreshData request. The method always closes the http.Response Body.
func (client CostClient) RefreshDataSender(req *http.Request) (future CostRefreshDataFuture, err error)
RefreshDataSender sends the RefreshData request. The method will close the http.Response Body if it receives an error.
CostInsight ...
type CostInsight struct { autorest.Response `json:"-"` // CostInsightProperties - The properties of the resource. *CostInsightProperties `json:"properties,omitempty"` // ID - The identifier of the resource. ID *string `json:"id,omitempty"` // Name - The name of the resource. Name *string `json:"name,omitempty"` // Type - The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` // Tags - The tags of the resource. Tags map[string]*string `json:"tags"` }
func (ci CostInsight) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for CostInsight.
func (ci *CostInsight) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for CostInsight struct.
CostInsightClient is the azure DevTest Labs REST API version 2015-05-21-preview.
type CostInsightClient struct { BaseClient }
func NewCostInsightClient(subscriptionID string) CostInsightClient
NewCostInsightClient creates an instance of the CostInsightClient client.
func NewCostInsightClientWithBaseURI(baseURI string, subscriptionID string) CostInsightClient
NewCostInsightClientWithBaseURI creates an instance of the CostInsightClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client CostInsightClient) GetResource(ctx context.Context, resourceGroupName string, labName string, name string) (result CostInsight, err error)
GetResource get cost insight. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the cost insight.
func (client CostInsightClient) GetResourcePreparer(ctx context.Context, resourceGroupName string, labName string, name string) (*http.Request, error)
GetResourcePreparer prepares the GetResource request.
func (client CostInsightClient) GetResourceResponder(resp *http.Response) (result CostInsight, err error)
GetResourceResponder handles the response to the GetResource request. The method always closes the http.Response Body.
func (client CostInsightClient) GetResourceSender(req *http.Request) (*http.Response, error)
GetResourceSender sends the GetResource request. The method will close the http.Response Body if it receives an error.
func (client CostInsightClient) List(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationCostInsightPage, err error)
List list cost insights. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. filter - the filter to apply on the operation.
func (client CostInsightClient) ListComplete(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationCostInsightIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client CostInsightClient) ListPreparer(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (*http.Request, error)
ListPreparer prepares the List request.
func (client CostInsightClient) ListResponder(resp *http.Response) (result ResponseWithContinuationCostInsight, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (client CostInsightClient) ListSender(req *http.Request) (*http.Response, error)
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
func (client CostInsightClient) RefreshData(ctx context.Context, resourceGroupName string, labName string, name string) (result CostInsightRefreshDataFuture, err error)
RefreshData refresh Lab's Cost Insight Data. This operation can take a while to complete. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the cost insight.
func (client CostInsightClient) RefreshDataPreparer(ctx context.Context, resourceGroupName string, labName string, name string) (*http.Request, error)
RefreshDataPreparer prepares the RefreshData request.
func (client CostInsightClient) RefreshDataResponder(resp *http.Response) (result autorest.Response, err error)
RefreshDataResponder handles the response to the RefreshData request. The method always closes the http.Response Body.
func (client CostInsightClient) RefreshDataSender(req *http.Request) (future CostInsightRefreshDataFuture, err error)
RefreshDataSender sends the RefreshData request. The method will close the http.Response Body if it receives an error.
CostInsightProperties ...
type CostInsightProperties struct { CurrencyCode *string `json:"currencyCode,omitempty"` VMCosts *[]VMCostProperties `json:"vmCosts,omitempty"` // ProvisioningState - The provisioning status of the resource. ProvisioningState *string `json:"provisioningState,omitempty"` }
CostInsightRefreshDataFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type CostInsightRefreshDataFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(CostInsightClient) (autorest.Response, error) }
func (future *CostInsightRefreshDataFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
CostPerDayProperties the per-day properties of a cost item.
type CostPerDayProperties struct { // Date - The date of the cost item. Date *date.Time `json:"date,omitempty"` // Cost - The cost of the cost item. Cost *float64 `json:"cost,omitempty"` // CostType - The type of the cost. Possible values include: 'Unavailable', 'Reported', 'Projected' CostType CostPropertyType `json:"costType,omitempty"` }
CostProperties properties of a cost item.
type CostProperties struct { // CurrencyCode - The currency code of the cost. CurrencyCode *string `json:"currencyCode,omitempty"` // Costs - The per-day costs items of the cost. Costs *[]CostPerDayProperties `json:"costs,omitempty"` }
CostPropertyType enumerates the values for cost property type.
type CostPropertyType string
const ( // Projected ... Projected CostPropertyType = "Projected" // Reported ... Reported CostPropertyType = "Reported" // Unavailable ... CostPropertyType = "Unavailable" )
func PossibleCostPropertyTypeValues() []CostPropertyType
PossibleCostPropertyTypeValues returns an array of possible values for the CostPropertyType const type.
CostRefreshDataFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type CostRefreshDataFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(CostClient) (autorest.Response, error) }
func (future *CostRefreshDataFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
CustomImage a custom image.
type CustomImage struct { autorest.Response `json:"-"` // CustomImageProperties - The properties of the resource. *CustomImageProperties `json:"properties,omitempty"` // ID - The identifier of the resource. ID *string `json:"id,omitempty"` // Name - The name of the resource. Name *string `json:"name,omitempty"` // Type - The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` // Tags - The tags of the resource. Tags map[string]*string `json:"tags"` }
func (ci CustomImage) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for CustomImage.
func (ci *CustomImage) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for CustomImage struct.
CustomImageClient is the azure DevTest Labs REST API version 2015-05-21-preview.
type CustomImageClient struct { BaseClient }
func NewCustomImageClient(subscriptionID string) CustomImageClient
NewCustomImageClient creates an instance of the CustomImageClient client.
func NewCustomImageClientWithBaseURI(baseURI string, subscriptionID string) CustomImageClient
NewCustomImageClientWithBaseURI creates an instance of the CustomImageClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client CustomImageClient) CreateOrUpdateResource(ctx context.Context, resourceGroupName string, labName string, name string, customImage CustomImage) (result CustomImageCreateOrUpdateResourceFuture, err error)
CreateOrUpdateResource create or replace an existing custom image. This operation can take a while to complete. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the custom image.
func (client CustomImageClient) CreateOrUpdateResourcePreparer(ctx context.Context, resourceGroupName string, labName string, name string, customImage CustomImage) (*http.Request, error)
CreateOrUpdateResourcePreparer prepares the CreateOrUpdateResource request.
func (client CustomImageClient) CreateOrUpdateResourceResponder(resp *http.Response) (result CustomImage, err error)
CreateOrUpdateResourceResponder handles the response to the CreateOrUpdateResource request. The method always closes the http.Response Body.
func (client CustomImageClient) CreateOrUpdateResourceSender(req *http.Request) (future CustomImageCreateOrUpdateResourceFuture, err error)
CreateOrUpdateResourceSender sends the CreateOrUpdateResource request. The method will close the http.Response Body if it receives an error.
func (client CustomImageClient) DeleteResource(ctx context.Context, resourceGroupName string, labName string, name string) (result CustomImageDeleteResourceFuture, err error)
DeleteResource delete custom image. This operation can take a while to complete. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the custom image.
func (client CustomImageClient) DeleteResourcePreparer(ctx context.Context, resourceGroupName string, labName string, name string) (*http.Request, error)
DeleteResourcePreparer prepares the DeleteResource request.
func (client CustomImageClient) DeleteResourceResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResourceResponder handles the response to the DeleteResource request. The method always closes the http.Response Body.
func (client CustomImageClient) DeleteResourceSender(req *http.Request) (future CustomImageDeleteResourceFuture, err error)
DeleteResourceSender sends the DeleteResource request. The method will close the http.Response Body if it receives an error.
func (client CustomImageClient) GetResource(ctx context.Context, resourceGroupName string, labName string, name string) (result CustomImage, err error)
GetResource get custom image. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the custom image.
func (client CustomImageClient) GetResourcePreparer(ctx context.Context, resourceGroupName string, labName string, name string) (*http.Request, error)
GetResourcePreparer prepares the GetResource request.
func (client CustomImageClient) GetResourceResponder(resp *http.Response) (result CustomImage, err error)
GetResourceResponder handles the response to the GetResource request. The method always closes the http.Response Body.
func (client CustomImageClient) GetResourceSender(req *http.Request) (*http.Response, error)
GetResourceSender sends the GetResource request. The method will close the http.Response Body if it receives an error.
func (client CustomImageClient) List(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationCustomImagePage, err error)
List list custom images. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. filter - the filter to apply on the operation.
func (client CustomImageClient) ListComplete(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationCustomImageIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client CustomImageClient) ListPreparer(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (*http.Request, error)
ListPreparer prepares the List request.
func (client CustomImageClient) ListResponder(resp *http.Response) (result ResponseWithContinuationCustomImage, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (client CustomImageClient) ListSender(req *http.Request) (*http.Response, error)
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
CustomImageCreateOrUpdateResourceFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type CustomImageCreateOrUpdateResourceFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(CustomImageClient) (CustomImage, error) }
func (future *CustomImageCreateOrUpdateResourceFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
CustomImageDeleteResourceFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type CustomImageDeleteResourceFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(CustomImageClient) (autorest.Response, error) }
func (future *CustomImageDeleteResourceFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
CustomImageOsType enumerates the values for custom image os type.
type CustomImageOsType string
const ( // Linux ... Linux CustomImageOsType = "Linux" // None ... None CustomImageOsType = "None" // Windows ... Windows CustomImageOsType = "Windows" )
func PossibleCustomImageOsTypeValues() []CustomImageOsType
PossibleCustomImageOsTypeValues returns an array of possible values for the CustomImageOsType const type.
CustomImageProperties properties of a custom image.
type CustomImageProperties struct { VM *CustomImagePropertiesFromVM `json:"vm,omitempty"` // Vhd - The VHD from which the image is to be created. Vhd *CustomImagePropertiesCustom `json:"vhd,omitempty"` // Description - The description of the custom image. Description *string `json:"description,omitempty"` // OsType - The OS type of the custom image. Possible values include: 'Windows', 'Linux', 'None' OsType CustomImageOsType `json:"osType,omitempty"` // Author - The author of the custom image. Author *string `json:"author,omitempty"` // CreationDate - The creation date of the custom image. CreationDate *date.Time `json:"creationDate,omitempty"` // ProvisioningState - The provisioning status of the resource. ProvisioningState *string `json:"provisioningState,omitempty"` }
CustomImagePropertiesCustom properties for creating a custom image from a VHD.
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"` }
CustomImagePropertiesFromVM properties for creating a custom image from a virtual machine.
type CustomImagePropertiesFromVM struct { // SourceVMID - The source vm identifier. SourceVMID *string `json:"sourceVmId,omitempty"` // SysPrep - Indicates whether sysprep has been run on the VHD. SysPrep *bool `json:"sysPrep,omitempty"` // WindowsOsInfo - The Windows OS information of the VM. WindowsOsInfo *WindowsOsInfo `json:"windowsOsInfo,omitempty"` // LinuxOsInfo - The Linux OS information of the VM. LinuxOsInfo *LinuxOsInfo `json:"linuxOsInfo,omitempty"` }
DayDetails properties of a daily schedule.
type DayDetails struct { Time *string `json:"time,omitempty"` }
EnableStatus enumerates the values for enable status.
type EnableStatus string
const ( // Disabled ... Disabled EnableStatus = "Disabled" // Enabled ... Enabled EnableStatus = "Enabled" )
func PossibleEnableStatusValues() []EnableStatus
PossibleEnableStatusValues returns an array of possible values for the EnableStatus const type.
EvaluatePoliciesProperties properties for evaluating a policy set.
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"` }
EvaluatePoliciesRequest request body for evaluating a policy set.
type EvaluatePoliciesRequest struct { // Policies - Policies to evaluate. Policies *[]EvaluatePoliciesProperties `json:"policies,omitempty"` }
EvaluatePoliciesResponse response body for evaluating a policy set.
type EvaluatePoliciesResponse struct { autorest.Response `json:"-"` // Results - Results of evaluating a policy set. Results *[]PolicySetResult `json:"results,omitempty"` }
Formula a formula.
type Formula struct { autorest.Response `json:"-"` // FormulaProperties - The properties of the resource. *FormulaProperties `json:"properties,omitempty"` // ID - The identifier of the resource. ID *string `json:"id,omitempty"` // Name - The name of the resource. Name *string `json:"name,omitempty"` // Type - The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` // Tags - The tags of the resource. Tags map[string]*string `json:"tags"` }
func (f Formula) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Formula.
func (f *Formula) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for Formula struct.
FormulaClient is the azure DevTest Labs REST API version 2015-05-21-preview.
type FormulaClient struct { BaseClient }
func NewFormulaClient(subscriptionID string) FormulaClient
NewFormulaClient creates an instance of the FormulaClient client.
func NewFormulaClientWithBaseURI(baseURI string, subscriptionID string) FormulaClient
NewFormulaClientWithBaseURI creates an instance of the FormulaClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client FormulaClient) CreateOrUpdateResource(ctx context.Context, resourceGroupName string, labName string, name string, formula Formula) (result FormulaCreateOrUpdateResourceFuture, err error)
CreateOrUpdateResource create or replace an existing Formula. This operation can take a while to complete. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the formula.
func (client FormulaClient) CreateOrUpdateResourcePreparer(ctx context.Context, resourceGroupName string, labName string, name string, formula Formula) (*http.Request, error)
CreateOrUpdateResourcePreparer prepares the CreateOrUpdateResource request.
func (client FormulaClient) CreateOrUpdateResourceResponder(resp *http.Response) (result Formula, err error)
CreateOrUpdateResourceResponder handles the response to the CreateOrUpdateResource request. The method always closes the http.Response Body.
func (client FormulaClient) CreateOrUpdateResourceSender(req *http.Request) (future FormulaCreateOrUpdateResourceFuture, err error)
CreateOrUpdateResourceSender sends the CreateOrUpdateResource request. The method will close the http.Response Body if it receives an error.
func (client FormulaClient) DeleteResource(ctx context.Context, resourceGroupName string, labName string, name string) (result autorest.Response, err error)
DeleteResource delete formula. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the formula.
func (client FormulaClient) DeleteResourcePreparer(ctx context.Context, resourceGroupName string, labName string, name string) (*http.Request, error)
DeleteResourcePreparer prepares the DeleteResource request.
func (client FormulaClient) DeleteResourceResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResourceResponder handles the response to the DeleteResource request. The method always closes the http.Response Body.
func (client FormulaClient) DeleteResourceSender(req *http.Request) (*http.Response, error)
DeleteResourceSender sends the DeleteResource request. The method will close the http.Response Body if it receives an error.
func (client FormulaClient) GetResource(ctx context.Context, resourceGroupName string, labName string, name string) (result Formula, err error)
GetResource get formula. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the formula.
func (client FormulaClient) GetResourcePreparer(ctx context.Context, resourceGroupName string, labName string, name string) (*http.Request, error)
GetResourcePreparer prepares the GetResource request.
func (client FormulaClient) GetResourceResponder(resp *http.Response) (result Formula, err error)
GetResourceResponder handles the response to the GetResource request. The method always closes the http.Response Body.
func (client FormulaClient) GetResourceSender(req *http.Request) (*http.Response, error)
GetResourceSender sends the GetResource request. The method will close the http.Response Body if it receives an error.
func (client FormulaClient) List(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationFormulaPage, err error)
List list formulas. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. filter - the filter to apply on the operation.
func (client FormulaClient) ListComplete(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationFormulaIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client FormulaClient) ListPreparer(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (*http.Request, error)
ListPreparer prepares the List request.
func (client FormulaClient) ListResponder(resp *http.Response) (result ResponseWithContinuationFormula, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (client FormulaClient) ListSender(req *http.Request) (*http.Response, error)
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
FormulaCreateOrUpdateResourceFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type FormulaCreateOrUpdateResourceFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(FormulaClient) (Formula, error) }
func (future *FormulaCreateOrUpdateResourceFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
FormulaProperties properties of a formula.
type FormulaProperties struct { // Description - The description of the formula. Description *string `json:"description,omitempty"` // Author - The author of the formula. Author *string `json:"author,omitempty"` // OsType - The OS type of the formula. OsType *string `json:"osType,omitempty"` // CreationDate - The creation date of the formula. CreationDate *date.Time `json:"creationDate,omitempty"` // FormulaContent - The content of the formula. FormulaContent *LabVirtualMachine `json:"formulaContent,omitempty"` // VM - Information about a VM from which a formula is to be created. VM *FormulaPropertiesFromVM `json:"vm,omitempty"` // ProvisioningState - The provisioning status of the resource. ProvisioningState *string `json:"provisioningState,omitempty"` }
FormulaPropertiesFromVM information about a VM from which a formula is to be created.
type FormulaPropertiesFromVM struct { // LabVMID - The identifier of the VM from which a formula is to be created. LabVMID *string `json:"labVmId,omitempty"` }
GalleryImage a gallery image.
type GalleryImage struct { // GalleryImageProperties - The properties of the resource. *GalleryImageProperties `json:"properties,omitempty"` // ID - The identifier of the resource. ID *string `json:"id,omitempty"` // Name - The name of the resource. Name *string `json:"name,omitempty"` // Type - The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` // Tags - The tags of the resource. Tags map[string]*string `json:"tags"` }
func (gi GalleryImage) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for GalleryImage.
func (gi *GalleryImage) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for GalleryImage struct.
GalleryImageClient is the azure DevTest Labs REST API version 2015-05-21-preview.
type GalleryImageClient struct { BaseClient }
func NewGalleryImageClient(subscriptionID string) GalleryImageClient
NewGalleryImageClient creates an instance of the GalleryImageClient client.
func NewGalleryImageClientWithBaseURI(baseURI string, subscriptionID string) GalleryImageClient
NewGalleryImageClientWithBaseURI creates an instance of the GalleryImageClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client GalleryImageClient) List(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationGalleryImagePage, err error)
List list gallery images. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. filter - the filter to apply on the operation.
func (client GalleryImageClient) ListComplete(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationGalleryImageIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client GalleryImageClient) ListPreparer(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (*http.Request, error)
ListPreparer prepares the List request.
func (client GalleryImageClient) ListResponder(resp *http.Response) (result ResponseWithContinuationGalleryImage, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (client GalleryImageClient) ListSender(req *http.Request) (*http.Response, error)
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
GalleryImageProperties properties of a gallery image.
type GalleryImageProperties struct { // Author - The author of the gallery image. Author *string `json:"author,omitempty"` // CreatedDate - The creation date of the gallery image. CreatedDate *date.Time `json:"createdDate,omitempty"` // Description - The description of the gallery image. Description *string `json:"description,omitempty"` // ImageReference - The image reference of the gallery image. ImageReference *GalleryImageReference `json:"imageReference,omitempty"` // Icon - The icon of the gallery image. Icon *string `json:"icon,omitempty"` // Enabled - Indicates whether this gallery image is enabled. Enabled *bool `json:"enabled,omitempty"` }
GalleryImageReference the reference information for an Azure Marketplace image.
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"` }
GenerateArmTemplateRequest parameters for generating an ARM template for deploying artifacts.
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"` }
GenerateUploadURIParameter properties for generating an upload URI.
type GenerateUploadURIParameter struct { // BlobName - The blob name of the upload URI. BlobName *string `json:"blobName,omitempty"` }
GenerateUploadURIResponse response body for generating an upload URI.
type GenerateUploadURIResponse struct { autorest.Response `json:"-"` // UploadURI - The upload URI for the VHD. UploadURI *string `json:"uploadUri,omitempty"` }
HourDetails properties of an hourly schedule.
type HourDetails struct { // Minute - Minutes of the hour the schedule will run. Minute *int32 `json:"minute,omitempty"` }
Lab a lab.
type Lab struct { autorest.Response `json:"-"` // LabProperties - The properties of the resource. *LabProperties `json:"properties,omitempty"` // ID - The identifier of the resource. ID *string `json:"id,omitempty"` // Name - The name of the resource. Name *string `json:"name,omitempty"` // Type - The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` // Tags - The tags of the resource. Tags map[string]*string `json:"tags"` }
func (l Lab) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Lab.
func (l *Lab) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for Lab struct.
LabClient is the azure DevTest Labs REST API version 2015-05-21-preview.
type LabClient struct { BaseClient }
func NewLabClient(subscriptionID string) LabClient
NewLabClient creates an instance of the LabClient client.
func NewLabClientWithBaseURI(baseURI string, subscriptionID string) LabClient
NewLabClientWithBaseURI creates an instance of the LabClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client LabClient) CreateEnvironment(ctx context.Context, resourceGroupName string, name string, labVirtualMachine LabVirtualMachine) (result LabCreateEnvironmentFuture, err error)
CreateEnvironment create virtual machines in a Lab. This operation can take a while to complete. Parameters: resourceGroupName - the name of the resource group. name - the name of the lab.
func (client LabClient) CreateEnvironmentPreparer(ctx context.Context, resourceGroupName string, name string, labVirtualMachine LabVirtualMachine) (*http.Request, error)
CreateEnvironmentPreparer prepares the CreateEnvironment request.
func (client LabClient) CreateEnvironmentResponder(resp *http.Response) (result autorest.Response, err error)
CreateEnvironmentResponder handles the response to the CreateEnvironment request. The method always closes the http.Response Body.
func (client LabClient) CreateEnvironmentSender(req *http.Request) (future LabCreateEnvironmentFuture, err error)
CreateEnvironmentSender sends the CreateEnvironment request. The method will close the http.Response Body if it receives an error.
func (client LabClient) CreateOrUpdateResource(ctx context.Context, resourceGroupName string, name string, lab Lab) (result LabCreateOrUpdateResourceFuture, err error)
CreateOrUpdateResource create or replace an existing Lab. This operation can take a while to complete. Parameters: resourceGroupName - the name of the resource group. name - the name of the lab.
func (client LabClient) CreateOrUpdateResourcePreparer(ctx context.Context, resourceGroupName string, name string, lab Lab) (*http.Request, error)
CreateOrUpdateResourcePreparer prepares the CreateOrUpdateResource request.
func (client LabClient) CreateOrUpdateResourceResponder(resp *http.Response) (result Lab, err error)
CreateOrUpdateResourceResponder handles the response to the CreateOrUpdateResource request. The method always closes the http.Response Body.
func (client LabClient) CreateOrUpdateResourceSender(req *http.Request) (future LabCreateOrUpdateResourceFuture, err error)
CreateOrUpdateResourceSender sends the CreateOrUpdateResource request. The method will close the http.Response Body if it receives an error.
func (client LabClient) DeleteResource(ctx context.Context, resourceGroupName string, name string) (result LabDeleteResourceFuture, err error)
DeleteResource delete lab. This operation can take a while to complete. Parameters: resourceGroupName - the name of the resource group. name - the name of the lab.
func (client LabClient) DeleteResourcePreparer(ctx context.Context, resourceGroupName string, name string) (*http.Request, error)
DeleteResourcePreparer prepares the DeleteResource request.
func (client LabClient) DeleteResourceResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResourceResponder handles the response to the DeleteResource request. The method always closes the http.Response Body.
func (client LabClient) DeleteResourceSender(req *http.Request) (future LabDeleteResourceFuture, err error)
DeleteResourceSender sends the DeleteResource request. The method will close the http.Response Body if it receives an error.
func (client LabClient) GenerateUploadURI(ctx context.Context, resourceGroupName string, name string, generateUploadURIParameter GenerateUploadURIParameter) (result GenerateUploadURIResponse, err error)
GenerateUploadURI generate a URI for uploading custom disk images to a Lab. Parameters: resourceGroupName - the name of the resource group. name - the name of the lab.
func (client LabClient) GenerateUploadURIPreparer(ctx context.Context, resourceGroupName string, name string, generateUploadURIParameter GenerateUploadURIParameter) (*http.Request, error)
GenerateUploadURIPreparer prepares the GenerateUploadURI request.
func (client LabClient) GenerateUploadURIResponder(resp *http.Response) (result GenerateUploadURIResponse, err error)
GenerateUploadURIResponder handles the response to the GenerateUploadURI request. The method always closes the http.Response Body.
func (client LabClient) GenerateUploadURISender(req *http.Request) (*http.Response, error)
GenerateUploadURISender sends the GenerateUploadURI request. The method will close the http.Response Body if it receives an error.
func (client LabClient) GetResource(ctx context.Context, resourceGroupName string, name string) (result Lab, err error)
GetResource get lab. Parameters: resourceGroupName - the name of the resource group. name - the name of the lab.
func (client LabClient) GetResourcePreparer(ctx context.Context, resourceGroupName string, name string) (*http.Request, error)
GetResourcePreparer prepares the GetResource request.
func (client LabClient) GetResourceResponder(resp *http.Response) (result Lab, err error)
GetResourceResponder handles the response to the GetResource request. The method always closes the http.Response Body.
func (client LabClient) GetResourceSender(req *http.Request) (*http.Response, error)
GetResourceSender sends the GetResource request. The method will close the http.Response Body if it receives an error.
func (client LabClient) ListByResourceGroup(ctx context.Context, resourceGroupName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationLabPage, err error)
ListByResourceGroup list labs. Parameters: resourceGroupName - the name of the resource group. filter - the filter to apply on the operation.
func (client LabClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationLabIterator, err error)
ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
func (client LabClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string, filter string, top *int32, orderBy string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (client LabClient) ListByResourceGroupResponder(resp *http.Response) (result ResponseWithContinuationLab, err error)
ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.
func (client LabClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.
func (client LabClient) ListBySubscription(ctx context.Context, filter string, top *int32, orderBy string) (result ResponseWithContinuationLabPage, err error)
ListBySubscription list labs. Parameters: filter - the filter to apply on the operation.
func (client LabClient) ListBySubscriptionComplete(ctx context.Context, filter string, top *int32, orderBy string) (result ResponseWithContinuationLabIterator, err error)
ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required.
func (client LabClient) ListBySubscriptionPreparer(ctx context.Context, filter string, top *int32, orderBy string) (*http.Request, error)
ListBySubscriptionPreparer prepares the ListBySubscription request.
func (client LabClient) ListBySubscriptionResponder(resp *http.Response) (result ResponseWithContinuationLab, err error)
ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.
func (client LabClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)
ListBySubscriptionSender sends the ListBySubscription request. The method will close the http.Response Body if it receives an error.
func (client LabClient) ListVhds(ctx context.Context, resourceGroupName string, name string) (result ResponseWithContinuationLabVhdPage, err error)
ListVhds list disk images available for custom image creation. Parameters: resourceGroupName - the name of the resource group. name - the name of the lab.
func (client LabClient) ListVhdsComplete(ctx context.Context, resourceGroupName string, name string) (result ResponseWithContinuationLabVhdIterator, err error)
ListVhdsComplete enumerates all values, automatically crossing page boundaries as required.
func (client LabClient) ListVhdsPreparer(ctx context.Context, resourceGroupName string, name string) (*http.Request, error)
ListVhdsPreparer prepares the ListVhds request.
func (client LabClient) ListVhdsResponder(resp *http.Response) (result ResponseWithContinuationLabVhd, err error)
ListVhdsResponder handles the response to the ListVhds request. The method always closes the http.Response Body.
func (client LabClient) ListVhdsSender(req *http.Request) (*http.Response, error)
ListVhdsSender sends the ListVhds request. The method will close the http.Response Body if it receives an error.
func (client LabClient) PatchResource(ctx context.Context, resourceGroupName string, name string, lab Lab) (result Lab, err error)
PatchResource modify properties of labs. Parameters: resourceGroupName - the name of the resource group. name - the name of the lab.
func (client LabClient) PatchResourcePreparer(ctx context.Context, resourceGroupName string, name string, lab Lab) (*http.Request, error)
PatchResourcePreparer prepares the PatchResource request.
func (client LabClient) PatchResourceResponder(resp *http.Response) (result Lab, err error)
PatchResourceResponder handles the response to the PatchResource request. The method always closes the http.Response Body.
func (client LabClient) PatchResourceSender(req *http.Request) (*http.Response, error)
PatchResourceSender sends the PatchResource request. The method will close the http.Response Body if it receives an error.
LabCreateEnvironmentFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type LabCreateEnvironmentFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(LabClient) (autorest.Response, error) }
func (future *LabCreateEnvironmentFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
LabCreateOrUpdateResourceFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type LabCreateOrUpdateResourceFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(LabClient) (Lab, error) }
func (future *LabCreateOrUpdateResourceFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
LabDeleteResourceFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type LabDeleteResourceFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(LabClient) (autorest.Response, error) }
func (future *LabDeleteResourceFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
LabProperties properties of a lab.
type LabProperties struct { // DefaultStorageAccount - The lab's default storage account. DefaultStorageAccount *string `json:"defaultStorageAccount,omitempty"` // ArtifactsStorageAccount - The artifact storage account of the lab. ArtifactsStorageAccount *string `json:"artifactsStorageAccount,omitempty"` // StorageAccounts - The storage accounts of the lab. StorageAccounts *[]string `json:"storageAccounts,omitempty"` // VaultName - The name of the key vault of the lab. VaultName *string `json:"vaultName,omitempty"` // LabStorageType - The type of the lab storage. Possible values include: 'Standard', 'Premium' LabStorageType LabStorageType `json:"labStorageType,omitempty"` // DefaultVirtualNetworkID - The default virtual network identifier of the lab. DefaultVirtualNetworkID *string `json:"defaultVirtualNetworkId,omitempty"` // CreatedDate - The creation date of the lab. CreatedDate *date.Time `json:"createdDate,omitempty"` // ProvisioningState - The provisioning status of the resource. ProvisioningState *string `json:"provisioningState,omitempty"` }
LabStorageType enumerates the values for lab storage type.
type LabStorageType string
const ( // Premium ... Premium LabStorageType = "Premium" // Standard ... Standard LabStorageType = "Standard" )
func PossibleLabStorageTypeValues() []LabStorageType
PossibleLabStorageTypeValues returns an array of possible values for the LabStorageType const type.
LabVhd properties of a VHD in the lab.
type LabVhd struct { // ID - The absolute URI of the VHD. ID *string `json:"id,omitempty"` }
LabVirtualMachine a virtual machine.
type LabVirtualMachine struct { autorest.Response `json:"-"` // LabVirtualMachineProperties - The properties of the resource. *LabVirtualMachineProperties `json:"properties,omitempty"` // ID - The identifier of the resource. ID *string `json:"id,omitempty"` // Name - The name of the resource. Name *string `json:"name,omitempty"` // Type - The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` // Tags - The tags of the resource. Tags map[string]*string `json:"tags"` }
func (lvm LabVirtualMachine) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for LabVirtualMachine.
func (lvm *LabVirtualMachine) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for LabVirtualMachine struct.
LabVirtualMachineProperties properties of a virtual machine.
type LabVirtualMachineProperties struct { // Notes - The notes of the virtual machine. Notes *string `json:"notes,omitempty"` // OwnerObjectID - The object identifier of the owner of the virtual machine. OwnerObjectID *string `json:"ownerObjectId,omitempty"` // CreatedByUserID - The object identifier of the creator of the virtual machine. CreatedByUserID *string `json:"createdByUserId,omitempty"` // CreatedByUser - The email address of creator of the virtual machine. CreatedByUser *string `json:"createdByUser,omitempty"` // ComputeID - The resource identifier (Microsoft.Compute) of the virtual machine. ComputeID *string `json:"computeId,omitempty"` // CustomImageID - The custom image identifier of the virtual machine. CustomImageID *string `json:"customImageId,omitempty"` // OsType - The OS type of the virtual machine. OsType *string `json:"osType,omitempty"` // Size - The size of the virtual machine. Size *string `json:"size,omitempty"` // UserName - The user name of the virtual machine. UserName *string `json:"userName,omitempty"` // Password - The password of the virtual machine administrator. Password *string `json:"password,omitempty"` // SSHKey - The SSH key of the virtual machine administrator. SSHKey *string `json:"sshKey,omitempty"` // IsAuthenticationWithSSHKey - A value indicating whether this virtual machine uses an SSH key for authentication. IsAuthenticationWithSSHKey *bool `json:"isAuthenticationWithSshKey,omitempty"` // Fqdn - The fully-qualified domain name of the virtual machine. Fqdn *string `json:"fqdn,omitempty"` // LabSubnetName - The lab subnet name of the virtual machine. LabSubnetName *string `json:"labSubnetName,omitempty"` // LabVirtualNetworkID - The lab virtual network identifier of the virtual machine. LabVirtualNetworkID *string `json:"labVirtualNetworkId,omitempty"` // DisallowPublicIPAddress - Indicates whether the virtual machine is to be created without a public IP address. DisallowPublicIPAddress *bool `json:"disallowPublicIpAddress,omitempty"` // Artifacts - The artifacts to be installed on the virtual machine. Artifacts *[]ArtifactInstallProperties `json:"artifacts,omitempty"` // ArtifactDeploymentStatus - The artifact deployment status for the virtual machine. ArtifactDeploymentStatus *ArtifactDeploymentStatusProperties `json:"artifactDeploymentStatus,omitempty"` // GalleryImageReference - The Microsoft Azure Marketplace image reference of the virtual machine. GalleryImageReference *GalleryImageReference `json:"galleryImageReference,omitempty"` // ProvisioningState - The provisioning status of the resource. ProvisioningState *string `json:"provisioningState,omitempty"` }
LinuxOsInfo information about a Linux OS.
type LinuxOsInfo struct { // LinuxOsState - The state of the Linux OS. Possible values include: 'NonDeprovisioned', 'DeprovisionRequested', 'DeprovisionApplied' LinuxOsState LinuxOsState `json:"linuxOsState,omitempty"` }
LinuxOsState enumerates the values for linux os state.
type LinuxOsState string
const ( // DeprovisionApplied ... DeprovisionApplied LinuxOsState = "DeprovisionApplied" // DeprovisionRequested ... DeprovisionRequested LinuxOsState = "DeprovisionRequested" // NonDeprovisioned ... NonDeprovisioned LinuxOsState = "NonDeprovisioned" )
func PossibleLinuxOsStateValues() []LinuxOsState
PossibleLinuxOsStateValues returns an array of possible values for the LinuxOsState const type.
ParameterInfo ...
type ParameterInfo struct { Name *string `json:"name,omitempty"` Value *string `json:"value,omitempty"` }
Policy a Policy.
type Policy struct { autorest.Response `json:"-"` // PolicyProperties - The properties of the resource. *PolicyProperties `json:"properties,omitempty"` // ID - The identifier of the resource. ID *string `json:"id,omitempty"` // Name - The name of the resource. Name *string `json:"name,omitempty"` // Type - The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` // Tags - The tags of the resource. Tags map[string]*string `json:"tags"` }
func (p Policy) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Policy.
func (p *Policy) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for Policy struct.
PolicyClient is the azure DevTest Labs REST API version 2015-05-21-preview.
type PolicyClient struct { BaseClient }
func NewPolicyClient(subscriptionID string) PolicyClient
NewPolicyClient creates an instance of the PolicyClient client.
func NewPolicyClientWithBaseURI(baseURI string, subscriptionID string) PolicyClient
NewPolicyClientWithBaseURI creates an instance of the PolicyClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client PolicyClient) CreateOrUpdateResource(ctx context.Context, resourceGroupName string, labName string, policySetName string, name string, policy Policy) (result Policy, err error)
CreateOrUpdateResource create or replace an existing policy. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. policySetName - the name of the policy set. name - the name of the policy.
func (client PolicyClient) CreateOrUpdateResourcePreparer(ctx context.Context, resourceGroupName string, labName string, policySetName string, name string, policy Policy) (*http.Request, error)
CreateOrUpdateResourcePreparer prepares the CreateOrUpdateResource request.
func (client PolicyClient) CreateOrUpdateResourceResponder(resp *http.Response) (result Policy, err error)
CreateOrUpdateResourceResponder handles the response to the CreateOrUpdateResource request. The method always closes the http.Response Body.
func (client PolicyClient) CreateOrUpdateResourceSender(req *http.Request) (*http.Response, error)
CreateOrUpdateResourceSender sends the CreateOrUpdateResource request. The method will close the http.Response Body if it receives an error.
func (client PolicyClient) DeleteResource(ctx context.Context, resourceGroupName string, labName string, policySetName string, name string) (result autorest.Response, err error)
DeleteResource delete policy. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. policySetName - the name of the policy set. name - the name of the policy.
func (client PolicyClient) DeleteResourcePreparer(ctx context.Context, resourceGroupName string, labName string, policySetName string, name string) (*http.Request, error)
DeleteResourcePreparer prepares the DeleteResource request.
func (client PolicyClient) DeleteResourceResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResourceResponder handles the response to the DeleteResource request. The method always closes the http.Response Body.
func (client PolicyClient) DeleteResourceSender(req *http.Request) (*http.Response, error)
DeleteResourceSender sends the DeleteResource request. The method will close the http.Response Body if it receives an error.
func (client PolicyClient) GetResource(ctx context.Context, resourceGroupName string, labName string, policySetName string, name string) (result Policy, err error)
GetResource get policy. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. policySetName - the name of the policy set. name - the name of the policy.
func (client PolicyClient) GetResourcePreparer(ctx context.Context, resourceGroupName string, labName string, policySetName string, name string) (*http.Request, error)
GetResourcePreparer prepares the GetResource request.
func (client PolicyClient) GetResourceResponder(resp *http.Response) (result Policy, err error)
GetResourceResponder handles the response to the GetResource request. The method always closes the http.Response Body.
func (client PolicyClient) GetResourceSender(req *http.Request) (*http.Response, error)
GetResourceSender sends the GetResource request. The method will close the http.Response Body if it receives an error.
func (client PolicyClient) List(ctx context.Context, resourceGroupName string, labName string, policySetName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationPolicyPage, err error)
List list policies. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. policySetName - the name of the policy set. filter - the filter to apply on the operation.
func (client PolicyClient) ListComplete(ctx context.Context, resourceGroupName string, labName string, policySetName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationPolicyIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client PolicyClient) ListPreparer(ctx context.Context, resourceGroupName string, labName string, policySetName string, filter string, top *int32, orderBy string) (*http.Request, error)
ListPreparer prepares the List request.
func (client PolicyClient) ListResponder(resp *http.Response) (result ResponseWithContinuationPolicy, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (client PolicyClient) ListSender(req *http.Request) (*http.Response, error)
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
func (client PolicyClient) PatchResource(ctx context.Context, resourceGroupName string, labName string, policySetName string, name string, policy Policy) (result Policy, err error)
PatchResource modify properties of policies. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. policySetName - the name of the policy set. name - the name of the policy.
func (client PolicyClient) PatchResourcePreparer(ctx context.Context, resourceGroupName string, labName string, policySetName string, name string, policy Policy) (*http.Request, error)
PatchResourcePreparer prepares the PatchResource request.
func (client PolicyClient) PatchResourceResponder(resp *http.Response) (result Policy, err error)
PatchResourceResponder handles the response to the PatchResource request. The method always closes the http.Response Body.
func (client PolicyClient) PatchResourceSender(req *http.Request) (*http.Response, error)
PatchResourceSender sends the PatchResource request. The method will close the http.Response Body if it receives an error.
PolicyEvaluatorType enumerates the values for policy evaluator type.
type PolicyEvaluatorType string
const ( // AllowedValuesPolicy ... AllowedValuesPolicy PolicyEvaluatorType = "AllowedValuesPolicy" // MaxValuePolicy ... MaxValuePolicy PolicyEvaluatorType = "MaxValuePolicy" )
func PossiblePolicyEvaluatorTypeValues() []PolicyEvaluatorType
PossiblePolicyEvaluatorTypeValues returns an array of possible values for the PolicyEvaluatorType const type.
PolicyFactName enumerates the values for policy fact name.
type PolicyFactName string
const ( // PolicyFactNameGalleryImage ... PolicyFactNameGalleryImage PolicyFactName = "GalleryImage" // PolicyFactNameLabVMCount ... PolicyFactNameLabVMCount PolicyFactName = "LabVmCount" // PolicyFactNameLabVMSize ... PolicyFactNameLabVMSize PolicyFactName = "LabVmSize" // PolicyFactNameUserOwnedLabVMCount ... PolicyFactNameUserOwnedLabVMCount PolicyFactName = "UserOwnedLabVmCount" // PolicyFactNameUserOwnedLabVMCountInSubnet ... PolicyFactNameUserOwnedLabVMCountInSubnet PolicyFactName = "UserOwnedLabVmCountInSubnet" )
func PossiblePolicyFactNameValues() []PolicyFactName
PossiblePolicyFactNameValues returns an array of possible values for the PolicyFactName const type.
PolicyProperties properties of a Policy.
type PolicyProperties struct { // Description - The description of the policy. Description *string `json:"description,omitempty"` // Status - The status of the policy. Possible values include: 'PolicyStatusEnabled', 'PolicyStatusDisabled' Status PolicyStatus `json:"status,omitempty"` // FactName - The fact name of the policy. Possible values include: 'PolicyFactNameUserOwnedLabVMCount', 'PolicyFactNameLabVMCount', 'PolicyFactNameLabVMSize', 'PolicyFactNameGalleryImage', 'PolicyFactNameUserOwnedLabVMCountInSubnet' FactName PolicyFactName `json:"factName,omitempty"` // FactData - The fact data of the policy. FactData *string `json:"factData,omitempty"` // Threshold - The threshold of the policy. Threshold *string `json:"threshold,omitempty"` // EvaluatorType - The evaluator type of the policy. Possible values include: 'AllowedValuesPolicy', 'MaxValuePolicy' EvaluatorType PolicyEvaluatorType `json:"evaluatorType,omitempty"` // ProvisioningState - The provisioning status of the resource. ProvisioningState *string `json:"provisioningState,omitempty"` }
PolicySetClient is the azure DevTest Labs REST API version 2015-05-21-preview.
type PolicySetClient struct { BaseClient }
func NewPolicySetClient(subscriptionID string) PolicySetClient
NewPolicySetClient creates an instance of the PolicySetClient client.
func NewPolicySetClientWithBaseURI(baseURI string, subscriptionID string) PolicySetClient
NewPolicySetClientWithBaseURI creates an instance of the PolicySetClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client PolicySetClient) EvaluatePolicies(ctx context.Context, resourceGroupName string, labName string, name string, evaluatePoliciesRequest EvaluatePoliciesRequest) (result EvaluatePoliciesResponse, err error)
EvaluatePolicies evaluates Lab Policy. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the policy set.
func (client PolicySetClient) EvaluatePoliciesPreparer(ctx context.Context, resourceGroupName string, labName string, name string, evaluatePoliciesRequest EvaluatePoliciesRequest) (*http.Request, error)
EvaluatePoliciesPreparer prepares the EvaluatePolicies request.
func (client PolicySetClient) EvaluatePoliciesResponder(resp *http.Response) (result EvaluatePoliciesResponse, err error)
EvaluatePoliciesResponder handles the response to the EvaluatePolicies request. The method always closes the http.Response Body.
func (client PolicySetClient) EvaluatePoliciesSender(req *http.Request) (*http.Response, error)
EvaluatePoliciesSender sends the EvaluatePolicies request. The method will close the http.Response Body if it receives an error.
PolicySetResult result of a policy set evaluation.
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"` }
PolicyStatus enumerates the values for policy status.
type PolicyStatus string
const ( // PolicyStatusDisabled ... PolicyStatusDisabled PolicyStatus = "Disabled" // PolicyStatusEnabled ... PolicyStatusEnabled PolicyStatus = "Enabled" )
func PossiblePolicyStatusValues() []PolicyStatus
PossiblePolicyStatusValues returns an array of possible values for the PolicyStatus const type.
PolicyViolation policy violation.
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"` }
ResponseWithContinuationArtifact the response of a list operation.
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"` }
func (rwcA ResponseWithContinuationArtifact) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
ResponseWithContinuationArtifactIterator provides access to a complete listing of Artifact values.
type ResponseWithContinuationArtifactIterator struct {
// contains filtered or unexported fields
}
func NewResponseWithContinuationArtifactIterator(page ResponseWithContinuationArtifactPage) ResponseWithContinuationArtifactIterator
Creates a new instance of the ResponseWithContinuationArtifactIterator type.
func (iter *ResponseWithContinuationArtifactIterator) 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 (iter *ResponseWithContinuationArtifactIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (iter ResponseWithContinuationArtifactIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter ResponseWithContinuationArtifactIterator) Response() ResponseWithContinuationArtifact
Response returns the raw server response from the last page request.
func (iter ResponseWithContinuationArtifactIterator) Value() Artifact
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
ResponseWithContinuationArtifactPage contains a page of Artifact values.
type ResponseWithContinuationArtifactPage struct {
// contains filtered or unexported fields
}
func NewResponseWithContinuationArtifactPage(cur ResponseWithContinuationArtifact, getNextPage func(context.Context, ResponseWithContinuationArtifact) (ResponseWithContinuationArtifact, error)) ResponseWithContinuationArtifactPage
Creates a new instance of the ResponseWithContinuationArtifactPage type.
func (page *ResponseWithContinuationArtifactPage) 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 (page *ResponseWithContinuationArtifactPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (page ResponseWithContinuationArtifactPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page ResponseWithContinuationArtifactPage) Response() ResponseWithContinuationArtifact
Response returns the raw server response from the last page request.
func (page ResponseWithContinuationArtifactPage) Values() []Artifact
Values returns the slice of values for the current page or nil if there are no values.
ResponseWithContinuationArtifactSource the response of a list operation.
type ResponseWithContinuationArtifactSource struct { autorest.Response `json:"-"` // Value - Results of the list operation. Value *[]ArtifactSource `json:"value,omitempty"` // NextLink - Link for next set of results. NextLink *string `json:"nextLink,omitempty"` }
func (rwcAs ResponseWithContinuationArtifactSource) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
ResponseWithContinuationArtifactSourceIterator provides access to a complete listing of ArtifactSource values.
type ResponseWithContinuationArtifactSourceIterator struct {
// contains filtered or unexported fields
}
func NewResponseWithContinuationArtifactSourceIterator(page ResponseWithContinuationArtifactSourcePage) ResponseWithContinuationArtifactSourceIterator
Creates a new instance of the ResponseWithContinuationArtifactSourceIterator type.
func (iter *ResponseWithContinuationArtifactSourceIterator) 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 (iter *ResponseWithContinuationArtifactSourceIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (iter ResponseWithContinuationArtifactSourceIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter ResponseWithContinuationArtifactSourceIterator) Response() ResponseWithContinuationArtifactSource
Response returns the raw server response from the last page request.
func (iter ResponseWithContinuationArtifactSourceIterator) Value() ArtifactSource
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
ResponseWithContinuationArtifactSourcePage contains a page of ArtifactSource values.
type ResponseWithContinuationArtifactSourcePage struct {
// contains filtered or unexported fields
}
func NewResponseWithContinuationArtifactSourcePage(cur ResponseWithContinuationArtifactSource, getNextPage func(context.Context, ResponseWithContinuationArtifactSource) (ResponseWithContinuationArtifactSource, error)) ResponseWithContinuationArtifactSourcePage
Creates a new instance of the ResponseWithContinuationArtifactSourcePage type.
func (page *ResponseWithContinuationArtifactSourcePage) 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 (page *ResponseWithContinuationArtifactSourcePage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (page ResponseWithContinuationArtifactSourcePage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page ResponseWithContinuationArtifactSourcePage) Response() ResponseWithContinuationArtifactSource
Response returns the raw server response from the last page request.
func (page ResponseWithContinuationArtifactSourcePage) Values() []ArtifactSource
Values returns the slice of values for the current page or nil if there are no values.
ResponseWithContinuationCost the response of a list operation.
type ResponseWithContinuationCost struct { autorest.Response `json:"-"` // Value - Results of the list operation. Value *[]Cost `json:"value,omitempty"` // NextLink - Link for next set of results. NextLink *string `json:"nextLink,omitempty"` }
func (rwcC ResponseWithContinuationCost) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
ResponseWithContinuationCostInsight the response of a list operation.
type ResponseWithContinuationCostInsight struct { autorest.Response `json:"-"` // Value - Results of the list operation. Value *[]CostInsight `json:"value,omitempty"` // NextLink - Link for next set of results. NextLink *string `json:"nextLink,omitempty"` }
func (rwcCi ResponseWithContinuationCostInsight) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
ResponseWithContinuationCostInsightIterator provides access to a complete listing of CostInsight values.
type ResponseWithContinuationCostInsightIterator struct {
// contains filtered or unexported fields
}
func NewResponseWithContinuationCostInsightIterator(page ResponseWithContinuationCostInsightPage) ResponseWithContinuationCostInsightIterator
Creates a new instance of the ResponseWithContinuationCostInsightIterator type.
func (iter *ResponseWithContinuationCostInsightIterator) 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 (iter *ResponseWithContinuationCostInsightIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (iter ResponseWithContinuationCostInsightIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter ResponseWithContinuationCostInsightIterator) Response() ResponseWithContinuationCostInsight
Response returns the raw server response from the last page request.
func (iter ResponseWithContinuationCostInsightIterator) Value() CostInsight
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
ResponseWithContinuationCostInsightPage contains a page of CostInsight values.
type ResponseWithContinuationCostInsightPage struct {
// contains filtered or unexported fields
}
func NewResponseWithContinuationCostInsightPage(cur ResponseWithContinuationCostInsight, getNextPage func(context.Context, ResponseWithContinuationCostInsight) (ResponseWithContinuationCostInsight, error)) ResponseWithContinuationCostInsightPage
Creates a new instance of the ResponseWithContinuationCostInsightPage type.
func (page *ResponseWithContinuationCostInsightPage) 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 (page *ResponseWithContinuationCostInsightPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (page ResponseWithContinuationCostInsightPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page ResponseWithContinuationCostInsightPage) Response() ResponseWithContinuationCostInsight
Response returns the raw server response from the last page request.
func (page ResponseWithContinuationCostInsightPage) Values() []CostInsight
Values returns the slice of values for the current page or nil if there are no values.
ResponseWithContinuationCostIterator provides access to a complete listing of Cost values.
type ResponseWithContinuationCostIterator struct {
// contains filtered or unexported fields
}
func NewResponseWithContinuationCostIterator(page ResponseWithContinuationCostPage) ResponseWithContinuationCostIterator
Creates a new instance of the ResponseWithContinuationCostIterator type.
func (iter *ResponseWithContinuationCostIterator) 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 (iter *ResponseWithContinuationCostIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (iter ResponseWithContinuationCostIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter ResponseWithContinuationCostIterator) Response() ResponseWithContinuationCost
Response returns the raw server response from the last page request.
func (iter ResponseWithContinuationCostIterator) Value() Cost
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
ResponseWithContinuationCostPage contains a page of Cost values.
type ResponseWithContinuationCostPage struct {
// contains filtered or unexported fields
}
func NewResponseWithContinuationCostPage(cur ResponseWithContinuationCost, getNextPage func(context.Context, ResponseWithContinuationCost) (ResponseWithContinuationCost, error)) ResponseWithContinuationCostPage
Creates a new instance of the ResponseWithContinuationCostPage type.
func (page *ResponseWithContinuationCostPage) 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 (page *ResponseWithContinuationCostPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (page ResponseWithContinuationCostPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page ResponseWithContinuationCostPage) Response() ResponseWithContinuationCost
Response returns the raw server response from the last page request.
func (page ResponseWithContinuationCostPage) Values() []Cost
Values returns the slice of values for the current page or nil if there are no values.
ResponseWithContinuationCustomImage the response of a list operation.
type ResponseWithContinuationCustomImage struct { autorest.Response `json:"-"` // Value - Results of the list operation. Value *[]CustomImage `json:"value,omitempty"` // NextLink - Link for next set of results. NextLink *string `json:"nextLink,omitempty"` }
func (rwcCi ResponseWithContinuationCustomImage) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
ResponseWithContinuationCustomImageIterator provides access to a complete listing of CustomImage values.
type ResponseWithContinuationCustomImageIterator struct {
// contains filtered or unexported fields
}
func NewResponseWithContinuationCustomImageIterator(page ResponseWithContinuationCustomImagePage) ResponseWithContinuationCustomImageIterator
Creates a new instance of the ResponseWithContinuationCustomImageIterator type.
func (iter *ResponseWithContinuationCustomImageIterator) 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 (iter *ResponseWithContinuationCustomImageIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (iter ResponseWithContinuationCustomImageIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter ResponseWithContinuationCustomImageIterator) Response() ResponseWithContinuationCustomImage
Response returns the raw server response from the last page request.
func (iter ResponseWithContinuationCustomImageIterator) Value() CustomImage
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
ResponseWithContinuationCustomImagePage contains a page of CustomImage values.
type ResponseWithContinuationCustomImagePage struct {
// contains filtered or unexported fields
}
func NewResponseWithContinuationCustomImagePage(cur ResponseWithContinuationCustomImage, getNextPage func(context.Context, ResponseWithContinuationCustomImage) (ResponseWithContinuationCustomImage, error)) ResponseWithContinuationCustomImagePage
Creates a new instance of the ResponseWithContinuationCustomImagePage type.
func (page *ResponseWithContinuationCustomImagePage) 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 (page *ResponseWithContinuationCustomImagePage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (page ResponseWithContinuationCustomImagePage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page ResponseWithContinuationCustomImagePage) Response() ResponseWithContinuationCustomImage
Response returns the raw server response from the last page request.
func (page ResponseWithContinuationCustomImagePage) Values() []CustomImage
Values returns the slice of values for the current page or nil if there are no values.
ResponseWithContinuationFormula the response of a list operation.
type ResponseWithContinuationFormula struct { autorest.Response `json:"-"` // Value - Results of the list operation. Value *[]Formula `json:"value,omitempty"` // NextLink - Link for next set of results. NextLink *string `json:"nextLink,omitempty"` }
func (rwcF ResponseWithContinuationFormula) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
ResponseWithContinuationFormulaIterator provides access to a complete listing of Formula values.
type ResponseWithContinuationFormulaIterator struct {
// contains filtered or unexported fields
}
func NewResponseWithContinuationFormulaIterator(page ResponseWithContinuationFormulaPage) ResponseWithContinuationFormulaIterator
Creates a new instance of the ResponseWithContinuationFormulaIterator type.
func (iter *ResponseWithContinuationFormulaIterator) 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 (iter *ResponseWithContinuationFormulaIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (iter ResponseWithContinuationFormulaIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter ResponseWithContinuationFormulaIterator) Response() ResponseWithContinuationFormula
Response returns the raw server response from the last page request.
func (iter ResponseWithContinuationFormulaIterator) Value() Formula
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
ResponseWithContinuationFormulaPage contains a page of Formula values.
type ResponseWithContinuationFormulaPage struct {
// contains filtered or unexported fields
}
func NewResponseWithContinuationFormulaPage(cur ResponseWithContinuationFormula, getNextPage func(context.Context, ResponseWithContinuationFormula) (ResponseWithContinuationFormula, error)) ResponseWithContinuationFormulaPage
Creates a new instance of the ResponseWithContinuationFormulaPage type.
func (page *ResponseWithContinuationFormulaPage) 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 (page *ResponseWithContinuationFormulaPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (page ResponseWithContinuationFormulaPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page ResponseWithContinuationFormulaPage) Response() ResponseWithContinuationFormula
Response returns the raw server response from the last page request.
func (page ResponseWithContinuationFormulaPage) Values() []Formula
Values returns the slice of values for the current page or nil if there are no values.
ResponseWithContinuationGalleryImage the response of a list operation.
type ResponseWithContinuationGalleryImage struct { autorest.Response `json:"-"` // Value - Results of the list operation. Value *[]GalleryImage `json:"value,omitempty"` // NextLink - Link for next set of results. NextLink *string `json:"nextLink,omitempty"` }
func (rwcGi ResponseWithContinuationGalleryImage) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
ResponseWithContinuationGalleryImageIterator provides access to a complete listing of GalleryImage values.
type ResponseWithContinuationGalleryImageIterator struct {
// contains filtered or unexported fields
}
func NewResponseWithContinuationGalleryImageIterator(page ResponseWithContinuationGalleryImagePage) ResponseWithContinuationGalleryImageIterator
Creates a new instance of the ResponseWithContinuationGalleryImageIterator type.
func (iter *ResponseWithContinuationGalleryImageIterator) 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 (iter *ResponseWithContinuationGalleryImageIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (iter ResponseWithContinuationGalleryImageIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter ResponseWithContinuationGalleryImageIterator) Response() ResponseWithContinuationGalleryImage
Response returns the raw server response from the last page request.
func (iter ResponseWithContinuationGalleryImageIterator) Value() GalleryImage
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
ResponseWithContinuationGalleryImagePage contains a page of GalleryImage values.
type ResponseWithContinuationGalleryImagePage struct {
// contains filtered or unexported fields
}
func NewResponseWithContinuationGalleryImagePage(cur ResponseWithContinuationGalleryImage, getNextPage func(context.Context, ResponseWithContinuationGalleryImage) (ResponseWithContinuationGalleryImage, error)) ResponseWithContinuationGalleryImagePage
Creates a new instance of the ResponseWithContinuationGalleryImagePage type.
func (page *ResponseWithContinuationGalleryImagePage) 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 (page *ResponseWithContinuationGalleryImagePage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (page ResponseWithContinuationGalleryImagePage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page ResponseWithContinuationGalleryImagePage) Response() ResponseWithContinuationGalleryImage
Response returns the raw server response from the last page request.
func (page ResponseWithContinuationGalleryImagePage) Values() []GalleryImage
Values returns the slice of values for the current page or nil if there are no values.
ResponseWithContinuationLab the response of a list operation.
type ResponseWithContinuationLab struct { autorest.Response `json:"-"` // Value - Results of the list operation. Value *[]Lab `json:"value,omitempty"` // NextLink - Link for next set of results. NextLink *string `json:"nextLink,omitempty"` }
func (rwcL ResponseWithContinuationLab) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
ResponseWithContinuationLabIterator provides access to a complete listing of Lab values.
type ResponseWithContinuationLabIterator struct {
// contains filtered or unexported fields
}
func NewResponseWithContinuationLabIterator(page ResponseWithContinuationLabPage) ResponseWithContinuationLabIterator
Creates a new instance of the ResponseWithContinuationLabIterator type.
func (iter *ResponseWithContinuationLabIterator) 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 (iter *ResponseWithContinuationLabIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (iter ResponseWithContinuationLabIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter ResponseWithContinuationLabIterator) Response() ResponseWithContinuationLab
Response returns the raw server response from the last page request.
func (iter ResponseWithContinuationLabIterator) Value() Lab
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
ResponseWithContinuationLabPage contains a page of Lab values.
type ResponseWithContinuationLabPage struct {
// contains filtered or unexported fields
}
func NewResponseWithContinuationLabPage(cur ResponseWithContinuationLab, getNextPage func(context.Context, ResponseWithContinuationLab) (ResponseWithContinuationLab, error)) ResponseWithContinuationLabPage
Creates a new instance of the ResponseWithContinuationLabPage type.
func (page *ResponseWithContinuationLabPage) 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 (page *ResponseWithContinuationLabPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (page ResponseWithContinuationLabPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page ResponseWithContinuationLabPage) Response() ResponseWithContinuationLab
Response returns the raw server response from the last page request.
func (page ResponseWithContinuationLabPage) Values() []Lab
Values returns the slice of values for the current page or nil if there are no values.
ResponseWithContinuationLabVhd the response of a list operation.
type ResponseWithContinuationLabVhd struct { autorest.Response `json:"-"` // Value - Results of the list operation. Value *[]LabVhd `json:"value,omitempty"` // NextLink - Link for next set of results. NextLink *string `json:"nextLink,omitempty"` }
func (rwcLv ResponseWithContinuationLabVhd) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
ResponseWithContinuationLabVhdIterator provides access to a complete listing of LabVhd values.
type ResponseWithContinuationLabVhdIterator struct {
// contains filtered or unexported fields
}
func NewResponseWithContinuationLabVhdIterator(page ResponseWithContinuationLabVhdPage) ResponseWithContinuationLabVhdIterator
Creates a new instance of the ResponseWithContinuationLabVhdIterator type.
func (iter *ResponseWithContinuationLabVhdIterator) 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 (iter *ResponseWithContinuationLabVhdIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (iter ResponseWithContinuationLabVhdIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter ResponseWithContinuationLabVhdIterator) Response() ResponseWithContinuationLabVhd
Response returns the raw server response from the last page request.
func (iter ResponseWithContinuationLabVhdIterator) Value() LabVhd
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
ResponseWithContinuationLabVhdPage contains a page of LabVhd values.
type ResponseWithContinuationLabVhdPage struct {
// contains filtered or unexported fields
}
func NewResponseWithContinuationLabVhdPage(cur ResponseWithContinuationLabVhd, getNextPage func(context.Context, ResponseWithContinuationLabVhd) (ResponseWithContinuationLabVhd, error)) ResponseWithContinuationLabVhdPage
Creates a new instance of the ResponseWithContinuationLabVhdPage type.
func (page *ResponseWithContinuationLabVhdPage) 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 (page *ResponseWithContinuationLabVhdPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (page ResponseWithContinuationLabVhdPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page ResponseWithContinuationLabVhdPage) Response() ResponseWithContinuationLabVhd
Response returns the raw server response from the last page request.
func (page ResponseWithContinuationLabVhdPage) Values() []LabVhd
Values returns the slice of values for the current page or nil if there are no values.
ResponseWithContinuationLabVirtualMachine the response of a list operation.
type ResponseWithContinuationLabVirtualMachine struct { autorest.Response `json:"-"` // Value - Results of the list operation. Value *[]LabVirtualMachine `json:"value,omitempty"` // NextLink - Link for next set of results. NextLink *string `json:"nextLink,omitempty"` }
func (rwcLvm ResponseWithContinuationLabVirtualMachine) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
ResponseWithContinuationLabVirtualMachineIterator provides access to a complete listing of LabVirtualMachine values.
type ResponseWithContinuationLabVirtualMachineIterator struct {
// contains filtered or unexported fields
}
func NewResponseWithContinuationLabVirtualMachineIterator(page ResponseWithContinuationLabVirtualMachinePage) ResponseWithContinuationLabVirtualMachineIterator
Creates a new instance of the ResponseWithContinuationLabVirtualMachineIterator type.
func (iter *ResponseWithContinuationLabVirtualMachineIterator) 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 (iter *ResponseWithContinuationLabVirtualMachineIterator) 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 (iter ResponseWithContinuationLabVirtualMachineIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter ResponseWithContinuationLabVirtualMachineIterator) Response() ResponseWithContinuationLabVirtualMachine
Response returns the raw server response from the last page request.
func (iter ResponseWithContinuationLabVirtualMachineIterator) Value() LabVirtualMachine
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
ResponseWithContinuationLabVirtualMachinePage contains a page of LabVirtualMachine values.
type ResponseWithContinuationLabVirtualMachinePage struct {
// contains filtered or unexported fields
}
func NewResponseWithContinuationLabVirtualMachinePage(cur ResponseWithContinuationLabVirtualMachine, getNextPage func(context.Context, ResponseWithContinuationLabVirtualMachine) (ResponseWithContinuationLabVirtualMachine, error)) ResponseWithContinuationLabVirtualMachinePage
Creates a new instance of the ResponseWithContinuationLabVirtualMachinePage type.
func (page *ResponseWithContinuationLabVirtualMachinePage) 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 (page *ResponseWithContinuationLabVirtualMachinePage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (page ResponseWithContinuationLabVirtualMachinePage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page ResponseWithContinuationLabVirtualMachinePage) Response() ResponseWithContinuationLabVirtualMachine
Response returns the raw server response from the last page request.
func (page ResponseWithContinuationLabVirtualMachinePage) Values() []LabVirtualMachine
Values returns the slice of values for the current page or nil if there are no values.
ResponseWithContinuationPolicy the response of a list operation.
type ResponseWithContinuationPolicy struct { autorest.Response `json:"-"` // Value - Results of the list operation. Value *[]Policy `json:"value,omitempty"` // NextLink - Link for next set of results. NextLink *string `json:"nextLink,omitempty"` }
func (rwcP ResponseWithContinuationPolicy) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
ResponseWithContinuationPolicyIterator provides access to a complete listing of Policy values.
type ResponseWithContinuationPolicyIterator struct {
// contains filtered or unexported fields
}
func NewResponseWithContinuationPolicyIterator(page ResponseWithContinuationPolicyPage) ResponseWithContinuationPolicyIterator
Creates a new instance of the ResponseWithContinuationPolicyIterator type.
func (iter *ResponseWithContinuationPolicyIterator) 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 (iter *ResponseWithContinuationPolicyIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (iter ResponseWithContinuationPolicyIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter ResponseWithContinuationPolicyIterator) Response() ResponseWithContinuationPolicy
Response returns the raw server response from the last page request.
func (iter ResponseWithContinuationPolicyIterator) Value() Policy
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
ResponseWithContinuationPolicyPage contains a page of Policy values.
type ResponseWithContinuationPolicyPage struct {
// contains filtered or unexported fields
}
func NewResponseWithContinuationPolicyPage(cur ResponseWithContinuationPolicy, getNextPage func(context.Context, ResponseWithContinuationPolicy) (ResponseWithContinuationPolicy, error)) ResponseWithContinuationPolicyPage
Creates a new instance of the ResponseWithContinuationPolicyPage type.
func (page *ResponseWithContinuationPolicyPage) 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 (page *ResponseWithContinuationPolicyPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (page ResponseWithContinuationPolicyPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page ResponseWithContinuationPolicyPage) Response() ResponseWithContinuationPolicy
Response returns the raw server response from the last page request.
func (page ResponseWithContinuationPolicyPage) Values() []Policy
Values returns the slice of values for the current page or nil if there are no values.
ResponseWithContinuationSchedule the response of a list operation.
type ResponseWithContinuationSchedule struct { autorest.Response `json:"-"` // Value - Results of the list operation. Value *[]Schedule `json:"value,omitempty"` // NextLink - Link for next set of results. NextLink *string `json:"nextLink,omitempty"` }
func (rwcS ResponseWithContinuationSchedule) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
ResponseWithContinuationScheduleIterator provides access to a complete listing of Schedule values.
type ResponseWithContinuationScheduleIterator struct {
// contains filtered or unexported fields
}
func NewResponseWithContinuationScheduleIterator(page ResponseWithContinuationSchedulePage) ResponseWithContinuationScheduleIterator
Creates a new instance of the ResponseWithContinuationScheduleIterator type.
func (iter *ResponseWithContinuationScheduleIterator) 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 (iter *ResponseWithContinuationScheduleIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (iter ResponseWithContinuationScheduleIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter ResponseWithContinuationScheduleIterator) Response() ResponseWithContinuationSchedule
Response returns the raw server response from the last page request.
func (iter ResponseWithContinuationScheduleIterator) Value() Schedule
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
ResponseWithContinuationSchedulePage contains a page of Schedule values.
type ResponseWithContinuationSchedulePage struct {
// contains filtered or unexported fields
}
func NewResponseWithContinuationSchedulePage(cur ResponseWithContinuationSchedule, getNextPage func(context.Context, ResponseWithContinuationSchedule) (ResponseWithContinuationSchedule, error)) ResponseWithContinuationSchedulePage
Creates a new instance of the ResponseWithContinuationSchedulePage type.
func (page *ResponseWithContinuationSchedulePage) 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 (page *ResponseWithContinuationSchedulePage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (page ResponseWithContinuationSchedulePage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page ResponseWithContinuationSchedulePage) Response() ResponseWithContinuationSchedule
Response returns the raw server response from the last page request.
func (page ResponseWithContinuationSchedulePage) Values() []Schedule
Values returns the slice of values for the current page or nil if there are no values.
ResponseWithContinuationVirtualNetwork the response of a list operation.
type ResponseWithContinuationVirtualNetwork struct { autorest.Response `json:"-"` // Value - Results of the list operation. Value *[]VirtualNetwork `json:"value,omitempty"` // NextLink - Link for next set of results. NextLink *string `json:"nextLink,omitempty"` }
func (rwcVn ResponseWithContinuationVirtualNetwork) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
ResponseWithContinuationVirtualNetworkIterator provides access to a complete listing of VirtualNetwork values.
type ResponseWithContinuationVirtualNetworkIterator struct {
// contains filtered or unexported fields
}
func NewResponseWithContinuationVirtualNetworkIterator(page ResponseWithContinuationVirtualNetworkPage) ResponseWithContinuationVirtualNetworkIterator
Creates a new instance of the ResponseWithContinuationVirtualNetworkIterator type.
func (iter *ResponseWithContinuationVirtualNetworkIterator) 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 (iter *ResponseWithContinuationVirtualNetworkIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (iter ResponseWithContinuationVirtualNetworkIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter ResponseWithContinuationVirtualNetworkIterator) Response() ResponseWithContinuationVirtualNetwork
Response returns the raw server response from the last page request.
func (iter ResponseWithContinuationVirtualNetworkIterator) Value() VirtualNetwork
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
ResponseWithContinuationVirtualNetworkPage contains a page of VirtualNetwork values.
type ResponseWithContinuationVirtualNetworkPage struct {
// contains filtered or unexported fields
}
func NewResponseWithContinuationVirtualNetworkPage(cur ResponseWithContinuationVirtualNetwork, getNextPage func(context.Context, ResponseWithContinuationVirtualNetwork) (ResponseWithContinuationVirtualNetwork, error)) ResponseWithContinuationVirtualNetworkPage
Creates a new instance of the ResponseWithContinuationVirtualNetworkPage type.
func (page *ResponseWithContinuationVirtualNetworkPage) 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 (page *ResponseWithContinuationVirtualNetworkPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (page ResponseWithContinuationVirtualNetworkPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page ResponseWithContinuationVirtualNetworkPage) Response() ResponseWithContinuationVirtualNetwork
Response returns the raw server response from the last page request.
func (page ResponseWithContinuationVirtualNetworkPage) Values() []VirtualNetwork
Values returns the slice of values for the current page or nil if there are no values.
Schedule a schedule.
type Schedule struct { autorest.Response `json:"-"` // ScheduleProperties - The properties of the resource. *ScheduleProperties `json:"properties,omitempty"` // ID - The identifier of the resource. ID *string `json:"id,omitempty"` // Name - The name of the resource. Name *string `json:"name,omitempty"` // Type - The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` // Tags - The tags of the resource. Tags map[string]*string `json:"tags"` }
func (s Schedule) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Schedule.
func (s *Schedule) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for Schedule struct.
ScheduleClient is the azure DevTest Labs REST API version 2015-05-21-preview.
type ScheduleClient struct { BaseClient }
func NewScheduleClient(subscriptionID string) ScheduleClient
NewScheduleClient creates an instance of the ScheduleClient client.
func NewScheduleClientWithBaseURI(baseURI string, subscriptionID string) ScheduleClient
NewScheduleClientWithBaseURI creates an instance of the ScheduleClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client ScheduleClient) CreateOrUpdateResource(ctx context.Context, resourceGroupName string, labName string, name string, schedule Schedule) (result ScheduleCreateOrUpdateResourceFuture, err error)
CreateOrUpdateResource create or replace an existing schedule. This operation can take a while to complete. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the schedule.
func (client ScheduleClient) CreateOrUpdateResourcePreparer(ctx context.Context, resourceGroupName string, labName string, name string, schedule Schedule) (*http.Request, error)
CreateOrUpdateResourcePreparer prepares the CreateOrUpdateResource request.
func (client ScheduleClient) CreateOrUpdateResourceResponder(resp *http.Response) (result Schedule, err error)
CreateOrUpdateResourceResponder handles the response to the CreateOrUpdateResource request. The method always closes the http.Response Body.
func (client ScheduleClient) CreateOrUpdateResourceSender(req *http.Request) (future ScheduleCreateOrUpdateResourceFuture, err error)
CreateOrUpdateResourceSender sends the CreateOrUpdateResource request. The method will close the http.Response Body if it receives an error.
func (client ScheduleClient) DeleteResource(ctx context.Context, resourceGroupName string, labName string, name string) (result ScheduleDeleteResourceFuture, err error)
DeleteResource delete schedule. This operation can take a while to complete. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the schedule.
func (client ScheduleClient) DeleteResourcePreparer(ctx context.Context, resourceGroupName string, labName string, name string) (*http.Request, error)
DeleteResourcePreparer prepares the DeleteResource request.
func (client ScheduleClient) DeleteResourceResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResourceResponder handles the response to the DeleteResource request. The method always closes the http.Response Body.
func (client ScheduleClient) DeleteResourceSender(req *http.Request) (future ScheduleDeleteResourceFuture, err error)
DeleteResourceSender sends the DeleteResource request. The method will close the http.Response Body if it receives an error.
func (client ScheduleClient) Execute(ctx context.Context, resourceGroupName string, labName string, name string) (result ScheduleExecuteFuture, err error)
Execute execute a schedule. This operation can take a while to complete. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the schedule.
func (client ScheduleClient) ExecutePreparer(ctx context.Context, resourceGroupName string, labName string, name string) (*http.Request, error)
ExecutePreparer prepares the Execute request.
func (client ScheduleClient) ExecuteResponder(resp *http.Response) (result autorest.Response, err error)
ExecuteResponder handles the response to the Execute request. The method always closes the http.Response Body.
func (client ScheduleClient) ExecuteSender(req *http.Request) (future ScheduleExecuteFuture, err error)
ExecuteSender sends the Execute request. The method will close the http.Response Body if it receives an error.
func (client ScheduleClient) GetResource(ctx context.Context, resourceGroupName string, labName string, name string) (result Schedule, err error)
GetResource get schedule. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the schedule.
func (client ScheduleClient) GetResourcePreparer(ctx context.Context, resourceGroupName string, labName string, name string) (*http.Request, error)
GetResourcePreparer prepares the GetResource request.
func (client ScheduleClient) GetResourceResponder(resp *http.Response) (result Schedule, err error)
GetResourceResponder handles the response to the GetResource request. The method always closes the http.Response Body.
func (client ScheduleClient) GetResourceSender(req *http.Request) (*http.Response, error)
GetResourceSender sends the GetResource request. The method will close the http.Response Body if it receives an error.
func (client ScheduleClient) List(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationSchedulePage, err error)
List list schedules. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. filter - the filter to apply on the operation.
func (client ScheduleClient) ListComplete(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationScheduleIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client ScheduleClient) ListPreparer(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (*http.Request, error)
ListPreparer prepares the List request.
func (client ScheduleClient) ListResponder(resp *http.Response) (result ResponseWithContinuationSchedule, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (client ScheduleClient) ListSender(req *http.Request) (*http.Response, error)
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
func (client ScheduleClient) PatchResource(ctx context.Context, resourceGroupName string, labName string, name string, schedule Schedule) (result Schedule, err error)
PatchResource modify properties of schedules. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the schedule.
func (client ScheduleClient) PatchResourcePreparer(ctx context.Context, resourceGroupName string, labName string, name string, schedule Schedule) (*http.Request, error)
PatchResourcePreparer prepares the PatchResource request.
func (client ScheduleClient) PatchResourceResponder(resp *http.Response) (result Schedule, err error)
PatchResourceResponder handles the response to the PatchResource request. The method always closes the http.Response Body.
func (client ScheduleClient) PatchResourceSender(req *http.Request) (*http.Response, error)
PatchResourceSender sends the PatchResource request. The method will close the http.Response Body if it receives an error.
ScheduleCreateOrUpdateResourceFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type ScheduleCreateOrUpdateResourceFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(ScheduleClient) (Schedule, error) }
func (future *ScheduleCreateOrUpdateResourceFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
ScheduleDeleteResourceFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type ScheduleDeleteResourceFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(ScheduleClient) (autorest.Response, error) }
func (future *ScheduleDeleteResourceFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
ScheduleExecuteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type ScheduleExecuteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(ScheduleClient) (autorest.Response, error) }
func (future *ScheduleExecuteFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
ScheduleProperties properties of a schedule.
type ScheduleProperties struct { // Status - The status of the schedule. Possible values include: 'Enabled', 'Disabled' Status EnableStatus `json:"status,omitempty"` // TaskType - The task type of the schedule. Possible values include: 'LabVmsShutdownTask', 'LabVmsStartupTask', 'LabBillingTask' TaskType TaskType `json:"taskType,omitempty"` // WeeklyRecurrence - The weekly recurrence of the schedule. WeeklyRecurrence *WeekDetails `json:"weeklyRecurrence,omitempty"` // DailyRecurrence - The daily recurrence of the schedule. DailyRecurrence *DayDetails `json:"dailyRecurrence,omitempty"` // HourlyRecurrence - The hourly recurrence of the schedule. HourlyRecurrence *HourDetails `json:"hourlyRecurrence,omitempty"` // TimeZoneID - The time zone id. TimeZoneID *string `json:"timeZoneId,omitempty"` // ProvisioningState - The provisioning status of the resource. ProvisioningState *string `json:"provisioningState,omitempty"` }
SourceControlType enumerates the values for source control type.
type SourceControlType string
const ( // GitHub ... GitHub SourceControlType = "GitHub" // VsoGit ... VsoGit SourceControlType = "VsoGit" )
func PossibleSourceControlTypeValues() []SourceControlType
PossibleSourceControlTypeValues returns an array of possible values for the SourceControlType const type.
Subnet ...
type Subnet struct { ResourceID *string `json:"resourceId,omitempty"` LabSubnetName *string `json:"labSubnetName,omitempty"` // AllowPublicIP - Possible values include: 'Default', 'Deny', 'Allow' AllowPublicIP UsagePermissionType `json:"allowPublicIp,omitempty"` }
SubnetOverride property overrides on a subnet of a virtual network.
type SubnetOverride struct { // ResourceID - The resource identifier of the subnet. ResourceID *string `json:"resourceId,omitempty"` // LabSubnetName - The name given to the subnet within the lab. LabSubnetName *string `json:"labSubnetName,omitempty"` // UseInVMCreationPermission - Indicates whether this subnet can be used during virtual machine creation. Possible values include: 'Default', 'Deny', 'Allow' UseInVMCreationPermission UsagePermissionType `json:"useInVmCreationPermission,omitempty"` // UsePublicIPAddressPermission - Indicates whether public IP addresses can be assigned to virtual machines on this subnet. Possible values include: 'Default', 'Deny', 'Allow' UsePublicIPAddressPermission UsagePermissionType `json:"usePublicIpAddressPermission,omitempty"` }
SubscriptionNotification ...
type SubscriptionNotification struct { RegistrationDate *string `json:"registrationDate,omitempty"` // State - Possible values include: 'NotDefined', 'Registered', 'Unregistered', 'Warned', 'Suspended', 'Deleted' State SubscriptionNotificationState `json:"state,omitempty"` Properties *SubscriptionNotificationProperties `json:"properties,omitempty"` }
SubscriptionNotificationProperties ...
type SubscriptionNotificationProperties struct { TenantID *string `json:"tenantId,omitempty"` }
SubscriptionNotificationState enumerates the values for subscription notification state.
type SubscriptionNotificationState string
const ( // Deleted ... Deleted SubscriptionNotificationState = "Deleted" // NotDefined ... NotDefined SubscriptionNotificationState = "NotDefined" // Registered ... Registered SubscriptionNotificationState = "Registered" // Suspended ... Suspended SubscriptionNotificationState = "Suspended" // Unregistered ... Unregistered SubscriptionNotificationState = "Unregistered" // Warned ... Warned SubscriptionNotificationState = "Warned" )
func PossibleSubscriptionNotificationStateValues() []SubscriptionNotificationState
PossibleSubscriptionNotificationStateValues returns an array of possible values for the SubscriptionNotificationState const type.
TaskType enumerates the values for task type.
type TaskType string
const ( // LabBillingTask ... LabBillingTask TaskType = "LabBillingTask" // LabVmsShutdownTask ... LabVmsShutdownTask TaskType = "LabVmsShutdownTask" // LabVmsStartupTask ... LabVmsStartupTask TaskType = "LabVmsStartupTask" )
func PossibleTaskTypeValues() []TaskType
PossibleTaskTypeValues returns an array of possible values for the TaskType const type.
UsagePermissionType enumerates the values for usage permission type.
type UsagePermissionType string
const ( // Allow ... Allow UsagePermissionType = "Allow" // Default ... Default UsagePermissionType = "Default" // Deny ... Deny UsagePermissionType = "Deny" )
func PossibleUsagePermissionTypeValues() []UsagePermissionType
PossibleUsagePermissionTypeValues returns an array of possible values for the UsagePermissionType const type.
VMCostProperties ...
type VMCostProperties struct { Name *string `json:"name,omitempty"` ResourceGroupName *string `json:"resourceGroupName,omitempty"` Cost *float64 `json:"cost,omitempty"` }
VirtualMachineApplyArtifactsFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type VirtualMachineApplyArtifactsFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(VirtualMachineClient) (autorest.Response, error) }
func (future *VirtualMachineApplyArtifactsFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
VirtualMachineClient is the azure DevTest Labs REST API version 2015-05-21-preview.
type VirtualMachineClient struct { BaseClient }
func NewVirtualMachineClient(subscriptionID string) VirtualMachineClient
NewVirtualMachineClient creates an instance of the VirtualMachineClient client.
func NewVirtualMachineClientWithBaseURI(baseURI string, subscriptionID string) VirtualMachineClient
NewVirtualMachineClientWithBaseURI creates an instance of the VirtualMachineClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client VirtualMachineClient) ApplyArtifacts(ctx context.Context, resourceGroupName string, labName string, name string, applyArtifactsRequest ApplyArtifactsRequest) (result VirtualMachineApplyArtifactsFuture, err error)
ApplyArtifacts apply artifacts to Lab VM. This operation can take a while to complete. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the virtual Machine.
func (client VirtualMachineClient) ApplyArtifactsPreparer(ctx context.Context, resourceGroupName string, labName string, name string, applyArtifactsRequest ApplyArtifactsRequest) (*http.Request, error)
ApplyArtifactsPreparer prepares the ApplyArtifacts request.
func (client VirtualMachineClient) ApplyArtifactsResponder(resp *http.Response) (result autorest.Response, err error)
ApplyArtifactsResponder handles the response to the ApplyArtifacts request. The method always closes the http.Response Body.
func (client VirtualMachineClient) ApplyArtifactsSender(req *http.Request) (future VirtualMachineApplyArtifactsFuture, err error)
ApplyArtifactsSender sends the ApplyArtifacts request. The method will close the http.Response Body if it receives an error.
func (client VirtualMachineClient) CreateOrUpdateResource(ctx context.Context, resourceGroupName string, labName string, name string, labVirtualMachine LabVirtualMachine) (result VirtualMachineCreateOrUpdateResourceFuture, err error)
CreateOrUpdateResource create or replace an existing Virtual Machine. This operation can take a while to complete. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the virtual Machine.
func (client VirtualMachineClient) CreateOrUpdateResourcePreparer(ctx context.Context, resourceGroupName string, labName string, name string, labVirtualMachine LabVirtualMachine) (*http.Request, error)
CreateOrUpdateResourcePreparer prepares the CreateOrUpdateResource request.
func (client VirtualMachineClient) CreateOrUpdateResourceResponder(resp *http.Response) (result LabVirtualMachine, err error)
CreateOrUpdateResourceResponder handles the response to the CreateOrUpdateResource request. The method always closes the http.Response Body.
func (client VirtualMachineClient) CreateOrUpdateResourceSender(req *http.Request) (future VirtualMachineCreateOrUpdateResourceFuture, err error)
CreateOrUpdateResourceSender sends the CreateOrUpdateResource request. The method will close the http.Response Body if it receives an error.
func (client VirtualMachineClient) DeleteResource(ctx context.Context, resourceGroupName string, labName string, name string) (result VirtualMachineDeleteResourceFuture, err error)
DeleteResource delete virtual machine. This operation can take a while to complete. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the virtual Machine.
func (client VirtualMachineClient) DeleteResourcePreparer(ctx context.Context, resourceGroupName string, labName string, name string) (*http.Request, error)
DeleteResourcePreparer prepares the DeleteResource request.
func (client VirtualMachineClient) DeleteResourceResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResourceResponder handles the response to the DeleteResource request. The method always closes the http.Response Body.
func (client VirtualMachineClient) DeleteResourceSender(req *http.Request) (future VirtualMachineDeleteResourceFuture, err error)
DeleteResourceSender sends the DeleteResource request. The method will close the http.Response Body if it receives an error.
func (client VirtualMachineClient) GetResource(ctx context.Context, resourceGroupName string, labName string, name string) (result LabVirtualMachine, err error)
GetResource get virtual machine. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the virtual Machine.
func (client VirtualMachineClient) GetResourcePreparer(ctx context.Context, resourceGroupName string, labName string, name string) (*http.Request, error)
GetResourcePreparer prepares the GetResource request.
func (client VirtualMachineClient) GetResourceResponder(resp *http.Response) (result LabVirtualMachine, err error)
GetResourceResponder handles the response to the GetResource request. The method always closes the http.Response Body.
func (client VirtualMachineClient) GetResourceSender(req *http.Request) (*http.Response, error)
GetResourceSender sends the GetResource request. The method will close the http.Response Body if it receives an error.
func (client VirtualMachineClient) List(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationLabVirtualMachinePage, err error)
List list virtual machines. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. filter - the filter to apply on the operation.
func (client VirtualMachineClient) ListComplete(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationLabVirtualMachineIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client VirtualMachineClient) ListPreparer(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (*http.Request, error)
ListPreparer prepares the List request.
func (client VirtualMachineClient) ListResponder(resp *http.Response) (result ResponseWithContinuationLabVirtualMachine, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (client VirtualMachineClient) ListSender(req *http.Request) (*http.Response, error)
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
func (client VirtualMachineClient) PatchResource(ctx context.Context, resourceGroupName string, labName string, name string, labVirtualMachine LabVirtualMachine) (result LabVirtualMachine, err error)
PatchResource modify properties of virtual machines. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the virtual Machine.
func (client VirtualMachineClient) PatchResourcePreparer(ctx context.Context, resourceGroupName string, labName string, name string, labVirtualMachine LabVirtualMachine) (*http.Request, error)
PatchResourcePreparer prepares the PatchResource request.
func (client VirtualMachineClient) PatchResourceResponder(resp *http.Response) (result LabVirtualMachine, err error)
PatchResourceResponder handles the response to the PatchResource request. The method always closes the http.Response Body.
func (client VirtualMachineClient) PatchResourceSender(req *http.Request) (*http.Response, error)
PatchResourceSender sends the PatchResource request. The method will close the http.Response Body if it receives an error.
func (client VirtualMachineClient) Start(ctx context.Context, resourceGroupName string, labName string, name string) (result VirtualMachineStartFuture, err error)
Start start a Lab VM. This operation can take a while to complete. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the virtual Machine.
func (client VirtualMachineClient) StartPreparer(ctx context.Context, resourceGroupName string, labName string, name string) (*http.Request, error)
StartPreparer prepares the Start request.
func (client VirtualMachineClient) StartResponder(resp *http.Response) (result autorest.Response, err error)
StartResponder handles the response to the Start request. The method always closes the http.Response Body.
func (client VirtualMachineClient) StartSender(req *http.Request) (future VirtualMachineStartFuture, err error)
StartSender sends the Start request. The method will close the http.Response Body if it receives an error.
func (client VirtualMachineClient) Stop(ctx context.Context, resourceGroupName string, labName string, name string) (result VirtualMachineStopFuture, err error)
Stop stop a Lab VM. This operation can take a while to complete. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the virtual Machine.
func (client VirtualMachineClient) StopPreparer(ctx context.Context, resourceGroupName string, labName string, name string) (*http.Request, error)
StopPreparer prepares the Stop request.
func (client VirtualMachineClient) StopResponder(resp *http.Response) (result autorest.Response, err error)
StopResponder handles the response to the Stop request. The method always closes the http.Response Body.
func (client VirtualMachineClient) StopSender(req *http.Request) (future VirtualMachineStopFuture, err error)
StopSender sends the Stop request. The method will close the http.Response Body if it receives an error.
VirtualMachineCreateOrUpdateResourceFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type VirtualMachineCreateOrUpdateResourceFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(VirtualMachineClient) (LabVirtualMachine, error) }
func (future *VirtualMachineCreateOrUpdateResourceFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
VirtualMachineDeleteResourceFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type VirtualMachineDeleteResourceFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(VirtualMachineClient) (autorest.Response, error) }
func (future *VirtualMachineDeleteResourceFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
VirtualMachineStartFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type VirtualMachineStartFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(VirtualMachineClient) (autorest.Response, error) }
func (future *VirtualMachineStartFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
VirtualMachineStopFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type VirtualMachineStopFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(VirtualMachineClient) (autorest.Response, error) }
func (future *VirtualMachineStopFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
VirtualNetwork a virtual network.
type VirtualNetwork struct { autorest.Response `json:"-"` // VirtualNetworkProperties - The properties of the resource. *VirtualNetworkProperties `json:"properties,omitempty"` // ID - The identifier of the resource. ID *string `json:"id,omitempty"` // Name - The name of the resource. Name *string `json:"name,omitempty"` // Type - The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` // Tags - The tags of the resource. Tags map[string]*string `json:"tags"` }
func (vn VirtualNetwork) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for VirtualNetwork.
func (vn *VirtualNetwork) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for VirtualNetwork struct.
VirtualNetworkClient is the azure DevTest Labs REST API version 2015-05-21-preview.
type VirtualNetworkClient struct { BaseClient }
func NewVirtualNetworkClient(subscriptionID string) VirtualNetworkClient
NewVirtualNetworkClient creates an instance of the VirtualNetworkClient client.
func NewVirtualNetworkClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkClient
NewVirtualNetworkClientWithBaseURI creates an instance of the VirtualNetworkClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client VirtualNetworkClient) CreateOrUpdateResource(ctx context.Context, resourceGroupName string, labName string, name string, virtualNetwork VirtualNetwork) (result VirtualNetworkCreateOrUpdateResourceFuture, err error)
CreateOrUpdateResource create or replace an existing virtual network. This operation can take a while to complete. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the virtual network.
func (client VirtualNetworkClient) CreateOrUpdateResourcePreparer(ctx context.Context, resourceGroupName string, labName string, name string, virtualNetwork VirtualNetwork) (*http.Request, error)
CreateOrUpdateResourcePreparer prepares the CreateOrUpdateResource request.
func (client VirtualNetworkClient) CreateOrUpdateResourceResponder(resp *http.Response) (result VirtualNetwork, err error)
CreateOrUpdateResourceResponder handles the response to the CreateOrUpdateResource request. The method always closes the http.Response Body.
func (client VirtualNetworkClient) CreateOrUpdateResourceSender(req *http.Request) (future VirtualNetworkCreateOrUpdateResourceFuture, err error)
CreateOrUpdateResourceSender sends the CreateOrUpdateResource request. The method will close the http.Response Body if it receives an error.
func (client VirtualNetworkClient) DeleteResource(ctx context.Context, resourceGroupName string, labName string, name string) (result VirtualNetworkDeleteResourceFuture, err error)
DeleteResource delete virtual network. This operation can take a while to complete. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the virtual network.
func (client VirtualNetworkClient) DeleteResourcePreparer(ctx context.Context, resourceGroupName string, labName string, name string) (*http.Request, error)
DeleteResourcePreparer prepares the DeleteResource request.
func (client VirtualNetworkClient) DeleteResourceResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResourceResponder handles the response to the DeleteResource request. The method always closes the http.Response Body.
func (client VirtualNetworkClient) DeleteResourceSender(req *http.Request) (future VirtualNetworkDeleteResourceFuture, err error)
DeleteResourceSender sends the DeleteResource request. The method will close the http.Response Body if it receives an error.
func (client VirtualNetworkClient) GetResource(ctx context.Context, resourceGroupName string, labName string, name string) (result VirtualNetwork, err error)
GetResource get virtual network. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the virtual network.
func (client VirtualNetworkClient) GetResourcePreparer(ctx context.Context, resourceGroupName string, labName string, name string) (*http.Request, error)
GetResourcePreparer prepares the GetResource request.
func (client VirtualNetworkClient) GetResourceResponder(resp *http.Response) (result VirtualNetwork, err error)
GetResourceResponder handles the response to the GetResource request. The method always closes the http.Response Body.
func (client VirtualNetworkClient) GetResourceSender(req *http.Request) (*http.Response, error)
GetResourceSender sends the GetResource request. The method will close the http.Response Body if it receives an error.
func (client VirtualNetworkClient) List(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationVirtualNetworkPage, err error)
List list virtual networks. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. filter - the filter to apply on the operation.
func (client VirtualNetworkClient) ListComplete(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (result ResponseWithContinuationVirtualNetworkIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client VirtualNetworkClient) ListPreparer(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderBy string) (*http.Request, error)
ListPreparer prepares the List request.
func (client VirtualNetworkClient) ListResponder(resp *http.Response) (result ResponseWithContinuationVirtualNetwork, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (client VirtualNetworkClient) ListSender(req *http.Request) (*http.Response, error)
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
func (client VirtualNetworkClient) PatchResource(ctx context.Context, resourceGroupName string, labName string, name string, virtualNetwork VirtualNetwork) (result VirtualNetwork, err error)
PatchResource modify properties of virtual networks. Parameters: resourceGroupName - the name of the resource group. labName - the name of the lab. name - the name of the virtual network.
func (client VirtualNetworkClient) PatchResourcePreparer(ctx context.Context, resourceGroupName string, labName string, name string, virtualNetwork VirtualNetwork) (*http.Request, error)
PatchResourcePreparer prepares the PatchResource request.
func (client VirtualNetworkClient) PatchResourceResponder(resp *http.Response) (result VirtualNetwork, err error)
PatchResourceResponder handles the response to the PatchResource request. The method always closes the http.Response Body.
func (client VirtualNetworkClient) PatchResourceSender(req *http.Request) (*http.Response, error)
PatchResourceSender sends the PatchResource request. The method will close the http.Response Body if it receives an error.
VirtualNetworkCreateOrUpdateResourceFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type VirtualNetworkCreateOrUpdateResourceFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(VirtualNetworkClient) (VirtualNetwork, error) }
func (future *VirtualNetworkCreateOrUpdateResourceFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
VirtualNetworkDeleteResourceFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type VirtualNetworkDeleteResourceFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(VirtualNetworkClient) (autorest.Response, error) }
func (future *VirtualNetworkDeleteResourceFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
VirtualNetworkProperties properties of a virtual network.
type VirtualNetworkProperties struct { // AllowedSubnets - The allowed subnets of the virtual network. AllowedSubnets *[]Subnet `json:"allowedSubnets,omitempty"` // Description - The description of the virtual network. Description *string `json:"description,omitempty"` // ExternalProviderResourceID - The Microsoft.Network resource identifier of the virtual network. ExternalProviderResourceID *string `json:"externalProviderResourceId,omitempty"` // SubnetOverrides - The subnet overrides of the virtual network. SubnetOverrides *[]SubnetOverride `json:"subnetOverrides,omitempty"` // ProvisioningState - The provisioning status of the resource. ProvisioningState *string `json:"provisioningState,omitempty"` }
WeekDetails properties of a weekly schedule.
type WeekDetails struct { // Weekdays - The days of the week. Weekdays *[]string `json:"weekdays,omitempty"` // Time - The time of the day. Time *string `json:"time,omitempty"` }
WindowsOsInfo information about a Windows OS.
type WindowsOsInfo struct { // WindowsOsState - The state of the Windows OS. Possible values include: 'NonSysprepped', 'SysprepRequested', 'SysprepApplied' WindowsOsState WindowsOsState `json:"windowsOsState,omitempty"` }
WindowsOsState enumerates the values for windows os state.
type WindowsOsState string
const ( // NonSysprepped ... NonSysprepped WindowsOsState = "NonSysprepped" // SysprepApplied ... SysprepApplied WindowsOsState = "SysprepApplied" // SysprepRequested ... SysprepRequested WindowsOsState = "SysprepRequested" )
func PossibleWindowsOsStateValues() []WindowsOsState
PossibleWindowsOsStateValues returns an array of possible values for the WindowsOsState const type.