activesessionhostconfiguration

package
v0.20241212.1154051 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MPL-2.0 Imports: 14 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2024-04-08-preview/activesessionhostconfiguration Documentation

The activesessionhostconfiguration SDK allows for interaction with Azure Resource Manager desktopvirtualization (API Version 2024-04-08-preview).

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/desktopvirtualization/2024-04-08-preview/activesessionhostconfiguration"

Client Initialization

client := activesessionhostconfiguration.NewActiveSessionHostConfigurationClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ActiveSessionHostConfigurationClient.Get

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

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

Example Usage: ActiveSessionHostConfigurationClient.ListByHostPool

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForDomainJoinType

func PossibleValuesForDomainJoinType() []string

func PossibleValuesForType

func PossibleValuesForType() []string

func PossibleValuesForVirtualMachineDiskType

func PossibleValuesForVirtualMachineDiskType() []string

func PossibleValuesForVirtualMachineSecurityType

func PossibleValuesForVirtualMachineSecurityType() []string

func ValidateHostPoolID

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

ValidateHostPoolID checks that 'input' can be parsed as a Host Pool ID

Types

type ActiveDirectoryInfoProperties

type ActiveDirectoryInfoProperties struct {
	DomainCredentials KeyVaultCredentialsProperties `json:"domainCredentials"`
	DomainName        *string                       `json:"domainName,omitempty"`
	OuPath            string                        `json:"ouPath"`
}

type ActiveSessionHostConfiguration

type ActiveSessionHostConfiguration struct {
	Id         *string                                  `json:"id,omitempty"`
	Name       *string                                  `json:"name,omitempty"`
	Properties ActiveSessionHostConfigurationProperties `json:"properties"`
	SystemData *systemdata.SystemData                   `json:"systemData,omitempty"`
	Type       *string                                  `json:"type,omitempty"`
}

type ActiveSessionHostConfigurationClient

type ActiveSessionHostConfigurationClient struct {
	Client *resourcemanager.Client
}

func NewActiveSessionHostConfigurationClientWithBaseURI

func NewActiveSessionHostConfigurationClientWithBaseURI(sdkApi sdkEnv.Api) (*ActiveSessionHostConfigurationClient, error)

func (ActiveSessionHostConfigurationClient) Get

Get ...

func (ActiveSessionHostConfigurationClient) ListByHostPool

ListByHostPool ...

func (ActiveSessionHostConfigurationClient) ListByHostPoolComplete

ListByHostPoolComplete retrieves all the results into a single object

func (ActiveSessionHostConfigurationClient) ListByHostPoolCompleteMatchingPredicate

ListByHostPoolCompleteMatchingPredicate retrieves all the results and then applies the predicate

type ActiveSessionHostConfigurationOperationPredicate

type ActiveSessionHostConfigurationOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (ActiveSessionHostConfigurationOperationPredicate) Matches

type ActiveSessionHostConfigurationProperties

type ActiveSessionHostConfigurationProperties struct {
	AvailabilityZones            *[]int64                       `json:"availabilityZones,omitempty"`
	BootDiagnosticsInfo          *BootDiagnosticsInfoProperties `json:"bootDiagnosticsInfo,omitempty"`
	CustomConfigurationScriptURL *string                        `json:"customConfigurationScriptUrl,omitempty"`
	DiskInfo                     DiskInfoProperties             `json:"diskInfo"`
	DomainInfo                   DomainInfoProperties           `json:"domainInfo"`
	FriendlyName                 *string                        `json:"friendlyName,omitempty"`
	ImageInfo                    ImageInfoProperties            `json:"imageInfo"`
	NetworkInfo                  NetworkInfoProperties          `json:"networkInfo"`
	SecurityInfo                 *SecurityInfoProperties        `json:"securityInfo,omitempty"`
	VMAdminCredentials           KeyVaultCredentialsProperties  `json:"vmAdminCredentials"`
	VMLocation                   *string                        `json:"vmLocation,omitempty"`
	VMNamePrefix                 string                         `json:"vmNamePrefix"`
	VMResourceGroup              *string                        `json:"vmResourceGroup,omitempty"`
	VMSizeId                     string                         `json:"vmSizeId"`
	VMTags                       *map[string]string             `json:"vmTags,omitempty"`
	Version                      *string                        `json:"version,omitempty"`
}

func (*ActiveSessionHostConfigurationProperties) GetVersionAsTime

func (o *ActiveSessionHostConfigurationProperties) GetVersionAsTime() (*time.Time, error)

func (*ActiveSessionHostConfigurationProperties) SetVersionAsTime

func (o *ActiveSessionHostConfigurationProperties) SetVersionAsTime(input time.Time)

type AzureActiveDirectoryInfoProperties

type AzureActiveDirectoryInfoProperties struct {
	MdmProviderGuid string `json:"mdmProviderGuid"`
}

type BootDiagnosticsInfoProperties

