qcloud

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: 45 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ACL_GROUP_URI_ALL_USERS  = "http://cam.qcloud.com/groups/global/AllUsers"
	ACL_GROUP_URI_AUTH_USERS = "http://cam.qcloud.com/groups/global/AuthenticatedUsers"
)
View Source
const (
	EIP_STATUS_CREATING      = "CREATING"
	EIP_STATUS_BINDING       = "BINDING"
	EIP_STATUS_BIND          = "BIND"
	EIP_STATUS_UNBINDING     = "UNBINDING"
	EIP_STATUS_UNBIND        = "UNBIND"
	EIP_STATUS_OFFLINING     = "OFFLINING"
	EIP_STATUS_BIND_ENI      = "BIND_ENI"
	EIP_STATUS_CREATE_FAILED = "CREATE_FAILED"

	EIP_TYPE_CALCIP     = "CalcIP"     //表示设备ip
	EIP_TYPE_WANIP      = "WanIP"      //普通公网ip
	EIP_TYPE_EIP        = "EIP"        //弹性公网ip
	EIP_TYPE_ANYCASTEIP = "AnycastEIP" //加速EIP
)
View Source
const (
	InstanceStatusStopped  = "STOPPED"
	InstanceStatusRunning  = "RUNNING"
	InstanceStatusStopping = "STOPPING"
	InstanceStatusStarting = "STARTING"
)
View Source
const (
	InternetChargeTypeBandwidthPrepaid        = "BANDWIDTH_PREPAID"
	InternetChargeTypeTrafficPostpaidByHour   = "TRAFFIC_POSTPAID_BY_HOUR"
	InternetChargeTypeBandwidthPostpaidByHour = "BANDWIDTH_POSTPAID_BY_HOUR"
	InternetChargeTypeBandwidthPackage        = "BANDWIDTH_PACKAGE"
)
View Source
const (
	LB_ADDR_TYPE_INTERNAL = "INTERNAL"
	LB_ADDR_TYPE_OPEN     = "OPEN"
)
View Source
const (
	LB_TYPE_CLASSIC     = LB_TYPE(0)
	LB_TYPE_APPLICATION = LB_TYPE(1)
)
View Source
const (
	PROTOCOL_TCP     = "TCP"
	PROTOCOL_UDP     = "UDP"
	PROTOCOL_TCP_SSL = "TCP_SSL"
	PROTOCOL_HTTP    = "HTTP"
	PROTOCOL_HTTPS   = "HTTPS"
)
View Source
const (
	CLOUD_PROVIDER_QCLOUD    = api.CLOUD_PROVIDER_QCLOUD
	CLOUD_PROVIDER_QCLOUD_CN = "腾讯云"
	CLOUD_PROVIDER_QCLOUD_EN = "QCloud"

	QCLOUD_DEFAULT_REGION = "ap-beijing"

	QCLOUD_API_VERSION           = "2017-03-12"
	QCLOUD_CLB_API_VERSION       = "2018-03-17"
	QCLOUD_BILLING_API_VERSION   = "2018-07-09"
	QCLOUD_AUDIT_API_VERSION     = "2019-03-19"
	QCLOUD_CAM_API_VERSION       = "2019-01-16"
	QCLOUD_CDB_API_VERSION       = "2017-03-20"
	QCLOUD_MARIADB_API_VERSION   = "2017-03-12"
	QCLOUD_POSTGRES_API_VERSION  = "2017-03-12"
	QCLOUD_SQLSERVER_API_VERSION = "2018-03-28"
	QCLOUD_REDIS_API_VERSION     = "2018-04-12"
	QCLOUD_MEMCACHED_API_VERSION = "2019-03-18"
	QCLOUD_SSL_API_VERSION       = "2019-12-05"
	QCLOUD_CDN_API_VERSION       = "2018-06-06"
	QCLOUD_MONGODB_API_VERSION   = "2019-07-25"
	QCLOUD_ES_API_VERSION        = "2018-04-16"
	QCLOUD_DCDB_API_VERSION      = "2018-04-11"
	QCLOUD_KAFKA_API_VERSION     = "2019-08-19"
	QCLOUD_TKE_API_VERSION       = "2018-05-25"
	QCLOUD_DNS_API_VERSION       = "2021-03-23"
	QCLOUD_STS_API_VERSION       = "2018-08-13"
	QCLOUD_TAG_API_VERSION       = "2018-08-13"
)
View Source
const (
	NORMAL = "NORMAL"
	UNKOWN = "ISOLATED"
)
View Source
const (
	COS_META_HEADER = "X-Cos-Meta-"
)
View Source
const (
	DEFAULT_ROLE_DOCUMENT = `{"version":"2.0","statement":[{"action":"name/sts:AssumeRole","effect":"allow","principal":{"service":["cvm.qcloud.com"]}}]}`
)
View Source
const (
	QCLOUD_API_VERSION_METRICS = "2018-07-24"
)

Variables

View Source
var CERT_STATUS_MAP = map[int]string{
	0: "pending",
	1: "normal",
	2: "deleted",
	3: "expired",
	4: "normal",
	5: "pending",
	6: "deleted",
	7: "deleted",
	8: "pending",
}
View Source
var LatitudeAndLongitude = map[string]cloudprovider.SGeographicInfo{
	"ap-bangkok":        api.RegionBangkok,
	"ap-beijing":        api.RegionBeijing,
	"ap-chengdu":        api.RegionChengdu,
	"ap-chongqing":      api.RegionChongqing,
	"ap-guangzhou":      api.RegionGuangzhou,
	"ap-guangzhou-open": api.RegionGuangzhou,
	"ap-hongkong":       api.RegionHongkong,
	"ap-mumbai":         api.RegionMumbai,
	"ap-seoul":          api.RegionSeoul,
	"ap-shanghai":       api.RegionShanghai,
	"ap-shanghai-fsi":   api.RegionShanghai,
	"ap-shenzhen-fsi":   api.RegionShenzhen,
	"ap-singapore":      api.RegionSingapore,
	"ap-tokyo":          api.RegionTokyo,
	"eu-frankfurt":      api.RegionFrankfurt,
	"eu-moscow":         api.RegionMoscow,
	"na-ashburn":        api.RegionVirginia,
	"na-siliconvalley":  api.RegionSiliconValley,
	"na-toronto":        api.RegionToronto,
	"ap-nanjing":        api.RegionNanjing,
}
View Source
var QCLOUD_LOCAL_STORAGE_TYPES = []string{
	"LOCAL_NVME",
	"LOCAL_BASIC",
	"LOCAL_SSD",
	"LOCAL_PRO",
}
View Source
var (
	SUPPORTED_ENGINE_VERSION = []string{"5.7", "10.0", "10.1"}
)

Functions

func Bool

func Bool(sb *bool) bool

func GetRecordLineLineType

func GetRecordLineLineType(policyinfo cloudprovider.TDnsPolicyValue) string

func String

func String(sp *string) string

Types

type AddressTemplate

type AddressTemplate struct {
	AddressSet          []string
	AddressTemplateId   string
	AddressTemplateName string
	CreatedTime         time.Time
}

type AddressTemplateGroup

type AddressTemplateGroup struct {
	AddressTemplateIdSet     []string
	AddressTemplateGroupName string
	AddressTemplateGroupId   string
	CreatedTime              time.Time
}

type AddressTemplateSpecification

type AddressTemplateSpecification struct {
	AddressId      string //	IP地址ID,例如:ipm-2uw6ujo6。
	AddressGroupId string //	IP地址组ID,例如:ipmg-2uw6ujo6。
}

func (*AddressTemplateSpecification) GetGlobalId

func (self *AddressTemplateSpecification) GetGlobalId() string

type BoundRule

type BoundRule struct {
	Action string `json:"Action"`
	IP     string `json:"Ip"`
	Port   string `json:"Port"`
	Proto  string `json:"Proto"`
}

type CallerIdentity

type CallerIdentity struct {
	AccountId   string
	Arn         string
	PrincipalId string
	RequestId   string
	Type        string
	UserId      string
}

type CdnCache

type CdnCache struct {
	CdnCacheCacheConfig CdnCacheCacheConfig `json:"CacheConfig"`
	RulePaths           []string            `json:"RulePaths"`
	RuleType            string              `json:"RuleType"`
}

type CdnCacheCacheConfig

type CdnCacheCacheConfig struct {
	CdnCacheCacheConfigCache        CdnCacheCacheConfigCache        `json:"Cache"`
	CdnCacheCacheConfigFollowOrigin CdnCacheCacheConfigFollowOrigin `json:"FollowOrigin"`
	CdnCacheCacheConfigNoCache      CdnCacheCacheConfigNoCache      `json:"NoCache"`
}

type CdnCacheCacheConfigCache

type CdnCacheCacheConfigCache struct {
	CacheTime          int    `json:"CacheTime"`
	CompareMaxAge      string `json:"CompareMaxAge"`
	IgnoreCacheControl string `json:"IgnoreCacheControl"`
	IgnoreSetCookie    string `json:"IgnoreSetCookie"`
	Switch             string `json:"Switch"`
}

type CdnCacheCacheConfigFollowOrigin

type CdnCacheCacheConfigFollowOrigin struct {
	CdnCacheCacheConfigFollowOriginHeuristicCache CdnCacheCacheConfigFollowOriginHeuristicCache `json:"HeuristicCache"`
	Switch                                        string                                        `json:"Switch"`
}

type CdnCacheCacheConfigFollowOriginHeuristicCache

type CdnCacheCacheConfigFollowOriginHeuristicCache struct {
	CdnCacheCacheConfigFollowOriginHeuristicCacheCacheConfig CdnCacheCacheConfigFollowOriginHeuristicCacheCacheConfig `json:"CacheConfig"`
	Switch                                                   string                                                   `json:"Switch"`
}

type CdnCacheCacheConfigFollowOriginHeuristicCacheCacheConfig

type CdnCacheCacheConfigFollowOriginHeuristicCacheCacheConfig struct {
	HeuristicCacheTime       int    `json:"HeuristicCacheTime"`
	HeuristicCacheTimeSwitch string `json:"HeuristicCacheTimeSwitch"`
}

type CdnCacheCacheConfigNoCache

type CdnCacheCacheConfigNoCache struct {
	Revalidate string `json:"Revalidate"`
	Switch     string `json:"Switch"`
}

type Certificate

type Certificate struct {
	SSLMode  string `json:"SSLMode"`
	CERTCAId string `json:"CertCaId"`
	CERTId   string `json:"CertId"`
}

type DataDisk

type DataDisk struct {
	DiskSize           float32 //	数据盘大小,单位:GB。最小调整步长为10G,不同数据盘类型取值范围不同,具体限制详见:CVM实例配置。默认值为0,表示不购买数据盘。更多限制详见产品文档。
	DiskType           string  //	数据盘类型。数据盘类型限制详见CVM实例配置。取值范围:LOCAL_BASIC:本地硬盘 LOCAL_SSD:本地SSD硬盘 CLOUD_BASIC:普通云硬盘 CLOUD_PREMIUM:高性能云硬盘 CLOUD_SSD:SSD云硬盘 默认取值:LOCAL_BASIC。 该参数对ResizeInstanceDisk接口无效。
	DiskId             string  //	数据盘ID。LOCAL_BASIC 和 LOCAL_SSD 类型没有ID。暂时不支持该参数。
	DeleteWithInstance bool    //	数据盘是否随子机销毁。取值范围:TRUE:子机销毁时,销毁数据盘 FALSE:子机销毁时,保留数据盘 默认取值:TRUE 该参数目前仅用于 RunInstances 接口。
}

type HealthCheck

type HealthCheck struct {
	HTTPCheckDomain string `json:"HttpCheckDomain"`
	HealthSwitch    int    `json:"HealthSwitch"`
	HTTPCheckPath   string `json:"HttpCheckPath"`
	HTTPCheckMethod string `json:"HttpCheckMethod"`
	UnHealthNum     int    `json:"UnHealthNum"`
	IntervalTime    int    `json:"IntervalTime"`
	HTTPCode        int    `json:"HttpCode"` // 健康检查状态码(仅适用于HTTP/HTTPS转发规则)。可选值:1~31,默认 31。
	HealthNum       int    `json:"HealthNum"`
	TimeOut         int    `json:"TimeOut"`
	CheckType       string `json:"CheckType"`
}

健康检查状态码(仅适用于HTTP/HTTPS转发规则)。可选值:1~31,默认 31。 1 表示探测后返回值 1xx 表示健康,2 表示返回 2xx 表示健康,4 表示返回 3xx 表示健康,8 表示返回 4xx 表示健康,16 表示返回 5xx 表示健康。 若希望多种码都表示健康,则将相应的值相加。

type ImageQuota

type ImageQuota struct {
	ImageNumQuota int
	// contains filtered or unexported fields
}

func (*ImageQuota) GetCurrentQuotaUsedCount

func (iq *ImageQuota) GetCurrentQuotaUsedCount() int

func (*ImageQuota) GetDesc

func (iq *ImageQuota) GetDesc() string

func (*ImageQuota) GetGlobalId

func (iq *ImageQuota) GetGlobalId() string

func (*ImageQuota) GetMaxQuotaCount

func (iq *ImageQuota) GetMaxQuotaCount() int

func (*ImageQuota) GetName

func (iq *ImageQuota) GetName() string

func (*ImageQuota) GetQuotaType

func (iq *ImageQuota) GetQuotaType() string

type ImageStatusType

type ImageStatusType string
const (
	ImageStatusCreating  ImageStatusType = "CREATING"
	ImageStatusNormal    ImageStatusType = "NORMAL"
	ImageStatusSycing    ImageStatusType = "SYNCING"
	ImageStatusImporting ImageStatusType = "IMPORTING"
	ImageStatusUsing     ImageStatusType = "USING"
	ImageStatusDeleting  ImageStatusType = "DELETING"
)

type ImportImageOsListSupported

type ImportImageOsListSupported struct {
	Linux   []string //"CentOS|Ubuntu|Debian|OpenSUSE|SUSE|CoreOS|FreeBSD|Other Linux"
	Windows []string //"Windows Server 2008|Windows Server 2012|Windows Server 2016"
}

type ImportImageOsVersionSet

type ImportImageOsVersionSet struct {
	Architecture []string
	OsName       string //"CentOS|Ubuntu|Debian|OpenSUSE|SUSE|CoreOS|FreeBSD|Other Linux|Windows Server 2008|Windows Server 2012|Windows Server 2016"
	OsVersions   []string
}

type InstanceChargeType

type InstanceChargeType string
const (
	PrePaidInstanceChargeType  InstanceChargeType = "PREPAID"
	PostPaidInstanceChargeType InstanceChargeType = "POSTPAID_BY_HOUR"
	CdhPaidInstanceChargeType  InstanceChargeType = "CDHPAID"
	DefaultInstanceChargeType                     = PostPaidInstanceChargeType
)

type InternetAccessible

type InternetAccessible struct {
	InternetChargeType      string //网络计费类型。取值范围:BANDWIDTH_PREPAID:预付费按带宽结算 TRAFFIC_POSTPAID_BY_HOUR:流量按小时后付费 BANDWIDTH_POSTPAID_BY_HOUR:带宽按小时后付费 BANDWIDTH_PACKAGE:带宽包用户 默认取值:非带宽包用户默认与子机付费类型保持一致。
	InternetMaxBandwidthOut int    //	公网出带宽上限,单位:Mbps。默认值:0Mbps。不同机型带宽上限范围不一致,具体限制详见购买网络带宽。
	PublicIpAssigned        bool   //	是否分配公网IP。取值范围: TRUE:表示分配公网IP FALSE:表示不分配公网IP 当公网带宽大于0Mbps时,可自由选择开通与否,默认开通公网IP;当公网带宽为0,则不允许分配公网IP。
}

type LB_TYPE

type LB_TYPE int64

type LoginSettings

type LoginSettings struct {
	Password       string   //实例登录密码。不同操作系统类型密码复杂度限制不一样,具体如下:Linux实例密码必须8到16位,至少包括两项[a-z,A-Z]、[0-9] 和 [( ) ~ ! @ # $ % ^ & * - + = &#124; { } [ ] : ; ' , . ? / ]中的特殊符号。<br><li>Windows实例密码必须12到16位,至少包括三项[a-z],[A-Z],[0-9] 和 [( ) ~ ! @ # $ % ^ & * - + = { } [ ] : ; ' , . ? /]中的特殊符号。 若不指定该参数,则由系统随机生成密码,并通过站内信方式通知到用户。
	KeyIds         []string //	密钥ID列表。关联密钥后,就可以通过对应的私钥来访问实例;KeyId可通过接口DescribeKeyPairs获取,密钥与密码不能同时指定,同时Windows操作系统不支持指定密钥。当前仅支持购买的时候指定一个密钥。
	KeepImageLogin string   //	保持镜像的原始设置。该参数与Password或KeyIds.N不能同时指定。只有使用自定义镜像、共享镜像或外部导入镜像创建实例时才能指定该参数为TRUE。取值范围: TRUE:表示保持镜像的登录设置 FALSE:表示不保持镜像的登录设置 默认取值:FALSE。
}

type MaintenanceTime

type MaintenanceTime struct {
	StartTime string `json:"start_time"`
	EndTime   string `json:"end_time"`
}

type NodeSet

type NodeSet struct {
	NodeID   int64 `json:"NodeId"`
	NodeType int64 `json:"NodeType"`
	ZoneID   int64 `json:"ZoneId"`
}

type Placement

type Placement struct {
	ProjectId int
	Zone      string
}

type QcloudClientConfig

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

func NewQcloudClientConfig

func NewQcloudClientConfig(secretId, secretKey string) *QcloudClientConfig

func (*QcloudClientConfig) AppId

func (cfg *QcloudClientConfig) AppId(appId string) *QcloudClientConfig

func (*QcloudClientConfig) CloudproviderConfig

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

func (*QcloudClientConfig) Debug

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

type QcloudResponse

type QcloudResponse struct {
	*tchttp.BaseResponse
	Response *interface{} `json:"Response"`
}

3.0版本通用response

func (*QcloudResponse) GetResponse

func (r *QcloudResponse) GetResponse() *interface{}

type QcloudTags

type QcloudTags struct {
	TagSet []multicloud.STag

	// Redis
	InstanceTags []multicloud.STag
	// Elasticsearch
	TagList []multicloud.STag
	// Kafka
	Tags []multicloud.STag
	// Cdn
	Tag []multicloud.STag
	// TDSQL
	ResourceTags []multicloud.STag
}

func (*QcloudTags) GetSysTags

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

func (*QcloudTags) GetTags

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

func (*QcloudTags) SetTags

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

type QuotaSet

type QuotaSet struct {
	QuotaId      string
	QuotaCurrent int
	QuotaLimit   int
}

func (*QuotaSet) GetCurrentQuotaUsedCount

func (qs *QuotaSet) GetCurrentQuotaUsedCount() int

func (*QuotaSet) GetDesc

func (qs *QuotaSet) GetDesc() string

func (*QuotaSet) GetGlobalId

func (qs *QuotaSet) GetGlobalId() string

func (*QuotaSet) GetMaxQuotaCount

func (qs *QuotaSet) GetMaxQuotaCount() int

func (*QuotaSet) GetName

func (qs *QuotaSet) GetName() string

func (*QuotaSet) GetQuotaType

func (qs *QuotaSet) GetQuotaType() string

type ReferredSecurityGroup

type ReferredSecurityGroup struct {
	SecurityGroupId          string
	ReferredSecurityGroupIds []string
}

type RouteTableAssociationSet

type RouteTableAssociationSet struct {
	SubnetId     string
	RouteTableId string
}

type Rule

type Rule struct {
	URL        string       `json:"Url"`
	Domain     string       `json:"Domain"`
	LocationId string       `json:"LocationId"`
	Targets    []SLBBackend `json:"Targets"`
}

type SAMLProvider

