labs

package
v0.20230323.1151043 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: MPL-2.0 Imports: 12 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs Documentation

The labs SDK allows for interaction with the Azure Resource Manager Service devtestlab (API Version 2018-09-15).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs"

Client Initialization

client := labs.NewLabsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: LabsClient.ClaimAnyVM

ctx := context.TODO()
id := labs.NewLabID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue")

if err := client.ClaimAnyVMThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: LabsClient.CreateEnvironment

ctx := context.TODO()
id := labs.NewLabID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue")

payload := labs.LabVirtualMachineCreationParameter{
	// ...
}


if err := client.CreateEnvironmentThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: LabsClient.CreateOrUpdate

ctx := context.TODO()
id := labs.NewLabID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue")

payload := labs.Lab{
	// ...
}


if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: LabsClient.Delete

ctx := context.TODO()
id := labs.NewLabID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue")

if err := client.DeleteThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: LabsClient.ExportResourceUsage

ctx := context.TODO()
id := labs.NewLabID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue")

payload := labs.ExportResourceUsageParameters{
	// ...
}


if err := client.ExportResourceUsageThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: LabsClient.GenerateUploadUri

ctx := context.TODO()
id := labs.NewLabID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue")

payload := labs.GenerateUploadUriParameter{
	// ...
}


