creating

package
v0.0.0-...-4221c17 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Doer

type Doer interface {
	Do(*http.Request) (*http.Response, error)
}

type NewVMVirtualNetworkAdapterInput

type NewVMVirtualNetworkAdapterInput struct {
	VMNetworkName   *string
	VMNetworkID     *string `json:"VMNetworkId"`
	VMSubnetName    *string
	MACAddressType  *string
	MACAddress      *string
	IPv4AddressType *string
	IPv6AddressType *string
	VLanEnabled     *bool
	VLanID          *int16 `json:"VLanId"`
}

NewVMVirtualNetworkAdapterInput object

type Service

type Service struct {
	Doer
	// contains filtered or unexported fields
}

Service getter service

type UserAndRole

type UserAndRole struct {
	UserName *string
	RoleName *string
	RoleID   *string
}

UserAndRole object

type VirtualDiskDrive

type VirtualDiskDrive struct {
	ODataType         *string `json:"odata.type,omitempty"`
	StampID           *string `json:"StampId,omitempty"`
	VMID              *string `json:"VMId,omitempty"`
	VirtualHardDiskID *string `json:"VirtualHardDiskId,omitempty"`
	Bus               *uint8  `json:",omitempty"`
	LUN               *uint8  `json:",omitempty"`
	IDE               *bool   `json:",omitempty"`
	SCSI              *bool   `json:",omitempty"`
	FileName          *string `json:",omitempty"`
	Path              *string `json:",omitempty"`
}

VirtualDiskDrive object for creation

type VirtualDiskDriveCreator

type VirtualDiskDriveCreator interface {
	Create(*VirtualDiskDrive) (*string, error)
}

VirtualDiskDriveCreator interface for creating virtual disk drives

type VirtualDiskDriveService

type VirtualDiskDriveService Service

VirtualDiskDriveService performs the create operations

func NewVirtualDiskDriveService

func NewVirtualDiskDriveService(doer Doer, serviceURL string, stamp string) *VirtualDiskDriveService

NewVirtualDiskDriveService creates a new cloud service

func (VirtualDiskDriveService) Create

func (s VirtualDiskDriveService) Create(drive *VirtualDiskDrive) (id *string, err error)

Create creates a new virtual disk drive object and returns its ID

type VirtualMachine

type VirtualMachine struct {
	ODataType                      *string `json:"odata.type"`
	StampID                        *string `json:"StampId"`
	Name                           *string
	CloudID                        *string `json:"CloudId"`
	VMTemplateID                   *string `json:"VMTemplateId"`
	VirtualHardDiskID              *string `json:"VirtualHardDiskId"`
	HardwareProfileID              *string `json:"HardwareProfileId"`
	Description                    *string
	CostCenter                     *string
	Tag                            *string
	ComputerName                   *string
	BlockDynamicOptimization       *bool
	CPULimitForMigration           *bool
	CPULimitFunctionality          *bool
	CPURelativeWeight              *int
	DelayStartSeconds              *int
	Domain                         *string
	DynamicMemoryBufferPercentage  *int
	DynamicMemoryEnabled           *bool
	DynamicMemoryMaximumMB         *int
	FullName                       *string
	Memory                         *int
	MemoryWeight                   *int
	OrganizationName               *string
	StartAction                    *string
	StartVM                        *bool
	StopAction                     *string
	CPUCount                       *uint8
	Owner                          *UserAndRole
	ProductKey                     *string
	WorkGroup                      *string
	TimeZone                       *int
	RunAsAccountUserName           *string
	UserName                       *string
	Password                       *string
	LocalAdminRunAsAccountName     *string
	LocalAdminUserName             *string
	LocalAdminPassword             *string
	NewVirtualNetworkAdapterInput  []*NewVMVirtualNetworkAdapterInput
	LinuxAdministratorSSHKey       *string
	LinuxDomainName                *string
	LinuxAdministratorSSHKeyString *string
}

VirtualMachine object for creation

type VirtualMachineCreator

type VirtualMachineCreator interface {
	Create(*VirtualMachine) (*string, error)
}

VirtualMachineCreator interface for creating virtual machines

type VirtualMachineService

type VirtualMachineService Service

VirtualMachineService performs the create operations

func NewVirtualMachineService

func NewVirtualMachineService(doer Doer, serviceURL string, stamp string) *VirtualMachineService

NewVirtualMachineService creates a new cloud service

func (VirtualMachineService) Create

func (s VirtualMachineService) Create(vm *VirtualMachine) (id *string, err error)

Create creates a new virtual machine object and returns its ID

Jump to

Keyboard shortcuts

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