azure

package
v2.3.9+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2018 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CLOUD_PROVIDER_AZURE    = models.CLOUD_PROVIDER_AZURE
	CLOUD_PROVIDER_AZURE_CN = "微软"

	AZURE_API_VERSION = "2016-02-01"
)
View Source
const (
	DefaultStorageAccount string = "image"
	DefaultContainer      string = "image-cache"

	DefaultReadBlockSize int64 = 4 * 1024 * 1024
)
View Source
const (
	DEFAULT_EXTENSION_NAME = "enablevmaccess"
)
View Source
const (
	DEFAULT_USER = "yunion"
)
View Source
const (
	InternetChargeByTraffic = TInternetChargeType("PayByTraffic")
)

Variables

View Source
var CLASSIC_VM_SIZES = map[string]ClassicVMSize{
	"ExtraSmall":      {MemoryInMB: 786, NumberOfCores: 1, StorageSize: 20, MaxNic: 1},
	"Small":           {MemoryInMB: 1.75 * 1024, NumberOfCores: 1, StorageSize: 225, MaxNic: 1},
	"Medium":          {MemoryInMB: 3.5 * 1024, NumberOfCores: 2, StorageSize: 490, MaxNic: 1},
	"Large":           {MemoryInMB: 7 * 1024, NumberOfCores: 4, StorageSize: 1000, MaxNic: 2},
	"ExtraLarge":      {MemoryInMB: 14 * 1024, NumberOfCores: 8, StorageSize: 2040, MaxNic: 4},
	"A5":              {MemoryInMB: 14 * 1024, NumberOfCores: 2, StorageSize: 490, MaxNic: 1},
	"A6":              {MemoryInMB: 28 * 1024, NumberOfCores: 4, StorageSize: 1000, MaxNic: 2},
	"A7":              {MemoryInMB: 56 * 1024, NumberOfCores: 8, StorageSize: 2040, MaxNic: 4},
	"A8*":             {MemoryInMB: 56 * 1024, NumberOfCores: 8, StorageSize: 1817, MaxNic: 2},
	"A9*":             {MemoryInMB: 112 * 1024, NumberOfCores: 16, StorageSize: 1817, MaxNic: 4},
	"A10":             {MemoryInMB: 56 * 1024, NumberOfCores: 8, StorageSize: 1817, MaxNic: 2},
	"A11":             {MemoryInMB: 112 * 1024, NumberOfCores: 16, StorageSize: 1817, MaxNic: 4},
	"Standard_A1_v2":  {MemoryInMB: 2 * 1024, NumberOfCores: 1, StorageSize: 10, MaxNic: 1},
	"Standard_A2_v2":  {MemoryInMB: 4 * 1024, NumberOfCores: 2, StorageSize: 20, MaxNic: 2},
	"Standard_A4_v2":  {MemoryInMB: 8 * 1024, NumberOfCores: 4, StorageSize: 40, MaxNic: 4},
	"Standard_A8_v2":  {MemoryInMB: 16 * 1024, NumberOfCores: 8, StorageSize: 80, MaxNic: 8},
	"Standard_A2m_v2": {MemoryInMB: 16 * 1024, NumberOfCores: 2, StorageSize: 20, MaxNic: 2},
	"Standard_A4m_v2": {MemoryInMB: 32 * 1024, NumberOfCores: 4, StorageSize: 40, MaxNic: 4},
	"Standard_A8m_v2": {MemoryInMB: 64 * 1024, NumberOfCores: 8, StorageSize: 80, MaxNic: 8},
	"Standard_D1":     {MemoryInMB: 3 * 1024, NumberOfCores: 1, StorageSize: 50, MaxNic: 1},
	"Standard_D2":     {MemoryInMB: 7 * 1024, NumberOfCores: 2, StorageSize: 100, MaxNic: 2},
	"Standard_D3":     {MemoryInMB: 14 * 1024, NumberOfCores: 4, StorageSize: 200, MaxNic: 4},
	"Standard_D4":     {MemoryInMB: 28 * 1024, NumberOfCores: 8, StorageSize: 400, MaxNic: 8},
	"Standard_D11":    {MemoryInMB: 14 * 1024, NumberOfCores: 2, StorageSize: 100, MaxNic: 2},
	"Standard_D12":    {MemoryInMB: 28 * 1024, NumberOfCores: 4, StorageSize: 200, MaxNic: 4},
	"Standard_D13":    {MemoryInMB: 56 * 1024, NumberOfCores: 8, StorageSize: 400, MaxNic: 8},
	"Standard_D14":    {MemoryInMB: 112 * 1024, NumberOfCores: 16, StorageSize: 800, MaxNic: 8},
	"Standard_D1_v2":  {MemoryInMB: 3 * 1024, NumberOfCores: 1, StorageSize: 50, MaxNic: 1},
	"Standard_D2_v2":  {MemoryInMB: 7 * 1024, NumberOfCores: 2, StorageSize: 100, MaxNic: 2},
	"Standard_D3_v2":  {MemoryInMB: 14 * 1024, NumberOfCores: 4, StorageSize: 200, MaxNic: 4},
	"Standard_D4_v2":  {MemoryInMB: 28 * 1024, NumberOfCores: 8, StorageSize: 400, MaxNic: 8},
	"Standard_D5_v2":  {MemoryInMB: 56 * 1024, NumberOfCores: 16, StorageSize: 800, MaxNic: 8},
	"Standard_D11_v2": {MemoryInMB: 14 * 1024, NumberOfCores: 2, StorageSize: 100, MaxNic: 2},
	"Standard_D12_v2": {MemoryInMB: 28 * 1024, NumberOfCores: 4, StorageSize: 200, MaxNic: 4},
	"Standard_D13_v2": {MemoryInMB: 56 * 1024, NumberOfCores: 8, StorageSize: 400, MaxNic: 8},
	"Standard_D14_v2": {MemoryInMB: 112 * 1024, NumberOfCores: 16, StorageSize: 800, MaxNic: 8},
	"Standard_D15_v2": {MemoryInMB: 140 * 1024, NumberOfCores: 20, StorageSize: 1, MaxNic: 8},
	"Standard_D2_v3":  {MemoryInMB: 8 * 1024, NumberOfCores: 2, StorageSize: 50, MaxNic: 2},
	"Standard_D4_v3":  {MemoryInMB: 16 * 1024, NumberOfCores: 4, StorageSize: 100, MaxNic: 2},
	"Standard_D8_v3":  {MemoryInMB: 32 * 1024, NumberOfCores: 8, StorageSize: 200, MaxNic: 4},
	"Standard_D16_v3": {MemoryInMB: 64 * 1024, NumberOfCores: 16, StorageSize: 400, MaxNic: 8},
	"Standard_D32_v3": {MemoryInMB: 128 * 1024, NumberOfCores: 32, StorageSize: 800, MaxNic: 8},
	"Standard_D64_v3": {MemoryInMB: 256 * 1024, NumberOfCores: 64, StorageSize: 1600, MaxNic: 8},
	"Standard_E2_v3":  {MemoryInMB: 16 * 1024, NumberOfCores: 2, StorageSize: 50, MaxNic: 2},
	"Standard_E4_v3":  {MemoryInMB: 32 * 1024, NumberOfCores: 4, StorageSize: 100, MaxNic: 2},
	"Standard_E8_v3":  {MemoryInMB: 64 * 1024, NumberOfCores: 8, StorageSize: 200, MaxNic: 4},
	"Standard_E16_v3": {MemoryInMB: 128 * 1024, NumberOfCores: 16, StorageSize: 400, MaxNic: 8},
	"Standard_E32_v3": {MemoryInMB: 256 * 1024, NumberOfCores: 32, StorageSize: 800, MaxNic: 8},
	"Standard_E64_v3": {MemoryInMB: 432 * 1024, NumberOfCores: 64, StorageSize: 1600, MaxNic: 8},
	"Standard_G1":     {MemoryInMB: 28 * 1024, NumberOfCores: 2, StorageSize: 384, MaxNic: 1},
	"Standard_G2":     {MemoryInMB: 56 * 1024, NumberOfCores: 4, StorageSize: 768, MaxNic: 2},
	"Standard_G3":     {MemoryInMB: 112 * 1024, NumberOfCores: 8, StorageSize: 1, MaxNic: 4},
	"Standard_G4":     {MemoryInMB: 224 * 1024, NumberOfCores: 16, StorageSize: 3, MaxNic: 8},
	"Standard_G5":     {MemoryInMB: 448 * 1024, NumberOfCores: 32, StorageSize: 6, MaxNic: 8},
}
View Source
var DEFAULT_API_VERSION = map[string]string{
	"vmSizes": "2018-06-01",
	"Microsoft.Compute/virtualMachineScaleSets":      "2017-12-01",
	"Microsoft.Compute/virtualMachines":              "2018-04-01",
	"Microsoft.ClassicCompute/virtualMachines":       "2017-04-01",
	"Microsoft.Compute/operations":                   "2018-10-01",
	"Microsoft.ClassicCompute/operations":            "2017-04-01",
	"Microsoft.Network/virtualNetworks":              "2018-08-01",
	"Microsoft.ClassicNetwork/virtualNetworks":       "2017-11-15",
	"Microsoft.Compute/disks":                        "2018-06-01",
	"Microsoft.Storage/storageAccounts":              "2016-12-01",
	"Microsoft.ClassicStorage/storageAccounts":       "2016-04-01",
	"Microsoft.Compute/snapshots":                    "2018-06-01",
	"Microsoft.Compute/images":                       "2018-10-01",
	"Microsoft.Storage":                              "2016-12-01",
	"Microsoft.Network/publicIPAddresses":            "2018-06-01",
	"Microsoft.Network/networkSecurityGroups":        "2018-06-01",
	"Microsoft.Network/networkInterfaces":            "2018-06-01",
	"Microsoft.Network":                              "2018-06-01",
	"Microsoft.ClassicNetwork/reservedIps":           "2016-04-01",
	"Microsoft.ClassicNetwork/networkSecurityGroups": "2016-11-01",
}

Functions

func DetectEmptyRanges

func DetectEmptyRanges(diskStream *diskstream.DiskStream, uploadableRanges []*common.IndexRange) ([]*common.IndexRange, error)

func GetDataWithRanges

func GetDataWithRanges(stream *diskstream.DiskStream, ranges []*common.IndexRange) (<-chan *DataWithRange, <-chan error)

GetDataWithRanges with start reading and streaming the ranges from the disk identified by the parameter ranges. It returns two channels, a data channel to stream the disk ranges and a channel to send any error while reading the disk. On successful completion the data channel will be closed. the caller must not expect any more value in the data channel if the error channel is signaled.

func LocateNonEmptyRangeIndices

func LocateNonEmptyRangeIndices(stream *diskstream.DiskStream, ranges []*common.IndexRange) (<-chan int32, <-chan error)

func LocateUploadableRanges

func LocateUploadableRanges(stream *diskstream.DiskStream, rangesToSkip []*common.IndexRange, pageSizeInBytes int64) ([]*common.IndexRange, error)

func LogRequest

func LogRequest() autorest.PrepareDecorator

func LogResponse

func LogResponse() autorest.RespondDecorator

func Upload

func Upload(cxt *DiskUploadContext) error

Upload uploads the disk ranges described by the parameter cxt, this parameter describes the disk stream to read from, the ranges of the stream to read, the destination blob and it's container, the client to communicate with Azure storage and the number of parallel go-routines to use for upload.

Types

type AccessProperties

type AccessProperties struct {
	Output AccessURIOutput
}

type AccessURI

type AccessURI struct {
	Name       string
	Properties AccessProperties
}

type AccessURIOutput

type AccessURIOutput struct {
	AccessSas string
}

type AccountKeys

type AccountKeys struct {
	KeyName     string
	Permissions string
	Value       string
}

type AccountProperties

type AccountProperties struct {
	//classic
	ClassicStorageProperties

	//normal
	PrimaryEndpoints  PrimaryEndpoints `json:"primaryEndpoints,omitempty"`
	ProvisioningState string
	PrimaryLocation   string
	SecondaryLocation string
	//CreationTime           time.Time
	AccessTier               string `json:"accessTier,omitempty"`
	EnableHTTPSTrafficOnly   *bool  `json:"supportsHttpsTrafficOnly,omitempty"`
	IsHnsEnabled             bool   `json:"isHnsEnabled,omitempty"`
	AzureFilesAadIntegration bool   `json:"azureFilesAadIntegration,omitempty"`
}

type AddressSpace

type AddressSpace struct {
	AddressPrefixes []string `json:"addressPrefixes,omitempty"`
}

type BasicDisk

type BasicDisk struct {
	Name         string
	DiskSizeGB   int32
	Caching      string
	CreateOption string
	OsType       string
}

