labs

package
v0.20231214.1160726 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MPL-2.0 Imports: 14 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       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type CreateEnvironmentOperationResponse

type CreateEnvironmentOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

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       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type EnableStatus

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

func (*EnableStatus) UnmarshalJSON added in v0.20230815.1165905

func (s *EnableStatus) UnmarshalJSON(bytes []byte) error

type EnvironmentPermission

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

func (*EnvironmentPermission) UnmarshalJSON added in v0.20230815.1165905

func (s *EnvironmentPermission) UnmarshalJSON(bytes []byte) error

type ExportResourceUsageOperationResponse

type ExportResourceUsageOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

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
	OData        *odata.OData
	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

func (GetOperationOptions) ToHeaders added in v0.20230815.1165905

func (o GetOperationOptions) ToHeaders() *client.Headers

func (GetOperationOptions) ToOData added in v0.20230815.1165905

func (o GetOperationOptions) ToOData() *odata.Query

func (GetOperationOptions) ToQuery added in v0.20230815.1165905

func (o GetOperationOptions) ToQuery() *client.QueryParams

type GetOperationResponse

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

type HostCachingOptions

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

func (*HostCachingOptions) UnmarshalJSON added in v0.20230815.1165905

func (s *HostCachingOptions) UnmarshalJSON(bytes []byte) error

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       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

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) FromParseResult added in v0.20231127.1171502

func (id *LabId) FromParseResult(input resourceids.ParseResult) error

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 *resourcemanager.Client
}

func NewLabsClientWithBaseURI

func NewLabsClientWithBaseURI(sdkApi sdkEnv.Api) (*LabsClient, error)

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 the results into a single object

func (LabsClient) ListByResourceGroupCompleteMatchingPredicate

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

ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (LabsClient) ListBySubscription

ListBySubscription ...

func (LabsClient) ListBySubscriptionComplete

ListBySubscriptionComplete retrieves all the results into a single object

func (LabsClient) ListBySubscriptionCompleteMatchingPredicate

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

ListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (LabsClient) ListVhds

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

ListVhds ...

func (LabsClient) ListVhdsComplete

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

ListVhdsComplete retrieves all the results into a single object

func (LabsClient) ListVhdsCompleteMatchingPredicate

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

ListVhdsCompleteMatchingPredicate retrieves all the results and then applies 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

func (ListByResourceGroupOperationOptions) ToHeaders added in v0.20230815.1165905

func (ListByResourceGroupOperationOptions) ToOData added in v0.20230815.1165905

func (ListByResourceGroupOperationOptions) ToQuery added in v0.20230815.1165905

type ListByResourceGroupOperationResponse

type ListByResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]Lab
}

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

func (ListBySubscriptionOperationOptions) ToHeaders added in v0.20230815.1165905

func (ListBySubscriptionOperationOptions) ToOData added in v0.20230815.1165905

func (ListBySubscriptionOperationOptions) ToQuery added in v0.20230815.1165905

type ListBySubscriptionOperationResponse

type ListBySubscriptionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]Lab
}

type ListVhdsCompleteResult

type ListVhdsCompleteResult struct {
	Items []LabVhd
}

type ListVhdsOperationResponse

type ListVhdsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]LabVhd
}

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

func (*PremiumDataDisk) UnmarshalJSON added in v0.20230815.1165905

func (s *PremiumDataDisk) UnmarshalJSON(bytes []byte) error

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

func (*StorageType) UnmarshalJSON added in v0.20230815.1165905

func (s *StorageType) UnmarshalJSON(bytes []byte) error

type TransportProtocol

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

func (*TransportProtocol) UnmarshalJSON added in v0.20230815.1165905

func (s *TransportProtocol) UnmarshalJSON(bytes []byte) error

type UpdateOperationResponse

type UpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	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