hypervmachines

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: 13 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-07-07/hypervmachines Documentation

The hypervmachines SDK allows for interaction with the Azure Resource Manager Service migrate (API Version 2020-07-07).

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/migrate/2020-07-07/hypervmachines"

Client Initialization

client := hypervmachines.NewHyperVMachinesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: HyperVMachinesClient.GetAllMachinesInSite

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

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

Example Usage: HyperVMachinesClient.GetMachine

ctx := context.TODO()
id := hypervmachines.NewHyperVSiteMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hyperVSiteValue", "machineValue")

read, err := client.GetMachine(ctx, id)
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 PossibleValuesForHighlyAvailable

func PossibleValuesForHighlyAvailable() []string

func ValidateHyperVSiteID

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

ValidateHyperVSiteID checks that 'input' can be parsed as a Hyper V Site ID

Types

type Application

type Application struct {
	Name     *string `json:"name,omitempty"`
	Provider *string `json:"provider,omitempty"`
	Version  *string `json:"version,omitempty"`
}

type AppsAndRoles

type AppsAndRoles struct {
	Applications      *[]Application      `json:"applications,omitempty"`
	BizTalkServers    *[]BizTalkServer    `json:"bizTalkServers,omitempty"`
	ExchangeServers   *[]ExchangeServer   `json:"exchangeServers,omitempty"`
	Features          *[]Feature          `json:"features,omitempty"`
	OtherDatabases    *[]OtherDatabase    `json:"otherDatabases,omitempty"`
	SharePointServers *[]SharePointServer `json:"sharePointServers,omitempty"`
	SqlServers        *[]SQLServer        `json:"sqlServers,omitempty"`
	SystemCenters     *[]SystemCenter     `json:"systemCenters,omitempty"`
	WebApplications   *[]WebApplication   `json:"webApplications,omitempty"`
}

type BizTalkServer

type BizTalkServer struct {
	ProductName *string `json:"productName,omitempty"`
	Status      *string `json:"status,omitempty"`
}

type ExchangeServer

type ExchangeServer struct {
	Edition     *string `json:"edition,omitempty"`
	ProductName *string `json:"productName,omitempty"`
	Roles       *string `json:"roles,omitempty"`
	ServicePack *string `json:"servicePack,omitempty"`
	Version     *string `json:"version,omitempty"`
}

type Feature

type Feature struct {
	FeatureType *string `json:"featureType,omitempty"`
	Name        *string `json:"name,omitempty"`
	Parent      *string `json:"parent,omitempty"`
	Status      *string `json:"status,omitempty"`
}

type GetAllMachinesInSiteCompleteResult

type GetAllMachinesInSiteCompleteResult struct {
	Items []HyperVMachine
}

type GetAllMachinesInSiteOperationOptions

type GetAllMachinesInSiteOperationOptions struct {
	ContinuationToken *string
	Filter            *string
	Top               *int64
	TotalRecordCount  *int64
}

func DefaultGetAllMachinesInSiteOperationOptions

func DefaultGetAllMachinesInSiteOperationOptions() GetAllMachinesInSiteOperationOptions

func (GetAllMachinesInSiteOperationOptions) ToHeaders added in v0.20230516.1215417

func (GetAllMachinesInSiteOperationOptions) ToOData added in v0.20230516.1215417

func (GetAllMachinesInSiteOperationOptions) ToQuery added in v0.20230516.1215417

type GetAllMachinesInSiteOperationResponse

type GetAllMachinesInSiteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]HyperVMachine
}

type GetMachineOperationResponse

type GetMachineOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *HyperVMachine
}

type GuestOSDetails

type GuestOSDetails struct {
	OsName    *string `json:"osName,omitempty"`
	OsType    *string `json:"osType,omitempty"`
	OsVersion *string `json:"osVersion,omitempty"`
}

type HealthErrorDetails

type HealthErrorDetails struct {
	Code              *string            `json:"code,omitempty"`
	Id                *int64             `json:"id,omitempty"`
	Message           *string            `json:"message,omitempty"`
	MessageParameters *map[string]string `json:"messageParameters,omitempty"`
	PossibleCauses    *string            `json:"possibleCauses,omitempty"`
	RecommendedAction *string            `json:"recommendedAction,omitempty"`
	Severity          *string            `json:"severity,omitempty"`
	Source            *string            `json:"source,omitempty"`
	SummaryMessage    *string            `json:"summaryMessage,omitempty"`
}

type HighlyAvailable