type Capabilitie

type Capabilitie struct {
	Name  string
	Value string
}

type ClassicAddressSpace

type ClassicAddressSpace struct {
	AddressPrefixes []string
}

type ClassicDisk

type ClassicDisk struct {
	Lun             int32
	DiskName        string
	Caching         string
	OperatingSystem string
	IoType          string
	CreatedTime     string
	SourceImageName string
	VhdUri          string
	DiskSize        int32 `json:"diskSize,omitempty"`
	StorageAccount  SubResource
}

type ClassicEipProperties

type ClassicEipProperties struct {
	IpAddress         string       `json:"ipAddress,omitempty"`
	Status            string       `json:"status,omitempty"`
	ProvisioningState string       `json:"provisioningState,omitempty"`
	InUse             bool         `json:"inUse,omitempty"`
	AttachedTo        *SubResource `joson:"attachedTo,omitempty"`
}

type ClassicHardwareProfile

type ClassicHardwareProfile struct {
	PlatformGuestAgent bool
	Size               string
	DeploymentName     string
	DeploymentId       string
	DeploymentLabel    string
	DeploymentLocked   bool
}

type ClassicInstanceDisk

type ClassicInstanceDisk struct {
	Properties ClassicInstanceDiskProperties
	ID         string
	Name       string
	Type       string
}

type ClassicInstanceDiskProperties

type ClassicInstanceDiskProperties struct {
	DiskName        string
	Caching         string
	OperatingSystem string
	IoType          string
	DiskSize        int32
	SourceImageName string
	VhdUri          string
}

type ClassicNetworkProfile

type ClassicNetworkProfile struct {
	InputEndpoints       *[]InputEndpoint      `json:"inputEndpoints,omitempty"`
	InstanceIps          *[]InstanceIp         `json:"instanceIps,omitempty"`
	ReservedIps          *[]SubResource        `json:"reservedIps,omitempty"`
	VirtualNetwork       ClassicVirtualNetwork `json:"virtualNetwork,omitempty"`
	NetworkSecurityGroup *SubResource          `json:"networkSecurityGroup,omitempty"`
}

type ClassicSecurityGroupRuleProperties

type ClassicSecurityGroupRuleProperties struct {
	State                    string
	Protocol                 string
	SourcePortRange          string
	DestinationPortRange     string
	SourceAddressPrefix      string
	DestinationAddressPrefix string
	Action                   string
	Priority                 uint32
	Type                     string
	IsDefault                bool
}

func (*ClassicSecurityGroupRuleProperties) String

type ClassicSecurityRulesSet

type ClassicSecurityRulesSet []SClassicSecurityGroupRule

func (ClassicSecurityRulesSet) Len

func (v ClassicSecurityRulesSet) Len() int

func (ClassicSecurityRulesSet) Less

func (v ClassicSecurityRulesSet) Less(i, j int) bool

func (ClassicSecurityRulesSet) Swap

func (v ClassicSecurityRulesSet) Swap(i, j int)

type ClassicStorageProfile

type ClassicStorageProfile struct {
	OperatingSystemDisk ClassicDisk    `json:"operatingSystemDisk,omitempty"`
	DataDisks           *[]ClassicDisk `json:"aataDisks,omitempty"`
}

type ClassicStorageProperties

type ClassicStorageProperties struct {
	ProvisioningState       string
	Status                  string
	Endpoints               []string
	AccountType             string
	GeoPrimaryRegion        string
	StatusOfPrimaryRegion   string
	GeoSecondaryRegion      string
	StatusOfSecondaryRegion string
}

type ClassicSubnet

type ClassicSubnet struct {
	Name          string
	AddressPrefix string
}

type ClassicVMSize

type ClassicVMSize struct {
	MemoryInMB    int
	NumberOfCores int8
	StorageSize   int
	MaxNic        int
}

type ClassicVirtualMachineInstanceView

type ClassicVirtualMachineInstanceView struct {
	Status                   string   `json:"status,omitempty"`
	PowerState               string   `json:"powerState,omitempty"`
	PublicIpAddresses        []string `json:"publicIpAddresses,omitempty"`
	FullyQualifiedDomainName string   `json:"fullyQualifiedDomainName,omitempty"`

	UpdateDomain        int
	FaultDomain         int
	StatusMessage       string
	PrivateIpAddress    string           `json:"privateIpAddress,omitempty"`
	InstanceIpAddresses []string         `json:"instanceIpAddresses,omitempty"`
	ComputerName        string           `json:"computerName,omitempty"`
	GuestAgentStatus    GuestAgentStatus `json:"guestAgentStatus,omitempty"`
}

type ClassicVirtualMachineProperties

type ClassicVirtualMachineProperties struct {
	InstanceView    *ClassicVirtualMachineInstanceView `json:"instanceView,omitempty"`
	NetworkProfile  ClassicNetworkProfile              `json:"networkProfile,omitempty"`
	HardwareProfile ClassicHardwareProfile             `json:"hardwareProfile,omitempty"`
	StorageProfile  ClassicStorageProfile              `json:"storageProfile,omitempty"`
}

type ClassicVirtualNetwork

type ClassicVirtualNetwork struct {
	StaticIpAddress string   `json:"staticIpAddress,omitempty"`
	SubnetNames     []string `json:"subnetNames,omitempty"`
	ID              string
	Name            string
	Type            string
}

type ClassicVpcProperties

type ClassicVpcProperties struct {
	ProvisioningState string
	Status            string
	SiteId            string
	InUse             bool
	AddressSpace      ClassicAddressSpace
	Subnets           []SClassicNetwork
}

type CreationData

type CreationData struct {
	CreateOption     string `json:"createOption,omitempty"`
	StorageAccountID string
	ImageReference   *ImageDiskReference `json:"imageReference,omitempty"`
	SourceURI        string              `json:"sourceUri,omitempty"`
	SourceResourceID string              `json:"sourceResourceId,omitempty"`
}

type DataDisk

type DataDisk struct {
	Lun            int32
	Name           string                 `json:"name,omitempty"`
	DiskName       string                 `json:"diskName,omitempty"`
	Vhd            *VirtualHardDisk       `json:"vhd,omitempty"`
	Caching        string                 `json:"caching,omitempty"`
	DiskSizeGB     *int32                 `json:"diskSizeGB,omitempty"`
	IoType         string                 `json:"ioType,omitempty"`
	CreateOption   string                 `json:"createOption,omitempty"`
	ManagedDisk    *ManagedDiskParameters `json:"managedDisk,omitempty"`
	VhdUri         string                 `json:"vhdUri,omitempty"`
	StorageAccount *SubResource           `json:"storageAccount,omitempty"`
}

type DataDisks

type DataDisks []ImageDataDisk

type DataWithRange

type DataWithRange struct {
	Range *common.IndexRange
	Data  []byte
}

type DebugProfile

type DebugProfile struct {
	BootDiagnosticsEnabled   *bool  `json:"bootDiagnosticsEnabled,omitempty"`
	ConsoleScreenshotBlobUri string `json:"consoleScreenshotBlobUri,omitempty"`
	SerialOutputBlobUri      string `json:"serialOutputBlobUri,omitempty"`
}

type DiskProperties

type DiskProperties struct {
	//TimeCreated       time.Time //??? 序列化出错?
	OsType            string       `json:"osType,omitempty"`
	CreationData      CreationData `json:"creationData,omitempty"`
	DiskSizeGB        int32        `json:"diskSizeGB,omitempty"`
	ProvisioningState string       `json:"provisioningState,omitempty"`
	DiskState         string       `json:"diskState,omitempty"`
}

type DiskSku

type DiskSku struct {
	Name string `json:"name,omitempty"`
	Tier string `json:"tier,omitempty"`
}

type DiskUploadContext

type DiskUploadContext struct {
	VhdStream             *diskstream.DiskStream    // The stream whose ranges needs to be uploaded
	AlreadyProcessedBytes int64                     // The size in bytes already uploaded
	UploadableRanges      []*common.IndexRange      // The subset of stream ranges to be uploaded
	BlobServiceClient     storage.BlobStorageClient // The client to make Azure blob service API calls
	ContainerName         string                    // The container in which page blob resides
	BlobName              string                    // The destination page blob name
	Parallelism           int                       // The number of concurrent goroutines to be used for upload
	Resume                bool                      // Indicate whether this is a new or resuming upload
	MD5Hash               []byte                    // MD5Hash to be set in the page blob properties once upload finishes
}

type DomainName

type DomainName struct {
	Id   string
	Name string
	Type string
}

type FormattedMessage

type FormattedMessage struct {
	Language string
	Message  string
}

type GroupProperties

type GroupProperties struct {
	ProvisioningState string
}

type GuestAgentStatus

type GuestAgentStatus struct {
	ProtocolVersion   string
	Timestamp         time.Time
	GuestAgentVersion string
	Status            string
	FormattedMessage  FormattedMessage
}

type HardwareProfile

type HardwareProfile struct {
	VMSize string `json:"vmSize,omitempty"`
}

type IPConfiguration

type IPConfiguration struct {
	Name string
	ID   string
}

type IPConfigurationPropertiesFormat

type IPConfigurationPropertiesFormat struct {
	PrivateIPAddress string
}

type Identity

type Identity struct {
	PrincipalID string
	TenantID    string
	Type        string
}

type ImageDataDisk

type ImageDataDisk struct {
	Lun                int32
	Snapshot           SubResource
	ManagedDisk        SubResource
	BlobURI            string
	Caching            string
	DiskSizeGB         int32
	StorageAccountType string
}

type ImageDiskReference

type ImageDiskReference struct {
	ID  string
	Lun int32 `json:"lun,omitempty"`
}

type ImageOSDisk

type ImageOSDisk struct {
	OsType             string       `json:"osType,omitempty"`
	OsState            string       `json:"osState,omitempty"`
	Snapshot           *SubResource `json:"snapshot,omitempty"`
	ManagedDisk        *SubResource
	BlobURI            string `json:"blobUri,omitempty"`
	Caching            string `json:"caching,omitempty"`
	DiskSizeGB         int32  `json:"diskSizeGB,omitempty"`
	StorageAccountType string `json:"storageAccountType,omitempty"`
}

type ImageProperties

type ImageProperties struct {
	SourceVirtualMachine *SubResource
	StorageProfile       ImageStorageProfile `json:"storageProfile,omitempty"`
	ProvisioningState    ImageStatusType
}

type ImageReference

type ImageReference struct {
	Publisher string `json:"publisher,omitempty"`
	Offer     string `json:"offer,omitempty"`
	Sku       string `json:"sku,omitempty"`
	Version   string `json:"version,omitempty"`
	ID        string `json:"id,omitempty"`
}

type ImageStatusType

type ImageStatusType string
const (
	ImageStatusCreating     ImageStatusType = "Creating"
	ImageStatusAvailable    ImageStatusType = "Succeeded"
	ImageStatusUnAvailable  ImageStatusType = "UnAvailable"
	ImageStatusCreateFailed ImageStatusType = "CreateFailed"
)

type ImageStorageProfile

type ImageStorageProfile struct {
	OsDisk        ImageOSDisk `json:"osDisk,omitempty"`
	DataDisks     *DataDisks
	ZoneResilient *bool
}

type InputEndpoint

type InputEndpoint struct {
	EndpointName             string
	PrivatePort              int32
	PublicPort               int32
	Protocol                 string
	EnableDirectServerReturn bool
}

type InstanceIp

type InstanceIp struct {
	IdleTimeoutInMinutes int
	ID                   string
	Name                 string
	Type                 string
}

type InstanceViewStatus

type InstanceViewStatus struct {
	Code          string
	Level         string
	DisplayStatus string
	Message       string
}

type Interface

type Interface struct {
	ID string
}

type InterfaceIPConfiguration

type InterfaceIPConfiguration struct {
	Properties InterfaceIPConfigurationPropertiesFormat `json:"properties,omitempty"`
	Name       string
	ID         string
}

type InterfaceIPConfigurationPropertiesFormat

type InterfaceIPConfigurationPropertiesFormat struct {
	PrivateIPAddress          string           `json:"privateIPAddress,omitempty"`
	PrivateIPAddressVersion   string           `json:"privateIPAddressVersion,omitempty"`
	PrivateIPAllocationMethod string           `json:"privateIPAllocationMethod,omitempty"`
	Subnet                    Subnet           `json:"subnet,omitempty"`
	Primary                   *bool            `json:"primary,omitempty"`
	PublicIPAddress           *PublicIPAddress `json:"publicIPAddress,omitempty"`
}

type InterfacePropertiesFormat