read, err := client.GenerateUploadUri(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: LabsClient.Get

ctx := context.TODO()
id := labs.NewLabID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue")

read, err := client.Get(ctx, id, labs.DefaultGetOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: LabsClient.ImportVirtualMachine

ctx := context.TODO()
id := labs.NewLabID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue")

payload := labs.ImportLabVirtualMachineRequest{
	// ...
}


if err := client.ImportVirtualMachineThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: LabsClient.ListByResourceGroup

ctx := context.TODO()
id := labs.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")

// alternatively `client.ListByResourceGroup(ctx, id, labs.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination
items, err := client.ListByResourceGroupComplete(ctx, id, labs.DefaultListByResourceGroupOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: LabsClient.ListBySubscription

ctx := context.TODO()
id := labs.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

// alternatively `client.ListBySubscription(ctx, id, labs.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination
items, err := client.ListBySubscriptionComplete(ctx, id, labs.DefaultListBySubscriptionOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: LabsClient.ListVhds

ctx := context.TODO()
id := labs.NewLabID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue")

// alternatively `client.ListVhds(ctx, id)` can be used to do batched pagination
items, err := client.ListVhdsComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: LabsClient.Update

ctx := context.TODO()
id := labs.NewLabID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue")

payload := labs.UpdateResource{
	// ...
}


read, err := client.Update(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForEnableStatus

func PossibleValuesForEnableStatus() []string

func PossibleValuesForEnvironmentPermission

func PossibleValuesForEnvironmentPermission() []string

func PossibleValuesForHostCachingOptions

func PossibleValuesForHostCachingOptions() []string

func PossibleValuesForPremiumDataDisk

func PossibleValuesForPremiumDataDisk() []string

func PossibleValuesForStorageType

func PossibleValuesForStorageType() []string

func PossibleValuesForTransportProtocol

func PossibleValuesForTransportProtocol() []string

func ValidateLabID

func ValidateLabID(input interface{}, key string) (warnings []string, errors []error)

ValidateLabID checks that 'input' can be parsed as a Lab ID

Types

type ArtifactInstallProperties

type ArtifactInstallProperties struct {
	ArtifactId               *string                        `json:"artifactId,omitempty"`
	ArtifactTitle            *string                        `json:"artifactTitle,omitempty"`
	DeploymentStatusMessage  *string                        `json:"deploymentStatusMessage,omitempty"`
	InstallTime              *string                        `json:"installTime,omitempty"`
	Parameters               *[]ArtifactParameterProperties `json:"parameters,omitempty"`
	Status                   *string                        `json:"status,omitempty"`
	VMExtensionStatusMessage *string                        `json:"vmExtensionStatusMessage,omitempty"`
}

func (*ArtifactInstallProperties) GetInstallTimeAsTime

func (o *ArtifactInstallProperties) GetInstallTimeAsTime() (*time.Time, error)

func (*ArtifactInstallProperties) SetInstallTimeAsTime

func (o *ArtifactInstallProperties) SetInstallTimeAsTime(input time.Time)

type ArtifactParameterProperties

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

type AttachNewDataDiskOptions

type AttachNewDataDiskOptions struct {
	DiskName    *string      `json:"diskName,omitempty"`
	DiskSizeGiB *int64       `json:"diskSizeGiB,omitempty"`
	DiskType    *StorageType `json:"diskType,omitempty"`
}

type BulkCreationParameters

type BulkCreationParameters struct {
	InstanceCount *int64 `json:"instanceCount,omitempty"`
}

type ClaimAnyVMOperationResponse

type ClaimAnyVMOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type CreateEnvironmentOperationResponse

type CreateEnvironmentOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type DataDiskProperties

type DataDiskProperties struct {
	AttachNewDataDiskOptions *AttachNewDataDiskOptions `json:"attachNewDataDiskOptions,omitempty"`
	ExistingLabDiskId        *string                   `json:"existingLabDiskId,omitempty"`
	HostCaching              *HostCachingOptions       `json:"hostCaching,omitempty"`
}

type DayDetails

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

type DeleteOperationResponse

type DeleteOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type EnableStatus

type EnableStatus string
const (
	EnableStatusDisabled EnableStatus = "Disabled"
	EnableStatusEnabled  EnableStatus = "Enabled"
)

type EnvironmentPermission

type EnvironmentPermission string
const (
	EnvironmentPermissionContributor EnvironmentPermission = "Contributor"
	EnvironmentPermissionReader      EnvironmentPermission = "Reader"
)

type ExportResourceUsageOperationResponse

type ExportResourceUsageOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type ExportResourceUsageParameters

type ExportResourceUsageParameters struct {
	BlobStorageAbsoluteSasUri *string `json:"blobStorageAbsoluteSasUri,omitempty"`
	UsageStartDate            *string `json:"usageStartDate,omitempty"`
}

func (*ExportResourceUsageParameters) GetUsageStartDateAsTime

func (o *ExportResourceUsageParameters) GetUsageStartDateAsTime() (*time.Time, error)

func (*ExportResourceUsageParameters) SetUsageStartDateAsTime

func (o *ExportResourceUsageParameters) SetUsageStartDateAsTime(input time.Time)

type GalleryImageReference

type GalleryImageReference struct {
	Offer     *string `json:"offer,omitempty"`
	OsType    *string `json:"osType,omitempty"`
	Publisher *string `json:"publisher,omitempty"`
	Sku       *string `json:"sku,omitempty"`
	Version   *string `json:"version,omitempty"`
}

type GenerateUploadUriOperationResponse

type GenerateUploadUriOperationResponse struct {
	HttpResponse *http.Response
	Model        *GenerateUploadUriResponse
}

type GenerateUploadUriParameter

type GenerateUploadUriParameter struct {
	BlobName *string `json:"blobName,omitempty"`
}

type GenerateUploadUriResponse

type GenerateUploadUriResponse struct {
	UploadUri *string `json:"uploadUri,omitempty"`
}

type GetOperationOptions

type GetOperationOptions struct {
	Expand *string
}

func DefaultGetOperationOptions

func DefaultGetOperationOptions() GetOperationOptions

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	Model        *Lab
}

type HostCachingOptions

type HostCachingOptions string
const (
	HostCachingOptionsNone      HostCachingOptions = "None"
	HostCachingOptionsReadOnly  HostCachingOptions = "ReadOnly"
	HostCachingOptionsReadWrite HostCachingOptions = "ReadWrite"
)

type HourDetails

type HourDetails struct {
	Minute *int64 `json:"minute,omitempty"`
}

type ImportLabVirtualMachineRequest

type ImportLabVirtualMachineRequest struct {
	DestinationVirtualMachineName  *string `json:"destinationVirtualMachineName,omitempty"`
	SourceVirtualMachineResourceId *string `json:"sourceVirtualMachineResourceId,omitempty"`
}

type ImportVirtualMachineOperationResponse

type ImportVirtualMachineOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type InboundNatRule

type InboundNatRule struct {
	BackendPort       *int64             `json:"backendPort,omitempty"`
	FrontendPort      *int64             `json:"frontendPort,omitempty"`
	TransportProtocol *TransportProtocol `json:"transportProtocol,omitempty"`
}

type Lab

type Lab struct {
	Id         *string            `json:"id,omitempty"`
	Location   *string            `json:"location,omitempty"`
	Name       *string            `json:"name,omitempty"`
	Properties *LabProperties     `json:"properties,omitempty"`
	Tags       *map[string]string `json:"tags,omitempty"`
	Type       *string            `json:"type,omitempty"`
}

type LabAnnouncementProperties

type LabAnnouncementProperties struct {
	Enabled           *EnableStatus `json:"enabled,omitempty"`
	ExpirationDate    *string       `json:"expirationDate,omitempty"`
	Expired           *bool         `json:"expired,omitempty"`
	Markdown          *string       `json:"markdown,omitempty"`
	ProvisioningState *string       `json:"provisioningState,omitempty"`
	Title             *string       `json:"title,omitempty"`
	UniqueIdentifier  *string       `json:"uniqueIdentifier,omitempty"`
}

func (*LabAnnouncementProperties) GetExpirationDateAsTime

func (o *LabAnnouncementProperties) GetExpirationDateAsTime() (*time.Time, error)

func (*LabAnnouncementProperties) SetExpirationDateAsTime

func (o *LabAnnouncementProperties) SetExpirationDateAsTime(input time.Time)

type LabId

type LabId struct {
	SubscriptionId    string
	ResourceGroupName string
	LabName           string
}

LabId is a struct representing the Resource ID for a Lab

func NewLabID

func NewLabID(subscriptionId string, resourceGroupName string, labName string) LabId

NewLabID returns a new LabId struct

func ParseLabID

func ParseLabID(input string) (*LabId, error)

ParseLabID parses 'input' into a LabId

func ParseLabIDInsensitively

func ParseLabIDInsensitively(input string) (*LabId, error)

ParseLabIDInsensitively parses 'input' case-insensitively into a LabId note: this method should only be used for API response data and not user input

func (LabId) ID

func (id LabId) ID() string

ID returns the formatted Lab ID

func (LabId) Segments

func (id LabId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Lab ID

func (LabId) String

func (id LabId) String() string

String returns a human-readable description of this Lab ID

type LabOperationPredicate

type LabOperationPredicate struct {
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (LabOperationPredicate) Matches

func (p LabOperationPredicate) Matches(input Lab) bool

type LabProperties

type LabProperties struct {
	Announcement                         *LabAnnouncementProperties `json:"announcement,omitempty"`
	ArtifactsStorageAccount              *string                    `json:"artifactsStorageAccount,omitempty"`
	CreatedDate                          *string                    `json:"createdDate,omitempty"`
	DefaultPremiumStorageAccount         *string                    `json:"defaultPremiumStorageAccount,omitempty"`
	DefaultStorageAccount                *string                    `json:"defaultStorageAccount,omitempty"`
	EnvironmentPermission                *EnvironmentPermission     `json:"environmentPermission,omitempty"`
	ExtendedProperties                   *map[string]string         `json:"extendedProperties,omitempty"`
	LabStorageType                       *StorageType               `json:"labStorageType,omitempty"`
	LoadBalancerId                       *string                    `json:"loadBalancerId,omitempty"`
	MandatoryArtifactsResourceIdsLinux   *[]string                  `json:"mandatoryArtifactsResourceIdsLinux,omitempty"`
	MandatoryArtifactsResourceIdsWindows *[]string                  `json:"mandatoryArtifactsResourceIdsWindows,omitempty"`
	NetworkSecurityGroupId               *string                    `json:"networkSecurityGroupId,omitempty"`
	PremiumDataDiskStorageAccount        *string                    `json:"premiumDataDiskStorageAccount,omitempty"`
	PremiumDataDisks                     *PremiumDataDisk           `json:"premiumDataDisks,omitempty"`
	ProvisioningState                    *string                    `json:"provisioningState,omitempty"`
	PublicIPId                           *string                    `json:"publicIpId,omitempty"`
	Support                              *LabSupportProperties      `json:"support,omitempty"`
	UniqueIdentifier                     *string                    `json:"uniqueIdentifier,omitempty"`
	VMCreationResourceGroup              *string                    `json:"vmCreationResourceGroup,omitempty"`
	VaultName                            *string                    `json:"vaultName,omitempty"`
}

func (*LabProperties) GetCreatedDateAsTime

func (o *LabProperties) GetCreatedDateAsTime() (*time.Time, error)

func (*LabProperties) SetCreatedDateAsTime

func (o *LabProperties) SetCreatedDateAsTime(input time.Time)

type LabSupportProperties

type LabSupportProperties struct {
	Enabled  *EnableStatus `json:"enabled,omitempty"`
	Markdown *string       `json:"markdown,omitempty"`
}

type LabVhd

type LabVhd struct {
	Id *string `json:"id,omitempty"`
}

type LabVhdOperationPredicate

type LabVhdOperationPredicate struct {
	Id *string
}

func (LabVhdOperationPredicate) Matches

func (p LabVhdOperationPredicate) Matches(input LabVhd) bool

type LabVirtualMachineCreationParameter

type LabVirtualMachineCreationParameter struct {
	Location   *string                                       `json:"location,omitempty"`
	Name       *string                                       `json:"name,omitempty"`
	Properties *LabVirtualMachineCreationParameterProperties `json:"properties,omitempty"`
	Tags       *map[string]string                            `json:"tags,omitempty"`
}

type LabVirtualMachineCreationParameterProperties

type LabVirtualMachineCreationParameterProperties struct {
	AllowClaim                 *bool                        `json:"allowClaim,omitempty"`
	Artifacts                  *[]ArtifactInstallProperties `json:"artifacts,omitempty"`
	BulkCreationParameters     *BulkCreationParameters      `json:"bulkCreationParameters,omitempty"`
	CreatedDate                *string                      `json:"createdDate,omitempty"`
	CustomImageId              *string                      `json:"customImageId,omitempty"`
	DataDiskParameters         *[]DataDiskProperties        `json:"dataDiskParameters,omitempty"`
	DisallowPublicIPAddress    *bool                        `json:"disallowPublicIpAddress,omitempty"`
	EnvironmentId              *string                      `json:"environmentId,omitempty"`
	ExpirationDate             *string                      `json:"expirationDate,omitempty"`
	GalleryImageReference      *GalleryImageReference       `json:"galleryImageReference,omitempty"`
	IsAuthenticationWithSshKey *bool                        `json:"isAuthenticationWithSshKey,omitempty"`
	LabSubnetName              *string                      `json:"labSubnetName,omitempty"`
	LabVirtualNetworkId        *string                      `json:"labVirtualNetworkId,omitempty"`
	NetworkInterface           *NetworkInterfaceProperties  `json:"networkInterface,omitempty"`
	Notes                      *string                      `json:"notes,omitempty"`
	OwnerObjectId              *string                      `json:"ownerObjectId,omitempty"`
	OwnerUserPrincipalName     *string                      `json:"ownerUserPrincipalName,omitempty"`
	Password                   *string                      `json:"password,omitempty"`
	PlanId                     *string                      `json:"planId,omitempty"`
	ScheduleParameters         *[]ScheduleCreationParameter `json:"scheduleParameters,omitempty"`
	Size                       *string                      `json:"size,omitempty"`
	SshKey                     *string                      `json:"sshKey,omitempty"`
	StorageType                *string                      `json:"storageType,omitempty"`
	UserName                   *string                      `json:"userName,omitempty"`
}

func (*LabVirtualMachineCreationParameterProperties) GetCreatedDateAsTime

func (o *LabVirtualMachineCreationParameterProperties) GetCreatedDateAsTime() (*time.Time, error)

func (*LabVirtualMachineCreationParameterProperties) GetExpirationDateAsTime

func (o *LabVirtualMachineCreationParameterProperties) GetExpirationDateAsTime() (*time.Time, error)

func (*LabVirtualMachineCreationParameterProperties) SetCreatedDateAsTime

func (o *LabVirtualMachineCreationParameterProperties) SetCreatedDateAsTime(input time.Time)

func (*LabVirtualMachineCreationParameterProperties) SetExpirationDateAsTime

func (o *LabVirtualMachineCreationParameterProperties) SetExpirationDateAsTime(input time.Time)

type LabsClient

type LabsClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewLabsClientWithBaseURI

func NewLabsClientWithBaseURI(endpoint string) LabsClient

func (LabsClient) ClaimAnyVM

func (c LabsClient) ClaimAnyVM(ctx context.Context, id LabId) (result ClaimAnyVMOperationResponse, err error)

ClaimAnyVM ...

func (LabsClient) ClaimAnyVMThenPoll

func (c LabsClient) ClaimAnyVMThenPoll(ctx context.Context, id LabId) error

ClaimAnyVMThenPoll performs ClaimAnyVM then polls until it's completed

func (LabsClient) CreateEnvironment

CreateEnvironment ...

func (LabsClient) CreateEnvironmentThenPoll

func (c LabsClient) CreateEnvironmentThenPoll(ctx context.Context, id LabId, input LabVirtualMachineCreationParameter) error

CreateEnvironmentThenPoll performs CreateEnvironment then polls until it's completed

func (LabsClient) CreateOrUpdate

func (c LabsClient) CreateOrUpdate(ctx context.Context, id LabId, input Lab) (result CreateOrUpdateOperationResponse, err error)

CreateOrUpdate ...

func (LabsClient) CreateOrUpdateThenPoll

func (c LabsClient) CreateOrUpdateThenPoll(ctx context.Context, id LabId, input Lab) error

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (LabsClient) Delete

func (c LabsClient) Delete(ctx context.Context, id LabId) (result DeleteOperationResponse, err error)

Delete ...

func (LabsClient) DeleteThenPoll

func (c LabsClient) DeleteThenPoll(ctx context.Context, id LabId) error

DeleteThenPoll performs Delete then polls until it's completed

func (LabsClient) ExportResourceUsage

func (c LabsClient) ExportResourceUsage(ctx context.Context, id LabId, input ExportResourceUsageParameters) (result ExportResourceUsageOperationResponse, err error)

ExportResourceUsage ...

func (LabsClient) ExportResourceUsageThenPoll

func (c LabsClient) ExportResourceUsageThenPoll(ctx context.Context, id LabId, input ExportResourceUsageParameters) error

ExportResourceUsageThenPoll performs ExportResourceUsage then polls until it's completed

func (LabsClient) GenerateUploadUri

func (c LabsClient) GenerateUploadUri(ctx context.Context, id LabId, input GenerateUploadUriParameter) (result GenerateUploadUriOperationResponse, err error)

GenerateUploadUri ...

func (LabsClient) Get

func (c LabsClient) Get(ctx context.Context, id LabId, options GetOperationOptions) (result GetOperationResponse, err error)

Get ...

func (LabsClient) ImportVirtualMachine

func (c LabsClient) ImportVirtualMachine(ctx context.Context, id LabId, input ImportLabVirtualMachineRequest) (result ImportVirtualMachineOperationResponse, err error)

ImportVirtualMachine ...

func (LabsClient) ImportVirtualMachineThenPoll

func (c LabsClient) ImportVirtualMachineThenPoll(ctx context.Context, id LabId, input ImportLabVirtualMachineRequest) error

ImportVirtualMachineThenPoll performs ImportVirtualMachine then polls until it's completed

func (LabsClient) ListByResourceGroup

ListByResourceGroup ...

func (LabsClient) ListByResourceGroupComplete

ListByResourceGroupComplete retrieves all of the results into a single object

func (LabsClient) ListByResourceGroupCompleteMatchingPredicate

func (c LabsClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions, predicate LabOperationPredicate) (resp ListByResourceGroupCompleteResult, err error)

ListByResourceGroupCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (LabsClient) ListBySubscription

ListBySubscription ...

func (LabsClient) ListBySubscriptionComplete

ListBySubscriptionComplete retrieves all of the results into a single object

func (LabsClient) ListBySubscriptionCompleteMatchingPredicate

func (c LabsClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions, predicate LabOperationPredicate) (resp ListBySubscriptionCompleteResult, err error)

ListBySubscriptionCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (LabsClient) ListVhds

func (c LabsClient) ListVhds(ctx context.Context, id LabId) (resp ListVhdsOperationResponse, err error)

ListVhds ...

func (LabsClient) ListVhdsComplete

func (c LabsClient) ListVhdsComplete(ctx context.Context, id LabId) (ListVhdsCompleteResult, error)

ListVhdsComplete retrieves all of the results into a single object

func (LabsClient) ListVhdsCompleteMatchingPredicate

func (c LabsClient) ListVhdsCompleteMatchingPredicate(ctx context.Context, id LabId, predicate LabVhdOperationPredicate) (resp ListVhdsCompleteResult, err error)

ListVhdsCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (LabsClient) Update

func (c LabsClient) Update(ctx context.Context, id LabId, input UpdateResource) (result UpdateOperationResponse, err error)

Update ...

type ListByResourceGroupCompleteResult

type ListByResourceGroupCompleteResult struct {
	Items []Lab
}

type ListByResourceGroupOperationOptions

type ListByResourceGroupOperationOptions struct {
	Expand  *string
	Filter  *string
	Orderby *string
	Top     *int64
}

func DefaultListByResourceGroupOperationOptions

func DefaultListByResourceGroupOperationOptions() ListByResourceGroupOperationOptions

type ListByResourceGroupOperationResponse

type ListByResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]Lab
	// contains filtered or unexported fields
}

func (ListByResourceGroupOperationResponse) HasMore

func (ListByResourceGroupOperationResponse) LoadMore

type ListBySubscriptionCompleteResult

type ListBySubscriptionCompleteResult struct {
	Items []Lab
}

type ListBySubscriptionOperationOptions

type ListBySubscriptionOperationOptions struct {
	Expand  *string
	Filter  *string
	Orderby *string
	Top     *int64
}

func DefaultListBySubscriptionOperationOptions

func DefaultListBySubscriptionOperationOptions() ListBySubscriptionOperationOptions

type ListBySubscriptionOperationResponse

type ListBySubscriptionOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]Lab
	// contains filtered or unexported fields
}

func (ListBySubscriptionOperationResponse) HasMore

func (ListBySubscriptionOperationResponse) LoadMore

type ListVhdsCompleteResult

type ListVhdsCompleteResult struct {
	Items []LabVhd
}

type ListVhdsOperationResponse

type ListVhdsOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]LabVhd
	// contains filtered or unexported fields
}

