machines

package
v0.20240125.1172517 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MPL-2.0 Imports: 13 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/machines Documentation

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

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-01-01/machines"

Client Initialization

client := machines.NewMachinesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: MachinesClient.GetAllMachinesInSite

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

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

Example Usage: MachinesClient.GetMachine

ctx := context.TODO()
id := machines.NewVMwareSiteMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmwareSiteValue", "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
}

Example Usage: MachinesClient.StartMachine

ctx := context.TODO()
id := machines.NewVMwareSiteMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmwareSiteValue", "machineValue")

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

Example Usage: MachinesClient.StopMachine

ctx := context.TODO()
id := machines.NewVMwareSiteMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmwareSiteValue", "machineValue")

read, err := client.StopMachine(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 PossibleValuesForVirtualDiskMode

func PossibleValuesForVirtualDiskMode() []string

func ValidateVMwareSiteID

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

ValidateVMwareSiteID checks that 'input' can be parsed as a V Mware 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 {
	LatestHttpResponse *http.Response
	Items              []VMwareMachine
}

type GetAllMachinesInSiteOperationOptions

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

func DefaultGetAllMachinesInSiteOperationOptions

func DefaultGetAllMachinesInSiteOperationOptions() GetAllMachinesInSiteOperationOptions

func (GetAllMachinesInSiteOperationOptions) ToHeaders

func (GetAllMachinesInSiteOperationOptions) ToOData

func (GetAllMachinesInSiteOperationOptions) ToQuery

type GetAllMachinesInSiteOperationResponse

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

type GetMachineOperationResponse

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

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 MachinesClient

type MachinesClient struct {
	Client *resourcemanager.Client
}

func NewMachinesClientWithBaseURI

func NewMachinesClientWithBaseURI(sdkApi sdkEnv.Api) (*MachinesClient, error)

func (MachinesClient) GetAllMachinesInSite

GetAllMachinesInSite ...

func (MachinesClient) GetAllMachinesInSiteComplete

GetAllMachinesInSiteComplete retrieves all the results into a single object

func (MachinesClient) GetAllMachinesInSiteCompleteMatchingPredicate

func (c MachinesClient) GetAllMachinesInSiteCompleteMatchingPredicate(ctx context.Context, id VMwareSiteId, options GetAllMachinesInSiteOperationOptions, predicate VMwareMachineOperationPredicate) (result GetAllMachinesInSiteCompleteResult, err error)

GetAllMachinesInSiteCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (MachinesClient) GetMachine

GetMachine ...

func (MachinesClient) StartMachine

StartMachine ...

func (MachinesClient) StopMachine

StopMachine ...

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 StartMachineOperationResponse

type StartMachineOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type StopMachineOperationResponse

type StopMachineOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type SystemCenter

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

type VMwareDisk

type VMwareDisk struct {
	DiskMode               *VirtualDiskMode `json:"diskMode,omitempty"`
	DiskProvisioningPolicy *string          `json:"diskProvisioningPolicy,omitempty"`
	DiskScrubbingPolicy    *string          `json:"diskScrubbingPolicy,omitempty"`
	DiskType               *string          `json:"diskType,omitempty"`
	Label                  *string          `json:"label,omitempty"`
	Lun                    *int64           `json:"lun,omitempty"`
	MaxSizeInBytes         *int64           `json:"maxSizeInBytes,omitempty"`
	Name                   *string          `json:"name,omitempty"`
	Path                   *string          `json:"path,omitempty"`
	Uuid                   *string          `json:"uuid,omitempty"`
}

type VMwareMachine

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

type VMwareMachineOperationPredicate

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

func (VMwareMachineOperationPredicate) Matches

type VMwareMachineProperties

type VMwareMachineProperties struct {
	AllocatedMemoryInMB               *float64                `json:"allocatedMemoryInMB,omitempty"`
	AppsAndRoles                      *AppsAndRoles           `json:"appsAndRoles,omitempty"`
	BiosGuid                          *string                 `json:"biosGuid,omitempty"`
	BiosSerialNumber                  *string                 `json:"biosSerialNumber,omitempty"`
	ChangeTrackingEnabled             *bool                   `json:"changeTrackingEnabled,omitempty"`
	ChangeTrackingSupported           *bool                   `json:"changeTrackingSupported,omitempty"`
	CreatedTimestamp                  *string                 `json:"createdTimestamp,omitempty"`
	DataCenterScope                   *string                 `json:"dataCenterScope,omitempty"`
	DependencyMapping                 *string                 `json:"dependencyMapping,omitempty"`
	DependencyMappingStartTime        *string                 `json:"dependencyMappingStartTime,omitempty"`
	Description                       *string                 `json:"description,omitempty"`
	Disks                             *[]VMwareDisk           `json:"disks,omitempty"`
	DisplayName                       *string                 `json:"displayName,omitempty"`
	Errors                            *[]HealthErrorDetails   `json:"errors,omitempty"`
	Firmware                          *string                 `json:"firmware,omitempty"`
	GuestDetailsDiscoveryTimestamp    *string                 `json:"guestDetailsDiscoveryTimestamp,omitempty"`
	GuestOSDetails                    *GuestOSDetails         `json:"guestOSDetails,omitempty"`
	HostInMaintenanceMode             *bool                   `json:"hostInMaintenanceMode,omitempty"`
	HostName                          *string                 `json:"hostName,omitempty"`
	HostPowerState                    *string                 `json:"hostPowerState,omitempty"`
	HostVersion                       *string                 `json:"hostVersion,omitempty"`
	InstanceUuid                      *string                 `json:"instanceUuid,omitempty"`
	IsDeleted                         *bool                   `json:"isDeleted,omitempty"`
	IsGuestDetailsDiscoveryInProgress *bool                   `json:"isGuestDetailsDiscoveryInProgress,omitempty"`
	MaxSnapshots                      *int64                  `json:"maxSnapshots,omitempty"`
	NetworkAdapters                   *[]VMwareNetworkAdapter `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"`
	VCenterFQDN                       *string                 `json:"vCenterFQDN,omitempty"`
	VCenterId                         *string                 `json:"vCenterId,omitempty"`
	VMConfigurationFileLocation       *string                 `json:"vmConfigurationFileLocation,omitempty"`
	VMFqdn                            *string                 `json:"vmFqdn,omitempty"`
	VMwareToolsStatus                 *string                 `json:"vMwareToolsStatus,omitempty"`
}

func (*VMwareMachineProperties) GetDependencyMappingStartTimeAsTime

func (o *VMwareMachineProperties) GetDependencyMappingStartTimeAsTime() (*time.Time, error)

func (*VMwareMachineProperties) GetGuestDetailsDiscoveryTimestampAsTime

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

func (*VMwareMachineProperties) SetDependencyMappingStartTimeAsTime

func (o *VMwareMachineProperties) SetDependencyMappingStartTimeAsTime(input time.Time)

func (*VMwareMachineProperties) SetGuestDetailsDiscoveryTimestampAsTime

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

type VMwareNetworkAdapter

type VMwareNetworkAdapter struct {
	IPAddressList *[]string `json:"ipAddressList,omitempty"`
	IPAddressType *string   `json:"ipAddressType,omitempty"`
	Label         *string   `json:"label,omitempty"`
	MacAddress    *string   `json:"macAddress,omitempty"`
	NetworkName   *string   `json:"networkName,omitempty"`
	NicId         *string   `json:"nicId,omitempty"`
}

type VMwareSiteId

type VMwareSiteId struct {
	SubscriptionId    string
	ResourceGroupName string
	VmwareSiteName    string
}

VMwareSiteId is a struct representing the Resource ID for a V Mware Site

func NewVMwareSiteID

func NewVMwareSiteID(subscriptionId string, resourceGroupName string, vmwareSiteName string) VMwareSiteId

NewVMwareSiteID returns a new VMwareSiteId struct

func ParseVMwareSiteID

func ParseVMwareSiteID(input string) (*VMwareSiteId, error)

ParseVMwareSiteID parses 'input' into a VMwareSiteId

func ParseVMwareSiteIDInsensitively

func ParseVMwareSiteIDInsensitively(input string) (*VMwareSiteId, error)

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

func (*VMwareSiteId) FromParseResult

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

func (VMwareSiteId) ID

func (id VMwareSiteId) ID() string

ID returns the formatted V Mware Site ID

func (VMwareSiteId) Segments

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

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

func (VMwareSiteId) String

func (id VMwareSiteId) String() string

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

type VirtualDiskMode

type VirtualDiskMode string
const (
	VirtualDiskModeAppend                   VirtualDiskMode = "append"
	VirtualDiskModeIndependentNonpersistent VirtualDiskMode = "independent_nonpersistent"
	VirtualDiskModeIndependentPersistent    VirtualDiskMode = "independent_persistent"
	VirtualDiskModeNonpersistent            VirtualDiskMode = "nonpersistent"
	VirtualDiskModePersistent               VirtualDiskMode = "persistent"
	VirtualDiskModeUndoable                 VirtualDiskMode = "undoable"
)

func (*VirtualDiskMode) UnmarshalJSON

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

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