type InterfacePropertiesFormat struct {
	NetworkSecurityGroup *SSecurityGroup            `json:"networkSecurityGroup,omitempty"`
	IPConfigurations     []InterfaceIPConfiguration `json:"ipConfigurations,omitempty"`
	MacAddress           string                     `json:"aacAddress,omitempty"`
	Primary              *bool                      `json:"primary,omitempty"`
	VirtualMachine       *SubResource               `json:"virtualMachine,omitempty"`
}

type LinuxConfiguration

type LinuxConfiguration struct {
	DisablePasswordAuthentication bool              `json:"disablePasswordAuthentication,omitempty"`
	SSH                           *SSHConfiguration `json:"ssh,omitempty"`
}

type ManagedDiskParameters

type ManagedDiskParameters struct {
	StorageAccountType string `json:"storageAccountType,omitempty"`
	ID                 string
}

type NetworkInterfaceReference

type NetworkInterfaceReference struct {
	ID string
}

type NetworkProfile

type NetworkProfile struct {
	NetworkInterfaces []NetworkInterfaceReference `json:"networkInterfaces,omitempty"`
}

type OSDisk

type OSDisk struct {
	OsType       string `json:"osType,omitempty"`
	Caching      string `json:"caching,omitempty"`
	Name         string
	DiskSizeGB   *int32                 `json:"diskSizeGB,omitempty"`
	ManagedDisk  *ManagedDiskParameters `json:"managedDisk,omitempty"`
	CreateOption string                 `json:"createOption,omitempty"`
	Vhd          *VirtualHardDisk       `json:"vhd,omitempty"`
}

type OperatingSystemStateTypes

type OperatingSystemStateTypes string

type OsProfile

type OsProfile struct {
	ComputerName       string              `json:"computerName,omitempty"`
	AdminUsername      string              `json:"adminUsername,omitempty"`
	AdminPassword      string              `json:"adminPassword,omitempty"`
	CustomData         string              `json:"customData,omitempty"`
	LinuxConfiguration *LinuxConfiguration `json:"linuxConfiguration,omitempty"`
	Secrets            []VaultSecretGroup  `json:"secrets,omitempty"`
}

type PrimaryEndpoints

type PrimaryEndpoints struct {
	Blob  string
	Queue string
	Table string
	File  string
}

type PublicIPAddress

type PublicIPAddress struct {
	ID         string
	Name       string
	Location   string
	Properties PublicIPAddressPropertiesFormat
}

type PublicIPAddressPropertiesFormat

type PublicIPAddressPropertiesFormat struct {
	PublicIPAddressVersion   string           `json:"publicIPAddressVersion,omitempty"`
	IPAddress                string           `json:"ipAddress,omitempty"`
	PublicIPAllocationMethod string           `json:"publicIPAllocationMethod,omitempty"`
	ProvisioningState        string           `json:"provisioningState,omitempty"`
	IPConfiguration          *IPConfiguration `json:"ipConfiguration,omitempty"`
}

type PublicIPAddressSku

type PublicIPAddressSku struct {
	Name string
}

type SAccountBalance

type SAccountBalance struct {
	AvailableAmount     float64
	AvailableCashAmount float64
	CreditAmount        float64
	MybankCreditAmount  float64
	Currency            string
}

type SAzureClient

type SAzureClient struct {
	// contains filtered or unexported fields
}

func NewAzureClient

func NewAzureClient(providerId string, providerName string, accessKey string, secret string, envName string) (*SAzureClient, error)

func (*SAzureClient) CheckNameAvailability

func (self *SAzureClient) CheckNameAvailability(Type string, body string) (jsonutils.JSONObject, error)

func (*SAzureClient) Create

func (self *SAzureClient) Create(body jsonutils.JSONObject, retVal interface{}) error

func (*SAzureClient) Delete

func (self *SAzureClient) Delete(resourceId string) error

func (*SAzureClient) Get

func (self *SAzureClient) Get(resourceId string, params []string, retVal interface{}) error

func (*SAzureClient) GetIHostById

func (self *SAzureClient) GetIHostById(id string) (cloudprovider.ICloudHost, error)

func (*SAzureClient) GetIRegionById

func (self *SAzureClient) GetIRegionById(id string) (cloudprovider.ICloudRegion, error)

func (*SAzureClient) GetIRegions

func (self *SAzureClient) GetIRegions() []cloudprovider.ICloudRegion

func (*SAzureClient) GetIStorageById

func (self *SAzureClient) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)

func (*SAzureClient) GetIStoragecacheById

func (self *SAzureClient) GetIStoragecacheById(id string) (cloudprovider.ICloudStoragecache, error)

func (*SAzureClient) GetIVpcById

func (self *SAzureClient) GetIVpcById(id string) (cloudprovider.ICloudVpc, error)

func (*SAzureClient) GetRegion

func (self *SAzureClient) GetRegion(regionId string) *SRegion

func (*SAzureClient) GetRegions

func (self *SAzureClient) GetRegions() []SRegion

func (*SAzureClient) GetSubAccounts

func (self *SAzureClient) GetSubAccounts() (subAccounts []cloudprovider.SSubAccount, err error)

func (*SAzureClient) List

func (self *SAzureClient) List(golbalResource string, retVal interface{}) error

func (*SAzureClient) ListAll

func (self *SAzureClient) ListAll(resourceType string, retVal interface{}) error

func (*SAzureClient) ListByTypeWithResourceGroup

func (self *SAzureClient) ListByTypeWithResourceGroup(resourceGroupName string, Type string, retVal interface{}) error

func (*SAzureClient) ListClassicDisks

func (self *SAzureClient) ListClassicDisks() (jsonutils.JSONObject, error)

func (*SAzureClient) ListSubscriptions

func (self *SAzureClient) ListSubscriptions() (jsonutils.JSONObject, error)

func (*SAzureClient) ListVmSizes

func (self *SAzureClient) ListVmSizes(location string) (jsonutils.JSONObject, error)

func (*SAzureClient) PerformAction

func (self *SAzureClient) PerformAction(resourceId string, action string, body string) (jsonutils.JSONObject, error)

func (*SAzureClient) QueryAccountBalance

func (self *SAzureClient) QueryAccountBalance() (*SAccountBalance, error)

func (*SAzureClient) Update

func (self *SAzureClient) Update(body jsonutils.JSONObject, retVal interface{}) error

func (*SAzureClient) UpdateAccount

func (self *SAzureClient) UpdateAccount(tenantId, secret, envName string) error

type SClassicDisk

type SClassicDisk struct {
	DiskName        string
	Caching         string
	OperatingSystem string
	IoType          string
	DiskSizeGB      int32
	DiskSize        int32

	CreatedTime     string
	SourceImageName string
	VhdUri          string

	StorageAccount SubResource
	// contains filtered or unexported fields
}

func (*SClassicDisk) CreateISnapshot

func (self *SClassicDisk) CreateISnapshot(name, desc string) (cloudprovider.ICloudSnapshot, error)

func (*SClassicDisk) Delete

func (self *SClassicDisk) Delete() error

func (*SClassicDisk) GetBillingType

func (self *SClassicDisk) GetBillingType() string

func (*SClassicDisk) GetCacheMode

func (self *SClassicDisk) GetCacheMode() string

func (*SClassicDisk) GetDiskFormat

func (self *SClassicDisk) GetDiskFormat() string

func (*SClassicDisk) GetDiskSizeMB

func (self *SClassicDisk) GetDiskSizeMB() int

func (*SClassicDisk) GetDiskType

func (self *SClassicDisk) GetDiskType() string

func (*SClassicDisk) GetDriver

func (self *SClassicDisk) GetDriver() string

func (*SClassicDisk) GetExpiredAt

func (self *SClassicDisk) GetExpiredAt() time.Time

func (*SClassicDisk) GetFsFormat

func (self *SClassicDisk) GetFsFormat() string

func (*SClassicDisk) GetGlobalId

func (self *SClassicDisk) GetGlobalId() string

func (*SClassicDisk) GetISnapshot

func (self *SClassicDisk) GetISnapshot(snapshotId string) (cloudprovider.ICloudSnapshot, error)

func (*SClassicDisk) GetISnapshots

func (self *SClassicDisk) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error)

func (*SClassicDisk) GetIStorge

func (self *SClassicDisk) GetIStorge() cloudprovider.ICloudStorage

func (*SClassicDisk) GetId

func (self *SClassicDisk) GetId() string

func (*SClassicDisk) GetIsAutoDelete

func (self *SClassicDisk) GetIsAutoDelete() bool

func (*SClassicDisk) GetIsNonPersistent

func (self *SClassicDisk) GetIsNonPersistent() bool

func (*SClassicDisk) GetMetadata

func (self *SClassicDisk) GetMetadata() *jsonutils.JSONDict

func (*SClassicDisk) GetMountpoint

func (self *SClassicDisk) GetMountpoint() string

func (*SClassicDisk) GetName

func (self *SClassicDisk) GetName() string

func (*SClassicDisk) GetStatus

func (self *SClassicDisk) GetStatus() string

func (*SClassicDisk) GetTemplateId

func (self *SClassicDisk) GetTemplateId() string

func (*SClassicDisk) IsEmulated

func (self *SClassicDisk) IsEmulated() bool

func (*SClassicDisk) Refresh

func (self *SClassicDisk) Refresh() error

func (*SClassicDisk) Reset

func (self *SClassicDisk) Reset(snapshotId string) error

func (*SClassicDisk) Resize

func (self *SClassicDisk) Resize(size int64) error

type SClassicEipAddress

type SClassicEipAddress struct {
	ID string

	Name       string
	Location   string
	Properties ClassicEipProperties `json:"properties,omitempty"`
	Type       string
	// contains filtered or unexported fields
}

func (*SClassicEipAddress) Associate

func (self *SClassicEipAddress) Associate(instanceId string) error

func (*SClassicEipAddress) ChangeBandwidth

func (self *SClassicEipAddress) ChangeBandwidth(bw int) error

func (*SClassicEipAddress) Delete

func (self *SClassicEipAddress) Delete() error

func (*SClassicEipAddress) Dissociate

func (self *SClassicEipAddress) Dissociate() error

func (*SClassicEipAddress) GetAssociationExternalId

func (self *SClassicEipAddress) GetAssociationExternalId() string

func (*SClassicEipAddress) GetAssociationType

func (self *SClassicEipAddress) GetAssociationType() string

func (*SClassicEipAddress) GetBandwidth

func (self *SClassicEipAddress) GetBandwidth() int

func (*SClassicEipAddress) GetGlobalId

func (self *SClassicEipAddress) GetGlobalId() string

func (*SClassicEipAddress) GetId

func (self *SClassicEipAddress) GetId() string

func (*SClassicEipAddress) GetInternetChargeType

func (self *SClassicEipAddress) GetInternetChargeType() string

func (*SClassicEipAddress) GetIpAddr

func (self *SClassicEipAddress) GetIpAddr() string

func (*SClassicEipAddress) GetManagerId

func (self *SClassicEipAddress) GetManagerId() string

func (*SClassicEipAddress) GetMetadata

func (self *SClassicEipAddress) GetMetadata() *jsonutils.JSONDict

func (*SClassicEipAddress) GetMode

func (self *SClassicEipAddress) GetMode() string

func (*SClassicEipAddress) GetName

func (self *SClassicEipAddress) GetName() string

func (*SClassicEipAddress) GetStatus

func (self *SClassicEipAddress) GetStatus() string

func (*SClassicEipAddress) IsEmulated

func (self *SClassicEipAddress) IsEmulated() bool

func (*SClassicEipAddress) Refresh

func (self *SClassicEipAddress) Refresh() error

type SClassicHost

type SClassicHost struct {
	// contains filtered or unexported fields
}

func (*SClassicHost) CreateVM

func (self *SClassicHost) CreateVM(name string, imgId string, sysDiskSize int, cpu int, memMB int, networkId string, ipAddr string, desc string, passwd string, storageType string, diskSizes []int, publicKey string, secgroupId string, userData string) (cloudprovider.ICloudVM, error)

func (*SClassicHost) GetAccessIp

func (self *SClassicHost) GetAccessIp() string

func (*SClassicHost) GetAccessMac

func (self *SClassicHost) GetAccessMac() string

func (*SClassicHost) GetCpuCount

func (self *SClassicHost) GetCpuCount() int8

func (*SClassicHost) GetCpuDesc

func (self *SClassicHost) GetCpuDesc() string

func (*SClassicHost) GetCpuMhz

func (self *SClassicHost) GetCpuMhz() int

func (*SClassicHost) GetEnabled

func (self *SClassicHost) GetEnabled() bool

func (*SClassicHost) GetGlobalId

func (self *SClassicHost) GetGlobalId() string

func (*SClassicHost) GetHostStatus

func (self *SClassicHost) GetHostStatus() string

func (*SClassicHost) GetHostType

func (self *SClassicHost) GetHostType() string

func (*SClassicHost) GetIStorageById

