azure

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: Apache-2.0 Imports: 61 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CLOUD_PROVIDER_AZURE    = api.CLOUD_PROVIDER_AZURE
	CLOUD_PROVIDER_AZURE_CN = "微软"
	CLOUD_PROVIDER_AZURE_EN = "Azure"

	AZURE_API_VERSION = "2016-02-01"
)
View Source
const (
	RDS_TYPE_SERVERS          = "servers"
	RDS_TYPE_FLEXIBLE_SERVERS = "flexibleServers"
)
View Source
const (
	ResourceSkuCapacityScaleTypeAutomatic = TResourceSkuCapacityScaleType("Automatic")
	ResourceSkuCapacityScaleTypeManual    = TResourceSkuCapacityScaleType("Manual")
	ResourceSkuCapacityScaleTypeNone      = TResourceSkuCapacityScaleType("None")
)
View Source
const (
	ResourceSkuRestrictionsTypeLocation = TResourceSkuRestrictionsType("Location")
	ResourceSkuRestrictionsTypeZone     = TResourceSkuRestrictionsType("Zone")
)
View Source
const (
	ResourceSkuRestrictionsReasonCodeNotAvailable = TResourceSkuRestrictionsReasonCode("NotAvailableForSubscription")
	ResourceSkuRestrictionsReasonCodeQuotaId      = TResourceSkuRestrictionsReasonCode("QuotaId")
)
View Source
const (
	STORAGE_STD_LRS = "Standard_LRS"
	STORAGE_PRE_LRS = "Premium_LRS"
	STORAGE_STD_SSD = "StandardSSD_LRS"
)
View Source
const (
	DefaultStorageAccount string = "image"
	DefaultContainer      string = "image-cache"

	DefaultReadBlockSize int64 = 4 * 1024 * 1024
)
View Source
const (
	DEFAULT_EXTENSION_NAME = "enablevmaccess"
)

Variables

View Source
var (
	GraphResource        = TAzureResource("graph")
	DefaultResource      = TAzureResource("default")
	LoganalyticsResource = TAzureResource("loganalytics")
)
View Source
var AzureGeographicInfo = map[string]cloudprovider.SGeographicInfo{
	"southafricanorth":   api.RegionPretoria,
	"southafricawest":    api.RegionCapeTown,
	"australiacentral2":  api.RegionYarralumla,
	"koreasouth":         api.RegionBusan,
	"canadacentral":      api.RegionToronto,
	"northeurope":        api.RegionDublin,
	"australiacentral":   api.RegionYarralumla,
	"francecentral":      api.RegionAllier,
	"westus":             api.RegionSanFrancisco,
	"japanwest":          api.RegionOsaka,
	"francesouth":        api.RegionTarn,
	"eastus":             api.RegionVirginia,
	"westindia":          api.RegionMumbai,
	"westcentralus":      api.RegionUtah,
	"southeastasia":      api.RegionSingapore,
	"eastasia":           api.RegionHongkong,
	"eastus2":            api.RegionVirginia,
	"japaneast":          api.RegionTokyo,
	"ukwest":             api.RegionHalton,
	"australiasoutheast": api.RegionMelbourne,
	"uksouth":            api.RegionSussex,
	"westus2":            api.RegionWashington,
	"southcentralus":     api.RegionTexas,
	"brazilsouth":        api.RegionSaoPaulo,
	"koreacentral":       api.RegionSeoul,
	"centralindia":       api.RegionMaharashtra,
	"northcentralus":     api.RegionChicago,
	"centralus":          api.RegionIowa,
	"australiaeast":      api.RegionSydney,
	"westeurope":         api.RegionHolland,
	"canadaeast":         api.RegionQuebec,
	"southindia":         api.RegionKanchipuram,
	"uaenorth":           api.RegionDubai,
	"uaecentral":         api.RegionDubai,
	"switzerlandwest":    api.RegionGeneva,
	"switzerlandnorth":   api.RegionZurich,
	"norwaywest":         api.RegionStavanger,
	"norwayeast":         api.RegionOslo,
	"germanywestcentral": api.RegionFrankfurt,
	"germanynorth":       api.RegionDelmenhorst,
	"westus3":            api.RegionPhoenix,
	"brazilsoutheast":    api.RegionRioDeJaneiro,
	"jioindiawest":       api.RegionJioIndiaWest,
	"jioindiacentral":    api.RegionJioIndiaCentral,

	"chinaeast":   api.RegionShanghai,
	"chinaeast2":  api.RegionShanghai,
	"chinanorth":  api.RegionBeijing,
	"chinanorth2": api.RegionBeijing,
	"chinanorth3": api.RegionZhangjiakou,
}

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, callback func(float32)) 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 {
	//normal
	PrimaryEndpoints   SStorageEndpoints `json:"primaryEndpoints,omitempty"`
	ProvisioningState  string
	PrimaryLocation    string
	SecondaryEndpoints SStorageEndpoints `json:"secondaryEndpoints,omitempty"`
	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 AutoscaleConfiguration

type AutoscaleConfiguration struct {
	MaxCapacity int `json:"maxCapacity"`
	MinCapacity int `json:"minCapacity"`
}

type AzureClientConfig

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

func NewAzureClientConfig

func NewAzureClientConfig(envName, tenantId, clientId, clientSecret string) *AzureClientConfig

func (*AzureClientConfig) CloudproviderConfig

func (cfg *AzureClientConfig) CloudproviderConfig(cpcfg cloudprovider.ProviderConfig) *AzureClientConfig

func (*AzureClientConfig) Debug

func (cfg *AzureClientConfig) Debug(debug bool) *AzureClientConfig

func (*AzureClientConfig) SubscriptionId

func (cfg *AzureClientConfig) SubscriptionId(id string) *AzureClientConfig

type AzureError

type AzureError struct {
	Code    string             `json:"code,omitempty"`
	Details []AzureErrorDetail `json:"details,omitempty"`
	Message string             `json:"message,omitempty"`
}

func (*AzureError) Error

func (e *AzureError) Error() string

type AzureErrorDetail

type AzureErrorDetail struct {
	Code    string `json:"code,omitempty"`
	Message string `json:"message,omitempty"`
	Target  string `json:"target,omitempty"`
}

type AzureResponseError

type AzureResponseError struct {
	OdataError sOdataError `json:"odata.error"`
	AzureError AzureError  `json:"error"`
	Code       string
	Message    string
}

func (AzureResponseError) Error

func (ae AzureResponseError) Error() string

func (*AzureResponseError) ParseErrorFromJsonResponse

func (ae *AzureResponseError) ParseErrorFromJsonResponse(statusCode int, status string, body jsonutils.JSONObject) error

type AzureTableMetricData

type AzureTableMetricData struct {
	Value []AzureTableMetricDataValue
}

type AzureTableMetricDataValue

type AzureTableMetricDataValue struct {
	Timestamp    time.Time
	Average      float64
	Count        float64
	CounterName  string
	DeploymentId string
	Host         string
	Total        float64
	Maximum      float64
	Minimum      float64
}

func (AzureTableMetricDataValue) GetValue

func (self AzureTableMetricDataValue) GetValue() float64

type AzureTags

type AzureTags struct {
	Tags map[string]string
}

func (*AzureTags) GetSysTags

func (self *AzureTags) GetSysTags() map[string]string

func (*AzureTags) GetTags

func (self *AzureTags) GetTags() (map[string]string, error)

func (*AzureTags) SetTags

func (self *AzureTags) SetTags(tags map[string]string, replace bool) error

type BackendAddress

type BackendAddress struct {
	IPAddress string `json:"ipAddress"`
}

type BackendAddressPool

type BackendAddressPool struct {
	Name       string                       `json:"name"`
	ID         string                       `json:"id"`
	Etag       string                       `json:"etag"`
	Properties BackendAddressPoolProperties `json:"properties"`
	Type       string                       `json:"type"`
}

type BackendAddressPoolProperties

type BackendAddressPoolProperties struct {
	ProvisioningState       string                   `json:"provisioningState"`
	LoadBalancingRules      []Subnet                 `json:"loadBalancingRules"`
	BackendIPConfigurations []BackendIPConfiguration `json:"backendIPConfigurations"`
	BackendAddresses        []BackendAddress         `json:"backendAddresses"`
	RequestRoutingRules     []BackendIPConfiguration `json:"requestRoutingRules"`
	URLPathMaps             []BackendIPConfiguration `json:"urlPathMaps"`
	PathRules               []BackendIPConfiguration `json:"pathRules"`
}

type BackendHTTPSettingsCollection

type BackendHTTPSettingsCollection struct {
	Name       string                                  `json:"name"`
	ID         string                                  `json:"id"`
	Properties BackendHTTPSettingsCollectionProperties `json:"properties"`
}

type BackendHTTPSettingsCollectionProperties

type BackendHTTPSettingsCollectionProperties struct {
	Port                int                `json:"port"`
	Protocol            string             `json:"protocol"`
	Probe               *ProbeId           `json:"probe"`
	ConnectionDraining  ConnectionDraining `json:"connectionDraining"`
	CookieBasedAffinity string             `json:"cookieBasedAffinity"`
	AffinityCookieName  string             `json:"affinityCookieName"`
	HostName            string             `json:"hostName"`
	RequestTimeout      int                `json:"requestTimeout"`
}

type BackendIPConfiguration

type BackendIPConfiguration struct {
	ID string `json:"id"`
}

type Capabilitie

type Capabilitie struct {
	Name  string
	Value string
}

type ConnectionDraining

type ConnectionDraining struct {
	Enabled           bool   `json:"enabled"`
	DrainTimeoutInSEC string `json:"drainTimeoutInSec"`
}

type ContentProperties

type ContentProperties struct {
	ProvisioningState           string                            `json:"provisioningState"`
	ResourceGUID                string                            `json:"resourceGuid"`
	IPConfigurations            []NetworkInterfaceIPConfiguration `json:"ipConfigurations"`
	DNSSettings                 DNSSettings                       `json:"dnsSettings"`
	MACAddress                  string                            `json:"macAddress"`
	EnableAcceleratedNetworking bool                              `json:"enableAcceleratedNetworking"`
	EnableIPForwarding          bool                              `json:"enableIPForwarding"`
	NetworkSecurityGroup        NetworkSecurityGroup              `json:"networkSecurityGroup"`
	Primary                     bool                              `json:"primary"`
	VirtualMachine              NetworkSecurityGroup              `json:"virtualMachine"`
	HostedWorkloads             []interface{}                     `json:"hostedWorkloads"`
	TapConfigurations           []interface{}                     `json:"tapConfigurations"`
}

type CreationData

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

type CustomRule

type CustomRule struct {
	Name     string `json:"name"`
	Priority int    `json:"priority"`
	Ruletype string `json:"ruleType"`
	//RateLimitThreshold *int              `json:"rateLimitThreshold"`
	Matchconditions []SMatchcondition `json:"matchConditions"`
	Action          string            `json:"action"`
	// contains filtered or unexported fields
}

func (*CustomRule) Delete

func (self *CustomRule) Delete() error

func (*CustomRule) GetAction

func (self *CustomRule) GetAction() *cloudprovider.DefaultAction

func (*CustomRule) GetDesc

func (self *CustomRule) GetDesc() string

func (*CustomRule) GetGlobalId

func (self *CustomRule) GetGlobalId() string

func (*CustomRule) GetName

func (self *CustomRule) GetName() string

func (*CustomRule) GetPriority

func (self *CustomRule) GetPriority() int

func (*CustomRule) GetStatementCondition

func (self *CustomRule) GetStatementCondition() cloudprovider.TWafStatementCondition

func (*CustomRule) GetStatements

func (self *CustomRule) GetStatements() ([]cloudprovider.SWafStatement, error)

func (*CustomRule) Update

func (self *CustomRule) Update(opts *cloudprovider.SWafRule) error

type DNSSettings

type DNSSettings struct {
	DNSServers               []interface{} `json:"dnsServers"`
	AppliedDNSServers        []interface{} `json:"appliedDnsServers"`
	InternalDomainNameSuffix string        `json:"internalDomainNameSuffix"`
}

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    `json:"timeCreated,omitempty"`
	OsType            string       `json:"osType,omitempty"`
	CreationData      CreationData `json:"creationData,omitempty"`
	DiskSizeGB        TAzureInt32  `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 FrontendIPConfiguration

type FrontendIPConfiguration struct {
	Name       string                            `json:"name"`
	ID         string                            `json:"id"`
	Etag       string                            `json:"etag"`
	Type       string                            `json:"type"`
	Zones      []string                          `json:"zones"`
	Properties FrontendIPConfigurationProperties `json:"properties"`
}

type FrontendIPConfigurationProperties

type FrontendIPConfigurationProperties struct {
	ProvisioningState         string           `json:"provisioningState"`
	PrivateIPAddress          string           `json:"privateIPAddress"`
	PublicIPAddress           *PublicIPAddress `json:"publicIPAddress,omitempty"`
	PrivateIPAllocationMethod string           `json:"privateIPAllocationMethod"`
	PrivateIPAddressVersion   string           `json:"privateIPAddressVersion"`
	Subnet                    Subnet           `json:"subnet"`
	LoadBalancingRules        []Subnet         `json:"loadBalancingRules"`
	InboundNatRules           []Subnet         `json:"inboundNatRules"`
}

type FrontendPort

type FrontendPort struct {
	Name       string                 `json:"name"`
	ID         string                 `json:"id"`
	Properties FrontendPortProperties `json:"properties"`
}

type FrontendPortProperties

type FrontendPortProperties struct {
	Port int `json:"port"`
}

type GatewayIPConfiguration

type GatewayIPConfiguration struct {
	Name       string                           `json:"name"`
	ID         string                           `json:"id"`
	Properties GatewayIPConfigurationProperties `json:"properties"`
}

type GatewayIPConfigurationProperties

type GatewayIPConfigurationProperties struct {
	Subnet PublicIPAddress `json:"subnet"`
}

type GroupProperties

type GroupProperties struct {
	ProvisioningState string
}

type HTTPListener

type HTTPListener struct {
	Name       string                 `json:"name"`
	ID         string                 `json:"id"`
	Properties HTTPListenerProperties `json:"properties"`
}

type HTTPListenerProperties

type HTTPListenerProperties struct {
	FrontendIPConfiguration     PublicIPAddress `json:"frontendIPConfiguration"`
	FrontendPort                PublicIPAddress `json:"frontendPort"`
	HostName                    string          `json:"hostName"`
	Protocol                    string          `json:"protocol"`
	SSLCertificate              PublicIPAddress `json:"sslCertificate"`
	RequestRoutingRules         []Subnet        `json:"requestRoutingRules"`
	RequireServerNameIndication bool            `json:"requireServerNameIndication"`
}

type HardwareProfile

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

type IPConfiguration

type IPConfiguration struct {
	Name string
	ID   string
}

type IPConfigurationProperties

type IPConfigurationProperties struct {
	ProvisioningState               string                 `json:"provisioningState"`
	PrivateIPAddress                string                 `json:"privateIPAddress"`
	PrivateIPAllocationMethod       string                 `json:"privateIPAllocationMethod"`
	PublicIPAddress                 NetworkSecurityGroup   `json:"publicIPAddress"`
	Subnet                          NetworkSecurityGroup   `json:"subnet"`
	Primary                         bool                   `json:"primary"`
	PrivateIPAddressVersion         string                 `json:"privateIPAddressVersion"`
	LoadBalancerBackendAddressPools []NetworkSecurityGroup `json:"loadBalancerBackendAddressPools"`
	LoadBalancerInboundNatRules     []NetworkSecurityGroup `json:"loadBalancerInboundNatRules"`
}

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 `json:"diskSizeGB,omitzero"`
	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,omitzero"`
	StorageAccountType string `json:"storageAccountType,omitempty"`
	OperatingSystem    string `json:"operatingSystem,omitempty"`
}

type ImageProperties

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

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     []ImageDataDisk `json:"dataDisks,omitempty"`
	ZoneResilient bool            `json:"zoneResilient,omitfalse"`
}

type InboundNatRule

type InboundNatRule struct {
	Name       string                   `json:"name"`
	ID         string                   `json:"id"`
	Etag       string                   `json:"etag"`
	Type       string                   `json:"type"`
	Properties InboundNatRuleProperties `json:"properties"`
}

type InboundNatRuleProperties

type InboundNatRuleProperties struct {
	ProvisioningState       string `json:"provisioningState"`
	FrontendIPConfiguration Subnet `json:"frontendIPConfiguration"`
	FrontendPort            int64  `json:"frontendPort"`
	BackendPort             int64  `json:"backendPort"`
	EnableFloatingIP        bool   `json:"enableFloatingIP"`
	IdleTimeoutInMinutes    int64  `json:"idleTimeoutInMinutes"`
	Protocol                string `json:"protocol"`
	EnableTCPReset          bool   `json:"enableTcpReset"`
}

type Interface

type Interface struct {
	ID string
}

type InterfaceIPConfiguration

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

func (*InterfaceIPConfiguration) GetGlobalId

func (self *InterfaceIPConfiguration) GetGlobalId() string

func (*InterfaceIPConfiguration) GetINetworkId

func (self *InterfaceIPConfiguration) GetINetworkId() string

func (*InterfaceIPConfiguration) GetIP

func (self *InterfaceIPConfiguration) GetIP() string

func (*InterfaceIPConfiguration) IsPrimary

func (self *InterfaceIPConfiguration) IsPrimary() bool

type InterfaceIPConfigurationPropertiesFormat