type BootDiagnosticsInfoProperties struct {
	Enabled    *bool   `json:"enabled,omitempty"`
	StorageUri *string `json:"storageUri,omitempty"`
}

type CustomInfoProperties

type CustomInfoProperties struct {
	ResourceId string `json:"resourceId"`
}

type DiskInfoProperties

type DiskInfoProperties struct {
	Type VirtualMachineDiskType `json:"type"`
}

type DomainInfoProperties

type DomainInfoProperties struct {
	ActiveDirectoryInfo      *ActiveDirectoryInfoProperties      `json:"activeDirectoryInfo,omitempty"`
	AzureActiveDirectoryInfo *AzureActiveDirectoryInfoProperties `json:"azureActiveDirectoryInfo,omitempty"`
	JoinType                 DomainJoinType                      `json:"joinType"`
}

type DomainJoinType

type DomainJoinType string
const (
	DomainJoinTypeActiveDirectory      DomainJoinType = "ActiveDirectory"
	DomainJoinTypeAzureActiveDirectory DomainJoinType = "AzureActiveDirectory"
)

func (*DomainJoinType) UnmarshalJSON

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

type GetOperationResponse

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

type HostPoolId

type HostPoolId struct {
	SubscriptionId    string
	ResourceGroupName string
	HostPoolName      string
}

HostPoolId is a struct representing the Resource ID for a Host Pool

func NewHostPoolID

func NewHostPoolID(subscriptionId string, resourceGroupName string, hostPoolName string) HostPoolId

NewHostPoolID returns a new HostPoolId struct

func ParseHostPoolID

func ParseHostPoolID(input string) (*HostPoolId, error)

ParseHostPoolID parses 'input' into a HostPoolId

func ParseHostPoolIDInsensitively

func ParseHostPoolIDInsensitively(input string) (*HostPoolId, error)

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

func (*HostPoolId) FromParseResult

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

func (HostPoolId) ID

func (id HostPoolId) ID() string

ID returns the formatted Host Pool ID

func (HostPoolId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Host Pool ID

func (HostPoolId) String

func (id HostPoolId) String() string

String returns a human-readable description of this Host Pool ID

type ImageInfoProperties

type ImageInfoProperties struct {
	CustomInfo      *CustomInfoProperties      `json:"customInfo,omitempty"`
	MarketplaceInfo *MarketplaceInfoProperties `json:"marketplaceInfo,omitempty"`
	Type            Type                       `json:"type"`
}

type KeyVaultCredentialsProperties

type KeyVaultCredentialsProperties struct {
	PasswordKeyVaultSecretUri string `json:"passwordKeyVaultSecretUri"`
	UsernameKeyVaultSecretUri string `json:"usernameKeyVaultSecretUri"`
}

type ListByHostPoolCompleteResult

type ListByHostPoolCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []ActiveSessionHostConfiguration
}

type ListByHostPoolCustomPager

type ListByHostPoolCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListByHostPoolCustomPager) NextPageLink() *odata.Link

type ListByHostPoolOperationResponse

type ListByHostPoolOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ActiveSessionHostConfiguration
}

type MarketplaceInfoProperties

type MarketplaceInfoProperties struct {
	ExactVersion string `json:"exactVersion"`
	Offer        string `json:"offer"`
	Publisher    string `json:"publisher"`
	Sku          string `json:"sku"`
}

type NetworkInfoProperties

type NetworkInfoProperties struct {
	SecurityGroupId *string `json:"securityGroupId,omitempty"`
	SubnetId        string  `json:"subnetId"`
}

type SecurityInfoProperties

type SecurityInfoProperties struct {
	SecureBootEnabled *bool                       `json:"secureBootEnabled,omitempty"`
	Type              *VirtualMachineSecurityType `json:"type,omitempty"`
	VTpmEnabled       *bool                       `json:"vTpmEnabled,omitempty"`
}

type Type

type Type string
const (
	TypeCustom      Type = "Custom"
	TypeMarketplace Type = "Marketplace"
)

func (*Type) UnmarshalJSON

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

type VirtualMachineDiskType

type VirtualMachineDiskType string
const (
	VirtualMachineDiskTypePremiumLRS     VirtualMachineDiskType = "Premium_LRS"
	VirtualMachineDiskTypeStandardLRS    VirtualMachineDiskType = "Standard_LRS"
	VirtualMachineDiskTypeStandardSSDLRS VirtualMachineDiskType = "StandardSSD_LRS"
)

func (*VirtualMachineDiskType) UnmarshalJSON

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

type VirtualMachineSecurityType

type VirtualMachineSecurityType string
const (
	VirtualMachineSecurityTypeConfidentialVM VirtualMachineSecurityType = "ConfidentialVM"
	VirtualMachineSecurityTypeStandard       VirtualMachineSecurityType = "Standard"
	VirtualMachineSecurityTypeTrustedLaunch  VirtualMachineSecurityType = "TrustedLaunch"
)

func (*VirtualMachineSecurityType) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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