func (self *SClassicHost) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)

func (*SClassicHost) GetIStorages

func (self *SClassicHost) GetIStorages() ([]cloudprovider.ICloudStorage, error)

func (*SClassicHost) GetIVMById

func (self *SClassicHost) GetIVMById(instanceId string) (cloudprovider.ICloudVM, error)

func (*SClassicHost) GetIVMs

func (self *SClassicHost) GetIVMs() ([]cloudprovider.ICloudVM, error)

func (*SClassicHost) GetIWires

func (self *SClassicHost) GetIWires() ([]cloudprovider.ICloudWire, error)

func (*SClassicHost) GetId

func (self *SClassicHost) GetId() string

func (*SClassicHost) GetManagerId

func (self *SClassicHost) GetManagerId() string

func (*SClassicHost) GetMemSizeMB

func (self *SClassicHost) GetMemSizeMB() int

func (*SClassicHost) GetMetadata

func (self *SClassicHost) GetMetadata() *jsonutils.JSONDict

func (*SClassicHost) GetName

func (self *SClassicHost) GetName() string

func (*SClassicHost) GetNodeCount

func (self *SClassicHost) GetNodeCount() int8

func (*SClassicHost) GetSN

func (self *SClassicHost) GetSN() string

func (*SClassicHost) GetStatus

func (self *SClassicHost) GetStatus() string

func (*SClassicHost) GetStorageSizeMB

func (self *SClassicHost) GetStorageSizeMB() int

func (*SClassicHost) GetStorageType

func (self *SClassicHost) GetStorageType() string

func (*SClassicHost) GetSysInfo

func (self *SClassicHost) GetSysInfo() jsonutils.JSONObject

func (*SClassicHost) IsEmulated

func (self *SClassicHost) IsEmulated() bool

func (*SClassicHost) Refresh

func (self *SClassicHost) Refresh() error

type SClassicInstance

type SClassicInstance struct {
	Properties ClassicVirtualMachineProperties `json:"properties,omitempty"`
	ID         string
	Name       string
	Type       string
	Location   string
	// contains filtered or unexported fields
}

func (*SClassicInstance) AttachDisk

func (self *SClassicInstance) AttachDisk(diskId string) error

func (*SClassicInstance) ChangeConfig

func (self *SClassicInstance) ChangeConfig(instanceId string, ncpu int, vmem int) error

func (*SClassicInstance) DeleteVM

func (self *SClassicInstance) DeleteVM() error

func (*SClassicInstance) DeployVM

func (self *SClassicInstance) DeployVM(name string, password string, publicKey string, deleteKeypair bool, description string) error

func (*SClassicInstance) DetachDisk

func (self *SClassicInstance) DetachDisk(diskId string) error

func (*SClassicInstance) GetBillingType

func (self *SClassicInstance) GetBillingType() string

func (*SClassicInstance) GetBios

func (self *SClassicInstance) GetBios() string

func (*SClassicInstance) GetBootOrder

func (self *SClassicInstance) GetBootOrder() string

func (*SClassicInstance) GetCreateTime

func (self *SClassicInstance) GetCreateTime() time.Time

func (*SClassicInstance) GetExpiredAt

func (self *SClassicInstance) GetExpiredAt() time.Time

func (*SClassicInstance) GetGlobalId

func (self *SClassicInstance) GetGlobalId() string

func (*SClassicInstance) GetHypervisor

func (self *SClassicInstance) GetHypervisor() string

func (*SClassicInstance) GetIDisks

func (self *SClassicInstance) GetIDisks() ([]cloudprovider.ICloudDisk, error)

func (*SClassicInstance) GetIEIP

func (self *SClassicInstance) GetIEIP() (cloudprovider.ICloudEIP, error)

func (*SClassicInstance) GetIHost

func (self *SClassicInstance) GetIHost() cloudprovider.ICloudHost

func (*SClassicInstance) GetINics

func (self *SClassicInstance) GetINics() ([]cloudprovider.ICloudNic, error)

func (*SClassicInstance) GetId

func (self *SClassicInstance) GetId() string

func (*SClassicInstance) GetMachine

func (self *SClassicInstance) GetMachine() string

func (*SClassicInstance) GetMetadata

func (self *SClassicInstance) GetMetadata() *jsonutils.JSONDict

func (*SClassicInstance) GetName

func (self *SClassicInstance) GetName() string

func (*SClassicInstance) GetOSName

func (self *SClassicInstance) GetOSName() string

func (*SClassicInstance) GetOSType

func (self *SClassicInstance) GetOSType() string

func (*SClassicInstance) GetStatus

func (self *SClassicInstance) GetStatus() string

func (*SClassicInstance) GetVNCInfo

func (self *SClassicInstance) GetVNCInfo() (jsonutils.JSONObject, error)

func (*SClassicInstance) GetVcpuCount

func (self *SClassicInstance) GetVcpuCount() int8

func (*SClassicInstance) GetVdi

func (self *SClassicInstance) GetVdi() string

func (*SClassicInstance) GetVga

func (self *SClassicInstance) GetVga() string

func (*SClassicInstance) GetVmemSizeMB

func (self *SClassicInstance) GetVmemSizeMB() int

func (*SClassicInstance) IsEmulated

func (self *SClassicInstance) IsEmulated() bool

func (*SClassicInstance) RebuildRoot

func (self *SClassicInstance) RebuildRoot(imageId string, passwd string, publicKey string, sysSizeGB int) (string, error)

func (*SClassicInstance) Refresh

func (self *SClassicInstance) Refresh() error

func (*SClassicInstance) StartVM

func (self *SClassicInstance) StartVM() error

func (*SClassicInstance) StopVM

func (self *SClassicInstance) StopVM(isForce bool) error

func (*SClassicInstance) SyncSecurityGroup

func (self *SClassicInstance) SyncSecurityGroup(secgroupId string, name string, rules []secrules.SecurityRule) error

func (*SClassicInstance) UpdateUserData

func (self *SClassicInstance) UpdateUserData(userData string) error

func (*SClassicInstance) UpdateVM

func (self *SClassicInstance) UpdateVM(name string) error

type SClassicInstanceNic

type SClassicInstanceNic struct {
	ID       string
	IP       string
	Name     string
	Type     string
	Location string
	// contains filtered or unexported fields
}

func (*SClassicInstanceNic) Delete

func (self *SClassicInstanceNic) Delete() error

func (*SClassicInstanceNic) GetDriver

func (self *SClassicInstanceNic) GetDriver() string

func (*SClassicInstanceNic) GetINetwork

func (self *SClassicInstanceNic) GetINetwork() cloudprovider.ICloudNetwork

func (*SClassicInstanceNic) GetIP

func (self *SClassicInstanceNic) GetIP() string

func (*SClassicInstanceNic) GetMAC

func (self *SClassicInstanceNic) GetMAC() string

type SClassicNetwork

type SClassicNetwork struct {
	Name          string
	AddressPrefix string `json:"addressPrefix,omitempty"`
	// contains filtered or unexported fields
}

func (*SClassicNetwork) Delete

func (self *SClassicNetwork) Delete() error

func (*SClassicNetwork) GetAllocTimeoutSeconds

func (self *SClassicNetwork) GetAllocTimeoutSeconds() int

func (*SClassicNetwork) GetGateway

func (self *SClassicNetwork) GetGateway() string

func (*SClassicNetwork) GetGlobalId

func (self *SClassicNetwork) GetGlobalId() string

func (*SClassicNetwork) GetIWire

func (self *SClassicNetwork) GetIWire() cloudprovider.ICloudWire

func (*SClassicNetwork) GetId

func (self *SClassicNetwork) GetId() string

func (*SClassicNetwork) GetIpEnd

func (self *SClassicNetwork) GetIpEnd() string

func (*SClassicNetwork) GetIpMask

func (self *SClassicNetwork) GetIpMask() int8

func (*SClassicNetwork) GetIpStart

func (self *SClassicNetwork) GetIpStart() string

func (*SClassicNetwork) GetIsPublic

func (self *SClassicNetwork) GetIsPublic() bool

func (*SClassicNetwork) GetMetadata

func (self *SClassicNetwork) GetMetadata() *jsonutils.JSONDict

func (*SClassicNetwork) GetName

func (self *SClassicNetwork) GetName() string

func (*SClassicNetwork) GetServerType

func (self *SClassicNetwork) GetServerType() string

func (*SClassicNetwork) GetStatus

func (self *SClassicNetwork) GetStatus() string

func (*SClassicNetwork) IsEmulated

func (self *SClassicNetwork) IsEmulated() bool

func (*SClassicNetwork) Refresh

func (self *SClassicNetwork) Refresh() error

type SClassicSecurityGroup

type SClassicSecurityGroup struct {
	Properties *SecurityGroupPropertiesFormat `json:"properties,omitempty"`
	ID         string
	Name       string
	Location   string
	Type       string
	Tags       map[string]string
	// contains filtered or unexported fields
}

func (*SClassicSecurityGroup) GetDescription

func (self *SClassicSecurityGroup) GetDescription() string

func (*SClassicSecurityGroup) GetGlobalId

func (self *SClassicSecurityGroup) GetGlobalId() string

func (*SClassicSecurityGroup) GetId

func (self *SClassicSecurityGroup) GetId() string

func (*SClassicSecurityGroup) GetMetadata

func (self *SClassicSecurityGroup) GetMetadata() *jsonutils.JSONDict

func (*SClassicSecurityGroup) GetName

func (self *SClassicSecurityGroup) GetName() string

func (*SClassicSecurityGroup) GetRules

func (self *SClassicSecurityGroup) GetRules() ([]secrules.SecurityRule, error)

func (*SClassicSecurityGroup) GetStatus

func (self *SClassicSecurityGroup) GetStatus() string

func (*SClassicSecurityGroup) IsEmulated

func (self *SClassicSecurityGroup) IsEmulated() bool

func (*SClassicSecurityGroup) Refresh

func (self *SClassicSecurityGroup) Refresh() error

type SClassicSecurityGroupRule

type SClassicSecurityGroupRule struct {
	Properties ClassicSecurityGroupRuleProperties `json:"properties,omitempty"`
	ID         string
	Name       string
	Type       string
}

type SClassicSnapshot

type SClassicSnapshot struct {
	Name string
	// contains filtered or unexported fields
}

func (*SClassicSnapshot) Delete

func (self *SClassicSnapshot) Delete() error

func (*SClassicSnapshot) GetDiskId

func (self *SClassicSnapshot) GetDiskId() string

func (*SClassicSnapshot) GetDiskType

func (self *SClassicSnapshot) GetDiskType() string

func (*SClassicSnapshot) GetGlobalId

func (self *SClassicSnapshot) GetGlobalId() string

func (*SClassicSnapshot) GetId

func (self *SClassicSnapshot) GetId() string

func (*SClassicSnapshot) GetManagerId

func (self *SClassicSnapshot) GetManagerId() string

func (*SClassicSnapshot) GetMetadata

func (self *SClassicSnapshot) GetMetadata() *jsonutils.JSONDict

func (*SClassicSnapshot) GetName

func (self *SClassicSnapshot) GetName() string

func (*SClassicSnapshot) GetRegionId

func (self *SClassicSnapshot) GetRegionId() string

func (*SClassicSnapshot) GetSize

func (self *SClassicSnapshot) GetSize() int32

func (*SClassicSnapshot) GetStatus

func (self *SClassicSnapshot) GetStatus() string

func (*SClassicSnapshot) IsEmulated

func (self *SClassicSnapshot) IsEmulated() bool

func (*SClassicSnapshot) Refresh

func (self *SClassicSnapshot) Refresh() error

type SClassicStorage

type SClassicStorage struct {
	Properties ClassicStorageProperties
	Name       string
	ID         string
	Type       string
	Location   string
	// contains filtered or unexported fields
}

func (*SClassicStorage) CreateIDisk

func (self *SClassicStorage) CreateIDisk(name string, sizeGb int, desc string) (cloudprovider.ICloudDisk, error)

func (*SClassicStorage) GetCapacityMB

func (self *SClassicStorage) GetCapacityMB() int

func (*SClassicStorage) GetEnabled

func (self *SClassicStorage) GetEnabled() bool

func (*SClassicStorage) GetGlobalId

func (self *SClassicStorage) GetGlobalId() string

func (*SClassicStorage) GetIDisk

func (self *SClassicStorage) GetIDisk(diskId string) (cloudprovider.ICloudDisk, error)

func (*SClassicStorage) GetIDisks

func (self *SClassicStorage) GetIDisks() ([]cloudprovider.ICloudDisk, error)

func (*SClassicStorage) GetIStoragecache

func (self *SClassicStorage) GetIStoragecache() cloudprovider.ICloudStoragecache

func (*SClassicStorage) GetIZone