type InterfaceIPConfigurationPropertiesFormat struct {
	PrivateIPAddress          string           `json:"privateIPAddress,omitempty"`
	PrivateIPAddressVersion   string           `json:"privateIPAddressVersion,omitempty"`
	PrivateIPAllocationMethod string           `json:"privateIPAllocationMethod,omitempty"`
	Subnet                    SNetwork         `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:"macAddress,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 LoadBalancingRule

type LoadBalancingRule struct {
	Name       string                      `json:"name"`
	ID         string                      `json:"id"`
	Etag       string                      `json:"etag"`
	Type       string                      `json:"type"`
	Properties LoadBalancingRuleProperties `json:"properties"`
}

type LoadBalancingRuleProperties

type LoadBalancingRuleProperties struct {
	ProvisioningState       string `json:"provisioningState"`
	FrontendIPConfiguration Subnet `json:"frontendIPConfiguration"`
	FrontendPort            int    `json:"frontendPort"`
	BackendPort             int    `json:"backendPort"`
	EnableFloatingIP        bool   `json:"enableFloatingIP"`
	IdleTimeoutInMinutes    int    `json:"idleTimeoutInMinutes"`
	Protocol                string `json:"protocol"`
	EnableTCPReset          bool   `json:"enableTcpReset"`
	LoadDistribution        string `json:"loadDistribution"`
	BackendAddressPool      Subnet `json:"backendAddressPool"`
	Probe                   Subnet `json:"probe"`
}

type LocalizableString

type LocalizableString struct {
	// Value - the invariant value.
	Value string `json:"value,omitempty"`
	// LocalizedValue - the locale specific value.
	LocalizedValue string `json:"localizedValue,omitempty"`
}

type ManagedDiskParameters

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

type ManagedRule

type ManagedRule struct {
	Rulesettype    string `json:"ruleSetType"`
	Rulesetversion string `json:"ruleSetVersion"`
}

type ManagedRules

type ManagedRules struct {
	Managedrulesets []ManagedRule `json:"managedRuleSets"`
	// contains filtered or unexported fields
}

func (*ManagedRules) Delete

func (self *ManagedRules) Delete() error

func (*ManagedRules) GetAction

func (self *ManagedRules) GetAction() *cloudprovider.DefaultAction

func (*ManagedRules) GetDesc

func (self *ManagedRules) GetDesc() string

func (*ManagedRules) GetGlobalId

func (self *ManagedRules) GetGlobalId() string

func (*ManagedRules) GetName

func (self *ManagedRules) GetName() string

func (*ManagedRules) GetPriority

func (self *ManagedRules) GetPriority() int

func (*ManagedRules) GetStatementCondition

func (self *ManagedRules) GetStatementCondition() cloudprovider.TWafStatementCondition

func (*ManagedRules) GetStatements

func (self *ManagedRules) GetStatements() ([]cloudprovider.SWafStatement, error)

func (*ManagedRules) Update

func (self *ManagedRules) Update(opts *cloudprovider.SWafRule) error

type Match

type Match struct {
	Body        string   `json:"body"`
	StatusCodes []string `json:"statusCodes"`
}

type MetadataValue

type MetadataValue struct {
	// Name - the name of the metadata.
	Name LocalizableString `json:"name,omitempty"`
	// Value - the value of the metadata.
	Value string `json:"value,omitempty"`
}

type Metric

type Metric struct {
	// ID - the metric Id.
	ID string `json:"id,omitempty"`
	// Type - the resource type of the metric resource.
	Type string `json:"type,omitempty"`
	// Name - the name and the display name of the metric, i.e. it is localizable string.
	Name LocalizableString `json:"name,omitempty"`
	// Unit - the unit of the metric. Possible values include: 'UnitCount', 'UnitBytes', 'UnitSeconds', 'UnitCountPerSecond', 'UnitBytesPerSecond', 'UnitPercent', 'UnitMilliSeconds', 'UnitByteSeconds', 'UnitUnspecified', 'UnitCores', 'UnitMilliCores', 'UnitNanoCores', 'UnitBitsPerSecond'
	Unit string `json:"unit,omitempty"`
	// Timeseries - the time series returned when a data query is performed.
	Timeseries []TimeSeriesElement `json:"timeseries,omitempty"`
}

Metric the result data of a query.

type MetricValue

type MetricValue struct {
	// TimeStamp - the timestamp for the metric value in ISO 8601 format.
	TimeStamp time.Time `json:"timeStamp,omitempty"`
	// Average - the average value in the time range.
	Average float64 `json:"average,omitempty"`
	// Minimum - the least value in the time range.
	Minimum float64 `json:"minimum,omitempty"`
	// Maximum - the greatest value in the time range.
	Maximum float64 `json:"maximum,omitempty"`
	// Total - the sum of all of the values in the time range.
	Total float64 `json:"total,omitempty"`
	// Count - the number of samples in the time range. Can be used to determine the number of values that contributed to the average value.
	Count float64 `json:"count,omitempty"`
}

func (MetricValue) GetValue

func (self MetricValue) GetValue() float64

type MetrifDefinition

type MetrifDefinition struct {
	Name struct {
		Value          string
		LocalizedValue string
	}
	Category               string
	Unit                   string
	PrimaryAggregationType string
	ResourceUri            string
	ResourceId             string
	MetricAvailabilities   []struct {
		TimeGrain string
		Retention string
		Location  struct {
			TableEndpoint string
			TableInfo     []struct {
				TableName              string
				StartTime              time.Time
				EndTime                time.Time
				SasToken               string
				SasTokenExpirationTime string
			}
			PartitionKey string
		}
	}
	Id string
}

type MetrifDefinitions

type MetrifDefinitions struct {
	Id    string
	Value []MetrifDefinition
}

type NetworkInterfaceIPConfiguration

type NetworkInterfaceIPConfiguration struct {
	Name       string                    `json:"name"`
	ID         string                    `json:"id"`
	Etag       string                    `json:"etag"`
	Type       string                    `json:"type"`
	Properties IPConfigurationProperties `json:"properties"`
}

type NetworkInterfaceReference

type NetworkInterfaceReference struct {
	ID string
}

type NetworkProfile

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

type NetworkSecurityGroup

type NetworkSecurityGroup struct {
	ID string `json:"id"`
}

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 PathRule

type PathRule struct {
	Name       string             `json:"name"`
	ID         string             `json:"id"`
	Etag       string             `json:"etag"`
	Properties PathRuleProperties `json:"properties"`
	Type       string             `json:"type"`
}

type PathRuleProperties

type PathRuleProperties struct {
	ProvisioningState     string                  `json:"provisioningState"`
	Paths                 []string                `json:"paths"`
	BackendAddressPool    *PublicIPAddressElement `json:"backendAddressPool,omitempty"`
	BackendHTTPSettings   *PublicIPAddressElement `json:"backendHttpSettings,omitempty"`
	RedirectConfiguration *PublicIPAddressElement `json:"redirectConfiguration,omitempty"`
}

type PolicyAssignmentProperties

type PolicyAssignmentProperties struct {
	DisplayName string
	Parameters  map[string]PolicyAssignmentPropertiesParameter
}

type PolicyAssignmentPropertiesParameter

type PolicyAssignmentPropertiesParameter struct {
	Value []string
}

type Probe

type Probe struct {
	Name       string          `json:"name"`
	ID         string          `json:"id"`
	Etag       string          `json:"etag"`
	Type       string          `json:"type"`
	Properties ProbeProperties `json:"properties"`
	// contains filtered or unexported fields
}

type ProbeId

type ProbeId struct {
	ID string `json:"id"`
}

type ProbeProperties

type ProbeProperties struct {
	// tcp/udp/http/https
	ProvisioningState string `json:"provisioningState"`
	Protocol          string `json:"protocol"`
	Port              int    `json:"port"`
	RequestPath       string `json:"requestPath"`
	IntervalInSeconds int    `json:"intervalInSeconds"`
	NumberOfProbes    int    `json:"numberOfProbes"`
	// http/ https only
	Host                                string   `json:"host"`
	Path                                string   `json:"path"`
	Interval                            int      `json:"interval"`
	Timeout                             int      `json:"timeout"`
	UnhealthyThreshold                  int      `json:"unhealthyThreshold"`
	PickHostNameFromBackendHTTPSettings bool     `json:"pickHostNameFromBackendHttpSettings"`
	MinServers                          int      `json:"minServers"`
	Match                               Match    `json:"match"`
	LoadBalancingRules                  []Subnet `json:"loadBalancingRules"`
}

type PublicIPAddress

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

type PublicIPAddressElement

type PublicIPAddressElement struct {
	ID string `json:"id"`
}

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 RedirectConfiguration

type RedirectConfiguration struct {
	Name       string                          `json:"name"`
	ID         string                          `json:"id"`
	Etag       string                          `json:"etag"`
	Properties RedirectConfigurationProperties `json:"properties"`
	Type       string                          `json:"type"`
}

type RedirectConfigurationProperties

type RedirectConfigurationProperties struct {
	ProvisioningState  string                   `json:"provisioningState"`
	RedirectType       string                   `json:"redirectType"`
	TargetUrl          string                   `json:"targetUrl"`
	TargetListener     PublicIPAddressElement   `json:"targetListener"`
	IncludePath        bool                     `json:"includePath"`
	IncludeQueryString bool                     `json:"includeQueryString"`
	URLPathMaps        []PublicIPAddressElement `json:"urlPathMaps,omitempty"`
	PathRules          []PublicIPAddressElement `json:"pathRules,omitempty"`
}

type RequestRoutingRule

type RequestRoutingRule struct {
	Name       string                       `json:"name"`
	ID         string                       `json:"id"`
	Properties RequestRoutingRuleProperties `json:"properties"`
}

type RequestRoutingRuleProperties

type RequestRoutingRuleProperties struct {
	RuleType            string          `json:"ruleType"`
	HTTPListener        PublicIPAddress `json:"httpListener"`
	BackendAddressPool  PublicIPAddress `json:"backendAddressPool"`
	BackendHTTPSettings PublicIPAddress `json:"backendHttpSettings"`
}

type ResourceType

type ResourceType struct {
	ApiVersions  []string `json:"apiVersions,omitempty"`
	Capabilities string   `json:"capabilities,omitempty"`
	Locations    []string `json:"locations,omitempty"`
	ResourceType string   `json:"resourceType,omitempty"`
}

type ResponseMetirc

type ResponseMetirc struct {
	// Cost - The integer value representing the cost of the query, for data case.
	Cost float64 `json:"cost,omitempty"`
	// Timespan - The timespan for which the data was retrieved. Its value consists of two datetimes concatenated, separated by '/'.  This may be adjusted in the future and returned back from what was originally requested.
	Timespan string `json:"timespan,omitempty"`
	// Interval - The interval (window size) for which the metric data was returned in.  This may be adjusted in the future and returned back from what was originally requested.  This is not present if a metadata request was made.
	Interval string `json:"interval,omitempty"`
	// Namespace - The namespace of the metrics been queried
	Namespace string `json:"namespace,omitempty"`
	// Resourceregion - The region of the resource been queried for metrics.
	Resourceregion string `json:"resourceregion,omitempty"`
	// Value - the value of the collection.
	Value []Metric `json:"value,omitempty"`
}

type SAMLProvider

type SAMLProvider struct {
	multicloud.SResourceBase
	AzureTags

	Name     string
	Metadata samlutils.EntityDescriptor
	// contains filtered or unexported fields
}

func (*SAMLProvider) Delete

func (self *SAMLProvider) Delete() error

func (*SAMLProvider) GetAuthUrl

func (self *SAMLProvider) GetAuthUrl(apiServer string) string

func (*SAMLProvider) GetGlobalId

func (self *SAMLProvider) GetGlobalId() string

func (*SAMLProvider) GetId

func (self *SAMLProvider) GetId() string

func (*SAMLProvider) GetMetadataDocument

func (self *SAMLProvider) GetMetadataDocument() (*samlutils.EntityDescriptor, error)

func (*SAMLProvider) GetName

func (self *SAMLProvider) GetName() string

func (*SAMLProvider) GetStatus

func (self *SAMLProvider) GetStatus() string

func (*SAMLProvider) UpdateMetadata

func (self *SAMLProvider) UpdateMetadata(metadata samlutils.EntityDescriptor) error

type SASPVnetProperties

type SASPVnetProperties struct {
	VnetResourceId string
}

type SApp

type SApp struct {
	SAppSite
}

func (*SApp) GetEnvironments

func (a *SApp) GetEnvironments() ([]cloudprovider.ICloudAppEnvironment, error)

func (*SApp) GetKind

func (a *SApp) GetKind() string

func (*SApp) GetOsType

func (a *SApp) GetOsType() cloudprovider.TOsType

func (*SApp) GetTechStack

func (a *SApp) GetTechStack() string

func (*SApp) GetType

func (a *SApp) GetType() string

func (*SApp) SetTags

func (self *SApp) SetTags(tags map[string]string, replace bool) error

type SAppEnvironment

type SAppEnvironment struct {
	multicloud.SResourceBase
	AzureTags
	SAppSite
}

func (*SAppEnvironment) GetInstanceNumber

func (ae *SAppEnvironment) GetInstanceNumber() (int, error)

func (*SAppEnvironment) GetInstanceType

func (ae *SAppEnvironment) GetInstanceType() (string, error)

type SAppGatewayWaf

type SAppGatewayWaf struct {
	multicloud.SResourceBase
	AzureTags

	Name       string `json:"name"`
	ID         string `json:"id"`
	Type       string `json:"type"`
	Location   string `json:"location"`
	Properties struct {
		ApplicationGateways []SApplicationGateway
		HttpListeners       []struct {
			Id string
		}
		PathBasedRules []struct {
			Id string
		}
		Resourcestate     string `json:"resourceState"`
		Provisioningstate string `json:"provisioningState"`
		Policysettings    struct {
			State                  string `json:"state"`
			Mode                   string `json:"mode"`
			Maxrequestbodysizeinkb int    `json:"maxRequestBodySizeInKb"`
			Fileuploadlimitinmb    int    `json:"fileUploadLimitInMb"`
			Requestbodycheck       bool   `json:"requestBodyCheck"`
		} `json:"policySettings"`
		Customrules  []CustomRule `json:"customRules"`
		Managedrules ManagedRules `json:"managedRules"`
	} `json:"properties"`
	// contains filtered or unexported fields
}

func (*SAppGatewayWaf) AddRule

func (*SAppGatewayWaf) Delete

func (self *SAppGatewayWaf) Delete() error

func (*SAppGatewayWaf) GetCloudResources

func (self *SAppGatewayWaf) GetCloudResources() ([]cloudprovider.SCloudResource, error)

func (*SAppGatewayWaf) GetDefaultAction

func (self *SAppGatewayWaf) GetDefaultAction() *cloudprovider.DefaultAction

func (*SAppGatewayWaf) GetEnabled

func (self *SAppGatewayWaf) GetEnabled() bool

func (*SAppGatewayWaf) GetGlobalId

func (self *SAppGatewayWaf) GetGlobalId() string

func (*SAppGatewayWaf) GetId

func (self *SAppGatewayWaf) GetId() string

func (*SAppGatewayWaf) GetName

func (self *SAppGatewayWaf) GetName() string

func (*SAppGatewayWaf) GetRules

func (self *SAppGatewayWaf) GetRules() ([]cloudprovider.ICloudWafRule, error)

func (*SAppGatewayWaf) GetStatus

func (self *SAppGatewayWaf) GetStatus() string

func (*SAppGatewayWaf) GetWafType

func (self *SAppGatewayWaf) GetWafType() cloudprovider.TWafType

func (*SAppGatewayWaf) Refresh

func (self *SAppGatewayWaf) Refresh() error

func (*SAppGatewayWaf) SetTags

func (self *SAppGatewayWaf) SetTags(tags map[string]string, replace bool) error

type SAppServicePlan

type SAppServicePlan struct {
	AzureTags

	Properties SAppServicePlanProperties
	ID         string
	Kind       string
	Location   string
	Name       string
	Type       string
	Sku        SSkuDescription
	// contains filtered or unexported fields
}

func (*SAppServicePlan) GetNetworks

func (asp *SAppServicePlan) GetNetworks() ([]SNetwork, error)

func (*SAppServicePlan) GetSkus

func (asp *SAppServicePlan) GetSkus() ([]SServerFarmSku, error)

func (*SAppServicePlan) GetVnets

func (asp *SAppServicePlan) GetVnets() ([]SAppServicePlanVnet, error)

type SAppServicePlanProperties

type SAppServicePlanProperties struct {
	FreeOfferExpirationTime   string
	GeoRegion                 string
	HostingEnvironmentProfile SHostingEnvironmentProfile
	HyperV                    bool
	IsSpot                    bool
	MaximumElasticWorkerCount int
	MaximumNumberOfWorkers    int
	NumberOfSites             int
	PerSiteScaling            bool
	// 应用服务环境的预配状态
	ProvisioningState  string
	Reserved           bool
	ResourceGroup      string
	SpotExpirationTime string
	// Creating Pending Ready
	Status             string
	Subscription       string
	TargetWorkerCount  int
	TargetWorkerSizeId int
	WorkerTierName     string
}

type SAppServicePlanVnet

type SAppServicePlanVnet struct {
	Id         string
	Name       string
	Properties SASPVnetProperties
}

type SAppSite

type SAppSite struct {
	multicloud.SResourceBase
	AzureTags

	Properties SAppSiteProperties
	Id         string
	Name       string
	Kind       string
	Location   string
	Type       string
	// contains filtered or unexported fields
}

func (*SAppSite) GetAppServicePlan

func (as *SAppSite) GetAppServicePlan() (*SAppServicePlan, error)

func (*SAppSite) GetDeployments

func (as *SAppSite) GetDeployments() ([]SDeployment, error)

func (*SAppSite) GetGlobalId

func (as *SAppSite) GetGlobalId() string

func (*SAppSite) GetId

func (as *SAppSite) GetId() string

func (*SAppSite) GetName

func (as *SAppSite) GetName() string

func (*SAppSite) GetProjectId

func (as *SAppSite) GetProjectId() string

func (*SAppSite) GetSlots

func (as *SAppSite) GetSlots() ([]SAppSite, error)

func (*SAppSite) GetStack

func (as *SAppSite) GetStack() (string, error)

func (*SAppSite) GetStatus

func (as *SAppSite) GetStatus() string

type SAppSiteProperties

type SAppSiteProperties struct {
	AvailabilityState   string
	DefaultHostName     string
	Enabled             bool
	EnabledHostNames    []string
	HostNameSslStates   []SHostNameSslState
	HostNames           []string
	HttpsOnly           bool
	OutboundIpAddresses string
	ResourceGroup       string
	ServerFarmId        string
	SiteConfig          SSiteConfig
	State               string
}

type SAppWafRuleGroup

type SAppWafRuleGroup struct {
	Name       string `json:"name"`
	ID         string `json:"id"`
	Type       string `json:"type"`
	Properties struct {
		Provisioningstate string `json:"provisioningState"`
		Rulesettype       string `json:"ruleSetType"`
		Rulesetversion    string `json:"ruleSetVersion"`
		Rulegroups        []struct {
			Rulegroupname string `json:"ruleGroupName"`
			Description   string `json:"description"`
			Rules         []struct {
				Ruleid      int    `json:"ruleId"`
				Description string `json:"description"`
			} `json:"rules"`
		} `json:"ruleGroups"`
	} `json:"properties"`
}

type SApplicationGateway

type SApplicationGateway struct {
	multicloud.SResourceBase
	AzureTags

	Name       string                        `json:"name"`
	Id         string                        `json:"id"`
	Etag       string                        `json:"etag"`
	Type       string                        `json:"type"`
	Location   string                        `json:"location"`
	Properties SApplicationGatewayProperties `json:"properties"`
	// contains filtered or unexported fields
}

func (*SApplicationGateway) GetGlobalId

func (self *SApplicationGateway) GetGlobalId() string

func (*SApplicationGateway) GetId

func (self *SApplicationGateway) GetId() string

func (*SApplicationGateway) GetName

func (self *SApplicationGateway) GetName() string

type SApplicationGatewayProperties

type SApplicationGatewayProperties struct {
	Provisioningstate string `json:"provisioningState"`
	Resourceguid      string `json:"resourceGuid"`
	Sku               struct {
		Name     string `json:"name"`
		Tier     string `json:"tier"`
		Capacity string `json:"capacity"`
	} `json:"sku"`
	Operationalstate                    string                           `json:"operationalState"`
	Gatewayipconfigurations             []SGatewayipconfiguration        `json:"gatewayIPConfigurations"`
	Sslcertificates                     []interface{}                    `json:"sslCertificates"`
	Authenticationcertificates          []interface{}                    `json:"authenticationCertificates"`
	Frontendipconfigurations            []SFrontendipconfiguration       `json:"frontendIPConfigurations"`
	Frontendports                       []SFrontendport                  `json:"frontendPorts"`
	Backendaddresspools                 []SBackendaddresspool            `json:"backendAddressPools"`
	Backendhttpsettingscollection       []SBackendhttpsettingscollection `json:"backendHttpSettingsCollection"`
	Httplisteners                       []SHttplistener                  `json:"httpListeners"`
	Urlpathmaps                         []interface{}                    `json:"urlPathMaps"`
	Requestroutingrules                 []SRequestroutingrule            `json:"requestRoutingRules"`
	Probes                              []interface{}                    `json:"probes"`
	Redirectconfigurations              []interface{}                    `json:"redirectConfigurations"`
	Webapplicationfirewallconfiguration struct {
		Enabled            bool          `json:"enabled"`
		Firewallmode       string        `json:"firewallMode"`
		Rulesettype        string        `json:"ruleSetType"`
		Rulesetversion     string        `json:"ruleSetVersion"`
		Disabledrulegroups []interface{} `json:"disabledRuleGroups"`
		Requestbodycheck   bool          `json:"requestBodyCheck"`
	} `json:"webApplicationFirewallConfiguration"`
	Enablehttp2 bool `json:"enableHttp2"`
}

type SAssignment

type SAssignment struct {
	Id         string
	Name       string
	Type       string
	Properties SAssignmentProperties
}

type SAssignmentProperties

type SAssignmentProperties struct {
	RoleDefinitionId string
	PrincipalId      string
	PrincipalType    string
	Scope            string
}

type SAuthorization

type SAuthorization struct {
	Action string
	Scope  string
}

type SAutomaticOSUpgradeProperties

type SAutomaticOSUpgradeProperties struct {
	AutomaticOSUpgradeSupported bool
}

type SAutoscaleProfile

type SAutoscaleProfile struct {
	Capacity   SScaleCapacity
	FixedDate  STimeWindow
	Name       string
	Recurrence SRecurrence
	Rule       []SScaleRule
}

type SAutoscaleSettingProperties

type SAutoscaleSettingProperties struct {
	Enabled           bool
	Name              string
	TargetResourceUri string
	Profiles          []SAutoscaleProfile
}

type SAutoscaleSettingResource

type SAutoscaleSettingResource struct {
	AzureTags

	Properties SAutoscaleSettingProperties
	ID         string
	Location   string
	Name       string
	Type       string
	// contains filtered or unexported fields
}

type SAzureClient

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

func NewAzureClient

func NewAzureClient(cfg *AzureClientConfig) (*SAzureClient, error)

func (*SAzureClient) AddGroupUser

func (self *SAzureClient) AddGroupUser(id, userName string) error

func (*SAzureClient) AssignPolicy

func (cli *SAzureClient) AssignPolicy(objectId, roleName, subscriptionId string) error

func (*SAzureClient) CheckNameAvailability

func (self *SAzureClient) CheckNameAvailability(resourceType, name string) (bool, error)

func (*SAzureClient) CreateClouduser

func (self *SAzureClient) CreateClouduser(name, password string) (*SClouduser, error)

func (*SAzureClient) CreateGroup

func (self *SAzureClient) CreateGroup(name, desc string) (*SCloudgroup, error)

func (*SAzureClient) CreateICloudgroup

func (self *SAzureClient) CreateICloudgroup(name, desc string) (cloudprovider.ICloudgroup, error)

func (*SAzureClient) CreateIClouduser

func (*SAzureClient) CreateIProject

func (self *SAzureClient) CreateIProject(name string) (cloudprovider.ICloudProject, error)

func (*SAzureClient) CreateSAMLProvider

func (self *SAzureClient) CreateSAMLProvider(opts *cloudprovider.SAMLProviderCreateOptions) (*SAMLProvider, error)

func (*SAzureClient) CreateSubscription

func (cli *SAzureClient) CreateSubscription(name string, eaId string, offerType string) error

func (*SAzureClient) DeleteClouduser

func (self *SAzureClient) DeleteClouduser(id string) error

func (*SAzureClient) DeleteGroup

func (self *SAzureClient) DeleteGroup(id string) error

func (*SAzureClient) GDelete

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

func (*SAzureClient) GetAccessEnv

func (self *SAzureClient) GetAccessEnv() string

func (*SAzureClient) GetAccountId

func (self *SAzureClient) GetAccountId() string

func (*SAzureClient) GetAppObjectId

func (cli *SAzureClient) GetAppObjectId() (string, error)

func (*SAzureClient) GetAssignments

func (cli *SAzureClient) GetAssignments(objectId string) ([]SAssignment, error)

func (*SAzureClient) GetCapabilities

func (self *SAzureClient) GetCapabilities() []string

func (*SAzureClient) GetCloudgroups

func (self *SAzureClient) GetCloudgroups(name string) ([]SCloudgroup, error)

func (*SAzureClient) GetCloudpolicies

func (cli *SAzureClient) GetCloudpolicies(objectId string) ([]SCloudpolicy, error)

func (*SAzureClient) GetClouduser

func (self *SAzureClient) GetClouduser(name string) (*SClouduser, error)

func (*SAzureClient) GetCloudusers

func (self *SAzureClient) GetCloudusers() ([]SClouduser, error)

func (*SAzureClient) GetDefaultDomain

func (self *SAzureClient) GetDefaultDomain() (string, error)

func (*SAzureClient) GetDomains

func (self *SAzureClient) GetDomains() ([]SDomain, error)

func (*SAzureClient) GetEcsMetrics

func (*SAzureClient) GetEnrollmentAccounts

func (cli *SAzureClient) GetEnrollmentAccounts() ([]cloudprovider.SEnrollmentAccount, error)

func (*SAzureClient) GetICloudgroupByName

func (self *SAzureClient) GetICloudgroupByName(name string) (cloudprovider.ICloudgroup, error)

func (*SAzureClient) GetICloudgroups

func (self *SAzureClient) GetICloudgroups() ([]cloudprovider.ICloudgroup, error)

func (*SAzureClient) GetIClouduserByName

func (self *SAzureClient) GetIClouduserByName(name string) (cloudprovider.IClouduser, error)

func (*SAzureClient) GetICloudusers

func (self *SAzureClient) GetICloudusers() ([]cloudprovider.IClouduser, error)

func (*SAzureClient) GetICustomCloudpolicies

func (cli *SAzureClient) GetICustomCloudpolicies() ([]cloudprovider.ICloudpolicy, error)

func (*SAzureClient) GetIHostById

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

func (*SAzureClient) GetIProjects

func (self *SAzureClient) GetIProjects() ([]cloudprovider.ICloudProject, 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) GetISystemCloudpolicies

func (cli *SAzureClient) GetISystemCloudpolicies() ([]cloudprovider.ICloudpolicy, error)

func (*SAzureClient) GetIVpcById

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

func (*SAzureClient) GetIamLoginUrl

func (self *SAzureClient) GetIamLoginUrl() string

func (*SAzureClient) GetInstanceDiskUsage

func (self *SAzureClient) GetInstanceDiskUsage(workspace string, instanceId string, start, end time.Time) ([]WorkspaceData, error)

func (*SAzureClient) GetK8sMetrics

func (*SAzureClient) GetLbMetrics

func (*SAzureClient) GetLoganalyticsWorkspaces

func (self *SAzureClient) GetLoganalyticsWorkspaces() ([]SLoganalyticsWorkspace, error)

func (*SAzureClient) GetPolicyAssignments

func (client *SAzureClient) GetPolicyAssignments(defineId string) ([]SPolicyAssignment, error)

func (*SAzureClient) GetPolicyDefinition

func (client *SAzureClient) GetPolicyDefinition(id string) (*SPolicyDefinition, error)

func (*SAzureClient) GetPolicyDefinitions

func (client *SAzureClient) GetPolicyDefinitions() ([]SPolicyDefinition, error)

func (*SAzureClient) GetRdsMetrics

func (*SAzureClient) GetRedisMetrics

func (self *SAzureClient) GetRedisMetrics(opts *cloudprovider.MetricListOptions) ([]cloudprovider.MetricValues, error)

func (*SAzureClient) GetRegion

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

func (*SAzureClient) GetRegions

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

func (*SAzureClient) GetRole

func (cli *SAzureClient) GetRole(roleId string) (*SCloudpolicy, error)

func (*SAzureClient) GetRoles

func (cli *SAzureClient) GetRoles(name, policyType string) ([]SCloudpolicy, error)

func (*SAzureClient) GetSercice

func (self *SAzureClient) GetSercice(serviceType string) (*SService, error)

func (*SAzureClient) GetStorageClasses

func (self *SAzureClient) GetStorageClasses(regionExtId string) ([]string, error)

func (*SAzureClient) GetSubAccounts

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

func (*SAzureClient) GetTags

func (self *SAzureClient) GetTags(resourceId string) (map[string]string, error)

func (*SAzureClient) GetUserGroups

func (self *SAzureClient) GetUserGroups(userId string) ([]SCloudgroup, error)

func (*SAzureClient) InviteUser

func (self *SAzureClient) InviteUser(email string) (*SClouduser, error)

func (*SAzureClient) ListGraphUsers

func (self *SAzureClient) ListGraphUsers() ([]SClouduser, error)

func (*SAzureClient) ListGroupMemebers

func (self *SAzureClient) ListGroupMemebers(id string) ([]SClouduser, error)

func (*SAzureClient) ListRegions

func (self *SAzureClient) ListRegions() ([]SRegion, error)

func (*SAzureClient) ListResourceGroups

func (self *SAzureClient) ListResourceGroups() ([]SResourceGroup, error)

func (*SAzureClient) ListResourceSkus

func (self *SAzureClient) ListResourceSkus() ([]SResourceSku, error)

func (*SAzureClient) ListSAMLProviders

func (self *SAzureClient) ListSAMLProviders() ([]SAMLProvider, error)

func (*SAzureClient) ListServicePrincipal

func (cli *SAzureClient) ListServicePrincipal(appId string) ([]SServicePrincipal, error)

func (*SAzureClient) ListServices

func (self *SAzureClient) ListServices() ([]SService, error)

func (*SAzureClient) ListSubscriptions

func (self *SAzureClient) ListSubscriptions() ([]SSubscription, error)

func (*SAzureClient) RemoveGroupUser

func (self *SAzureClient) RemoveGroupUser(id, userName string) error

func (*SAzureClient) ResetClouduserPassword

func (self *SAzureClient) ResetClouduserPassword(id, password string) error

func (*SAzureClient) ServiceRegister

func (self *SAzureClient) ServiceRegister(serviceType string) error

func (*SAzureClient) ServiceUnRegister

func (self *SAzureClient) ServiceUnRegister(serviceType string) error

func (*SAzureClient) SetTags

func (self *SAzureClient) SetTags(resourceId string, tags map[string]string) (jsonutils.JSONObject, error)

type SAzureImageResource

type SAzureImageResource struct {
	Id         string
	Name       string
	Location   string
	Properties SAzureImageResourceProperties
}

type SAzureImageResourceProperties

type SAzureImageResourceProperties struct {
	ReplicaType      string       `json:"replicaType"`
	OsDiskImage      SOsDiskImage `json:"osDiskImage"`
	HyperVGeneration string       `json:"hyperVGeneration,omitempty"`
}

type SBackendaddresspool

type SBackendaddresspool struct {
	Name       string `json:"name"`
	ID         string `json:"id"`
	Etag       string `json:"etag"`
	Properties struct {
		Provisioningstate   string        `json:"provisioningState"`
		Backendaddresses    []interface{} `json:"backendAddresses"`
		Requestroutingrules []struct {
			ID string `json:"id"`
		} `json:"requestRoutingRules"`
	} `json:"properties"`
	Type string `json:"type"`
}

type SBackendhttpsettingscollection

type SBackendhttpsettingscollection struct {
	Name       string `json:"name"`
	ID         string `json:"id"`
	Etag       string `json:"etag"`
	Properties struct {
		Provisioningstate              string `json:"provisioningState"`
		Port                           int    `json:"port"`
		Protocol                       string `json:"protocol"`
		Cookiebasedaffinity            string `json:"cookieBasedAffinity"`
		Pickhostnamefrombackendaddress bool   `json:"pickHostNameFromBackendAddress"`
		Requesttimeout                 int    `json:"requestTimeout"`
		Requestroutingrules            []struct {
			ID string `json:"id"`
		} `json:"requestRoutingRules"`
	} `json:"properties"`
	Type string `json:"type"`
}

type SCapability

type SCapability struct {
	Name   string
	Reason string
	Value  string
}

type SClaims

type SClaims struct {
	Aud      string
	Iss      string
	Iat      string
	Nbf      string
	Exp      string
	Aio      string
	Appid    string
	Appidacr string
	Uti      string
	Ver      string
}

type SCloudgroup

type SCloudgroup struct {
	Id                string
	DeletionTimestamp string
	Description       string
	DirSyncEnabled    string
	DisplayName       string
	LastDirSyncTime   string
	Mail              string
	MailNickname      string
	MailEnabled       bool
	ProxyAddresses    []string
	// contains filtered or unexported fields
}

func (*SCloudgroup) AddUser

func (group *SCloudgroup) AddUser(name string) error

func (*SCloudgroup) AttachCustomPolicy

func (group *SCloudgroup) AttachCustomPolicy(policyId string) error

func (*SCloudgroup) AttachSystemPolicy

func (group *SCloudgroup) AttachSystemPolicy(policyId string) error

func (*SCloudgroup) Delete

func (group *SCloudgroup) Delete() error

func (*SCloudgroup) DetachCustomPolicy

func (group *SCloudgroup) DetachCustomPolicy(policyId string) error

func (*SCloudgroup) DetachSystemPolicy

func (group *SCloudgroup) DetachSystemPolicy(policyId string) error

func (*SCloudgroup) GetDescription

func (group *SCloudgroup) GetDescription() string

func (*SCloudgroup) GetGlobalId

func (group *SCloudgroup) GetGlobalId() string

func (*SCloudgroup) GetICloudusers

func (group *SCloudgroup) GetICloudusers() ([]cloudprovider.IClouduser, error)

func (*SCloudgroup) GetICustomCloudpolicies

func (group *SCloudgroup) GetICustomCloudpolicies() ([]cloudprovider.ICloudpolicy, error)

func (*SCloudgroup) GetISystemCloudpolicies

func (group *SCloudgroup) GetISystemCloudpolicies() ([]cloudprovider.ICloudpolicy, error)

func (*SCloudgroup) GetName

func (group *SCloudgroup) GetName() string

func (*SCloudgroup) RemoveUser

func (group *SCloudgroup) RemoveUser(name string) error

type SCloudpolicy

type SCloudpolicy struct {
	Id         string
	Type       string
	Name       string
	Properties SRoleProperties
}

func (*SCloudpolicy) Delete

func (role *SCloudpolicy) Delete() error

func (*SCloudpolicy) GetDescription

func (role *SCloudpolicy) GetDescription() string

func (*SCloudpolicy) GetDocument

func (role *SCloudpolicy) GetDocument() (*jsonutils.JSONDict, error)

func (*SCloudpolicy) GetGlobalId

func (role *SCloudpolicy) GetGlobalId() string

func (*SCloudpolicy) GetName

func (role *SCloudpolicy) GetName() string

func (*SCloudpolicy) UpdateDocument

func (role *SCloudpolicy) UpdateDocument(document *jsonutils.JSONDict) error

type SClouduser

type SClouduser struct {
	multicloud.SBaseClouduser

	OdataType                        string `json:"odata.type"`
	ObjectType                       string
	Id                               string
	DeletionTimestamp                string
	AccountEnabled                   bool
	AgeGroup                         string
	City                             string
	CompanyName                      string
	ConsentProvidedForMinor          string
	Country                          string
	CreatedDateTime                  time.Time
	CreationType                     string
	Department                       string
	DirSyncEnabled                   string
	DisplayName                      string
	EmployeeId                       string
	FacsimileTelephoneNumber         string
	GivenName                        string
	ImmutableId                      string
	IsCompromised                    string
	JobTitle                         string
	LastDirSyncTime                  string
	LegalAgeGroupClassification      string
	Mail                             string
	MailNickname                     string
	Mobile                           string
	OnPremisesDistinguishedName      string
	OnPremisesSecurityIdentifier     string
	PasswordPolicies                 string
	PasswordProfile                  SClouduserPasswordProfile
	PhysicalDeliveryOfficeName       string
	PostalCode                       string
	PreferredLanguage                string
	RefreshTokensValidFromDateTime   time.Time
	ShowInAddressList                string
	SipProxyAddress                  string
	State                            string
	StreetAddress                    string
	Surname                          string
	TelephoneNumber                  string
	ThumbnailPhotoOdataMediaEditLink string `json:"thumbnailPhoto@odata.mediaEditLink"`
	UsageLocation                    string
	UserPrincipalName                string
	UserState                        string
	UserStateChangedOn               string
	UserType                         string
	// contains filtered or unexported fields
}

func (*SClouduser) AttachCustomPolicy

func (user *SClouduser) AttachCustomPolicy(policyId string) error

func (*SClouduser) AttachSystemPolicy

func (user *SClouduser) AttachSystemPolicy(policyId string) error

func (*SClouduser) Delete

func (user *SClouduser) Delete() error

需要当前应用有User administrator权限

func (*SClouduser) DetachCustomPolicy

func (user *SClouduser) DetachCustomPolicy(policyId string) error

func (*SClouduser) DetachSystemPolicy

func (user *SClouduser) DetachSystemPolicy(policyId string) error

func (*SClouduser) GetEmailAddr

func (user *SClouduser) GetEmailAddr() string

func (*SClouduser) GetGlobalId

func (user *SClouduser) GetGlobalId() string

func (*SClouduser) GetICloudgroups

func (user *SClouduser) GetICloudgroups() ([]cloudprovider.ICloudgroup, error)

func (*SClouduser) GetICustomCloudpolicies

func (user *SClouduser) GetICustomCloudpolicies() ([]cloudprovider.ICloudpolicy, error)

func (*SClouduser) GetISystemCloudpolicies

func (user *SClouduser) GetISystemCloudpolicies() ([]cloudprovider.ICloudpolicy, error)

func (*SClouduser) GetInviteUrl

func (user *SClouduser) GetInviteUrl() string

func (*SClouduser) GetName

func (user *SClouduser) GetName() string

func (*SClouduser) IsConsoleLogin

func (user *SClouduser) IsConsoleLogin() bool

func (*SClouduser) ResetPassword

func (user *SClouduser) ResetPassword(password string) error

type SClouduserPasswordProfile

type SClouduserPasswordProfile struct {
	Password string
	// contains filtered or unexported fields
}

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) ListAllFiles

func (self *SContainer) ListAllFiles(include *storage.IncludeBlobDataset) ([]storage.Blob, error)

func (*SContainer) ListFiles

func (self *SContainer) ListFiles(prefix string, marker string, delimiter string, maxCount int, include *storage.IncludeBlobDataset) (storage.BlobListResponse, error)

func (*SContainer) SignUrl

func (self *SContainer) SignUrl(method string, key string, expire time.Duration) (string, error)

func (*SContainer) UploadFile

func (self *SContainer) UploadFile(filePath string, callback func(progress float32)) (string, error)

func (*SContainer) UploadStream

func (self *SContainer) UploadStream(key string, reader io.Reader, meta http.Header) error

type SDBInstance

type SDBInstance struct {
	multicloud.SDBInstanceBase
	AzureTags
	Sku        SDBInstanceSku        `json:"sku"`
	Properties SDBInstanceProperties `json:"properties"`
	Location   string                `json:"location"`
	ID         string                `json:"id"`
	Name       string                `json:"name"`
	Type       string                `json:"type"`
	// contains filtered or unexported fields
}

func (*SDBInstance) Delete

func (rds *SDBInstance) Delete() error

func (*SDBInstance) GetCategory

func (rds *SDBInstance) GetCategory() string

func (*SDBInstance) GetConnectionStr

func (rds *SDBInstance) GetConnectionStr() string

func (*SDBInstance) GetDBNetworks

func (rds *SDBInstance) GetDBNetworks() ([]cloudprovider.SDBInstanceNetwork, error)

func (*SDBInstance) GetDiskSizeGB

func (rds *SDBInstance) GetDiskSizeGB() int

func (*SDBInstance) GetEngine

func (rds *SDBInstance) GetEngine() string

func (*SDBInstance) GetEngineVersion

func (rds *SDBInstance) GetEngineVersion() string

func (*SDBInstance) GetExpiredAt

func (rds *SDBInstance) GetExpiredAt() time.Time

func (*SDBInstance) GetGlobalId

func (rds *SDBInstance) GetGlobalId() string

func (*SDBInstance) GetIDBInstanceAccounts

func (rds *SDBInstance) GetIDBInstanceAccounts() ([]cloudprovider.ICloudDBInstanceAccount, error)

func (*SDBInstance) GetIDBInstanceBackups

func (rds *SDBInstance) GetIDBInstanceBackups() ([]cloudprovider.ICloudDBInstanceBackup, error)

func (*SDBInstance) GetIDBInstanceDatabases

func (rds *SDBInstance) GetIDBInstanceDatabases() ([]cloudprovider.ICloudDBInstanceDatabase, error)

func (*SDBInstance) GetIDBInstanceParameters

func (rds *SDBInstance) GetIDBInstanceParameters() ([]cloudprovider.ICloudDBInstanceParameter, error)

func (*SDBInstance) GetIVpcId

func (rds *SDBInstance) GetIVpcId() string

func (*SDBInstance) GetId

func (rds *SDBInstance) GetId() string

func (*SDBInstance) GetInstanceType

func (rds *SDBInstance) GetInstanceType() string

func (*SDBInstance) GetMaintainTime

func (rds *SDBInstance) GetMaintainTime() string

func (*SDBInstance) GetMasterInstanceId

func (rds *SDBInstance) GetMasterInstanceId() string

func (*SDBInstance) GetName

func (rds *SDBInstance) GetName() string

func (*SDBInstance) GetPort

func (rds *SDBInstance) GetPort() int

func (*SDBInstance) GetProjectId

func (self *SDBInstance) GetProjectId() string

func (*SDBInstance) GetStatus

func (rds *SDBInstance) GetStatus() string

func (*SDBInstance) GetStorageType

func (rds *SDBInstance) GetStorageType() string

func (*SDBInstance) GetVcpuCount

func (rds *SDBInstance) GetVcpuCount() int

func (*SDBInstance) GetVmemSizeMB

func (rds *SDBInstance) GetVmemSizeMB() int

func (*SDBInstance) GetZone1Id

func (rds *SDBInstance) GetZone1Id() string

func (*SDBInstance) GetZone2Id

func (rds *SDBInstance) GetZone2Id() string

func (*SDBInstance) GetZone3Id

func (rds *SDBInstance) GetZone3Id() string

func (*SDBInstance) Refresh

func (rds *SDBInstance) Refresh() error

func (*SDBInstance) SetTags

func (self *SDBInstance) SetTags(tags map[string]string, replace bool) error

type SDBInstanceAccount

type SDBInstanceAccount struct {
	multicloud.SDBInstanceAccountBase
	AzureTags

	AccountName string
	// contains filtered or unexported fields
}

func (*SDBInstanceAccount) GetName

func (account *SDBInstanceAccount) GetName() string

type SDBInstanceConfiguration

type SDBInstanceConfiguration struct {
	Properties SDBInstanceConfigurationProperties `json:"properties"`
	ID         string                             `json:"id"`
	Name       string                             `json:"name"`
	Type       string                             `json:"type"`
}

func (*SDBInstanceConfiguration) GetDescription

func (param *SDBInstanceConfiguration) GetDescription() string

func (*SDBInstanceConfiguration) GetGlobalId

func (param *SDBInstanceConfiguration) GetGlobalId() string

func (*SDBInstanceConfiguration) GetKey

func (param *SDBInstanceConfiguration) GetKey() string

func (*SDBInstanceConfiguration) GetValue

func (param *SDBInstanceConfiguration) GetValue() string

type SDBInstanceConfigurationProperties

type SDBInstanceConfigurationProperties struct {
	Value         string `json:"value"`
	Description   string `json:"description"`
	DefaultValue  string `json:"defaultValue"`
	DataType      string `json:"dataType"`
	AllowedValues string `json:"allowedValues"`
	Source        string `json:"source"`
}

type SDBInstanceDatabase

type SDBInstanceDatabase struct {
	multicloud.SDBInstanceDatabaseBase
	AzureTags
	ID         string                        `json:"id"`
	Name       string                        `json:"name"`
	Type       string                        `json:"type"`
	Properties SDBInstanceDatabaseProperties `json:"properties"`
	// contains filtered or unexported fields
}

func (*SDBInstanceDatabase) GetCharacterSet

func (database *SDBInstanceDatabase) GetCharacterSet() string

func (*SDBInstanceDatabase) GetGlobalId

func (database *SDBInstanceDatabase) GetGlobalId() string

func (*SDBInstanceDatabase) GetId

func (database *SDBInstanceDatabase) GetId() string

func (*SDBInstanceDatabase) GetName

func (database *SDBInstanceDatabase) GetName() string

func (*SDBInstanceDatabase) GetStatus

func (database *SDBInstanceDatabase) GetStatus() string

func (*SDBInstanceDatabase) IsEmulated

func (database *SDBInstanceDatabase) IsEmulated() bool

func (*SDBInstanceDatabase) Refresh

func (database *SDBInstanceDatabase) Refresh() error

type SDBInstanceDatabaseProperties

type SDBInstanceDatabaseProperties struct {
	Charset   string `json:"charset"`
	Collation string `json:"collation"`
}

type SDBInstanceDelegatedSubnetArguments

type SDBInstanceDelegatedSubnetArguments struct {
	SubnetArmResourceId string `json:"subnetArmResourceId"`
}

type SDBInstanceProperties

type SDBInstanceProperties struct {
	AdministratorLogin       string                    `json:"administratorLogin"`
	StorageProfile           SDBInstanceStorageProfile `json:"storageProfile"`
	Version                  string                    `json:"version"`
	SslEnforcement           string                    `json:"sslEnforcement"`
	UserVisibleState         string                    `json:"userVisibleState"`
	FullyQualifiedDomainName string                    `json:"fullyQualifiedDomainName"`
	EarliestRestoreDate      time.Time                 `json:"earliestRestoreDate"`

	ReplicationRole          string                              `json:"replicationRole"`
	MasterServerId           string                              `json:"masterServerId"`
	ReplicaCapacity          int                                 `json:"replicaCapacity"`
	DelegatedSubnetArguments SDBInstanceDelegatedSubnetArguments `json:"delegatedSubnetArguments"`
}

type SDBInstanceSku

type SDBInstanceSku struct {
	Name     string `json:"name"`
	Tier     string `json:"tier"`
	Family   string `json:"family"`
	Capacity int    `json:"capacity"`
}

type SDBInstanceStorageProfile

type SDBInstanceStorageProfile struct {
	StorageMB           int    `json:"storageMB"`
	BackupRetentionDays int    `json:"backupRetentionDays"`
	StorageIops         int    `json:"storageIops"`
	GeoRedundantBackup  string `json:"geoRedundantBackup"`
}

type SDBInstanceVirtualNetworkRule

type SDBInstanceVirtualNetworkRule struct {
	ID         string                                  `json:"id"`
	Name       string                                  `json:"name"`
	Type       string                                  `json:"type"`
	Properties SDBInstanceVirtualNetworkRuleProperties `json:"properties"`
}

type SDBInstanceVirtualNetworkRuleProperties

type SDBInstanceVirtualNetworkRuleProperties struct {
	IgnoreMissingVnetServiceEndpoint bool   `json:"ignoreMissingVnetServiceEndpoint"`
	State                            string `json:"state"`
	VirtualNetworkSubnetID           string `json:"virtualNetworkSubnetId"`
}

type SDataDisk

type SDataDisk struct {
	multicloud.SDisk
	AzureTags

	Lun          int32
	Name         string                 `json:"name,omitempty"`
	DiskName     string                 `json:"diskName,omitempty"`
	Vhd          *VirtualHardDisk       `json:"vhd,omitempty"`
	Caching      string                 `json:"caching,omitempty"`
	DiskSizeGB   TAzureInt32            `json:"diskSizeGB,omitempty"`
	IoType       string                 `json:"ioType,omitempty"`
	CreateOption string                 `json:"createOption,omitempty"`
	ManagedDisk  *ManagedDiskParameters `json:"managedDisk,omitempty"`
	VhdUri       string                 `json:"vhdUri,omitempty"`
	// contains filtered or unexported fields
}

func (*SDataDisk) CreateISnapshot

func (self *SDataDisk) CreateISnapshot(ctx context.Context, name, desc string) (cloudprovider.ICloudSnapshot, error)

func (*SDataDisk) Delete

func (self *SDataDisk) Delete(ctx context.Context) error

func (*SDataDisk) GetAccessPath

func (disk *SDataDisk) GetAccessPath() string

func (*SDataDisk) GetCacheMode

func (self *SDataDisk) GetCacheMode() string

func (*SDataDisk) GetDiskFormat

func (self *SDataDisk) GetDiskFormat() string

func (*SDataDisk) GetDiskSizeMB

func (self *SDataDisk) GetDiskSizeMB() int

func (*SDataDisk) GetDiskType

func (self *SDataDisk) GetDiskType() string

func (*SDataDisk) GetDriver

func (self *SDataDisk) GetDriver() string

func (*SDataDisk) GetFsFormat

func (self *SDataDisk) GetFsFormat() string

func (*SDataDisk) GetGlobalId

func (self *SDataDisk) GetGlobalId() string

func (*SDataDisk) GetISnapshots

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

func (*SDataDisk) GetIStorage

func (self *SDataDisk) GetIStorage() (cloudprovider.ICloudStorage, error)

func (*SDataDisk) GetId

func (self *SDataDisk) GetId() string

func (*SDataDisk) GetIsAutoDelete

func (self *SDataDisk) GetIsAutoDelete() bool

func (*SDataDisk) GetIsNonPersistent

func (self *SDataDisk) GetIsNonPersistent() bool

func (*SDataDisk) GetMountpoint

func (self *SDataDisk) GetMountpoint() string

func (*SDataDisk) GetName

func (self *SDataDisk) GetName() string

func (*SDataDisk) GetProjectId

func (self *SDataDisk) GetProjectId() string

func (*SDataDisk) GetStatus

func (self *SDataDisk) GetStatus() string

func (*SDataDisk) GetTemplateId

func (self *SDataDisk) GetTemplateId() string

func (*SDataDisk) Rebuild

func (self *SDataDisk) Rebuild(ctx context.Context) error

func (*SDataDisk) Reset

func (self *SDataDisk) Reset(ctx context.Context, snapshotId string) (string, error)

func (*SDataDisk) Resize

func (self *SDataDisk) Resize(ctx context.Context, sizeMb int64) error

type SDeployment

type SDeployment struct {
	ID         string
	Name       string
	Kind       string
	Type       string
	Properties SDeploymentProperties
}

type SDeploymentProperties

type SDeploymentProperties struct {
	Active      bool
	Author      string
	AuthorEmail string
	Deployer    string
	Details     string
	EndTime     string
	Message     string
	StartTime   string
	Status      string
}

type SDisk

type SDisk struct {
	multicloud.SDisk
	AzureTags

	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"`
	// contains filtered or unexported fields
}