func (ListVhdsOperationResponse) HasMore

func (r ListVhdsOperationResponse) HasMore() bool

func (ListVhdsOperationResponse) LoadMore

type NetworkInterfaceProperties

type NetworkInterfaceProperties struct {
	DnsName                            *string                             `json:"dnsName,omitempty"`
	PrivateIPAddress                   *string                             `json:"privateIpAddress,omitempty"`
	PublicIPAddress                    *string                             `json:"publicIpAddress,omitempty"`
	PublicIPAddressId                  *string                             `json:"publicIpAddressId,omitempty"`
	RdpAuthority                       *string                             `json:"rdpAuthority,omitempty"`
	SharedPublicIPAddressConfiguration *SharedPublicIPAddressConfiguration `json:"sharedPublicIpAddressConfiguration,omitempty"`
	SshAuthority                       *string                             `json:"sshAuthority,omitempty"`
	SubnetId                           *string                             `json:"subnetId,omitempty"`
	VirtualNetworkId                   *string                             `json:"virtualNetworkId,omitempty"`
}

type NotificationSettings

type NotificationSettings struct {
	EmailRecipient     *string       `json:"emailRecipient,omitempty"`
	NotificationLocale *string       `json:"notificationLocale,omitempty"`
	Status             *EnableStatus `json:"status,omitempty"`
	TimeInMinutes      *int64        `json:"timeInMinutes,omitempty"`
	WebhookUrl         *string       `json:"webhookUrl,omitempty"`
}