func (self *SClassicStorage) GetIZone() cloudprovider.ICloudZone

func (*SClassicStorage) GetId

func (self *SClassicStorage) GetId() string

func (*SClassicStorage) GetManagerId

func (self *SClassicStorage) GetManagerId() string

func (*SClassicStorage) GetMediumType

func (self *SClassicStorage) GetMediumType() string

func (*SClassicStorage) GetMetadata

func (self *SClassicStorage) GetMetadata() *jsonutils.JSONDict

func (*SClassicStorage) GetName

func (self *SClassicStorage) GetName() string

func (*SClassicStorage) GetStatus

func (self *SClassicStorage) GetStatus() string

func (*SClassicStorage) GetStorageConf

func (self *SClassicStorage) GetStorageConf() jsonutils.JSONObject

func (*SClassicStorage) GetStorageType

func (self *SClassicStorage) GetStorageType() string

func (*SClassicStorage) IsEmulated

func (self *SClassicStorage) IsEmulated() bool

func (*SClassicStorage) Refresh

func (self *SClassicStorage) Refresh() error

type SClassicVpc

type SClassicVpc struct {
	ID         string
	Name       string
	Type       string
	Location   string
	Properties ClassicVpcProperties
	// contains filtered or unexported fields
}

func (*SClassicVpc) Delete

func (self *SClassicVpc) Delete() error

func (*SClassicVpc) GetCidrBlock

func (self *SClassicVpc) GetCidrBlock() string

func (*SClassicVpc) GetGlobalId

func (self *SClassicVpc) GetGlobalId() string

func (*SClassicVpc) GetISecurityGroups

func (self *SClassicVpc) GetISecurityGroups() ([]cloudprovider.ICloudSecurityGroup, error)

func (*SClassicVpc) GetIWireById

func (self *SClassicVpc) GetIWireById(wireId string) (cloudprovider.ICloudWire, error)

func (*SClassicVpc) GetIWires

func (self *SClassicVpc) GetIWires() ([]cloudprovider.ICloudWire, error)

func (*SClassicVpc) GetId

func (self *SClassicVpc) GetId() string

func (*SClassicVpc) GetIsDefault

func (self *SClassicVpc) GetIsDefault() bool

func (*SClassicVpc) GetManagerId

func (self *SClassicVpc) GetManagerId() string

func (*SClassicVpc) GetMetadata

func (self *SClassicVpc) GetMetadata() *jsonutils.JSONDict

func (*SClassicVpc) GetName

func (self *SClassicVpc) GetName() string

func (*SClassicVpc) GetNetworks

func (self *SClassicVpc) GetNetworks() []SClassicNetwork

func (*SClassicVpc) GetRegion

func (self *SClassicVpc) GetRegion() cloudprovider.ICloudRegion

func (*SClassicVpc) GetStatus

func (self *SClassicVpc) GetStatus() string

func (*SClassicVpc) IsEmulated

func (self *SClassicVpc) IsEmulated() bool

func (*SClassicVpc) Refresh

func (self *SClassicVpc) Refresh() error

func (*SClassicVpc) SyncSecurityGroup

func (self *SClassicVpc) SyncSecurityGroup(tag string, name string, rules []secrules.SecurityRule) (string, error)

type SClassicWire

type SClassicWire struct {
	// contains filtered or unexported fields
}

func (*SClassicWire) CreateINetwork

func (self *SClassicWire) CreateINetwork(name string, cidr string, desc string) (cloudprovider.ICloudNetwork, error)

func (*SClassicWire) GetBandwidth

func (self *SClassicWire) GetBandwidth() int

func (*SClassicWire) GetGlobalId

func (self *SClassicWire) GetGlobalId() string

func (*SClassicWire) GetINetworkById

func (self *SClassicWire) GetINetworkById(netid string) (cloudprovider.ICloudNetwork, error)

func (*SClassicWire) GetINetworks

func (self *SClassicWire) GetINetworks() ([]cloudprovider.ICloudNetwork, error)

func (*SClassicWire) GetIVpc

func (self *SClassicWire) GetIVpc() cloudprovider.ICloudVpc

func (*SClassicWire) GetIZone

func (self *SClassicWire) GetIZone() cloudprovider.ICloudZone

func (*SClassicWire) GetId

func (self *SClassicWire) GetId() string

func (*SClassicWire) GetMetadata

func (self *SClassicWire) GetMetadata() *jsonutils.JSONDict

func (*SClassicWire) GetName

func (self *SClassicWire) GetName() string

func (*SClassicWire) GetStatus

func (self *SClassicWire) GetStatus() string

func (*SClassicWire) IsEmulated

func (self *SClassicWire) IsEmulated() bool

func (*SClassicWire) Refresh

func (self *SClassicWire) Refresh() error

type SContainer

type SContainer struct {
	Name string
	// contains filtered or unexported fields
}

func (*SContainer) CopySnapshot

func (self *SContainer) CopySnapshot(snapshotId, fileName string) (*storage.Blob, error)

func (*SContainer) Delete

func (self *SContainer) Delete(fileName string) error

func (*SContainer) ListFiles

func (self *SContainer) ListFiles() ([]storage.Blob, error)

func (*SContainer) UploadFile

func (self *SContainer) UploadFile(filePath string) (string, error)

type SDisk

type SDisk struct {
	ManagedBy  string         `json:"managedBy,omitempty"`
	Sku        DiskSku        `json:"sku,omitempty"`
	Zones      []string       `json:"zones,omitempty"`
	ID         string         `json:"id,omitempty"`
	Name       string         `json:"name,omitempty"`
	Type       string         `json:"type,omitempty"`
	Location   string         `json:"location,omitempty"`
	Properties DiskProperties `json:"properties,omitempty"`

	Tags map[string]string `json:"tags,omitempty"`
	// contains filtered or unexported fields
}

func (*SDisk) CreateISnapshot

func (self *SDisk) CreateISnapshot(name, desc string) (cloudprovider.ICloudSnapshot, error)

func (*SDisk) Delete

func (self *SDisk) Delete() error

func (*SDisk) GetBillingType

func (self *SDisk) GetBillingType() string

func (*SDisk) GetCacheMode

func (self *SDisk) GetCacheMode() string

func (*SDisk) GetDiskFormat

func (self *SDisk) GetDiskFormat() string

func (*SDisk) GetDiskSizeMB

func (self *SDisk) GetDiskSizeMB() int

func (*SDisk) GetDiskType

func (self *SDisk) GetDiskType() string

func (*SDisk) GetDriver

func (self *SDisk) GetDriver() string

func (*SDisk) GetExpiredAt

func (self *SDisk) GetExpiredAt() time.Time

func (*SDisk) GetFsFormat

func (self *SDisk) GetFsFormat() string

func (*SDisk) GetGlobalId

func (self *SDisk) GetGlobalId() string

func (*SDisk) GetISnapshot

func (self *SDisk) GetISnapshot(snapshotId string) (cloudprovider.ICloudSnapshot, error)

func (*SDisk) GetISnapshots

func (self *SDisk) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error)

func (*SDisk) GetIStorge

func (self *SDisk) GetIStorge() cloudprovider.ICloudStorage

func (*SDisk) GetId

func (self *SDisk) GetId() string

func (*SDisk) GetIsAutoDelete

func (self *SDisk) GetIsAutoDelete() bool

func (*SDisk) GetIsNonPersistent

func (self *SDisk) GetIsNonPersistent() bool

func (*SDisk) GetMetadata

func (self *SDisk) GetMetadata() *jsonutils.JSONDict

func (*SDisk) GetMountpoint

func (self *SDisk) GetMountpoint() string

func (*SDisk) GetName

func (self *SDisk) GetName() string

func (*SDisk) GetSnapshotDetail

func (self *SDisk) GetSnapshotDetail(snapshotId string) (*SSnapshot, error)

func (*SDisk) GetStatus

func (self *SDisk) GetStatus() string

func (*SDisk) GetTemplateId

func (self *SDisk) GetTemplateId() string

func (*SDisk) IsEmulated

func (self *SDisk) IsEmulated() bool

func (*SDisk) Refresh

func (self *SDisk) Refresh() error

func (*SDisk) Reset

func (self *SDisk) Reset(snapshotId string) error

func (*SDisk) Resize

func (self *SDisk) Resize(size int64) error

type SEipAddress

type SEipAddress struct {
	ID         string
	Name       string
	Location   string
	Properties PublicIPAddressPropertiesFormat `json:"properties,omitempty"`
	Type       string
	Sku        *PublicIPAddressSku
	// contains filtered or unexported fields
}

func (*SEipAddress) Associate

func (self *SEipAddress) Associate(instanceId string) error

func (*SEipAddress) ChangeBandwidth

func (self *SEipAddress) ChangeBandwidth(bw int) error

func (*SEipAddress) Delete

func (self *SEipAddress) Delete() error

func (*SEipAddress) Dissociate

func (self *SEipAddress) Dissociate() error

func (*SEipAddress) GetAssociationExternalId

func (self *SEipAddress) GetAssociationExternalId() string

func (*SEipAddress) GetAssociationType

func (self *SEipAddress) GetAssociationType() string

func (*SEipAddress) GetBandwidth

func (self *SEipAddress) GetBandwidth() int

func (*SEipAddress) GetGlobalId

func (self *SEipAddress) GetGlobalId() string

func (*SEipAddress) GetId

func (self *SEipAddress) GetId() string

func (*SEipAddress) GetInternetChargeType

func (self *SEipAddress) GetInternetChargeType() string

func (*SEipAddress) GetIpAddr

func (self *SEipAddress) GetIpAddr() string

func (*SEipAddress) GetManagerId

func (self *SEipAddress) GetManagerId() string

func (*SEipAddress) GetMetadata

func (self *SEipAddress) GetMetadata() *jsonutils.JSONDict

func (*SEipAddress) GetMode

func (self *SEipAddress) GetMode() string

func (*SEipAddress) GetName

func (self *SEipAddress) GetName() string

func (*SEipAddress) GetStatus

func (self *SEipAddress) GetStatus() string

func (*SEipAddress) IsEmulated

func (self *SEipAddress) IsEmulated() bool

func (*SEipAddress) Refresh

func (self *SEipAddress) Refresh() error

type SHost

type SHost struct {
	// contains filtered or unexported fields
}

func (*SHost) CreateVM

func (self *SHost) CreateVM(name string, imgId string, sysDiskSize int, cpu int, memMB int, networkId string, ipAddr string, desc string, passwd string, storageType string, diskSizes []int, publicKey string, secgroupId string, userData string) (cloudprovider.ICloudVM, error)

func (*SHost) GetAccessIp

func (self *SHost) GetAccessIp() string

func (*SHost) GetAccessMac

func (self *SHost) GetAccessMac() string

func (*SHost) GetCpuCount

func (self *SHost) GetCpuCount() int8

func (*SHost) GetCpuDesc

func (self *SHost) GetCpuDesc() string

func (*SHost) GetCpuMhz

func (self *SHost) GetCpuMhz() int

func (*SHost) GetEnabled

func (self *SHost) GetEnabled() bool

func (*SHost) GetGlobalId

func (self *SHost) GetGlobalId() string

func (*SHost) GetHostStatus

func (self *SHost) GetHostStatus() string

func (*SHost) GetHostType

func (self *SHost) GetHostType() string

func (*SHost) GetIStorageById

func (self *SHost) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)

func (*SHost) GetIStorages

func (self *SHost) GetIStorages() ([]cloudprovider.ICloudStorage, error)

func (*SHost) GetIVMById

func (self *SHost) GetIVMById(instanceId string) (cloudprovider.ICloudVM, error)

func (*SHost) GetIVMs

func (self *SHost) GetIVMs() ([]cloudprovider.ICloudVM, error)

func (*SHost) GetIWires

func (self *SHost) GetIWires() ([]cloudprovider.ICloudWire, error)

func (*SHost) GetId

func (self *SHost) GetId() string

func (*SHost) GetManagerId

func (self *SHost) GetManagerId() string

func (*SHost) GetMemSizeMB

func (self *SHost) GetMemSizeMB() int

func (*SHost) GetMetadata

func (self *SHost) GetMetadata() *jsonutils.JSONDict

func (*SHost) GetName

func (self *SHost) GetName() string

func (*SHost) GetNodeCount

func (self *SHost) GetNodeCount() int8

func (*SHost) GetSN

func (self *SHost) GetSN() string

func (*SHost) GetStatus

func (self *SHost) GetStatus() string

func (*SHost) GetStorageSizeMB

func (self *SHost) GetStorageSizeMB() int

func (*SHost) GetStorageType

func (self *SHost) GetStorageType() string

func (*SHost) GetSysInfo

func (self *SHost) GetSysInfo() jsonutils.JSONObject