func (*SDisk) CreateISnapshot

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

func (*SDisk) Delete

func (self *SDisk) Delete(ctx context.Context) error

func (*SDisk) GetAccessPath

func (disk *SDisk) GetAccessPath() string

func (*SDisk) GetBillingType

func (self *SDisk) GetBillingType() string

func (*SDisk) GetCacheMode

func (self *SDisk) GetCacheMode() string

func (*SDisk) GetCreatedAt

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

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) GetISnapshots

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

func (*SDisk) GetIStorage

func (self *SDisk) GetIStorage() (cloudprovider.ICloudStorage, error)

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) GetMountpoint

func (self *SDisk) GetMountpoint() string

func (*SDisk) GetName

func (self *SDisk) GetName() string

func (*SDisk) GetProjectId

func (self *SDisk) GetProjectId() string

func (*SDisk) GetStatus

func (self *SDisk) GetStatus() string

func (*SDisk) GetTags

func (self *SDisk) GetTags() (map[string]string, error)

func (*SDisk) GetTemplateId

func (self *SDisk) GetTemplateId() string

func (*SDisk) IsEmulated

func (self *SDisk) IsEmulated() bool

func (*SDisk) Rebuild

func (self *SDisk) Rebuild(ctx context.Context) error

func (*SDisk) Refresh

func (self *SDisk) Refresh() error

func (*SDisk) Reset

func (self *SDisk) Reset(ctx context.Context, snapshotId string) (string, error)

func (*SDisk) Resize

func (self *SDisk) Resize(ctx context.Context, sizeMb int64) error

type SDomain

type SDomain struct {
	Name                             string
	Id                               string
	AuthenticationType               string
	AvailabilityStatus               string
	IsAdminManaged                   bool
	IsDefault                        bool
	IsDefaultForCloudRedirections    bool
	IsInitial                        bool
	IsRoot                           bool
	IsVerified                       bool
	ForceDeleteState                 string
	State                            string
	PasswordValidityPeriodInDays     string
	PasswordNotificationWindowInDays string
}

type SEipAddress

type SEipAddress struct {
	multicloud.SEipBase
	AzureTags

	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(conf *cloudprovider.AssociateConfig) 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) GetBillingType

func (self *SEipAddress) GetBillingType() string

func (*SEipAddress) GetCreatedAt

func (self *SEipAddress) GetCreatedAt() time.Time

func (*SEipAddress) GetExpiredAt

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

func (*SEipAddress) GetGlobalId

func (self *SEipAddress) GetGlobalId() string

func (*SEipAddress) GetINetworkId

func (self *SEipAddress) GetINetworkId() 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) GetMode

func (self *SEipAddress) GetMode() string

func (*SEipAddress) GetName

func (self *SEipAddress) GetName() string

func (*SEipAddress) GetProjectId

func (self *SEipAddress) GetProjectId() 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 SEnrollmentAccount

type SEnrollmentAccount struct {
	Id         string
	Name       string
	Type       string
	Properties SEnrollmentAccountProperties
}

type SEnrollmentAccountProperties

type SEnrollmentAccountProperties struct {
	PrincipalName string
	OfferTypes    []string
}

type SEnterpriseRedisCache

type SEnterpriseRedisCache struct {
	multicloud.SElasticcacheBase
	AzureTags

	ID       string `json:"id"`
	Location string `json:"location"`
	Name     string `json:"name"`
	Type     string `json:"type"`
	Sku      struct {
		Name     string `json:"name"`
		Capacity string `json:"capacity"`
	} `json:"sku"`
	Properties struct {
		Provisioningstate string      `json:"provisioningState"`
		Redisversion      string      `json:"redisVersion"`
		Accesskeys        interface{} `json:"accessKeys"`
		Hostname          string      `json:"hostName"`
	} `json:"properties"`
	// contains filtered or unexported fields
}

func (*SEnterpriseRedisCache) AllocatePublicConnection

func (self *SEnterpriseRedisCache) AllocatePublicConnection(port int) (string, error)

func (*SEnterpriseRedisCache) ChangeInstanceSpec

func (self *SEnterpriseRedisCache) ChangeInstanceSpec(spec string) error

func (*SEnterpriseRedisCache) CreateAcl

func (self *SEnterpriseRedisCache) CreateAcl(aclName, securityIps string) (cloudprovider.ICloudElasticcacheAcl, error)

func (*SEnterpriseRedisCache) CreateBackup

func (*SEnterpriseRedisCache) Delete

func (self *SEnterpriseRedisCache) Delete() error

func (*SEnterpriseRedisCache) FlushInstance

func (*SEnterpriseRedisCache) GetArchType

func (self *SEnterpriseRedisCache) GetArchType() string

func (*SEnterpriseRedisCache) GetAuthMode

func (self *SEnterpriseRedisCache) GetAuthMode() string

func (*SEnterpriseRedisCache) GetCapacityMB

func (self *SEnterpriseRedisCache) GetCapacityMB() int

func (*SEnterpriseRedisCache) GetEngine

func (self *SEnterpriseRedisCache) GetEngine() string

func (*SEnterpriseRedisCache) GetEngineVersion

func (self *SEnterpriseRedisCache) GetEngineVersion() string

func (*SEnterpriseRedisCache) GetGlobalId

func (self *SEnterpriseRedisCache) GetGlobalId() string

func (*SEnterpriseRedisCache) GetICloudElasticcacheAccount

func (self *SEnterpriseRedisCache) GetICloudElasticcacheAccount(accountId string) (cloudprovider.ICloudElasticcacheAccount, error)