type SAMLProvider struct {
	multicloud.SResourceBase
	QcloudTags

	Name         string
	Description  string
	CreateTime   time.Time
	ModifyTime   time.Time
	SAMLMetadata string
	// 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 SAccountBalance

type SAccountBalance struct {
	Balance  float64
	Uin      int64
	Currency string
}

type SAccountPrivilege

type SAccountPrivilege struct {
	GlobalPrivileges   []string
	DatabasePrivileges []SDatabasePrivilege
	TablePrivileges    []STablePrivilege
	ColumnPrivileges   []SColumnPrivilege
}

type SAsyncRequestResult

type SAsyncRequestResult struct {
	Info   string
	Status string
}

type SAvailableChoice

type SAvailableChoice struct {
	MasterZone SaleZoneInfo
	SlaveZones []SaleZoneInfo
}

type SBandwidthPackage

type SBandwidthPackage struct {
	BandwidthPackageId   string
	BandwidthPackageName string
	ChargeType           string
	CreatedTime          time.Time
	NetworkType          string
	Protocol             string
	ResourceSet          []SBandwidthPackageSet
}

type SBandwidthPackageSet

type SBandwidthPackageSet struct {
	AddressIp    string
	ResourceId   string
	ResourceType string
}

type SBatchQueryMetricDataInput

type SBatchQueryMetricDataInput struct {
	MetricName string               `json:"MetricName"`
	Namespace  string               `json:"Namespace"`
	Metrics    []SQcMetricDimension `json:"Metrics"`
	StartTime  int64                `json:"StartTime"`
	EndTime    int64                `json:"EndTime"`
	Period     string               `json:"Period"`
}

type SBucket

type SBucket struct {
	multicloud.SBaseBucket
	QcloudTags

	Name       string
	Location   string
	CreateDate time.Time
	// contains filtered or unexported fields
}

func (*SBucket) AbortMultipartUpload

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

func (*SBucket) CompleteMultipartUpload

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

func (*SBucket) CopyObject

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

func (*SBucket) CopyPart

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

func (*SBucket) DeleteCORS

func (b *SBucket) DeleteCORS() error

func (*SBucket) DeleteObject

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

func (*SBucket) DeletePolicy

func (b *SBucket) DeletePolicy(id []string) ([]cloudprovider.SBucketPolicyStatement, error)

func (*SBucket) DeleteWebSiteConf

func (b *SBucket) DeleteWebSiteConf() error

func (*SBucket) GetAccessUrls

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

func (*SBucket) GetAcl

func (b *SBucket) GetAcl() cloudprovider.TBucketACLType

func (*SBucket) GetCORSRules

func (b *SBucket) GetCORSRules() ([]cloudprovider.SBucketCORSRule, error)

func (*SBucket) GetCdnDomains

func (b *SBucket) GetCdnDomains() ([]cloudprovider.SCdnDomain, error)

func (*SBucket) GetCreatedAt

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

func (*SBucket) GetGlobalId

func (b *SBucket) GetGlobalId() string

func (*SBucket) GetIRegion

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

func (*SBucket) GetLocation

func (b *SBucket) GetLocation() string

func (*SBucket) GetName

func (b *SBucket) GetName() string

func (*SBucket) GetObject

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

func (*SBucket) GetPolicy

func (b *SBucket) GetPolicy() ([]cloudprovider.SBucketPolicyStatement, error)

func (*SBucket) GetProjectId

func (b *SBucket) GetProjectId() string

func (*SBucket) GetReferer

func (b *SBucket) GetReferer() (cloudprovider.SBucketRefererConf, error)

func (*SBucket) GetStats

func (b *SBucket) GetStats() cloudprovider.SBucketStats

func (*SBucket) GetStorageClass

func (b *SBucket) GetStorageClass() string

func (*SBucket) GetTags

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

func (*SBucket) GetTempUrl

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

func (*SBucket) GetWebsiteConf

func (b *SBucket) GetWebsiteConf() (cloudprovider.SBucketWebsiteConf, error)

func (*SBucket) ListMultipartUploads

func (b *SBucket) ListMultipartUploads() ([]cloudprovider.SBucketMultipartUploads, error)

func (*SBucket) ListObjects

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

func (*SBucket) NewMultipartUpload

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

func (*SBucket) PutObject

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

func (*SBucket) SetAcl

func (b *SBucket) SetAcl(aclStr cloudprovider.TBucketACLType) error

func (*SBucket) SetCORS

func (b *SBucket) SetCORS(rules []cloudprovider.SBucketCORSRule) error

func (*SBucket) SetPolicy

func (*SBucket) SetReferer

func (b *SBucket) SetReferer(conf cloudprovider.SBucketRefererConf) error

func (*SBucket) SetTags

func (b *SBucket) SetTags(tags map[string]string, replace bool) error

func (*SBucket) SetWebsite

func (b *SBucket) SetWebsite(websitConf cloudprovider.SBucketWebsiteConf) error

func (*SBucket) UploadPart

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

type SCache

type SCache struct {
	RuleCache []CdnCache
}

type SCacheKey

type SCacheKey struct {
	FullUrlCache string
	IgnoreCase   string
	KeyRules     []struct {
		RulePaths    []string
		RuleType     string
		FullUrlCache string
		IgnoreCase   string
		QueryString  struct {
			Switch string
			Action string
			Value  string
		}
		RuleTag string
	}
}

type SCcn

type SCcn struct {
	multicloud.SResourceBase
	QcloudTags

	CcnID             string `json:"CcnId"`
	CcnName           string `json:"CcnName"`
	CcnDescription    string `json:"CcnDescription"`
	InstanceCount     int    `json:"InstanceCount"`
	CreateTime        string `json:"CreateTime"`
	State             string `json:"State"`
	AttachedInstances []SCcnInstance
	// contains filtered or unexported fields
}

func (*SCcn) AttachVpc

func (*SCcn) Delete

func (self *SCcn) Delete() error

func (*SCcn) DetachVpc

func (*SCcn) DisableRouteEntry

func (self *SCcn) DisableRouteEntry(routeId string) error

func (*SCcn) EnableRouteEntry

func (self *SCcn) EnableRouteEntry(routeId string) error

func (*SCcn) GetAuthorityOwnerId

func (self *SCcn) GetAuthorityOwnerId() string

func (*SCcn) GetGlobalId

func (self *SCcn) GetGlobalId() string

func (*SCcn) GetICloudVpcIds

func (self *SCcn) GetICloudVpcIds() ([]string, error)

func (*SCcn) GetIRoutes

func (self *SCcn) GetIRoutes() ([]cloudprovider.ICloudInterVpcNetworkRoute, error)

func (*SCcn) GetId

func (self *SCcn) GetId() string

func (*SCcn) GetName

func (self *SCcn) GetName() string

func (*SCcn) GetStatus

func (self *SCcn) GetStatus() string

func (*SCcn) Refresh

func (self *SCcn) Refresh() error

type SCcnAttachInstanceInput

type SCcnAttachInstanceInput struct {
	InstanceType   string
	InstanceId     string
	InstanceRegion string
}

type SCcnInstance

type SCcnInstance struct {
	CcnID          string   `json:"CcnId"`
	InstanceType   string   `json:"InstanceType"`
	InstanceID     string   `json:"InstanceId"`
	InstanceName   string   `json:"InstanceName"`
	InstanceRegion string   `json:"InstanceRegion"`
	InstanceUin    string   `json:"InstanceUin"`
	CidrBlock      []string `json:"CidrBlock"`
	State          string   `json:"State"`
}

type SCcnRouteSet

type SCcnRouteSet struct {
	multicloud.SResourceBase
	QcloudTags

	RouteID              string `json:"RouteId"`
	DestinationCidrBlock string `json:"DestinationCidrBlock"`
	InstanceType         string `json:"InstanceType"`
	InstanceID           string `json:"InstanceId"`
	InstanceName         string `json:"InstanceName"`
	InstanceRegion       string `json:"InstanceRegion"`
	InstanceUin          string `json:"InstanceUin"`
	UpdateTime           string `json:"UpdateTime"`
	Enabled              bool   `json:"Enabled"`
	ExtraState           string `json:"ExtraState"`
}

func (*SCcnRouteSet) GetCidr

func (self *SCcnRouteSet) GetCidr() string

func (*SCcnRouteSet) GetEnabled

func (self *SCcnRouteSet) GetEnabled() bool

func (*SCcnRouteSet) GetGlobalId

func (self *SCcnRouteSet) GetGlobalId() string

func (*SCcnRouteSet) GetId

func (self *SCcnRouteSet) GetId() string

func (*SCcnRouteSet) GetInstanceId

func (self *SCcnRouteSet) GetInstanceId() string

func (*SCcnRouteSet) GetInstanceRegionId

func (self *SCcnRouteSet) GetInstanceRegionId() string

func (*SCcnRouteSet) GetInstanceType

func (self *SCcnRouteSet) GetInstanceType() string

func (*SCcnRouteSet) GetName

func (self *SCcnRouteSet) GetName() string

func (*SCcnRouteSet) GetStatus

func (self *SCcnRouteSet) GetStatus() string

func (*SCcnRouteSet) IsEmulated

func (self *SCcnRouteSet) IsEmulated() bool

func (*SCcnRouteSet) Refresh

func (self *SCcnRouteSet) Refresh() error

type SCcnRouteSets

type SCcnRouteSets struct {
	RouteSet   []SCcnRouteSet `json:"RouteSet"`
	TotalCount int            `json:"TotalCount"`
	RequestID  string         `json:"RequestId"`
}

type SCdnConfig

type SCdnConfig struct {
	CacheKey *SCacheKey

	RangeOriginPull *SRangeOriginPull

	Cache *SCache

	Https *SCdnHttps

	ForceRedirect *SForceRedirect

	Referer *SCdnReferer

	MaxAge *SMaxAge
}

type SCdnDomain

type SCdnDomain struct {
	multicloud.SResourceBase
	QcloudTags

	Area        string     `json:"Area"`
	Cname       string     `json:"Cname"`
	CreateTime  string     `json:"CreateTime"`
	Disable     string     `json:"Disable"`
	Domain      string     `json:"Domain"`
	Origin      SCdnOrigin `json:"Origin"`
	ProjectId   string     `json:"ProjectId"`
	Readonly    string     `json:"Readonly"`
	ResourceID  string     `json:"ResourceId"`
	ServiceType string     `json:"ServiceType"`
	Status      string     `json:"Status"`
	UpdateTime  string     `json:"UpdateTime"`
	// contains filtered or unexported fields
}

func (*SCdnDomain) Delete

func (self *SCdnDomain) Delete() error

func (*SCdnDomain) GetArea

func (self *SCdnDomain) GetArea() string

func (*SCdnDomain) GetCache

func (self *SCdnDomain) GetCache() (*cloudprovider.SCDNCache, error)

func (*SCdnDomain) GetCacheKeys

func (self *SCdnDomain) GetCacheKeys() (*cloudprovider.SCDNCacheKeys, error)

func (*SCdnDomain) GetCname

func (self *SCdnDomain) GetCname() string

func (*SCdnDomain) GetConfig

func (self *SCdnDomain) GetConfig() (*SCdnConfig, error)

func (*SCdnDomain) GetEnabled

func (self *SCdnDomain) GetEnabled() bool

func (*SCdnDomain) GetForceRedirect

func (self *SCdnDomain) GetForceRedirect() (*cloudprovider.SCDNForceRedirect, error)

func (*SCdnDomain) GetGlobalId

func (self *SCdnDomain) GetGlobalId() string

func (*SCdnDomain) GetHTTPS

func (self *SCdnDomain) GetHTTPS() (*cloudprovider.SCDNHttps, error)

func (*SCdnDomain) GetId

func (self *SCdnDomain) GetId() string

func (*SCdnDomain) GetMaxAge

func (self *SCdnDomain) GetMaxAge() (*cloudprovider.SCDNMaxAge, error)

func (*SCdnDomain) GetName

func (self *SCdnDomain) GetName() string

func (*SCdnDomain) GetOrigins

func (self *SCdnDomain) GetOrigins() *cloudprovider.SCdnOrigins

func (*SCdnDomain) GetProjectId

func (self *SCdnDomain) GetProjectId() string

func (*SCdnDomain) GetRangeOriginPull

func (self *SCdnDomain) GetRangeOriginPull() (*cloudprovider.SCDNRangeOriginPull, error)

func (*SCdnDomain) GetReferer

func (self *SCdnDomain) GetReferer() (*cloudprovider.SCDNReferer, error)

func (*SCdnDomain) GetServiceType

func (self *SCdnDomain) GetServiceType() string

func (*SCdnDomain) GetStatus

func (self *SCdnDomain) GetStatus() string

func (*SCdnDomain) Refresh

func (self *SCdnDomain) Refresh() error

func (*SCdnDomain) SetTags

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

type SCdnHttps

type SCdnHttps struct {
	Switch string
	Http2  string
}

type SCdnOrigin

type SCdnOrigin struct {
	Origins            []string `json:"Origins"`
	OriginType         string   `json:"OriginType"`
	ServerName         string   `json:"ServerName"`
	CosPrivateAccess   string   `json:"CosPrivateAccess"`
	OriginPullProtocol string   `json:"OriginPullProtocol"`
	BackupOrigins      []string `json:"BackupOrigins"`
	BackupOriginType   string   `json:"BackupOriginType"`
	BackupServerName   string   `json:"BackupServerName"`
}

type SCdnReferer

type SCdnReferer struct {
	Switch       string
	RefererRules []struct {
		RuleType    string
		RulePaths   []string
		RefererType string
		Referers    []string
		AllowEmpty  bool
	}
}

type SCertificate

type SCertificate struct {
	multicloud.SResourceBase
	QcloudTags

	CertificateID       string      `json:"CertificateId"`
	CertificateType     string      `json:"CertificateType"`
	Deployable          bool        `json:"Deployable"`
	RenewAble           bool        `json:"RenewAble"`
	OwnerUin            string      `json:"ownerUin"`
	ProjectID           string      `json:"projectId"`
	From                string      `json:"from"`
	ProductZhName       string      `json:"productZhName"`
	Domain              string      `json:"domain"`
	Alias               string      `json:"alias"`
	Status              int         `json:"status"`
	VulnerabilityStatus string      `json:"vulnerability_status"`
	CERTBeginTime       time.Time   `json:"certBeginTime"`
	CERTEndTime         time.Time   `json:"certEndTime"`
	ValidityPeriod      string      `json:"validityPeriod"`
	InsertTime          string      `json:"insertTime"`
	ProjectInfo         projectInfo `json:"projectInfo"`
	StatusName          string      `json:"status_name"`
	IsVip               bool        `json:"is_vip"`
	IsDv                bool        `json:"is_dv"`
	IsWildcard          bool        `json:"is_wildcard"`
	IsVulnerability     bool        `json:"is_vulnerability"`

	SubjectAltName        []string `json:"subjectAltName"`
	CertificatePrivateKey string   `json:"CertificatePrivateKey"`
	CertificatePublicKey  string   `json:"CertificatePublicKey"`
	CertFingerprint       string   `json:"CertFingerprint"`
	// contains filtered or unexported fields
}

https://cloud.tencent.com/document/api/400/13675

func (*SCertificate) Delete

func (self *SCertificate) Delete() error

func (*SCertificate) GetCert

func (self *SCertificate) GetCert() string

func (*SCertificate) GetCity

func (self *SCertificate) GetCity() string

func (*SCertificate) GetCommon

func (self *SCertificate) GetCommon() string

func (*SCertificate) GetCommonName

func (self *SCertificate) GetCommonName() string

func (*SCertificate) GetCountry

func (self *SCertificate) GetCountry() string

func (*SCertificate) GetDetails

func (self *SCertificate) GetDetails() (*SCertificate, error)

func (*SCertificate) GetEndDate

func (self *SCertificate) GetEndDate() time.Time

func (*SCertificate) GetExpireTime

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

func (*SCertificate) GetExpired

func (self *SCertificate) GetExpired() bool

func (*SCertificate) GetFingerprint

func (self *SCertificate) GetFingerprint() string

func (*SCertificate) GetGlobalId

func (self *SCertificate) GetGlobalId() string

func (*SCertificate) GetId

func (self *SCertificate) GetId() string

func (*SCertificate) GetIsUpload

func (self *SCertificate) GetIsUpload() bool

func (*SCertificate) GetIssuer

func (self *SCertificate) GetIssuer() string

func (*SCertificate) GetKey

func (self *SCertificate) GetKey() string

func (*SCertificate) GetName

func (self *SCertificate) GetName() string

func (*SCertificate) GetOrgName

func (self *SCertificate) GetOrgName() string

func (*SCertificate) GetPrivateKey

func (self *SCertificate) GetPrivateKey() string

func (*SCertificate) GetProjectId

func (self *SCertificate) GetProjectId() string

func (*SCertificate) GetProvince

func (self *SCertificate) GetProvince() string

func (*SCertificate) GetPublickKey

func (self *SCertificate) GetPublickKey() string

func (*SCertificate) GetSans

func (self *SCertificate) GetSans() string

func (*SCertificate) GetStartDate

func (self *SCertificate) GetStartDate() time.Time

func (*SCertificate) GetStatus

func (self *SCertificate) GetStatus() string

todo: 貌似目前onecloud没有记录状态

func (*SCertificate) GetSubjectAlternativeNames

func (self *SCertificate) GetSubjectAlternativeNames() string

func (*SCertificate) IsEmulated

func (self *SCertificate) IsEmulated() bool

func (*SCertificate) Refresh

func (self *SCertificate) Refresh() error

func (*SCertificate) Sync

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

证书不能修改

type SColumnPrivilege

type SColumnPrivilege struct {
	Database   string
	Table      string
	Column     string
	Privileges []string
}

type SDBInstanceSku

type SDBInstanceSku struct {
	Region        string
	Engine        string
	EngineVersion string
	Category      string
	Iops          int
	Qps           int
	MaxConnection int
	Cpu           int
	MemoryMb      int
	StorageType   string
	StorageMin    int
	StorageMax    int
	StorageStep   int
	Status        string
	Description   string
	Zone1         string
	Zone2         string
	Zone3         string
}

type SDBSecgroup

type SDBSecgroup struct {
	ProjectId           int
	CreateTime          time.Time
	SecurityGroupId     string
	SecurityGroupName   string
	SecurityGroupRemark string
}

type SDTable

type SDTable struct {
	multicloud.SResourceBase
	QcloudTags

	CreatedTime      string `json:"CreatedTime"`
	Description      string `json:"Description"`
	IpProtocol       string `json:"IpProtocol"`
	NatGatewayId     string `json:"NatGatewayId"`
	PrivateIpAddress string `json:"PrivateIpAddress"`
	PrivatePort      int    `json:"PrivatePort"`
	PublicIpAddress  string `json:"PublicIpAddress"`
	PublicPort       int    `json:"PublicPort"`
	VpcId            string `json:"VpcId"`
	// contains filtered or unexported fields
}

func (*SDTable) Delete

func (table *SDTable) Delete() error

func (*SDTable) GetExternalIp

func (table *SDTable) GetExternalIp() string

func (*SDTable) GetExternalPort

func (table *SDTable) GetExternalPort() int

func (*SDTable) GetGlobalId

func (table *SDTable) GetGlobalId() string

func (*SDTable) GetId

func (table *SDTable) GetId() string

func (*SDTable) GetInternalIp

func (table *SDTable) GetInternalIp() string

func (*SDTable) GetInternalPort

func (table *SDTable) GetInternalPort() int

func (*SDTable) GetIpProtocol

func (table *SDTable) GetIpProtocol() string

func (*SDTable) GetName

func (table *SDTable) GetName() string

func (*SDTable) GetStatus

func (table *SDTable) GetStatus() string

type SDataPoint

type SDataPoint struct {
	Dimensions []SQcMetricDimension `json:"Dimensions"`
	Timestamps []float64            `json:"Timestamps"`
	Values     []float64            `json:"Values"`
}

type SDatabasePrivilege

type SDatabasePrivilege struct {
	Privileges []string
	Database   string
}

type SDescribeTag

type SDescribeTag struct {
	TagKey   string `json:"TagKey"`
	TagValue string `json:"TagValue"`
}

type SDescribeTagsSeqResponse

type SDescribeTagsSeqResponse struct {
	SListInfo
	Tags []SDescribeTag `json:"Tags"`
}

type SDisk

type SDisk struct {
	multicloud.SDisk
	QcloudTags

	Attached             bool
	AutoRenewFlagError   bool
	CreateTime           time.Time
	DeadlineError        bool
	DeadlineTime         time.Time
	DifferDaysOfDeadline int
	DiskChargeType       string
	DiskId               string
	DiskName             string
	DiskSize             int
	DiskState            string
	DiskType             string
	DiskUsage            string
	Encrypt              bool
	InstanceId           string
	IsReturnable         bool
	Placement            Placement
	Portable             bool
	RenewFlag            string
	ReturnFailCode       int
	RollbackPercent      int
	Rollbacking          bool
	SnapshotAbility      bool
	DeleteWithInstance   bool
	// 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) GetISnapshot

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

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

type SDiskConfigSet struct {
	Available      bool
	DeviceClass    string
	DiskChargeType string
	DiskType       string
	DiskUsage      string
	InstanceFamily string
	MaxDiskSize    int
	MinDiskSize    int
	Zone           string
}

type SDiskSet

type SDiskSet []SDisk

func (SDiskSet) Len

func (v SDiskSet) Len() int

func (SDiskSet) Less

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

func (SDiskSet) Swap

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

type SDnsRecord

type SDnsRecord struct {
	Line          string `json:"Line"`
	LineId        string `json:"LineId"`
	MX            int64  `json:"MX"`
	MonitorStatus string `json:"MonitorStatus"`
	Name          string `json:"Name"`
	RecordId      int64  `json:"RecordId"`
	Remark        string `json:"Remark"`
	Status        string `json:"Status"`
	TTL           int64  `json:"TTL"`
	Type          string `json:"Type"`
	UpdatedOn     string `json:"UpdatedOn"`
	Value         string `json:"Value"`
	// contains filtered or unexported fields
}

func (*SDnsRecord) Delete

func (self *SDnsRecord) Delete() error

func (*SDnsRecord) Disable

func (self *SDnsRecord) Disable() error

func (*SDnsRecord) Enable

func (self *SDnsRecord) Enable() error

func (*SDnsRecord) GetDnsName

func (self *SDnsRecord) GetDnsName() string

func (*SDnsRecord) GetDnsType

func (self *SDnsRecord) GetDnsType() cloudprovider.TDnsType

func (*SDnsRecord) GetDnsValue

func (self *SDnsRecord) GetDnsValue() string

func (*SDnsRecord) GetEnabled

func (self *SDnsRecord) GetEnabled() bool

func (*SDnsRecord) GetGlobalId

func (self *SDnsRecord) GetGlobalId() string

func (*SDnsRecord) GetMxPriority

func (self *SDnsRecord) GetMxPriority() int64

func (*SDnsRecord) GetPolicyType

func (self *SDnsRecord) GetPolicyType() cloudprovider.TDnsPolicyType

func (*SDnsRecord) GetPolicyValue

func (self *SDnsRecord) GetPolicyValue() cloudprovider.TDnsPolicyValue

func (*SDnsRecord) GetStatus

func (self *SDnsRecord) GetStatus() string

func (*SDnsRecord) GetTTL

func (self *SDnsRecord) GetTTL() int64

func (*SDnsRecord) Update

func (self *SDnsRecord) Update(opts *cloudprovider.DnsRecord) error

type SDomains

type SDomains struct {
	RequestID   string       `json:"RequestId"`
	Domains     []SCdnDomain `json:"Domains"`
	TotalNumber int          `json:"TotalNumber"`
}

type SDomian

type SDomian struct {
	multicloud.SVirtualResourceBase
	QcloudTags

	CNAMESpeedup     string   `json:"CNAMESpeedup"`
	CreatedOn        string   `json:"CreatedOn"`
	DNSStatus        string   `json:"DNSStatus"`
	DomainId         int      `json:"DomainId"`
	EffectiveDNS     []string `json:"EffectiveDNS"`
	Grade            string   `json:"Grade"`
	GradeLevel       int64    `json:"GradeLevel"`
	GradeTitle       string   `json:"GradeTitle"`
	GroupId          int64    `json:"GroupId"`
	IsVip            string   `json:"IsVip"`
	Name             string   `json:"Name"`
	Owner            string   `json:"Owner"`
	Punycode         string   `json:"Punycode"`
	RecordCount      int64    `json:"RecordCount"`
	Remark           string   `json:"Remark"`
	SearchEnginePush string   `json:"SearchEnginePush"`
	Status           string   `json:"Status"`
	TTL              int64    `json:"TTL"`
	UpdatedOn        string   `json:"UpdatedOn"`
	VipAutoRenew     string   `json:"VipAutoRenew"`
	VipEndAt         string   `json:"VipEndAt"`
	VipStartAt       string   `json:"VipStartAt"`
	// contains filtered or unexported fields
}

func (*SDomian) AddDnsRecord

func (self *SDomian) AddDnsRecord(opts *cloudprovider.DnsRecord) (string, error)

func (*SDomian) AddVpc

func (self *SDomian) AddVpc(vpc *cloudprovider.SPrivateZoneVpc) error

func (*SDomian) Delete

func (self *SDomian) Delete() error

func (*SDomian) GetDnsProductType

func (self *SDomian) GetDnsProductType() cloudprovider.TDnsProductType

func (*SDomian) GetEnabled

func (self *SDomian) GetEnabled() bool

func (*SDomian) GetGlobalId

func (self *SDomian) GetGlobalId() string

func (*SDomian) GetICloudVpcIds

func (self *SDomian) GetICloudVpcIds() ([]string, error)

func (*SDomian) GetIDnsRecordById

func (self *SDomian) GetIDnsRecordById(id string) (cloudprovider.ICloudDnsRecord, error)

func (*SDomian) GetIDnsRecords

func (self *SDomian) GetIDnsRecords() ([]cloudprovider.ICloudDnsRecord, error)

func (*SDomian) GetId

func (self *SDomian) GetId() string

func (*SDomian) GetName

func (self *SDomian) GetName() string

func (*SDomian) GetStatus

func (self *SDomian) GetStatus() string

func (*SDomian) GetZoneType

func (self *SDomian) GetZoneType() cloudprovider.TDnsZoneType

func (*SDomian) Refresh

func (self *SDomian) Refresh() error

func (*SDomian) RemoveVpc

func (self *SDomian) RemoveVpc(vpc *cloudprovider.SPrivateZoneVpc) error

type SDrInfo

type SDrInfo struct {
	Status       int
	Zone         string
	InstanceId   string
	Region       string
	SyncStatus   string
	InstanceName string
	InstanceType string
}

type SEipAddress

type SEipAddress struct {
	multicloud.SEipBase
	QcloudTags

	AddressId             string    //	EIP的ID,是EIP的唯一标识。
	AddressName           string    //	EIP名称。
	AddressStatus         string    //	EIP状态。
	AddressIp             string    //	外网IP地址
	InstanceId            string    //	绑定的资源实例ID。可能是一个CVM,NAT。
	CreatedTime           time.Time //	创建时间。按照ISO8601标准表示,并且使用UTC时间。格式为:YYYY-MM-DDThh:mm:ssZ。
	NetworkInterfaceId    string    //	绑定的弹性网卡ID
	PrivateAddressIp      string    //	绑定的资源内网ip
	IsArrears             bool      //	资源隔离状态。true表示eip处于隔离状态,false表示资源处于未隔离装填
	IsBlocked             bool      //	资源封堵状态。true表示eip处于封堵状态,false表示eip处于未封堵状态
	IsEipDirectConnection bool      //	eip是否支持直通模式。true表示eip支持直通模式,false表示资源不支持直通模式
	AddressType           string    //	eip资源类型,包括"CalcIP","WanIP","EIP","AnycastEIP"。其中"CalcIP"表示设备ip,“WanIP”表示普通公网ip,“EIP”表示弹性公网ip,“AnycastEip”表示加速EIP
	CascadeRelease        bool      //	eip是否在解绑后自动释放。true表示eip将会在解绑后自动释放,false表示eip在解绑后不会自动释放
	Bandwidth             int
	InternetChargeType    string
	// 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

func (*SEipAddress) SetTags

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

type SElasticSearch

type SElasticSearch struct {
	multicloud.SVirtualResourceBase
	multicloud.SBillingBase
	QcloudTags

	InstanceId   string
	InstanceName string
	Region       string
	Zone         string
	AppId        int
	Uin          string
	VpcUid       string
	SubnetUid    string
	Status       int
	ChargeType   string
	ChargePeriod int
	RenewFlag    string
	NodeType     string
	NodeNum      int
	CpuNum       int
	MemSize      int
	DiskType     string
	DiskSize     int
	EsDomain     string
	EsVip        string
	EsPort       int
	KibanaUrl    string
	EsVersion    string
	EsConfig     string
	EsAcl        struct {
		BlackIpList []string
		WhiteIpList []string
	}
	CreateTime   time.Time
	UpdateTime   time.Time
	Deadline     string
	InstanceType int
	IkConfig     struct {
		MainDict []struct {
			Key  string
			Name string
			Size int
		}
		Stopwords []struct {
			Key  string
			Name string
			Size int
		}
		QQDict []struct {
			Key  string
			Name string
			Size int
		}
		Synonym []struct {
			Key  string
			Name string
			Size int
		}
		UpdateType string
	}
	MasterNodeInfo struct {
		EnableDedicatedMaster bool
		MasterNodeType        string
		MasterNodeNum         int
		MasterNodeCpuNum      int
		MasterNodeMemSize     int
		MasterNodeDiskSize    int
		MasterNodeDiskType    string
	}
	CosBackup struct {
		IsAutoBackup bool
		BackupTime   string
	}
	AllowCosBackup    bool
	LicenseType       string
	EnableHotWarmMode bool
	WarmNodeType      string
	WarmNodeNum       int
	WarmCpuNum        int
	WarmMemSize       int
	WarmDiskType      string
	WarmDiskSize      int
	NodeInfoList      []struct {
		NodeNum       int
		NodeType      string
		Type          string
		DiskType      string
		DiskSize      int
		LocalDiskInfo struct {
			LocalDiskType  string
			LocalDiskSize  int
			LocalDiskCount int
		}
		DiskCount   int
		DiskEncrypt int
	}
	EsPublicUrl   string
	MultiZoneInfo []struct {
		Zone     string
		SubnetId string
	}
	DeployMode   int
	PublicAccess string
	EsPublicAcl  struct {
		BlackIpList []string
		WhiteIpList []string
	}
	KibanaPrivateUrl    string
	KibanaPublicAccess  string
	KibanaPrivateAccess string
	SecurityType        int
	SceneType           int
	KibanaConfig        string
	KibanaNodeInfo      struct {
		KibanaNodeType     string
		KibanaNodeNum      int
		KibanaNodeCpuNum   int
		KibanaNodeMemSize  int
		KibanaNodeDiskType string
		KibanaNodeDiskSize int
	}
	// contains filtered or unexported fields
}

func (*SElasticSearch) Delete

func (self *SElasticSearch) Delete() error

func (*SElasticSearch) GetAccessInfo

func (self *SElasticSearch) GetAccessInfo() (*cloudprovider.ElasticSearchAccessInfo, error)

func (*SElasticSearch) GetBillingType

func (self *SElasticSearch) GetBillingType() string

func (*SElasticSearch) GetCategory

func (self *SElasticSearch) GetCategory() string

func (*SElasticSearch) GetCreatedAt

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

func (*SElasticSearch) GetDiskSizeGb

func (self *SElasticSearch) GetDiskSizeGb() int

func (*SElasticSearch) GetGlobalId

func (self *SElasticSearch) GetGlobalId() string

func (*SElasticSearch) GetId

func (self *SElasticSearch) GetId() string

func (*SElasticSearch) GetInstanceType

func (self *SElasticSearch) GetInstanceType() string

func (*SElasticSearch) GetName

func (self *SElasticSearch) GetName() string

func (*SElasticSearch) GetNetworkId

func (self *SElasticSearch) GetNetworkId() string

func (*SElasticSearch) GetStatus

func (self *SElasticSearch) GetStatus() string

func (*SElasticSearch) GetStorageType

func (self *SElasticSearch) GetStorageType() string

func (*SElasticSearch) GetVcpuCount

func (self *SElasticSearch) GetVcpuCount() int

func (*SElasticSearch) GetVersion

func (self *SElasticSearch) GetVersion() string

func (*SElasticSearch) GetVmemSizeGb

func (self *SElasticSearch) GetVmemSizeGb() int

func (*SElasticSearch) GetVpcId

func (self *SElasticSearch) GetVpcId() string

func (*SElasticSearch) GetZoneId

func (self *SElasticSearch) GetZoneId() string

func (*SElasticSearch) IsAutoRenew

func (self *SElasticSearch) IsAutoRenew() bool

func (*SElasticSearch) IsMultiAz

func (self *SElasticSearch) IsMultiAz() bool

func (*SElasticSearch) Refresh

func (self *SElasticSearch) Refresh() error

func (*SElasticSearch) SetTags

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

type SElasticcache

type SElasticcache struct {
	multicloud.SElasticcacheBase
	QcloudTags

	ClientLimit      int
	ClientLimitMax   int
	ClientLimitMin   int
	MaintenanceTime  *MaintenanceTime `json:"maintenance_time"`
	NoAuth           *bool            `json:"no_auth"`
	NodeSet          []NodeSet        `json:"NodeSet"`
	Appid            int64            `json:"Appid"`
	AutoRenewFlag    int64            `json:"AutoRenewFlag"`
	BillingMode      int64            `json:"BillingMode"`
	CloseTime        string           `json:"CloseTime"`
	Createtime       time.Time        `json:"Createtime"`
	DeadlineTime     string           `json:"DeadlineTime"`
	Engine           string           `json:"Engine"`
	InstanceID       string           `json:"InstanceId"`
	InstanceName     string           `json:"InstanceName"`
	InstanceNode     []interface{}    `json:"InstanceNode"`
	InstanceTitle    string           `json:"InstanceTitle"`
	OfflineTime      string           `json:"OfflineTime"`
	Port             int              `json:"Port"`
	PriceID          int64            `json:"PriceId"`
	ProductType      string           `json:"ProductType"`
	ProjectID        int              `json:"ProjectId"`
	RedisReplicasNum int              `json:"RedisReplicasNum"`
	RedisShardNum    int64            `json:"RedisShardNum"`
	RedisShardSize   int64            `json:"RedisShardSize"` // MB
	DiskSize         int64            `json:"disk_size"`
	RegionID         int64            `json:"RegionId"`
	Size             int              `json:"Size"`
	SizeUsed         int64            `json:"SizeUsed"`
	SlaveReadWeight  int64            `json:"SlaveReadWeight"`
	Status           int              `json:"Status"`
	SubStatus        int64            `json:"SubStatus"`
	SubnetID         int64            `json:"SubnetId"`
	Type             int              `json:"Type"`
	UniqSubnetID     string           `json:"UniqSubnetId"`
	UniqVpcID        string           `json:"UniqVpcId"`
	VpcID            int64            `json:"VpcId"`
	WANIP            string           `json:"WanIp"`
	ZoneID           int              `json:"ZoneId"`
	// contains filtered or unexported fields
}

func (*SElasticcache) AllocatePublicConnection

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

func (*SElasticcache) ChangeInstanceSpec

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

https://cloud.tencent.com/document/product/239/20013

func (*SElasticcache) CleanupInstance

func (self *SElasticcache) CleanupInstance() error

https://cloud.tencent.com/document/product/239/34442

func (*SElasticcache) CreateAcl

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

func (*SElasticcache) DestroyPostpaidInstance

func (self *SElasticcache) DestroyPostpaidInstance() error

https://cloud.tencent.com/document/product/239/34439

func (*SElasticcache) DestroyPrepaidInstance

func (self *SElasticcache) DestroyPrepaidInstance() error

https://cloud.tencent.com/document/product/239/34439

func (*SElasticcache) GetArchType

func (self *SElasticcache) GetArchType() string

func (*SElasticcache) GetAuthMode

func (self *SElasticcache) GetAuthMode() string

func (*SElasticcache) GetBillingType

func (self *SElasticcache) GetBillingType() string

func (*SElasticcache) GetCapacityMB

func (self *SElasticcache) GetCapacityMB() int

func (*SElasticcache) GetConnections

func (self *SElasticcache) GetConnections() int

func (*SElasticcache) GetCreatedAt

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

func (*SElasticcache) GetEngine

func (self *SElasticcache) GetEngine() string

func (*SElasticcache) GetEngineVersion

func (self *SElasticcache) GetEngineVersion() string

func (*SElasticcache) GetExpiredAt

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

func (*SElasticcache) GetGlobalId

func (self *SElasticcache) GetGlobalId() string

func (*SElasticcache) GetICloudElasticcacheAccount

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

func (*SElasticcache) GetICloudElasticcacheAccounts

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

func (*SElasticcache) GetICloudElasticcacheAcl

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

func (*SElasticcache) GetICloudElasticcacheAcls

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

func (*SElasticcache) GetICloudElasticcacheBackup

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

func (*SElasticcache) GetICloudElasticcacheBackupByReadmark

func (self *SElasticcache) GetICloudElasticcacheBackupByReadmark(readmark string) (cloudprovider.ICloudElasticcacheBackup, error)

func (*SElasticcache) GetICloudElasticcacheBackups

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

func (*SElasticcache) GetICloudElasticcacheParameters

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

func (*SElasticcache) GetId

func (self *SElasticcache) GetId() string

func (*SElasticcache) GetInstanceType

func (self *SElasticcache) GetInstanceType() string
redis:master:s1:r5:m1g:v4.0

实例类型:2 – Redis2.8内存版(标准架构),3 – CKV 3.2内存版(标准架构),4 – CKV 3.2内存版(集群架构) ,6 – Redis4.0内存版(标准架构),7 – Redis4.0内存版(集群架构),

8 – Redis5.0内存版(标准架构),9 – Redis5.0内存版(集群架构)

func (*SElasticcache) GetMaintainEndTime

func (self *SElasticcache) GetMaintainEndTime() string

func (*SElasticcache) GetMaintainStartTime

func (self *SElasticcache) GetMaintainStartTime() string

func (*SElasticcache) GetName

func (self *SElasticcache) GetName() string

func (*SElasticcache) GetNetworkId

func (self *SElasticcache) GetNetworkId() string

func (*SElasticcache) GetNetworkType

func (self *SElasticcache) GetNetworkType() string

func (*SElasticcache) GetNodeType

func (self *SElasticcache) GetNodeType() string

func (*SElasticcache) GetPrivateConnectPort

func (self *SElasticcache) GetPrivateConnectPort() int

func (*SElasticcache) GetPrivateDNS

func (self *SElasticcache) GetPrivateDNS() string

func (*SElasticcache) GetPrivateIpAddr

func (self *SElasticcache) GetPrivateIpAddr() string

func (*SElasticcache) GetProjectId

func (self *SElasticcache) GetProjectId() string

func (*SElasticcache) GetPublicConnectPort

func (self *SElasticcache) GetPublicConnectPort() int

func (*SElasticcache) GetPublicDNS

func (self *SElasticcache) GetPublicDNS() string

func (*SElasticcache) GetPublicIpAddr

func (self *SElasticcache) GetPublicIpAddr() string

func (*SElasticcache) GetSecurityGroupIds

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

func (*SElasticcache) GetStatus

func (self *SElasticcache) GetStatus() string

https://cloud.tencent.com/document/api/239/20022#InstanceSet 实例当前状态,0:待初始化;1:实例在流程中;2:实例运行中;-2:实例已隔离;-3:实例待删除

func (*SElasticcache) GetVpcId

func (self *SElasticcache) GetVpcId() string

func (*SElasticcache) IsAutoRenew

func (self *SElasticcache) IsAutoRenew() bool

func (*SElasticcache) IsEmulated

func (self *SElasticcache) IsEmulated() bool

func (*SElasticcache) Refresh

func (self *SElasticcache) Refresh() error

func (*SElasticcache) ReleasePublicConnection

func (self *SElasticcache) ReleasePublicConnection() error

func (*SElasticcache) Renew

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

func (*SElasticcache) Restart

func (self *SElasticcache) Restart() error

func (*SElasticcache) SetMaintainTime

func (self *SElasticcache) SetMaintainTime(maintainStartTime, maintainEndTime string) error

https://cloud.tencent.com/document/product/239/46335

func (*SElasticcache) SetTags

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

func (*SElasticcache) UpdateAuthMode

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

https://cloud.tencent.com/document/product/239/38923 https://cloud.tencent.com/document/product/239/20014 true表示将主账号切换为免密账号,这里只适用于主账号,子账号不可免密

func (*SElasticcache) UpdateBackupPolicy

func (*SElasticcache) UpdateInstanceParameters

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

https://cloud.tencent.com/document/product/239/34445 todo: finish me

func (*SElasticcache) UpdateSecurityGroups

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

https://cloud.tencent.com/document/api/239/41256

type SElasticcacheAccount

type SElasticcacheAccount struct {
	multicloud.SElasticcacheAccountBase
	QcloudTags

	InstanceID     string   `json:"InstanceId"`
	AccountName    string   `json:"AccountName"`
	Remark         string   `json:"Remark"`
	Privilege      string   `json:"Privilege"`
	ReadonlyPolicy []string `json:"ReadonlyPolicy"`
	Status         int      `json:"Status"`
	IsEmulate      bool     `json:"is_emulate"`
	// contains filtered or unexported fields
}

func (*SElasticcacheAccount) Delete

func (self *SElasticcacheAccount) Delete() error

https://cloud.tencent.com/document/product/239/38925

func (*SElasticcacheAccount) GetAccountPrivilege

func (self *SElasticcacheAccount) GetAccountPrivilege() string

func (*SElasticcacheAccount) GetAccountType

func (self *SElasticcacheAccount) GetAccountType() string

func (*SElasticcacheAccount) GetGlobalId

func (self *SElasticcacheAccount) GetGlobalId() string

func (*SElasticcacheAccount) GetId

func (self *SElasticcacheAccount) GetId() string

func (*SElasticcacheAccount) GetName

func (self *SElasticcacheAccount) GetName() string

func (*SElasticcacheAccount) GetStatus

func (self *SElasticcacheAccount) GetStatus() string

func (*SElasticcacheAccount) IsEmulated

func (self *SElasticcacheAccount) IsEmulated() bool

func (*SElasticcacheAccount) Refresh

func (self *SElasticcacheAccount) Refresh() error

type SElasticcacheBackup

type SElasticcacheBackup struct {
	multicloud.SElasticcacheBackupBase
	QcloudTags

	StartTime  time.Time `json:"StartTime"`
	BackupID   string    `json:"BackupId"`
	BackupType string    `json:"BackupType"`
	Status     int       `json:"Status"`
	Remark     string    `json:"Remark"`
	Locked     int64     `json:"Locked"`
	// contains filtered or unexported fields
}

func (*SElasticcacheBackup) Delete

func (self *SElasticcacheBackup) Delete() error

func (*SElasticcacheBackup) GetBackupDownloadURL

func (self *SElasticcacheBackup) GetBackupDownloadURL() (string, error)

func (*SElasticcacheBackup) GetBackupMode

func (self *SElasticcacheBackup) GetBackupMode() string

func (*SElasticcacheBackup) GetBackupSizeMb

func (self *SElasticcacheBackup) GetBackupSizeMb() int

func (*SElasticcacheBackup) GetBackupType

func (self *SElasticcacheBackup) GetBackupType() string

func (*SElasticcacheBackup) GetDownloadURL

func (self *SElasticcacheBackup) GetDownloadURL() string

https://cloud.tencent.com/document/api/239/34443

func (*SElasticcacheBackup) GetEndTime

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

func (*SElasticcacheBackup) GetGlobalId

func (self *SElasticcacheBackup) GetGlobalId() string

func (*SElasticcacheBackup) GetId

func (self *SElasticcacheBackup) GetId() string

func (*SElasticcacheBackup) GetName

func (self *SElasticcacheBackup) GetName() string

func (*SElasticcacheBackup) GetStartTime

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

func (*SElasticcacheBackup) GetStatus

func (self *SElasticcacheBackup) GetStatus() string

ELASTIC_CACHE_BACKUP_STATUS_CREATING = "creating" // 备份中 ELASTIC_CACHE_BACKUP_STATUS_CREATE_EXPIRED = "expired" //(备份文件已过期) ELASTIC_CACHE_BACKUP_STATUS_CREATE_DELETED = "deleted" //(备份文件已删除) ELASTIC_CACHE_BACKUP_STATUS_DELETING = "deleting" // 删除中 ELASTIC_CACHE_BACKUP_STATUS_SUCCESS = "success" // 备份成功 ELASTIC_CACHE_BACKUP_STATUS_FAILED = "failed" // 备份失败

func (*SElasticcacheBackup) Refresh

func (self *SElasticcacheBackup) Refresh() error

func (*SElasticcacheBackup) RestoreInstance

func (self *SElasticcacheBackup) RestoreInstance(instanceId string) error

https://cloud.tencent.com/document/product/239/34435 todo: password

type SElasticcacheDeal

type SElasticcacheDeal struct {
	DealID      string   `json:"DealId"`
	DealName    string   `json:"DealName"`
	ZoneID      int64    `json:"ZoneId"`
	GoodsNum    int64    `json:"GoodsNum"`
	Creater     string   `json:"Creater"`
	CreatTime   string   `json:"CreatTime"`
	OverdueTime string   `json:"OverdueTime"`
	EndTime     string   `json:"EndTime"`
	Status      int64    `json:"Status"`
	Description string   `json:"Description"`
	Price       int64    `json:"Price"`
	InstanceIDS []string `json:"InstanceIds"`
	// contains filtered or unexported fields
}

type SElasticcacheParameter

type SElasticcacheParameter struct {
	multicloud.SElasticcacheParameterBase
	QcloudTags

	CurrentValue string   `json:"CurrentValue"`
	DefaultValue string   `json:"DefaultValue"`
	EnumValue    []string `json:"EnumValue,omitempty"`
	NeedRestart  string   `json:"NeedRestart"`
	ParamName    string   `json:"ParamName"`
	Tips         string   `json:"Tips"`
	ValueType    string   `json:"ValueType"`
	Max          *string  `json:"Max,omitempty"`
	Min          *string  `json:"Min,omitempty"`
	TextValue    []string `json:"TextValue,omitempty"`
	// contains filtered or unexported fields
}

func (*SElasticcacheParameter) GetDescription

func (self *SElasticcacheParameter) GetDescription() string

func (*SElasticcacheParameter) GetForceRestart

func (self *SElasticcacheParameter) GetForceRestart() bool

func (*SElasticcacheParameter) GetGlobalId

func (self *SElasticcacheParameter) GetGlobalId() string

func (*SElasticcacheParameter) GetId

func (self *SElasticcacheParameter) GetId() string

func (*SElasticcacheParameter) GetModifiable

func (self *SElasticcacheParameter) GetModifiable() bool

func (*SElasticcacheParameter) GetName

func (self *SElasticcacheParameter) GetName() string

func (*SElasticcacheParameter) GetParameterKey

func (self *SElasticcacheParameter) GetParameterKey() string

func (*SElasticcacheParameter) GetParameterValue

func (self *SElasticcacheParameter) GetParameterValue() string

func (*SElasticcacheParameter) GetParameterValueRange

func (self *SElasticcacheParameter) GetParameterValueRange() string

func (*SElasticcacheParameter) GetStatus

func (self *SElasticcacheParameter) GetStatus() string

type SElasticcacheParameters

type SElasticcacheParameters struct {
	multicloud.SElasticcacheParameterBase
	QcloudTags

	InstanceEnumParam    []SElasticcacheParameter `json:"InstanceEnumParam"`
	InstanceIntegerParam []SElasticcacheParameter `json:"InstanceIntegerParam"`
	InstanceTextParam    []SElasticcacheParameter `json:"InstanceTextParam"`
	RequestID            string                   `json:"RequestId"`
	TotalCount           int64                    `json:"TotalCount"`
	// contains filtered or unexported fields
}

type SElasticcacheSecgroup

type SElasticcacheSecgroup struct {
	multicloud.SElasticcacheBackupBase

	CreateTime          string      `json:"CreateTime"`
	InboundRule         []BoundRule `json:"InboundRule"`
	OutboundRule        []BoundRule `json:"OutboundRule"`
	ProjectID           int64       `json:"ProjectId"`
	SecurityGroupID     string      `json:"SecurityGroupId"`
	SecurityGroupName   string      `json:"SecurityGroupName"`
	SecurityGroupRemark string      `json:"SecurityGroupRemark"`
	// contains filtered or unexported fields
}

type SElasticcacheTask

type SElasticcacheTask struct {
	Status      string `json:"Status"`
	StartTime   string `json:"StartTime"`
	TaskType    string `json:"TaskType"`
	InstanceID  string `json:"InstanceId"`
	TaskMessage string `json:"TaskMessage"`
	RequestID   string `json:"RequestId"`
}

type SEvent

type SEvent struct {
	AccountID       int64
	CloudAuditEvent string
	ErrorCode       int
	EventId         string
	EventName       string
	EventNameCn     string
	EventRegion     string
	EventSource     string
	EventTime       int64
	RequestID       string
	ResourceRegion  string
	ResourceTypeCn  string
	Resources       map[string]string
	SecretId        string
	SourceIPAddress string
	Username        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 SExternal

type SExternal struct {
	ReleaseAddress    string
	UnsupportNetworks []string
	StorageBlockAttr  SStorageBlockAttr
}

type SFetchTagResponse

type SFetchTagResponse struct {
	SListInfo
	Tags []SFetchTagRow `json:"Tags"`
}

type SFetchTagRow

type SFetchTagRow struct {
	ServiceType string `json:"ServiceType"`
	TagKey      string `json:"TagKey"`
	TagKeyMd5   string `json:"TagKeyMd5"`
	TagValue    string `json:"TagValue"`
	TagValueMd5 string `json:"TagValueMd5"`
	ResourceId  string `json:"ResourceId"`
}

type SForceRedirect

type SForceRedirect struct {
	Switch       string
	RedirectType string
}

type SGroup

type SGroup struct {
	GroupId    int
	GroupName  string
	CreateTime time.Time
	// contains filtered or unexported fields
}

func (*SGroup) AddUser

func (self *SGroup) AddUser(name string) error

func (*SGroup) AttachCustomPolicy

func (self *SGroup) AttachCustomPolicy(policyId string) error

func (*SGroup) AttachSystemPolicy

func (self *SGroup) AttachSystemPolicy(policyId string) error

func (*SGroup) Delete

func (self *SGroup) Delete() error

func (*SGroup) DetachCustomPolicy

func (self *SGroup) DetachCustomPolicy(policyId string) error

func (*SGroup) DetachSystemPolicy

func (self *SGroup) DetachSystemPolicy(policyId string) error

func (*SGroup) GetDescription

func (self *SGroup) GetDescription() string

func (*SGroup) GetGlobalId

func (self *SGroup) GetGlobalId() string

func (*SGroup) GetICloudusers

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

func (*SGroup) GetICustomCloudpolicies

func (self *SGroup) GetICustomCloudpolicies() ([]cloudprovider.ICloudpolicy, error)

func (*SGroup) GetISystemCloudpolicies

func (self *SGroup) GetISystemCloudpolicies() ([]cloudprovider.ICloudpolicy, error)

func (*SGroup) GetName

func (self *SGroup) GetName() string

func (*SGroup) ListGroupPolicies

func (self *SGroup) ListGroupPolicies() ([]SPolicy, error)

func (*SGroup) RemoveUser

func (self *SGroup) RemoveUser(name string) error

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(gid string) (cloudprovider.ICloudVM, error)

func (*SHost) GetIVMs

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

func (*SHost) GetId

func (self *SHost) GetId() string

func (*SHost) GetInstanceById

func (self *SHost) GetInstanceById(instanceId string) (*SInstance, error)

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 SImage

type SImage struct {
	multicloud.SImageBase
	QcloudTags

	ImageId            string          //	镜像ID
	OsName             string          //	镜像操作系统
	ImageType          string          //	镜像类型
	CreatedTime        time.Time       //	镜像创建时间
	ImageName          string          //	镜像名称
	ImageDescription   string          //	镜像描述
	ImageSize          int             //	镜像大小
	Architecture       string          //	镜像架构
	ImageState         ImageStatusType //	镜像状态
	Platform           string          //	镜像来源平台
	ImageCreator       string          //	镜像创建者
	ImageSource        string          //	镜像来源
	SyncPercent        int             //	同步百分比
	IsSupportCloudinit bool            //	镜像是否支持cloud-init
	// contains filtered or unexported fields
}

func (*SImage) Delete

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

func (*SImage) GetBios

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

func (*SImage) GetCreatedAt

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

func (*SImage) GetFullOsName

func (img *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 (img *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) IsEmulated

func (self *SImage) IsEmulated() bool

func (*SImage) Refresh

func (self *SImage) Refresh() error

type SInstance

type SInstance struct {
	multicloud.SInstanceBase
	QcloudTags

	Placement           Placement
	InstanceId          string
	InstanceType        string
	CPU                 int
	Memory              int
	RestrictState       string //NORMAL EXPIRED PROTECTIVELY_ISOLATED
	InstanceName        string
	InstanceChargeType  InstanceChargeType  //PREPAID:表示预付费,即包年包月 POSTPAID_BY_HOUR:表示后付费,即按量计费 CDHPAID:CDH付费,即只对CDH计费,不对CDH上的实例计费。
	SystemDisk          SystemDisk          //实例系统盘信息。
	DataDisks           []DataDisk          //实例数据盘信息。只包含随实例购买的数据盘。
	PrivateIpAddresses  []string            //实例主网卡的内网IP列表。
	PublicIpAddresses   []string            //实例主网卡的公网IP列表。
	InternetAccessible  InternetAccessible  //实例带宽信息。
	VirtualPrivateCloud VirtualPrivateCloud //实例所属虚拟私有网络信息。
	ImageId             string              //	生产实例所使用的镜像ID。
	RenewFlag           string              //	自动续费标识。取值范围:NOTIFY_AND_MANUAL_RENEW:表示通知即将过期,但不自动续费 NOTIFY_AND_AUTO_RENEW:表示通知即将过期,而且自动续费 DISABLE_NOTIFY_AND_MANUAL_RENEW:表示不通知即将过期,也不自动续费。
	CreatedTime         time.Time           //	创建时间。按照ISO8601标准表示,并且使用UTC时间。格式为:YYYY-MM-DDThh:mm:ssZ。
	ExpiredTime         time.Time           //	到期时间。按照ISO8601标准表示,并且使用UTC时间。格式为:YYYY-MM-DDThh:mm:ssZ。
	OsName              string              //	操作系统名称。
	SecurityGroupIds    []string            //	实例所属安全组。该参数可以通过调用 DescribeSecurityGroups 的返回值中的sgId字段来获取。
	LoginSettings       LoginSettings       //实例登录设置。目前只返回实例所关联的密钥。
	InstanceState       string              //	实例状态。取值范围:PENDING:表示创建中 LAUNCH_FAILED:表示创建失败 RUNNING:表示运行中 STOPPED:表示关机 STARTING:表示开机中 STOPPING:表示关机中 REBOOTING:表示重启中 SHUTDOWN:表示停止待销毁 TERMINATING:表示销毁中。
	Tags                []Tag
	// 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) ConvertPublicIpToEip

func (self *SInstance) ConvertPublicIpToEip() 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 (ins *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 (ins *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 (ins *SInstance) GetOsArch() string

func (*SInstance) GetOsDist

func (ins *SInstance) GetOsDist() string

func (*SInstance) GetOsLang

func (ins *SInstance) GetOsLang() string

func (*SInstance) GetOsType

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

func (*SInstance) GetOsVersion

func (ins *SInstance) GetOsVersion() 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) 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) IsAutoRenew

func (self *SInstance) IsAutoRenew() bool

func (*SInstance) IsEmulated

func (self *SInstance) IsEmulated() bool

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

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

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

type SInstanceNic

type SInstanceNic struct {
	cloudprovider.DummyICloudNic
	// contains filtered or unexported fields
}

func (*SInstanceNic) GetDriver

func (self *SInstanceNic) GetDriver() string

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

func (self *SInstanceNic) InClassicNetwork() bool

type SInstanceSpec

type SInstanceSpec struct {
	Cpu        int
	Machine    string
	MaxStorage int
	Memory     int
	MinStorage int
	NodeCount  int
	Pid        int
	Qps        int
	SuitInfo   string
}

type SInstanceSpecs

type SInstanceSpecs struct {
	Machine   string
	SpecInfos []SInstanceSpec
}

type SInstanceType

type SInstanceType struct {
	Zone              string //	可用区。
	InstanceType      string //	实例机型。
	InstanceFamily    string //	实例机型系列。
	GPU               int    //	GPU核数,单位:核。
	CPU               int    //	CPU核数,单位:核。
	Memory            int    //	内存容量,单位:GB。
	CbsSupport        string //	是否支持云硬盘。取值范围:TRUE:表示支持云硬盘;FALSE:表示不支持云硬盘。
	InstanceTypeState string //	机型状态。取值范围:AVAILABLE:表示机型可用;UNAVAILABLE:表示机型不可用。
}

type SK8SDataPoint

type SK8SDataPoint struct {
	MetricName string      `json:"MetricName"`
	Points     []SK8sPoint `json:"Points"`
}

type SK8sPoint

type SK8sPoint struct {
	Dimensions []SQcMetricDimension `json:"Dimensions"`
	Values     []SK8sPointValue     `json:"Values"`
}

type SK8sPointValue

type SK8sPointValue struct {
	Timestamp float64 `json:"Timestamp"`
	Value     float64 `json:"Value"`
}

type SKafka

type SKafka struct {
	multicloud.SVirtualResourceBase
	multicloud.SBillingBase
	QcloudTags

	InstanceId   string
	InstanceName string
	Vip          string
	Vport        string
	VipList      []struct {
		Vip   string
		Vport string
	}
	Status             int
	Bandwidth          int
	DiskSize           int
	ZoneId             int
	VpcId              string
	SubnetId           string
	RenewFlag          int
	Healthy            int
	HealthyMessage     string
	CreateTime         int
	ExpireTime         int
	IsInternal         int
	TopicNum           int
	Version            string
	ZoneIds            []int
	Cvm                int
	InstanceType       string
	DiskType           string
	MaxTopicNumber     int
	MaxPartitionNubmer int
	RebalanceTime      string
	MsgRetentionTime   int
	// contains filtered or unexported fields
}

func (*SKafka) Delete

func (self *SKafka) Delete() error

func (*SKafka) GetBandwidthMb

func (self *SKafka) GetBandwidthMb() int

func (*SKafka) GetBillingType

func (self *SKafka) GetBillingType() string

func (*SKafka) GetCreatedAt

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

func (*SKafka) GetDiskSizeGb

func (self *SKafka) GetDiskSizeGb() int

func (*SKafka) GetEndpoint

func (self *SKafka) GetEndpoint() string

func (*SKafka) GetExpiredAt

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

func (*SKafka) GetGlobalId

func (self *SKafka) GetGlobalId() string

func (*SKafka) GetId

func (self *SKafka) GetId() string

func (*SKafka) GetInstanceType

func (self *SKafka) GetInstanceType() string

func (*SKafka) GetMsgRetentionMinute

func (self *SKafka) GetMsgRetentionMinute() int

func (*SKafka) GetName

func (self *SKafka) GetName() string

func (*SKafka) GetNetworkId

func (self *SKafka) GetNetworkId() string

func (*SKafka) GetStatus

func (self *SKafka) GetStatus() string

func (*SKafka) GetStorageType

func (self *SKafka) GetStorageType() string

func (*SKafka) GetTopics

func (self *SKafka) GetTopics() ([]cloudprovider.SKafkaTopic, error)

func (*SKafka) GetVersion

func (self *SKafka) GetVersion() string

func (*SKafka) GetVpcId

func (self *SKafka) GetVpcId() string

func (*SKafka) GetZoneId

func (self *SKafka) GetZoneId() string

func (*SKafka) IsAutoRenew

func (self *SKafka) IsAutoRenew() bool

func (*SKafka) IsMultiAz

func (self *SKafka) IsMultiAz() bool

func (*SKafka) Refresh

func (self *SKafka) Refresh() error

func (*SKafka) SetTags

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

type SKeypair

type SKeypair struct {
	AssociatedInstanceIds []string
	CreateTime            time.Time
	Description           string
	KeyId                 string
	KeyName               string
	PublicKey             string
}

type SKubeCluster

type SKubeCluster struct {
	multicloud.SResourceBase
	QcloudTags

	ClusterId              string
	ClusterName            string
	ClusterDescription     string
	ClusterVersion         string
	ClusterOs              string
	ClusterType            string
	ClusterNetworkSettings struct {
		VpcId   string
		Subnets []string
	}
	ClusterNodeNum   int
	ProjectId        string
	TagSpecification []struct {
	}
	ClusterStatus       string
	Property            string
	ClusterMaterNodeNum int
	ImageId             string
	OsCustomizeType     string
	ContainerRuntime    string
	CreatedTime         string
	DeletionProtection  bool
	EnableExternalNode  bool
	// 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, expireMinutes 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 SKubeNode

type SKubeNode struct {
	multicloud.SResourceBase
	QcloudTags

	InstanceId               string
	InstanceRole             string
	FailedReason             string
	InstanceState            string
	DrainStatus              string
	InstanceAdvancedSettings struct {
		MountTarget        string
		DockerGraphPath    string
		UserScript         string
		Unschedulable      int
		DesiredPodNumber   int
		PreStartUserScript string
		Labels             []struct {
			Name  string
			Value string
		}
		DataDisks []struct {
			DiskType           string
			FileSystem         string
			DiskSize           int
			AutoFormatAndMount bool
			MountTarget        string
			DiskPartition      string
		}
		ExtraArgs struct {
			Kubelet []string
		}
	}
	CreatedTime        string
	LanIP              string
	NodePoolId         string
	AutoscalingGroupId string
	// contains filtered or unexported fields
}

func (*SKubeNode) GetGlobalId

func (self *SKubeNode) GetGlobalId() string

func (*SKubeNode) GetINodePoolId

func (self *SKubeNode) GetINodePoolId() string

func (*SKubeNode) GetId

func (self *SKubeNode) GetId() string

func (*SKubeNode) GetName

func (self *SKubeNode) GetName() string

func (*SKubeNode) GetStatus

func (self *SKubeNode) GetStatus() string

type SKubeNodePool

type SKubeNodePool struct {
	multicloud.SResourceBase
	QcloudTags

	NodePoolId            string
	Name                  string
	ClusterInstanceId     string
	LifeState             string
	LaunchConfigurationId string
	AutoscalingGroupId    string
	Labels                []struct {
		Name  string
		Value string
	}
	Taints []struct {
		Kye    string
		Value  string
		Effect string
	}
	NodeCountSummary struct {
		ManuallyAdded struct {
			Joining      int
			Initializing int
			Normal       int
			Total        int
		}
		AutoscalingAdded struct {
			Joining      int
			Initializing int
			Normal       int
			Total        int
		}
	}
	AutoscalingGroupStatus string
	MaxNodesNum            int
	MinNodesNum            int
	DesiredNodesNum        int
	NodePoolOs             string
	OsCustomizeType        string
	ImageId                string
	DesiredPodNum          int
	UserScript             string
	// 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 SLBBackend

type SLBBackend struct {
	multicloud.SResourceBase
	QcloudTags

	PublicIPAddresses  []string `json:"PublicIpAddresses"`
	Weight             int      `json:"Weight"`
	InstanceId         string   `json:"InstanceId"`
	InstanceName       string   `json:"InstanceName"`
	PrivateIPAddresses []string `json:"PrivateIpAddresses"`
	RegisteredTime     string   `json:"RegisteredTime"`
	Type               string   `json:"Type"`
	Port               int      `json:"Port"`
	// contains filtered or unexported fields
}

func (*SLBBackend) GetBackendId

func (self *SLBBackend) GetBackendId() string

func (*SLBBackend) GetBackendRole

func (self *SLBBackend) GetBackendRole() string

func (*SLBBackend) GetBackendType

func (self *SLBBackend) GetBackendType() string

func (*SLBBackend) GetGlobalId

func (self *SLBBackend) GetGlobalId() string

func (*SLBBackend) GetId

func (self *SLBBackend) GetId() string

backend InstanceId + protocol +Port + ip + rip全局唯一

func (*SLBBackend) GetIpAddress

func (self *SLBBackend) GetIpAddress() string

func (*SLBBackend) GetName

func (self *SLBBackend) GetName() string

func (*SLBBackend) GetPort

func (self *SLBBackend) GetPort() int

func (*SLBBackend) GetStatus

func (self *SLBBackend) GetStatus() string

func (*SLBBackend) GetWeight

func (self *SLBBackend) GetWeight() int

func (*SLBBackend) Refresh

func (self *SLBBackend) Refresh() error

func (*SLBBackend) SyncConf

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

type SLBBackendGroup

type SLBBackendGroup struct {
	multicloud.SResourceBase
	QcloudTags
	// contains filtered or unexported fields
}

func (*SLBBackendGroup) Delete

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

腾讯云无后端服务器组。

func (*SLBBackendGroup) GetBackends

func (self *SLBBackendGroup) GetBackends() ([]SLBBackend, error)

func (*SLBBackendGroup) GetGlobalId

func (self *SLBBackendGroup) GetGlobalId() string

func (*SLBBackendGroup) GetILoadbalancerBackendById

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

func (*SLBBackendGroup) GetILoadbalancerBackends

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

func (*SLBBackendGroup) GetId

func (self *SLBBackendGroup) GetId() string

func (*SLBBackendGroup) GetName

func (self *SLBBackendGroup) GetName() string

func (*SLBBackendGroup) GetStatus

func (self *SLBBackendGroup) GetStatus() string

func (*SLBBackendGroup) GetType

func (self *SLBBackendGroup) GetType() string

func (*SLBBackendGroup) IsDefault

func (self *SLBBackendGroup) IsDefault() bool

func (*SLBBackendGroup) Refresh

func (self *SLBBackendGroup) Refresh() error

func (*SLBBackendGroup) Sync

腾讯云无后端服务器组

type SLBListener

type SLBListener struct {
	multicloud.SResourceBase
	multicloud.SLoadbalancerRedirectBase
	QcloudTags

	Protocol          string            `json:"Protocol"` // 监听器协议类型,取值 TCP | UDP | HTTP | HTTPS | TCP_SSL
	Certificate       Certificate       `json:"Certificate"`
	SniSwitch         int64             `json:"SniSwitch"`   // 是否开启SNI特性(本参数仅对于HTTPS监听器有意义)
	HealthCheck       HealthCheck       `json:"HealthCheck"` // 仅适用于TCP/UDP/TCP_SSL监听器
	ListenerId        string            `json:"ListenerId"`
	ListenerName      string            `json:"ListenerName"`
	Rules             []SLBListenerRule `json:"Rules"` // 监听器下的全部转发规则(本参数仅对于HTTP/HTTPS监听器有意义)
	Scheduler         string            `json:"Scheduler"`
	SessionExpireTime int               `json:"SessionExpireTime"` // 会话保持时间,单位:秒。可选值:30~3600,默认 0,表示不开启。此参数仅适用于TCP/UDP监听器。
	Port              int               `json:"Port"`
	// contains filtered or unexported fields
}

func (*SLBListener) ChangeCertificate

func (self *SLBListener) ChangeCertificate(ctx context.Context, opts *cloudprovider.ListenerCertificateOptions) error

func (*SLBListener) Delete

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

func (*SLBListener) GetAclId

func (self *SLBListener) GetAclId() string

func (*SLBListener) GetAclStatus

func (self *SLBListener) GetAclStatus() string

func (*SLBListener) GetAclType

func (self *SLBListener) GetAclType() string

func (*SLBListener) GetBackendConnectTimeout

func (self *SLBListener) GetBackendConnectTimeout() int

func (*SLBListener) GetBackendGroup

func (self *SLBListener) GetBackendGroup() *SLBBackendGroup

func (*SLBListener) GetBackendGroupId

func (self *SLBListener) GetBackendGroupId() string

func (*SLBListener) GetBackendServerPort

func (self *SLBListener) GetBackendServerPort() int

腾讯云后端端口不是与listener绑定的

func (*SLBListener) GetCertificateId

func (self *SLBListener) GetCertificateId() string

func (*SLBListener) GetClientIdleTimeout

func (self *SLBListener) GetClientIdleTimeout() int

func (*SLBListener) GetEgressMbps

func (self *SLBListener) GetEgressMbps() int

func (*SLBListener) GetGlobalId

func (self *SLBListener) GetGlobalId() string

func (*SLBListener) GetHealthCheck

func (self *SLBListener) GetHealthCheck() string

func (*SLBListener) GetHealthCheckCode

func (self *SLBListener) GetHealthCheckCode() string

func (*SLBListener) GetHealthCheckDomain

func (self *SLBListener) GetHealthCheckDomain() string

func (*SLBListener) GetHealthCheckExp

func (self *SLBListener) GetHealthCheckExp() string

func (*SLBListener) GetHealthCheckFail

func (self *SLBListener) GetHealthCheckFail() int

func (*SLBListener) GetHealthCheckInterval

func (self *SLBListener) GetHealthCheckInterval() int

func (*SLBListener) GetHealthCheckReq

func (self *SLBListener) GetHealthCheckReq() string

func (*SLBListener) GetHealthCheckRise

func (self *SLBListener) GetHealthCheckRise() int

func (*SLBListener) GetHealthCheckTimeout

func (self *SLBListener) GetHealthCheckTimeout() int

func (*SLBListener) GetHealthCheckType

func (self *SLBListener) GetHealthCheckType() string

func (*SLBListener) GetHealthCheckURI

func (self *SLBListener) GetHealthCheckURI() string

func (*SLBListener) GetILoadBalancerListenerRuleById

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

func (*SLBListener) GetILoadbalancerListenerRules

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

仅http、https类型监听包含rules

func (*SLBListener) GetId

func (self *SLBListener) GetId() string

func (*SLBListener) GetListenerPort

func (self *SLBListener) GetListenerPort() int

func (*SLBListener) GetListenerType

func (self *SLBListener) GetListenerType() string

func (*SLBListener) GetName

func (self *SLBListener) GetName() string

func (*SLBListener) GetScheduler

func (self *SLBListener) GetScheduler() string

func (*SLBListener) GetStatus

func (self *SLBListener) GetStatus() string

腾讯云负载均衡没有启用禁用操作

func (*SLBListener) GetStickySession

func (self *SLBListener) GetStickySession() string

func (*SLBListener) GetStickySessionCookie

func (self *SLBListener) GetStickySessionCookie() string

https://cloud.tencent.com/document/product/214/2736 经测试应用型负载均衡返回都是 tgw_l7_route。

func (*SLBListener) GetStickySessionCookieTimeout

func (self *SLBListener) GetStickySessionCookieTimeout() int

func (*SLBListener) GetStickySessionType

func (self *SLBListener) GetStickySessionType() string

支持基于 cookie 插入的会话保持能力 https://cloud.tencent.com/document/product/214/6154

func (*SLBListener) GzipEnabled

func (self *SLBListener) GzipEnabled() bool

HTTP/HTTPS协议默认支持用户开启gzip压缩功能 负载均衡开启Gzip配置及检测方法说明 https://cloud.tencent.com/document/product/214/5404

func (*SLBListener) HTTP2Enabled

func (self *SLBListener) HTTP2Enabled() bool

负载均衡能力说明 https://cloud.tencent.com/document/product/214/6534

func (*SLBListener) Refresh

func (self *SLBListener) Refresh() error

func (*SLBListener) SetAcl

func (*SLBListener) SetHealthCheck

func (self *SLBListener) SetHealthCheck(ctx context.Context, opts *cloudprovider.ListenerHealthCheckOptions) error

func (*SLBListener) Start

func (self *SLBListener) Start() error

func (*SLBListener) Stop

func (self *SLBListener) Stop() error

func (*SLBListener) XForwardedForEnabled

func (self *SLBListener) XForwardedForEnabled() bool

7层负载均衡系统提供 X-Forwarded-For 的方式获取访问者真实 IP,LB 侧默认开启

https://cloud.tencent.com/document/product/214/6151 七层转发获取来访真实IP的方法 https://cloud.tencent.com/document/product/214/3728

type SLBListenerRule

type SLBListenerRule struct {
	multicloud.SResourceBase
	multicloud.SLoadbalancerRedirectBase
	QcloudTags

	Domain            string      `json:"Domain"`
	Certificate       Certificate `json:"Certificate"`
	URL               string      `json:"Url"`
	HealthCheck       HealthCheck `json:"HealthCheck"`
	LocationID        string      `json:"LocationId"`
	Scheduler         string      `json:"Scheduler"`
	SessionExpireTime int64       `json:"SessionExpireTime"`
	// contains filtered or unexported fields
}

func (*SLBListenerRule) GetBackendGroup

func (self *SLBListenerRule) GetBackendGroup() *SLBBackendGroup

func (*SLBListenerRule) GetBackendGroupId

func (self *SLBListenerRule) GetBackendGroupId() string

只有http、https协议监听规则有backendgroupid

func (*SLBListenerRule) GetCondition

func (self *SLBListenerRule) GetCondition() string

func (*SLBListenerRule) GetDomain

func (self *SLBListenerRule) GetDomain() string

func (*SLBListenerRule) GetGlobalId

func (self *SLBListenerRule) GetGlobalId() string

func (*SLBListenerRule) GetId

func (self *SLBListenerRule) GetId() string

func (*SLBListenerRule) GetName

func (self *SLBListenerRule) GetName() string

func (*SLBListenerRule) GetPath

func (self *SLBListenerRule) GetPath() string

func (*SLBListenerRule) GetStatus

func (self *SLBListenerRule) GetStatus() string

func (*SLBListenerRule) IsDefault

func (self *SLBListenerRule) IsDefault() bool

func (*SLBListenerRule) IsEmulated

func (self *SLBListenerRule) IsEmulated() bool

func (*SLBListenerRule) Refresh

func (self *SLBListenerRule) Refresh() error

type SListInfo

type SListInfo struct {
	TotalCount int `json:"TotalCount"`
	Offset     int `json:"Offset"`
	Limit      int `json:"Limit"`
}

type SListenerBackend

type SListenerBackend struct {
	Rules      []Rule       `json:"Rules"`
	Targets    []SLBBackend `json:"Targets"`
	Protocol   string       `json:"Protocol"`
	ListenerId string       `json:"ListenerId"`
	Port       int64        `json:"Port"`
}

==========================================================

type SLoadbalancer

type SLoadbalancer struct {
	multicloud.SLoadbalancerBase
	QcloudTags

	Status            int64     `json:"Status"` // 0:创建中,1:正常运行
	VpcId             string    `json:"VpcId"`
	Log               string    `json:"Log"`
	ProjectId         int64     `json:"ProjectId"`
	Snat              bool      `json:"Snat"`
	LoadBalancerId    string    `json:"LoadBalancerId"`
	LoadBalancerVips  []string  `json:"LoadBalancerVips"`
	LoadBalancerType  string    `json:"LoadBalancerType"` // 负载均衡实例的网络类型: OPEN:公网属性, INTERNAL:内网属性。
	LoadBalancerName  string    `json:"LoadBalancerName"`
	Forward           LB_TYPE   `json:"Forward"` // 应用型负载均衡标识,1:应用型负载均衡,0:传统型的负载均衡。
	StatusTime        time.Time `json:"StatusTime"`
	OpenBGP           int64     `json:"OpenBgp"` // 高防 LB 的标识,1:高防负载均衡 0:非高防负载均衡。
	CreateTime        time.Time `json:"CreateTime"`
	Isolation         int64     `json:"Isolation"` // 0:表示未被隔离,1:表示被隔离。
	SubnetId          string    `json:"SubnetId"`
	BackupZoneSet     []ZoneSet `json:"BackupZoneSet"`
	MasterZone        ZoneSet   `json:"MasterZone"`
	NetworkAttributes struct {
		InternetChargeType      string
		InternetMaxBandwidthOut int
	}
	LoadBalancerDomain string `json:"LoadBalancerDomain"`
	// contains filtered or unexported fields
}

https://cloud.tencent.com/document/api/214/30694#LoadBalancer

func (*SLoadbalancer) CreateILoadBalancerBackendGroup

腾讯云无后端服务器组

func (*SLoadbalancer) CreateILoadBalancerListener

https://cloud.tencent.com/document/product/214/30693 todo: 1.限制比较多必须加参数校验 2.Onecloud 不支持双向证书可能存在兼容性问题 应用型负载均衡 传统型不支持设置SNI

func (*SLoadbalancer) GetAddress

func (self *SLoadbalancer) GetAddress() string

腾讯云当前不支持一个LB绑定多个ip,每个LB只支持绑定一个ip

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

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

func (*SLoadbalancer) GetILoadBalancerBackendGroups

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

func (*SLoadbalancer) GetILoadBalancerListenerById

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

func (*SLoadbalancer) GetILoadBalancerListeners

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

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

func (self *SLoadbalancer) GetVpcId() string

func (*SLoadbalancer) GetZone1Id

func (self *SLoadbalancer) GetZone1Id() string

func (*SLoadbalancer) GetZoneId

func (self *SLoadbalancer) GetZoneId() string

func (*SLoadbalancer) Refresh

func (self *SLoadbalancer) Refresh() error

func (*SLoadbalancer) SetTags

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

func (*SLoadbalancer) Start

func (self *SLoadbalancer) Start() error

腾讯云loadbalance不支持启用/禁用

func (*SLoadbalancer) Stop

func (self *SLoadbalancer) Stop() error

type SLocalDisk

type SLocalDisk struct {
	multicloud.SDisk
	QcloudTags

	DiskId    string
	DiskSize  float32
	DisktType string
	DiskUsage string
	// contains filtered or unexported fields
}

func (*SLocalDisk) CreateISnapshot

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

func (*SLocalDisk) Delete

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

func (*SLocalDisk) GetAccessPath

func (disk *SLocalDisk) GetAccessPath() string

func (*SLocalDisk) GetBillingType

func (self *SLocalDisk) GetBillingType() string

func (*SLocalDisk) GetCacheMode

func (self *SLocalDisk) GetCacheMode() string

func (*SLocalDisk) GetCreatedAt

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

func (*SLocalDisk) GetDiskFormat

func (self *SLocalDisk) GetDiskFormat() string

func (*SLocalDisk) GetDiskSizeMB

func (self *SLocalDisk) GetDiskSizeMB() int

func (*SLocalDisk) GetDiskType

func (self *SLocalDisk) GetDiskType() string

func (*SLocalDisk) GetDriver

func (self *SLocalDisk) GetDriver() string

func (*SLocalDisk) GetExpiredAt

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

func (*SLocalDisk) GetFsFormat

func (self *SLocalDisk) GetFsFormat() string

func (*SLocalDisk) GetGlobalId

func (self *SLocalDisk) GetGlobalId() string

func (*SLocalDisk) GetISnapshot

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

func (*SLocalDisk) GetISnapshots

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

func (*SLocalDisk) GetIStorage

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

func (*SLocalDisk) GetId

func (self *SLocalDisk) GetId() string

func (*SLocalDisk) GetIsAutoDelete

func (self *SLocalDisk) GetIsAutoDelete() bool

func (*SLocalDisk) GetIsNonPersistent

func (self *SLocalDisk) GetIsNonPersistent() bool

func (*SLocalDisk) GetMountpoint

func (self *SLocalDisk) GetMountpoint() string

func (*SLocalDisk) GetName

func (self *SLocalDisk) GetName() string

func (*SLocalDisk) GetProjectId

func (disk *SLocalDisk) GetProjectId() string

func (*SLocalDisk) GetStatus

func (self *SLocalDisk) GetStatus() string

func (*SLocalDisk) GetSysTags

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

func (*SLocalDisk) GetTemplateId

func (self *SLocalDisk) GetTemplateId() string

func (*SLocalDisk) IsEmulated

func (self *SLocalDisk) IsEmulated() bool

func (*SLocalDisk) Rebuild

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

func (*SLocalDisk) Refresh

func (self *SLocalDisk) Refresh() error

func (*SLocalDisk) Reset

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

func (*SLocalDisk) Resize

func (self *SLocalDisk) Resize(ctx context.Context, size int64) error

type SLocalDiskType

type SLocalDiskType struct {
	Type          string
	PartitionType string
	MinSize       int
	MaxSize       int
}

type SLocalStorage

type SLocalStorage struct {
	multicloud.SStorageBase
	// contains filtered or unexported fields
}

func (*SLocalStorage) CreateIDisk

func (*SLocalStorage) DisableSync

func (self *SLocalStorage) DisableSync() bool

func (*SLocalStorage) GetCapacityMB

func (self *SLocalStorage) GetCapacityMB() int64

func (*SLocalStorage) GetCapacityUsedMB

func (self *SLocalStorage) GetCapacityUsedMB() int64

func (*SLocalStorage) GetEnabled

func (self *SLocalStorage) GetEnabled() bool

func (*SLocalStorage) GetGlobalId

func (self *SLocalStorage) GetGlobalId() string

func (*SLocalStorage) GetIDiskById

func (self *SLocalStorage) GetIDiskById(idStr string) (cloudprovider.ICloudDisk, error)

func (*SLocalStorage) GetIDisks

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

func (*SLocalStorage) GetIStoragecache

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

func (*SLocalStorage) GetIZone

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

func (*SLocalStorage) GetId

func (self *SLocalStorage) GetId() string

func (*SLocalStorage) GetMediumType

func (self *SLocalStorage) GetMediumType() string

func (*SLocalStorage) GetMountPoint

func (self *SLocalStorage) GetMountPoint() string

func (*SLocalStorage) GetName

func (self *SLocalStorage) GetName() string

func (*SLocalStorage) GetStatus

func (self *SLocalStorage) GetStatus() string

func (*SLocalStorage) GetStorageConf

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

func (*SLocalStorage) GetStorageType

func (self *SLocalStorage) GetStorageType() string

func (*SLocalStorage) IsEmulated

func (self *SLocalStorage) IsEmulated() bool

func (*SLocalStorage) IsSysDiskStore

func (self *SLocalStorage) IsSysDiskStore() bool

func (*SLocalStorage) Refresh

func (self *SLocalStorage) Refresh() error

type SMaintenanceTime

type SMaintenanceTime struct {
	Monday    []string
	Tuesday   []string
	Wednesday []string
	Thursday  []string
	Friday    []string
	Saturday  []string
	Sunday    []string
}

func (SMaintenanceTime) String

func (w SMaintenanceTime) String() string

type SMasterInfo

type SMasterInfo struct {
	Region        string
	RegionId      int
	ZoneId        int
	Zone          string
	InstanceId    string
	ResourceId    string
	Status        int
	InstanceName  string
	InstanceType  int
	TaskStatus    int
	Memory        int
	Volume        int
	DeviceType    string
	Qps           int
	VpcId         int
	SubnetId      int
	ExClusterId   string
	ExClusterName string
}

type SMaxAge

type SMaxAge struct {
	Switch      string
	MaxAgeRules []struct {
		MaxAgeType     string
		MaxAgeContents []string
		MaxAgeTime     int
		FollowOrigin   string
	}
}

type SMemcached

type SMemcached struct {
	multicloud.SElasticcacheBase
	QcloudTags

	InstanceId        string    `json:"InstanceId"`
	InstanceName      string    `json:"InstanceName"`
	AppId             int       `json:"AppId"`
	ProjectId         int       `json:"ProjectId"`
	InstanceDesc      string    `json:"InstanceDesc"`
	Vip               string    `json:"Vip"`
	Vport             int       `json:"Vport"`
	Status            int       `json:"Status"`
	AutoRenewFlag     int       `json:"AutoRenewFlag"`
	VpcId             int       `json:"VpcId"`
	SubnetId          int       `json:"SubnetId"`
	PayMode           int       `json:"PayMode"`
	ZoneId            int       `json:"ZoneId"`
	Expire            int       `json:"Expire"`
	RegionId          int       `json:"RegionId"`
	AddTimeStamp      time.Time `json:"AddTimeStamp"`
	ModtimeStamp      time.Time `json:"ModTimeStamp"`
	IsolateTimesSamp  time.Time `json:"IsolateTimeStamp"`
	UniqVpcId         string    `json:"UniqVpcId"`
	UniqSubnetId      string    `json:"UniqSubnetId"`
	DeadlineTimeStamp string    `json:"DeadlineTimeStamp"`
	SetId             int       `json:"SetId"`
	CmemId            int       `json:"CmemId"`
	// contains filtered or unexported fields
}

func (*SMemcached) AllocatePublicConnection

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

func (*SMemcached) ChangeInstanceSpec

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

func (*SMemcached) CleanupInstance

func (self *SMemcached) CleanupInstance() error

func (*SMemcached) CreateAcl

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

func (*SMemcached) CreateBackup

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

func (*SMemcached) Delete

func (self *SMemcached) Delete() error

func (*SMemcached) FlushInstance

func (*SMemcached) GetArchType

func (self *SMemcached) GetArchType() string

func (*SMemcached) GetAuthMode

func (self *SMemcached) GetAuthMode() string

func (*SMemcached) GetBillingType

func (self *SMemcached) GetBillingType() string

func (*SMemcached) GetCapacityMB

func (self *SMemcached) GetCapacityMB() int

func (*SMemcached) GetCreatedAt

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

func (*SMemcached) GetEngine

func (self *SMemcached) GetEngine() string

func (*SMemcached) GetEngineVersion

func (self *SMemcached) GetEngineVersion() string

func (*SMemcached) GetExpiredAt

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

func (*SMemcached) GetGlobalId

func (self *SMemcached) GetGlobalId() string

func (*SMemcached) GetICloudElasticcacheAccount

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

func (*SMemcached) GetICloudElasticcacheAccounts

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

func (*SMemcached) GetICloudElasticcacheAcl

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

func (*SMemcached) GetICloudElasticcacheAcls

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

func (*SMemcached) GetICloudElasticcacheBackup

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

func (*SMemcached) GetICloudElasticcacheBackups

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

func (*SMemcached) GetICloudElasticcacheParameters

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

func (*SMemcached) GetId

func (self *SMemcached) GetId() string

func (*SMemcached) GetInstanceType

func (self *SMemcached) GetInstanceType() string

func (*SMemcached) GetMaintainEndTime

func (self *SMemcached) GetMaintainEndTime() string

func (*SMemcached) GetMaintainStartTime

func (self *SMemcached) GetMaintainStartTime() string

func (*SMemcached) GetName

func (self *SMemcached) GetName() string

func (*SMemcached) GetNetworkId

func (self *SMemcached) GetNetworkId() string

func (*SMemcached) GetNetworkType

func (self *SMemcached) GetNetworkType() string

func (*SMemcached) GetNodeType

func (self *SMemcached) GetNodeType() string

func (*SMemcached) GetPrivateConnectPort

func (self *SMemcached) GetPrivateConnectPort() int

func (*SMemcached) GetPrivateDNS

func (self *SMemcached) GetPrivateDNS() string

func (*SMemcached) GetPrivateIpAddr

func (self *SMemcached) GetPrivateIpAddr() string

func (*SMemcached) GetProjectId

func (self *SMemcached) GetProjectId() string

func (*SMemcached) GetPublicConnectPort

func (self *SMemcached) GetPublicConnectPort() int

func (*SMemcached) GetPublicDNS

func (self *SMemcached) GetPublicDNS() string

func (*SMemcached) GetPublicIpAddr

func (self *SMemcached) GetPublicIpAddr() string

func (*SMemcached) GetSecurityGroupIds

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

func (*SMemcached) GetStatus

func (self *SMemcached) GetStatus() string

func (*SMemcached) GetVpcId

func (self *SMemcached) GetVpcId() string

func (*SMemcached) GetZoneId

func (self *SMemcached) GetZoneId() string

func (*SMemcached) IsAutoRenew

func (self *SMemcached) IsAutoRenew() bool

func (*SMemcached) ReleasePublicConnection

func (self *SMemcached) ReleasePublicConnection() error

func (*SMemcached) Renew

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

func (*SMemcached) Restart

func (self *SMemcached) Restart() error

func (*SMemcached) SetAutoRenew

func (self *SMemcached) SetAutoRenew(bc billing.SBillingCycle) error

func (*SMemcached) SetMaintainTime

func (self *SMemcached) SetMaintainTime(maintainStartTime, maintainEndTime string) error

func (*SMemcached) UpdateAuthMode

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

func (*SMemcached) UpdateBackupPolicy

func (*SMemcached) UpdateInstanceParameters

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

func (*SMemcached) UpdateSecurityGroups

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

type SMongoDB

type SMongoDB struct {
	QcloudTags
	multicloud.SVirtualResourceBase
	multicloud.SBillingBase
	multicloud.SMongodbBase

	IOPS                int
	NetworkAddress      string
	AutoRenewFlag       int           `json:"AutoRenewFlag"`
	CloneInstances      []interface{} `json:"CloneInstances"`
	ClusterType         int           `json:"ClusterType"`
	ClusterVer          int           `json:"ClusterVer"`
	ConfigServerCpuNum  int           `json:"ConfigServerCpuNum"`
	ConfigServerMemory  int           `json:"ConfigServerMemory"`
	ConfigServerNodeNum int           `json:"ConfigServerNodeNum"`
	ConfigServerVolume  int           `json:"ConfigServerVolume"`
	CpuNum              int           `json:"CpuNum"`
	CreateTime          time.Time     `json:"CreateTime"`
	DeadLine            string        `json:"DeadLine"`
	InstanceId          string        `json:"InstanceId"`
	InstanceName        string        `json:"InstanceName"`
	InstanceStatusDesc  string        `json:"InstanceStatusDesc"`
	InstanceTaskDesc    string        `json:"InstanceTaskDesc"`
	InstanceTaskId      int           `json:"InstanceTaskId"`
	InstanceType        int           `json:"InstanceType"`
	InstanceVer         int           `json:"InstanceVer"`
	MachineType         string        `json:"MachineType"`
	MaintenanceEnd      string        `json:"MaintenanceEnd"`
	MaintenanceStart    string        `json:"MaintenanceStart"`
	Memory              int           `json:"Memory"`
	MongoVersion        string        `json:"MongoVersion"`
	MongosCpuNum        int           `json:"MongosCpuNum"`
	MongosMemory        int           `json:"MongosMemory"`
	MongosNodeNum       int           `json:"MongosNodeNum"`
	NetType             int           `json:"NetType"`
	PayMode             int           `json:"PayMode"`
	ProjectId           int           `json:"ProjectId"`
	Protocol            int           `json:"Protocol"`
	Readonlyinstances   []interface{} `json:"ReadonlyInstances"`
	RealInstanceId      string        `json:"RealInstanceId"`
	Region              string        `json:"Region"`
	Relatedinstance     struct {
		InstanceId string `json:"InstanceId"`
		Region     string `json:"Region"`
	} `json:"RelatedInstance"`
	Replicasets []struct {
		Memory           int    `json:"Memory"`
		OplogSize        int    `json:"OplogSize"`
		RealReplicasetId string `json:"RealReplicaSetId"`
		ReplicaSetId     string `json:"ReplicaSetId"`
		ReplicaSetName   string `json:"ReplicaSetName"`
		SecondaryNum     int    `json:"SecondaryNum"`
		UsedVolume       int    `json:"UsedVolume"`
		Volume           int    `json:"Volume"`
	} `json:"ReplicaSets"`
	ReplicationSetNum int           `json:"ReplicationSetNum"`
	SecondaryNum      int           `json:"SecondaryNum"`
	StandbyInstances  []interface{} `json:"StandbyInstances"`
	Status            int           `json:"Status"`
	SubnetId          string        `json:"SubnetId"`
	UsedVolume        int           `json:"UsedVolume"`
	Vip               string        `json:"Vip"`
	Volume            int           `json:"Volume"`
	VpcId             string        `json:"VpcId"`
	Vport             int           `json:"Vport"`
	Zone              string        `json:"Zone"`
	// contains filtered or unexported fields
}

func (*SMongoDB) Delete

func (self *SMongoDB) Delete() error

func (*SMongoDB) GetBillingType

func (self *SMongoDB) GetBillingType() string

func (*SMongoDB) GetCategory

func (self *SMongoDB) GetCategory() string

func (*SMongoDB) GetCreatedAt

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

func (*SMongoDB) GetDiskSizeMb

func (self *SMongoDB) GetDiskSizeMb() int

func (*SMongoDB) GetEngine

func (self *SMongoDB) GetEngine() string

func (*SMongoDB) GetEngineVersion

func (self *SMongoDB) GetEngineVersion() string

func (*SMongoDB) GetExpiredAt

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

func (*SMongoDB) GetGlobalId

func (self *SMongoDB) GetGlobalId() string

func (*SMongoDB) GetIBackups

func (self *SMongoDB) GetIBackups() ([]cloudprovider.SMongoDBBackup, error)

func (*SMongoDB) GetId

func (self *SMongoDB) GetId() string

func (*SMongoDB) GetInstanceType

func (self *SMongoDB) GetInstanceType() string

func (*SMongoDB) GetIops

func (self *SMongoDB) GetIops() int

func (*SMongoDB) GetIpAddr

func (self *SMongoDB) GetIpAddr() string

func (*SMongoDB) GetMaintainTime

func (self *SMongoDB) GetMaintainTime() string

func (*SMongoDB) GetName

func (self *SMongoDB) GetName() string

func (*SMongoDB) GetNetworkAddress

func (self *SMongoDB) GetNetworkAddress() string

func (*SMongoDB) GetNetworkId

func (self *SMongoDB) GetNetworkId() string

func (*SMongoDB) GetPort

func (self *SMongoDB) GetPort() int

func (*SMongoDB) GetProjectId

func (self *SMongoDB) GetProjectId() string

func (*SMongoDB) GetReplicationNum

func (self *SMongoDB) GetReplicationNum() int

func (*SMongoDB) GetStatus

func (self *SMongoDB) GetStatus() string

func (*SMongoDB) GetVcpuCount

func (self *SMongoDB) GetVcpuCount() int

func (*SMongoDB) GetVmemSizeMb

func (self *SMongoDB) GetVmemSizeMb() int

func (*SMongoDB) GetVpcId

func (self *SMongoDB) GetVpcId() string

func (*SMongoDB) GetZoneId

func (self *SMongoDB) GetZoneId() string

func (*SMongoDB) IsAutoRenew

func (self *SMongoDB) IsAutoRenew() bool

func (*SMongoDB) Refresh

func (self *SMongoDB) Refresh() error

func (*SMongoDB) SetTags

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

type SMySQLInstance

type SMySQLInstance struct {
	multicloud.SDBInstanceBase
	QcloudTags

	AutoRenew        int
	CdbError         int
	Cpu              int
	CreateTime       time.Time
	DeadlineTime     string
	DeployGroupId    string
	DeployMode       int
	DeviceClass      string
	DeviceType       string
	DrInfo           []SDrInfo
	EngineVersion    string
	ExClusterId      string
	HourFeeStatus    int
	InitFlag         int
	InstanceId       string
	InstanceName     string
	InstanceType     int
	IsolateTime      string
	MasterInfo       SMasterInfo
	Memory           int
	OfflineTime      string
	PayType          int
	PhysicalId       string
	ProjectId        int
	ProtectMode      string
	Qps              int
	Region           string
	RegionId         string
	ResourceId       string
	RoGroups         []SRoGroup
	RoVipInfo        SRoVipInfo
	SecurityGroupIds []string
	SlaveInfo        SlaveInfo
	Status           int
	SubnetId         int
	//TagList": null,
	TaskStatus   int
	UniqSubnetId string
	UniqVpcId    string
	Vip          string
	Volume       int
	VpcId        int
	Vport        int
	WanDomain    string
	WanPort      int
	WanStatus    int
	Zone         string
	ZoneId       int
	ZoneName     string
	// contains filtered or unexported fields
}

func (*SMySQLInstance) ChangeConfig

func (*SMySQLInstance) ClosePublicConnection

func (self *SMySQLInstance) ClosePublicConnection() error

func (*SMySQLInstance) CreateAccount

func (*SMySQLInstance) CreateDatabase

func (*SMySQLInstance) CreateIBackup

func (*SMySQLInstance) Delete

func (self *SMySQLInstance) Delete() error

func (*SMySQLInstance) GetBillingType

func (self *SMySQLInstance) GetBillingType() string

func (*SMySQLInstance) GetCategory

func (self *SMySQLInstance) GetCategory() string

func (*SMySQLInstance) GetConnectionStr

func (self *SMySQLInstance) GetConnectionStr() string

func (*SMySQLInstance) GetCreatedAt

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

func (*SMySQLInstance) GetDBNetworks

func (self *SMySQLInstance) GetDBNetworks() ([]cloudprovider.SDBInstanceNetwork, error)

func (*SMySQLInstance) GetDiskSizeGB

func (self *SMySQLInstance) GetDiskSizeGB() int

func (*SMySQLInstance) GetEngine

func (self *SMySQLInstance) GetEngine() string

func (*SMySQLInstance) GetEngineVersion

func (self *SMySQLInstance) GetEngineVersion() string

func (*SMySQLInstance) GetExpiredAt

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

func (*SMySQLInstance) GetGlobalId

func (self *SMySQLInstance) GetGlobalId() string

func (*SMySQLInstance) GetIDBInstanceAccounts

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

func (*SMySQLInstance) GetIDBInstanceBackups

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

func (*SMySQLInstance) GetIDBInstanceDatabases

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

func (*SMySQLInstance) GetIVpcId

func (self *SMySQLInstance) GetIVpcId() string

func (*SMySQLInstance) GetId

func (self *SMySQLInstance) GetId() string

func (*SMySQLInstance) GetInstanceType

func (self *SMySQLInstance) GetInstanceType() string

func (*SMySQLInstance) GetInternalConnectionStr

func (self *SMySQLInstance) GetInternalConnectionStr() string

func (*SMySQLInstance) GetMaintainTime

func (self *SMySQLInstance) GetMaintainTime() string

func (*SMySQLInstance) GetMasterInstanceId

func (self *SMySQLInstance) GetMasterInstanceId() string

func (*SMySQLInstance) GetName

func (self *SMySQLInstance) GetName() string

func (*SMySQLInstance) GetPort

func (self *SMySQLInstance) GetPort() int

func (*SMySQLInstance) GetProjectId

func (self *SMySQLInstance) GetProjectId() string

func (*SMySQLInstance) GetSecurityGroupIds

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

func (*SMySQLInstance) GetStatus

func (self *SMySQLInstance) GetStatus() string

func (*SMySQLInstance) GetStorageType

func (self *SMySQLInstance) GetStorageType() string

func (*SMySQLInstance) GetVcpuCount

func (self *SMySQLInstance) GetVcpuCount() int

func (*SMySQLInstance) GetVmemSizeMB

func (self *SMySQLInstance) GetVmemSizeMB() int

func (*SMySQLInstance) GetZone1Id

func (self *SMySQLInstance) GetZone1Id() string

func (*SMySQLInstance) GetZone2Id

func (self *SMySQLInstance) GetZone2Id() string

func (*SMySQLInstance) GetZone3Id

func (self *SMySQLInstance) GetZone3Id() string

func (*SMySQLInstance) IsAutoRenew

func (self *SMySQLInstance) IsAutoRenew() bool

func (*SMySQLInstance) OpenPublicConnection

func (self *SMySQLInstance) OpenPublicConnection() error

func (*SMySQLInstance) Reboot

func (self *SMySQLInstance) Reboot() error

func (*SMySQLInstance) Refresh

func (self *SMySQLInstance) Refresh() error

func (*SMySQLInstance) Renew

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

func (*SMySQLInstance) SetAutoRenew

func (self *SMySQLInstance) SetAutoRenew(bc billing.SBillingCycle) error

func (*SMySQLInstance) SetSecurityGroups

func (self *SMySQLInstance) SetSecurityGroups(ids []string) error

func (*SMySQLInstance) SetTags

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

func (*SMySQLInstance) Update

type SMySQLInstanceAccount

type SMySQLInstanceAccount struct {
	multicloud.SDBInstanceAccountBase
	QcloudTags

	Notes              string
	Host               string
	User               string
	ModifyTime         string
	ModifyPasswordTime string
	CreateTime         string
	// contains filtered or unexported fields
}

func (*SMySQLInstanceAccount) Delete

func (self *SMySQLInstanceAccount) Delete() error

func (*SMySQLInstanceAccount) GetHost

func (self *SMySQLInstanceAccount) GetHost() string

func (*SMySQLInstanceAccount) GetIDBInstanceAccountPrivileges

func (self *SMySQLInstanceAccount) GetIDBInstanceAccountPrivileges() ([]cloudprovider.ICloudDBInstanceAccountPrivilege, error)

func (*SMySQLInstanceAccount) GetName

func (self *SMySQLInstanceAccount) GetName() string

func (*SMySQLInstanceAccount) GrantPrivilege

func (self *SMySQLInstanceAccount) GrantPrivilege(database, privilege string) error

func (*SMySQLInstanceAccount) ResetPassword

func (self *SMySQLInstanceAccount) ResetPassword(password string) error

func (*SMySQLInstanceAccount) RevokePrivilege

func (self *SMySQLInstanceAccount) RevokePrivilege(database string) error

type SMySQLInstanceBackup

type SMySQLInstanceBackup struct {
	multicloud.SDBInstanceBackupBase
	QcloudTags

	Name        string
	Size        int
	Date        string
	IntranetUrl string
	InternetUrl string
	Type        string
	BackupId    int
	Status      string
	FinishTime  string
	Creator     string
	StartTime   string
	Method      string
	Way         string
	// contains filtered or unexported fields
}

func (*SMySQLInstanceBackup) Delete

func (self *SMySQLInstanceBackup) Delete() error

func (*SMySQLInstanceBackup) GetBackupMode

func (self *SMySQLInstanceBackup) GetBackupMode() string

func (*SMySQLInstanceBackup) GetBackupSizeMb

func (self *SMySQLInstanceBackup) GetBackupSizeMb() int

func (*SMySQLInstanceBackup) GetDBInstanceId

func (self *SMySQLInstanceBackup) GetDBInstanceId() string

func (*SMySQLInstanceBackup) GetDBNames

func (self *SMySQLInstanceBackup) GetDBNames() string

func (*SMySQLInstanceBackup) GetEndTime

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

func (*SMySQLInstanceBackup) GetEngine

func (self *SMySQLInstanceBackup) GetEngine() string

func (*SMySQLInstanceBackup) GetEngineVersion

func (self *SMySQLInstanceBackup) GetEngineVersion() string

func (*SMySQLInstanceBackup) GetGlobalId

func (self *SMySQLInstanceBackup) GetGlobalId() string

func (*SMySQLInstanceBackup) GetId

func (self *SMySQLInstanceBackup) GetId() string

func (*SMySQLInstanceBackup) GetName

func (self *SMySQLInstanceBackup) GetName() string

func (*SMySQLInstanceBackup) GetStartTime

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

func (*SMySQLInstanceBackup) GetStatus

func (self *SMySQLInstanceBackup) GetStatus() string

type SMySQLInstanceDatabase

type SMySQLInstanceDatabase struct {
	multicloud.SResourceBase
	QcloudTags

	CharacterSet string
	DatabaseName string
	// contains filtered or unexported fields
}

func (*SMySQLInstanceDatabase) Delete

func (self *SMySQLInstanceDatabase) Delete() error

func (*SMySQLInstanceDatabase) GetCharacterSet

func (self *SMySQLInstanceDatabase) GetCharacterSet() string

func (*SMySQLInstanceDatabase) GetGlobalId

func (self *SMySQLInstanceDatabase) GetGlobalId() string

func (*SMySQLInstanceDatabase) GetId

func (self *SMySQLInstanceDatabase) GetId() string

func (*SMySQLInstanceDatabase) GetName

func (self *SMySQLInstanceDatabase) GetName() string

func (*SMySQLInstanceDatabase) GetStatus

func (self *SMySQLInstanceDatabase) GetStatus() string

type SNatGateway

type SNatGateway struct {
	multicloud.SNatGatewayBase
	QcloudTags

	NatId            string  `json:"natId"`
	NatName          string  `json:"natName"`
	ProductionStatus float32 `json:"productionStatus"`
	State            float32 `json:"state"`
	UnVpcId          string  `json:"unVpcId"`
	VpcId            float32 `json:"vpcId"`
	VpcName          string  `json:"vpcName"`
	Zone             string  `json:"zone"`

	Bandwidth     float32   `json:"bandwidth"`
	CreateTime    time.Time `json:"createTime"`
	EipCount      float32   `json:"eipCount"`
	MaxConcurrent float32   `json:"maxConcurrent"`
	// contains filtered or unexported fields
}

func (*SNatGateway) CreateINatDEntry

func (nat *SNatGateway) CreateINatDEntry(rule cloudprovider.SNatDRule) (cloudprovider.ICloudNatDEntry, error)

func (*SNatGateway) CreateINatSEntry

func (nat *SNatGateway) CreateINatSEntry(rule cloudprovider.SNatSRule) (cloudprovider.ICloudNatSEntry, error)

func (*SNatGateway) GetGlobalId

func (nat *SNatGateway) GetGlobalId() string

func (*SNatGateway) GetIEips

func (nat *SNatGateway) GetIEips() ([]cloudprovider.ICloudEIP, error)

func (*SNatGateway) GetINatDEntryByID

func (nat *SNatGateway) GetINatDEntryByID(id string) (cloudprovider.ICloudNatDEntry, error)

func (*SNatGateway) GetINatDTable

func (nat *SNatGateway) GetINatDTable() ([]cloudprovider.ICloudNatDEntry, error)

func (*SNatGateway) GetINatSEntryByID

func (nat *SNatGateway) GetINatSEntryByID(id string) (cloudprovider.ICloudNatSEntry, error)

func (*SNatGateway) GetINatSTable

func (nat *SNatGateway) GetINatSTable() ([]cloudprovider.ICloudNatSEntry, error)

func (*SNatGateway) GetINetworkId

func (self *SNatGateway) GetINetworkId() string

func (*SNatGateway) GetId

func (nat *SNatGateway) GetId() string

func (*SNatGateway) GetName

func (nat *SNatGateway) GetName() string

func (*SNatGateway) GetNatSpec

func (nat *SNatGateway) GetNatSpec() string

func (*SNatGateway) GetStatus

func (nat *SNatGateway) GetStatus() string

type SNetwork

type SNetwork struct {
	multicloud.SResourceBase
	QcloudTags

	CidrBlock               string
	Zone                    string
	SubnetId                string
	VpcId                   string
	SubnetName              string
	AvailableIpAddressCount int
	CreatedTime             time.Time
	EnableBroadcast         bool
	IsDefault               bool
	RouteTableId            string
	// 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) IsEmulated

func (self *SNetwork) IsEmulated() bool

func (*SNetwork) Refresh

func (self *SNetwork) Refresh() error

func (*SNetwork) SetTags

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

type SNetworkInterface

type SNetworkInterface struct {
	multicloud.SNetworkInterfaceBase
	QcloudTags

	VpcId                       string
	SubnetId                    string
	NetworkInterfaceId          string
	NetworkInterfaceName        string
	NetworkInterfaceDescription string
	GroupSet                    []string
	Primary                     bool
	MacAddress                  string
	State                       string
	CreatedTime                 time.Time
	Attachment                  SNetworkInterfaceAttachment
	Zone                        string
	PrivateIpAddressSet         []SPrivateIpAddress
	// contains filtered or unexported fields
}

func (*SNetworkInterface) GetAssociateId

func (nic *SNetworkInterface) GetAssociateId() string

func (*SNetworkInterface) GetAssociateType

func (nic *SNetworkInterface) GetAssociateType() string

func (*SNetworkInterface) GetGlobalId

func (nic *SNetworkInterface) GetGlobalId() string

func (*SNetworkInterface) GetICloudInterfaceAddresses

func (nic *SNetworkInterface) GetICloudInterfaceAddresses() ([]cloudprovider.ICloudInterfaceAddress, error)

func (*SNetworkInterface) GetId

func (nic *SNetworkInterface) GetId() string

func (*SNetworkInterface) GetMacAddress

func (nic *SNetworkInterface) GetMacAddress() string

func (*SNetworkInterface) GetName

func (nic *SNetworkInterface) GetName() string

func (*SNetworkInterface) GetStatus

func (nic *SNetworkInterface) GetStatus() string

type SNetworkInterfaceAttachment

type SNetworkInterfaceAttachment struct {
	InstanceId        string
	DeviceIndex       int
	InstanceAccountId string
	AttachTime        string
}

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 SPolicy

type SPolicy struct {
	PolicyId       int64
	PolicyName     string
	AddTime        time.Time
	CreateMode     string
	PolicyType     string
	Description    string
	PolicyDocument string
	// contains filtered or unexported fields
}

func (*SPolicy) Delete

func (self *SPolicy) Delete() error

func (*SPolicy) GetDescription

func (self *SPolicy) GetDescription() string

func (*SPolicy) GetDocument

func (self *SPolicy) GetDocument() (*jsonutils.JSONDict, error)

func (*SPolicy) GetGlobalId

func (self *SPolicy) GetGlobalId() string

func (*SPolicy) GetName

func (self *SPolicy) GetName() string

func (*SPolicy) Refresh

func (self *SPolicy) Refresh() error

func (*SPolicy) UpdateDocument

func (self *SPolicy) UpdateDocument(document *jsonutils.JSONDict) error

type SPrincipal

type SPrincipal struct {
	Federated []string
}

type SPrivateIpAddress

type SPrivateIpAddress struct {
	Description      string
	Primary          bool
	PrivateIpAddress string
	PublicIpAddress  string
	IsWanIpBlocked   bool
	State            string
	// contains filtered or unexported fields
}

func (*SPrivateIpAddress) GetGlobalId

func (ip *SPrivateIpAddress) GetGlobalId() string

func (*SPrivateIpAddress) GetINetworkId

func (ip *SPrivateIpAddress) GetINetworkId() string

func (*SPrivateIpAddress) GetIP

func (ip *SPrivateIpAddress) GetIP() string

func (*SPrivateIpAddress) IsPrimary

func (ip *SPrivateIpAddress) IsPrimary() bool

type SProject

type SProject struct {
	multicloud.SProjectBase
	QcloudTags

	ProjectName string    `json:"projectName"`
	ProjectId   string    `json:"projectId"`
	CreateTime  time.Time `json:"createTime"`
	CreateorUin int       `json:"creatorUin"`
	ProjectInfo string    `json:"projectInfo"`
	// contains filtered or unexported fields
}

func (*SProject) GetGlobalId

func (p *SProject) GetGlobalId() string

func (*SProject) GetId

func (p *SProject) GetId() string

func (*SProject) GetName

func (p *SProject) GetName() string

func (*SProject) GetStatus

func (p *SProject) GetStatus() string

func (*SProject) IsEmulated

func (p *SProject) IsEmulated() bool

func (*SProject) Refresh

func (p *SProject) Refresh() error

type SQcInstanceMetricDimension

type SQcInstanceMetricDimension struct {
	Dimensions []SQcMetricDimension
}

type SQcMetricConditionDimension

type SQcMetricConditionDimension struct {
	Key      string `json:"Key"`
	Value    string `json:"Value"`
	Operator string `json:"Operator"`
}

type SQcMetricDimension

type SQcMetricDimension struct {
	Name  string `json:"Name"`
	Value string `json:"Value"`
}

type SQcloudClient

type SQcloudClient struct {
	*QcloudClientConfig
	// contains filtered or unexported fields
}

func NewQcloudClient

func NewQcloudClient(cfg *QcloudClientConfig) (*SQcloudClient, error)

func (*SQcloudClient) AddCdnDomain

func (client *SQcloudClient) AddCdnDomain(domain string, originType string, origins []string, cosPrivateAccess string) error

func (*SQcloudClient) AddUser

func (self *SQcloudClient) AddUser(name, password, desc string, consoleLogin bool) (*SUser, error)

func (*SQcloudClient) AddUserToGroup

func (self *SQcloudClient) AddUserToGroup(groupId, userId int) error

func (*SQcloudClient) AttachGroupPolicy

func (self *SQcloudClient) AttachGroupPolicy(groupId int, policyId string) error

func (*SQcloudClient) AttachRolePolicy

func (self *SQcloudClient) AttachRolePolicy(roleName string, policyId string) error

func (*SQcloudClient) AttachUserPolicy

func (self *SQcloudClient) AttachUserPolicy(uin, policyId string) error

func (*SQcloudClient) CreateCDNDomain

func (self *SQcloudClient) CreateCDNDomain(opts *cloudprovider.CdnCreateOptions) (*SCdnDomain, error)

func (*SQcloudClient) CreateCertificate

func (self *SQcloudClient) CreateCertificate(projectId, publicKey, privateKey, certType, desc string) (string, error)

https://cloud.tencent.com/document/product/400/41665 返回证书ID

func (*SQcloudClient) CreateDnsRecord

func (self *SQcloudClient) CreateDnsRecord(opts *cloudprovider.DnsRecord, domainName string) (string, error)

https://cloud.tencent.com/document/api/1427/56180

func (*SQcloudClient) CreateDomian

func (self *SQcloudClient) CreateDomian(domianName string) (*SDomian, error)

func (*SQcloudClient) CreateGroup

func (self *SQcloudClient) CreateGroup(name string, remark string) (*SGroup, error)

func (*SQcloudClient) CreateICloudDnsZone

func (*SQcloudClient) CreateICloudInterVpcNetwork

func (*SQcloudClient) CreateICloudgroup

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

func (*SQcloudClient) CreateICloudpolicy

func (*SQcloudClient) CreateIClouduser

func (*SQcloudClient) CreateIProject

func (client *SQcloudClient) CreateIProject(name string) (cloudprovider.ICloudProject, error)

func (*SQcloudClient) CreatePolicy

func (self *SQcloudClient) CreatePolicy(name, document, desc string) (*SPolicy, error)

func (*SQcloudClient) CreateProject

func (client *SQcloudClient) CreateProject(name, desc string) (*SProject, error)

func (*SQcloudClient) CreateRole

func (self *SQcloudClient) CreateRole(name, document, desc string) (*SRole, error)

func (*SQcloudClient) CreateSAMLProvider

func (self *SQcloudClient) CreateSAMLProvider(name, metadata, desc string) (*SAMLProvider, error)

func (*SQcloudClient) DeleteCdnDomain

func (self *SQcloudClient) DeleteCdnDomain(domain string) error

func (*SQcloudClient) DeleteCertificate

func (self *SQcloudClient) DeleteCertificate(id string) error

https://cloud.tencent.com/document/product/400/41675

func (*SQcloudClient) DeleteDnsRecord

func (client *SQcloudClient) DeleteDnsRecord(recordId string, domainName string) error

https://cloud.tencent.com/document/api/1427/56176

func (*SQcloudClient) DeleteDomian

func (client *SQcloudClient) DeleteDomian(domianName string) error

func (*SQcloudClient) DeleteGroup

func (self *SQcloudClient) DeleteGroup(id int) error

func (*SQcloudClient) DeletePolicy

func (self *SQcloudClient) DeletePolicy(policyIds []int) error

func (*SQcloudClient) DeleteRole

func (self *SQcloudClient) DeleteRole(name string) error

func (*SQcloudClient) DeleteSAMLProvider

func (self *SQcloudClient) DeleteSAMLProvider(name string) error

func (*SQcloudClient) DeleteUser

func (self *SQcloudClient) DeleteUser(name string) error

func (*SQcloudClient) DescribeAllCdnDomains

func (client *SQcloudClient) DescribeAllCdnDomains(domains, origins []string, domainType string) ([]SCdnDomain, error)

func (*SQcloudClient) DescribeCdnDomains

func (client *SQcloudClient) DescribeCdnDomains(domains, origins []string, domainType string, offset int, limit int) ([]SCdnDomain, int, error)

func (*SQcloudClient) DescribeRoleList

func (self *SQcloudClient) DescribeRoleList(offset int, limit int) ([]SRole, int, error)

func (*SQcloudClient) DetachGroupPolicy

func (self *SQcloudClient) DetachGroupPolicy(groupId int, policyId string) error

func (*SQcloudClient) DetachRolePolicy

func (self *SQcloudClient) DetachRolePolicy(roleName string, policyId string) error

func (*SQcloudClient) DetachUserPolicy

func (self *SQcloudClient) DetachUserPolicy(uin, policyId string) error

func (*SQcloudClient) GetAccountId

func (self *SQcloudClient) GetAccountId() string

func (*SQcloudClient) GetCallerIdentity

func (self *SQcloudClient) GetCallerIdentity() (*CallerIdentity, error)

func (*SQcloudClient) GetCapabilities

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

func (*SQcloudClient) GetCdnConfig

func (self *SQcloudClient) GetCdnConfig(resourceId string) (*SCdnConfig, error)

func (*SQcloudClient) GetCdnDomain

func (self *SQcloudClient) GetCdnDomain(domain string) (*SCdnDomain, error)

func (*SQcloudClient) GetCertificate

func (self *SQcloudClient) GetCertificate(certId string) (*SCertificate, error)

https://cloud.tencent.com/document/product/400/41674

func (*SQcloudClient) GetCertificates

func (self *SQcloudClient) GetCertificates(projectId, certificateStatus, searchKey string) ([]SCertificate, error)

func (*SQcloudClient) GetCustomPolicyMaps

func (self *SQcloudClient) GetCustomPolicyMaps() (map[string]int64, error)

func (*SQcloudClient) GetDnsRecords

func (self *SQcloudClient) GetDnsRecords(domain string, offset int, limit int) ([]SDnsRecord, int, error)

func (*SQcloudClient) GetDomain

func (self *SQcloudClient) GetDomain(domain string) (*SDomian, error)

func (*SQcloudClient) GetDomains

func (self *SQcloudClient) GetDomains(key string, offset int, limit int) ([]SDomian, int, error)

func (*SQcloudClient) GetEcsMetrics

func (*SQcloudClient) GetGroup

func (self *SQcloudClient) GetGroup(groupId int) (*SGroup, error)

func (*SQcloudClient) GetICloudCDNDomainByName

func (self *SQcloudClient) GetICloudCDNDomainByName(name string) (cloudprovider.ICloudCDNDomain, error)

func (*SQcloudClient) GetICloudCDNDomains

func (self *SQcloudClient) GetICloudCDNDomains() ([]cloudprovider.ICloudCDNDomain, error)

func (*SQcloudClient) GetICloudDnsZones

func (self *SQcloudClient) GetICloudDnsZones() ([]cloudprovider.ICloudDnsZone, error)

func (*SQcloudClient) GetICloudInterVpcNetworkById

func (client *SQcloudClient) GetICloudInterVpcNetworkById(id string) (cloudprovider.ICloudInterVpcNetwork, error)

func (*SQcloudClient) GetICloudInterVpcNetworks

func (client *SQcloudClient) GetICloudInterVpcNetworks() ([]cloudprovider.ICloudInterVpcNetwork, error)

func (*SQcloudClient) GetICloudSAMLProviders

func (self *SQcloudClient) GetICloudSAMLProviders() ([]cloudprovider.ICloudSAMLProvider, error)

func (*SQcloudClient) GetICloudgroupByName

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

func (*SQcloudClient) GetICloudgroups

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

func (*SQcloudClient) GetICloudroles

func (self *SQcloudClient) GetICloudroles() ([]cloudprovider.ICloudrole, error)

func (*SQcloudClient) GetIClouduserByName

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

func (*SQcloudClient) GetICloudusers

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

func (*SQcloudClient) GetICustomCloudpolicies

func (self *SQcloudClient) GetICustomCloudpolicies() ([]cloudprovider.ICloudpolicy, error)

func (*SQcloudClient) GetIHostById

func (client *SQcloudClient) GetIHostById(id string) (cloudprovider.ICloudHost, error)

func (*SQcloudClient) GetIProjects

func (client *SQcloudClient) GetIProjects() ([]cloudprovider.ICloudProject, error)

func (*SQcloudClient) GetIRegionById

func (client *SQcloudClient) GetIRegionById(id string) (cloudprovider.ICloudRegion, error)

func (*SQcloudClient) GetIRegions

func (client *SQcloudClient) GetIRegions() []cloudprovider.ICloudRegion

func (*SQcloudClient) GetISSLCertificates

func (self *SQcloudClient) GetISSLCertificates() ([]cloudprovider.ICloudSSLCertificate, error)

func (*SQcloudClient) GetIStorageById

func (client *SQcloudClient) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)

func (*SQcloudClient) GetISystemCloudpolicies

func (self *SQcloudClient) GetISystemCloudpolicies() ([]cloudprovider.ICloudpolicy, error)

func (*SQcloudClient) GetIVpcById

func (client *SQcloudClient) GetIVpcById(id string) (cloudprovider.ICloudVpc, error)

func (*SQcloudClient) GetIamLoginUrl

func (client *SQcloudClient) GetIamLoginUrl() string

func (*SQcloudClient) GetK8sMetrics

func (*SQcloudClient) GetK8sMonitorData

func (self *SQcloudClient) GetK8sMonitorData(ns, name, resourceId string, since time.Time, until time.Time, regionId string) ([]SK8SDataPoint, error)

func (*SQcloudClient) GetMetrics

func (*SQcloudClient) GetMonitorData

func (self *SQcloudClient) GetMonitorData(ns string, name string, since time.Time, until time.Time, regionId string, dimensionName string, resIds []string) ([]SDataPoint, error)

func (*SQcloudClient) GetPolicy

func (self *SQcloudClient) GetPolicy(policyId string) (*SPolicy, error)

func (*SQcloudClient) GetPolicyByName

func (self *SQcloudClient) GetPolicyByName(name string) (*SPolicy, error)

func (*SQcloudClient) GetProjects

func (client *SQcloudClient) GetProjects(offset, limit int) ([]SProject, int, error)

func (*SQcloudClient) GetRdsMetrics

func (*SQcloudClient) GetRedisMetrics

func (*SQcloudClient) GetRegion

func (client *SQcloudClient) GetRegion(regionId string) *SRegion

func (*SQcloudClient) GetRegions

func (client *SQcloudClient) GetRegions() []SRegion

func (*SQcloudClient) GetRole

func (self *SQcloudClient) GetRole(name string) (*SRole, error)

func (*SQcloudClient) GetSAMLProvider

func (self *SQcloudClient) GetSAMLProvider(name string) (*SAMLProvider, error)

func (*SQcloudClient) GetSubAccounts

func (client *SQcloudClient) GetSubAccounts() ([]cloudprovider.SSubAccount, error)

func (*SQcloudClient) GetUser

func (self *SQcloudClient) GetUser(name string) (*SUser, error)

func (*SQcloudClient) ListAttachedGroupPolicies

func (self *SQcloudClient) ListAttachedGroupPolicies(groupId int, offset int, limit int) ([]SPolicy, int, error)

func (*SQcloudClient) ListAttachedRolePolicies

func (self *SQcloudClient) ListAttachedRolePolicies(roleName, policyType string, offset, limit int) ([]SPolicy, int, error)

func (*SQcloudClient) ListAttachedUserPolicies

func (self *SQcloudClient) ListAttachedUserPolicies(uin string, offset int, limit int) ([]SPolicy, int, error)

func (*SQcloudClient) ListCollaborators

func (self *SQcloudClient) ListCollaborators(offset, limit int) ([]SUser, int, error)

func (*SQcloudClient) ListGroupUsers

func (self *SQcloudClient) ListGroupUsers(groupId int, offset int, limit int) ([]SUser, int, error)

func (*SQcloudClient) ListGroups

func (self *SQcloudClient) ListGroups(keyword string, offset int, limit int) ([]SGroup, int, error)

func (*SQcloudClient) ListGroupsForUser

func (self *SQcloudClient) ListGroupsForUser(uin int, offset, limit int) ([]SGroup, int, error)

func (*SQcloudClient) ListPolicies

func (self *SQcloudClient) ListPolicies(keyword, scope string, offset int, limit int) ([]SPolicy, int, error)

https://cloud.tencent.com/document/api/598/34570

func (*SQcloudClient) ListSAMLProviders

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

func (*SQcloudClient) ListUsers

func (self *SQcloudClient) ListUsers() ([]SUser, error)

func (*SQcloudClient) ModifyDnsRecord

func (self *SQcloudClient) ModifyDnsRecord(domainName, recordId string, opts *cloudprovider.DnsRecord) error

https://cloud.tencent.com/document/api/1427/56157

func (*SQcloudClient) ModifyRecordStatus

func (client *SQcloudClient) ModifyRecordStatus(status, recordId, domain string) error

https://cloud.tencent.com/document/product/302/8519

func (*SQcloudClient) QueryAccountBalance

func (client *SQcloudClient) QueryAccountBalance() (*SAccountBalance, error)

func (*SQcloudClient) RemoveUserFromGroup

func (self *SQcloudClient) RemoveUserFromGroup(groupId, userId int) error

func (*SQcloudClient) StartCdnDomain

func (self *SQcloudClient) StartCdnDomain(domain string) error

func (*SQcloudClient) StopCdnDomain

func (self *SQcloudClient) StopCdnDomain(domain string) error

func (*SQcloudClient) UpdatePolicy

func (self *SQcloudClient) UpdatePolicy(policyId int, document, desc string) error

func (*SQcloudClient) UpdateSAMLProvider

func (self *SQcloudClient) UpdateSAMLProvider(name, metadata, desc string) error

func (*SQcloudClient) UpdateUser

func (self *SQcloudClient) UpdateUser(name, password string) error

type SRangeOriginPull

type SRangeOriginPull struct {
	Switch     string
	RangeRules []struct {
		Switch    string
		RuleType  string
		RulePaths []string
	}
	Cache *SCache
}

type SRecordCountInfo

type SRecordCountInfo struct {
	RecordTotal string `json:"record_total"`
	RecordsNum  string `json:"records_num"`
	SubDomains  string `json:"sub_domains"`
}

type SRecordCreateRet

type SRecordCreateRet struct {
	ID     string `json:"id"`
	Name   string `json:"name"`
	Status string `json:"status"`
	Weight int    `json:"weight"`
}

type SRegion

type SRegion struct {
	multicloud.SRegion

	Region      string
	RegionName  string
	RegionState string

	Latitude  float64
	Longitude float64
	// contains filtered or unexported fields
}

func (*SRegion) AcceptAttachCcnInstances

func (self *SRegion) AcceptAttachCcnInstances(ccnId string, instances []SCcnAttachInstanceInput) error

func (*SRegion) AddressGroupList

func (self *SRegion) AddressGroupList(groupId, groupName string, offset, limit int) ([]AddressTemplateGroup, int, error)

func (*SRegion) AddressList

func (self *SRegion) AddressList(addressId, addressName string, offset, limit int) ([]AddressTemplate, int, error)

func (*SRegion) AllocateEIP

func (region *SRegion) AllocateEIP(opts *cloudprovider.SEip) (*SEipAddress, error)

func (*SRegion) ApplySnapshotPolicyToDisks

func (self *SRegion) ApplySnapshotPolicyToDisks(snapshotPolicyId string, diskIds []string) error

func (*SRegion) AssociateEip

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

func (*SRegion) AttachCcnInstances

func (self *SRegion) AttachCcnInstances(ccnId string, ccnUin string, instances []SCcnAttachInstanceInput) error

func (*SRegion) AttachDisk

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

func (*SRegion) AttachKeypair

func (self *SRegion) AttachKeypair(instanceId string, keypairId string) error

func (*SRegion) CancelSnapshotPolicyToDisks

func (self *SRegion) CancelSnapshotPolicyToDisks(snapshotPolicyId string, diskIds []string) error

func (*SRegion) ChangeEipBindWidth

func (self *SRegion) ChangeEipBindWidth(eipId string, bw int, chargeType string) error

func (*SRegion) ChangeVMConfig

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

func (*SRegion) CloseMySQLWanService

func (self *SRegion) CloseMySQLWanService(id string) error

func (*SRegion) ConvertPublicIpToEip

func (region *SRegion) ConvertPublicIpToEip(instanceId string) error

func (*SRegion) CreateCcn

func (*SRegion) CreateDisk

func (self *SRegion) CreateDisk(zoneId string, category string, name string, sizeGb int, desc string, projectId string) (string, error)

func (*SRegion) CreateEIP

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

https://cloud.tencent.com/document/api/215/16699 腾讯云eip不支持指定项目

func (*SRegion) CreateIBucket

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

func (*SRegion) CreateIElasticcaches

DescribeProductInfo 可以查询在售可用区信息 https://cloud.tencent.com/document/product/239/20026

func (*SRegion) CreateILoadBalancerCertificate

func (self *SRegion) CreateILoadBalancerCertificate(input *cloudprovider.SLoadbalancerCertificate) (cloudprovider.ICloudLoadbalancerCertificate, error)

todo:目前onecloud端只能指定服务器端证书。需要兼容客户端证书? todo:支持指定Project。 todo: 已过期的证书不能上传也不能关联资源

func (*SRegion) CreateISecurityGroup

func (*SRegion) CreateIVpc

func (*SRegion) CreateInstance

func (self *SRegion) CreateInstance(name, hostname string, imageId string, instanceType string, securityGroupIds []string,
	zoneId string, desc string, passwd string, disks []SDisk, networkId string, ipAddr string,
	keypair string, userData string, bc *billing.SBillingCycle, projectId string,
	publicIpBw int, publicIpChargeType cloudprovider.TElasticipChargeType,
	tags map[string]string, osType string,
) (string, error)

func (*SRegion) CreateInstanceSimple

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

func (*SRegion) CreateKeyPair

func (self *SRegion) CreateKeyPair(name string) (*SKeypair, error)

func (*SRegion) CreateLoadbalancerListener

func (self *SRegion) CreateLoadbalancerListener(lbId string, opts *cloudprovider.SLoadbalancerListenerCreateOptions) (string, error)

https://cloud.tencent.com/document/product/214/30693 SNI 特性是什么??

func (*SRegion) CreateLoadbalancerListenerRule

func (self *SRegion) CreateLoadbalancerListenerRule(lbid string, listenerId string, domain string, url string, scheduler string, sessionExpireTime int, hc *HealthCheck) (string, error)

返回requestId

func (*SRegion) CreateMySQLAccount

func (self *SRegion) CreateMySQLAccount(instanceId string, opts *cloudprovider.SDBInstanceAccountCreateConfig) error

func (*SRegion) CreateMySQLBackup

func (self *SRegion) CreateMySQLBackup(instanceId string, tables map[string]string) (string, error)

func (*SRegion) CreateMySQLDBInstance

func (self *SRegion) CreateMySQLDBInstance(opts *cloudprovider.SManagedDBInstanceCreateConfig) (*SMySQLInstance, error)

func (*SRegion) CreateNetwork

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

func (*SRegion) CreateSecurityGroup

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

func (*SRegion) CreateSecurityGroupRule

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

func (*SRegion) CreateSnapshot

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

func (*SRegion) CreateSnapshotPolicy

func (self *SRegion) CreateSnapshotPolicy(input *cloudprovider.SnapshotPolicyInput) (string, error)

func (*SRegion) DeallocateEIP

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

func (*SRegion) DeleteBackup

func (self *SRegion) DeleteBackup(instanceId, id string) error

func (*SRegion) DeleteCcn

func (self *SRegion) DeleteCcn(ccnId string) error

func (*SRegion) DeleteDisk

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

func (*SRegion) DeleteElasticSearch

func (self *SRegion) DeleteElasticSearch(id string) error

func (*SRegion) DeleteIBucket

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

func (*SRegion) DeleteImage

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

func (*SRegion) DeleteKubeCluster

func (self *SRegion) DeleteKubeCluster(id string, isRetain bool) error

func (*SRegion) DeleteLBListenerRule

func (self *SRegion) DeleteLBListenerRule(lbid, listenerId, ruleId string) (string, error)

https://cloud.tencent.com/document/api/214/30688 返回requestId及error

func (*SRegion) DeleteLBListenerRules

func (self *SRegion) DeleteLBListenerRules(lbid, listenerId string, ruleIds []string) (string, error)

func (*SRegion) DeleteLoadbalancer

func (self *SRegion) DeleteLoadbalancer(lbid string) (string, error)

返回requstid 用于异步任务查询 https://cloud.tencent.com/document/product/214/30689

func (*SRegion) DeleteLoadbalancerListener

func (self *SRegion) DeleteLoadbalancerListener(t LB_TYPE, lbid string, listenerId string) (string, error)

返回requestId

func (*SRegion) DeleteMongoDB

func (self *SRegion) DeleteMongoDB(id string) error

func (*SRegion) DeleteMySQLAccounts

func (self *SRegion) DeleteMySQLAccounts(instanceId string, users map[string]string) error

func (*SRegion) DeleteNetwork

func (self *SRegion) DeleteNetwork(networkId string) error

func (*SRegion) DeleteNetworkInterface

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

func (*SRegion) DeletePostpaidTDSQL

func (self *SRegion) DeletePostpaidTDSQL(id string) error

func (*SRegion) DeletePrepaidTDSQL

func (self *SRegion) DeletePrepaidTDSQL(id string) error

func (*SRegion) DeleteSecgroupRule

func (self *SRegion) DeleteSecgroupRule(secId string, direction secrules.TSecurityRuleDirection, index int) error

func (*SRegion) DeleteSecurityGroup

func (self *SRegion) DeleteSecurityGroup(secGroupId string) error

func (*SRegion) DeleteSnapshot

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

func (*SRegion) DeleteSnapshotPolicy

func (self *SRegion) DeleteSnapshotPolicy(snapshotPolicyId string) error

func (*SRegion) DeleteTDSQLAccount

func (self *SRegion) DeleteTDSQLAccount(id, name, host 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 (self *SRegion) DeployVM(instanceId string, opts *cloudprovider.SInstanceDeployOptions) error

func (*SRegion) DescribeAccountPrivileges

func (self *SRegion) DescribeAccountPrivileges(instanceId string, user, host string) (*SAccountPrivilege, error)

func (*SRegion) DescribeCcnAttachedInstances

func (self *SRegion) DescribeCcnAttachedInstances(ccnId string, offset int, limit int) ([]SCcnInstance, int, error)

func (*SRegion) DescribeCcnRoutes

func (self *SRegion) DescribeCcnRoutes(ccnId string, offset int, limit int) ([]SCcnRouteSet, int, error)

func (*SRegion) DescribeCcns

func (self *SRegion) DescribeCcns(ccnIds []string, offset int, limit int) ([]SCcn, int, error)

func (*SRegion) DescribeDBInstanceSpecs

func (self *SRegion) DescribeDBInstanceSpecs() ([]SInstanceSpecs, error)

func (*SRegion) DescribeDBZoneConfig

func (self *SRegion) DescribeDBZoneConfig() ([]SRegionSellConf, error)

func (*SRegion) DescribeMySQLAccounts

func (self *SRegion) DescribeMySQLAccounts(instanceId string, offset, limit int) ([]SMySQLInstanceAccount, int, error)

func (*SRegion) DescribeMySQLAsyncRequestInfo

func (self *SRegion) DescribeMySQLAsyncRequestInfo(id string) (*SAsyncRequestResult, error)

func (*SRegion) DescribeMySQLBackups

func (self *SRegion) DescribeMySQLBackups(instanceId string, offset, limit int) ([]SMySQLInstanceBackup, int, error)

func (*SRegion) DescribeMySQLDBInstanceInfo

func (self *SRegion) DescribeMySQLDBInstanceInfo(id string) (*SMySQLInstance, error)

func (*SRegion) DescribeMySQLDBSecurityGroups

func (self *SRegion) DescribeMySQLDBSecurityGroups(instanceId string) ([]SDBSecgroup, error)

func (*SRegion) DescribeMySQLDatabases

func (self *SRegion) DescribeMySQLDatabases(instanceId string, offset, limit int) ([]SMySQLInstanceDatabase, int, error)

func (*SRegion) DescribeMySQLTimeWindow

func (self *SRegion) DescribeMySQLTimeWindow(id string) (*SMaintenanceTime, error)

func (*SRegion) DescribeProductConfig

func (self *SRegion) DescribeProductConfig() ([]SpecInfoList, error)

func (*SRegion) DescribeRouteTables

func (self *SRegion) DescribeRouteTables(vpcId string, routetables []string, offset int, limit int) ([]SRouteTableSet, int, error)

func (*SRegion) DescribeSaleInfo

func (self *SRegion) DescribeSaleInfo() ([]SRegionSaleInfo, error)

func (*SRegion) DescribeSecurityGroupReferences

func (self *SRegion) DescribeSecurityGroupReferences(id string) ([]ReferredSecurityGroup, error)

func (*SRegion) DescribeSqlServerProductConfig

func (self *SRegion) DescribeSqlServerProductConfig(zoneId string) ([]SqlServerSpecInfoList, error)

func (*SRegion) DetachCcnInstances

func (self *SRegion) DetachCcnInstances(ccnId string, instances []SCcnAttachInstanceInput) error

func (*SRegion) DetachDisk

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

func (*SRegion) DetachKeyPair

func (self *SRegion) DetachKeyPair(instanceId string, keypairId string) error

func (*SRegion) DisableCcnRoutes

func (self *SRegion) DisableCcnRoutes(ccnId string, routeIds []string) error

func (*SRegion) DissociateEip

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

func (*SRegion) EnableCcnRoutes

func (self *SRegion) EnableCcnRoutes(ccnId string, routeIds []string) error

func (*SRegion) FetchResourceTags

func (region *SRegion) FetchResourceTags(serviceType, resourceType string, resIds []string) (map[string]*map[string]string, error)

func (*SRegion) GetAllCcnAttachedInstances

func (self *SRegion) GetAllCcnAttachedInstances(ccnId string) ([]SCcnInstance, error)

func (*SRegion) GetAllCcnRouteSets

func (self *SRegion) GetAllCcnRouteSets(ccnId string) ([]SCcnRouteSet, error)

func (*SRegion) GetAllCcns

func (self *SRegion) GetAllCcns() ([]SCcn, error)

func (*SRegion) GetAllRouteTables

func (self *SRegion) GetAllRouteTables(vpcId string, routetables []string) ([]SRouteTableSet, error)

func (*SRegion) GetBackends

func (self *SRegion) GetBackends(lbId, listenerId string) ([]SLBBackend, error)

应用型: https://cloud.tencent.com/document/product/214/30684

func (*SRegion) GetBandwidthPackages

func (region *SRegion) GetBandwidthPackages(ids []string, offset int, limit int) ([]SBandwidthPackage, int, error)

func (*SRegion) GetCapabilities

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

func (*SRegion) GetCcnById

func (self *SRegion) GetCcnById(ccnId string) (*SCcn, error)

func (*SRegion) GetClient

func (self *SRegion) GetClient() *SQcloudClient

func (*SRegion) GetCloudElasticcacheAccounts

func (self *SRegion) GetCloudElasticcacheAccounts(instanceId string) ([]SElasticcacheAccount, error)

https://cloud.tencent.com/document/api/239/38924

func (*SRegion) GetCloudElasticcacheBackups

func (self *SRegion) GetCloudElasticcacheBackups(instanceId string) ([]SElasticcacheBackup, error)

https://cloud.tencent.com/document/api/239/20011

func (*SRegion) GetCloudElasticcacheParameters

func (self *SRegion) GetCloudElasticcacheParameters(instanceId string) ([]SElasticcacheParameter, error)

https://cloud.tencent.com/document/api/239/34448

func (*SRegion) GetCloudElasticcacheSecurityGroups

func (self *SRegion) GetCloudElasticcacheSecurityGroups(instanceId string) ([]SElasticcacheSecgroup, error)

https://cloud.tencent.com/document/api/239/41259

func (*SRegion) GetCloudElasticcaches

func (self *SRegion) GetCloudElasticcaches(instanceId string) ([]SElasticcache, error)

https://cloud.tencent.com/document/api/239/20018

func (*SRegion) GetCloudEnv

func (self *SRegion) GetCloudEnv() string

func (*SRegion) GetCosClient

func (self *SRegion) GetCosClient(bucket *SBucket) (*cos.Client, error)

func (*SRegion) GetDTables

func (region *SRegion) GetDTables(natId string, offset, limit int) ([]SDTable, int, error)

func (*SRegion) GetDisk

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

func (*SRegion) GetDiskConfigSet

func (self *SRegion) GetDiskConfigSet(zoneName string) ([]SDiskConfigSet, error)

func (*SRegion) GetDisks

func (self *SRegion) GetDisks(instanceId string, zoneId string, category string, diskIds []string, offset int, limit int) ([]SDisk, int, error)

func (*SRegion) GetEip

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

func (*SRegion) GetEips

func (region *SRegion) GetEips(eipId string, instanceId string, offset int, limit int) ([]SEipAddress, int, error)

func (*SRegion) GetElasticSearch

func (self *SRegion) GetElasticSearch(id string) (*SElasticSearch, error)

func (*SRegion) GetElasticSearchs

func (self *SRegion) GetElasticSearchs(ids []string, limit, offset int) ([]SElasticSearch, int, error)

func (*SRegion) GetElasticcacheIdByDeal

func (self *SRegion) GetElasticcacheIdByDeal(dealId string) (string, error)

https://cloud.tencent.com/document/product/239/30602

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

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

func (*SRegion) GetICloudKafkaById

func (self *SRegion) GetICloudKafkaById(id string) (cloudprovider.ICloudKafka, error)

func (*SRegion) GetICloudKafkas

func (self *SRegion) GetICloudKafkas() ([]cloudprovider.ICloudKafka, 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) GetICloudMongoDBById

func (self *SRegion) GetICloudMongoDBById(id string) (cloudprovider.ICloudMongoDB, error)

func (*SRegion) GetICloudMongoDBs

func (self *SRegion) GetICloudMongoDBs() ([]cloudprovider.ICloudMongoDB, error)

func (*SRegion) GetICloudQuotas

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

func (*SRegion) GetIDBInstanceById

func (self *SRegion) GetIDBInstanceById(id 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 (self *SRegion) GetIEipById(eipId string) (cloudprovider.ICloudEIP, error)

func (*SRegion) GetIEips

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

func (*SRegion) GetIElasticSearchById

func (self *SRegion) GetIElasticSearchById(id string) (cloudprovider.ICloudElasticSearch, error)

func (*SRegion) GetIElasticSearchs

func (self *SRegion) GetIElasticSearchs() ([]cloudprovider.ICloudElasticSearch, error)

func (*SRegion) GetIElasticcacheById

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

func (*SRegion) GetIElasticcaches

func (region *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 (self *SRegion) GetILoadBalancerAclById(aclId string) (cloudprovider.ICloudLoadbalancerAcl, error)

func (*SRegion) GetILoadBalancerAcls

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

腾讯云不支持acl

func (*SRegion) GetILoadBalancerById

func (self *SRegion) GetILoadBalancerById(id string) (cloudprovider.ICloudLoadbalancer, error)

func (*SRegion) GetILoadBalancerCertificateById

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

func (*SRegion) GetILoadBalancerCertificates

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

func (*SRegion) GetILoadBalancers

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

func (*SRegion) GetIMySQLs

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

func (*SRegion) GetINetworkInterfaces

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

func (*SRegion) GetISecurityGroupById

func (self *SRegion) GetISecurityGroupById(id 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) GetISnapshotPolicies

func (self *SRegion) GetISnapshotPolicies() ([]cloudprovider.ICloudSnapshotPolicy, error)

func (*SRegion) GetISnapshotPolicyById

func (self *SRegion) GetISnapshotPolicyById(snapshotPolicyId string) (cloudprovider.ICloudSnapshotPolicy, 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 (self *SRegion) GetIStoragecaches() ([]cloudprovider.ICloudStoragecache, error)

func (*SRegion) GetIStorages

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

func (*SRegion) GetITDSQLs

func (self *SRegion) GetITDSQLs() ([]cloudprovider.ICloudDBInstance, 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) GetImage

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

func (*SRegion) GetImageByName

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

func (*SRegion) GetImageQuota

func (region *SRegion) GetImageQuota() (*ImageQuota, error)

func (*SRegion) GetImageStatus

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

func (*SRegion) GetImages

func (self *SRegion) GetImages(status string, owner string, imageIds []string, name string, offset int, limit int) ([]SImage, int, error)

func (*SRegion) GetImportImageParams

func (self *SRegion) GetImportImageParams(name string, osArch, osDist, osVersion string, imageUrl string) (map[string]string, error)

func (*SRegion) GetInstance

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

func (*SRegion) GetInstanceStatus

func (self *SRegion) GetInstanceStatus(instanceId string) (string, error)

func (*SRegion) GetInstanceTypes

func (self *SRegion) GetInstanceTypes() ([]SInstanceType, error)

func (*SRegion) GetInstanceVNCUrl

func (self *SRegion) GetInstanceVNCUrl(instanceId string) (string, error)

func (*SRegion) GetInstances

func (self *SRegion) GetInstances(zoneId string, ids []string, offset int, limit int) ([]SInstance, int, error)

func (*SRegion) GetKafka

func (self *SRegion) GetKafka(id string) (*SKafka, error)

func (*SRegion) GetKafkaTopics

func (self *SRegion) GetKafkaTopics(insId string, limit, offset int) ([]cloudprovider.SKafkaTopic, int, error)

func (*SRegion) GetKafkas

func (self *SRegion) GetKafkas(id string, limit, offset int) ([]SKafka, int, error)

func (*SRegion) GetKeypairs

func (self *SRegion) GetKeypairs(name string, keyIds []string, offset int, limit int) ([]SKeypair, int, error)

func (*SRegion) GetKubeCluster

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

func (*SRegion) GetKubeClusters

func (self *SRegion) GetKubeClusters(ids []string, limit, offset int) ([]SKubeCluster, int, error)

func (*SRegion) GetKubeConfig

func (self *SRegion) GetKubeConfig(clusterId string, private bool) (*cloudprovider.SKubeconfig, error)

func (*SRegion) GetKubeNodePools

func (self *SRegion) GetKubeNodePools(clusterId string) ([]SKubeNodePool, error)

func (*SRegion) GetKubeNodes

func (self *SRegion) GetKubeNodes(clusterId string, limit, offset int) ([]SKubeNode, int, error)

func (*SRegion) GetLBTaskStatus

func (self *SRegion) GetLBTaskStatus(requestId string) (string, error)

https://cloud.tencent.com/document/product/214/30683 任务的当前状态。 0:成功,1:失败,2:进行中

func (*SRegion) GetLoadbalancer

func (self *SRegion) GetLoadbalancer(id string) (*SLoadbalancer, error)

func (*SRegion) GetLoadbalancerListener

func (self *SRegion) GetLoadbalancerListener(lbId, lisId string) (*SLBListener, error)

func (*SRegion) GetLoadbalancerListeners

func (self *SRegion) GetLoadbalancerListeners(lbId string, lblisIds []string, protocol string) ([]SLBListener, error)

func (*SRegion) GetLoadbalancers

func (self *SRegion) GetLoadbalancers(ids []string, limit, offset int) ([]SLoadbalancer, int, error)

func (*SRegion) GetMatchInstanceTypes

func (self *SRegion) GetMatchInstanceTypes(cpu int, memMB int, gpu int, zoneId string) ([]SInstanceType, error)

func (*SRegion) GetMemcaches

func (self *SRegion) GetMemcaches(ids []string, limit, offset int) ([]SMemcached, int, error)

func (*SRegion) GetMongoDB

func (self *SRegion) GetMongoDB(id string) (*SMongoDB, error)

func (*SRegion) GetMongoDBBackups

func (self *SRegion) GetMongoDBBackups(id string) ([]cloudprovider.SMongoDBBackup, error)

func (*SRegion) GetMongoDBs

func (self *SRegion) GetMongoDBs(ids []string, limit, offset int) ([]SMongoDB, int, error)

func (*SRegion) GetMySQLInstanceBackup

func (self *SRegion) GetMySQLInstanceBackup(instanceId, backupId string) (*SMySQLInstanceBackup, error)

func (*SRegion) GetMySQLInstanceById

func (self *SRegion) GetMySQLInstanceById(id string) (*SMySQLInstance, error)

func (*SRegion) GetName

func (self *SRegion) GetName() string

func (*SRegion) GetNatGateways

func (region *SRegion) GetNatGateways(vpcId string, offset int, limit int) ([]SNatGateway, int, error)

func (*SRegion) GetNetwork

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

func (*SRegion) GetNetworkInterfaces

func (region *SRegion) GetNetworkInterfaces(nicIds []string, instanceId, subnetId string, offset int, limit int) ([]SNetworkInterface, int, error)

func (*SRegion) GetNetworks

func (self *SRegion) GetNetworks(ids []string, vpcId string, offset int, limit int) ([]SNetwork, int, error)

func (*SRegion) GetProvider

func (self *SRegion) GetProvider() string

func (*SRegion) GetQuota

func (region *SRegion) GetQuota(action string) ([]QuotaSet, error)

func (*SRegion) GetSecurityGroup

func (self *SRegion) GetSecurityGroup(id string) (*SSecurityGroup, error)

func (*SRegion) GetSecurityGroupRules

func (self *SRegion) GetSecurityGroupRules(secGroupId string) ([]SecurityGroupRule, error)

func (*SRegion) GetSecurityGroups

func (self *SRegion) GetSecurityGroups(ids []string, name string, offset int, limit int) ([]SSecurityGroup, int, error)

func (*SRegion) GetSnapshotIdByDiskId

func (self *SRegion) GetSnapshotIdByDiskId(diskID string) ([]string, error)

func (*SRegion) GetSnapshotPolicies

func (self *SRegion) GetSnapshotPolicies(policyId string, offset int, limit int) ([]SSnapshotPolicy, int, error)

func (*SRegion) GetSnapshots

func (self *SRegion) GetSnapshots(instanceId string, diskId string, snapshotName string, snapshotIds []string, offset int, limit int) ([]SSnapshot, int, error)

func (*SRegion) GetStatus

func (self *SRegion) GetStatus() string

func (*SRegion) GetSupportImageSet

func (self *SRegion) GetSupportImageSet() (*SupportImageSet, error)

func (*SRegion) GetTDSQL

func (self *SRegion) GetTDSQL(id string) (*STDSQL, error)

func (*SRegion) GetTDSQLAccount

func (self *SRegion) GetTDSQLAccount(id string) ([]STDSQLAccount, error)

func (*SRegion) GetTDSQLDatabases

func (self *SRegion) GetTDSQLDatabases(id string) ([]STDSQLDatabase, error)

func (*SRegion) GetTDSQLSecurityGroups

func (self *SRegion) GetTDSQLSecurityGroups(id string) ([]STDSQLSecurityGroup, error)

func (*SRegion) GetTDSQLs

func (self *SRegion) GetTDSQLs(ids []string, limit, offset int) ([]STDSQL, int, error)

func (*SRegion) GetVpcs

func (self *SRegion) GetVpcs(vpcIds []string, offset int, limit int) ([]SVpc, int, error)

func (*SRegion) GetZoneInstanceTypes

func (self *SRegion) GetZoneInstanceTypes(zoneId string) ([]SZoneInstanceType, error)

func (*SRegion) GetZoneLocalStorages

func (self *SRegion) GetZoneLocalStorages(zoneId string) ([]string, error)

func (*SRegion) GrantAccountPrivilege

func (self *SRegion) GrantAccountPrivilege(instanceId, user, host, database, privilege string) error

func (*SRegion) IBucketExist

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

func (*SRegion) ImportImage

func (self *SRegion) ImportImage(name string, osArch, osDist, osVersion string, imageUrl string) (*SImage, error)

func (*SRegion) ImportKeypair

func (self *SRegion) ImportKeypair(name string, pubKey string) (*SKeypair, error)

func (*SRegion) InitMySQLDBInstances

func (self *SRegion) InitMySQLDBInstances(ids []string, password string, parameters map[string]string, vport int) error

func (*SRegion) IsolateMongoDB

func (self *SRegion) IsolateMongoDB(id string) error

func (*SRegion) IsolateMySQLDBInstance

func (self *SRegion) IsolateMySQLDBInstance(id string) error

func (*SRegion) ListMariadbSkus

func (self *SRegion) ListMariadbSkus() ([]SDBInstanceSku, error)

func (*SRegion) ListMySQLInstances

func (self *SRegion) ListMySQLInstances(ids []string, offset, limit int) ([]SMySQLInstance, int, error)

func (*SRegion) ListMysqlSkus

func (self *SRegion) ListMysqlSkus() ([]SDBInstanceSku, error)

func (*SRegion) ListPostgreSQLSkus

func (self *SRegion) ListPostgreSQLSkus() ([]SDBInstanceSku, error)

func (*SRegion) ListSQLServerSkus

func (self *SRegion) ListSQLServerSkus() ([]SDBInstanceSku, error)

func (*SRegion) ModifyListener

func (self *SRegion) ModifyListener(lbid string, listenerId, listenerType string, scheduler string, sessionExpireTime int, hc *cloudprovider.ListenerHealthCheckOptions) (string, error)

https://cloud.tencent.com/document/product/214/30681

func (*SRegion) ModifyMySQLAccountPassword

func (self *SRegion) ModifyMySQLAccountPassword(instanceId string, password string, users map[string]string) error

func (*SRegion) ModifyMySQLAutoRenewFlag

func (self *SRegion) ModifyMySQLAutoRenewFlag(ids []string, autoRenew bool) error

func (*SRegion) ModifyMySQLInstanceSecurityGroups

func (self *SRegion) ModifyMySQLInstanceSecurityGroups(rdsId string, secIds []string) error

func (*SRegion) OfflineIsolatedMongoDB

func (self *SRegion) OfflineIsolatedMongoDB(id string) error

func (*SRegion) OfflineIsolatedMySQLInstances

func (self *SRegion) OfflineIsolatedMySQLInstances(ids []string) error

func (*SRegion) OpenMySQLWanService

func (self *SRegion) OpenMySQLWanService(id string) error

func (*SRegion) QueryAccountBalance

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

func (*SRegion) RebootMySQLInstance

func (self *SRegion) RebootMySQLInstance(id string) error

func (*SRegion) Refresh

func (self *SRegion) Refresh() error

func (*SRegion) ReleaseIsolatedMySQLDBInstances

func (self *SRegion) ReleaseIsolatedMySQLDBInstances(ids []string) error

func (*SRegion) RenewInstances

func (region *SRegion) RenewInstances(instanceId []string, bc billing.SBillingCycle) error

func (*SRegion) RenewMySQLDBInstance

func (self *SRegion) RenewMySQLDBInstance(id string, month int) error

func (*SRegion) ReplaceSystemDisk

func (self *SRegion) ReplaceSystemDisk(instanceId string, imageId string, passwd string, keypairName string, sysDiskSizeGB int) error

func (*SRegion) ResetDisk

func (self *SRegion) ResetDisk(diskId, snapshotId string) error

func (*SRegion) ResizeDisk

func (self *SRegion) ResizeDisk(ctx context.Context, diskId string, sizeGb int64) error

func (*SRegion) RevokeAccountPrivilege

func (self *SRegion) RevokeAccountPrivilege(instanceId, user, host, database string) error

func (*SRegion) SaveImage

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

func (*SRegion) SetInstanceAutoRenew

func (region *SRegion) SetInstanceAutoRenew(instanceId string, autoRenew bool) error

https://cloud.tencent.com/document/api/213/15752

func (*SRegion) SetResourceTags

func (region *SRegion) SetResourceTags(serviceType, resoureType string, resIds []string, tags map[string]string, replace bool) error

func (*SRegion) StartVM

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

func (*SRegion) StopVM

func (self *SRegion) StopVM(instanceId string, opts *cloudprovider.ServerStopOptions) error

func (*SRegion) Update

func (self *SRegion) Update(id, name string) error

func (*SRegion) UpdateInstanceBandwidth

func (self *SRegion) UpdateInstanceBandwidth(instanceId string, bw int, chargeType string) error

func (*SRegion) UpdateInstancePassword

func (self *SRegion) UpdateInstancePassword(instId string, passwd string) error

func (*SRegion) UpdateSecurityGroupRule

func (self *SRegion) UpdateSecurityGroupRule(groupId string, idx int, direction secrules.TSecurityRuleDirection, opts *cloudprovider.SecurityGroupRuleUpdateOptions) error

func (*SRegion) UpdateVM

func (self *SRegion) UpdateVM(instanceId string, name string) error

func (*SRegion) UpgradeMySQLDBInstance

func (self *SRegion) UpgradeMySQLDBInstance(id string, memoryMb int, volumeGb int) error

func (*SRegion) WaitLBTaskSuccess

func (self *SRegion) WaitLBTaskSuccess(requestId string, interval time.Duration, timeout time.Duration) error

type SRegionSaleInfo

type SRegionSaleInfo struct {
	AvailableChoice []SAvailableChoice
	Region          string
	RegionId        string
	RegionName      string
	ZoneList        []SaleZoneInfo
}

type SRegionSellConf

type SRegionSellConf struct {
	RegionName      string
	Area            string
	IsDefaultRegion bool
	Region          string
	ZonesConf       []SZoneSellConf
}

type SRoGroup

type SRoGroup struct {
	RoGroupMode    string
	RoGroupId      string
	RoGroupName    string
	RoOfflineDelay int
	RoMaxDelayTime int
	MinRoInGroup   int
	WeightMode     string
	Weight         int
	// RoInstances
	Vip           string
	Vport         int
	UniqVpcId     string
	UniqSubnetId  string
	RoGroupRegion string
	RoGroupZone   string
}

type SRoVipInfo

type SRoVipInfo struct {
	RoVipStatus int
	RoSubnetId  int
	RoVpcId     int
	RoVport     int
	RoVip       string
}

type SRole

type SRole struct {
	multicloud.SResourceBase

	AddTime         time.Time
	ConsoleLogin    float32
	Description     string
	PolicyDocument  string
	RoleId          string
	RoleName        string
	RoleType        string
	SessionDuration float32
	UpdateTime      time.Time
	// contains filtered or unexported fields
}

func (*SRole) AttachPolicy

func (self *SRole) AttachPolicy(id string) error

func (*SRole) Delete

func (self *SRole) Delete() error

func (*SRole) DetachPolicy

func (self *SRole) DetachPolicy(id string) error

func (*SRole) GetDocument

func (self *SRole) GetDocument() *jsonutils.JSONDict

func (*SRole) GetGlobalId

func (self *SRole) GetGlobalId() string

func (*SRole) GetICloudpolicies

func (self *SRole) GetICloudpolicies() ([]cloudprovider.ICloudpolicy, error)

func (*SRole) GetName

func (self *SRole) GetName() string

func (*SRole) GetSAMLProvider

func (self *SRole) GetSAMLProvider() string

type SRouteSet

type SRouteSet struct {
	multicloud.SResourceBase
	QcloudTags
	RouteID                  int    `json:"RouteId"`
	RouteItemID              string `json:"RouteItemId"`
	DestinationIpv6CidrBlock string `json:"DestinationIpv6CidrBlock,omitempty"`
	GatewayType              string `json:"GatewayType"`
	GatewayID                string `json:"GatewayId"`
	RouteDescription         string `json:"RouteDescription"`
	DestinationCidrBlock     string `json:"DestinationCidrBlock,omitempty"`
	RouteType                string `json:"RouteType"`
}

func (*SRouteSet) GetCidr

func (self *SRouteSet) GetCidr() string

func (*SRouteSet) GetGlobalId

func (self *SRouteSet) GetGlobalId() string

func (*SRouteSet) GetId

func (self *SRouteSet) GetId() string

func (*SRouteSet) GetName

func (self *SRouteSet) GetName() string

func (*SRouteSet) GetNextHop

func (self *SRouteSet) GetNextHop() string

func (*SRouteSet) GetNextHopType

func (self *SRouteSet) GetNextHopType() string

func (*SRouteSet) GetStatus

func (self *SRouteSet) GetStatus() string

func (*SRouteSet) GetType

func (self *SRouteSet) GetType() string

func (*SRouteSet) IsEmulated

func (self *SRouteSet) IsEmulated() bool

func (*SRouteSet) Refresh

func (self *SRouteSet) Refresh() error

type SRouteTableSet

type SRouteTableSet struct {
	multicloud.SResourceBase
	QcloudTags

	VpcID          string                     `json:"VpcId"`
	RouteTableID   string                     `json:"RouteTableId"`
	RouteTableName string                     `json:"RouteTableName"`
	AssociationSet []RouteTableAssociationSet `json:"AssociationSet"`
	RouteSet       []SRouteSet                `json:"RouteSet"`
	Main           bool                       `json:"Main"`
	CreatedTime    string                     `json:"CreatedTime"`
	// contains filtered or unexported fields
}

func (*SRouteTableSet) CreateRoute

func (self *SRouteTableSet) CreateRoute(route cloudprovider.RouteSet) error

func (*SRouteTableSet) GetAssociations

func (self *SRouteTableSet) GetAssociations() []cloudprovider.RouteTableAssociation

func (*SRouteTableSet) GetDescription

func (self *SRouteTableSet) GetDescription() string

func (*SRouteTableSet) GetGlobalId

func (self *SRouteTableSet) GetGlobalId() string

func (*SRouteTableSet) GetIRoutes

func (self *SRouteTableSet) GetIRoutes() ([]cloudprovider.ICloudRoute, error)

func (*SRouteTableSet) GetId

func (self *SRouteTableSet) GetId() string

func (*SRouteTableSet) GetName

func (self *SRouteTableSet) GetName() string

func (*SRouteTableSet) GetRegionId

func (self *SRouteTableSet) GetRegionId() string

func (*SRouteTableSet) GetStatus

func (self *SRouteTableSet) GetStatus() string

func (*SRouteTableSet) GetType

func (*SRouteTableSet) GetVpcId

func (self *SRouteTableSet) GetVpcId() string

func (*SRouteTableSet) IsEmulated

func (self *SRouteTableSet) IsEmulated() bool

func (*SRouteTableSet) Refresh

func (self *SRouteTableSet) Refresh() error

func (*SRouteTableSet) RemoveRoute

func (self *SRouteTableSet) RemoveRoute(route cloudprovider.RouteSet) error

func (*SRouteTableSet) UpdateRoute

func (self *SRouteTableSet) UpdateRoute(route cloudprovider.RouteSet) error

type SSecurityGroup

type SSecurityGroup struct {
	multicloud.SSecurityGroup
	QcloudTags

	SecurityGroupId        string    //		安全组实例ID,例如:sg-ohuuioma。
	SecurityGroupName      string    //		安全组名称,可任意命名,但不得超过60个字符。
	SecurityGroupDesc      string    //		安全组备注,最多100个字符。
	ProjectId              string    //		项目id,默认0。可在qcloud控制台项目管理页面查询到。
	IsDefault              bool      // 	是否是默认安全组,默认安全组不支持删除。
	CreatedTime            time.Time // 	安全组创建时间。
	SecurityGroupPolicySet SecurityGroupPolicySet
	// 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) GetReferences

func (self *SSecurityGroup) GetReferences() ([]cloudprovider.SecurityGroupReference, error)

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

func (*SSecurityGroup) SetTags

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

type SSellType

type SSellType struct {
	TypeName      string
	EngineVersion []string
	Configs       []SellTypeConfig
}

type SSnapshot

type SSnapshot struct {
	multicloud.SResourceBase
	QcloudTags

	SnapshotId       string             //	快照ID。
	Placement        Placement          //	快照所在的位置。
	DiskUsage        string             //	创建此快照的云硬盘类型。取值范围:SYSTEM_DISK:系统盘 DATA_DISK:数据盘。
	DiskId           string             //	创建此快照的云硬盘ID。
	DiskSize         int32              //	创建此快照的云硬盘大小,单位GB。
	SnapshotState    SnapshotStatusType //	快照的状态。取值范围: NORMAL:正常 CREATING:创建中 ROLLBACKING:回滚中 COPYING_FROM_REMOTE:跨地域复制快照拷贝中。
	SnapshotName     string             //	快照名称,用户自定义的快照别名。调用ModifySnapshotAttribute可修改此字段。
	Percent          int                //	快照创建进度百分比,快照创建成功后此字段恒为100。
	CreateTime       time.Time          //	快照的创建时间。
	DeadlineTime     time.Time          //	快照到期时间。如果快照为永久保留,此字段为空。
	Encrypt          bool               //	是否为加密盘创建的快照。取值范围:true:该快照为加密盘创建的 false:非加密盘创建的快照。
	IsPermanent      bool               //	是否为永久快照。取值范围: true:永久快照 false:非永久快照。
	CopyingToRegions []string           //	快照正在跨地域复制的目的地域,默认取值为[]。
	CopyFromRemote   bool               //	是否为跨地域复制的快照。取值范围:true:表示为跨地域复制的快照。 false:本地域的快照。
	// 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) GetRegionId

func (self *SSnapshot) GetRegionId() string

func (*SSnapshot) GetSizeMb

func (self *SSnapshot) GetSizeMb() int32

func (*SSnapshot) GetStatus

func (self *SSnapshot) GetStatus() string

func (*SSnapshot) IsEmulated

func (self *SSnapshot) IsEmulated() bool

func (*SSnapshot) Refresh

func (self *SSnapshot) Refresh() error

type SSnapshotDatePolicy

type SSnapshotDatePolicy struct {
	DayOfWeek []int
	Hour      []int
}

type SSnapshotPolicy

type SSnapshotPolicy struct {
	multicloud.SResourceBase
	QcloudTags

	AutoSnapshotPolicyName  string
	AutoSnapshotPolicyId    string
	AutoSnapshotPolicyState string
	RetentionDays           int
	Policy                  []SSnapshotDatePolicy
	Activated               bool `json:"IsActivated"`
	IsPermanent             bool
	DiskIdSet               []string
	// contains filtered or unexported fields
}

func (*SSnapshotPolicy) ApplyDisks

func (self *SSnapshotPolicy) ApplyDisks(ids []string) error

func (*SSnapshotPolicy) CancelDisks

func (self *SSnapshotPolicy) CancelDisks(ids []string) error

func (*SSnapshotPolicy) Delete

func (self *SSnapshotPolicy) Delete() error

func (*SSnapshotPolicy) GetApplyDiskIds

func (self *SSnapshotPolicy) GetApplyDiskIds() ([]string, error)

func (*SSnapshotPolicy) GetGlobalId

func (self *SSnapshotPolicy) GetGlobalId() string

func (*SSnapshotPolicy) GetId

func (self *SSnapshotPolicy) GetId() string

func (*SSnapshotPolicy) GetName

func (self *SSnapshotPolicy) GetName() string

func (*SSnapshotPolicy) GetProjectId

func (self *SSnapshotPolicy) GetProjectId() string

func (*SSnapshotPolicy) GetRepeatWeekdays

func (self *SSnapshotPolicy) GetRepeatWeekdays() ([]int, error)

func (*SSnapshotPolicy) GetRetentionDays

func (self *SSnapshotPolicy) GetRetentionDays() int

func (*SSnapshotPolicy) GetStatus

func (self *SSnapshotPolicy) GetStatus() string

func (*SSnapshotPolicy) GetTimePoints

func (self *SSnapshotPolicy) GetTimePoints() ([]int, error)

func (*SSnapshotPolicy) IsEmulated

func (self *SSnapshotPolicy) IsEmulated() bool

func (*SSnapshotPolicy) Refresh

func (self *SSnapshotPolicy) Refresh() error

type SStorage

type SStorage struct {
	multicloud.SStorageBase
	// 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(idStr 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 SStorageBlockAttr

type SStorageBlockAttr struct {
	Type    string
	MinSize int
	MaxSize int
}

type SStoragecache

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

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 STDSQL

type STDSQL struct {
	multicloud.SDBInstanceBase
	// multicloud.SBillingBase
	QcloudTags

	AppId             int           `json:"AppId"`
	AutoRenewFlag     int           `json:"AutoRenewFlag"`
	CPU               int           `json:"Cpu"`
	CreateTime        time.Time     `json:"CreateTime"`
	DbEngine          string        `json:"DbEngine"`
	DbVersion         string        `json:"DbVersion"`
	DcnDstNum         int           `json:"DcnDstNum"`
	DcnFlag           int           `json:"DcnFlag"`
	DcnStatus         int           `json:"DcnStatus"`
	ExclusterId       string        `json:"ExclusterId"`
	Id                int           `json:"Id"`
	InstanceId        string        `json:"InstanceId"`
	InstanceName      string        `json:"InstanceName"`
	InstanceType      int           `json:"InstanceType"`
	Ipv6Flag          int           `json:"Ipv6Flag"`
	IsAuditSupported  int           `json:"IsAuditSupported"`
	IsTmp             int           `json:"IsTmp"`
	IsolatedTimestamp string        `json:"IsolatedTimestamp"`
	Locker            int           `json:"Locker"`
	Memory            int           `json:"Memory"`
	NodeCount         int           `json:"NodeCount"`
	Paymode           string        `json:"Paymode"`
	PeriodEndTime     string        `json:"PeriodEndTime"`
	Pid               int           `json:"Pid"`
	ProjectId         int           `json:"ProjectId"`
	Region            string        `json:"Region"`
	ShardCount        int           `json:"ShardCount"`
	ShardDetail       []ShardDetail `json:"ShardDetail"`
	Status            int           `json:"Status"`
	StatusDesc        string        `json:"StatusDesc"`
	Storage           int           `json:"Storage"`
	SubnetId          int           `json:"SubnetId"`
	Uin               string        `json:"Uin"`
	UniqueSubnetId    string        `json:"UniqueSubnetId"`
	UniqueVpcId       string        `json:"UniqueVpcId"`
	UpdateTime        string        `json:"UpdateTime"`
	Vip               string        `json:"Vip"`
	Vipv6             string        `json:"Vipv6"`
	VpcId             int           `json:"VpcId"`
	Vport             int           `json:"Vport"`
	WanDomain         string        `json:"WanDomain"`
	WanPort           int           `json:"WanPort"`
	WanPortIpv6       int           `json:"WanPortIpv6"`
	WanStatus         int           `json:"WanStatus"`
	WanStatusIpv6     int           `json:"WanStatusIpv6"`
	WanVip            string        `json:"WanVip"`
	WanVipv6          string        `json:"WanVipv6"`
	Zone              string        `json:"Zone"`
	// contains filtered or unexported fields
}

func (*STDSQL) ChangeConfig

func (*STDSQL) ClosePublicConnection

func (self *STDSQL) ClosePublicConnection() error

func (*STDSQL) CreateAccount

func (self *STDSQL) CreateAccount(opts *cloudprovider.SDBInstanceAccountCreateConfig) error

func (*STDSQL) CreateDatabase

func (self *STDSQL) CreateDatabase(opts *cloudprovider.SDBInstanceDatabaseCreateConfig) error

func (*STDSQL) CreateIBackup

func (self *STDSQL) CreateIBackup(opts *cloudprovider.SDBInstanceBackupCreateConfig) (string, error)

func (*STDSQL) Delete

func (self *STDSQL) Delete() error

func (*STDSQL) GetBillingType

func (self *STDSQL) GetBillingType() string

func (*STDSQL) GetCategory

func (self *STDSQL) GetCategory() string

func (*STDSQL) GetConnectionStr

func (self *STDSQL) GetConnectionStr() string

func (*STDSQL) GetCreatedAt

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

func (*STDSQL) GetDBNetworks

func (self *STDSQL) GetDBNetworks() ([]cloudprovider.SDBInstanceNetwork, error)

func (*STDSQL) GetDiskSizeGB

func (self *STDSQL) GetDiskSizeGB() int

func (*STDSQL) GetEngine

func (self *STDSQL) GetEngine() string

func (*STDSQL) GetEngineVersion

func (self *STDSQL) GetEngineVersion() string

func (*STDSQL) GetGlobalId

func (self *STDSQL) GetGlobalId() string

func (*STDSQL) GetIDBInstanceAccounts

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

func (*STDSQL) GetIDBInstanceBackups

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

func (*STDSQL) GetIDBInstanceDatabases

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

func (*STDSQL) GetIDBInstanceParameters

func (self *STDSQL) GetIDBInstanceParameters() ([]cloudprovider.ICloudDBInstanceParameter, error)

func (*STDSQL) GetIVpcId

func (self *STDSQL) GetIVpcId() string

func (*STDSQL) GetId

func (self *STDSQL) GetId() string

func (*STDSQL) GetInstanceType

func (self *STDSQL) GetInstanceType() string

func (*STDSQL) GetInternalConnectionStr

func (self *STDSQL) GetInternalConnectionStr() string

func (*STDSQL) GetMaintainTime

func (self *STDSQL) GetMaintainTime() string

func (*STDSQL) GetMasterInstanceId

func (self *STDSQL) GetMasterInstanceId() string

func (*STDSQL) GetName

func (self *STDSQL) GetName() string

func (*STDSQL) GetPort

func (self *STDSQL) GetPort() int

func (*STDSQL) GetProjectId

func (self *STDSQL) GetProjectId() string

func (*STDSQL) GetSecurityGroupIds

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

func (*STDSQL) GetStatus

func (self *STDSQL) GetStatus() string

0 创建中,1 流程处理中, 2 运行中,3 实例未初始化,-1 实例已隔离,-2 实例已删除,4 实例初始化中,5 实例删除中,6 实例重启中,7 数据迁移中

func (*STDSQL) GetStorageType

func (self *STDSQL) GetStorageType() string

func (*STDSQL) GetVcpuCount

func (self *STDSQL) GetVcpuCount() int

func (*STDSQL) GetVmemSizeMB

func (self *STDSQL) GetVmemSizeMB() int

func (*STDSQL) GetZone1Id

func (self *STDSQL) GetZone1Id() string

func (*STDSQL) GetZone2Id

func (self *STDSQL) GetZone2Id() string

func (*STDSQL) GetZone3Id

func (self *STDSQL) GetZone3Id() string

func (*STDSQL) OpenPublicConnection

func (self *STDSQL) OpenPublicConnection() error

func (*STDSQL) Reboot

func (self *STDSQL) Reboot() error

func (*STDSQL) RecoveryFromBackup

func (self *STDSQL) RecoveryFromBackup(conf *cloudprovider.SDBInstanceRecoveryConfig) error

func (*STDSQL) Refresh

func (self *STDSQL) Refresh() error

func (*STDSQL) SetSecurityGroups

func (self *STDSQL) SetSecurityGroups(ids []string) error

type STDSQLAccount

type STDSQLAccount struct {
	multicloud.SDBInstanceAccountBase
	QcloudTags

	UserName    string
	Host        string
	Description string
	CreateTime  string
	UpdateTime  string
	ReadOnly    int
	DelayThresh int
	// contains filtered or unexported fields
}

func (*STDSQLAccount) Delete

func (self *STDSQLAccount) Delete() error

func (*STDSQLAccount) GetHost

func (self *STDSQLAccount) GetHost() string

func (*STDSQLAccount) GetIDBInstanceAccountPrivileges

func (self *STDSQLAccount) GetIDBInstanceAccountPrivileges() ([]cloudprovider.ICloudDBInstanceAccountPrivilege, error)

func (*STDSQLAccount) GetName

func (self *STDSQLAccount) GetName() string

func (*STDSQLAccount) GrantPrivilege

func (self *STDSQLAccount) GrantPrivilege(database, privilege string) error

func (*STDSQLAccount) RevokePrivilege

func (self *STDSQLAccount) RevokePrivilege(database string) error

type STDSQLDatabase

type STDSQLDatabase struct {
	multicloud.SResourceBase
	QcloudTags

	DbName string
	// contains filtered or unexported fields
}

func (*STDSQLDatabase) Delete

func (self *STDSQLDatabase) Delete() error

func (*STDSQLDatabase) GetCharacterSet

func (self *STDSQLDatabase) GetCharacterSet() string

func (*STDSQLDatabase) GetGlobalId

func (self *STDSQLDatabase) GetGlobalId() string

func (*STDSQLDatabase) GetId

func (self *STDSQLDatabase) GetId() string

func (*STDSQLDatabase) GetName

func (self *STDSQLDatabase) GetName() string

func (*STDSQLDatabase) GetStatus

func (self *STDSQLDatabase) GetStatus() string

type STDSQLSecurityGroup

type STDSQLSecurityGroup struct {
	CreateTime          string `json:"CreateTime"`
	ProjectID           int    `json:"ProjectId"`
	SecurityGroupId     string `json:"SecurityGroupId"`
	SecurityGroupName   string `json:"SecurityGroupName"`
	SecurityGroupRemark string `json:"SecurityGroupRemark"`
}

type STablePrivilege

type STablePrivilege struct {
	Database   string
	Table      string
	Privileges []string
}

type SUser

type SUser struct {
	multicloud.SBaseClouduser

	Uin          int64
	Name         string
	Uid          int64
	Remark       string
	ConsoleLogin int
	CountryCode  string
	Email        string
	// contains filtered or unexported fields
}

func (*SUser) AttachCustomPolicy

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

func (*SUser) AttachSystemPolicy

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

func (*SUser) Delete

func (user *SUser) Delete() error

func (*SUser) DetachCustomPolicy

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

func (*SUser) DetachSystemPolicy

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

func (*SUser) GetEmailAddr

func (self *SUser) GetEmailAddr() string

func (*SUser) GetGlobalId

func (user *SUser) GetGlobalId() string

func (*SUser) GetICloudgroups

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

func (*SUser) GetICustomCloudpolicies

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

func (*SUser) GetISystemCloudpolicies

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

func (*SUser) GetInviteUrl

func (self *SUser) GetInviteUrl() string

func (*SUser) GetName

func (user *SUser) GetName() string

func (*SUser) IsConsoleLogin

func (user *SUser) IsConsoleLogin() bool

func (*SUser) ResetPassword

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

type SVpc

type SVpc struct {
	multicloud.SVpc
	QcloudTags

	CidrBlock       string
	CreatedTime     time.Time
	DhcpOptionsId   string
	DnsServerSet    []string
	DomainName      string
	EnableMulticast bool
	IsDefault       bool
	VpcId           string
	VpcName         string
	// contains filtered or unexported fields
}

func (*SVpc) Delete

func (self *SVpc) Delete() error

func (*SVpc) GetAuthorityOwnerId

func (self *SVpc) GetAuthorityOwnerId() string

func (*SVpc) GetCidrBlock

func (self *SVpc) GetCidrBlock() string

func (*SVpc) GetGlobalId

func (self *SVpc) GetGlobalId() string

func (*SVpc) GetINatGateways

func (self *SVpc) GetINatGateways() ([]cloudprovider.ICloudNatGateway, error)

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

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

func (*SVpc) GetStatus

func (self *SVpc) GetStatus() string

func (*SVpc) IsEmulated

func (self *SVpc) IsEmulated() bool

func (*SVpc) ProposeJoinICloudInterVpcNetwork

func (self *SVpc) ProposeJoinICloudInterVpcNetwork(opts *cloudprovider.SVpcJointInterVpcNetworkOption) error

func (*SVpc) Refresh

func (self *SVpc) Refresh() error

func (*SVpc) SetTags

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

type SWire

type SWire struct {
	multicloud.SResourceBase
	QcloudTags
	// 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) GetNetworkById

func (self *SWire) GetNetworkById(networkId string) *SNetwork

func (*SWire) GetStatus

func (self *SWire) GetStatus() string

func (*SWire) IsEmulated

func (self *SWire) IsEmulated() bool

func (*SWire) Refresh

func (self *SWire) Refresh() error

type SZone

type SZone struct {
	multicloud.SResourceBase
	QcloudTags

	Zone      string
	ZoneName  string
	ZoneState 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) Refresh

func (self *SZone) Refresh() error

type SZoneConf

type SZoneConf struct {
	DeployMode []int
	MasterZone []string
	SlaveZone  []string
	BackupZone []string
}

type SZoneInstanceType

type SZoneInstanceType struct {
	Zone               string
	InstanceType       string
	InstanceChargeType string
	NetworkCard        int
	Externals          SExternal
	Cpu                int
	Memory             int
	InstanceFamily     string
	TypeName           string
	LocalDiskTypeList  []SLocalDiskType
	Status             string
}

type SZoneSellConf

type SZoneSellConf struct {
	Status                 int
	ZoneName               string
	IsCustom               bool
	IsSupportDr            bool
	IsSupportVpc           bool
	HourInstanceSaleMaxNum int
	IsDefaultZone          bool
	IsBm                   bool
	PayType                []string
	ProtectMode            string
	Zone                   string
	SellType               []SSellType
	ZoneConf               SZoneConf
	DrZone                 []string
	IsSupportRemoteRo      bool
}

type SaleZoneInfo

type SaleZoneInfo struct {
	Zone     string
	ZoneId   string
	ZoneName string
}

type SecurityGroupPolicySet

type SecurityGroupPolicySet struct {
	Version string
	Egress  []SecurityGroupRule //	出站规则。
	Ingress []SecurityGroupRule //	入站规则。
}

type SecurityGroupRule

type SecurityGroupRule struct {
	Direction         secrules.TSecurityRuleDirection
	PolicyIndex       int                          // 安全组规则索引号。
	Protocol          string                       // 协议, 取值: TCP,UDP, ICMP。
	Port              string                       // 端口(all, 离散port, range)。
	ServiceTemplate   ServiceTemplateSpecification // 协议端口ID或者协议端口组ID。ServiceTemplate和Protocol+Port互斥。
	CidrBlock         string                       // 网段或IP(互斥)。
	Ipv6CidrBlock     string
	SecurityGroupId   string                       // 已绑定安全组的网段或IP。
	AddressTemplate   AddressTemplateSpecification // IP地址ID或者ID地址组ID。
	Action            string                       // ACCEPT 或 DROP。
	PolicyDescription string                       // 安全组规则描述。
	// contains filtered or unexported fields
}

func (*SecurityGroupRule) Delete

func (self *SecurityGroupRule) Delete() error

func (*SecurityGroupRule) GetAction

func (*SecurityGroupRule) GetCIDRs

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

func (*SecurityGroupRule) GetDescription

func (self *SecurityGroupRule) GetDescription() string

func (*SecurityGroupRule) GetDirection

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

func (*SecurityGroupRule) GetGlobalId

func (self *SecurityGroupRule) GetGlobalId() string

func (*SecurityGroupRule) GetPorts

func (self *SecurityGroupRule) GetPorts() string

func (*SecurityGroupRule) GetPriority

func (self *SecurityGroupRule) GetPriority() int

func (*SecurityGroupRule) GetProtocol

func (self *SecurityGroupRule) GetProtocol() string

func (*SecurityGroupRule) Update

type SellTypeConfig

type SellTypeConfig struct {
	Device     string
	Type       string
	CdbType    string
	Memory     int
	Cpu        int
	VolumeMin  int
	VolumeMax  int
	VolumeStep int
	Connection int
	Qps        int
	Iops       int
	Info       string
	Status     string
	Tag        string
}

type ServiceTemplateSpecification

type ServiceTemplateSpecification struct {
	ServiceId      string //	协议端口ID,例如:ppm-f5n1f8da。
	ServiceGroupId string //	协议端口组ID,例如:ppmg-f5n1f8da。
}

func (*ServiceTemplateSpecification) GetGlobalId

func (self *ServiceTemplateSpecification) GetGlobalId() string

type ShardDetail

type ShardDetail struct {
	CPU             int    `json:"Cpu"`
	Createtime      string `json:"Createtime"`
	Memory          int    `json:"Memory"`
	NodeCount       int    `json:"NodeCount"`
	Pid             int    `json:"Pid"`
	ShardId         int    `json:"ShardId"`
	ShardInstanceId string `json:"ShardInstanceId"`
	ShardSerialId   string `json:"ShardSerialId"`
	Status          int    `json:"Status"`
	Storage         int    `json:"Storage"`
}

type SlaveInfo

type SlaveInfo struct {
	First  SlaveInstanceInfo
	Second SlaveInstanceInfo
}

type SlaveInstanceInfo

type SlaveInstanceInfo struct {
	Region string
	Vip    string
	VpcId  int
	Vport  int
	Zone   string
}

type SnapshotStatusType

type SnapshotStatusType string
const (
	SnapshotStatusAccomplished SnapshotStatusType = "NORMAL"
	SnapshotStatusProgress     SnapshotStatusType = "CREATING"
	SnapshotStatusFailed       SnapshotStatusType = "failed"
)

type SpecInfoList

type SpecInfoList struct {
	Region           string
	Zone             string
	SpecItemInfoList []SpecItemInfoList
}

type SpecItemInfoList

type SpecItemInfoList struct {
	SpecCode    string
	Version     string
	VersionName string
	Cpu         int
	Memory      int
	MaxStorage  int
	MinStorage  int
	Qps         int
	Pid         int
	Type        string
}

type SqlServerSpecInfoList

type SqlServerSpecInfoList struct {
	Cpu             int
	MachineType     string
	MachineTypeName string
	MaxStorage      int
	Memory          int
	MinStorage      int
	PayModeStatus   string
	Pid             int
	PostPid         []int
	Qps             int
	RoPid           int
	SpecId          int
	SuitInfo        string
	Version         string
	VersionName     string
}

type Statement

type Statement struct {
	Action    string
	Effect    string
	Principal SPrincipal
}

type SupportImageSet

type SupportImageSet struct {
	ImportImageOsListSupported ImportImageOsListSupported
	ImportImageOsVersionSet    []ImportImageOsVersionSet
}

type SystemDisk

type SystemDisk struct {
	DiskType string  //系统盘类型。系统盘类型限制详见CVM实例配置。取值范围:LOCAL_BASIC:本地硬盘 LOCAL_SSD:本地SSD硬盘 CLOUD_BASIC:普通云硬盘 CLOUD_SSD:SSD云硬盘 CLOUD_PREMIUM:高性能云硬盘 默认取值:CLOUD_BASIC。
	DiskId   string  //	系统盘ID。LOCAL_BASIC 和 LOCAL_SSD 类型没有ID。暂时不支持该参数。
	DiskSize float32 //系统盘大小,单位:GB。默认值为 50
}

type Tag

type Tag struct {
	Key   string
	Value string
}

type VirtualPrivateCloud

type VirtualPrivateCloud struct {
	VpcId              string   //	私有网络ID,形如vpc-xxx。有效的VpcId可通过登录控制台查询;也可以调用接口 DescribeVpcEx ,从接口返回中的unVpcId字段获取。
	SubnetId           string   //	私有网络子网ID,形如subnet-xxx。有效的私有网络子网ID可通过登录控制台查询;也可以调用接口 DescribeSubnets ,从接口返回中的unSubnetId字段获取。
	AsVpcGateway       bool     //	是否用作公网网关。公网网关只有在实例拥有公网IP以及处于私有网络下时才能正常使用。取值范围:TRUE:表示用作公网网关 FALSE:表示不用作公网网关 默认取值:FALSE。
	PrivateIpAddresses []string //	私有网络子网 IP 数组,在创建实例、修改实例vpc属性操作中可使用此参数。当前仅批量创建多台实例时支持传入相同子网的多个 IP。
}

type ZoneSet

type ZoneSet struct {
	Zone     string `json:"Zone"`
	ZoneId   int64  `json:"ZoneId"`
	ZoneName string `json:"ZoneName"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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