func (*SHost) IsEmulated

func (self *SHost) IsEmulated() bool

func (*SHost) Refresh

func (self *SHost) Refresh() error

type SImage

type SImage struct {
	Properties ImageProperties `json:"properties,omitempty"`
	ID         string
	Name       string
	Type       string ``
	Location   string
	// contains filtered or unexported fields
}

func (*SImage) Delete

func (self *SImage) Delete() error

func (*SImage) GetBlobUri

func (self *SImage) GetBlobUri() string

func (*SImage) GetGlobalId

func (self *SImage) GetGlobalId() string

func (*SImage) GetIStoragecache

func (self *SImage) GetIStoragecache() cloudprovider.ICloudStoragecache

func (*SImage) GetId

func (self *SImage) GetId() string

func (*SImage) GetMetadata

func (self *SImage) GetMetadata() *jsonutils.JSONDict

func (*SImage) GetName

func (self *SImage) GetName() string

func (*SImage) GetOsType

func (self *SImage) GetOsType() string

func (*SImage) GetStatus

func (self *SImage) GetStatus() string

func (*SImage) IsEmulated

func (self *SImage) IsEmulated() bool

func (*SImage) Refresh

func (self *SImage) Refresh() error

type SInstance

type SInstance struct {
	Properties VirtualMachineProperties
	ID         string
	Name       string
	Type       string
	Location   string

	Tags map[string]string
	// contains filtered or unexported fields
}

func (*SInstance) AttachDisk

func (self *SInstance) AttachDisk(diskId string) error

func (*SInstance) ChangeConfig

func (self *SInstance) ChangeConfig(instanceId string, ncpu int, vmem int) error

func (*SInstance) DeleteVM

func (self *SInstance) DeleteVM() error

func (*SInstance) DeployVM

func (self *SInstance) DeployVM(name string, password string, publicKey string, deleteKeypair bool, description string) error

func (*SInstance) DetachDisk

func (self *SInstance) DetachDisk(diskId string) error

func (*SInstance) GetBillingType

func (self *SInstance) GetBillingType() string

func (*SInstance) GetBios

func (self *SInstance) GetBios() string

func (*SInstance) GetBootOrder

func (self *SInstance) GetBootOrder() string

func (*SInstance) GetCreateTime

func (self *SInstance) GetCreateTime() time.Time

func (*SInstance) GetExpiredAt

func (self *SInstance) GetExpiredAt() time.Time

func (*SInstance) GetGlobalId

func (self *SInstance) GetGlobalId() string

func (*SInstance) GetHypervisor

func (self *SInstance) GetHypervisor() string

func (*SInstance) GetIDisks

func (self *SInstance) GetIDisks() ([]cloudprovider.ICloudDisk, error)

func (*SInstance) GetIEIP

func (self *SInstance) GetIEIP() (cloudprovider.ICloudEIP, error)

func (*SInstance) GetIHost

func (self *SInstance) GetIHost() cloudprovider.ICloudHost

func (*SInstance) GetINics

func (self *SInstance) GetINics() ([]cloudprovider.ICloudNic, error)

func (*SInstance) GetId

func (self *SInstance) GetId() string

func (*SInstance) GetMachine

func (self *SInstance) GetMachine() string

func (*SInstance) GetMetadata

func (self *SInstance) GetMetadata() *jsonutils.JSONDict

func (*SInstance) GetName

func (self *SInstance) GetName() string

func (*SInstance) GetOSName

func (self *SInstance) GetOSName() string

func (*SInstance) GetOSType

func (self *SInstance) GetOSType() string

func (*SInstance) GetStatus

func (self *SInstance) GetStatus() string

func (*SInstance) GetVNCInfo

func (self *SInstance) GetVNCInfo() (jsonutils.JSONObject, error)

func (*SInstance) GetVcpuCount

func (self *SInstance) GetVcpuCount() int8

func (*SInstance) GetVdi

func (self *SInstance) GetVdi() string

func (*SInstance) GetVga

func (self *SInstance) GetVga() string

func (*SInstance) GetVmemSizeMB

func (self *SInstance) GetVmemSizeMB() int

func (*SInstance) IsEmulated

func (self *SInstance) IsEmulated() bool

func (*SInstance) RebuildRoot

func (self *SInstance) RebuildRoot(imageId string, passwd string, publicKey string, sysSizeGB int) (string, error)

func (*SInstance) Refresh

func (self *SInstance) Refresh() error

func (*SInstance) StartVM

func (self *SInstance) StartVM() error

func (*SInstance) StopVM

func (self *SInstance) StopVM(isForce bool) error

func (*SInstance) SyncSecurityGroup

func (self *SInstance) SyncSecurityGroup(secgroupId string, name string, rules []secrules.SecurityRule) error

func (*SInstance) UpdateUserData

func (self *SInstance) UpdateUserData(userData string) error

func (*SInstance) UpdateVM

func (self *SInstance) UpdateVM(name string) error

type SInstanceNic

type SInstanceNic struct {
	ID         string
	Name       string
	Type       string
	Location   string
	Properties InterfacePropertiesFormat `json:"properties,omitempty"`
	// contains filtered or unexported fields
}

func (*SInstanceNic) Delete

func (self *SInstanceNic) Delete() error

func (*SInstanceNic) GetDriver

func (self *SInstanceNic) GetDriver() string

func (*SInstanceNic) GetINetwork

func (self *SInstanceNic) GetINetwork() cloudprovider.ICloudNetwork

func (*SInstanceNic) GetIP

func (self *SInstanceNic) GetIP() string

func (*SInstanceNic) GetMAC

func (self *SInstanceNic) GetMAC() string

type SNetwork

type SNetwork struct {
	AvailableIpAddressCount *int `json:"availableIpAddressCount,omitempty"`
	ID                      string
	Name                    string
	Properties              SubnetPropertiesFormat
	AddressPrefix           string `json:"addressPrefix,omitempty"`
	// contains filtered or unexported fields
}

func (*SNetwork) Delete

func (self *SNetwork) Delete() error

func (*SNetwork) GetAllocTimeoutSeconds

func (self *SNetwork) GetAllocTimeoutSeconds() int

func (*SNetwork) GetGateway

func (self *SNetwork) GetGateway() string

func (*SNetwork) GetGlobalId

func (self *SNetwork) GetGlobalId() string

func (*SNetwork) GetIWire

func (self *SNetwork) GetIWire() cloudprovider.ICloudWire

func (*SNetwork) GetId

func (self *SNetwork) GetId() string

func (*SNetwork) GetIpEnd

func (self *SNetwork) GetIpEnd() string

func (*SNetwork) GetIpMask

func (self *SNetwork) GetIpMask() int8

func (*SNetwork) GetIpStart

func (self *SNetwork) GetIpStart() string

func (*SNetwork) GetIsPublic

func (self *SNetwork) GetIsPublic() bool

func (*SNetwork) GetMetadata

func (self *SNetwork) GetMetadata() *jsonutils.JSONDict

func (*SNetwork) GetName

func (self *SNetwork) GetName() string

func (*SNetwork) GetServerType

func (self *SNetwork) GetServerType() string

func (*SNetwork) GetStatus

func (self *SNetwork) GetStatus() string

func (*SNetwork) IsEmulated

func (self *SNetwork) IsEmulated() bool

func (*SNetwork) Refresh

func (self *SNetwork) Refresh() error

type SRegion

type SRegion struct {
	ID             string
	SubscriptionID string
	Name           string
	DisplayName    string
	Latitude       float32
	Longitude      float32
	// contains filtered or unexported fields
}

func (*SRegion) AllocateEIP

func (region *SRegion) AllocateEIP(eipName string) (*SEipAddress, error)

func (*SRegion) AssiginClassicSecurityGroup

func (region *SRegion) AssiginClassicSecurityGroup(instanceId, secgroupId string) error

func (*SRegion) AssiginSecurityGroup

func (region *SRegion) AssiginSecurityGroup(instanceId, secgroupId string) error

func (*SRegion) AssociateEip

func (region *SRegion) AssociateEip(eipId string, instanceId string) error

func (*SRegion) AttachDisk

func (region *SRegion) AttachDisk(instanceId, diskId string) error

func (*SRegion) AttachSecurityToInterfaces

func (region *SRegion) AttachSecurityToInterfaces(secgroupId string, nicIds []string) error

func (*SRegion) ChangeVMConfig

func (region *SRegion) ChangeVMConfig(instanceId string, ncpu int, vmem int) error

func (*SRegion) CreateClassicSecurityGroup

func (region *SRegion) CreateClassicSecurityGroup(secName, tagId string) (*SClassicSecurityGroup, error)

func (*SRegion) CreateClassicSnapshot

func (self *SRegion) CreateClassicSnapshot(diskId, snapName, desc string) (*SClassicSnapshot, error)

func (*SRegion) CreateDisk

func (self *SRegion) CreateDisk(storageType string, name string, sizeGb int32, desc string, imageId string) (*SDisk, error)

func (*SRegion) CreateEIP

func (region *SRegion) CreateEIP(eipName string, bwMbps int, chargeType string) (cloudprovider.ICloudEIP, error)

func (*SRegion) CreateIVpc

func (self *SRegion) CreateIVpc(name string, desc string, cidr string) (cloudprovider.ICloudVpc, error)

func (*SRegion) CreateImage

func (self *SRegion) CreateImage(snapshotId, imageName, osType, imageDesc string) (*SImage, error)

func (*SRegion) CreateImageByBlob

func (self *SRegion) CreateImageByBlob(imageName, osType, blobURI string, diskSizeGB int32) (*SImage, error)

func (*SRegion) CreateInstanceSimple

func (self *SRegion) CreateInstanceSimple(name string, imgId string, cpu int, memGB int, storageType string, dataDiskSizesGB []int, networkId string, passwd string, publicKey string) (*SInstance, error)

func (*SRegion) CreateNetworkInterface

func (self *SRegion) CreateNetworkInterface(nicName string, ipAddr string, subnetId string, secgrpId string) (*SInstanceNic, error)

func (*SRegion) CreateResourceGroup

func (self *SRegion) CreateResourceGroup(groupName string) (*SResourceGroup, error)

func (*SRegion) CreateSecurityGroup

func (region *SRegion) CreateSecurityGroup(secName string, tagId string) (*SSecurityGroup, error)

func (*SRegion) CreateSnapshot

func (self *SRegion) CreateSnapshot(diskId, snapName, desc string) (*SSnapshot, error)

func (*SRegion) CreateStorageAccount

func (self *SRegion) CreateStorageAccount(storageAccount string) (*SStorageAccount, error)

func (*SRegion) DeallocateEIP

func (region *SRegion) DeallocateEIP(eipId string) error

func (*SRegion) DeleteClassicSnapshot

func (self *SRegion) DeleteClassicSnapshot(snapshotId string) error

func (*SRegion) DeleteDisk

func (self *SRegion) DeleteDisk(diskId string) error

func (*SRegion) DeleteImage

func (self *SRegion) DeleteImage(imageId string) error

func (*SRegion) DeleteNetworkInterface

func (region *SRegion) DeleteNetworkInterface(interfaceId string) error

func (*SRegion) DeleteSnapshot

func (self *SRegion) DeleteSnapshot(snapshotId string) error

func (*SRegion) DeleteStorageAccount

func (self *SRegion) DeleteStorageAccount(accountId string) error

func (*SRegion) DeleteVM

func (self *SRegion) DeleteVM(instanceId string) error

func (*SRegion) DeployVM

func (region *SRegion) DeployVM(instanceId, name, password, publicKey string, deleteKeypair bool, description string) error

func (*SRegion) DetachDisk

func (region *SRegion) DetachDisk(instanceId, diskId string) error

func (*SRegion) DissociateEip

func (region *SRegion) DissociateEip(eipId string) error

func (*SRegion) GetClassicDisks

func (self *SRegion) GetClassicDisks() ([]SClassicDisk, error)

func (*SRegion) GetClassicEip

func (region *SRegion) GetClassicEip(eipId string) (*SClassicEipAddress, error)

func (*SRegion) GetClassicEips

func (region *SRegion) GetClassicEips() ([]SClassicEipAddress, error)

func (*SRegion) GetClassicInstance

func (self *SRegion) GetClassicInstance(instanceId string) (*SClassicInstance, error)

func (*SRegion) GetClassicInstances

func (self *SRegion) GetClassicInstances() ([]SClassicInstance, error)

func (*SRegion) GetClassicSecurityGroupDetails

func (region *SRegion) GetClassicSecurityGroupDetails(secgroupId string) (*SClassicSecurityGroup, error)

func (*SRegion) GetClassicSecurityGroups

func (region *SRegion) GetClassicSecurityGroups() ([]SClassicSecurityGroup, error)

func (*SRegion) GetClassicSnapShots