func (*SEnterpriseRedisCache) GetICloudElasticcacheAccounts

func (self *SEnterpriseRedisCache) GetICloudElasticcacheAccounts() ([]cloudprovider.ICloudElasticcacheAccount, error)

func (*SEnterpriseRedisCache) GetICloudElasticcacheAcl

func (self *SEnterpriseRedisCache) GetICloudElasticcacheAcl(aclId string) (cloudprovider.ICloudElasticcacheAcl, error)

func (*SEnterpriseRedisCache) GetICloudElasticcacheAcls

func (self *SEnterpriseRedisCache) GetICloudElasticcacheAcls() ([]cloudprovider.ICloudElasticcacheAcl, error)

func (*SEnterpriseRedisCache) GetICloudElasticcacheBackup

func (self *SEnterpriseRedisCache) GetICloudElasticcacheBackup(backupId string) (cloudprovider.ICloudElasticcacheBackup, error)

func (*SEnterpriseRedisCache) GetICloudElasticcacheBackups

func (self *SEnterpriseRedisCache) GetICloudElasticcacheBackups() ([]cloudprovider.ICloudElasticcacheBackup, error)

func (*SEnterpriseRedisCache) GetICloudElasticcacheParameters

func (self *SEnterpriseRedisCache) GetICloudElasticcacheParameters() ([]cloudprovider.ICloudElasticcacheParameter, error)

func (*SEnterpriseRedisCache) GetId

func (self *SEnterpriseRedisCache) GetId() string

func (*SEnterpriseRedisCache) GetInstanceType

func (self *SEnterpriseRedisCache) GetInstanceType() string

func (*SEnterpriseRedisCache) GetMaintainEndTime

func (self *SEnterpriseRedisCache) GetMaintainEndTime() string

func (*SEnterpriseRedisCache) GetMaintainStartTime

func (self *SEnterpriseRedisCache) GetMaintainStartTime() string

func (*SEnterpriseRedisCache) GetName

func (self *SEnterpriseRedisCache) GetName() string

func (*SEnterpriseRedisCache) GetNetworkId

func (self *SEnterpriseRedisCache) GetNetworkId() string

func (*SEnterpriseRedisCache) GetNetworkType

func (self *SEnterpriseRedisCache) GetNetworkType() string

func (*SEnterpriseRedisCache) GetNodeType

func (self *SEnterpriseRedisCache) GetNodeType() string

func (*SEnterpriseRedisCache) GetPrivateConnectPort

func (self *SEnterpriseRedisCache) GetPrivateConnectPort() int

func (*SEnterpriseRedisCache) GetPrivateDNS

func (self *SEnterpriseRedisCache) GetPrivateDNS() string

func (*SEnterpriseRedisCache) GetPrivateIpAddr

func (self *SEnterpriseRedisCache) GetPrivateIpAddr() string

func (*SEnterpriseRedisCache) GetProjectId

func (self *SEnterpriseRedisCache) GetProjectId() string

func (*SEnterpriseRedisCache) GetPublicConnectPort

func (self *SEnterpriseRedisCache) GetPublicConnectPort() int

func (*SEnterpriseRedisCache) GetPublicDNS

func (self *SEnterpriseRedisCache) GetPublicDNS() string

func (*SEnterpriseRedisCache) GetPublicIpAddr

func (self *SEnterpriseRedisCache) GetPublicIpAddr() string

func (*SEnterpriseRedisCache) GetSecurityGroupIds

func (self *SEnterpriseRedisCache) GetSecurityGroupIds() ([]string, error)

func (*SEnterpriseRedisCache) GetStatus

func (self *SEnterpriseRedisCache) GetStatus() string

func (*SEnterpriseRedisCache) GetVpcId

func (self *SEnterpriseRedisCache) GetVpcId() string

func (*SEnterpriseRedisCache) GetZoneId

func (self *SEnterpriseRedisCache) GetZoneId() string

func (*SEnterpriseRedisCache) ReleasePublicConnection

func (self *SEnterpriseRedisCache) ReleasePublicConnection() error

func (*SEnterpriseRedisCache) Restart

func (self *SEnterpriseRedisCache) Restart() error

func (*SEnterpriseRedisCache) SetMaintainTime

func (self *SEnterpriseRedisCache) SetMaintainTime(start, end string) error

func (*SEnterpriseRedisCache) UpdateAuthMode

func (self *SEnterpriseRedisCache) UpdateAuthMode(noPasswordAccess bool, password string) error

func (*SEnterpriseRedisCache) UpdateBackupPolicy

func (*SEnterpriseRedisCache) UpdateInstanceParameters

func (self *SEnterpriseRedisCache) UpdateInstanceParameters(config jsonutils.JSONObject) error

func (*SEnterpriseRedisCache) UpdateSecurityGroups

func (self *SEnterpriseRedisCache) UpdateSecurityGroups(secgroupIds []string) error

type SEvent

type SEvent struct {
	Authorization        SAuthorization
	Channels             string
	Claims               SClaims
	CorrelationId        string
	Description          string
	EventDataId          string
	EventName            SLocalized
	Category             SLocalized
	Level                string
	ResourceGroupName    string
	ResourceProviderName SLocalized
	ResourceId           string
	ResourceType         SLocalized
	OperationId          string
	OperationName        SLocalized
	Properties           string
	Status               SLocalized
	SubStatus            SLocalized
	Caller               string
	EventTimestamp       time.Time
	SubmissionTimestamp  time.Time
	SubscriptionId       string
	TenantId             string
	ID                   string
	Name                 string
	// contains filtered or unexported fields
}

func (*SEvent) GetAccount

func (event *SEvent) GetAccount() string

func (*SEvent) GetAction

func (event *SEvent) GetAction() string

func (*SEvent) GetCreatedAt

func (event *SEvent) GetCreatedAt() time.Time

func (*SEvent) GetName

func (event *SEvent) GetName() string

func (*SEvent) GetRequest

func (event *SEvent) GetRequest() jsonutils.JSONObject

func (*SEvent) GetRequestId

func (event *SEvent) GetRequestId() string

func (*SEvent) GetResourceType

func (event *SEvent) GetResourceType() string

func (*SEvent) GetService

func (event *SEvent) GetService() string

func (*SEvent) IsSuccess

func (event *SEvent) IsSuccess() bool

type SExtension

type SExtension struct {
	Name               string
	Type               string
	TypeHandlerVersion string     `json:"typeHandlerVersion,omitempty"`
	Statuses           []Statuses `json:"statuses,omitempty"`
}

type SExtensionResource

type SExtensionResource struct {
	Id       string
	Name     string
	Type     string
	Location string

	Properties SExtensionResourceProperties
}

type SExtensionResourceProperties

type SExtensionResourceProperties struct {
	AutoUpgradeMinorVersion bool
	ProvisioningState       string
	Publisher               string
	Type                    string
	TypeHandlerVersion      string
}

type SFrontDoorProperties

type SFrontDoorProperties struct {
	ResourceState     string
	ProvisioningState string
	PolicySettings    struct {
		EnabledState                  string
		Mode                          string
		RedirectUrl                   string
		CustomBlockResponseStatusCode int
		CustomBlockResponseBody       string
		RequestBodyCheck              string
	}
	CustomRules struct {
		Rules []struct{}
	}
	ManagedRules struct {
		ManagedRuleSets []struct {
			RuleSetType        string
			RuleSetVersion     string
			RuleSetAction      string
			RuleGroupOverrides []struct {
			}
			Exclusions []struct{}
		}
	}
	FrontendEndpointLinks []struct{}
	RoutingRuleLinks      []struct{}
	SecurityPolicyLinks   []struct{}
}

type SFrontDoorWaf

type SFrontDoorWaf struct {
	Id       string
	Name     string
	Type     string
	Tags     map[string]string
	Location string
	Sku      struct {
		Name string
	}
	Properties SFrontDoorProperties
}

type SFrontendipconfiguration

type SFrontendipconfiguration struct {
	Name       string `json:"name"`
	ID         string `json:"id"`
	Etag       string `json:"etag"`
	Type       string `json:"type"`
	Properties struct {
		Provisioningstate         string `json:"provisioningState"`
		Privateipallocationmethod string `json:"privateIPAllocationMethod"`
		PublicIPAddress           struct {
			ID string
		}
		PrivateIPAddress string
		Subnet           struct {
			ID string `json:"id"`
		} `json:"subnet"`
		Httplisteners []struct {
			ID string `json:"id"`
		} `json:"httpListeners"`
	} `json:"properties"`
}

type SFrontendport

type SFrontendport struct {
	Name       string `json:"name"`
	ID         string `json:"id"`
	Etag       string `json:"etag"`
	Properties struct {
		Provisioningstate string `json:"provisioningState"`
		Port              int    `json:"port"`
		Httplisteners     []struct {
			ID string `json:"id"`
		} `json:"httpListeners"`
	} `json:"properties"`
	Type string `json:"type"`
}

type SGatewayipconfiguration

type SGatewayipconfiguration struct {
	Name       string `json:"name"`
	ID         string `json:"id"`
	Etag       string `json:"etag"`
	Properties struct {
		Provisioningstate string `json:"provisioningState"`
		Subnet            struct {
			ID string `json:"id"`
		} `json:"subnet"`
	} `json:"properties"`
	Type string `json:"type"`
}

type SHost

type SHost struct {
	multicloud.SHostBase
	// contains filtered or unexported fields
}

func (*SHost) CreateVM

func (*SHost) GetAccessIp

func (self *SHost) GetAccessIp() string

func (*SHost) GetAccessMac

func (self *SHost) GetAccessMac() string

func (*SHost) GetCpuCount

func (self *SHost) GetCpuCount() int

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) GetIHostNics

func (host *SHost) GetIHostNics() ([]cloudprovider.ICloudHostNetInterface, error)

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) GetId

func (self *SHost) GetId() string

func (*SHost) GetIsMaintenance

func (host *SHost) GetIsMaintenance() bool

func (*SHost) GetMemSizeMB

func (self *SHost) GetMemSizeMB() int

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() int64

func (*SHost) GetStorageType

func (self *SHost) GetStorageType() string

func (*SHost) GetSysInfo

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

func (*SHost) GetVersion

func (host *SHost) GetVersion() string

func (*SHost) IsEmulated

func (self *SHost) IsEmulated() bool

func (*SHost) Refresh

func (self *SHost) Refresh() error

type SHostNameSslState

type SHostNameSslState struct {
	HostType   string
	Name       string
	SslState   string
	Thumbprint string
	ToUpdate   bool
	VirtualIP  string
}

type SHostingEnvironmentProfile

type SHostingEnvironmentProfile struct {
	ID   string
	Name string
	Type string
}

type SHttplistener

type SHttplistener struct {
	Name       string `json:"name"`
	ID         string `json:"id"`
	Etag       string `json:"etag"`
	Properties struct {
		Provisioningstate       string `json:"provisioningState"`
		Frontendipconfiguration struct {
			ID string `json:"id"`
		} `json:"frontendIPConfiguration"`
		Frontendport struct {
			ID string `json:"id"`
		} `json:"frontendPort"`
		Protocol                    string `json:"protocol"`
		Requireservernameindication bool   `json:"requireServerNameIndication"`
		Requestroutingrules         []struct {
			ID string `json:"id"`
		} `json:"requestRoutingRules"`
	} `json:"properties"`
	Type string `json:"type"`
}

type SImage

type SImage struct {
	multicloud.SImageBase
	AzureTags

	Properties ImageProperties `json:"properties,omitempty"`
	ID         string          `json:"id,omitempty"`
	Name       string
	Type       string
	Location   string

	Publisher string
	Offer     string
	Sku       string
	Version   string

	ImageType cloudprovider.TImageType
	// contains filtered or unexported fields
}

func (*SImage) Delete

func (self *SImage) Delete(ctx context.Context) error

func (*SImage) GetBios

func (i *SImage) GetBios() cloudprovider.TBiosType

func (*SImage) GetBlobUri

func (self *SImage) GetBlobUri() string

func (*SImage) GetCreatedAt

func (self *SImage) GetCreatedAt() time.Time

func (*SImage) GetFullOsName

func (i *SImage) GetFullOsName() 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) GetImageFormat

func (self *SImage) GetImageFormat() string

func (*SImage) GetImageStatus

func (self *SImage) GetImageStatus() string

func (*SImage) GetImageType

func (self *SImage) GetImageType() cloudprovider.TImageType

func (*SImage) GetMinOsDiskSizeGb

func (self *SImage) GetMinOsDiskSizeGb() int

func (*SImage) GetMinRamSizeMb

func (self *SImage) GetMinRamSizeMb() int

func (*SImage) GetName

func (self *SImage) GetName() string

func (*SImage) GetOsArch

func (self *SImage) GetOsArch() string

func (*SImage) GetOsDist

func (self *SImage) GetOsDist() string

func (*SImage) GetOsLang

func (self *SImage) GetOsLang() string

func (*SImage) GetOsType

func (self *SImage) GetOsType() cloudprovider.TOsType

func (*SImage) GetOsVersion

func (self *SImage) GetOsVersion() string

func (*SImage) GetSizeByte

func (self *SImage) GetSizeByte() int64

func (*SImage) GetStatus

func (self *SImage) GetStatus() string

func (*SImage) GetSysTags

func (self *SImage) GetSysTags() map[string]string

func (*SImage) Refresh

func (self *SImage) Refresh() error

type SInstance

type SInstance struct {
	multicloud.SInstanceBase
	AzureTags

	Properties VirtualMachineProperties
	ID         string
	Name       string
	Type       string
	Location   string

	Resources []SExtensionResource
	// contains filtered or unexported fields
}

func (*SInstance) AttachDisk

func (self *SInstance) AttachDisk(ctx context.Context, diskId string) error

func (*SInstance) ChangeConfig

func (self *SInstance) ChangeConfig(ctx context.Context, config *cloudprovider.SManagedVMChangeConfig) error

func (*SInstance) DeleteVM

func (self *SInstance) DeleteVM(ctx context.Context) error

func (*SInstance) DeployVM

func (*SInstance) DetachDisk

func (self *SInstance) DetachDisk(ctx context.Context, diskId string) error

func (*SInstance) GetBillingType

func (self *SInstance) GetBillingType() string

func (*SInstance) GetBios

func (self *SInstance) GetBios() cloudprovider.TBiosType

func (*SInstance) GetBootOrder

func (self *SInstance) GetBootOrder() string

func (*SInstance) GetCreatedAt

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

func (*SInstance) GetError

func (self *SInstance) GetError() error

func (*SInstance) GetExpiredAt

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

func (*SInstance) GetFullOsName

func (self *SInstance) GetFullOsName() string

func (*SInstance) GetGlobalId

func (self *SInstance) GetGlobalId() string

func (*SInstance) GetHostname

func (self *SInstance) GetHostname() 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) GetInstanceType

func (self *SInstance) GetInstanceType() string

func (*SInstance) GetMachine

func (self *SInstance) GetMachine() string

func (*SInstance) GetName

func (self *SInstance) GetName() string

func (*SInstance) GetOsArch

func (i *SInstance) GetOsArch() string

func (*SInstance) GetOsDist

func (i *SInstance) GetOsDist() string

func (*SInstance) GetOsLang

func (i *SInstance) GetOsLang() string

func (*SInstance) GetOsType

func (self *SInstance) GetOsType() cloudprovider.TOsType

func (*SInstance) GetOsVersion

func (i *SInstance) GetOsVersion() string

func (*SInstance) GetPowerStates

func (ins *SInstance) GetPowerStates() string

func (*SInstance) GetProjectId

func (self *SInstance) GetProjectId() string

func (*SInstance) GetSecurityGroupIds

func (self *SInstance) GetSecurityGroupIds() ([]string, error)

func (*SInstance) GetStatus

func (self *SInstance) GetStatus() string

func (*SInstance) GetSysTags

func (self *SInstance) GetSysTags() map[string]string

func (*SInstance) GetTags

func (self *SInstance) GetTags() (map[string]string, error)

func (*SInstance) GetVNCInfo

func (*SInstance) GetVcpuCount

func (self *SInstance) GetVcpuCount() int

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) RebuildRoot

func (*SInstance) Refresh

func (self *SInstance) Refresh() error

func (*SInstance) Renew

func (self *SInstance) Renew(bc billing.SBillingCycle) error

func (*SInstance) SaveImage

func (*SInstance) SetSecurityGroups

func (self *SInstance) SetSecurityGroups(secgroupIds []string) error

func (*SInstance) SetTags

func (self *SInstance) SetTags(tags map[string]string, replace bool) error

func (*SInstance) StartVM

func (self *SInstance) StartVM(ctx context.Context) error

func (*SInstance) StopVM

func (self *SInstance) StopVM(ctx context.Context, opts *cloudprovider.ServerStopOptions) error

func (*SInstance) UpdateUserData

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

func (*SInstance) UpdateVM

func (*SInstance) WaitEnableVMAccessReady

func (self *SInstance) WaitEnableVMAccessReady() error

func (*SInstance) WaitVMAgentReady

func (self *SInstance) WaitVMAgentReady() error

type SInstanceNic

type SInstanceNic struct {
	multicloud.SResourceBase
	AzureTags

	ID         string
	Name       string
	Type       string
	Location   string
	Properties InterfacePropertiesFormat `json:"properties,omitempty"`

	cloudprovider.DummyICloudNic
	// contains filtered or unexported fields
}

func (*SInstanceNic) Delete

func (self *SInstanceNic) Delete() error

func (*SInstanceNic) GetAssociateId

func (self *SInstanceNic) GetAssociateId() string

func (*SInstanceNic) GetAssociateType

func (self *SInstanceNic) GetAssociateType() string

func (*SInstanceNic) GetDriver

func (self *SInstanceNic) GetDriver() string

func (*SInstanceNic) GetGlobalId

func (self *SInstanceNic) GetGlobalId() string

func (*SInstanceNic) GetICloudInterfaceAddresses

func (self *SInstanceNic) GetICloudInterfaceAddresses() ([]cloudprovider.ICloudInterfaceAddress, error)

func (*SInstanceNic) GetINetworkId

func (self *SInstanceNic) GetINetworkId() string

func (*SInstanceNic) GetIP

func (self *SInstanceNic) GetIP() string

func (*SInstanceNic) GetId

func (self *SInstanceNic) GetId() string

func (*SInstanceNic) GetMAC

func (self *SInstanceNic) GetMAC() string

func (*SInstanceNic) GetMacAddress

func (self *SInstanceNic) GetMacAddress() string

func (*SInstanceNic) GetName

func (self *SInstanceNic) GetName() string

func (*SInstanceNic) GetStatus

func (self *SInstanceNic) GetStatus() string

func (*SInstanceNic) InClassicNetwork

func (self *SInstanceNic) InClassicNetwork() bool

type SKubeCluster

type SKubeCluster struct {
	multicloud.SResourceBase
	AzureTags

	Id         string `json:"id"`
	Location   string `json:"location"`
	Name       string `json:"name"`
	Type       string `json:"type"`
	Properties struct {
		ProvisioningState string `json:"provisioningState"`
		PowerState        struct {
			Code string `json:"code"`
		} `json:"powerState"`
		KubernetesVersion       string          `json:"kubernetesVersion"`
		DNSPrefix               string          `json:"dnsPrefix"`
		Fqdn                    string          `json:"fqdn"`
		AzurePortalFQDN         string          `json:"azurePortalFQDN"`
		AgentPoolProfiles       []SKubeNodePool `json:"agentPoolProfiles"`
		ServicePrincipalProfile struct {
			ClientId string `json:"clientId"`
		} `json:"servicePrincipalProfile"`
		AddonProfiles struct {
			Azurepolicy struct {
				Enabled bool   `json:"enabled"`
				Config  string `json:"config"`
			} `json:"azurepolicy"`
			HTTPApplicationRouting struct {
				Enabled bool `json:"enabled"`
				Config  struct {
					HTTPApplicationRoutingZoneName string `json:"HTTPApplicationRoutingZoneName"`
				} `json:"config"`
			} `json:"httpApplicationRouting"`
			OmsAgent struct {
				Enabled bool `json:"enabled"`
				Config  struct {
					LogAnalyticsWorkspaceResourceId string `json:"logAnalyticsWorkspaceResourceId"`
				} `json:"config"`
				Identity struct {
					ResourceId string `json:"resourceId"`
					ClientId   string `json:"clientId"`
					ObjectId   string `json:"objectId"`
				} `json:"identity"`
			} `json:"omsAgent"`
		} `json:"addonProfiles"`
		NodeResourceGroup string `json:"nodeResourceGroup"`
		EnableRBAC        bool   `json:"enableRBAC"`
		NetworkProfile    struct {
			NetworkPlugin       string `json:"networkPlugin"`
			LoadBalancerSku     string `json:"loadBalancerSku"`
			LoadBalancerProfile struct {
				ManagedOutboundIPs struct {
					Count int `json:"count"`
				} `json:"managedOutboundIPs"`
				EffectiveOutboundIPs []struct {
					Id string `json:"id"`
				} `json:"effectiveOutboundIPs"`
			} `json:"loadBalancerProfile"`
			PodCidr          string `json:"podCidr"`
			ServiceCidr      string `json:"serviceCidr"`
			DNSServiceIP     string `json:"dnsServiceIP"`
			DockerBridgeCidr string `json:"dockerBridgeCidr"`
			OutboundType     string `json:"outboundType"`
		} `json:"networkProfile"`
		MaxAgentPools          int `json:"maxAgentPools"`
		APIServerAccessProfile struct {
			EnablePrivateCluster bool `json:"enablePrivateCluster"`
		} `json:"apiServerAccessProfile"`
		IdentityProfile struct {
			Kubeletidentity struct {
				ResourceId string `json:"resourceId"`
				ClientId   string `json:"clientId"`
				ObjectId   string `json:"objectId"`
			} `json:"kubeletidentity"`
		} `json:"identityProfile"`
	} `json:"properties"`
	Identity struct {
		Type        string `json:"type"`
		PrincipalId string `json:"principalId"`
		TenantId    string `json:"tenantId"`
	} `json:"identity"`
	Sku struct {
		Name string `json:"name"`
		Tier string `json:"tier"`
	} `json:"sku"`
	// contains filtered or unexported fields
}

func (*SKubeCluster) CreateIKubeNodePool

func (*SKubeCluster) Delete

func (self *SKubeCluster) Delete(isRetain bool) error

func (*SKubeCluster) GetEnabled

func (self *SKubeCluster) GetEnabled() bool

func (*SKubeCluster) GetGlobalId

func (self *SKubeCluster) GetGlobalId() string

func (*SKubeCluster) GetIKubeNodePools

func (self *SKubeCluster) GetIKubeNodePools() ([]cloudprovider.ICloudKubeNodePool, error)

func (*SKubeCluster) GetIKubeNodes

func (self *SKubeCluster) GetIKubeNodes() ([]cloudprovider.ICloudKubeNode, error)

func (*SKubeCluster) GetId

func (self *SKubeCluster) GetId() string

func (*SKubeCluster) GetKubeConfig

func (self *SKubeCluster) GetKubeConfig(private bool, expireMinute int) (*cloudprovider.SKubeconfig, error)

func (*SKubeCluster) GetName

func (self *SKubeCluster) GetName() string

func (*SKubeCluster) GetNetworkIds

func (self *SKubeCluster) GetNetworkIds() []string

func (*SKubeCluster) GetStatus

func (self *SKubeCluster) GetStatus() string

func (*SKubeCluster) GetVersion

func (self *SKubeCluster) GetVersion() string

func (*SKubeCluster) GetVpcId

func (self *SKubeCluster) GetVpcId() string

func (*SKubeCluster) Refresh

func (self *SKubeCluster) Refresh() error

type SKubeNodePool

type SKubeNodePool struct {
	multicloud.SResourceBase
	AzureTags

	Name              string `json:"name"`
	Count             int    `json:"count"`
	VMSize            string `json:"vmSize"`
	OsDiskSizeGB      int    `json:"osDiskSizeGB"`
	OsDiskType        string `json:"osDiskType"`
	KubeletDiskType   string `json:"kubeletDiskType"`
	MaxPods           int    `json:"maxPods"`
	Type              string `json:"type"`
	EnableAutoScaling bool   `json:"enableAutoScaling"`
	ProvisioningState string `json:"provisioningState"`
	PowerState        struct {
		Code string `json:"code"`
	} `json:"powerState"`
	OrchestratorVersion string `json:"orchestratorVersion"`
	Mode                string `json:"mode"`
	OsType              string `json:"osType"`
	OsSKU               string `json:"osSKU"`
	NodeImageVersion    string `json:"nodeImageVersion"`
	EnableFIPS          bool   `json:"enableFIPS"`
	// contains filtered or unexported fields
}

func (*SKubeNodePool) Delete

func (self *SKubeNodePool) Delete() error

func (*SKubeNodePool) GetDesiredInstanceCount

func (self *SKubeNodePool) GetDesiredInstanceCount() int

func (*SKubeNodePool) GetGlobalId