type PremiumDataDisk

type PremiumDataDisk string
const (
	PremiumDataDiskDisabled PremiumDataDisk = "Disabled"
	PremiumDataDiskEnabled  PremiumDataDisk = "Enabled"
)

type ScheduleCreationParameter

type ScheduleCreationParameter struct {
	Location   *string                              `json:"location,omitempty"`
	Name       *string                              `json:"name,omitempty"`
	Properties *ScheduleCreationParameterProperties `json:"properties,omitempty"`
	Tags       *map[string]string                   `json:"tags,omitempty"`
}

type ScheduleCreationParameterProperties

type ScheduleCreationParameterProperties struct {
	DailyRecurrence      *DayDetails           `json:"dailyRecurrence,omitempty"`
	HourlyRecurrence     *HourDetails          `json:"hourlyRecurrence,omitempty"`
	NotificationSettings *NotificationSettings `json:"notificationSettings,omitempty"`
	Status               *EnableStatus         `json:"status,omitempty"`
	TargetResourceId     *string               `json:"targetResourceId,omitempty"`
	TaskType             *string               `json:"taskType,omitempty"`
	TimeZoneId           *string               `json:"timeZoneId,omitempty"`
	WeeklyRecurrence     *WeekDetails          `json:"weeklyRecurrence,omitempty"`
}

type SharedPublicIPAddressConfiguration

type SharedPublicIPAddressConfiguration struct {
	InboundNatRules *[]InboundNatRule `json:"inboundNatRules,omitempty"`
}

type StorageType

type StorageType string
const (
	StorageTypePremium     StorageType = "Premium"
	StorageTypeStandard    StorageType = "Standard"
	StorageTypeStandardSSD StorageType = "StandardSSD"
)

type TransportProtocol

type TransportProtocol string
const (
	TransportProtocolTcp TransportProtocol = "Tcp"
	TransportProtocolUdp TransportProtocol = "Udp"
)

type UpdateOperationResponse

type UpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *Lab
}

type UpdateResource

type UpdateResource struct {
	Tags *map[string]string `json:"tags,omitempty"`
}

type WeekDetails

type WeekDetails struct {
	Time     *string   `json:"time,omitempty"`
	Weekdays *[]string `json:"weekdays,omitempty"`
}

Jump to

Keyboard shortcuts

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