func (region *SRegion) GetClassicSnapShots(diskId string) ([]SClassicSnapshot, error)

func (*SRegion) GetClassicStorageAccounts

func (self *SRegion) GetClassicStorageAccounts() ([]SStorageAccount, error)

func (*SRegion) GetClassicVpc

func (region *SRegion) GetClassicVpc(vpcId string) (*SClassicVpc, error)

func (*SRegion) GetClient

func (self *SRegion) GetClient() *SAzureClient

func (*SRegion) GetDisk

func (self *SRegion) GetDisk(diskId string) (*SDisk, error)

func (*SRegion) GetDisks

func (self *SRegion) GetDisks() ([]SDisk, error)

func (*SRegion) GetEip

func (region *SRegion) GetEip(eipId string) (*SEipAddress, error)

func (*SRegion) GetEips

func (region *SRegion) GetEips() ([]SEipAddress, error)

func (*SRegion) GetGlobalId

func (self *SRegion) GetGlobalId() string

func (*SRegion) GetIEipById

func (region *SRegion) GetIEipById(eipId string) (cloudprovider.ICloudEIP, error)

func (*SRegion) GetIEips

func (region *SRegion) GetIEips() ([]cloudprovider.ICloudEIP, error)

func (*SRegion) GetIHostById

func (self *SRegion) GetIHostById(id string) (cloudprovider.ICloudHost, error)

func (*SRegion) GetISnapshotById

func (self *SRegion) GetISnapshotById(snapshotId string) (cloudprovider.ICloudSnapshot, error)

func (*SRegion) GetISnapshots

func (self *SRegion) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error)

func (*SRegion) GetIStorageById

func (self *SRegion) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)

func (*SRegion) GetIStoragecacheById

func (self *SRegion) GetIStoragecacheById(id string) (cloudprovider.ICloudStoragecache, error)

func (*SRegion) GetIVpcById

func (self *SRegion) GetIVpcById(id string) (cloudprovider.ICloudVpc, error)

func (*SRegion) GetIVpcs

func (self *SRegion) GetIVpcs() ([]cloudprovider.ICloudVpc, error)

func (*SRegion) GetIZoneById

func (self *SRegion) GetIZoneById(id string) (cloudprovider.ICloudZone, error)

func (*SRegion) GetIZones

func (self *SRegion) GetIZones() ([]cloudprovider.ICloudZone, error)

func (*SRegion) GetId

func (self *SRegion) GetId() string

func (*SRegion) GetImage

func (self *SRegion) GetImage(imageId string) (*SImage, error)

func (*SRegion) GetImageByName

func (self *SRegion) GetImageByName(name string) (*SImage, error)

func (*SRegion) GetImageStatus

func (self *SRegion) GetImageStatus(imageId string) (ImageStatusType, error)

func (*SRegion) GetImages

func (self *SRegion) GetImages() ([]SImage, error)

func (*SRegion) GetInstance

func (self *SRegion) GetInstance(instanceId string) (*SInstance, error)

func (*SRegion) GetInstanceScaleSets

func (self *SRegion) GetInstanceScaleSets() ([]SInstance, error)

func (*SRegion) GetInstances

func (self *SRegion) GetInstances() ([]SInstance, error)

func (*SRegion) GetLatitude

func (self *SRegion) GetLatitude() float32

func (*SRegion) GetLongitude

func (self *SRegion) GetLongitude() float32

func (*SRegion) GetMetadata

func (self *SRegion) GetMetadata() *jsonutils.JSONDict

func (*SRegion) GetName

func (self *SRegion) GetName() string

func (*SRegion) GetNetworkDetail

func (self *SRegion) GetNetworkDetail(networkId string) (*Subnet, error)

func (*SRegion) GetNetworkInterfaceDetail

func (self *SRegion) GetNetworkInterfaceDetail(interfaceId string) (*SInstanceNic, error)

func (*SRegion) GetNetworkInterfaces

func (self *SRegion) GetNetworkInterfaces() ([]SInstanceNic, error)

func (*SRegion) GetProvider

func (self *SRegion) GetProvider() string

func (*SRegion) GetResourceGroupDetail

func (self *SRegion) GetResourceGroupDetail(groupName string) (*SResourceGroup, error)

func (*SRegion) GetResourceGroups

func (self *SRegion) GetResourceGroups() ([]SResourceGroup, error)

func (*SRegion) GetSecurityGroupDetails

func (region *SRegion) GetSecurityGroupDetails(secgroupId string) (*SSecurityGroup, error)

func (*SRegion) GetSecurityGroups

func (region *SRegion) GetSecurityGroups() ([]SSecurityGroup, error)

func (*SRegion) GetSnapShots

func (region *SRegion) GetSnapShots(diskId string) ([]SSnapshot, error)

func (*SRegion) GetSnapshotDetail

func (region *SRegion) GetSnapshotDetail(snapshotId string) (*SSnapshot, error)

func (*SRegion) GetStatus

func (self *SRegion) GetStatus() string

func (*SRegion) GetStorageAccountDetail

func (self *SRegion) GetStorageAccountDetail(accountId string) (*SStorageAccount, error)

func (*SRegion) GetStorageAccountDisksWithSnapshots

func (self *SRegion) GetStorageAccountDisksWithSnapshots(storageaccount SStorageAccount) ([]SClassicDisk, []SClassicSnapshot, error)

func (*SRegion) GetStorageAccountKey

func (self *SRegion) GetStorageAccountKey(accountId string) (string, error)

func (*SRegion) GetStorageAccounts

func (self *SRegion) GetStorageAccounts() ([]SStorageAccount, error)

func (*SRegion) GetStorageAccountsDisksWithSnapshots

func (self *SRegion) GetStorageAccountsDisksWithSnapshots(storageaccounts ...SStorageAccount) ([]SClassicDisk, []SClassicSnapshot, error)

func (*SRegion) GetStorageTypes

func (self *SRegion) GetStorageTypes() ([]SStorage, error)

func (*SRegion) GetUniqStorageAccountName

func (self *SRegion) GetUniqStorageAccountName() string

func (*SRegion) GetVMSize

func (self *SRegion) GetVMSize() (map[string]SVMSize, error)

func (*SRegion) GetVpc

func (region *SRegion) GetVpc(vpcId string) (*SVpc, error)

func (*SRegion) GrantAccessSnapshot

func (self *SRegion) GrantAccessSnapshot(snapshotId string) (string, error)

func (*SRegion) IsEmulated

func (self *SRegion) IsEmulated() bool

func (*SRegion) Refresh

func (self *SRegion) Refresh() error

///////////////////////////////////////////////////////////////////////////

func (*SRegion) ReplaceSystemDisk

func (region *SRegion) ReplaceSystemDisk(instanceId, imageId, passwd, publicKey string, sysSizeGB int32) (string, error)

func (*SRegion) ResizeDisk

func (self *SRegion) ResizeDisk(diskId string, sizeGb int32) error

func (*SRegion) StartVM

func (self *SRegion) StartVM(instanceId string) error

func (*SRegion) StopClassicVM

func (self *SRegion) StopClassicVM(instanceId string, isForce bool) error

func (*SRegion) StopVM

func (self *SRegion) StopVM(instanceId string, isForce bool) error

type SResourceGroup

type SResourceGroup struct {
	ID         string
	Name       string
	Location   string
	Properties GroupProperties
	ManagedBy  string
}

type SSHConfiguration

type SSHConfiguration struct {
	PublicKeys []SSHPublicKey `json:"publicKeys,omitempty"`
}

type SSHPublicKey

type SSHPublicKey struct {
	Path    string `json:"path,omitempty"`
	KeyData string `json:"keyData,omitempty"`
}

type SSecurityGroup

type SSecurityGroup struct {
	Properties *SecurityGroupPropertiesFormat `json:"properties,omitempty"`
	ID         string
	Name       string
	Location   string
	Type       string
	Tags       map[string]string
	// contains filtered or unexported fields
}

func (*SSecurityGroup) GetDescription

func (self *SSecurityGroup) GetDescription() string

func (*SSecurityGroup) GetGlobalId

func (self *SSecurityGroup) GetGlobalId() string

func (*SSecurityGroup) GetId

func (self *SSecurityGroup) GetId() string

func (*SSecurityGroup) GetMetadata

func (self *SSecurityGroup) GetMetadata() *jsonutils.JSONDict

func (*SSecurityGroup) GetName

func (self *SSecurityGroup) GetName() string

func (*SSecurityGroup) GetRules

func (self *SSecurityGroup) GetRules() ([]secrules.SecurityRule, error)

func (*SSecurityGroup) GetStatus

func (self *SSecurityGroup) GetStatus() string

func (*SSecurityGroup) IsEmulated

func (self *SSecurityGroup) IsEmulated() bool

func (*SSecurityGroup) Refresh

func (self *SSecurityGroup) Refresh() error

type SSnapshot

type SSnapshot struct {
	ID         string
	Name       string
	Location   string
	ManagedBy  string
	Sku        SnapshotSku
	Properties DiskProperties
	// contains filtered or unexported fields
}

func (*SSnapshot) Delete

func (self *SSnapshot) Delete() error

func (*SSnapshot) GetDiskId

func (self *SSnapshot) GetDiskId() string

func (*SSnapshot) GetDiskType

func (self *SSnapshot) GetDiskType() string

func (*SSnapshot) GetGlobalId

func (self *SSnapshot) GetGlobalId() string

func (*SSnapshot) GetId

func (self *SSnapshot) GetId() string

func (*SSnapshot) GetManagerId

func (self *SSnapshot) GetManagerId() string

func (*SSnapshot) GetMetadata

func (self *SSnapshot) GetMetadata() *jsonutils.JSONDict

func (*SSnapshot) GetName

func (self *SSnapshot) GetName() string

func (*SSnapshot) GetRegionId

func (self *SSnapshot) GetRegionId() string

func (*SSnapshot) GetSize

func (self *SSnapshot) GetSize() int32

func (*SSnapshot) GetStatus

func (self *SSnapshot) GetStatus() string

func (*SSnapshot) IsEmulated

func (self *SSnapshot) IsEmulated() bool

func (*SSnapshot) Refresh

func (self *SSnapshot) Refresh() error

type SStorage

type SStorage struct {
	Name         string
	ResourceType string
	Tier         string
	Kind         string
	Locations    []string
	Capabilities []Capabilitie
	// contains filtered or unexported fields
}

func (*SStorage) CreateIDisk

func (self *SStorage) CreateIDisk(name string, sizeGb int, desc string) (cloudprovider.ICloudDisk, error)

func (*SStorage) GetCapacityMB

func (self *SStorage) GetCapacityMB() int

func (*SStorage) GetEnabled

func (self *SStorage) GetEnabled() bool

func (*SStorage) GetGlobalId

func (self *SStorage) GetGlobalId() string

func (*SStorage) GetIDisk

func (self *SStorage) GetIDisk(diskId string) (cloudprovider.ICloudDisk, error)

func (*SStorage) GetIDisks

func (self *SStorage) GetIDisks() ([]cloudprovider.ICloudDisk, error)

func (*SStorage) GetIStoragecache

func (self *SStorage) GetIStoragecache() cloudprovider.ICloudStoragecache

func (*SStorage) GetIZone

func (self *SStorage) GetIZone() cloudprovider.ICloudZone

func (*SStorage) GetId

func (self *SStorage) GetId() string

func (*SStorage) GetManagerId

func (self *SStorage) GetManagerId() string

func (*SStorage) GetMediumType

func (self *SStorage) GetMediumType() string

func (*SStorage) GetMetadata

func (self *SStorage) GetMetadata() *jsonutils.JSONDict

func (*SStorage) GetName

func (self *SStorage) GetName() string

func (*SStorage) GetStatus

func (self *SStorage) GetStatus() string

func (*SStorage) GetStorageConf

func (self *SStorage) GetStorageConf() jsonutils.JSONObject

func (*SStorage) GetStorageType

func (self *SStorage) GetStorageType() string

func (*SStorage) IsEmulated

func (self *SStorage) IsEmulated() bool

func (*SStorage) Refresh

func (self *SStorage) Refresh() error

type SStorageAccount

type SStorageAccount struct {
	Sku        Sku    `json:"sku,omitempty"`
	Kind       string `json:"kind,omitempty"`
	Identity   *Identity
	Properties AccountProperties
	Location   string
	ID         string
	Name       string
	Type       string
	Tags       map[string]string
	// contains filtered or unexported fields
}

func (*SStorageAccount) CreateContainer

func (self *SStorageAccount) CreateContainer(containerName string) (*SContainer, error)

func (*SStorageAccount) GetAccountKey

func (self *SStorageAccount) GetAccountKey() (accountKey string, err error)

func (*SStorageAccount) GetBlobBaseUrl