func (self *SKubeNodePool) GetGlobalId() string

func (*SKubeNodePool) GetId

func (self *SKubeNodePool) GetId() string

func (*SKubeNodePool) GetInstanceTypes

func (self *SKubeNodePool) GetInstanceTypes() []string

func (*SKubeNodePool) GetMaxInstanceCount

func (self *SKubeNodePool) GetMaxInstanceCount() int

func (*SKubeNodePool) GetMinInstanceCount

func (self *SKubeNodePool) GetMinInstanceCount() int

func (*SKubeNodePool) GetName

func (self *SKubeNodePool) GetName() string

func (*SKubeNodePool) GetNetworkIds

func (self *SKubeNodePool) GetNetworkIds() []string

func (*SKubeNodePool) GetRootDiskSizeGb

func (self *SKubeNodePool) GetRootDiskSizeGb() int

func (*SKubeNodePool) GetStatus

func (self *SKubeNodePool) GetStatus() string

type SLoadBalancerListener

type SLoadBalancerListener struct {
	multicloud.SResourceBase
	AzureTags
	multicloud.SLoadbalancerRedirectBase

	Name              string
	ID                string
	ProvisioningState string
	IPVersion         string
	Protocol          string // 监听协议
	LoadDistribution  string // 调度算法
	FrontendPort      int    // 前端端口
	BackendPort       int    // 后端端口
	ClientIdleTimeout int    // 客户端连接超时
	EnableFloatingIP  bool   // 浮动 IP
	EnableTcpReset    bool
	// contains filtered or unexported fields
}

todo: 目前不支持 入站 NAT 规则 todo: HTTP 设置(端口+协议,其余信息丢弃) + 后端池 = onecloud 路径的路由 的 onecloud 后端服务器组

应用型LB: urlPathMaps(defaultBackendAddressPool+defaultBackendHttpSettings+requestRoutingRules+httpListeners)= Onecloud监听器 4层LB: loadBalancingRules(前端) = Onecloud监听器

func (*SLoadBalancerListener) ChangeCertificate

func (listerner *SLoadBalancerListener) ChangeCertificate(ctx context.Context, opts *cloudprovider.ListenerCertificateOptions) error

func (*SLoadBalancerListener) ChangeScheduler

func (*SLoadBalancerListener) CreateILoadBalancerListenerRule

func (*SLoadBalancerListener) Delete

func (self *SLoadBalancerListener) Delete(ctx context.Context) error

func (*SLoadBalancerListener) GetAclId

func (self *SLoadBalancerListener) GetAclId() string

func (*SLoadBalancerListener) GetAclStatus

func (self *SLoadBalancerListener) GetAclStatus() string

func (*SLoadBalancerListener) GetAclType

func (self *SLoadBalancerListener) GetAclType() string

func (*SLoadBalancerListener) GetBackendConnectTimeout

func (self *SLoadBalancerListener) GetBackendConnectTimeout() int

func (*SLoadBalancerListener) GetBackendGroupId

func (self *SLoadBalancerListener) GetBackendGroupId() string

func (*SLoadBalancerListener) GetBackendServerPort

func (self *SLoadBalancerListener) GetBackendServerPort() int

func (*SLoadBalancerListener) GetCertificateId

func (self *SLoadBalancerListener) GetCertificateId() string

func (*SLoadBalancerListener) GetClientIdleTimeout

func (self *SLoadBalancerListener) GetClientIdleTimeout() int

func (*SLoadBalancerListener) GetEgressMbps

func (self *SLoadBalancerListener) GetEgressMbps() int

func (*SLoadBalancerListener) GetGlobalId

func (self *SLoadBalancerListener) GetGlobalId() string

func (*SLoadBalancerListener) GetHealthCheck

func (self *SLoadBalancerListener) GetHealthCheck() string

func (*SLoadBalancerListener) GetHealthCheckCode

func (self *SLoadBalancerListener) GetHealthCheckCode() string

todo: 和onecloud code不兼容? 与此处输入的 HTTP 状态代码或代码范围相匹配的响应将被视为成功。请输入逗号分隔的代码列表(例如 200, 201)或者输入一个代码范围(例如 220-226)

func (*SLoadBalancerListener) GetHealthCheckDomain

func (self *SLoadBalancerListener) GetHealthCheckDomain() string

func (*SLoadBalancerListener) GetHealthCheckExp

func (self *SLoadBalancerListener) GetHealthCheckExp() string

func (*SLoadBalancerListener) GetHealthCheckFail

func (self *SLoadBalancerListener) GetHealthCheckFail() int

func (*SLoadBalancerListener) GetHealthCheckInterval

func (self *SLoadBalancerListener) GetHealthCheckInterval() int

func (*SLoadBalancerListener) GetHealthCheckReq

func (self *SLoadBalancerListener) GetHealthCheckReq() string

func (*SLoadBalancerListener) GetHealthCheckRise

func (self *SLoadBalancerListener) GetHealthCheckRise() int

func (*SLoadBalancerListener) GetHealthCheckTimeout

func (self *SLoadBalancerListener) GetHealthCheckTimeout() int

func (*SLoadBalancerListener) GetHealthCheckType

func (self *SLoadBalancerListener) GetHealthCheckType() string

func (*SLoadBalancerListener) GetHealthCheckURI

func (self *SLoadBalancerListener) GetHealthCheckURI() string

func (*SLoadBalancerListener) GetILoadBalancerListenerRuleById

func (self *SLoadBalancerListener) GetILoadBalancerListenerRuleById(ruleId string) (cloudprovider.ICloudLoadbalancerListenerRule, error)

func (*SLoadBalancerListener) GetILoadbalancerListenerRules

func (self *SLoadBalancerListener) GetILoadbalancerListenerRules() ([]cloudprovider.ICloudLoadbalancerListenerRule, error)

func (*SLoadBalancerListener) GetId

func (self *SLoadBalancerListener) GetId() string

func (*SLoadBalancerListener) GetListenerPort

func (self *SLoadBalancerListener) GetListenerPort() int

func (*SLoadBalancerListener) GetListenerType

func (self *SLoadBalancerListener) GetListenerType() string

func (*SLoadBalancerListener) GetName

func (self *SLoadBalancerListener) GetName() string

func (*SLoadBalancerListener) GetProjectId

func (self *SLoadBalancerListener) GetProjectId() string

func (*SLoadBalancerListener) GetRedirect

func (self *SLoadBalancerListener) GetRedirect() string

func (*SLoadBalancerListener) GetRedirectCode

func (self *SLoadBalancerListener) GetRedirectCode() int64

func (*SLoadBalancerListener) GetRedirectHost

func (self *SLoadBalancerListener) GetRedirectHost() string

func (*SLoadBalancerListener) GetRedirectPath

func (self *SLoadBalancerListener) GetRedirectPath() string

func (*SLoadBalancerListener) GetRedirectScheme

func (self *SLoadBalancerListener) GetRedirectScheme() string

func (*SLoadBalancerListener) GetScheduler

func (self *SLoadBalancerListener) GetScheduler() string

func (*SLoadBalancerListener) GetStatus

func (self *SLoadBalancerListener) GetStatus() string

func (*SLoadBalancerListener) GetStickySession

func (self *SLoadBalancerListener) GetStickySession() string

func (*SLoadBalancerListener) GetStickySessionCookie

func (self *SLoadBalancerListener) GetStickySessionCookie() string

func (*SLoadBalancerListener) GetStickySessionCookieTimeout

func (self *SLoadBalancerListener) GetStickySessionCookieTimeout() int

func (*SLoadBalancerListener) GetStickySessionType

func (self *SLoadBalancerListener) GetStickySessionType() string

func (*SLoadBalancerListener) GetTLSCipherPolicy

func (self *SLoadBalancerListener) GetTLSCipherPolicy() string

func (*SLoadBalancerListener) GetTags

func (self *SLoadBalancerListener) GetTags() (map[string]string, error)

func (*SLoadBalancerListener) GzipEnabled

func (self *SLoadBalancerListener) GzipEnabled() bool

func (*SLoadBalancerListener) HTTP2Enabled

func (self *SLoadBalancerListener) HTTP2Enabled() bool

func (*SLoadBalancerListener) Refresh

func (self *SLoadBalancerListener) Refresh() error

func (*SLoadBalancerListener) SetAcl

func (*SLoadBalancerListener) SetHealthCheck

func (*SLoadBalancerListener) SetTags

func (self *SLoadBalancerListener) SetTags(tags map[string]string, replace bool) error

func (*SLoadBalancerListener) Start

func (self *SLoadBalancerListener) Start() error

func (*SLoadBalancerListener) Stop

func (self *SLoadBalancerListener) Stop() error

func (*SLoadBalancerListener) XForwardedForEnabled

func (self *SLoadBalancerListener) XForwardedForEnabled() bool

type SLoadbalancer

type SLoadbalancer struct {
	multicloud.SResourceBase
	AzureTags

	Name       string                  `json:"name"`
	ID         string                  `json:"id"`
	Etag       string                  `json:"etag"`
	Type       string                  `json:"type"`
	Location   string                  `json:"location"`
	Properties SLoadbalancerProperties `json:"properties"`
	Sku        Sku                     `json:"sku"`
	// contains filtered or unexported fields
}

func (*SLoadbalancer) Delete

func (self *SLoadbalancer) Delete(ctx context.Context) error

func (*SLoadbalancer) GetAddress

func (self *SLoadbalancer) GetAddress() string

func (*SLoadbalancer) GetAddressType

func (self *SLoadbalancer) GetAddressType() string

func (*SLoadbalancer) GetChargeType

func (self *SLoadbalancer) GetChargeType() string

func (*SLoadbalancer) GetEgressMbps

func (self *SLoadbalancer) GetEgressMbps() int

func (*SLoadbalancer) GetGlobalId

func (self *SLoadbalancer) GetGlobalId() string

func (*SLoadbalancer) GetIEIP

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

func (*SLoadbalancer) GetIEIPById

func (self *SLoadbalancer) GetIEIPById(eipId string) (cloudprovider.ICloudEIP, error)

func (*SLoadbalancer) GetIEIPS

func (self *SLoadbalancer) GetIEIPS() ([]cloudprovider.ICloudEIP, error)

func (*SLoadbalancer) GetILoadBalancerBackendGroupById

func (self *SLoadbalancer) GetILoadBalancerBackendGroupById(groupId string) (cloudprovider.ICloudLoadbalancerBackendGroup, error)

func (*SLoadbalancer) GetILoadBalancerBackendGroups

func (self *SLoadbalancer) GetILoadBalancerBackendGroups() ([]cloudprovider.ICloudLoadbalancerBackendGroup, error)

应用型LB: HTTP 设置 + 后端池 = onecloud 后端服务器组 4层LB: loadBalancingRules(backendPort)+ 后端池 = onecloud 后端服务器组

func (*SLoadbalancer) GetILoadBalancerCertificateById

func (self *SLoadbalancer) GetILoadBalancerCertificateById(certId string) (cloudprovider.ICloudLoadbalancerCertificate, error)

func (*SLoadbalancer) GetILoadBalancerCertificates

func (self *SLoadbalancer) GetILoadBalancerCertificates() ([]cloudprovider.ICloudLoadbalancerCertificate, error)

func (*SLoadbalancer) GetILoadBalancerListenerById

func (self *SLoadbalancer) GetILoadBalancerListenerById(listenerId string) (cloudprovider.ICloudLoadbalancerListener, error)

func (*SLoadbalancer) GetILoadBalancerListeners

func (self *SLoadbalancer) GetILoadBalancerListeners() ([]cloudprovider.ICloudLoadbalancerListener, error)

应用型LB: urlPathMaps(defaultBackendAddressPool+defaultBackendHttpSettings+requestRoutingRules+httpListeners)= Onecloud监听器 4层LB: loadBalancingRules(前端) = Onecloud监听器

func (*SLoadbalancer) GetId

func (self *SLoadbalancer) GetId() string

func (*SLoadbalancer) GetLoadbalancerSpec

func (self *SLoadbalancer) GetLoadbalancerSpec() string

func (*SLoadbalancer) GetName

func (self *SLoadbalancer) GetName() string

func (*SLoadbalancer) GetNetworkIds

func (self *SLoadbalancer) GetNetworkIds() []string

func (*SLoadbalancer) GetNetworkType

func (self *SLoadbalancer) GetNetworkType() string

func (*SLoadbalancer) GetProjectId

func (self *SLoadbalancer) GetProjectId() string

func (*SLoadbalancer) GetStatus

func (self *SLoadbalancer) GetStatus() string

func (*SLoadbalancer) GetSysTags

func (self *SLoadbalancer) GetSysTags() map[string]string

func (*SLoadbalancer) GetVpcId

func (self *SLoadbalancer) GetVpcId() string

func (*SLoadbalancer) GetZone1Id

func (self *SLoadbalancer) GetZone1Id() string

func (*SLoadbalancer) GetZoneId

func (self *SLoadbalancer) GetZoneId() string

func (*SLoadbalancer) IsEmulated

func (self *SLoadbalancer) IsEmulated() bool

func (*SLoadbalancer) Refresh

func (self *SLoadbalancer) Refresh() error

func (*SLoadbalancer) Start

func (self *SLoadbalancer) Start() error

func (*SLoadbalancer) Stop

func (self *SLoadbalancer) Stop() error

type SLoadbalancerBackend

type SLoadbalancerBackend struct {
	multicloud.SResourceBase

	// networkInterfaces 通过接口地址反查虚拟机地址
	Name        string `json:"name"`
	ID          string `json:"id"`
	Type        string `json:"type"`
	BackendPort int
	BackendIP   string
	// contains filtered or unexported fields
}

func (*SLoadbalancerBackend) GetBackendId

func (self *SLoadbalancerBackend) GetBackendId() string

func (*SLoadbalancerBackend) GetBackendRole

func (self *SLoadbalancerBackend) GetBackendRole() string

func (*SLoadbalancerBackend) GetBackendType

func (self *SLoadbalancerBackend) GetBackendType() string

func (*SLoadbalancerBackend) GetGlobalId

func (self *SLoadbalancerBackend) GetGlobalId() string

func (*SLoadbalancerBackend) GetId

func (self *SLoadbalancerBackend) GetId() string

func (*SLoadbalancerBackend) GetIpAddress

func (self *SLoadbalancerBackend) GetIpAddress() string

func (*SLoadbalancerBackend) GetName

func (self *SLoadbalancerBackend) GetName() string

func (*SLoadbalancerBackend) GetPort

func (self *SLoadbalancerBackend) GetPort() int

func (*SLoadbalancerBackend) GetProjectId

func (self *SLoadbalancerBackend) GetProjectId() string

func (*SLoadbalancerBackend) GetStatus

func (self *SLoadbalancerBackend) GetStatus() string

func (*SLoadbalancerBackend) GetSysTags

func (self *SLoadbalancerBackend) GetSysTags() map[string]string

func (*SLoadbalancerBackend) GetTags

func (self *SLoadbalancerBackend) GetTags() (map[string]string, error)

func (*SLoadbalancerBackend) GetWeight

func (self *SLoadbalancerBackend) GetWeight() int

func (*SLoadbalancerBackend) SetTags

func (self *SLoadbalancerBackend) SetTags(tags map[string]string, replace bool) error

func (*SLoadbalancerBackend) SyncConf

func (self *SLoadbalancerBackend) SyncConf(ctx context.Context, port, weight int) error

type SLoadbalancerBackendGroup

type SLoadbalancerBackendGroup struct {
	multicloud.SResourceBase

	Pool         BackendAddressPool
	DefaultPort  int
	HttpSettings *BackendHTTPSettingsCollection

	BackendIps []BackendIPConfiguration
	// contains filtered or unexported fields
}

todo: 虚拟机规模集不支持 注: 因为与onecloud后端服务器组存在配置差异,不支持同步未关联的后端服务器组 应用型LB: HTTP 设置 + 后端池 = onecloud 后端服务器组 4层LB: loadBalancingRules(backendPort)+ 后端池 = onecloud 后端服务器组

func (*SLoadbalancerBackendGroup) AddBackendServer

func (self *SLoadbalancerBackendGroup) AddBackendServer(serverId string, weight int, port int) (cloudprovider.ICloudLoadbalancerBackend, error)

func (*SLoadbalancerBackendGroup) Delete

func (self *SLoadbalancerBackendGroup) Delete(ctx context.Context) error

func (*SLoadbalancerBackendGroup) GetGlobalId

func (self *SLoadbalancerBackendGroup) GetGlobalId() string

func (*SLoadbalancerBackendGroup) GetHealthCheck

func (*SLoadbalancerBackendGroup) GetILoadbalancerBackendById

func (self *SLoadbalancerBackendGroup) GetILoadbalancerBackendById(backendId string) (cloudprovider.ICloudLoadbalancerBackend, error)

func (*SLoadbalancerBackendGroup) GetILoadbalancerBackends

func (self *SLoadbalancerBackendGroup) GetILoadbalancerBackends() ([]cloudprovider.ICloudLoadbalancerBackend, error)

func (*SLoadbalancerBackendGroup) GetId

func (self *SLoadbalancerBackendGroup) GetId() string

func (*SLoadbalancerBackendGroup) GetLoadbalancerId

func (self *SLoadbalancerBackendGroup) GetLoadbalancerId() string

func (*SLoadbalancerBackendGroup) GetName

func (self *SLoadbalancerBackendGroup) GetName() string

func (*SLoadbalancerBackendGroup) GetProjectId

func (self *SLoadbalancerBackendGroup) GetProjectId() string

func (*SLoadbalancerBackendGroup) GetProtocolType

func (self *SLoadbalancerBackendGroup) GetProtocolType() string

func (*SLoadbalancerBackendGroup) GetScheduler

func (self *SLoadbalancerBackendGroup) GetScheduler() string

func (*SLoadbalancerBackendGroup) GetStatus

func (self *SLoadbalancerBackendGroup) GetStatus() string

func (*SLoadbalancerBackendGroup) GetStickySession

func (*SLoadbalancerBackendGroup) GetSysTags

func (self *SLoadbalancerBackendGroup) GetSysTags() map[string]string

func (*SLoadbalancerBackendGroup) GetTags

func (self *SLoadbalancerBackendGroup) GetTags() (map[string]string, error)

func (*SLoadbalancerBackendGroup) GetType

func (self *SLoadbalancerBackendGroup) GetType() string

func (*SLoadbalancerBackendGroup) IsDefault

func (self *SLoadbalancerBackendGroup) IsDefault() bool

func (*SLoadbalancerBackendGroup) IsEmulated

func (self *SLoadbalancerBackendGroup) IsEmulated() bool

func (*SLoadbalancerBackendGroup) Refresh

func (self *SLoadbalancerBackendGroup) Refresh() error

func (*SLoadbalancerBackendGroup) RemoveBackendServer

func (self *SLoadbalancerBackendGroup) RemoveBackendServer(serverId string, weight int, port int) error

func (*SLoadbalancerBackendGroup) SetTags

func (self *SLoadbalancerBackendGroup) SetTags(tags map[string]string, replace bool) error

func (*SLoadbalancerBackendGroup) Sync

type SLoadbalancerCert

type SLoadbalancerCert struct {
	multicloud.SResourceBase

	Name      string `json:"name"`
	ID        string `json:"id"`
	PublicKey string `json:"public_key"`
	// contains filtered or unexported fields
}

func (*SLoadbalancerCert) Delete

func (self *SLoadbalancerCert) Delete() error

func (*SLoadbalancerCert) GetCommonName

func (self *SLoadbalancerCert) GetCommonName() string

func (*SLoadbalancerCert) GetExpireTime

func (self *SLoadbalancerCert) GetExpireTime() time.Time

func (*SLoadbalancerCert) GetFingerprint

func (self *SLoadbalancerCert) GetFingerprint() string

func (*SLoadbalancerCert) GetGlobalId

func (self *SLoadbalancerCert) GetGlobalId() string

func (*SLoadbalancerCert) GetId

func (self *SLoadbalancerCert) GetId() string

func (*SLoadbalancerCert) GetName

func (self *SLoadbalancerCert) GetName() string

func (*SLoadbalancerCert) GetPrivateKey

func (self *SLoadbalancerCert) GetPrivateKey() string

func (*SLoadbalancerCert) GetProjectId

func (self *SLoadbalancerCert) GetProjectId() string

func (*SLoadbalancerCert) GetPublickKey

func (self *SLoadbalancerCert) GetPublickKey() string

func (*SLoadbalancerCert) GetStatus

func (self *SLoadbalancerCert) GetStatus() string

func (*SLoadbalancerCert) GetSubjectAlternativeNames

func (self *SLoadbalancerCert) GetSubjectAlternativeNames() string

func (*SLoadbalancerCert) GetSysTags

func (self *SLoadbalancerCert) GetSysTags() map[string]string

func (*SLoadbalancerCert) GetTags

func (self *SLoadbalancerCert) GetTags() (map[string]string, error)

func (*SLoadbalancerCert) IsEmulated

func (self *SLoadbalancerCert) IsEmulated() bool

func (*SLoadbalancerCert) ParsePublicKey

func (self *SLoadbalancerCert) ParsePublicKey() (*x509.Certificate, error)

func (*SLoadbalancerCert) Refresh

func (self *SLoadbalancerCert) Refresh() error

func (*SLoadbalancerCert) SetTags

func (self *SLoadbalancerCert) SetTags(tags map[string]string, replace bool) error

func (*SLoadbalancerCert) Sync

func (self *SLoadbalancerCert) Sync(name, privateKey, publickKey string) error

type SLoadbalancerListenerRule

type SLoadbalancerListenerRule struct {
	multicloud.SResourceBase
	multicloud.SLoadbalancerRedirectBase

	// urlPathMaps -> pathRules
	Name       string             `json:"name"`
	ID         string             `json:"id"`
	Domain     string             `json:"domain"`
	Properties PathRuleProperties `json:"properties"`
	// contains filtered or unexported fields
}

func (*SLoadbalancerListenerRule) Delete

func (self *SLoadbalancerListenerRule) Delete(ctx context.Context) error

func (*SLoadbalancerListenerRule) GetBackendGroupId

func (self *SLoadbalancerListenerRule) GetBackendGroupId() string

func (*SLoadbalancerListenerRule) GetCondition

func (self *SLoadbalancerListenerRule) GetCondition() string

func (*SLoadbalancerListenerRule) GetDomain

func (self *SLoadbalancerListenerRule) GetDomain() string

func (*SLoadbalancerListenerRule) GetGlobalId

func (self *SLoadbalancerListenerRule) GetGlobalId() string

func (*SLoadbalancerListenerRule) GetId

func (self *SLoadbalancerListenerRule) GetId() string

func (*SLoadbalancerListenerRule) GetName

func (self *SLoadbalancerListenerRule) GetName() string

func (*SLoadbalancerListenerRule) GetPath

func (self *SLoadbalancerListenerRule) GetPath() string

func (*SLoadbalancerListenerRule) GetProjectId

func (self *SLoadbalancerListenerRule) GetProjectId() string

func (*SLoadbalancerListenerRule) GetRedirect

func (self *SLoadbalancerListenerRule) GetRedirect() string

func (*SLoadbalancerListenerRule) GetRedirectCode

func (self *SLoadbalancerListenerRule) GetRedirectCode() int64

func (*SLoadbalancerListenerRule) GetRedirectHost

func (self *SLoadbalancerListenerRule) GetRedirectHost() string

func (*SLoadbalancerListenerRule) GetRedirectPath

func (self *SLoadbalancerListenerRule) GetRedirectPath() string

func (*SLoadbalancerListenerRule) GetRedirectScheme

func (self *SLoadbalancerListenerRule) GetRedirectScheme() string

func (*SLoadbalancerListenerRule) GetStatus

func (self *SLoadbalancerListenerRule) GetStatus() string

func (*SLoadbalancerListenerRule) GetSysTags

func (self *SLoadbalancerListenerRule) GetSysTags() map[string]string

func (*SLoadbalancerListenerRule) GetTags

func (self *SLoadbalancerListenerRule) GetTags() (map[string]string, error)

func (*SLoadbalancerListenerRule) IsDefault

func (self *SLoadbalancerListenerRule) IsDefault() bool

func (*SLoadbalancerListenerRule) SetTags

func (self *SLoadbalancerListenerRule) SetTags(tags map[string]string, replace bool) error

type SLoadbalancerProperties