type HighlyAvailable string
const (
	HighlyAvailableNo      HighlyAvailable = "No"
	HighlyAvailableUnknown HighlyAvailable = "Unknown"
	HighlyAvailableYes     HighlyAvailable = "Yes"
)

func (*HighlyAvailable) UnmarshalJSON added in v0.20230516.1215417

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

type HyperVDisk

type HyperVDisk struct {
	DiskType       *string `json:"diskType,omitempty"`
	InstanceId     *string `json:"instanceId,omitempty"`
	Lun            *int64  `json:"lun,omitempty"`
	MaxSizeInBytes *int64  `json:"maxSizeInBytes,omitempty"`
	Name           *string `json:"name,omitempty"`
	Path           *string `json:"path,omitempty"`
	VhdId          *string `json:"vhdId,omitempty"`
}

type HyperVMachine

type HyperVMachine struct {
	Id         *string                  `json:"id,omitempty"`
	Name       *string                  `json:"name,omitempty"`
	Properties *HyperVMachineProperties `json:"properties,omitempty"`
	Type       *string                  `json:"type,omitempty"`
}

type HyperVMachineOperationPredicate

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

func (HyperVMachineOperationPredicate) Matches

type HyperVMachineProperties

type HyperVMachineProperties struct {
	AllocatedMemoryInMB               *float64                `json:"allocatedMemoryInMB,omitempty"`
	AppsAndRoles                      *AppsAndRoles           `json:"appsAndRoles,omitempty"`
	BiosGuid                          *string                 `json:"biosGuid,omitempty"`
	BiosSerialNumber                  *string                 `json:"biosSerialNumber,omitempty"`
	ClusterFqdn                       *string                 `json:"clusterFqdn,omitempty"`
	ClusterId                         *string                 `json:"clusterId,omitempty"`
	CreatedTimestamp                  *string                 `json:"createdTimestamp,omitempty"`
	Disks                             *[]HyperVDisk           `json:"disks,omitempty"`
	DisplayName                       *string                 `json:"displayName,omitempty"`
	Errors                            *[]HealthErrorDetails   `json:"errors,omitempty"`
	Firmware                          *string                 `json:"firmware,omitempty"`
	Generation                        *int64                  `json:"generation,omitempty"`
	GuestDetailsDiscoveryTimestamp    *string                 `json:"guestDetailsDiscoveryTimestamp,omitempty"`
	GuestOSDetails                    *GuestOSDetails         `json:"guestOSDetails,omitempty"`
	HighAvailability                  *HighlyAvailable        `json:"highAvailability,omitempty"`
	HostFqdn                          *string                 `json:"hostFqdn,omitempty"`
	HostId                            *string                 `json:"hostId,omitempty"`
	InstanceUuid                      *string                 `json:"instanceUuid,omitempty"`
	IsDeleted                         *bool                   `json:"isDeleted,omitempty"`
	IsDynamicMemoryEnabled            *bool                   `json:"isDynamicMemoryEnabled,omitempty"`
	IsGuestDetailsDiscoveryInProgress *bool                   `json:"isGuestDetailsDiscoveryInProgress,omitempty"`
	ManagementServerType              *string                 `json:"managementServerType,omitempty"`
	MaxMemoryMB                       *int64                  `json:"maxMemoryMB,omitempty"`
	NetworkAdapters                   *[]HyperVNetworkAdapter `json:"networkAdapters,omitempty"`
	NumberOfApplications              *int64                  `json:"numberOfApplications,omitempty"`
	NumberOfProcessorCore             *int64                  `json:"numberOfProcessorCore,omitempty"`
	OperatingSystemDetails            *OperatingSystem        `json:"operatingSystemDetails,omitempty"`
	PowerStatus                       *string                 `json:"powerStatus,omitempty"`
	UpdatedTimestamp                  *string                 `json:"updatedTimestamp,omitempty"`
	VMConfigurationFileLocation       *string                 `json:"vmConfigurationFileLocation,omitempty"`
	VMFqdn                            *string                 `json:"vmFqdn,omitempty"`
	Version                           *string                 `json:"version,omitempty"`
}

func (*HyperVMachineProperties) GetGuestDetailsDiscoveryTimestampAsTime

func (o *HyperVMachineProperties) GetGuestDetailsDiscoveryTimestampAsTime() (*time.Time, error)

func (*HyperVMachineProperties) SetGuestDetailsDiscoveryTimestampAsTime

func (o *HyperVMachineProperties) SetGuestDetailsDiscoveryTimestampAsTime(input time.Time)

type HyperVMachinesClient