func (self *SStorageAccount) GetBlobBaseUrl() string

func (*SStorageAccount) GetContainers

func (self *SStorageAccount) GetContainers() ([]SContainer, error)

func (*SStorageAccount) UploadFile

func (self *SStorageAccount) UploadFile(containerName string, filePath string) (string, error)

type SStoragecache

type SStoragecache struct {
	// contains filtered or unexported fields
}

func (*SStoragecache) CreateIImage

func (self *SStoragecache) CreateIImage(snapshotId, imageName, osType, imageDesc string) (cloudprovider.ICloudImage, error)

func (*SStoragecache) DownloadImage

func (self *SStoragecache) DownloadImage(userCred mcclient.TokenCredential, imageId string, extId string, path string) (jsonutils.JSONObject, error)

func (*SStoragecache) GetGlobalId

func (self *SStoragecache) GetGlobalId() string

func (*SStoragecache) GetIImages

func (self *SStoragecache) GetIImages() ([]cloudprovider.ICloudImage, error)

func (*SStoragecache) GetId

func (self *SStoragecache) GetId() string

func (*SStoragecache) GetManagerId

func (self *SStoragecache) GetManagerId() string

func (*SStoragecache) GetMetadata

func (self *SStoragecache) GetMetadata() *jsonutils.JSONDict

func (*SStoragecache) GetName

func (self *SStoragecache) GetName() string

func (*SStoragecache) GetStatus

func (self *SStoragecache) GetStatus() string

func (*SStoragecache) IsEmulated

func (self *SStoragecache) IsEmulated() bool

func (*SStoragecache) Refresh

func (self *SStoragecache) Refresh() error

func (*SStoragecache) UploadImage

func (self *SStoragecache) UploadImage(userCred mcclient.TokenCredential, imageId string, osArch, osType, osDist string, extId string, isForce bool) (string, error)

type SVMSize

type SVMSize struct {
	//MaxDataDiskCount     int32 `json:"maxDataDiskCount,omitempty"` //Unmarshal会出错
	MemoryInMB           int32 `json:"memoryInMB,omitempty"`
	NumberOfCores        int32 `json:"numberOfCores,omitempty"`
	Name                 string
	OsDiskSizeInMB       int32 `json:"osDiskSizeInMB,omitempty"`
	ResourceDiskSizeInMB int32 `json:"resourceDiskSizeInMB,omitempty"`
}

type SVirtualMachineExtension

type SVirtualMachineExtension struct {
	Location   string                            `json:"location,omitempty"`
	Properties VirtualMachineExtensionProperties `json:"properties,omitempty"`
}

type SVpc

type SVpc struct {
	ID         string
	Name       string
	Etag       string
	Type       string
	Location   string
	Tags       map[string]string
	Properties VirtualNetworkPropertiesFormat `json:"properties,omitempty"`
	// contains filtered or unexported fields
}

func (*SVpc) Delete

func (self *SVpc) Delete() error

func (*SVpc) GetCidrBlock

func (self *SVpc) GetCidrBlock() string

func (*SVpc) GetGlobalId

func (self *SVpc) GetGlobalId() string

func (*SVpc) GetISecurityGroups

func (self *SVpc) GetISecurityGroups() ([]cloudprovider.ICloudSecurityGroup, error)

func (*SVpc) GetIWireById

func (self *SVpc) GetIWireById(wireId string) (cloudprovider.ICloudWire, error)

func (*SVpc) GetIWires

func (self *SVpc) GetIWires() ([]cloudprovider.ICloudWire, error)

func (*SVpc) GetId

func (self *SVpc) GetId() string

func (*SVpc) GetIsDefault

func (self *SVpc) GetIsDefault() bool

func (*SVpc) GetManagerId

func (self *SVpc) GetManagerId() string

func (*SVpc) GetMetadata

func (self *SVpc) GetMetadata() *jsonutils.JSONDict

func (*SVpc) GetName

func (self *SVpc) GetName() string

func (*SVpc) GetNetworks

func (self *SVpc) GetNetworks() []SNetwork

func (*SVpc) GetRegion

func (self *SVpc) GetRegion() cloudprovider.ICloudRegion

func (*SVpc) GetStatus

func (self *SVpc) GetStatus() string

func (*SVpc) IsEmulated

func (self *SVpc) IsEmulated() bool

func (*SVpc) Refresh

func (self *SVpc) Refresh() error

func (*SVpc) SyncSecurityGroup

func (self *SVpc) SyncSecurityGroup(tag string, name string, rules []secrules.SecurityRule) (string, error)

type SWire

type SWire struct {
	// contains filtered or unexported fields
}

func (*SWire) CreateINetwork

func (self *SWire) CreateINetwork(name string, cidr string, desc string) (cloudprovider.ICloudNetwork, error)

func (*SWire) GetBandwidth

func (self *SWire) GetBandwidth() int

func (*SWire) GetGlobalId

func (self *SWire) GetGlobalId() string

func (*SWire) GetINetworkById

func (self *SWire) GetINetworkById(netid string) (cloudprovider.ICloudNetwork, error)

func (*SWire) GetINetworks

func (self *SWire) GetINetworks() ([]cloudprovider.ICloudNetwork, error)

func (*SWire) GetIVpc

func (self *SWire) GetIVpc() cloudprovider.ICloudVpc

func (*SWire) GetIZone

func (self *SWire) GetIZone() cloudprovider.ICloudZone

func (*SWire) GetId

func (self *SWire) GetId() string

func (*SWire) GetMetadata

func (self *SWire) GetMetadata() *jsonutils.JSONDict

func (*SWire) GetName

func (self *SWire) GetName() string

func (*SWire) GetStatus

func (self *SWire) GetStatus() string

func (*SWire) IsEmulated

func (self *SWire) IsEmulated() bool

func (*SWire) Refresh

func (self *SWire) Refresh() error

type SZone

type SZone struct {
	Name string
	// contains filtered or unexported fields
}

func (*SZone) GetGlobalId

func (self *SZone) GetGlobalId() string

func (*SZone) GetIClassicWires

func (self *SZone) GetIClassicWires() ([]cloudprovider.ICloudWire, error)

func (*SZone) GetIHostById

func (self *SZone) GetIHostById(id string) (cloudprovider.ICloudHost, error)

func (*SZone) GetIHosts

func (self *SZone) GetIHosts() ([]cloudprovider.ICloudHost, error)

func (*SZone) GetIRegion

func (self *SZone) GetIRegion() cloudprovider.ICloudRegion

func (*SZone) GetIStorageById

func (self *SZone) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)

func (*SZone) GetIStorages

func (self *SZone) GetIStorages() ([]cloudprovider.ICloudStorage, error)

func (*SZone) GetIWires

func (self *SZone) GetIWires() ([]cloudprovider.ICloudWire, error)

func (*SZone) GetId

func (self *SZone) GetId() string

func (*SZone) GetMetadata

func (self *SZone) GetMetadata() *jsonutils.JSONDict

func (*SZone) GetName

func (self *SZone) GetName() string

func (*SZone) GetStatus

func (self *SZone) GetStatus() string

func (*SZone) IsEmulated

func (self *SZone) IsEmulated() bool

func (*SZone) Refresh

func (self *SZone) Refresh() error

type SecurityGroupPropertiesFormat

type SecurityGroupPropertiesFormat struct {
	SecurityRules        *[]SecurityRules `json:"securityRules,omitempty"`
	DefaultSecurityRules *[]SecurityRules `json:"defaultSecurityRules,omitempty"`
	NetworkInterfaces    *[]Interface     `json:"networkInterfaces,omitempty"`
	Subnets              *[]Subnet        `json:"subnets,omitempty"`
	ProvisioningState    string           //Possible values are: 'Updating', 'Deleting', and 'Failed'
}

type SecurityRulePropertiesFormat

type SecurityRulePropertiesFormat struct {
	Description                string    `json:"description,omitempty"`
	Protocol                   string    `json:"protocol,omitempty"`
	SourcePortRange            string    `json:"sourcePortRange,omitempty"`
	DestinationPortRange       string    `json:"destinationPortRange,omitempty"`
	SourceAddressPrefix        string    `json:"sourceAddressPrefix,omitempty"`
	SourceAddressPrefixes      *[]string `json:"sourceAddressPrefixes,omitempty"`
	DestinationAddressPrefix   string    `json:"destinationAddressPrefix,omitempty"`
	DestinationAddressPrefixes *[]string `json:"destinationAddressPrefixes,omitempty"`
	SourcePortRanges           *[]string `json:"sourcePortRanges,omitempty"`
	DestinationPortRanges      *[]string `json:"destinationPortRanges,omitempty"`
	Access                     string    `json:"access,omitempty"` // Allow or Deny
	Priority                   int32     `json:"priority,omitempty"`
	Direction                  string    `json:"direction,omitempty"` //Inbound or Outbound
	ProvisioningState          string    `json:"-"`
}

func (*SecurityRulePropertiesFormat) String

func (self *SecurityRulePropertiesFormat) String() string

type SecurityRules

type SecurityRules struct {
	Properties SecurityRulePropertiesFormat
	Name       string
	ID         string
}

type SecurityRulesSet

type SecurityRulesSet []SecurityRules

func (SecurityRulesSet) Len

func (v SecurityRulesSet) Len() int

func (SecurityRulesSet) Less

func (v SecurityRulesSet) Less(i, j int) bool

func (SecurityRulesSet) Swap

func (v SecurityRulesSet) Swap(i, j int)

type Sku

type Sku struct {
	Name         string
	Tier         string
	Kind         string
	ResourceType string
}

type SnapshotSku

type SnapshotSku struct {
	Name string
	Tier string
}

type StorageProfile

type StorageProfile struct {
	ImageReference ImageReference `json:"imageReference,omitempty"`
	OsDisk         OSDisk         `json:"osDisk,omitempty"`
	DataDisks      []DataDisk     `json:"dataDisks,omitempty"`
}

type SubResource

type SubResource struct {
	ID   string
	Name string
	Type string
}

type Subnet

type Subnet struct {
	Properties SubnetPropertiesFormat
	Name       string
	ID         string
}

type SubnetPropertiesFormat

type SubnetPropertiesFormat struct {
	AddressPrefix string `json:"addressPrefix,omitempty"`
}

type TInternetChargeType

type TInternetChargeType string

type VaultCertificate

type VaultCertificate struct {
	CertificateURL   string `json:"certificateURL,omitempty"`
	CertificateStore string `json:"certificateStore,omitempty"`
}

type VaultSecretGroup

type VaultSecretGroup struct {
	SourceVault       SubResource        `json:"sourceVault,omitempty"`
	VaultCertificates []VaultCertificate `json:"vaultCertificates,omitempty"`
}

type VirtualHardDisk

type VirtualHardDisk struct {
	Uri string `json:"uri,omitempty"`
}

type VirtualMachineExtensionProperties

type VirtualMachineExtensionProperties struct {
	Publisher          string      `json:"publisher,omitempty"`
	Type               string      `json:"type,omitempty"`
	TypeHandlerVersion string      `json:"typeHandlerVersion,omitempty"`
	ProtectedSettings  interface{} `json:"protectedSettings,omitempty"`
	Settings           interface{} `json:"settings,omitempty"`
}

type VirtualMachineInstanceView

type VirtualMachineInstanceView struct {
	UpdateDomain             int
	FaultDomain              int
	Status                   string
	StatusMessage            string
	PowerState               string
	PrivateIpAddress         string
	PublicIpAddresses        []string
	FullyQualifiedDomainName string
	GuestAgentStatus         GuestAgentStatus

	ComputerName string
	OsName       string
	OsVersion    string
	Statuses     []InstanceViewStatus
}

type VirtualMachineProperties

type VirtualMachineProperties struct {
	ProvisioningState string                      `json:"provisioningState,omitempty"`
	InstanceView      *VirtualMachineInstanceView `json:"instanceView,omitempty"`
	DomainName        *DomainName                 `json:"domainName,omitempty"`
	HardwareProfile   HardwareProfile             `json:"hardwareProfile,omitempty"`
	NetworkProfile    NetworkProfile              `json:"networkProfile,omitempty"`
	StorageProfile    StorageProfile              `json:"storageProfile,omitempty"`
	DebugProfile      *DebugProfile               `json:"debugProfile,omitempty"`
	OsProfile         OsProfile                   `json:"osProfile,omitempty"`
	VmId              string                      `json:"vmId,omitempty"`
}

type VirtualNetworkPropertiesFormat

type VirtualNetworkPropertiesFormat struct {
	ProvisioningState      string
	Status                 string
	VirtualNetworkSiteName string
	AddressSpace           AddressSpace `json:"addressSpace,omitempty"`
	Subnets                *[]SNetwork  `json:"subnets,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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