type SLoadbalancerProperties struct {
	Sku                                 Sku                                 `json:"sku"`
	ProvisioningState                   string                              `json:"provisioningState"`
	OperationalState                    string                              `json:"operationalState"`
	ResourceGUID                        string                              `json:"resourceGuid"`
	GatewayIPConfigurations             []GatewayIPConfiguration            `json:"gatewayIPConfigurations"`
	SSLCertificates                     []SSLCertificate                    `json:"sslCertificates"`
	FrontendIPConfigurations            []FrontendIPConfiguration           `json:"frontendIPConfigurations"`
	FrontendPorts                       []FrontendPort                      `json:"frontendPorts"`
	BackendAddressPools                 []BackendAddressPool                `json:"backendAddressPools"`
	BackendHTTPSettingsCollection       []BackendHTTPSettingsCollection     `json:"backendHttpSettingsCollection"`
	LoadBalancingRules                  []LoadBalancingRule                 `json:"loadBalancingRules"`
	Probes                              []Probe                             `json:"probes"`
	InboundNatRules                     []InboundNatRule                    `json:"inboundNatRules"`
	HTTPListeners                       []HTTPListener                      `json:"httpListeners"`
	URLPathMaps                         []URLPathMap                        `json:"urlPathMaps"`
	RequestRoutingRules                 []RequestRoutingRule                `json:"requestRoutingRules"`
	RedirectConfigurations              []RedirectConfiguration             `json:"redirectConfigurations"`
	WebApplicationFirewallConfiguration WebApplicationFirewallConfiguration `json:"webApplicationFirewallConfiguration"`
	AutoscaleConfiguration              AutoscaleConfiguration              `json:"autoscaleConfiguration"`
	EnableHttp2                         bool                                `json:"enableHttp2"`
}

type SLoadbalancerSku

type SLoadbalancerSku struct {
	Name string `json:"name"`
}

type SLocalized

type SLocalized struct {
	Value          string
	LocalizedValue string
}

type SLoganalyticsWorkspace

type SLoganalyticsWorkspace struct {
	Id                               string                           `json:"id"`
	Location                         string                           `json:"location"`
	Name                             string                           `json:"name"`
	SLoganalyticsWorkspaceProperties SLoganalyticsWorkspaceProperties `json:"properties"`
	Type                             string                           `json:"type"`
}

type SLoganalyticsWorkspaceProperties

type SLoganalyticsWorkspaceProperties struct {
	CreatedDate                                      string                                           `json:"createdDate"`
	CustomerId                                       string                                           `json:"customerId"`
	SLoganalyticsWorkspacePropertiesFeatures         SLoganalyticsWorkspacePropertiesFeatures         `json:"features"`
	ModifiedDate                                     string                                           `json:"modifiedDate"`
	ProvisioningState                                string                                           `json:"provisioningState"`
	PublicNetworkAccessForIngestion                  string                                           `json:"publicNetworkAccessForIngestion"`
	PublicNetworkAccessForQuery                      string                                           `json:"publicNetworkAccessForQuery"`
	RetentionInDays                                  int                                              `json:"retentionInDays"`
	SLoganalyticsWorkspacePropertiesSku              SLoganalyticsWorkspacePropertiesSku              `json:"sku"`
	Source                                           string                                           `json:"source"`
	SLoganalyticsWorkspacePropertiesWorkspaceCapping SLoganalyticsWorkspacePropertiesWorkspaceCapping `json:"workspaceCapping"`
}

type SLoganalyticsWorkspacePropertiesFeatures

type SLoganalyticsWorkspacePropertiesFeatures struct {
	EnableLogAccessUsingOnlyResourcePermissions bool `json:"enableLogAccessUsingOnlyResourcePermissions"`
	Legacy                                      int  `json:"legacy"`
	SearchVersion                               int  `json:"searchVersion"`
}

type SLoganalyticsWorkspacePropertiesSku

type SLoganalyticsWorkspacePropertiesSku struct {
	LastSkuUpdate string `json:"lastSkuUpdate"`
	Name          string `json:"name"`
}

type SLoganalyticsWorkspacePropertiesWorkspaceCapping

type SLoganalyticsWorkspacePropertiesWorkspaceCapping struct {
	DailyQuotaGb        int    `json:"dailyQuotaGb"`
	DataIngestionStatus string `json:"dataIngestionStatus"`
	QuotaNextResetTime  string `json:"quotaNextResetTime"`
}

type SManagedRuleGroup

type SManagedRuleGroup struct {
	Name       string
	Id         string
	Type       string
	Properties SManagedRuleGroupProperties
}

type SManagedRuleGroupProperties

type SManagedRuleGroupProperties struct {
	ProvisioningState string
	RuleSetId         string
	RuleSetType       string
	RuleSetVersion    string
	RuleGroups        []SRuleGroup
}

type SManagedSQLServer

type SManagedSQLServer struct {
	multicloud.SDBInstanceBase
	AzureTags

	Location string `json:"location"`
	ID       string `json:"id"`
	Name     string `json:"name"`
	Type     string `json:"type"`
	Sku      struct {
		Name     string `json:"name"`
		Tier     string `json:"tier"`
		Capacity int    `json:"capacity"`
		Family   string `json:"family"`
	} `json:"sku"`
	Properties struct {
		Fullyqualifieddomainname   string `json:"fullyQualifiedDomainName"`
		Administratorlogin         string `json:"administratorLogin"`
		Subnetid                   string `json:"subnetId"`
		State                      string `json:"state"`
		Provisioningstate          string `json:"provisioningState"`
		Vcores                     int    `json:"vCores"`
		Storagesizeingb            int    `json:"storageSizeInGB"`
		Licensetype                string `json:"licenseType"`
		Collation                  string `json:"collation"`
		Publicdataendpointenabled  bool   `json:"publicDataEndpointEnabled"`
		Proxyoverride              string `json:"proxyOverride"`
		Minimaltlsversion          string `json:"minimalTlsVersion"`
		Dnszone                    string `json:"dnsZone"`
		Maintenanceconfigurationid string `json:"maintenanceConfigurationId"`
		Storageaccounttype         string `json:"storageAccountType"`
	} `json:"properties"`
	// contains filtered or unexported fields
}

func (*SManagedSQLServer) GetCategory

func (self *SManagedSQLServer) GetCategory() string

func (*SManagedSQLServer) GetConnectionStr

func (self *SManagedSQLServer) GetConnectionStr() string

func (*SManagedSQLServer) GetDiskSizeGB

func (self *SManagedSQLServer) GetDiskSizeGB() int

func (*SManagedSQLServer) GetEngine

func (self *SManagedSQLServer) GetEngine() string

func (*SManagedSQLServer) GetEngineVersion

func (self *SManagedSQLServer) GetEngineVersion() string

func (*SManagedSQLServer) GetGlobalId

func (self *SManagedSQLServer) GetGlobalId() string

func (*SManagedSQLServer) GetIDBInstanceAccounts

func (self *SManagedSQLServer) GetIDBInstanceAccounts() ([]cloudprovider.ICloudDBInstanceAccount, error)

func (*SManagedSQLServer) GetIDBInstanceDatabases

func (self *SManagedSQLServer) GetIDBInstanceDatabases() ([]cloudprovider.ICloudDBInstanceDatabase, error)

func (*SManagedSQLServer) GetIVpcId

func (self *SManagedSQLServer) GetIVpcId() string

func (*SManagedSQLServer) GetId

func (self *SManagedSQLServer) GetId() string

func (*SManagedSQLServer) GetInstanceType

func (self *SManagedSQLServer) GetInstanceType() string

func (*SManagedSQLServer) GetMaintainTime

func (self *SManagedSQLServer) GetMaintainTime() string

func (*SManagedSQLServer) GetName

func (self *SManagedSQLServer) GetName() string

func (*SManagedSQLServer) GetPort

func (self *SManagedSQLServer) GetPort() int

func (*SManagedSQLServer) GetProjectId

func (self *SManagedSQLServer) GetProjectId() string

func (*SManagedSQLServer) GetStatus

func (self *SManagedSQLServer) GetStatus() string

func (*SManagedSQLServer) GetStorageType

func (self *SManagedSQLServer) GetStorageType() string

func (*SManagedSQLServer) GetVcpuCount

func (self *SManagedSQLServer) GetVcpuCount() int

func (*SManagedSQLServer) GetVmemSizeMB

func (self *SManagedSQLServer) GetVmemSizeMB() int

func (*SManagedSQLServer) GetZone1Id

func (self *SManagedSQLServer) GetZone1Id() string

func (*SManagedSQLServer) GetZone2Id

func (self *SManagedSQLServer) GetZone2Id() string

func (*SManagedSQLServer) GetZone3Id

func (self *SManagedSQLServer) GetZone3Id() string

type SManagedSQLServerAccount

type SManagedSQLServerAccount struct {
	multicloud.SDBInstanceAccountBase

	Name string
	// contains filtered or unexported fields
}

func (*SManagedSQLServerAccount) GetName

func (self *SManagedSQLServerAccount) GetName() string

type SManagedSQLServerDatabase

type SManagedSQLServerDatabase struct {
	multicloud.SDBInstanceDatabaseBase
	AzureTags

	ID         string `json:"id"`
	Location   string `json:"location"`
	Name       string `json:"name"`
	Properties struct {
		Collation                string    `json:"collation"`
		Creationdate             time.Time `json:"creationDate"`
		Defaultsecondarylocation string    `json:"defaultSecondaryLocation"`
		Status                   string    `json:"status"`
	} `json:"properties"`
	Type string `json:"type"`
	// contains filtered or unexported fields
}

func (*SManagedSQLServerDatabase) GetCharacterSet

func (self *SManagedSQLServerDatabase) GetCharacterSet() string

func (*SManagedSQLServerDatabase) GetGlobalId

func (self *SManagedSQLServerDatabase) GetGlobalId() string

func (*SManagedSQLServerDatabase) GetId

func (self *SManagedSQLServerDatabase) GetId() string

func (*SManagedSQLServerDatabase) GetName

func (self *SManagedSQLServerDatabase) GetName() string

func (*SManagedSQLServerDatabase) GetStatus

func (self *SManagedSQLServerDatabase) GetStatus() string

type SMatchcondition

type SMatchcondition struct {
	Matchvariables   []SMatchvariable `json:"matchVariables"`
	Operator         string           `json:"operator"`
	Negationconditon bool             `json:"negationConditon"`
	Matchvalues      []string         `json:"matchValues"`
	Transforms       []string         `json:"transforms"`
}

type SMatchvariable

type SMatchvariable struct {
	Variablename string `json:"variableName"`
	Selector     string `json:"selector"`
}

type SMetricTrigger

type SMetricTrigger struct {
	// 维度条件的列表。 例如: [{"DimensionName": "AppName"、"Operator": "Equals"、"Values": ["App1"]}、{"DimensionName": "Deployment"、"Operator": "Equals"、"Values": ["default"]}]。
	Dimensions []SScaleRuleMetricDimension

	// 一个值,该值指示度量值是否应除以每个实例。
	DividePerInstance bool

	// 定义规则监视内容的指标的名称。
	MetricName string

	// 定义规则监视内容的指标的命名空间。
	MetricNamespace string

	// 规则监视的资源的资源标识符。
	MetricResourceUri string

	// 用于比较指标数据和阈值的运算符。
	// Equals GreaterThan GreaterThanOrEqual LessThan LessThanOrEqual NotEquals
	Operator string

	// 指标统计信息类型。 来自多个实例的指标进行组合的方式。
	// Average Max	Min	Sum
	Statistic string

	// 触发缩放操作的度量值的阈值。
	Threshold int

	// 时间聚合类型。 随着时间推移,收集的数据应如何组合。 默认值为 Average。
	// Average	Count	Last	Maximum	Minimum	Total
	TimeAggregation string

	//规则监视的度量值的粒度。 必须是从指标的指标定义返回的预定义值之一。 必须介于 12 小时和 1 分钟之间。
	TimeGrain string

	//收集实例数据的时间范围。 此值必须大于指标集合中的延迟,可能会因资源而异。 必须介于 12 小时和 5 分钟之间。
	TimeWindow string
}

type SNetwork

type SNetwork struct {
	multicloud.SResourceBase
	AzureTags

	//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) GetIsPublic

func (self *SNetwork) GetIsPublic() bool

func (*SNetwork) GetName

func (self *SNetwork) GetName() string

func (*SNetwork) GetProjectId

func (self *SNetwork) GetProjectId() string

func (*SNetwork) GetPublicScope

func (self *SNetwork) GetPublicScope() rbacscope.TRbacScope

func (*SNetwork) GetServerType

func (self *SNetwork) GetServerType() string

func (*SNetwork) GetStatus

func (self *SNetwork) GetStatus() string

func (*SNetwork) GetTags

func (self *SNetwork) GetTags() (map[string]string, error)

func (*SNetwork) Refresh

func (self *SNetwork) Refresh() error

type SObject

type SObject struct {
	cloudprovider.SBaseCloudObject
	// contains filtered or unexported fields
}

func (*SObject) GetAcl

func (o *SObject) GetAcl() cloudprovider.TBucketACLType

func (*SObject) GetIBucket

func (o *SObject) GetIBucket() cloudprovider.ICloudBucket

func (*SObject) GetMeta

func (o *SObject) GetMeta() http.Header

func (*SObject) SetAcl

func (o *SObject) SetAcl(aclStr cloudprovider.TBucketACLType) error

func (*SObject) SetMeta

func (o *SObject) SetMeta(ctx context.Context, meta http.Header) error

type SOsDisk

type SOsDisk struct {
	multicloud.SDisk
	AzureTags

	OsType       string `json:"osType,omitempty"`
	Caching      string `json:"caching,omitempty"`
	Name         string
	DiskSizeGB   TAzureInt32            `json:"diskSizeGB,omitempty"`
	ManagedDisk  *ManagedDiskParameters `json:"managedDisk,omitempty"`
	CreateOption string                 `json:"createOption,omitempty"`
	Vhd          *VirtualHardDisk       `json:"vhd,omitempty"`
	// contains filtered or unexported fields
}

func (*SOsDisk) CreateISnapshot

func (self *SOsDisk) CreateISnapshot(ctx context.Context, name, desc string) (cloudprovider.ICloudSnapshot, error)

func (*SOsDisk) Delete

func (self *SOsDisk) Delete(ctx context.Context) error

func (*SOsDisk) GetAccessPath

func (disk *SOsDisk) GetAccessPath() string

func (*SOsDisk) GetCacheMode

func (self *SOsDisk) GetCacheMode() string

func (*SOsDisk) GetDiskFormat

func (self *SOsDisk) GetDiskFormat() string

func (*SOsDisk) GetDiskSizeMB

func (self *SOsDisk) GetDiskSizeMB() int

func (*SOsDisk) GetDiskType

func (self *SOsDisk) GetDiskType() string

func (*SOsDisk) GetDriver

func (self *SOsDisk) GetDriver() string

func (*SOsDisk) GetFsFormat

func (self *SOsDisk) GetFsFormat() string

func (*SOsDisk) GetGlobalId

func (self *SOsDisk) GetGlobalId() string

func (*SOsDisk) GetISnapshots

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

func (*SOsDisk) GetIStorage

func (self *SOsDisk) GetIStorage() (cloudprovider.ICloudStorage, error)

func (*SOsDisk) GetId

func (self *SOsDisk) GetId() string

func (*SOsDisk) GetIsAutoDelete

func (self *SOsDisk) GetIsAutoDelete() bool

func (*SOsDisk) GetIsNonPersistent

func (self *SOsDisk) GetIsNonPersistent() bool

func (*SOsDisk) GetMountpoint

func (self *SOsDisk) GetMountpoint() string

func (*SOsDisk) GetName

func (self *SOsDisk) GetName() string

func (*SOsDisk) GetProjectId

func (self *SOsDisk) GetProjectId() string

func (*SOsDisk) GetStatus

func (self *SOsDisk) GetStatus() string

func (*SOsDisk) GetTemplateId

func (self *SOsDisk) GetTemplateId() string

func (*SOsDisk) Rebuild

func (self *SOsDisk) Rebuild(ctx context.Context) error

func (*SOsDisk) Reset

func (self *SOsDisk) Reset(ctx context.Context, snapshotId string) (string, error)

func (*SOsDisk) Resize

func (self *SOsDisk) Resize(ctx context.Context, sizeMb int64) error

type SOsDiskImage

type SOsDiskImage struct {
	OperatingSystem string `json:"operatingSystem"`
	SizeInGb        int    `json:"sizeInGb"`
}

type SPermission

type SPermission struct {
	Actions        []string
	NotActions     []string
	DataActions    []string
	NotDataActions []string
}

type SPolicyAssignment

type SPolicyAssignment struct {
	Id         string
	Properties PolicyAssignmentProperties
	// contains filtered or unexported fields
}

func (*SPolicyAssignment) GetCategory

func (assignment *SPolicyAssignment) GetCategory() string

func (*SPolicyAssignment) GetCondition

func (assignment *SPolicyAssignment) GetCondition() string

func (*SPolicyAssignment) GetGlobalId

func (assignment *SPolicyAssignment) GetGlobalId() string

func (*SPolicyAssignment) GetName

func (assignment *SPolicyAssignment) GetName() string

func (*SPolicyAssignment) GetParameters

func (assignment *SPolicyAssignment) GetParameters() *jsonutils.JSONDict

type SPolicyDefinition

type SPolicyDefinition struct {
	Properties SPolicyDefinitonProperties
	Id         string
	Name       string
	Type       string
}

type SPolicyDefinitonPropertieMetadata

type SPolicyDefinitonPropertieMetadata struct {
	Version  string
	Category string
}

type SPolicyDefinitonPropertieParameter

type SPolicyDefinitonPropertieParameter struct {
	Type          string
	Metadata      SPolicyDefinitonPropertieParameterMetadata
	AllowedValues []string
	DefaultValue  []string
}

type SPolicyDefinitonPropertieParameterMetadata

type SPolicyDefinitonPropertieParameterMetadata struct {
	DisplayName       string
	Description       string
	StrongType        string
	AssignPermissions bool
}

type SPolicyDefinitonPropertieRule

type SPolicyDefinitonPropertieRule struct {
	If   jsonutils.JSONObject
	Then SPolicyDefinitonPropertieRuleThen
}

type SPolicyDefinitonPropertieRuleInfo

type SPolicyDefinitonPropertieRuleInfo jsonutils.JSONDict

type SPolicyDefinitonPropertieRuleThen

type SPolicyDefinitonPropertieRuleThen struct {
	Effect string
}

type SPolicyDefinitonProperties

type SPolicyDefinitonProperties struct {
	DisplayName string
	PolicyType  string
	Mode        string
	Description string
	Metadata    SPolicyDefinitonPropertieMetadata
	Parameters  map[string]SPolicyDefinitonPropertieParameter
	PolicyRule  SPolicyDefinitonPropertieRule
}

type SPrivateendpointconnection

type SPrivateendpointconnection struct {
	ID         string `json:"id"`
	Properties struct {
		Provisioningstate string `json:"provisioningState"`
		Privateendpoint   struct {
			ID string `json:"id"`
		} `json:"privateEndpoint"`
		Privatelinkserviceconnectionstate struct {
			Status          string `json:"status"`
			Description     string `json:"description"`
			Actionsrequired string `json:"actionsRequired"`
		} `json:"privateLinkServiceConnectionState"`
	} `json:"properties"`
}

type SPublisherDriver

type SPublisherDriver struct {
	OsType       string
	GetOffers    func() []string
	GetSkus      func(offer string) []string
	GetOsDist    func(offser, sku, version string) string
	GetOsVersion func(offser, sku, version string) string
	GetOsArch    func(offser, sku, version string) string
	GetName      func(offser, sku, version string) string
}

type SRecurrence

type SRecurrence struct {
	Frequency string
	Schedule  SRecurrentSchedule
}

type SRecurrentSchedule

type SRecurrentSchedule struct {
	Days     []string
	Hours    []int
	Minutes  []int
	TimeZone string
}

type SRedisAcl

type SRedisAcl struct {
	multicloud.SResourceBase
	AzureTags

	ID         string `json:"id"`
	Name       string `json:"name"`
	Type       string `json:"type"`
	Properties struct {
		Startip string `json:"startIP"`
		Endip   string `json:"endIP"`
	} `json:"properties"`
	// contains filtered or unexported fields
}

func (*SRedisAcl) Delete

func (self *SRedisAcl) Delete() error

func (*SRedisAcl) GetGlobalId

func (self *SRedisAcl) GetGlobalId() string

func (*SRedisAcl) GetId

func (self *SRedisAcl) GetId() string

func (*SRedisAcl) GetIpList

func (self *SRedisAcl) GetIpList() string

func (*SRedisAcl) GetName

func (self *SRedisAcl) GetName() string

func (*SRedisAcl) GetStatus

func (self *SRedisAcl) GetStatus() string

func (*SRedisAcl) Refresh

func (self *SRedisAcl) Refresh() error

func (*SRedisAcl) UpdateAcl

func (self *SRedisAcl) UpdateAcl(securityIps string) error

type SRedisCache

type SRedisCache struct {
	multicloud.SElasticcacheBase
	AzureTags

	ID         string `json:"id"`
	Location   string `json:"location"`
	Name       string `json:"name"`
	Type       string `json:"type"`
	Properties struct {
		Provisioningstate string `json:"provisioningState"`
		Redisversion      string `json:"redisVersion"`
		Sku               struct {
			Name     string `json:"name"`
			Family   string `json:"family"`
			Capacity int    `json:"capacity"`
		} `json:"sku"`
		Enablenonsslport bool `json:"enableNonSslPort"`
		Instances        []struct {
			Sslport  int  `json:"sslPort"`
			Shardid  int  `json:"shardId"`
			Ismaster bool `json:"isMaster"`
		} `json:"instances"`
		Publicnetworkaccess string `json:"publicNetworkAccess"`
		Redisconfiguration  struct {
			Maxclients                     string `json:"maxclients"`
			MaxmemoryReserved              string `json:"maxmemory-reserved"`
			MaxfragmentationmemoryReserved string `json:"maxfragmentationmemory-reserved"`
			MaxmemoryDelta                 string `json:"maxmemory-delta"`
		} `json:"redisConfiguration"`
		Accesskeys    interface{}   `json:"accessKeys"`
		Hostname      string        `json:"hostName"`
		Port          int           `json:"port"`
		Sslport       int           `json:"sslPort"`
		Shardcount    int           `json:"shardCount"`
		SubnetId      string        `json:"subnetId"`
		StaticIP      string        `json:"staticIP"`
		Linkedservers []interface{} `json:"linkedServers"`
	} `json:"properties"`
	// contains filtered or unexported fields
}

func (*SRedisCache) AllocatePublicConnection

func (self *SRedisCache) AllocatePublicConnection(port int) (string, error)

func (*SRedisCache) ChangeInstanceSpec

func (self *SRedisCache) ChangeInstanceSpec(spec string) error

func (*SRedisCache) CreateAcl

func (self *SRedisCache) CreateAcl(aclName, securityIps string) (cloudprovider.ICloudElasticcacheAcl, error)

func (*SRedisCache) CreateBackup

func (self *SRedisCache) CreateBackup(desc string) (cloudprovider.ICloudElasticcacheBackup, error)

func (*SRedisCache) Delete

func (self *SRedisCache) Delete() error

func (*SRedisCache) FlushInstance

func (*SRedisCache) GetArchType

func (self *SRedisCache) GetArchType() string

func (*SRedisCache) GetAuthMode

func (self *SRedisCache) GetAuthMode() string

func (*SRedisCache) GetCapacityMB

func (self *SRedisCache) GetCapacityMB() int

func (*SRedisCache) GetEngine

func (self *SRedisCache) GetEngine() string

func (*SRedisCache) GetEngineVersion

func (self *SRedisCache) GetEngineVersion() string

func (*SRedisCache) GetGlobalId

func (self *SRedisCache) GetGlobalId() string

func (*SRedisCache) GetICloudElasticcacheAccount

func (self *SRedisCache) GetICloudElasticcacheAccount(accountId string) (cloudprovider.ICloudElasticcacheAccount, error)

func (*SRedisCache) GetICloudElasticcacheAccounts

func (self *SRedisCache) GetICloudElasticcacheAccounts() ([]cloudprovider.ICloudElasticcacheAccount, error)

func (*SRedisCache) GetICloudElasticcacheAcl

func (self *SRedisCache) GetICloudElasticcacheAcl(aclId string) (cloudprovider.ICloudElasticcacheAcl, error)

func (*SRedisCache) GetICloudElasticcacheAcls

func (self *SRedisCache) GetICloudElasticcacheAcls() ([]cloudprovider.ICloudElasticcacheAcl, error)

func (*SRedisCache) GetICloudElasticcacheBackup

func (self *SRedisCache) GetICloudElasticcacheBackup(backupId string) (cloudprovider.ICloudElasticcacheBackup, error)

func (*SRedisCache) GetICloudElasticcacheBackups

func (self *SRedisCache) GetICloudElasticcacheBackups() ([]cloudprovider.ICloudElasticcacheBackup, error)

func (*SRedisCache) GetICloudElasticcacheParameters

func (self *SRedisCache) GetICloudElasticcacheParameters() ([]cloudprovider.ICloudElasticcacheParameter, error)

func (*SRedisCache) GetId

func (self *SRedisCache) GetId() string

func (*SRedisCache) GetInstanceType

func (self *SRedisCache) GetInstanceType() string

func (*SRedisCache) GetMaintainEndTime

func (self *SRedisCache) GetMaintainEndTime() string

func (*SRedisCache) GetMaintainStartTime

func (self *SRedisCache) GetMaintainStartTime() string

func (*SRedisCache) GetName

func (self *SRedisCache) GetName() string

func (*SRedisCache) GetNetworkId

func (self *SRedisCache) GetNetworkId() string

func (*SRedisCache) GetNetworkType

func (self *SRedisCache) GetNetworkType() string

func (*SRedisCache) GetNodeType

func (self *SRedisCache) GetNodeType() string

func (*SRedisCache) GetPrivateConnectPort

func (self *SRedisCache) GetPrivateConnectPort() int

func (*SRedisCache) GetPrivateDNS

func (self *SRedisCache) GetPrivateDNS() string

func (*SRedisCache) GetPrivateIpAddr

func (self *SRedisCache) GetPrivateIpAddr() string

func (*SRedisCache) GetProjectId

func (self *SRedisCache) GetProjectId() string

func (*SRedisCache) GetPublicConnectPort

func (self *SRedisCache) GetPublicConnectPort() int

func (*SRedisCache) GetPublicDNS

func (self *SRedisCache) GetPublicDNS() string

func (*SRedisCache) GetPublicIpAddr

func (self *SRedisCache) GetPublicIpAddr() string

func (*SRedisCache) GetSecurityGroupIds

func (self *SRedisCache) GetSecurityGroupIds() ([]string, error)

func (*SRedisCache) GetStatus

func (self *SRedisCache) GetStatus() string

func (*SRedisCache) GetVpcId

func (self *SRedisCache) GetVpcId() string

func (*SRedisCache) GetZoneId

func (self *SRedisCache) GetZoneId() string

func (*SRedisCache) ReleasePublicConnection

func (self *SRedisCache) ReleasePublicConnection() error

func (*SRedisCache) Restart

func (self *SRedisCache) Restart() error

func (*SRedisCache) SetMaintainTime

func (self *SRedisCache) SetMaintainTime(start, end string) error

func (*SRedisCache) UpdateAuthMode

func (self *SRedisCache) UpdateAuthMode(noPasswordAccess bool, password string) error

func (*SRedisCache) UpdateBackupPolicy

func (*SRedisCache) UpdateInstanceParameters

func (self *SRedisCache) UpdateInstanceParameters(config jsonutils.JSONObject) error

func (*SRedisCache) UpdateSecurityGroups

func (self *SRedisCache) UpdateSecurityGroups(secgroupIds []string) error

type SRegion

type SRegion struct {
	multicloud.SRegion

	ID          string
	Name        string
	DisplayName string
	Latitude    string
	Longitude   string
	// contains filtered or unexported fields
}

func (*SRegion) AllocateEIP

func (self *SRegion) AllocateEIP(name, projectId string) (*SEipAddress, 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) ChangeConfig

func (self *SRegion) ChangeConfig(instanceId, instanceType string) error

func (*SRegion) ChangeVMConfig

func (region *SRegion) ChangeVMConfig(ctx context.Context, instanceId string, ncpu int, vmem int) error

func (*SRegion) CreateAppWafInstance

func (self *SRegion) CreateAppWafInstance(name string, action *cloudprovider.DefaultAction) (*SAppGatewayWaf, error)

func (*SRegion) CreateDisk

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

func (*SRegion) CreateEIP

func (region *SRegion) CreateEIP(eip *cloudprovider.SEip) (cloudprovider.ICloudEIP, error)

func (*SRegion) CreateIBucket

func (region *SRegion) CreateIBucket(name string, storageClassStr string, acl string) error

func (*SRegion) CreateICloudWafInstance

func (self *SRegion) CreateICloudWafInstance(opts *cloudprovider.WafCreateOptions) (cloudprovider.ICloudWafInstance, error)

func (*SRegion) CreateILoadBalancer

func (region *SRegion) CreateILoadBalancer(loadbalancer *cloudprovider.SLoadbalancerCreateOptions) (cloudprovider.ICloudLoadbalancer, error)

func (*SRegion) CreateISecurityGroup

func (*SRegion) CreateIVpc

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, osType string, cpu int, memMb int, sysDiskSizeGB int, storageType string, dataDiskSizesGB []int, nicId string, passwd string, publicKey string) (*SInstance, error)