type HyperVMachinesClient struct {
	Client *resourcemanager.Client
}

func NewHyperVMachinesClientWithBaseURI

func NewHyperVMachinesClientWithBaseURI(sdkApi sdkEnv.Api) (*HyperVMachinesClient, error)

func (HyperVMachinesClient) GetAllMachinesInSite

GetAllMachinesInSite ...

func (HyperVMachinesClient) GetAllMachinesInSiteComplete

GetAllMachinesInSiteComplete retrieves all the results into a single object

func (HyperVMachinesClient) GetAllMachinesInSiteCompleteMatchingPredicate

func (c HyperVMachinesClient) GetAllMachinesInSiteCompleteMatchingPredicate(ctx context.Context, id HyperVSiteId, options GetAllMachinesInSiteOperationOptions, predicate HyperVMachineOperationPredicate) (result GetAllMachinesInSiteCompleteResult, err error)

GetAllMachinesInSiteCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (HyperVMachinesClient) GetMachine

GetMachine ...

type HyperVNetworkAdapter

type HyperVNetworkAdapter struct {
	IPAddressList   *[]string `json:"ipAddressList,omitempty"`
	IPAddressType   *string   `json:"ipAddressType,omitempty"`
	MacAddress      *string   `json:"macAddress,omitempty"`
	NetworkId       *string   `json:"networkId,omitempty"`
	NetworkName     *string   `json:"networkName,omitempty"`
	NicId           *string   `json:"nicId,omitempty"`
	NicType         *string   `json:"nicType,omitempty"`
	StaticIPAddress *string   `json:"staticIpAddress,omitempty"`
	SubnetName      *string   `json:"subnetName,omitempty"`
}

type HyperVSiteId

type HyperVSiteId struct {
	SubscriptionId    string
	ResourceGroupName string
	HyperVSiteName    string
}

HyperVSiteId is a struct representing the Resource ID for a Hyper V Site

func NewHyperVSiteID

func NewHyperVSiteID(subscriptionId string, resourceGroupName string, hyperVSiteName string) HyperVSiteId

NewHyperVSiteID returns a new HyperVSiteId struct

func ParseHyperVSiteID

func ParseHyperVSiteID(input string) (*HyperVSiteId, error)

ParseHyperVSiteID parses 'input' into a HyperVSiteId

func ParseHyperVSiteIDInsensitively

func ParseHyperVSiteIDInsensitively(input string) (*HyperVSiteId, error)

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

func (*HyperVSiteId) FromParseResult added in v0.20231127.1171502

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

func (HyperVSiteId) ID

func (id HyperVSiteId) ID() string

ID returns the formatted Hyper V Site ID

func (HyperVSiteId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Hyper V Site ID

func (HyperVSiteId) String

func (id HyperVSiteId) String() string

String returns a human-readable description of this Hyper V Site ID

type OperatingSystem

type OperatingSystem struct {
	OsName    *string `json:"osName,omitempty"`
	OsType    *string `json:"osType,omitempty"`
	OsVersion *string `json:"osVersion,omitempty"`
}

type OtherDatabase

type OtherDatabase struct {
	DatabaseType *string `json:"databaseType,omitempty"`
	Instance     *string `json:"instance,omitempty"`
	Version      *string `json:"version,omitempty"`
}

type SQLServer

type SQLServer struct {
	ClusterName *string `json:"clusterName,omitempty"`
	Clustered   *string `json:"clustered,omitempty"`
	Edition     *string `json:"edition,omitempty"`
	Name        *string `json:"name,omitempty"`
	ServicePack *string `json:"servicePack,omitempty"`
	Version     *string `json:"version,omitempty"`
}

type SharePointServer

type SharePointServer struct {
	IsEnterprise *bool   `json:"isEnterprise,omitempty"`
	ProductName  *string `json:"productName,omitempty"`
	Status       *string `json:"status,omitempty"`
	Version      *string `json:"version,omitempty"`
}

type SystemCenter

type SystemCenter struct {
	ProductName *string `json:"productName,omitempty"`
	Status      *string `json:"status,omitempty"`
	Version     *string `json:"version,omitempty"`
}

type WebApplication

type WebApplication struct {
	ApplicationPool *string `json:"applicationPool,omitempty"`
	GroupName       *string `json:"groupName,omitempty"`
	Name            *string `json:"name,omitempty"`
	Platform        *string `json:"platform,omitempty"`
	Status          *string `json:"status,omitempty"`
	WebServer       *string `json:"webServer,omitempty"`
}

Jump to

Keyboard shortcuts

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