func (*SRegion) CreateNetwork

func (self *SRegion) CreateNetwork(vpcId, name string, cidr string, desc string) (*SNetwork, error)

func (*SRegion) CreateNetworkInterface

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

func (*SRegion) CreateResourceGroup

func (self *SRegion) CreateResourceGroup(groupName string) (jsonutils.JSONObject, error)

func (*SRegion) CreateSecurityGroup

func (region *SRegion) CreateSecurityGroup(opts *cloudprovider.SecurityGroupCreateInput) (*SSecurityGroup, error)

func (*SRegion) CreateSecurityGroupRule

func (self *SRegion) CreateSecurityGroupRule(groupId string, opts *cloudprovider.SecurityGroupRuleCreateOptions) (*SecurityRules, error)

func (*SRegion) CreateSnapshot

func (self *SRegion) CreateSnapshot(diskId, name, 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) Delete

func (self *SRegion) Delete(resource string) error

func (*SRegion) DeleteDisk

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

func (*SRegion) DeleteIBucket

func (region *SRegion) DeleteIBucket(name string) error

func (*SRegion) DeleteImage

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

func (*SRegion) DeleteNetworkInterface

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

func (*SRegion) DeleteResourceGroup

func (self *SRegion) DeleteResourceGroup(groupName 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) DeleteVpc

func (self *SRegion) DeleteVpc(vpcId string) error

func (*SRegion) DeployVM

func (region *SRegion) DeployVM(ctx context.Context, instanceId, osType string, opts *cloudprovider.SInstanceDeployOptions) error

func (*SRegion) DetachDisk

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

func (*SRegion) DissociateEip

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

func (*SRegion) GetAppGatewayWaf

func (self *SRegion) GetAppGatewayWaf(id string) (*SAppGatewayWaf, error)

func (*SRegion) GetAppServicePlan

func (r *SRegion) GetAppServicePlan(planId string) (*SAppServicePlan, error)

func (*SRegion) GetAppServicePlanWithCache

func (r *SRegion) GetAppServicePlanWithCache(id string) (*SAppServicePlan, error)

func (*SRegion) GetAppServicePlans

func (r *SRegion) GetAppServicePlans() ([]SAppServicePlan, error)

func (*SRegion) GetAppServiceSkus

func (r *SRegion) GetAppServiceSkus() ([]SSkuInfos, error)

func (*SRegion) GetAppSite

func (r *SRegion) GetAppSite(siteId string) (*SAppSite, error)

func (*SRegion) GetAppSites

func (r *SRegion) GetAppSites() ([]SAppSite, error)

func (*SRegion) GetApplicationGateway

func (self *SRegion) GetApplicationGateway(id string) (*SApplicationGateway, error)

func (*SRegion) GetAutoscaleSettingResources

func (r *SRegion) GetAutoscaleSettingResources() ([]SAutoscaleSettingResource, error)

func (*SRegion) GetCapabilities

func (region *SRegion) GetCapabilities() []string

func (*SRegion) GetClassicStorageAccount

func (self *SRegion) GetClassicStorageAccount(id string) (*SStorageAccount, error)

func (*SRegion) GetClient

func (self *SRegion) GetClient() *SAzureClient

func (*SRegion) GetCloudEnv

func (self *SRegion) GetCloudEnv() string

func (*SRegion) GetDBInstanceById

func (self *SRegion) GetDBInstanceById(instanceId string) (*SDBInstance, error)

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) GetEnterpriseRedisCache

func (self *SRegion) GetEnterpriseRedisCache(id string) (*SEnterpriseRedisCache, error)

func (*SRegion) GetEnterpriseRedisCaches

func (self *SRegion) GetEnterpriseRedisCaches() ([]SEnterpriseRedisCache, error)

func (*SRegion) GetEvents

func (region *SRegion) GetEvents(start time.Time, end time.Time) ([]SEvent, error)

func (*SRegion) GetGeographicInfo

func (self *SRegion) GetGeographicInfo() cloudprovider.SGeographicInfo

func (*SRegion) GetGlobalId

func (self *SRegion) GetGlobalId() string

func (*SRegion) GetI18n

func (self *SRegion) GetI18n() cloudprovider.SModelI18nTable

func (*SRegion) GetIBucketById

func (region *SRegion) GetIBucketById(name string) (cloudprovider.ICloudBucket, error)

func (*SRegion) GetIBucketByName

func (region *SRegion) GetIBucketByName(name string) (cloudprovider.ICloudBucket, error)

func (*SRegion) GetIBuckets

func (region *SRegion) GetIBuckets() ([]cloudprovider.ICloudBucket, error)

func (*SRegion) GetICloudAppById

func (r *SRegion) GetICloudAppById(id string) (cloudprovider.ICloudApp, error)

func (*SRegion) GetICloudApps

func (r *SRegion) GetICloudApps() ([]cloudprovider.ICloudApp, error)

func (*SRegion) GetICloudEvents

func (region *SRegion) GetICloudEvents(start time.Time, end time.Time, withReadEvent bool) ([]cloudprovider.ICloudEvent, error)

func (*SRegion) GetICloudKubeClusterById

func (self *SRegion) GetICloudKubeClusterById(id string) (cloudprovider.ICloudKubeCluster, error)

func (*SRegion) GetICloudKubeClusters

func (self *SRegion) GetICloudKubeClusters() ([]cloudprovider.ICloudKubeCluster, error)

func (*SRegion) GetICloudQuotas

func (region *SRegion) GetICloudQuotas() ([]cloudprovider.ICloudQuota, error)

func (*SRegion) GetICloudWafInstanceById

func (self *SRegion) GetICloudWafInstanceById(id string) (cloudprovider.ICloudWafInstance, error)

func (*SRegion) GetICloudWafInstances

func (self *SRegion) GetICloudWafInstances() ([]cloudprovider.ICloudWafInstance, error)

func (*SRegion) GetIDBInstanceById

func (self *SRegion) GetIDBInstanceById(instanceId string) (cloudprovider.ICloudDBInstance, error)

func (*SRegion) GetIDBInstances

func (self *SRegion) GetIDBInstances() ([]cloudprovider.ICloudDBInstance, error)

func (*SRegion) GetIDiskById

func (self *SRegion) GetIDiskById(id string) (cloudprovider.ICloudDisk, error)

func (*SRegion) GetIEipById

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

func (*SRegion) GetIEips

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

func (*SRegion) GetIElasticcacheById

func (self *SRegion) GetIElasticcacheById(id string) (cloudprovider.ICloudElasticcache, error)

func (*SRegion) GetIElasticcaches

func (self *SRegion) GetIElasticcaches() ([]cloudprovider.ICloudElasticcache, error)

func (*SRegion) GetIHostById

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

func (*SRegion) GetIHosts

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

func (*SRegion) GetILoadBalancerAclById

func (region *SRegion) GetILoadBalancerAclById(aclId string) (cloudprovider.ICloudLoadbalancerAcl, error)

func (*SRegion) GetILoadBalancerAcls

func (region *SRegion) GetILoadBalancerAcls() ([]cloudprovider.ICloudLoadbalancerAcl, error)

func (*SRegion) GetILoadBalancerById

func (region *SRegion) GetILoadBalancerById(loadbalancerId string) (cloudprovider.ICloudLoadbalancer, error)

func (*SRegion) GetILoadBalancerCertificateById

func (region *SRegion) GetILoadBalancerCertificateById(certId string) (cloudprovider.ICloudLoadbalancerCertificate, error)

func (*SRegion) GetILoadBalancerCertificates

func (region *SRegion) GetILoadBalancerCertificates() ([]cloudprovider.ICloudLoadbalancerCertificate, error)

func (*SRegion) GetILoadBalancers

func (region *SRegion) GetILoadBalancers() ([]cloudprovider.ICloudLoadbalancer, error)

func (*SRegion) GetINetworkInterfaces

func (self *SRegion) GetINetworkInterfaces() ([]cloudprovider.ICloudNetworkInterface, error)

func (*SRegion) GetISecurityGroupById

func (region *SRegion) GetISecurityGroupById(secgroupId string) (cloudprovider.ICloudSecurityGroup, error)

func (*SRegion) GetISecurityGroups

func (self *SRegion) GetISecurityGroups() ([]cloudprovider.ICloudSecurityGroup, 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) GetIStoragecaches

func (region *SRegion) GetIStoragecaches() ([]cloudprovider.ICloudStoragecache, error)

func (*SRegion) GetIStorages

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

func (*SRegion) GetIVMById

func (self *SRegion) GetIVMById(id string) (cloudprovider.ICloudVM, error)

func (*SRegion) GetIVMs

func (region *SRegion) GetIVMs() ([]cloudprovider.ICloudVM, 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) GetImageById

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

func (*SRegion) GetImagePublishers

func (region *SRegion) GetImagePublishers(filter []string) ([]string, error)

func (*SRegion) GetImageStatus

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

func (*SRegion) GetImages

func (self *SRegion) GetImages(imageType cloudprovider.TImageType) ([]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) GetKubeCluster

func (self *SRegion) GetKubeCluster(id string) (*SKubeCluster, error)

func (*SRegion) GetKubeClusters

func (self *SRegion) GetKubeClusters() ([]SKubeCluster, error)

func (*SRegion) GetKubeConfig

func (self *SRegion) GetKubeConfig(id string) (*cloudprovider.SKubeconfig, error)

func (*SRegion) GetManagedSQLServer

func (self *SRegion) GetManagedSQLServer(id string) (*SManagedSQLServer, error)

func (*SRegion) GetManagedSQLServerDatabases

func (self *SRegion) GetManagedSQLServerDatabases(id string) ([]SManagedSQLServerDatabase, error)

func (*SRegion) GetName

func (self *SRegion) GetName() string

func (*SRegion) GetNetwork

func (self *SRegion) GetNetwork(networkId string) (*SNetwork, error)

func (*SRegion) GetNetworkInterface

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

func (*SRegion) GetNetworkInterfaces

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

func (*SRegion) GetOfferedImageIDs

func (self *SRegion) GetOfferedImageIDs(publishersFilter []string, offersFilter []string, skusFilter []string, verFilter []string, latestVer bool) (map[string]SAzureImageResource, error)

func (*SRegion) GetProvider

func (self *SRegion) GetProvider() string

func (*SRegion) GetRedisAcl

func (self *SRegion) GetRedisAcl(id string) (*SRedisAcl, error)

func (*SRegion) GetRedisAcls

func (self *SRegion) GetRedisAcls(id string) ([]SRedisAcl, error)

func (*SRegion) GetRedisCache

func (self *SRegion) GetRedisCache(id string) (*SRedisCache, error)

func (*SRegion) GetRedisCaches

func (self *SRegion) GetRedisCaches() ([]SRedisCache, error)

func (*SRegion) GetResourceGroupDetail

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

func (*SRegion) GetSQLServer

func (self *SRegion) GetSQLServer(id string) (*SSQLServer, error)

func (*SRegion) GetSQLServerDatabases

func (self *SRegion) GetSQLServerDatabases(id string) ([]SSQLServerDatabase, error)

func (*SRegion) GetSecurityGroupDetails

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

func (*SRegion) GetSnapshot

func (region *SRegion) GetSnapshot(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) GetStorageAccountKey

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

func (*SRegion) GetStorageAccountSkus

func (self *SRegion) GetStorageAccountSkus() ([]SStorageAccountSku, error)

func (*SRegion) GetUniqStorageAccountName

func (self *SRegion) GetUniqStorageAccountName() (string, error)

func (*SRegion) GetUsage

func (region *SRegion) GetUsage(resourceType string) ([]SUsage, 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) IBucketExist

func (region *SRegion) IBucketExist(name string) (bool, error)

func (*SRegion) IsEmulated

func (self *SRegion) IsEmulated() bool

func (*SRegion) ListAppGateways

func (self *SRegion) ListAppGateways() ([]SApplicationGateway, error)

func (*SRegion) ListAppWafManagedRuleGroup

func (self *SRegion) ListAppWafManagedRuleGroup() ([]SAppWafRuleGroup, error)

func (*SRegion) ListAppWafs

func (self *SRegion) ListAppWafs() ([]SAppGatewayWaf, error)

func (*SRegion) ListClassicStorageAccounts

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

func (*SRegion) ListDBInstance

func (self *SRegion) ListDBInstance(instanceType string) ([]SDBInstance, error)

func (*SRegion) ListDBInstanceConfiguration

func (self *SRegion) ListDBInstanceConfiguration(Id string) ([]SDBInstanceConfiguration, error)

func (*SRegion) ListDBInstanceReplica

func (self *SRegion) ListDBInstanceReplica(Id string) ([]SDBInstance, error)

func (*SRegion) ListDBInstanceVirtualNetworkRule

func (self *SRegion) ListDBInstanceVirtualNetworkRule(Id string) ([]SDBInstanceVirtualNetworkRule, error)

func (*SRegion) ListFrontDoorWafs

func (self *SRegion) ListFrontDoorWafs(resGroup string) ([]SFrontDoorWaf, error)

func (*SRegion) ListManagedRuleGroups

func (self *SRegion) ListManagedRuleGroups() ([]SManagedRuleGroup, error)

func (*SRegion) ListManagedSQLServer

func (self *SRegion) ListManagedSQLServer() ([]SManagedSQLServer, error)

func (*SRegion) ListSDBInstanceDatabase

func (self *SRegion) ListSDBInstanceDatabase(Id string) ([]SDBInstanceDatabase, error)

func (*SRegion) ListSQLServer

func (self *SRegion) ListSQLServer() ([]SSQLServer, error)

func (*SRegion) ListSQLServerBackups

func (self *SRegion) ListSQLServerBackups(id, location string) ([]SSQLServerBackup, error)

func (*SRegion) ListSecgroups

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

func (*SRegion) ListSnapshots

func (region *SRegion) ListSnapshots() ([]SSnapshot, error)

func (*SRegion) ListStorageAccounts

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

func (*SRegion) ListVmSizes

func (self *SRegion) ListVmSizes() ([]SVMSize, error)

func (*SRegion) ListVpcs

func (self *SRegion) ListVpcs() ([]SVpc, error)

func (*SRegion) Refresh

func (self *SRegion) Refresh() error

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

func (*SRegion) ReplaceSystemDisk

func (region *SRegion) ReplaceSystemDisk(instance *SInstance, cpu int, memoryMb int, imageId, passwd, publicKey string, sysSizeGB int) (string, error)

func (*SRegion) ResizeDisk

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

func (*SRegion) SaveImage

func (self *SRegion) SaveImage(osType, diskId string, opts *cloudprovider.SaveImageOptions) (*SImage, error)

func (*SRegion) SetSecurityGroup

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

func (*SRegion) Show

func (self *SRegion) Show(resource string) (jsonutils.JSONObject, error)

func (*SRegion) StartVM

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

func (*SRegion) StopVM

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

func (*SRegion) UpdateResourceGroup

func (self *SRegion) UpdateResourceGroup(groupName string, newName string) error

not support update, resource group name is immutable???

type SRequestroutingrule

type SRequestroutingrule struct {
	Name       string `json:"name"`
	ID         string `json:"id"`
	Etag       string `json:"etag"`
	Properties struct {
		Provisioningstate string `json:"provisioningState"`
		Ruletype          string `json:"ruleType"`
		Httplistener      struct {
			ID string `json:"id"`
		} `json:"httpListener"`
		Backendaddresspool struct {
			ID string `json:"id"`
		} `json:"backendAddressPool"`
		Backendhttpsettings struct {
			ID string `json:"id"`
		} `json:"backendHttpSettings"`
	} `json:"properties"`
	Type string `json:"type"`
}

type SResourceGroup

type SResourceGroup struct {
	multicloud.SProjectBase
	AzureTags

	ID         string
	Name       string
	Location   string
	Properties GroupProperties
	ManagedBy  string
	// contains filtered or unexported fields
}

func (*SResourceGroup) GetAccountId

func (self *SResourceGroup) GetAccountId() string

func (*SResourceGroup) GetGlobalId

func (r *SResourceGroup) GetGlobalId() string

func (*SResourceGroup) GetId

func (r *SResourceGroup) GetId() string

func (*SResourceGroup) GetName

func (r *SResourceGroup) GetName() string

func (*SResourceGroup) GetStatus

func (r *SResourceGroup) GetStatus() string

type SResourceSku

type SResourceSku struct {
	Capabilities []SResourceSkuCapability
	Capacity     *SResourceSkuCapacity
	Family       string
	Kind         string
	LocationInfo []SResourceSkuLocationInfo
	Locations    []string
	Name         string
	ResourceType string
	Restrictions []SResourceSkuRestrictions
	Size         string
	Tier         string
}

type SResourceSkuCapability

type SResourceSkuCapability struct {
	Name  string
	Value string
}

type SResourceSkuCapacity

type SResourceSkuCapacity struct {
	Default   int
	Maximum   int
	Minimum   int
	ScaleType TResourceSkuCapacityScaleType
}

type SResourceSkuLocationInfo

type SResourceSkuLocationInfo struct {
	Location string
	Zones    []string
}

type SResourceSkuRestrictionInfo

type SResourceSkuRestrictionInfo struct {
	Locations []string
	Zones     []string
}

type SResourceSkuRestrictions

type SResourceSkuRestrictions struct {
	ReasonCode      TResourceSkuRestrictionsReasonCode
	RestrictionInfo SResourceSkuRestrictionInfo
	Type            TResourceSkuRestrictionsType
	Values          []string
}

type SResourceSkusResult

type SResourceSkusResult struct {
	NextLink string
	Value    []SResourceSku
}

type SRoleProperties

type SRoleProperties struct {
	RoleName         string
	Type             string
	Description      string
	AssignableScopes []string
	Permissions      []SPermission
}

type SRuleGroup

type SRuleGroup struct {
	Rules []SWafRule
	// contains filtered or unexported fields
}

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 SSLCertificate

type SSLCertificate struct {
	Name       string                   `json:"name"`
	ID         string                   `json:"id"`
	Properties SSLCertificateProperties `json:"properties"`
}

type SSLCertificateProperties

type SSLCertificateProperties struct {
	ProvisioningState string `json:"provisioningState"`
	PublicCertData    string `json:"public_cert_data"`
	Data              string `json:"data"`
	Password          string `json:"password"`
}

type SSQLServer

type SSQLServer struct {
	multicloud.SDBInstanceBase
	AzureTags

	Kind       string `json:"kind"`
	Properties struct {
		Administratorlogin         string                       `json:"administratorLogin"`
		Version                    string                       `json:"version"`
		State                      string                       `json:"state"`
		Fullyqualifieddomainname   string                       `json:"fullyQualifiedDomainName"`
		Privateendpointconnections []SPrivateendpointconnection `json:"privateEndpointConnections"`
		Publicnetworkaccess        string                       `json:"publicNetworkAccess"`
	} `json:"properties"`
	Location string `json:"location"`
	ID       string `json:"id"`
	Name     string `json:"name"`
	Type     string `json:"type"`
	// contains filtered or unexported fields
}

func (*SSQLServer) GetCategory

func (self *SSQLServer) GetCategory() string

func (*SSQLServer) GetConnectionStr

func (self *SSQLServer) GetConnectionStr() string

func (*SSQLServer) GetDTU

func (self *SSQLServer) GetDTU() int

func (*SSQLServer) GetDiskSizeGB

func (self *SSQLServer) GetDiskSizeGB() int

func (*SSQLServer) GetEngine

func (self *SSQLServer) GetEngine() string

func (*SSQLServer) GetEngineVersion

func (self *SSQLServer) GetEngineVersion() string

func (*SSQLServer) GetGlobalId

func (self *SSQLServer) GetGlobalId() string

func (*SSQLServer) GetIDBInstanceAccounts

func (self *SSQLServer) GetIDBInstanceAccounts() ([]cloudprovider.ICloudDBInstanceAccount, error)

func (*SSQLServer) GetIDBInstanceBackups

func (self *SSQLServer) GetIDBInstanceBackups() ([]cloudprovider.ICloudDBInstanceBackup, error)

func (*SSQLServer) GetIDBInstanceDatabases

func (self *SSQLServer) GetIDBInstanceDatabases() ([]cloudprovider.ICloudDBInstanceDatabase, error)

func (*SSQLServer) GetIVpcId

func (self *SSQLServer) GetIVpcId() string

func (*SSQLServer) GetId

func (self *SSQLServer) GetId() string

func (*SSQLServer) GetInstanceType

func (self *SSQLServer) GetInstanceType() string

func (*SSQLServer) GetMaintainTime

func (self *SSQLServer) GetMaintainTime() string

func (*SSQLServer) GetName

func (self *SSQLServer) GetName() string

func (*SSQLServer) GetPort

func (self *SSQLServer) GetPort() int

func (*SSQLServer) GetProjectId

func (self *SSQLServer) GetProjectId() string

func (*SSQLServer) GetStatus

func (self *SSQLServer) GetStatus() string

func (*SSQLServer) GetStorageType

func (self *SSQLServer) GetStorageType() string

func (*SSQLServer) GetSysTags

func (self *SSQLServer) GetSysTags() map[string]string

func (*SSQLServer) GetVcpuCount

func (self *SSQLServer) GetVcpuCount() int

func (*SSQLServer) GetVmemSizeMB

func (self *SSQLServer) GetVmemSizeMB() int

func (*SSQLServer) GetZone1Id

func (self *SSQLServer) GetZone1Id() string

func (*SSQLServer) GetZone2Id

func (self *SSQLServer) GetZone2Id() string

func (*SSQLServer) GetZone3Id

func (self *SSQLServer) GetZone3Id() string

type SSQLServerAccount

type SSQLServerAccount struct {
	multicloud.SDBInstanceAccountBase

	Name string
	// contains filtered or unexported fields
}

func (*SSQLServerAccount) GetName

func (self *SSQLServerAccount) GetName() string

type SSQLServerBackup

type SSQLServerBackup struct {
	multicloud.SDBInstanceBackupBase
	AzureTags

	ID         string `json:"id"`
	Name       string `json:"name"`
	Type       string `json:"type"`
	Properties struct {
		Servername              string    `json:"serverName"`
		Servercreatetime        time.Time `json:"serverCreateTime"`
		Databasename            string    `json:"databaseName"`
		Databasedeletiontime    string    `json:"databaseDeletionTime"`
		Backuptime              time.Time `json:"backupTime"`
		Backupstorageredundancy string    `json:"backupStorageRedundancy"`
	} `json:"properties"`
	// contains filtered or unexported fields
}

func (*SSQLServerBackup) GetBackupMethod

func (self *SSQLServerBackup) GetBackupMethod() cloudprovider.TBackupMethod

func (*SSQLServerBackup) GetBackupMode

func (self *SSQLServerBackup) GetBackupMode() string

func (*SSQLServerBackup) GetBackupSizeMb

func (self *SSQLServerBackup) GetBackupSizeMb() int

func (*SSQLServerBackup) GetDBInstanceId

func (self *SSQLServerBackup) GetDBInstanceId() string

func (*SSQLServerBackup) GetDBNames

func (self *SSQLServerBackup) GetDBNames() string

func (*SSQLServerBackup) GetEndTime

func (self *SSQLServerBackup) GetEndTime() time.Time

func (*SSQLServerBackup) GetEngine

func (self *SSQLServerBackup) GetEngine() string

func (*SSQLServerBackup) GetEngineVersion

func (self *SSQLServerBackup) GetEngineVersion() string

func (*SSQLServerBackup) GetGlobalId

func (self *SSQLServerBackup) GetGlobalId() string

func (*SSQLServerBackup) GetId

func (self *SSQLServerBackup) GetId() string

func (*SSQLServerBackup) GetName

func (self *SSQLServerBackup) GetName() string

func (*SSQLServerBackup) GetStartTime

func (self *SSQLServerBackup) GetStartTime() time.Time

func (*SSQLServerBackup) GetStatus

func (self *SSQLServerBackup) GetStatus() string

type SSQLServerDatabase

type SSQLServerDatabase struct {
	multicloud.SDBInstanceDatabaseBase
	AzureTags

	Sku struct {
		Name     string `json:"name"`
		Tier     string `json:"tier"`
		Capacity int    `json:"capacity"`
	} `json:"sku"`
	Kind       string `json:"kind"`
	Properties struct {
		Collation                     string    `json:"collation"`
		Maxsizebytes                  int64     `json:"maxSizeBytes"`
		Status                        string    `json:"status"`
		Databaseid                    string    `json:"databaseId"`
		Creationdate                  string    `json:"creationDate"`
		Currentserviceobjectivename   string    `json:"currentServiceObjectiveName"`
		Requestedserviceobjectivename string    `json:"requestedServiceObjectiveName"`
		Defaultsecondarylocation      string    `json:"defaultSecondaryLocation"`
		Catalogcollation              string    `json:"catalogCollation"`
		Licensetype                   string    `json:"licenseType"`
		Maxlogsizebytes               int       `json:"maxLogSizeBytes"`
		Storageaccounttype            string    `json:"storageAccountType"`
		Zoneredundant                 bool      `json:"zoneRedundant"`
		Readscale                     string    `json:"readScale"`
		Earliestrestoredate           time.Time `json:"earliestRestoreDate"`
		Currentsku                    struct {
			Name     string `json:"name"`
			Tier     string `json:"tier"`
			Capacity int    `json:"capacity"`
			Family   string `json:"family"`
		} `json:"currentSku"`
	} `json:"properties"`
	Location string `json:"location"`
	ID       string `json:"id"`
	Name     string `json:"name"`
	Type     string `json:"type"`
	// contains filtered or unexported fields
}

func (*SSQLServerDatabase) GetCharacterSet

func (self *SSQLServerDatabase) GetCharacterSet() string

func (*SSQLServerDatabase) GetDTU

func (self *SSQLServerDatabase) GetDTU() int

func (*SSQLServerDatabase) GetDiskSizeMb

func (self *SSQLServerDatabase) GetDiskSizeMb() int

func (*SSQLServerDatabase) GetGlobalId

func (self *SSQLServerDatabase) GetGlobalId() string

func (*SSQLServerDatabase) GetId

func (self *SSQLServerDatabase) GetId() string

func (*SSQLServerDatabase) GetName

func (self *SSQLServerDatabase) GetName() string

func (*SSQLServerDatabase) GetStatus

func (self *SSQLServerDatabase) GetStatus() string

func (*SSQLServerDatabase) GetVcpuCount

func (self *SSQLServerDatabase) GetVcpuCount() int

func (*SSQLServerDatabase) GetVmemSizeMb

func (self *SSQLServerDatabase) GetVmemSizeMb() int

type SScaleAction

type SScaleAction struct {
	Cooldown  string
	Direction string
	Type      string
	Value     string
}

type SScaleCapacity

type SScaleCapacity struct {
	Default string
	Maximum string
	Minimum string
}

可以在此配置文件期间使用的实例数。

type SScaleRule

type SScaleRule struct {
	MetricTrigger SMetricTrigger
	ScaleAction   SScaleAction
}

为缩放操作提供触发器和参数的规则。

type SScaleRuleMetricDimension

type SScaleRuleMetricDimension struct {
	DimensionName string
	Operator      string
	Values        []string
}

type SScaleRuleMetricDimensionOperationType

type SScaleRuleMetricDimensionOperationType struct {
	Equals    string
	NotEquals string
}

维度运算符。 仅支持"Equals"和"NotEquals"。 "Equals"等于任何值。 "NotEquals"不等于所有值

type SSecurityGroup

type SSecurityGroup struct {
	multicloud.SSecurityGroup
	AzureTags

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

func (*SSecurityGroup) Delete

func (self *SSecurityGroup) Delete() error

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) GetName

func (self *SSecurityGroup) GetName() string

func (*SSecurityGroup) GetProjectId

func (self *SSecurityGroup) GetProjectId() string

func (*SSecurityGroup) GetRules

func (self *SSecurityGroup) GetRules() ([]cloudprovider.ISecurityGroupRule, error)

func (*SSecurityGroup) GetStatus

func (self *SSecurityGroup) GetStatus() string

func (*SSecurityGroup) GetVpcId

func (self *SSecurityGroup) GetVpcId() string

func (*SSecurityGroup) Refresh

func (self *SSecurityGroup) Refresh() error

type SServerFarmSku

type SServerFarmSku struct {
	ResourceType string
	Sku          SSkuSpec
	Capacity     SSkuCapacity
}

type SService

type SService struct {
	ID                string         `json:"id,omitempty"`
	Namespace         string         `json:"namespace,omitempty"`
	RegistrationState string         `json:"registrationState,omitempty"`
	ResourceTypes     []ResourceType `json:"resourceTypes,omitempty"`
}

type SServicePrincipal

type SServicePrincipal struct {
	AppId    string
	ObjectId string
}

type SServices

type SServices struct {
	Value []SService `json:"value,omitempty"`
}

type SSiteConfig

type SSiteConfig struct {
}

type SSku

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

type SSkuCapacity

type SSkuCapacity struct {
	Default   int
	Maximum   int
	Minimum   int
	ScaleType string
}

type SSkuDescription

type SSkuDescription struct {
	Capabilities []SCapability
	Capacity     int
	Family       string

	Name        string
	Size        string
	SkuCapacity SSkuCapacity
	Tier        string
	// contains filtered or unexported fields
}

type SSkuInfos

type SSkuInfos struct {
	ResourceType string
	Skus         []SResourceSku
}

type SSkuSpec

type SSkuSpec struct {
	Name string
	Tier string
}

type SSnapshot

type SSnapshot struct {
	multicloud.SResourceBase
	AzureTags

	ID         string
	Name       string
	Location   string
	ManagedBy  string
	Sku        *SnapshotSku
	Properties DiskProperties
	Type       string
	// 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) GetName

func (self *SSnapshot) GetName() string

func (*SSnapshot) GetProjectId

func (self *SSnapshot) GetProjectId() string

func (*SSnapshot) GetSizeMb

func (self *SSnapshot) GetSizeMb() int32

func (*SSnapshot) GetStatus

func (self *SSnapshot) GetStatus() string

func (*SSnapshot) Refresh

func (self *SSnapshot) Refresh() error

type SStorage

type SStorage struct {
	multicloud.SStorageBase
	AzureTags

	ResourceType string
	Tier         string
	Kind         string
	Locations    []string
	Capabilities []Capabilitie
	// contains filtered or unexported fields
}

func (*SStorage) CreateIDisk

func (*SStorage) GetCapacityMB

func (self *SStorage) GetCapacityMB() int64

func (*SStorage) GetCapacityUsedMB

func (self *SStorage) GetCapacityUsedMB() int64

func (*SStorage) GetEnabled

func (self *SStorage) GetEnabled() bool

func (*SStorage) GetGlobalId

func (self *SStorage) GetGlobalId() string

func (*SStorage) GetIDiskById

func (self *SStorage) GetIDiskById(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) GetMediumType

func (self *SStorage) GetMediumType() string

func (*SStorage) GetMountPoint

func (self *SStorage) GetMountPoint() string

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) IsSysDiskStore

func (self *SStorage) IsSysDiskStore() bool

func (*SStorage) Refresh

func (self *SStorage) Refresh() error

type SStorageAccount

type SStorageAccount struct {
	multicloud.SBaseBucket
	AzureTags

	Sku      SSku   `json:"sku,omitempty"`
	Kind     string `json:"kind,omitempty"`
	Identity *Identity
	Location string `json:"location,omitempty"`
	ID       string `json:"id,omitempty"`
	Name     string `json:"name,omitempty"`
	Type     string `json:"type,omitempty"`

	Properties AccountProperties `json:"properties"`
	// contains filtered or unexported fields
}

func (*SStorageAccount) AbortMultipartUpload

func (b *SStorageAccount) AbortMultipartUpload(ctx context.Context, key string, uploadId string) error

func (*SStorageAccount) CompleteMultipartUpload

func (b *SStorageAccount) CompleteMultipartUpload(ctx context.Context, key string, uploadId string, blockIds []string) error

func (*SStorageAccount) CopyObject

func (b *SStorageAccount) CopyObject(ctx context.Context, destKey string, srcBucket, srcKey string, cannedAcl cloudprovider.TBucketACLType, storageClassStr string, meta http.Header) error

func (*SStorageAccount) CopyPart

func (b *SStorageAccount) CopyPart(ctx context.Context, key string, uploadId string, partIndex int, srcBucket string, srcKey string, srcOffset int64, srcLength int64) (string, error)

func (*SStorageAccount) CreateContainer

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

func (*SStorageAccount) DeleteCORS

func (bucket *SStorageAccount) DeleteCORS() error

func (*SStorageAccount) DeleteObject

func (b *SStorageAccount) DeleteObject(ctx context.Context, key string) error

func (*SStorageAccount) GetAccessUrls

func (b *SStorageAccount) GetAccessUrls() []cloudprovider.SBucketAccessUrl

func (*SStorageAccount) GetAccountKey

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

func (*SStorageAccount) GetAcl

get the common ACL of all containers

func (*SStorageAccount) GetCORSRules

func (bucket *SStorageAccount) GetCORSRules() ([]cloudprovider.SBucketCORSRule, error)

func (*SStorageAccount) GetContainer

func (self *SStorageAccount) GetContainer(name string) (*SContainer, error)

func (*SStorageAccount) GetContainers

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

func (*SStorageAccount) GetCreatedAt

func (b *SStorageAccount) GetCreatedAt() time.Time

func (*SStorageAccount) GetGlobalId

func (b *SStorageAccount) GetGlobalId() string

func (*SStorageAccount) GetIRegion

func (b *SStorageAccount) GetIRegion() cloudprovider.ICloudRegion

func (*SStorageAccount) GetLocation

func (b *SStorageAccount) GetLocation() string

func (*SStorageAccount) GetName

func (b *SStorageAccount) GetName() string

func (*SStorageAccount) GetObject

func (b *SStorageAccount) GetObject(ctx context.Context, key string, rangeOpt *cloudprovider.SGetObjectRange) (io.ReadCloser, error)

func (*SStorageAccount) GetProjectId

func (b *SStorageAccount) GetProjectId() string

func (*SStorageAccount) GetStats

func (*SStorageAccount) GetStorageClass

func (b *SStorageAccount) GetStorageClass() string

func (*SStorageAccount) GetTags

func (b *SStorageAccount) GetTags() (map[string]string, error)

func (*SStorageAccount) GetTempUrl

func (b *SStorageAccount) GetTempUrl(method string, key string, expire time.Duration) (string, error)

func (*SStorageAccount) ListObjects

func (b *SStorageAccount) ListObjects(prefix string, marker string, delimiter string, maxCount int) (cloudprovider.SListObjectResult, error)

func (*SStorageAccount) MaxPartCount

func (b *SStorageAccount) MaxPartCount() int

func (*SStorageAccount) MaxPartSizeBytes

func (b *SStorageAccount) MaxPartSizeBytes() int64

func (*SStorageAccount) NewMultipartUpload

func (b *SStorageAccount) NewMultipartUpload(ctx context.Context, key string, cannedAcl cloudprovider.TBucketACLType, storageClassStr string, meta http.Header) (string, error)

func (*SStorageAccount) PutObject

func (b *SStorageAccount) PutObject(ctx context.Context, key string, reader io.Reader, sizeBytes int64, cannedAcl cloudprovider.TBucketACLType, storageClassStr string, meta http.Header) error

func (*SStorageAccount) SetAcl

func (*SStorageAccount) SetCORS

func (bucket *SStorageAccount) SetCORS(rules []cloudprovider.SBucketCORSRule) error

func (*SStorageAccount) UploadFile

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

func (*SStorageAccount) UploadPart

func (b *SStorageAccount) UploadPart(ctx context.Context, key string, uploadId string, partIndex int, input io.Reader, partSize int64, offset, totalSize int64) (string, error)

func (*SStorageAccount) UploadStream

func (self *SStorageAccount) UploadStream(containerName string, key string, reader io.Reader, meta http.Header) error

type SStorageAccountSku

type SStorageAccountSku struct {
	ResourceType string   `json:"resourceType"`
	Name         string   `json:"name"`
	Tier         string   `json:"tier"`
	Kind         string   `json:"kind"`
	Locations    []string `json:"locations"`
	Capabilities []struct {
		Name  string `json:"name"`
		Value string `json:"value"`
	} `json:"capabilities"`
	Restrictions []struct {
		Type       string   `json:"type"`
		Values     []string `json:"values"`
		ReasonCode string   `json:"reasonCode"`
	} `json:"restrictions"`
}

type SStorageEndpoints

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

type SStoragecache

type SStoragecache struct {
	multicloud.SResourceBase
	AzureTags
	// contains filtered or unexported fields
}

func (*SStoragecache) DownloadImage

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

func (*SStoragecache) GetGlobalId

func (self *SStoragecache) GetGlobalId() string

func (*SStoragecache) GetICloudImages

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

func (*SStoragecache) GetICustomizedCloudImages

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

func (*SStoragecache) GetIImageById

func (self *SStoragecache) GetIImageById(extId string) (cloudprovider.ICloudImage, error)

func (*SStoragecache) GetId

func (self *SStoragecache) GetId() string

func (*SStoragecache) GetName

func (self *SStoragecache) GetName() string

func (*SStoragecache) GetPath

func (self *SStoragecache) GetPath() 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(ctx context.Context, image *cloudprovider.SImageCreateOption, callback func(progress float32)) (string, error)

type SStringDictionary

type SStringDictionary struct {
	Id         string
	Kind       string
	Name       string
	Type       string
	Properties map[string]string
}

type SSubscription

type SSubscription struct {
	SubscriptionId string `json:"subscriptionId"`
	State          string
	DisplayName    string `json:"displayName"`
}

func (*SSubscription) GetHealthStatus

func (self *SSubscription) GetHealthStatus() string

type STimeWindow

type STimeWindow struct {
	// 采用 ISO 8601 格式的配置文件的结束时间。
	End string
	// 采用 ISO 8601 格式的配置文件的开始时间。
	Start    string
	TimeZone string
}

type SUsage

type SUsage struct {
	Unit         string
	CurrentValue int
	Limit        int
	Name         UsageName
}

{"value":[{"unit":"Count","currentValue":0,"limit":250,"name":{"value":"StorageAccounts","localizedValue":"Storage Accounts"}}]}

func (*SUsage) GetCurrentQuotaUsedCount

func (u *SUsage) GetCurrentQuotaUsedCount() int

func (*SUsage) GetDesc

func (u *SUsage) GetDesc() string

func (*SUsage) GetGlobalId

func (u *SUsage) GetGlobalId() string

func (*SUsage) GetMaxQuotaCount

func (u *SUsage) GetMaxQuotaCount() int

func (*SUsage) GetQuotaType

func (u *SUsage) GetQuotaType() string

type SVMAgent

type SVMAgent struct {
	VmAgentVersion string     `json:"vmAgentVersion,omitempty"`
	Statuses       []Statuses `json:"statuses,omitempty"`
}

type SVMSize

type SVMSize struct {
	//MaxDataDiskCount     int32 `json:"maxDataDiskCount,omitempty"` //Unmarshal会出错
	MemoryInMB           int32 `json:"memoryInMB,omitempty"`
	NumberOfCores        int   `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 {
	multicloud.SVpc
	AzureTags

	ID         string
	Name       string
	Etag       string
	Type       string
	Location   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) GetIRouteTableById

func (self *SVpc) GetIRouteTableById(routeTableId string) (cloudprovider.ICloudRouteTable, error)

func (*SVpc) GetIRouteTables

func (self *SVpc) GetIRouteTables() ([]cloudprovider.ICloudRouteTable, error)

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) 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) GetTags

func (self *SVpc) GetTags() (map[string]string, error)

func (*SVpc) IsEmulated

func (self *SVpc) IsEmulated() bool

func (*SVpc) Refresh

func (self *SVpc) Refresh() error

type SWafRule

type SWafRule struct {
	RuleId        string
	Description   string
	DefaultAction string
	DefaultState  string
}

type SWire

type SWire struct {
	multicloud.SResourceBase
	AzureTags
	// contains filtered or unexported fields
}

func (*SWire) CreateINetwork

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) GetName

func (self *SWire) GetName() string

func (*SWire) GetStatus

func (self *SWire) GetStatus() string

func (*SWire) IsEmulated

func (self *SWire) IsEmulated() bool

type SZone

type SZone struct {
	multicloud.SResourceBase
	AzureTags

	Name string
	// contains filtered or unexported fields
}

func (*SZone) GetGlobalId

func (self *SZone) GetGlobalId() string

func (*SZone) GetI18n

func (self *SZone) GetI18n() cloudprovider.SModelI18nTable

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) GetName

func (self *SZone) GetName() string

func (*SZone) GetStatus

func (self *SZone) GetStatus() string

func (*SZone) IsEmulated

func (self *SZone) IsEmulated() bool

func (*SZone) ListStorageTypes

func (self *SZone) ListStorageTypes() []SStorage

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              *[]SNetwork     `json:"subnets,omitempty"`
}

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                   int      `json:"priority,omitempty"`
	Direction                  string   `json:"direction,omitempty"` //Inbound or Outbound
	ProvisioningState          string   `json:"-"`
}

type SecurityRules

type SecurityRules struct {
	Properties SecurityRulePropertiesFormat
	Name       string
	ID         string
	// contains filtered or unexported fields
}

func (*SecurityRules) Delete

func (self *SecurityRules) Delete() error

func (*SecurityRules) GetAction

func (self *SecurityRules) GetAction() secrules.TSecurityRuleAction

func (*SecurityRules) GetCIDRs

func (self *SecurityRules) GetCIDRs() []string

func (*SecurityRules) GetDescription

func (self *SecurityRules) GetDescription() string

func (*SecurityRules) GetDirection

func (self *SecurityRules) GetDirection() secrules.TSecurityRuleDirection

func (*SecurityRules) GetGlobalId

func (self *SecurityRules) GetGlobalId() string

func (*SecurityRules) GetPorts

func (self *SecurityRules) GetPorts() string

func (*SecurityRules) GetPriority

func (self *SecurityRules) GetPriority() int

func (*SecurityRules) GetProtocol

func (self *SecurityRules) GetProtocol() string

func (*SecurityRules) Update

type Sku

type Sku struct {
	Name     string `json:"name"`
	Tier     string `json:"tier"`
	Capacity string `json:"capacity"`
}

type SnapshotSku

type SnapshotSku struct {
	Name string
	Tier string
}

type Statuses

type Statuses struct {
	Code          string
	Level         string
	DisplayStatus string `json:"displayStatus,omitempty"`
	Message       string
}

type StorageProfile

type StorageProfile struct {
	ImageReference ImageReference `json:"imageReference,omitempty"`
	OsDisk         SOsDisk        `json:"osDisk,omitempty"`
	DataDisks      []SDataDisk    `json:"dataDisks,allowempty"`
}

type SubResource

type SubResource struct {
	ID   string `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
	Type string `json:"type,omitempty"`
}

type Subnet

type Subnet struct {
	ID string `json:"id"`
}

type SubnetPropertiesFormat

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

type TAzureInt32

type TAzureInt32 string

func (TAzureInt32) Int32

func (ai TAzureInt32) Int32() int32

type TAzureResource

type TAzureResource string

type TResourceSkuCapacityScaleType

type TResourceSkuCapacityScaleType string

type TResourceSkuRestrictionsReasonCode

type TResourceSkuRestrictionsReasonCode string

type TResourceSkuRestrictionsType

type TResourceSkuRestrictionsType string

type TagParams

type TagParams struct {
	Properties TagProperties `json:"properties"`
	Operation  string        `json:"operation"`
}

type TagProperties

type TagProperties struct {
	Tags map[string]string `json:"tags"`
}

type TimeSeriesElement

type TimeSeriesElement struct {
	// Metadatavalues - the metadata values returned if $filter was specified in the call.
	Metadatavalues []MetadataValue `json:"metadatavalues,omitempty"`
	// Data - An array of data points representing the metric values.  This is only returned if a result type of data is specified.
	Data []MetricValue `json:"data,omitempty"`
}

type URLPathMap

type URLPathMap struct {
	Name       string               `json:"name"`
	ID         string               `json:"id"`
	Etag       string               `json:"etag"`
	Properties URLPathMapProperties `json:"properties"`
	Type       string               `json:"type"`
}

type URLPathMapProperties

type URLPathMapProperties struct {
	ProvisioningState            string                   `json:"provisioningState"`
	DefaultBackendAddressPool    *PublicIPAddressElement  `json:"defaultBackendAddressPool,omitempty"`
	DefaultBackendHTTPSettings   *PublicIPAddressElement  `json:"defaultBackendHttpSettings,omitempty"`
	PathRules                    []PathRule               `json:"pathRules"`
	RequestRoutingRules          []PublicIPAddressElement `json:"requestRoutingRules"`
	DefaultRedirectConfiguration *PublicIPAddressElement  `json:"defaultRedirectConfiguration,omitempty"`
}

type UsageName

type UsageName struct {
	Value          string
	LocalizedValue 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 {
	Statuses   []Statuses   `json:"statuses,omitempty"`
	VMAgent    SVMAgent     `json:"vmAgent,omitempty"`
	Extensions []SExtension `json:"extensions,omitempty"`
}

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"`
	TimeCreated       time.Time                   `json:"timeCreated,omitempty"`
}

type VirtualNetworkPropertiesFormat

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

type WebApplicationFirewallConfiguration

type WebApplicationFirewallConfiguration struct {
	Enabled            bool          `json:"enabled"`
	FirewallMode       string        `json:"firewallMode"`
	RuleSetType        string        `json:"ruleSetType"`
	RuleSetVersion     string        `json:"ruleSetVersion"`
	DisabledRuleGroups []interface{} `json:"disabledRuleGroups"`
}

type WorkspaceData

type WorkspaceData struct {
	Name    string
	Columns []struct {
		Name string
		Type string
	}
	Rows [][]string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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