Documentation ¶
Index ¶
- Constants
- Variables
- func GetBucketName(regionId string, imageId string) string
- func NatResouceStatusTransfer(status string) string
- func ToHuaweiHealthCheckHttpCode(c string) string
- func ToOnecloudHealthCheckHttpCode(c string) string
- type AcceptVpcInfo
- type Attachment
- type DiskMeta
- type ExtraSpecs
- type Flavor
- type GaussDBMySQL
- type GaussDBNoSQL
- type HuaweiClientConfig
- type HuaweiDiskTags
- type HuaweiTags
- type Image
- type InsertHeaders
- type IpAddress
- type Listener
- type Loadbalancer
- type Locales
- type Metadata
- type MetricData
- type ModelartsStatistics
- type OSExtendedVolumesVolumesAttached
- type OSExtraSpecs
- type OSSchedulerHints
- type Pool
- type Port
- func (port *Port) GetAssociateId() string
- func (port *Port) GetAssociateType() string
- func (port *Port) GetGlobalId() string
- func (port *Port) GetICloudInterfaceAddresses() ([]cloudprovider.ICloudInterfaceAddress, error)
- func (port *Port) GetId() string
- func (port *Port) GetMacAddress() string
- func (port *Port) GetName() string
- func (port *Port) GetStatus() string
- type RequestVpcInfo
- type Rule
- type SAMLProvider
- func (self *SAMLProvider) Delete() error
- func (self *SAMLProvider) GetAuthUrl(apiServer string) string
- func (self *SAMLProvider) GetGlobalId() string
- func (self *SAMLProvider) GetId() string
- func (self *SAMLProvider) GetMetadataDocument() (*samlutils.EntityDescriptor, error)
- func (self *SAMLProvider) GetName() string
- func (self *SAMLProvider) GetStatus() string
- func (self *SAMLProvider) UpdateMetadata(metadata samlutils.EntityDescriptor) error
- type SAMLProviderLinks
- type SAMLProviderMapping
- type SAMLProviderMetadata
- type SAMLProviderProtocol
- type SAccessKey
- type SBackupStrategy
- type SBalance
- type SBucket
- func (b *SBucket) AbortMultipartUpload(ctx context.Context, key string, uploadId string) error
- func (b *SBucket) CompleteMultipartUpload(ctx context.Context, key string, uploadId string, partEtags []string) error
- func (b *SBucket) CopyObject(ctx context.Context, destKey string, srcBucket, srcKey string, ...) error
- func (b *SBucket) CopyPart(ctx context.Context, key string, uploadId string, partIndex int, ...) (string, error)
- func (b *SBucket) DeleteCORS() error
- func (b *SBucket) DeleteObject(ctx context.Context, key string) error
- func (b *SBucket) DeletePolicy(id []string) ([]cloudprovider.SBucketPolicyStatement, error)
- func (b *SBucket) DeleteWebSiteConf() error
- func (b *SBucket) GetAccessUrls() []cloudprovider.SBucketAccessUrl
- func (b *SBucket) GetAcl() cloudprovider.TBucketACLType
- func (b *SBucket) GetCORSRules() ([]cloudprovider.SBucketCORSRule, error)
- func (b *SBucket) GetCreatedAt() time.Time
- func (b *SBucket) GetGlobalId() string
- func (b *SBucket) GetIRegion() cloudprovider.ICloudRegion
- func (b *SBucket) GetLimit() cloudprovider.SBucketStats
- func (b *SBucket) GetLocation() string
- func (b *SBucket) GetName() string
- func (b *SBucket) GetObject(ctx context.Context, key string, rangeOpt *cloudprovider.SGetObjectRange) (io.ReadCloser, error)
- func (b *SBucket) GetPolicy() ([]cloudprovider.SBucketPolicyStatement, error)
- func (b *SBucket) GetProjectId() string
- func (b *SBucket) GetStats() cloudprovider.SBucketStats
- func (b *SBucket) GetStorageClass() string
- func (b *SBucket) GetTags() (map[string]string, error)
- func (b *SBucket) GetTempUrl(method string, key string, expire time.Duration) (string, error)
- func (b *SBucket) GetWebsiteConf() (cloudprovider.SBucketWebsiteConf, error)
- func (b *SBucket) LimitSupport() cloudprovider.SBucketStats
- func (b *SBucket) ListMultipartUploads() ([]cloudprovider.SBucketMultipartUploads, error)
- func (b *SBucket) ListObjects(prefix string, marker string, delimiter string, maxCount int) (cloudprovider.SListObjectResult, error)
- func (b *SBucket) NewMultipartUpload(ctx context.Context, key string, cannedAcl cloudprovider.TBucketACLType, ...) (string, error)
- func (b *SBucket) PutObject(ctx context.Context, key string, reader io.Reader, sizeBytes int64, ...) error
- func (b *SBucket) SetAcl(acl cloudprovider.TBucketACLType) error
- func (b *SBucket) SetCORS(rules []cloudprovider.SBucketCORSRule) error
- func (b *SBucket) SetLimit(limit cloudprovider.SBucketStats) error
- func (b *SBucket) SetPolicy(policy cloudprovider.SBucketPolicyStatementInput) error
- func (b *SBucket) SetTags(tags map[string]string, replace bool) error
- func (b *SBucket) SetWebsite(websitConf cloudprovider.SBucketWebsiteConf) error
- func (b *SBucket) UploadPart(ctx context.Context, key string, uploadId string, partIndex int, ...) (string, error)
- type SBucketPolicyStatement
- type SBucketPolicyStatementDetails
- type SCdnDomain
- func (cd *SCdnDomain) Delete() error
- func (cd *SCdnDomain) GetArea() string
- func (cd *SCdnDomain) GetCache() (*cloudprovider.SCDNCache, error)
- func (cd *SCdnDomain) GetCacheKeys() (*cloudprovider.SCDNCacheKeys, error)
- func (cd *SCdnDomain) GetCname() string
- func (cd *SCdnDomain) GetEnabled() bool
- func (cd *SCdnDomain) GetForceRedirect() (*cloudprovider.SCDNForceRedirect, error)
- func (cd *SCdnDomain) GetGlobalId() string
- func (cd *SCdnDomain) GetHTTPS() (*cloudprovider.SCDNHttps, error)
- func (cd *SCdnDomain) GetId() string
- func (cd *SCdnDomain) GetMaxAge() (*cloudprovider.SCDNMaxAge, error)
- func (cd *SCdnDomain) GetName() string
- func (cd *SCdnDomain) GetOrigins() *cloudprovider.SCdnOrigins
- func (self *SCdnDomain) GetProjectId() string
- func (cd *SCdnDomain) GetRangeOriginPull() (*cloudprovider.SCDNRangeOriginPull, error)
- func (cd *SCdnDomain) GetReferer() (*cloudprovider.SCDNReferer, error)
- func (cd *SCdnDomain) GetServiceType() string
- func (cd *SCdnDomain) GetStatus() string
- func (cd *SCdnDomain) Refresh() error
- type SCdnDomainOriginHost
- type SCdnSource
- type SCloudgroup
- func (group *SCloudgroup) AddUser(name string) error
- func (group *SCloudgroup) AttachCustomPolicy(roleId string) error
- func (group *SCloudgroup) AttachSystemPolicy(roleId string) error
- func (group *SCloudgroup) Delete() error
- func (group *SCloudgroup) DetachCustomPolicy(roleId string) error
- func (group *SCloudgroup) DetachSystemPolicy(roleId string) error
- func (group *SCloudgroup) GetDescription() string
- func (group *SCloudgroup) GetGlobalId() string
- func (group *SCloudgroup) GetICloudusers() ([]cloudprovider.IClouduser, error)
- func (group *SCloudgroup) GetICustomCloudpolicies() ([]cloudprovider.ICloudpolicy, error)
- func (group *SCloudgroup) GetISystemCloudpolicies() ([]cloudprovider.ICloudpolicy, error)
- func (group *SCloudgroup) GetName() string
- func (group *SCloudgroup) RemoveUser(name string) error
- type SClouduser
- func (user *SClouduser) AttachCustomPolicy(policyType string) error
- func (user *SClouduser) AttachSystemPolicy(policyType string) error
- func (user *SClouduser) CreateAccessKey(name string) (*cloudprovider.SAccessKey, error)
- func (user *SClouduser) Delete() error
- func (user *SClouduser) DeleteAccessKey(accessKey string) error
- func (user *SClouduser) DetachCustomPolicy(policyId string) error
- func (user *SClouduser) DetachSystemPolicy(policyId string) error
- func (user *SClouduser) GetAccessKeys() ([]cloudprovider.SAccessKey, error)
- func (user *SClouduser) GetEmailAddr() string
- func (user *SClouduser) GetGlobalId() string
- func (user *SClouduser) GetICloudgroups() ([]cloudprovider.ICloudgroup, error)
- func (user *SClouduser) GetICustomCloudpolicies() ([]cloudprovider.ICloudpolicy, error)
- func (user *SClouduser) GetISystemCloudpolicies() ([]cloudprovider.ICloudpolicy, error)
- func (user *SClouduser) GetInviteUrl() string
- func (user *SClouduser) GetName() string
- func (user *SClouduser) IsConsoleLogin() bool
- func (user *SClouduser) ResetPassword(password string) error
- type SDBInstance
- func (rds *SDBInstance) ChangeConfig(cxt context.Context, desc *cloudprovider.SManagedDBInstanceChangeConfig) error
- func (rds *SDBInstance) ClosePublicConnection() error
- func (rds *SDBInstance) CreateAccount(conf *cloudprovider.SDBInstanceAccountCreateConfig) error
- func (rds *SDBInstance) CreateDatabase(conf *cloudprovider.SDBInstanceDatabaseCreateConfig) error
- func (rds *SDBInstance) CreateIBackup(conf *cloudprovider.SDBInstanceBackupCreateConfig) (string, error)
- func (rds *SDBInstance) Delete() error
- func (rds *SDBInstance) GetBillingType() string
- func (rds *SDBInstance) GetCategory() string
- func (rds *SDBInstance) GetConnectionStr() string
- func (rds *SDBInstance) GetCreatedAt() time.Time
- func (rds *SDBInstance) GetDBNetworks() ([]cloudprovider.SDBInstanceNetwork, error)
- func (rds *SDBInstance) GetDiskSizeGB() int
- func (rds *SDBInstance) GetEngine() string
- func (rds *SDBInstance) GetEngineVersion() string
- func (rds *SDBInstance) GetExpiredAt() time.Time
- func (rds *SDBInstance) GetGlobalId() string
- func (rds *SDBInstance) GetIDBInstanceAccounts() ([]cloudprovider.ICloudDBInstanceAccount, error)
- func (rds *SDBInstance) GetIDBInstanceBackups() ([]cloudprovider.ICloudDBInstanceBackup, error)
- func (rds *SDBInstance) GetIDBInstanceDatabases() ([]cloudprovider.ICloudDBInstanceDatabase, error)
- func (rds *SDBInstance) GetIDBInstanceParameters() ([]cloudprovider.ICloudDBInstanceParameter, error)
- func (rds *SDBInstance) GetIVpcId() string
- func (rds *SDBInstance) GetId() string
- func (rds *SDBInstance) GetInstanceType() string
- func (rds *SDBInstance) GetInternalConnectionStr() string
- func (rds *SDBInstance) GetIops() int
- func (rds *SDBInstance) GetMaintainTime() string
- func (rds *SDBInstance) GetName() string
- func (rds *SDBInstance) GetPort() int
- func (rds *SDBInstance) GetProjectId() string
- func (rds *SDBInstance) GetSecurityGroupIds() ([]string, error)
- func (rds *SDBInstance) GetStatus() string
- func (rds *SDBInstance) GetStorageType() string
- func (rds *SDBInstance) GetVcpuCount() int
- func (rds *SDBInstance) GetVmemSizeMB() int
- func (rds *SDBInstance) GetZone1Id() string
- func (rds *SDBInstance) GetZone2Id() string
- func (rds *SDBInstance) GetZone3Id() string
- func (rds *SDBInstance) GetZoneIdByRole(role string) string
- func (rds *SDBInstance) OpenPublicConnection() error
- func (rds *SDBInstance) Reboot() error
- func (rds *SDBInstance) RecoveryFromBackup(conf *cloudprovider.SDBInstanceRecoveryConfig) error
- func (rds *SDBInstance) Refresh() error
- func (rds *SDBInstance) Renew(bc billing.SBillingCycle) error
- func (self *SDBInstance) SetTags(tags map[string]string, replace bool) error
- func (rds *SDBInstance) Update(ctx context.Context, input cloudprovider.SDBInstanceUpdateOptions) error
- type SDBInstanceAccount
- func (account *SDBInstanceAccount) Delete() error
- func (account *SDBInstanceAccount) GetIDBInstanceAccountPrivileges() ([]cloudprovider.ICloudDBInstanceAccountPrivilege, error)
- func (account *SDBInstanceAccount) GetName() string
- func (account *SDBInstanceAccount) GrantPrivilege(database, privilege string) error
- func (account *SDBInstanceAccount) ResetPassword(password string) error
- func (account *SDBInstanceAccount) RevokePrivilege(database string) error
- type SDBInstanceBackup
- func (self *SDBInstanceBackup) CreateICloudDBInstance(opts *cloudprovider.SManagedDBInstanceCreateConfig) (cloudprovider.ICloudDBInstance, error)
- func (backup *SDBInstanceBackup) Delete() error
- func (backup *SDBInstanceBackup) GetBackupMode() string
- func (backup *SDBInstanceBackup) GetBackupSizeMb() int
- func (backup *SDBInstanceBackup) GetDBInstanceId() string
- func (backup *SDBInstanceBackup) GetDBNames() string
- func (backup *SDBInstanceBackup) GetEndTime() time.Time
- func (backup *SDBInstanceBackup) GetEngine() string
- func (backup *SDBInstanceBackup) GetEngineVersion() string
- func (backup *SDBInstanceBackup) GetGlobalId() string
- func (backup *SDBInstanceBackup) GetId() string
- func (backup *SDBInstanceBackup) GetName() string
- func (backup *SDBInstanceBackup) GetStartTime() time.Time
- func (backup *SDBInstanceBackup) GetStatus() string
- func (backup *SDBInstanceBackup) Refresh() error
- type SDBInstanceDatabase
- func (database *SDBInstanceDatabase) Delete() error
- func (database *SDBInstanceDatabase) GetCharacterSet() string
- func (database *SDBInstanceDatabase) GetGlobalId() string
- func (database *SDBInstanceDatabase) GetId() string
- func (database *SDBInstanceDatabase) GetName() string
- func (database *SDBInstanceDatabase) GetStatus() string
- type SDBInstanceFlavor
- type SDBInstanceJob
- type SDBInstanceParameter
- type SDatabasePrivilege
- type SDatastore
- type SDisk
- func (self *SDisk) Attach(device string) error
- func (self *SDisk) CreateISnapshot(ctx context.Context, name string, desc string) (cloudprovider.ICloudSnapshot, error)
- func (self *SDisk) Delete(ctx context.Context) error
- func (self *SDisk) Detach() error
- func (self *SDisk) GetAccessPath() string
- func (self *SDisk) GetBillingType() string
- func (self *SDisk) GetCacheMode() string
- func (self *SDisk) GetCreatedAt() time.Time
- func (self *SDisk) GetDiskFormat() string
- func (self *SDisk) GetDiskSizeMB() int
- func (self *SDisk) GetDiskType() string
- func (self *SDisk) GetDriver() string
- func (self *SDisk) GetExpiredAt() time.Time
- func (self *SDisk) GetFsFormat() string
- func (self *SDisk) GetGlobalId() string
- func (self *SDisk) GetISnapshot(snapshotId string) (cloudprovider.ICloudSnapshot, error)
- func (self *SDisk) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error)
- func (self *SDisk) GetIStorage() (cloudprovider.ICloudStorage, error)
- func (self *SDisk) GetId() string
- func (self *SDisk) GetIsAutoDelete() bool
- func (self *SDisk) GetIsNonPersistent() bool
- func (self *SDisk) GetMountServerId() string
- func (self *SDisk) GetMountpoint() string
- func (self *SDisk) GetName() string
- func (self *SDisk) GetProjectId() string
- func (self *SDisk) GetStatus() string
- func (self *SDisk) GetTemplateId() string
- func (self *SDisk) Rebuild(ctx context.Context) error
- func (self *SDisk) Refresh() error
- func (self *SDisk) Reset(ctx context.Context, snapshotId string) (string, error)
- func (self *SDisk) Resize(ctx context.Context, newSizeMB int64) error
- type SDiskType
- type SDomain
- type SEipAddress
- func (self *SEipAddress) Associate(opts *cloudprovider.AssociateConfig) error
- func (self *SEipAddress) ChangeBandwidth(bw int) error
- func (self *SEipAddress) Delete() error
- func (self *SEipAddress) Dissociate() error
- func (self *SEipAddress) GetAssociationExternalId() string
- func (self *SEipAddress) GetAssociationType() string
- func (self *SEipAddress) GetBandwidth() int
- func (self *SEipAddress) GetBillingType() string
- func (self *SEipAddress) GetCreatedAt() time.Time
- func (self *SEipAddress) GetExpiredAt() time.Time
- func (self *SEipAddress) GetGlobalId() string
- func (self *SEipAddress) GetId() string
- func (self *SEipAddress) GetInternetChargeType() string
- func (self *SEipAddress) GetIpAddr() string
- func (self *SEipAddress) GetMode() string
- func (self *SEipAddress) GetName() string
- func (self *SEipAddress) GetProjectId() string
- func (self *SEipAddress) GetStatus() string
- func (self *SEipAddress) Refresh() error
- func (self *SEipAddress) SetTags(tags map[string]string, replace bool) error
- type SElasticcache
- func (self *SElasticcache) AllocatePublicConnection(port int) (string, error)
- func (self *SElasticcache) ChangeInstanceSpec(spec string) error
- func (self *SElasticcache) CreateAccount(account cloudprovider.SCloudElasticCacheAccountInput) (cloudprovider.ICloudElasticcacheAccount, error)
- func (self *SElasticcache) CreateAcl(aclName, securityIps string) (cloudprovider.ICloudElasticcacheAcl, error)
- func (self *SElasticcache) CreateBackup(desc string) (cloudprovider.ICloudElasticcacheBackup, error)
- func (self *SElasticcache) Delete() error
- func (self *SElasticcache) FlushInstance(input cloudprovider.SCloudElasticCacheFlushInstanceInput) error
- func (self *SElasticcache) GetArchType() string
- func (self *SElasticcache) GetAuthMode() string
- func (self *SElasticcache) GetBillingType() string
- func (self *SElasticcache) GetCapacityMB() int
- func (self *SElasticcache) GetCreatedAt() time.Time
- func (self *SElasticcache) GetEngine() string
- func (self *SElasticcache) GetEngineVersion() string
- func (self *SElasticcache) GetExpiredAt() time.Time
- func (self *SElasticcache) GetGlobalId() string
- func (self *SElasticcache) GetICloudElasticcacheAccount(accountId string) (cloudprovider.ICloudElasticcacheAccount, error)
- func (self *SElasticcache) GetICloudElasticcacheAccounts() ([]cloudprovider.ICloudElasticcacheAccount, error)
- func (self *SElasticcache) GetICloudElasticcacheAcl(aclId string) (cloudprovider.ICloudElasticcacheAcl, error)
- func (self *SElasticcache) GetICloudElasticcacheAcls() ([]cloudprovider.ICloudElasticcacheAcl, error)
- func (self *SElasticcache) GetICloudElasticcacheBackup(backupId string) (cloudprovider.ICloudElasticcacheBackup, error)
- func (self *SElasticcache) GetICloudElasticcacheBackups() ([]cloudprovider.ICloudElasticcacheBackup, error)
- func (self *SElasticcache) GetICloudElasticcacheParameters() ([]cloudprovider.ICloudElasticcacheParameter, error)
- func (self *SElasticcache) GetId() string
- func (self *SElasticcache) GetInstanceType() string
- func (self *SElasticcache) GetMaintainEndTime() string
- func (self *SElasticcache) GetMaintainStartTime() string
- func (self *SElasticcache) GetName() string
- func (self *SElasticcache) GetNetworkId() string
- func (self *SElasticcache) GetNetworkType() string
- func (self *SElasticcache) GetNodeType() string
- func (self *SElasticcache) GetPrivateConnectPort() int
- func (self *SElasticcache) GetPrivateDNS() string
- func (self *SElasticcache) GetPrivateIpAddr() string
- func (self *SElasticcache) GetProjectId() string
- func (self *SElasticcache) GetPublicConnectPort() int
- func (self *SElasticcache) GetPublicDNS() string
- func (self *SElasticcache) GetPublicIpAddr() string
- func (self *SElasticcache) GetSecurityGroupIds() ([]string, error)
- func (self *SElasticcache) GetStatus() string
- func (self *SElasticcache) GetVpcId() string
- func (self *SElasticcache) GetZoneId() string
- func (self *SElasticcache) Refresh() error
- func (self *SElasticcache) ReleasePublicConnection() error
- func (self *SElasticcache) Renew(bc billing.SBillingCycle) error
- func (self *SElasticcache) Restart() error
- func (self *SElasticcache) SetAutoRenew(bc billing.SBillingCycle) error
- func (self *SElasticcache) SetMaintainTime(maintainStartTime, maintainEndTime string) error
- func (instance *SElasticcache) SetTags(tags map[string]string, replace bool) error
- func (self *SElasticcache) UpdateAuthMode(noPwdAccess bool, password string) error
- func (self *SElasticcache) UpdateBackupPolicy(opts cloudprovider.SCloudElasticCacheBackupPolicyUpdateInput) error
- func (self *SElasticcache) UpdateInstanceParameters(config jsonutils.JSONObject) error
- func (self *SElasticcache) UpdateSecurityGroups(secgroupIds []string) error
- type SElasticcacheAccount
- func (self *SElasticcacheAccount) Delete() error
- func (self *SElasticcacheAccount) GetAccountPrivilege() string
- func (self *SElasticcacheAccount) GetAccountType() string
- func (self *SElasticcacheAccount) GetGlobalId() string
- func (self *SElasticcacheAccount) GetId() string
- func (self *SElasticcacheAccount) GetName() string
- func (self *SElasticcacheAccount) GetStatus() string
- func (self *SElasticcacheAccount) ResetPassword(input cloudprovider.SCloudElasticCacheAccountResetPasswordInput) error
- func (self *SElasticcacheAccount) UpdateAccount(input cloudprovider.SCloudElasticCacheAccountUpdateInput) error
- type SElasticcacheBackup
- func (self *SElasticcacheBackup) Delete() error
- func (self *SElasticcacheBackup) GetBackupMode() string
- func (self *SElasticcacheBackup) GetBackupSizeMb() int
- func (self *SElasticcacheBackup) GetBackupType() string
- func (self *SElasticcacheBackup) GetDownloadURL() string
- func (self *SElasticcacheBackup) GetEndTime() time.Time
- func (self *SElasticcacheBackup) GetGlobalId() string
- func (self *SElasticcacheBackup) GetId() string
- func (self *SElasticcacheBackup) GetName() string
- func (self *SElasticcacheBackup) GetStartTime() time.Time
- func (self *SElasticcacheBackup) GetStatus() string
- func (self *SElasticcacheBackup) Refresh() error
- func (self *SElasticcacheBackup) RestoreInstance(instanceId string) error
- type SElasticcacheParameter
- func (self *SElasticcacheParameter) GetDescription() string
- func (self *SElasticcacheParameter) GetForceRestart() bool
- func (self *SElasticcacheParameter) GetGlobalId() string
- func (self *SElasticcacheParameter) GetId() string
- func (self *SElasticcacheParameter) GetModifiable() bool
- func (self *SElasticcacheParameter) GetName() string
- func (self *SElasticcacheParameter) GetParameterKey() string
- func (self *SElasticcacheParameter) GetParameterValue() string
- func (self *SElasticcacheParameter) GetParameterValueRange() string
- func (self *SElasticcacheParameter) GetStatus() string
- type SElbACL
- func (self *SElbACL) Delete() error
- func (self *SElbACL) GetAclEntries() []cloudprovider.SLoadbalancerAccessControlListEntry
- func (self *SElbACL) GetAclListenerID() string
- func (self *SElbACL) GetGlobalId() string
- func (self *SElbACL) GetId() string
- func (self *SElbACL) GetName() string
- func (self *SElbACL) GetProjectId() string
- func (self *SElbACL) GetStatus() string
- func (self *SElbACL) IsEmulated() bool
- func (self *SElbACL) Refresh() error
- func (self *SElbACL) Sync(acl *cloudprovider.SLoadbalancerAccessControlList) error
- type SElbBackend
- func (self *SElbBackend) GetBackendId() string
- func (self *SElbBackend) GetBackendRole() string
- func (self *SElbBackend) GetBackendType() string
- func (self *SElbBackend) GetGlobalId() string
- func (self *SElbBackend) GetId() string
- func (self *SElbBackend) GetIpAddress() string
- func (self *SElbBackend) GetName() string
- func (self *SElbBackend) GetPort() int
- func (self *SElbBackend) GetProjectId() string
- func (self *SElbBackend) GetStatus() string
- func (self *SElbBackend) GetWeight() int
- func (self *SElbBackend) IsEmulated() bool
- func (self *SElbBackend) Refresh() error
- func (self *SElbBackend) SyncConf(ctx context.Context, port, weight int) error
- type SElbBackendGroup
- func (self *SElbBackendGroup) AddBackendServer(serverId string, weight int, port int) (cloudprovider.ICloudLoadbalancerBackend, error)
- func (self *SElbBackendGroup) Delete(ctx context.Context) error
- func (self *SElbBackendGroup) GetGlobalId() string
- func (self *SElbBackendGroup) GetHealthCheck() (*cloudprovider.SLoadbalancerHealthCheck, error)
- func (self *SElbBackendGroup) GetILoadbalancer() cloudprovider.ICloudLoadbalancer
- func (self *SElbBackendGroup) GetILoadbalancerBackendById(serverId string) (cloudprovider.ICloudLoadbalancerBackend, error)
- func (self *SElbBackendGroup) GetILoadbalancerBackends() ([]cloudprovider.ICloudLoadbalancerBackend, error)
- func (self *SElbBackendGroup) GetId() string
- func (self *SElbBackendGroup) GetLoadbalancerId() string
- func (self *SElbBackendGroup) GetName() string
- func (self *SElbBackendGroup) GetProjectId() string
- func (self *SElbBackendGroup) GetProtocolType() string
- func (self *SElbBackendGroup) GetScheduler() string
- func (self *SElbBackendGroup) GetStatus() string
- func (self *SElbBackendGroup) GetStickySession() (*cloudprovider.SLoadbalancerStickySession, error)
- func (self *SElbBackendGroup) GetType() string
- func (self *SElbBackendGroup) IsDefault() bool
- func (self *SElbBackendGroup) Refresh() error
- func (self *SElbBackendGroup) RemoveBackendServer(backendId string, weight int, port int) error
- func (self *SElbBackendGroup) Sync(ctx context.Context, group *cloudprovider.SLoadbalancerBackendGroup) error
- type SElbCert
- func (self *SElbCert) Delete() error
- func (self *SElbCert) GetCommonName() string
- func (self *SElbCert) GetExpireTime() time.Time
- func (self *SElbCert) GetFingerprint() string
- func (self *SElbCert) GetGlobalId() string
- func (self *SElbCert) GetId() string
- func (self *SElbCert) GetName() string
- func (self *SElbCert) GetPrivateKey() string
- func (self *SElbCert) GetProjectId() string
- func (self *SElbCert) GetPublickKey() string
- func (self *SElbCert) GetStatus() string
- func (self *SElbCert) GetSubjectAlternativeNames() string
- func (self *SElbCert) IsEmulated() bool
- func (self *SElbCert) Refresh() error
- func (self *SElbCert) Sync(name, privateKey, publickKey string) error
- type SElbHealthCheck
- type SElbListener
- func (self *SElbListener) ChangeCertificate(ctx context.Context, opts *cloudprovider.ListenerCertificateOptions) error
- func (self *SElbListener) ChangeScheduler(ctx context.Context, opts *cloudprovider.ChangeListenerSchedulerOptions) error
- func (self *SElbListener) CreateILoadBalancerListenerRule(rule *cloudprovider.SLoadbalancerListenerRule) (cloudprovider.ICloudLoadbalancerListenerRule, error)
- func (self *SElbListener) Delete(ctx context.Context) error
- func (self *SElbListener) GetAcl() (*SElbACL, error)
- func (self *SElbListener) GetAclId() string
- func (self *SElbListener) GetAclStatus() string
- func (self *SElbListener) GetAclType() string
- func (self *SElbListener) GetBackendConnectTimeout() int
- func (self *SElbListener) GetBackendGroup() (*SElbBackendGroup, error)
- func (self *SElbListener) GetBackendGroupId() string
- func (self *SElbListener) GetBackendServerPort() int
- func (self *SElbListener) GetCertificateId() string
- func (self *SElbListener) GetClientIdleTimeout() int
- func (self *SElbListener) GetEgressMbps() int
- func (self *SElbListener) GetGlobalId() string
- func (self *SElbListener) GetHealthCheck() string
- func (self *SElbListener) GetHealthCheckCode() string
- func (self *SElbListener) GetHealthCheckDomain() string
- func (self *SElbListener) GetHealthCheckExp() string
- func (self *SElbListener) GetHealthCheckFail() int
- func (self *SElbListener) GetHealthCheckInterval() int
- func (self *SElbListener) GetHealthCheckReq() string
- func (self *SElbListener) GetHealthCheckRise() int
- func (self *SElbListener) GetHealthCheckTimeout() int
- func (self *SElbListener) GetHealthCheckType() string
- func (self *SElbListener) GetHealthCheckURI() string
- func (self *SElbListener) GetILoadBalancerListenerRuleById(ruleId string) (cloudprovider.ICloudLoadbalancerListenerRule, error)
- func (self *SElbListener) GetILoadbalancerListenerRules() ([]cloudprovider.ICloudLoadbalancerListenerRule, error)
- func (self *SElbListener) GetId() string
- func (self *SElbListener) GetListenerPort() int
- func (self *SElbListener) GetListenerType() string
- func (self *SElbListener) GetName() string
- func (self *SElbListener) GetProjectId() string
- func (self *SElbListener) GetScheduler() string
- func (self *SElbListener) GetStatus() string
- func (self *SElbListener) GetStickySession() string
- func (self *SElbListener) GetStickySessionCookie() string
- func (self *SElbListener) GetStickySessionCookieTimeout() int
- func (self *SElbListener) GetStickySessionType() string
- func (self *SElbListener) GetTLSCipherPolicy() string
- func (self *SElbListener) GzipEnabled() bool
- func (self *SElbListener) HTTP2Enabled() bool
- func (self *SElbListener) IsEmulated() bool
- func (self *SElbListener) Refresh() error
- func (listerner *SElbListener) SetAcl(ctx context.Context, opts *cloudprovider.ListenerAclOptions) error
- func (self *SElbListener) SetHealthCheck(ctx context.Context, opts *cloudprovider.ListenerHealthCheckOptions) error
- func (self *SElbListener) Start() error
- func (self *SElbListener) Stop() error
- func (self *SElbListener) XForwardedForEnabled() bool
- type SElbListenerPolicy
- func (self *SElbListenerPolicy) Delete(ctx context.Context) error
- func (self *SElbListenerPolicy) GetBackendGroupId() string
- func (self *SElbListenerPolicy) GetCondition() string
- func (self *SElbListenerPolicy) GetDomain() string
- func (self *SElbListenerPolicy) GetGlobalId() string
- func (self *SElbListenerPolicy) GetId() string
- func (self *SElbListenerPolicy) GetName() string
- func (self *SElbListenerPolicy) GetPath() string
- func (self *SElbListenerPolicy) GetProjectId() string
- func (self *SElbListenerPolicy) GetRules() ([]SElbListenerPolicyRule, error)
- func (self *SElbListenerPolicy) GetStatus() string
- func (self *SElbListenerPolicy) IsDefault() bool
- func (self *SElbListenerPolicy) IsEmulated() bool
- func (self *SElbListenerPolicy) Refresh() error
- type SElbListenerPolicyRule
- type SEnterpriseProject
- type SEvent
- func (event *SEvent) GetAccount() string
- func (event *SEvent) GetAction() string
- func (event *SEvent) GetCreatedAt() time.Time
- func (event *SEvent) GetName() string
- func (event *SEvent) GetRequest() jsonutils.JSONObject
- func (event *SEvent) GetRequestId() string
- func (event *SEvent) GetResourceType() string
- func (event *SEvent) GetService() string
- func (event *SEvent) IsSuccess() bool
- type SFixedIP
- type SFunction
- type SGaussNoSQLFlavor
- type SHa
- type SHost
- func (self *SHost) CreateVM(opts *cloudprovider.SManagedVMCreateConfig) (cloudprovider.ICloudVM, error)
- func (self *SHost) GetAccessIp() string
- func (self *SHost) GetAccessMac() string
- func (self *SHost) GetCpuCount() int
- func (self *SHost) GetCpuDesc() string
- func (self *SHost) GetCpuMhz() int
- func (self *SHost) GetEnabled() bool
- func (self *SHost) GetGlobalId() string
- func (self *SHost) GetHostStatus() string
- func (self *SHost) GetHostType() string
- func (host *SHost) GetIHostNics() ([]cloudprovider.ICloudHostNetInterface, error)
- func (self *SHost) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)
- func (self *SHost) GetIStorages() ([]cloudprovider.ICloudStorage, error)
- func (self *SHost) GetIVMById(id string) (cloudprovider.ICloudVM, error)
- func (self *SHost) GetIVMs() ([]cloudprovider.ICloudVM, error)
- func (self *SHost) GetId() string
- func (self *SHost) GetIsMaintenance() bool
- func (self *SHost) GetMemSizeMB() int
- func (self *SHost) GetName() string
- func (self *SHost) GetNodeCount() int8
- func (self *SHost) GetSN() string
- func (self *SHost) GetStatus() string
- func (self *SHost) GetStorageSizeMB() int64
- func (self *SHost) GetStorageType() string
- func (self *SHost) GetSysInfo() jsonutils.JSONObject
- func (self *SHost) GetVersion() string
- func (self *SHost) IsEmulated() bool
- func (self *SHost) Refresh() error
- type SHuaweiClient
- func (self *SHuaweiClient) AddUserToGroup(groupId, userId string) error
- func (self *SHuaweiClient) AttachGroupCustomRole(groupId, roleId string) error
- func (self *SHuaweiClient) AttachGroupRole(groupId, roleId string) error
- func (self *SHuaweiClient) CreateAKSK(id, name string) (*cloudprovider.SAccessKey, error)
- func (self *SHuaweiClient) CreateClouduser(name, password, desc string) (*SClouduser, error)
- func (self *SHuaweiClient) CreateExterpriseProject(name, desc string) (*SEnterpriseProject, error)
- func (self *SHuaweiClient) CreateGroup(name, desc string) (*SCloudgroup, error)
- func (self *SHuaweiClient) CreateICloudgroup(name, desc string) (cloudprovider.ICloudgroup, error)
- func (self *SHuaweiClient) CreateIClouduser(conf *cloudprovider.SClouduserCreateConfig) (cloudprovider.IClouduser, error)
- func (self *SHuaweiClient) CreateIProject(name string) (cloudprovider.ICloudProject, error)
- func (self *SHuaweiClient) CreateSAMLProvider(opts *cloudprovider.SAMLProviderCreateOptions) (*SAMLProvider, error)
- func (self *SHuaweiClient) DeleteAKSK(accessKey string) error
- func (self *SHuaweiClient) DeleteClouduser(id string) error
- func (self *SHuaweiClient) DeleteGroup(id string) error
- func (self *SHuaweiClient) DeleteSAMLProvider(id string) error
- func (self *SHuaweiClient) DeleteSAMLProviderMapping(id string) error
- func (self *SHuaweiClient) DeleteSAMLProviderProtocol(spId, id string) error
- func (hc *SHuaweiClient) DescribeUserDomains(domain string, pageSize, pageNumber int) ([]SCdnDomain, int, error)
- func (self *SHuaweiClient) DetachGroupCustomRole(groupId, roleId string) error
- func (self *SHuaweiClient) DetachGroupRole(groupId, roleId string) error
- func (self *SHuaweiClient) GetAKSK(id string) ([]cloudprovider.SAccessKey, error)
- func (client *SHuaweiClient) GetAccountId() string
- func (hc *SHuaweiClient) GetCDNDomainByName(name string) (*SCdnDomain, error)
- func (self *SHuaweiClient) GetCapabilities() []string
- func (hc *SHuaweiClient) GetCdnDomain(domainID, epID string) (*SCdnDomain, error)
- func (hc *SHuaweiClient) GetCdnDomains() ([]SCdnDomain, error)
- func (self *SHuaweiClient) GetCloudusers(name string) ([]SClouduser, error)
- func (self *SHuaweiClient) GetCustomRole(name string) (*SRole, error)
- func (self *SHuaweiClient) GetCustomRoles() ([]SRole, error)
- func (self *SHuaweiClient) GetDomains() ([]SDomain, error)
- func (self *SHuaweiClient) GetEnterpriseProjects() ([]SEnterpriseProject, error)
- func (self *SHuaweiClient) GetGroupRoles(groupId string) ([]SRole, error)
- func (self *SHuaweiClient) GetGroupUsers(groupId string) ([]SClouduser, error)
- func (self *SHuaweiClient) GetGroups(domainId, name string) ([]SCloudgroup, error)
- func (hc *SHuaweiClient) GetICloudCDNDomainByName(name string) (cloudprovider.ICloudCDNDomain, error)
- func (hc *SHuaweiClient) GetICloudCDNDomains() ([]cloudprovider.ICloudCDNDomain, error)
- func (self *SHuaweiClient) GetICloudSAMLProviders() ([]cloudprovider.ICloudSAMLProvider, error)
- func (self *SHuaweiClient) GetICloudgroupByName(name string) (cloudprovider.ICloudgroup, error)
- func (self *SHuaweiClient) GetICloudgroups() ([]cloudprovider.ICloudgroup, error)
- func (self *SHuaweiClient) GetIClouduserByName(name string) (cloudprovider.IClouduser, error)
- func (self *SHuaweiClient) GetICloudusers() ([]cloudprovider.IClouduser, error)
- func (self *SHuaweiClient) GetIProjects() ([]cloudprovider.ICloudProject, error)
- func (self *SHuaweiClient) GetIRegionById(id string) (cloudprovider.ICloudRegion, error)
- func (self *SHuaweiClient) GetIRegions() []cloudprovider.ICloudRegion
- func (self *SHuaweiClient) GetISSLCertificate(certId string) (cloudprovider.ICloudSSLCertificate, error)
- func (self *SHuaweiClient) GetISSLCertificates() ([]cloudprovider.ICloudSSLCertificate, error)
- func (self *SHuaweiClient) GetISystemCloudpolicies() ([]cloudprovider.ICloudpolicy, error)
- func (client *SHuaweiClient) GetIamLoginUrl() string
- func (self *SHuaweiClient) GetMetrics(opts *cloudprovider.MetricListOptions) ([]cloudprovider.MetricValues, error)
- func (self *SHuaweiClient) GetMosProjectId() string
- func (self *SHuaweiClient) GetOrderResources() (map[string]SOrderResource, error)
- func (self *SHuaweiClient) GetOwnerId() (string, error)
- func (self *SHuaweiClient) GetProjectById(projectId string) (SProject, error)
- func (self *SHuaweiClient) GetProjects() ([]SProject, error)
- func (self *SHuaweiClient) GetRegion(regionId string) *SRegion
- func (self *SHuaweiClient) GetRegions() []SRegion
- func (self *SHuaweiClient) GetRole(name string) (*SRole, error)
- func (self *SHuaweiClient) GetRoles(domainId, name string) ([]SRole, error)
- func (self *SHuaweiClient) GetSAMLProviderMetadata(id string) (*SAMLProviderMetadata, error)
- func (self *SHuaweiClient) GetSAMLProviderProtocols(id string) ([]SAMLProviderProtocol, error)
- func (r *SHuaweiClient) GetSSLCertificate(certId string) (*SSSLCertificate, error)
- func (r *SHuaweiClient) GetSSLCertificates() ([]SSSLCertificate, error)
- func (self *SHuaweiClient) GetSubAccounts() ([]cloudprovider.SSubAccount, error)
- func (self *SHuaweiClient) GetUserId() (string, error)
- func (self *SHuaweiClient) GetVersion() string
- func (self *SHuaweiClient) InitSAMLProviderMapping(spId string) error
- func (self *SHuaweiClient) KeystoneAssociateGroupWithDomainPermission(domainId, groupId, roleId string) error
- func (self *SHuaweiClient) KeystoneAssociateGroupWithProjectPermission(projectId, groupId, roleId string) error
- func (self *SHuaweiClient) KeystoneRemoveDomainPermissionFromGroup(domainId, groupId, roleId string) error
- func (self *SHuaweiClient) KeystoneRemoveProjectPermissionFromGroup(projectId, groupId, roleId string) error
- func (self *SHuaweiClient) ListSAMLProviderMappings() ([]SAMLProviderMapping, error)
- func (self *SHuaweiClient) ListSAMLProviders() ([]SAMLProvider, error)
- func (self *SHuaweiClient) ListUserGroups(userId string) ([]SCloudgroup, error)
- func (self *SHuaweiClient) QueryAccountBalance() (*SBalance, error)
- func (self *SHuaweiClient) RemoveUserFromGroup(groupId, userId string) error
- func (self *SHuaweiClient) ResetClouduserPassword(id, password string) error
- func (self *SHuaweiClient) UpdateSAMLProviderMetadata(id, metadata string) error
- type SImage
- func (self *SImage) Delete(ctx context.Context) error
- func (self *SImage) GetBios() cloudprovider.TBiosType
- func (self *SImage) GetCreatedAt() time.Time
- func (self *SImage) GetFullOsName() string
- func (self *SImage) GetGlobalId() string
- func (self *SImage) GetIStoragecache() cloudprovider.ICloudStoragecache
- func (self *SImage) GetId() string
- func (self *SImage) GetImageFormat() string
- func (self *SImage) GetImageStatus() string
- func (self *SImage) GetImageType() cloudprovider.TImageType
- func (self *SImage) GetMinOsDiskSizeGb() int
- func (self *SImage) GetMinRamSizeMb() int
- func (self *SImage) GetName() string
- func (self *SImage) GetOsArch() string
- func (self *SImage) GetOsDist() string
- func (self *SImage) GetOsLang() string
- func (self *SImage) GetOsType() cloudprovider.TOsType
- func (self *SImage) GetOsVersion() string
- func (self *SImage) GetSizeByte() int64
- func (self *SImage) GetStatus() string
- func (self *SImage) Refresh() error
- type SInstance
- func (self *SInstance) AttachDisk(ctx context.Context, diskId string) error
- func (self *SInstance) ChangeConfig(ctx context.Context, config *cloudprovider.SManagedVMChangeConfig) error
- func (self *SInstance) DeleteVM(ctx context.Context) error
- func (self *SInstance) DeployVM(ctx context.Context, opts *cloudprovider.SInstanceDeployOptions) error
- func (self *SInstance) DetachDisk(ctx context.Context, diskId string) error
- func (self *SInstance) GetBillingType() string
- func (self *SInstance) GetBios() cloudprovider.TBiosType
- func (self *SInstance) GetBootOrder() string
- func (self *SInstance) GetCreatedAt() time.Time
- func (self *SInstance) GetDescription() string
- func (self *SInstance) GetError() error
- func (self *SInstance) GetExpiredAt() time.Time
- func (self *SInstance) GetFullOsName() string
- func (self *SInstance) GetGlobalId() string
- func (self *SInstance) GetHostname() string
- func (self *SInstance) GetHypervisor() string
- func (self *SInstance) GetIDisks() ([]cloudprovider.ICloudDisk, error)
- func (self *SInstance) GetIEIP() (cloudprovider.ICloudEIP, error)
- func (self *SInstance) GetIHost() cloudprovider.ICloudHost
- func (self *SInstance) GetINics() ([]cloudprovider.ICloudNic, error)
- func (self *SInstance) GetId() string
- func (self *SInstance) GetInstanceType() string
- func (self *SInstance) GetMachine() string
- func (self *SInstance) GetName() string
- func (self *SInstance) GetOsArch() string
- func (self *SInstance) GetOsDist() string
- func (self *SInstance) GetOsLang() string
- func (self *SInstance) GetOsType() cloudprovider.TOsType
- func (self *SInstance) GetOsVersion() string
- func (ins *SInstance) GetPowerStates() string
- func (self *SInstance) GetProjectId() string
- func (self *SInstance) GetSecurityGroupIds() ([]string, error)
- func (self *SInstance) GetStatus() string
- func (self *SInstance) GetVNCInfo(input *cloudprovider.ServerVncInput) (*cloudprovider.ServerVncOutput, error)
- func (self *SInstance) GetVcpuCount() int
- func (self *SInstance) GetVdi() string
- func (self *SInstance) GetVga() string
- func (self *SInstance) GetVmemSizeMB() int
- func (self *SInstance) NextDeviceName() (string, error)
- func (self *SInstance) RebuildRoot(ctx context.Context, opts *cloudprovider.SManagedVMRebuildRootConfig) (string, error)
- func (self *SInstance) Refresh() error
- func (self *SInstance) Renew(bc billing.SBillingCycle) error
- func (self *SInstance) SaveImage(opts *cloudprovider.SaveImageOptions) (cloudprovider.ICloudImage, error)
- func (self *SInstance) SetSecurityGroups(secgroupIds []string) error
- func (self *SInstance) SetTags(tags map[string]string, replace bool) error
- func (self *SInstance) StartVM(ctx context.Context) error
- func (self *SInstance) StopVM(ctx context.Context, opts *cloudprovider.ServerStopOptions) error
- func (self *SInstance) UpdateUserData(userData string) error
- func (self *SInstance) UpdateVM(ctx context.Context, input cloudprovider.SInstanceUpdateOptions) error
- type SInstanceNic
- func (self *SInstanceNic) GetDriver() string
- func (self *SInstanceNic) GetINetworkId() string
- func (self *SInstanceNic) GetIP() string
- func (self *SInstanceNic) GetId() string
- func (self *SInstanceNic) GetMAC() string
- func (self *SInstanceNic) GetSubAddress() ([]string, error)
- func (self *SInstanceNic) InClassicNetwork() bool
- type SInstanceType
- type SJob
- type SKeypair
- type SLink
- type SLoadbalancer
- func (self *SLoadbalancer) CreateHealthCheck(backendGroupId string, healthcheck *cloudprovider.SLoadbalancerHealthCheck) error
- func (self *SLoadbalancer) CreateILoadBalancerBackendGroup(opts *cloudprovider.SLoadbalancerBackendGroup) (cloudprovider.ICloudLoadbalancerBackendGroup, error)
- func (self *SLoadbalancer) CreateILoadBalancerListener(ctx context.Context, opts *cloudprovider.SLoadbalancerListenerCreateOptions) (cloudprovider.ICloudLoadbalancerListener, error)
- func (self *SLoadbalancer) Delete(ctx context.Context) error
- func (self *SLoadbalancer) GetAddress() string
- func (self *SLoadbalancer) GetAddressType() string
- func (self *SLoadbalancer) GetChargeType() string
- func (self *SLoadbalancer) GetEgressMbps() int
- func (self *SLoadbalancer) GetEip() (*SEipAddress, error)
- func (self *SLoadbalancer) GetGlobalId() string
- func (self *SLoadbalancer) GetIEIP() (cloudprovider.ICloudEIP, error)
- func (self *SLoadbalancer) GetILoadBalancerBackendGroupById(groupId string) (cloudprovider.ICloudLoadbalancerBackendGroup, error)
- func (self *SLoadbalancer) GetILoadBalancerBackendGroups() ([]cloudprovider.ICloudLoadbalancerBackendGroup, error)
- func (self *SLoadbalancer) GetILoadBalancerListenerById(listenerId string) (cloudprovider.ICloudLoadbalancerListener, error)
- func (self *SLoadbalancer) GetILoadBalancerListeners() ([]cloudprovider.ICloudLoadbalancerListener, error)
- func (self *SLoadbalancer) GetId() string
- func (self *SLoadbalancer) GetLoadbalancerSpec() string
- func (self *SLoadbalancer) GetName() string
- func (self *SLoadbalancer) GetNetwork() *SNetwork
- func (self *SLoadbalancer) GetNetworkIds() []string
- func (self *SLoadbalancer) GetNetworkType() string
- func (self *SLoadbalancer) GetProjectId() string
- func (self *SLoadbalancer) GetStatus() string
- func (self *SLoadbalancer) GetVpcId() string
- func (self *SLoadbalancer) GetZone1Id() string
- func (self *SLoadbalancer) GetZoneId() string
- func (self *SLoadbalancer) Refresh() error
- func (self *SLoadbalancer) SetTags(tags map[string]string, replace bool) error
- func (self *SLoadbalancer) Start() error
- func (self *SLoadbalancer) Stop() error
- type SModelartsDataPoints
- type SModelartsDimensions
- type SModelartsMetric
- type SModelartsMetricInfo
- type SModelartsMetrics
- type SModelartsNetworkSpce
- type SModelartsNetworkStatus
- type SModelartsPool
- func (self *SModelartsPool) ChangeConfig(opts *cloudprovider.ModelartsPoolChangeConfigOptions) error
- func (self *SModelartsPool) Delete() error
- func (self *SModelartsPool) GetBillingType() string
- func (self *SModelartsPool) GetCreatedAt() time.Time
- func (self *SModelartsPool) GetExpiredAt() time.Time
- func (self *SModelartsPool) GetGlobalId() string
- func (self *SModelartsPool) GetId() string
- func (self *SModelartsPool) GetInstanceType() string
- func (self *SModelartsPool) GetName() string
- func (self *SModelartsPool) GetNodeCount() int
- func (self *SModelartsPool) GetProjectId() string
- func (self *SModelartsPool) GetStatus() string
- func (self *SModelartsPool) GetStatusMessage() string
- func (self *SModelartsPool) GetSysTags() map[string]string
- func (self *SModelartsPool) GetTags() (map[string]string, error)
- func (self *SModelartsPool) GetWorkType() string
- func (self *SModelartsPool) IsAutoRenew() bool
- func (self *SModelartsPool) IsEmulated() bool
- func (self *SModelartsPool) Refresh() error
- func (self *SModelartsPool) RefreshForCreate() error
- func (self *SModelartsPool) Renew(bc billing.SBillingCycle) error
- func (self *SModelartsPool) SetAutoRenew(bc billing.SBillingCycle) error
- func (self *SModelartsPool) SetTags(tags map[string]string, replace bool) error
- type SModelartsPoolMeatadataLabel
- type SModelartsPoolMetadata
- type SModelartsPoolMetadataAnnotations
- type SModelartsPoolNetwork
- type SModelartsPoolNetworkMetadata
- type SModelartsPoolResource
- type SModelartsPoolSku
- func (self *SModelartsPoolSku) GetCpuArch() string
- func (self *SModelartsPoolSku) GetCpuCoreCount() int
- func (self *SModelartsPoolSku) GetCreatedAt() time.Time
- func (self *SModelartsPoolSku) GetGlobalId() string
- func (self *SModelartsPoolSku) GetGpuSize() int
- func (self *SModelartsPoolSku) GetGpuType() string
- func (self *SModelartsPoolSku) GetId() string
- func (self *SModelartsPoolSku) GetMemorySizeMB() int
- func (self *SModelartsPoolSku) GetName() string
- func (self *SModelartsPoolSku) GetNpuSize() int
- func (self *SModelartsPoolSku) GetNpuType() string
- func (self *SModelartsPoolSku) GetPoolType() string
- func (sku *SModelartsPoolSku) GetProcessorType() string
- func (self *SModelartsPoolSku) GetStatus() string
- type SModelartsPoolSpec
- type SModelartsPoolStatus
- type SModelartsResourceflavorsGpuSpec
- type SModelartsResourceflavorsMetadata
- type SModelartsResourceflavorsSpec
- type SModelartsResourceflavorsStatus
- type SNatDEntry
- func (nat *SNatDEntry) Delete() error
- func (nat *SNatDEntry) GetExternalIp() string
- func (nat *SNatDEntry) GetExternalPort() int
- func (nat *SNatDEntry) GetGlobalId() string
- func (nat *SNatDEntry) GetId() string
- func (nat *SNatDEntry) GetInternalIp() string
- func (nat *SNatDEntry) GetInternalPort() int
- func (nat *SNatDEntry) GetIpProtocol() string
- func (nat *SNatDEntry) GetName() string
- func (nat *SNatDEntry) GetStatus() string
- func (nat *SNatDEntry) Refresh() error
- type SNatGateway
- func (gateway *SNatGateway) CreateINatDEntry(rule cloudprovider.SNatDRule) (cloudprovider.ICloudNatDEntry, error)
- func (gateway *SNatGateway) CreateINatSEntry(rule cloudprovider.SNatSRule) (cloudprovider.ICloudNatSEntry, error)
- func (self *SNatGateway) Delete() error
- func (gateway *SNatGateway) GetBillingType() string
- func (gateway *SNatGateway) GetCreatedAt() time.Time
- func (gateway *SNatGateway) GetDescription() string
- func (gateway *SNatGateway) GetExpiredAt() time.Time
- func (gateway *SNatGateway) GetGlobalId() string
- func (gateway *SNatGateway) GetIEips() ([]cloudprovider.ICloudEIP, error)
- func (gateway *SNatGateway) GetINatDEntryByID(id string) (cloudprovider.ICloudNatDEntry, error)
- func (gateway *SNatGateway) GetINatDTable() ([]cloudprovider.ICloudNatDEntry, error)
- func (gateway *SNatGateway) GetINatSEntryByID(id string) (cloudprovider.ICloudNatSEntry, error)
- func (gateway *SNatGateway) GetINatSTable() ([]cloudprovider.ICloudNatSEntry, error)
- func (self *SNatGateway) GetINetworkId() string
- func (gateway *SNatGateway) GetId() string
- func (gateway *SNatGateway) GetName() string
- func (gateway *SNatGateway) GetNatSpec() string
- func (gateway *SNatGateway) GetStatus() string
- func (self *SNatGateway) Refresh() error
- type SNatSEntry
- func (nat *SNatSEntry) Delete() error
- func (nat *SNatSEntry) GetGlobalId() string
- func (nat *SNatSEntry) GetIP() string
- func (nat *SNatSEntry) GetId() string
- func (nat *SNatSEntry) GetName() string
- func (nat *SNatSEntry) GetNetworkId() string
- func (nat *SNatSEntry) GetSourceCIDR() string
- func (nat *SNatSEntry) GetStatus() string
- func (nat *SNatSEntry) Refresh() error
- type SNetwork
- func (self *SNetwork) Delete() error
- func (self *SNetwork) GetAllocTimeoutSeconds() int
- func (self *SNetwork) GetGateway() string
- func (self *SNetwork) GetGlobalId() string
- func (self *SNetwork) GetIWire() cloudprovider.ICloudWire
- func (self *SNetwork) GetId() string
- func (self *SNetwork) GetIpEnd() string
- func (self *SNetwork) GetIpMask() int8
- func (self *SNetwork) GetIpStart() string
- func (self *SNetwork) GetIsPublic() bool
- func (self *SNetwork) GetName() string
- func (self *SNetwork) GetProjectId() string
- func (self *SNetwork) GetPublicScope() rbacscope.TRbacScope
- func (self *SNetwork) GetServerType() string
- func (self *SNetwork) GetStatus() string
- func (self *SNetwork) Refresh() error
- type SNodeFlavor
- type SNodeStatus
- type SNonde
- type SObject
- type SOrderResource
- type SPageInfo
- type SProject
- type SRdsNetwork
- type SRegion
- func (self *SRegion) AcceptVpcPeering(id string) error
- func (self *SRegion) AddLoadBalancerBackend(backendGroupId, subnetId, ipaddr string, port, weight int) (*SElbBackend, error)
- func (self *SRegion) AllocateEIP(opts *cloudprovider.SEip) (*SEipAddress, error)
- func (self *SRegion) AssociateEip(eipId string, associateId, associateType string) error
- func (self *SRegion) AttachDisk(instanceId string, diskId string, device string) error
- func (self *SRegion) BatchResetServersPassword(instanceId string, password string) error
- func (region *SRegion) ChangeDBInstanceConfig(instanceId string, instanceType string, diskSizeGb int) error
- func (self *SRegion) ChangeVMConfig(instanceId string, instanceType string) error
- func (region *SRegion) CreateDBInstanceAccount(instanceId, account, password string) error
- func (region *SRegion) CreateDBInstanceBackup(instanceId string, name string, descrition string, databases []string) (*SDBInstanceBackup, error)
- func (region *SRegion) CreateDBInstanceDatabase(instanceId, database, characterSet string) error
- func (self *SRegion) CreateDisk(zoneId string, category string, name string, sizeGb int, snapshotId string, ...) (string, error)
- func (self *SRegion) CreateEIP(opts *cloudprovider.SEip) (cloudprovider.ICloudEIP, error)
- func (self *SRegion) CreateElasticcache(opts *cloudprovider.SCloudElasticCacheInput) (cloudprovider.ICloudElasticcache, error)
- func (region *SRegion) CreateIBucket(name string, storageClassStr string, aclStr string) error
- func (self *SRegion) CreateICloudAccessGroup(opts *cloudprovider.SAccessGroup) (cloudprovider.ICloudAccessGroup, error)
- func (self *SRegion) CreateICloudFileSystem(opts *cloudprovider.FileSystemCraeteOptions) (cloudprovider.ICloudFileSystem, error)
- func (region *SRegion) CreateIDBInstance(desc *cloudprovider.SManagedDBInstanceCreateConfig) (cloudprovider.ICloudDBInstance, error)
- func (self *SRegion) CreateIElasticcaches(opts *cloudprovider.SCloudElasticCacheInput) (cloudprovider.ICloudElasticcache, error)
- func (self *SRegion) CreateILoadBalancer(loadbalancer *cloudprovider.SLoadbalancerCreateOptions) (cloudprovider.ICloudLoadbalancer, error)
- func (self *SRegion) CreateILoadBalancerAcl(acl *cloudprovider.SLoadbalancerAccessControlList) (cloudprovider.ICloudLoadbalancerAcl, error)
- func (self *SRegion) CreateILoadBalancerCertificate(cert *cloudprovider.SLoadbalancerCertificate) (cloudprovider.ICloudLoadbalancerCertificate, error)
- func (self *SRegion) CreateIModelartsPool(args *cloudprovider.ModelartsPoolCreateOption, callback func(id string)) (cloudprovider.ICloudModelartsPool, error)
- func (self *SRegion) CreateISecurityGroup(opts *cloudprovider.SecurityGroupCreateInput) (cloudprovider.ICloudSecurityGroup, error)
- func (self *SRegion) CreateIVpc(opts *cloudprovider.VpcCreateOptions) (cloudprovider.ICloudVpc, error)
- func (self *SRegion) CreateInstance(keypair, zoneId string, opts *cloudprovider.SManagedVMCreateConfig) (string, error)
- func (self *SRegion) CreateLoadBalancer(opts *cloudprovider.SLoadbalancerCreateOptions) (*SLoadbalancer, error)
- func (self *SRegion) CreateLoadBalancerAcl(acl *cloudprovider.SLoadbalancerAccessControlList) (*SElbACL, error)
- func (self *SRegion) CreateLoadBalancerBackendGroup(lbId string, opts *cloudprovider.SLoadbalancerBackendGroup) (*SElbBackendGroup, error)
- func (self *SRegion) CreateLoadBalancerCertificate(cert *cloudprovider.SLoadbalancerCertificate) (*SElbCert, error)
- func (self *SRegion) CreateLoadBalancerHealthCheck(backendGroupId string, healthCheck *cloudprovider.SLoadbalancerHealthCheck) (SElbHealthCheck, error)
- func (self *SRegion) CreateLoadBalancerListener(listener *cloudprovider.SLoadbalancerListenerCreateOptions, lbId string) (*SElbListener, error)
- func (self *SRegion) CreateLoadBalancerPolicy(listenerID string, rule *cloudprovider.SLoadbalancerListenerRule) (*SElbListenerPolicy, error)
- func (region *SRegion) CreateNatDEntry(rule cloudprovider.SNatDRule, gatewayID string) (*SNatDEntry, error)
- func (self *SRegion) CreateNatGateway(opts *cloudprovider.NatGatewayCreateOptions) (*SNatGateway, error)
- func (region *SRegion) CreateNatSEntry(rule cloudprovider.SNatSRule, gatewayId string) (*SNatSEntry, error)
- func (self *SRegion) CreateNetwork(vpcId string, opts *cloudprovider.SNetworkCreateOptions) (*SNetwork, error)
- func (self *SRegion) CreatePoolNetworks(cidr string) (jsonutils.JSONObject, error)
- func (self *SRegion) CreatePublicipTag(eipId string, tags map[string]string) error
- func (self *SRegion) CreateRdsTags(instanceId string, tags map[string]string) error
- func (self *SRegion) CreateSecurityGroup(opts *cloudprovider.SecurityGroupCreateInput) (*SSecurityGroup, error)
- func (self *SRegion) CreateSecurityGroupRule(groupId string, opts *cloudprovider.SecurityGroupRuleCreateOptions) (*SecurityGroupRule, error)
- func (self *SRegion) CreateServerTags(instanceId string, tags map[string]string) error
- func (self *SRegion) CreateSfsTurbo(opts *cloudprovider.FileSystemCraeteOptions) (*SfsTurbo, error)
- func (self *SRegion) CreateSnapshot(diskId, name, desc string) (*SSnapshot, error)
- func (self *SRegion) CreateVpc(name, cidr, desc string) (*SVpc, error)
- func (self *SRegion) CreateVpcPeering(vpcId string, opts *cloudprovider.VpcPeeringConnectionCreateOptions) (*SVpcPeering, error)
- func (self *SRegion) DeallocateEIP(eipId string) error
- func (region *SRegion) DeleteDBInstance(instanceId string) error
- func (region *SRegion) DeleteDBInstanceAccount(instanceId string, account string) error
- func (region *SRegion) DeleteDBInstanceBackup(backupId string) error
- func (region *SRegion) DeleteDBInstanceDatabase(instanceId, database string) error
- func (self *SRegion) DeleteDisk(diskId string) error
- func (self *SRegion) DeleteElbListener(id string) error
- func (region *SRegion) DeleteIBucket(name string) error
- func (self *SRegion) DeleteImage(imageId string) error
- func (self *SRegion) DeleteLoadBalancer(elbId string) error
- func (self *SRegion) DeleteLoadBalancerBackendGroup(id string) error
- func (self *SRegion) DeleteLoadBalancerPolicy(policyId string) error
- func (self *SRegion) DeleteLoadbalancerHealthCheck(healthCheckId string) error
- func (region *SRegion) DeleteNatDEntry(id string) error
- func (self *SRegion) DeleteNatGateway(id string) error
- func (region *SRegion) DeleteNatSEntry(id string) error
- func (self *SRegion) DeletePool(poolName string) (jsonutils.JSONObject, error)
- func (self *SRegion) DeletePublicipTag(eipId string, key string) error
- func (self *SRegion) DeleteRdsTags(instanceId string, tagsKey []string) error
- func (self *SRegion) DeleteSecurityGroup(id string) error
- func (self *SRegion) DeleteSecurityGroupRule(id string) error
- func (self *SRegion) DeleteServerTags(instanceId string, tagsKey []string) error
- func (self *SRegion) DeleteSfsTurbo(id string) error
- func (self *SRegion) DeleteSnapshot(id string) error
- func (self *SRegion) DeleteVM(instanceId string) error
- func (self *SRegion) DeleteVpc(vpcId string) error
- func (self *SRegion) DeleteVpcPeering(id string) error
- func (self *SRegion) DeployVM(instanceId string, opts *cloudprovider.SInstanceDeployOptions) error
- func (self *SRegion) DetachDisk(instanceId string, diskId string) error
- func (self *SRegion) DissociateEip(eipId string) error
- func (self *SRegion) GetAllSubTaskEntityIDs(serviceType string, taskId string) ([]string, error)
- func (region *SRegion) GetCapabilities() []string
- func (self *SRegion) GetClient() *SHuaweiClient
- func (self *SRegion) GetCloudEnv() string
- func (region *SRegion) GetDBInstance(instanceId string) (*SDBInstance, error)
- func (region *SRegion) GetDBInstanceAccounts(instanceId string) ([]SDBInstanceAccount, error)
- func (region *SRegion) GetDBInstanceBackups(instanceId, backupId string) ([]SDBInstanceBackup, error)
- func (region *SRegion) GetDBInstanceDatabases(instanceId string) ([]SDBInstanceDatabase, error)
- func (region *SRegion) GetDBInstanceFlavors(engine string, version string) ([]SDBInstanceFlavor, error)
- func (self *SRegion) GetDBInstanceJob(id string) (*SDBInstanceJob, error)
- func (region *SRegion) GetDBInstanceParameters(dbinstanceId string) ([]SDBInstanceParameter, error)
- func (region *SRegion) GetDBInstancePrivileges(instanceId string, username string) ([]SDatabasePrivilege, error)
- func (region *SRegion) GetDBInstances(id string) ([]SDBInstance, error)
- func (self *SRegion) GetDisk(diskId string) (*SDisk, error)
- func (self *SRegion) GetDiskTypes() ([]SDiskType, error)
- func (self *SRegion) GetDisks(zoneId, storageTypeId string) ([]SDisk, error)
- func (self *SRegion) GetEip(eipId string) (*SEipAddress, error)
- func (self *SRegion) GetEips(portId string, addrs []string) ([]SEipAddress, error)
- func (self *SRegion) GetElasticCache(instanceId string) (*SElasticcache, error)
- func (self *SRegion) GetElasticCacheBackups(instanceId, startTime, endTime string) ([]SElasticcacheBackup, error)
- func (self *SRegion) GetElasticCacheParameters(instanceId string) ([]SElasticcacheParameter, error)
- func (self *SRegion) GetElasticCaches() ([]SElasticcache, error)
- func (self *SRegion) GetElbBackend(pool, id string) (*SElbBackend, error)
- func (self *SRegion) GetEvents(start time.Time, end time.Time) ([]SEvent, error)
- func (self *SRegion) GetGeographicInfo() cloudprovider.SGeographicInfo
- func (self *SRegion) GetGlobalId() string
- func (self *SRegion) GetI18n() cloudprovider.SModelI18nTable
- func (region *SRegion) GetIBucketById(name string) (cloudprovider.ICloudBucket, error)
- func (region *SRegion) GetIBucketByName(name string) (cloudprovider.ICloudBucket, error)
- func (region *SRegion) GetIBuckets() ([]cloudprovider.ICloudBucket, error)
- func (self *SRegion) GetICloudAccessGroupById(id string) (cloudprovider.ICloudAccessGroup, error)
- func (self *SRegion) GetICloudAccessGroups() ([]cloudprovider.ICloudAccessGroup, error)
- func (self *SRegion) GetICloudEvents(start time.Time, end time.Time, withReadEvent bool) ([]cloudprovider.ICloudEvent, error)
- func (self *SRegion) GetICloudFileSystemById(id string) (cloudprovider.ICloudFileSystem, error)
- func (self *SRegion) GetICloudFileSystems() ([]cloudprovider.ICloudFileSystem, error)
- func (region *SRegion) GetIDBInstanceBackupById(backupId string) (cloudprovider.ICloudDBInstanceBackup, error)
- func (region *SRegion) GetIDBInstanceBackups() ([]cloudprovider.ICloudDBInstanceBackup, error)
- func (region *SRegion) GetIDBInstanceById(instanceId string) (cloudprovider.ICloudDBInstance, error)
- func (region *SRegion) GetIDBInstances() ([]cloudprovider.ICloudDBInstance, error)
- func (self *SRegion) GetIDiskById(id string) (cloudprovider.ICloudDisk, error)
- func (self *SRegion) GetIEipById(eipId string) (cloudprovider.ICloudEIP, error)
- func (self *SRegion) GetIEips() ([]cloudprovider.ICloudEIP, error)
- func (self *SRegion) GetIElasticcacheById(id string) (cloudprovider.ICloudElasticcache, error)
- func (self *SRegion) GetIElasticcaches() ([]cloudprovider.ICloudElasticcache, error)
- func (self *SRegion) GetIHostById(id string) (cloudprovider.ICloudHost, error)
- func (self *SRegion) GetIHosts() ([]cloudprovider.ICloudHost, error)
- func (self *SRegion) GetILoadBalancerAclById(aclId string) (cloudprovider.ICloudLoadbalancerAcl, error)
- func (self *SRegion) GetILoadBalancerAcls() ([]cloudprovider.ICloudLoadbalancerAcl, error)
- func (self *SRegion) GetILoadBalancerById(id string) (cloudprovider.ICloudLoadbalancer, error)
- func (self *SRegion) GetILoadBalancerCertificateById(certId string) (cloudprovider.ICloudLoadbalancerCertificate, error)
- func (self *SRegion) GetILoadBalancerCertificates() ([]cloudprovider.ICloudLoadbalancerCertificate, error)
- func (self *SRegion) GetILoadBalancers() ([]cloudprovider.ICloudLoadbalancer, error)
- func (self *SRegion) GetIModelartsPoolById(poolId string) (cloudprovider.ICloudModelartsPool, error)
- func (self *SRegion) GetIModelartsPoolSku() ([]cloudprovider.ICloudModelartsPoolSku, error)
- func (self *SRegion) GetIModelartsPools() ([]cloudprovider.ICloudModelartsPool, error)
- func (region *SRegion) GetINetworkInterfaces() ([]cloudprovider.ICloudNetworkInterface, error)
- func (self *SRegion) GetISecurityGroupById(secgroupId string) (cloudprovider.ICloudSecurityGroup, error)
- func (self *SRegion) GetISecurityGroups() ([]cloudprovider.ICloudSecurityGroup, error)
- func (self *SRegion) GetISnapshotById(id string) (cloudprovider.ICloudSnapshot, error)
- func (self *SRegion) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error)
- func (self *SRegion) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)
- func (self *SRegion) GetIStoragecacheById(idstr string) (cloudprovider.ICloudStoragecache, error)
- func (self *SRegion) GetIStoragecaches() ([]cloudprovider.ICloudStoragecache, error)
- func (self *SRegion) GetIStorages() ([]cloudprovider.ICloudStorage, error)
- func (self *SRegion) GetIVMById(id string) (cloudprovider.ICloudVM, error)
- func (region *SRegion) GetIVMs() ([]cloudprovider.ICloudVM, error)
- func (self *SRegion) GetIVpcById(id string) (cloudprovider.ICloudVpc, error)
- func (self *SRegion) GetIVpcs() ([]cloudprovider.ICloudVpc, error)
- func (self *SRegion) GetIZoneById(id string) (cloudprovider.ICloudZone, error)
- func (self *SRegion) GetIZones() ([]cloudprovider.ICloudZone, error)
- func (self *SRegion) GetId() string
- func (self *SRegion) GetImage(imageId string) (*SImage, error)
- func (self *SRegion) GetImageByName(name string) (*SImage, error)
- func (self *SRegion) GetImages(id, status string, imagetype string, name string) ([]SImage, error)
- func (self *SRegion) GetInstance(instanceId string) (*SInstance, error)
- func (self *SRegion) GetInstancePortId(instanceId string) (string, error)
- func (self *SRegion) GetInstanceTypes(zoneId string) ([]SInstanceType, error)
- func (self *SRegion) GetInstanceVNCUrl(instanceId string) (*cloudprovider.ServerVncOutput, error)
- func (self *SRegion) GetInstances(ip string) ([]SInstance, error)
- func (self *SRegion) GetJob(serviceType string, jobId string) (*SJob, error)
- func (self *SRegion) GetKeypairs() ([]SKeypair, error)
- func (self *SRegion) GetLoadBalancerAcl(aclId string) (*SElbACL, error)
- func (self *SRegion) GetLoadBalancerAcls(listenerId string) ([]SElbACL, error)
- func (self *SRegion) GetLoadBalancerBackendGroup(backendGroupId string) (*SElbBackendGroup, error)
- func (self *SRegion) GetLoadBalancerBackendGroups(elbId string) ([]SElbBackendGroup, error)
- func (self *SRegion) GetLoadBalancerBackends(backendGroupId string) ([]SElbBackend, error)
- func (self *SRegion) GetLoadBalancerCertificate(id string) (*SElbCert, error)
- func (self *SRegion) GetLoadBalancerCertificates() ([]SElbCert, error)
- func (self *SRegion) GetLoadBalancerHealthCheck(healthCheckId string) (*SElbHealthCheck, error)
- func (self *SRegion) GetLoadBalancerListeners(lbId string) ([]SElbListener, error)
- func (self *SRegion) GetLoadBalancerPolicies(listenerId string) ([]SElbListenerPolicy, error)
- func (self *SRegion) GetLoadBalancerPolicyRules(policyId string) ([]SElbListenerPolicyRule, error)
- func (self *SRegion) GetLoadBalancers() ([]SLoadbalancer, error)
- func (self *SRegion) GetLoadbalancer(id string) (*SLoadbalancer, error)
- func (self *SRegion) GetMatchInstanceTypes(cpu int, memMB int, zoneId string) ([]SInstanceType, error)
- func (self *SRegion) GetName() string
- func (region *SRegion) GetNatDEntryByID(id string) (*SNatDEntry, error)
- func (region *SRegion) GetNatDTable(natId string) ([]SNatDEntry, error)
- func (self *SRegion) GetNatGateway(id string) (*SNatGateway, error)
- func (region *SRegion) GetNatGateways(vpcId, id string) ([]SNatGateway, error)
- func (region *SRegion) GetNatSEntryByID(id string) (*SNatSEntry, error)
- func (region *SRegion) GetNatSTable(natId string) ([]SNatSEntry, error)
- func (self *SRegion) GetNetwork(networkId string) (*SNetwork, error)
- func (self *SRegion) GetNetworks(vpcId string) ([]SNetwork, error)
- func (self *SRegion) GetPort(id string) (*Port, error)
- func (self *SRegion) GetPorts(instanceId string) ([]Port, error)
- func (self *SRegion) GetProvider() string
- func (self *SRegion) GetRouteTable(id string) (*SRouteTable, error)
- func (self *SRegion) GetRouteTables(vpcId string) ([]SRouteTable, error)
- func (self *SRegion) GetSecurityGroup(id string) (*SSecurityGroup, error)
- func (self *SRegion) GetSecurityGroupRules(groupId string) ([]SecurityGroupRule, error)
- func (self *SRegion) GetSecurityGroups(name string) ([]SSecurityGroup, error)
- func (self *SRegion) GetSfsTurbo(id string) (*SfsTurbo, error)
- func (self *SRegion) GetSfsTurbos() ([]SfsTurbo, error)
- func (self *SRegion) GetSkus(zoneId string) ([]cloudprovider.ICloudSku, error)
- func (self *SRegion) GetSnapshot(id string) (*SSnapshot, error)
- func (self *SRegion) GetSnapshots(diskId string, snapshotName string) ([]SSnapshot, error)
- func (self *SRegion) GetStatus() string
- func (self *SRegion) GetSysDefaultSecgroupId() (string, error)
- func (self *SRegion) GetTaskEntityID(serviceType string, taskId string, key string) (string, error)
- func (self *SRegion) GetTaskStatus(serviceType string, taskId string) (string, error)
- func (self *SRegion) GetVpc(vpcId string) (*SVpc, error)
- func (self *SRegion) GetVpcPeering(id string) (*SVpcPeering, error)
- func (self *SRegion) GetVpcPeerings(vpcId string) ([]SVpcPeering, error)
- func (self *SRegion) GetVpcs() ([]SVpc, error)
- func (self *SRegion) GetZones() ([]SZone, error)
- func (region *SRegion) GrantDBInstancePrivilege(instanceId string, account, database string, privilege string) error
- func (region *SRegion) HeadBucket(name string) (*obs.BaseModel, error)
- func (region *SRegion) IBucketExist(name string) (bool, error)
- func (self *SRegion) ImportImageJob(name string, osDist string, osVersion string, osArch string, bucket string, ...) (string, error)
- func (self *SRegion) ImportKeypair(name, publicKey string) (*SKeypair, error)
- func (self *SRegion) ListFunctions() ([]SFunction, error)
- func (self *SRegion) ListGaussMySqlInstances() ([]GaussDBMySQL, error)
- func (self *SRegion) ListGaussNoSQLFlavors() ([]SGaussNoSQLFlavor, error)
- func (self *SRegion) ListGaussNoSQLInstances() ([]GaussDBNoSQL, error)
- func (region *SRegion) ModifyDBInstanceDesc(instanceId string, desc string) error
- func (region *SRegion) ModifyDBInstanceName(instanceId string, name string) error
- func (self *SRegion) MonitorPool(poolId string) (*SModelartsMetrics, error)
- func (region *SRegion) PublicConnectionAction(instanceId string, action string) error
- func (region *SRegion) RebootDBInstance(instanceId string) error
- func (self *SRegion) RebuildRoot(instanceId string, opts *cloudprovider.SManagedVMRebuildRootConfig) (jsonutils.JSONObject, error)
- func (region *SRegion) RecoveryDBInstanceFromBackup(target, origin string, backupId string, databases map[string]string) error
- func (self *SRegion) Refresh() error
- func (self *SRegion) RemoveLoadBalancerBackend(lbbgId string, backendId string) error
- func (self *SRegion) RenewInstance(instanceId string, bc billing.SBillingCycle) error
- func (region *SRegion) ResetDBInstanceAccountPassword(instanceId, account, password string) error
- func (self *SRegion) ResizeDisk(diskId string, sizeGB int64) error
- func (region *SRegion) RevokeDBInstancePrivilege(instanceId string, account, database string) error
- func (self *SRegion) SaveImage(instanceId string, opts *cloudprovider.SaveImageOptions) (*SImage, error)
- func (self *SRegion) StartVM(instanceId string) error
- func (self *SRegion) StopVM(instanceId string, isForce bool) error
- func (region *SRegion) Update(instanceId string, input cloudprovider.SDBInstanceUpdateOptions) error
- func (self *SRegion) UpdateEipBandwidth(bandwidthId string, bw int) error
- func (self *SRegion) UpdateLoadBalancerHealthCheck(healthCheckId string, healthCheck *cloudprovider.SLoadbalancerHealthCheck) (SElbHealthCheck, error)
- func (self *SRegion) UpdateLoadBalancerListener(listenerId string, listener *cloudprovider.SLoadbalancerListenerCreateOptions) error
- func (self *SRegion) UpdateVM(instanceId string, input cloudprovider.SInstanceUpdateOptions) error
- type SRelatedInstance
- type SRole
- func (role *SRole) Delete() error
- func (role *SRole) GetDescription() string
- func (role *SRole) GetDocument() (*jsonutils.JSONDict, error)
- func (role *SRole) GetGlobalId() string
- func (role *SRole) GetName() string
- func (role *SRole) GetPolicyType() string
- func (role *SRole) UpdateDocument(document *jsonutils.JSONDict) error
- type SRoute
- func (self *SRoute) GetCidr() string
- func (self *SRoute) GetGlobalId() string
- func (self *SRoute) GetId() string
- func (self *SRoute) GetName() string
- func (self *SRoute) GetNextHop() string
- func (self *SRoute) GetNextHopType() string
- func (route *SRoute) GetStatus() string
- func (route *SRoute) GetType() string
- type SRouteTable
- func (self *SRouteTable) CreateRoute(route cloudprovider.RouteSet) error
- func (self *SRouteTable) GetAssociations() []cloudprovider.RouteTableAssociation
- func (self *SRouteTable) GetDescription() string
- func (self *SRouteTable) GetGlobalId() string
- func (self *SRouteTable) GetIRoutes() ([]cloudprovider.ICloudRoute, error)
- func (self *SRouteTable) GetId() string
- func (self *SRouteTable) GetName() string
- func (self *SRouteTable) GetRegionId() string
- func (self *SRouteTable) GetStatus() string
- func (self *SRouteTable) GetType() cloudprovider.RouteTableType
- func (self *SRouteTable) GetVpcId() string
- func (self *SRouteTable) Refresh() error
- func (self *SRouteTable) RemoveRoute(route cloudprovider.RouteSet) error
- func (self *SRouteTable) UpdateRoute(route cloudprovider.RouteSet) error
- type SSSLCertificate
- func (s *SSSLCertificate) GetCert() string
- func (s *SSSLCertificate) GetCity() string
- func (s *SSSLCertificate) GetCommon() string
- func (s *SSSLCertificate) GetCountry() string
- func (s *SSSLCertificate) GetDetails() (*SSSLCertificate, error)
- func (s *SSSLCertificate) GetEndDate() time.Time
- func (s *SSSLCertificate) GetExpired() bool
- func (s *SSSLCertificate) GetFingerprint() string
- func (s *SSSLCertificate) GetGlobalId() string
- func (s *SSSLCertificate) GetId() string
- func (s *SSSLCertificate) GetIsUpload() bool
- func (s *SSSLCertificate) GetIssuer() string
- func (s *SSSLCertificate) GetKey() string
- func (s *SSSLCertificate) GetName() string
- func (s *SSSLCertificate) GetOrgName() string
- func (s *SSSLCertificate) GetProvince() string
- func (s *SSSLCertificate) GetSans() string
- func (s *SSSLCertificate) GetStartDate() time.Time
- func (s *SSSLCertificate) GetStatus() string
- type SSecurityGroup
- func (self *SSecurityGroup) CreateRule(opts *cloudprovider.SecurityGroupRuleCreateOptions) (cloudprovider.ISecurityGroupRule, error)
- func (self *SSecurityGroup) Delete() error
- func (self *SSecurityGroup) GetDescription() string
- func (self *SSecurityGroup) GetGlobalId() string
- func (self *SSecurityGroup) GetId() string
- func (self *SSecurityGroup) GetName() string
- func (self *SSecurityGroup) GetProjectId() string
- func (self *SSecurityGroup) GetRules() ([]cloudprovider.ISecurityGroupRule, error)
- func (self *SSecurityGroup) GetStatus() string
- func (self *SSecurityGroup) GetTags() (map[string]string, error)
- func (self *SSecurityGroup) GetVpcId() string
- func (self *SSecurityGroup) Refresh() error
- type SSnapshot
- func (self *SSnapshot) Delete() error
- func (self *SSnapshot) GetDiskId() string
- func (self *SSnapshot) GetDiskType() string
- func (self *SSnapshot) GetGlobalId() string
- func (self *SSnapshot) GetId() string
- func (self *SSnapshot) GetName() string
- func (self *SSnapshot) GetProjectId() string
- func (self *SSnapshot) GetSizeMb() int32
- func (self *SSnapshot) GetStatus() string
- func (self *SSnapshot) IsEmulated() bool
- func (self *SSnapshot) Refresh() error
- type SStorage
- func (self *SStorage) CreateIDisk(conf *cloudprovider.DiskCreateConfig) (cloudprovider.ICloudDisk, error)
- func (self *SStorage) GetCapacityMB() int64
- func (self *SStorage) GetCapacityUsedMB() int64
- func (self *SStorage) GetEnabled() bool
- func (self *SStorage) GetGlobalId() string
- func (self *SStorage) GetIDiskById(idStr string) (cloudprovider.ICloudDisk, error)
- func (self *SStorage) GetIDisks() ([]cloudprovider.ICloudDisk, error)
- func (self *SStorage) GetIStoragecache() cloudprovider.ICloudStoragecache
- func (self *SStorage) GetIZone() cloudprovider.ICloudZone
- func (self *SStorage) GetId() string
- func (self *SStorage) GetMediumType() string
- func (self *SStorage) GetMountPoint() string
- func (self *SStorage) GetName() string
- func (self *SStorage) GetStatus() string
- func (self *SStorage) GetStorageConf() jsonutils.JSONObject
- func (self *SStorage) GetStorageType() string
- func (self *SStorage) IsEmulated() bool
- func (self *SStorage) IsSysDiskStore() bool
- func (self *SStorage) Refresh() error
- type SStoragecache
- func (self *SStoragecache) GetGlobalId() string
- func (self *SStoragecache) GetICloudImages() ([]cloudprovider.ICloudImage, error)
- func (self *SStoragecache) GetICustomizedCloudImages() ([]cloudprovider.ICloudImage, error)
- func (self *SStoragecache) GetIImageById(extId string) (cloudprovider.ICloudImage, error)
- func (self *SStoragecache) GetId() string
- func (self *SStoragecache) GetName() string
- func (self *SStoragecache) GetPath() string
- func (self *SStoragecache) GetStatus() string
- func (self *SStoragecache) IsEmulated() bool
- func (self *SStoragecache) Refresh() error
- func (self *SStoragecache) UploadImage(ctx context.Context, image *cloudprovider.SImageCreateOption, ...) (string, error)
- type SUser
- type SVolume
- type SVpc
- func (self *SVpc) AcceptICloudVpcPeeringConnection(id string) error
- func (self *SVpc) CreateICloudVpcPeeringConnection(opts *cloudprovider.VpcPeeringConnectionCreateOptions) (cloudprovider.ICloudVpcPeeringConnection, error)
- func (self *SVpc) CreateINatGateway(opts *cloudprovider.NatGatewayCreateOptions) (cloudprovider.ICloudNatGateway, error)
- func (self *SVpc) Delete() error
- func (self *SVpc) GetAuthorityOwnerId() string
- func (self *SVpc) GetCidrBlock() string
- func (self *SVpc) GetGlobalId() string
- func (self *SVpc) GetICloudAccepterVpcPeeringConnections() ([]cloudprovider.ICloudVpcPeeringConnection, error)
- func (self *SVpc) GetICloudVpcPeeringConnectionById(id string) (cloudprovider.ICloudVpcPeeringConnection, error)
- func (self *SVpc) GetICloudVpcPeeringConnections() ([]cloudprovider.ICloudVpcPeeringConnection, error)
- func (self *SVpc) GetINatGateways() ([]cloudprovider.ICloudNatGateway, error)
- func (self *SVpc) GetIRouteTableById(routeTableId string) (cloudprovider.ICloudRouteTable, error)
- func (self *SVpc) GetIRouteTables() ([]cloudprovider.ICloudRouteTable, error)
- func (self *SVpc) GetISecurityGroups() ([]cloudprovider.ICloudSecurityGroup, error)
- func (self *SVpc) GetIWireById(wireId string) (cloudprovider.ICloudWire, error)
- func (self *SVpc) GetIWires() ([]cloudprovider.ICloudWire, error)
- func (self *SVpc) GetId() string
- func (self *SVpc) GetIsDefault() bool
- func (self *SVpc) GetName() string
- func (self *SVpc) GetRegion() cloudprovider.ICloudRegion
- func (self *SVpc) GetStatus() string
- func (self *SVpc) Refresh() error
- type SVpcPeering
- func (self *SVpcPeering) Delete() error
- func (self *SVpcPeering) GetEnabled() bool
- func (self *SVpcPeering) GetGlobalId() string
- func (self *SVpcPeering) GetId() string
- func (self *SVpcPeering) GetName() string
- func (self *SVpcPeering) GetPeerAccountId() string
- func (self *SVpcPeering) GetPeerVpcId() string
- func (self *SVpcPeering) GetStatus() string
- func (self *SVpcPeering) GetVpcId() string
- func (self *SVpcPeering) Refresh() error
- type SWire
- func (self *SWire) CreateINetwork(opts *cloudprovider.SNetworkCreateOptions) (cloudprovider.ICloudNetwork, error)
- func (self *SWire) GetBandwidth() int
- func (self *SWire) GetGlobalId() string
- func (self *SWire) GetINetworkById(id string) (cloudprovider.ICloudNetwork, error)
- func (self *SWire) GetINetworks() ([]cloudprovider.ICloudNetwork, error)
- func (self *SWire) GetIVpc() cloudprovider.ICloudVpc
- func (self *SWire) GetIZone() cloudprovider.ICloudZone
- func (self *SWire) GetId() string
- func (self *SWire) GetName() string
- func (self *SWire) GetStatus() string
- func (self *SWire) IsEmulated() bool
- func (self *SWire) Refresh() error
- type SZone
- func (self *SZone) GetGlobalId() string
- func (self *SZone) GetI18n() cloudprovider.SModelI18nTable
- func (self *SZone) GetIHostById(id string) (cloudprovider.ICloudHost, error)
- func (self *SZone) GetIHosts() ([]cloudprovider.ICloudHost, error)
- func (self *SZone) GetIRegion() cloudprovider.ICloudRegion
- func (self *SZone) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)
- func (self *SZone) GetIStorages() ([]cloudprovider.ICloudStorage, error)
- func (self *SZone) GetIWires() ([]cloudprovider.ICloudWire, error)
- func (self *SZone) GetId() string
- func (self *SZone) GetName() string
- func (self *SZone) GetStatus() string
- func (self *SZone) IsEmulated() bool
- func (self *SZone) Refresh() error
- type SecurityGroup
- type SecurityGroupRule
- func (self *SecurityGroupRule) Delete() error
- func (self *SecurityGroupRule) GetAction() secrules.TSecurityRuleAction
- func (self *SecurityGroupRule) GetCIDRs() []string
- func (self *SecurityGroupRule) GetDescription() string
- func (self *SecurityGroupRule) GetDirection() secrules.TSecurityRuleDirection
- func (self *SecurityGroupRule) GetGlobalId() string
- func (self *SecurityGroupRule) GetPorts() string
- func (self *SecurityGroupRule) GetPriority() int
- func (self *SecurityGroupRule) GetProtocol() string
- func (self *SecurityGroupRule) Update(opts *cloudprovider.SecurityGroupRuleUpdateOptions) error
- type SfsTurbo
- func (self *SfsTurbo) CreateMountTarget(opts *cloudprovider.SMountTargetCreateOptions) (cloudprovider.ICloudMountTarget, error)
- func (self *SfsTurbo) Delete() error
- func (self *SfsTurbo) GetBillingType() string
- func (self *SfsTurbo) GetCapacityGb() int64
- func (self *SfsTurbo) GetCreatedAt() time.Time
- func (self *SfsTurbo) GetFileSystemType() string
- func (self *SfsTurbo) GetGlobalId() string
- func (self *SfsTurbo) GetId() string
- func (self *SfsTurbo) GetMountTargetCountLimit() int
- func (self *SfsTurbo) GetMountTargets() ([]cloudprovider.ICloudMountTarget, error)
- func (self *SfsTurbo) GetName() string
- func (self *SfsTurbo) GetProtocol() string
- func (self *SfsTurbo) GetStatus() string
- func (self *SfsTurbo) GetStorageType() string
- func (self *SfsTurbo) GetUsedCapacityGb() int64
- func (self *SfsTurbo) GetZoneId() string
- func (self *SfsTurbo) Refresh() error
- type SnapshotStatusType
- type StickySession
- type Subnet
- type SysTag
- type VMMetadata
- type VolumeImageMetadata
- type ZoneState
Constants ¶
const ( TASK_SUCCESS = "SUCCESS" TASK_FAIL = "FAIL" )
Task status
const ( POST_PAID = "postPaid" // 按需付费 PRE_PAID = "prePaid" // 包年包月 )
Charging Type
const ( RESOURCE_TYPE_VM = "hws.resource.type.vm" // ECS虚拟机 RESOURCE_TYPE_VOLUME = "hws.resource.type.volume" // EVS卷 RESOURCE_TYPE_BANDWIDTH = "hws.resource.type.bandwidth" // VPC带宽 RESOURCE_TYPE_IP = "hws.resource.type.ip" // VPC公网IP RESOURCE_TYPE_IMAGE = "hws.resource.type.marketplace" // 市场镜像 )
资源类型 https://support.huaweicloud.com/api-oce/zh-cn_topic_0079291752.html
const ( VM_NOT_FOUND = "Ecs.0114" // 云服务器不存在 ECS_NOT_FOUND = "Ecs.0614" // 弹性云服务器不存在 IMG_ID_NOT_FOUND = "IMG.0027" // 请求的镜像ID不存在 IMG_NOT_FOUND = "IMG.0027" // 镜像不存在 IMG_ERR_NOT_FOUND = "IMG.0057" // 镜像文件不存在或者为空或者不是允许格式的文件 IMG_BACKUP_NOT_FOUND = "IMG.0020" // 备份不存在 IMG_VM_BACKUP_NOT_FOUND = "IMG.0127" // 云服务器备份不存在 IMG_VM_NOT_FOUND = "IMG.0005" // 云主机不存在 JOB_NOT_FOUND = "Common.0011" // jobId为空 EVS_NOT_FOUND = "EVS.5404" // 磁盘、快照和备份等资源未找到。 FIP_NOT_FOUND = "VPC.0504" // 未找到弹性公网IP。 VPC_NOT_FOUND = "VPC.0012" // 未找到弹性公网VPC。 )
Not Found Error code 网络等资源直接通过http code 404即可判断资源不存在。另外有些资源可能不是返回404这里单独列出来
const ( EXPIRE_MODE_TO_POSTPAID = 1 EXPIRE_MODE_AUTO_UNSUBSCRIBE = 2 EXPIRE_MODE_AUTO_RENEW = 3 )
包周期资源相关常量 https://support.huaweicloud.com/api-bpconsole/zh-cn_topic_0082522029.html expire_mode 0:进入宽限期 1:转按需 2:自动退订 3:自动续订(当前只支持ECS、EVS和VPC)
const ( PERIOD_TYPE_MONTH = 2 PERIOD_TYPE_YEAR = 3 )
const ( AUTO_PAY_TRUE = 1 AUTO_PAY_FALSE = 0 )
const ( CLOUD_PROVIDER_HUAWEI = api.CLOUD_PROVIDER_HUAWEI CLOUD_PROVIDER_HUAWEI_CN = "华为云" CLOUD_PROVIDER_HUAWEI_EN = "Huawei" HUAWEI_DEFAULT_REGION = "cn-north-4" HUAWEI_API_VERSION = "2018-12-25" SERVICE_IAM = "iam" SERVICE_IAM_V3 = "iam_v3" SERVICE_IAM_V3_EXT = "iam_v3_ext" SERVICE_ELB = "elb" SERVICE_VPC = "vpc" SERVICE_VPC_V2_0 = "vpc_v2.0" SERVICE_VPC_V3 = "vpc_v3" SERVICE_CES = "ces" SERVICE_RDS = "rds" SERVICE_ECS = "ecs" SERVICE_ECS_V1_1 = "ecs_v1.1" SERVICE_ECS_V2_1 = "ecs_v2.1" SERVICE_EPS = "eps" SERVICE_EVS = "evs" SERVICE_EVS_V1 = "evs_v1" SERVICE_EVS_V2_1 = "evs_v2.1" SERVICE_BSS = "bss" SERVICE_SFS = "sfs-turbo" SERVICE_CTS = "cts" SERVICE_NAT = "nat" SERVICE_BMS = "bms" SERVICE_CCI = "cci" SERVICE_CSBS = "csbs" SERVICE_IMS = "ims" SERVICE_IMS_V1 = "ims_v1" SERVICE_AS = "as" SERVICE_CCE = "cce" SERVICE_DCS = "dcs" SERVICE_MODELARTS = "modelarts" SERVICE_MODELARTS_V1 = "modelarts_v1" SERVICE_SCM = "scm" SERVICE_CDN = "cdn" SERVICE_GAUSSDB = "gaussdb" SERVICE_GAUSSDB_NOSQL = "gaussdb-nosql" SERVICE_GAUSSDB_NOSQL_V3_1 = "gaussdb-nosql_v3.1" SERVICE_FUNCTIONGRAPH = "functiongraph" )
const ( ImageStatusQueued = "queued" // queued:表示镜像元数据已经创建成功,等待上传镜像文件。 ImageStatusSaving = "saving" // saving:表示镜像正在上传文件到后端存储。 ImageStatusDeleted = "deleted" // deleted:表示镜像已经删除。 ImageStatusKilled = "killed" // killed:表示镜像上传错误。 ImageStatusActive = "active" // active:表示镜像可以正常使用 )
const ( InstanceStatusRunning = "ACTIVE" InstanceStatusTerminated = "DELETED" InstanceStatusStopped = "SHUTOFF" )
const DATETIME_FORMAT = "2006-01-02T15:04:05.999999999"
华为云返回的时间格式
Variables ¶
var LBBG_PROTOCOL_MAP = map[string]string{ api.LB_LISTENER_TYPE_HTTP: "HTTP", api.LB_LISTENER_TYPE_HTTPS: "HTTP", api.LB_LISTENER_TYPE_UDP: "UDP", api.LB_LISTENER_TYPE_TCP: "TCP", }
var LB_ALGORITHM_MAP = map[string]string{ api.LB_SCHEDULER_WRR: "ROUND_ROBIN", api.LB_SCHEDULER_WLC: "LEAST_CONNECTIONS", api.LB_SCHEDULER_SCH: "SOURCE_IP", }
var LB_HEALTHCHECK_TYPE_MAP = map[string]string{ api.LB_HEALTH_CHECK_HTTP: "HTTP", api.LB_HEALTH_CHECK_TCP: "TCP", api.LB_HEALTH_CHECK_UDP: "UDP_CONNECT", }
var LB_STICKY_SESSION_MAP = map[string]string{ api.LB_STICKY_SESSION_TYPE_INSERT: "HTTP_COOKIE", api.LB_STICKY_SESSION_TYPE_SERVER: "APP_COOKIE", }
var LatitudeAndLongitude = map[string]cloudprovider.SGeographicInfo{ "cn-east-2": api.RegionShanghai, "cn-east-3": api.RegionShanghai, "cn-north-1": api.RegionBeijing, "cn-north-4": api.RegionBeijing, "cn-south-1": api.RegionGuangzhou, "cn-south-2": api.RegionGuangzhou, "ap-southeast-1": api.RegionHongkong, "ap-southeast-2": api.RegionBangkok, "ap-southeast-3": api.RegionSingapore, "eu-west-0": api.RegionParis, "cn-northeast-1": api.RegionDalian, "cn-southwest-2": api.RegionGuiyang, "af-south-1": api.RegionJohannesburg, "sa-brazil-1": api.RegionSaoPaulo, "na-mexico-1": api.RegionMexico, "la-south-2": api.RegionSantiago, "cn-north-9": api.RegionNeimenggu, "cn-north-219": api.RegionBeijing, }
China: https://developer.huaweicloud.com/endpoint International: https://developer-intl.huaweicloud.com/endpoint ref: https://countrycode.org
var NOT_FOUND_CODES = []string{ VM_NOT_FOUND, ECS_NOT_FOUND, IMG_ID_NOT_FOUND, IMG_NOT_FOUND, IMG_ERR_NOT_FOUND, IMG_BACKUP_NOT_FOUND, IMG_VM_BACKUP_NOT_FOUND, IMG_VM_NOT_FOUND, JOB_NOT_FOUND, EVS_NOT_FOUND, FIP_NOT_FOUND, VPC_NOT_FOUND, }
Functions ¶
func GetBucketName ¶
Types ¶
type AcceptVpcInfo ¶
type Attachment ¶
type ExtraSpecs ¶
type ExtraSpecs struct { VolumeBackendName string `json:"volume_backend_name"` AvailabilityZone string `json:"availability-zone"` RESKEYAvailabilityZones string `json:"RESKEY:availability_zones"` OSVendorExtendedSoldOutAvailabilityZones string `json:"os-vendor-extended:sold_out_availability_zones"` }
type GaussDBMySQL ¶
type GaussDBMySQL struct { Id string `json:"id"` Name string `json:"name"` Status string `json:"status"` Port string `json:"port"` Mode string `json:"mode"` Region string `json:"region"` Datastore struct { Type string `json:"type"` Version string `json:"version"` PatchAvailable bool `json:"patch_available"` WholeVersion string `json:"whole_version"` } `json:"datastore"` Engine string `json:"engine"` Created string `json:"created"` Updated string `json:"updated"` DbUserName string `json:"db_user_name"` VpcId string `json:"vpc_id"` SubnetId string `json:"subnet_id"` FlavorInfo struct { Vcpus int Ram int } SecurityGroupId string `json:"security_group_id"` BackupStrategy struct { StartTime string `json:"start_time"` KeepDays int `json:"keep_days"` } `json:"backup_strategy"` PayMode string `json:"pay_mode"` MaintenanceWindow string `json:"maintenance_window"` BackupSpaceUsage struct { BackupUsage int `json:"backup_usage"` } `json:"backup_space_usage"` Groups []struct { Id string `json:"id"` Status string `json:"status"` Volume struct { Size int `json:"size"` Used string `json:"used"` GiftSize string `json:"gift_size"` } `json:"volume"` Nodes []struct { Id string `json:"id"` Name string `json:"name"` Status string `json:"status"` SubnetId string `json:"subnet_id"` PrivateIP string `json:"private_ip"` SpecCode string `json:"spec_code"` AvailabilityZone string `json:"availability_zone"` SupportReduce bool `json:"support_reduce"` } `json:"nodes"` } `json:"groups"` EnterpriseProjectId string `json:"enterprise_project_id"` TimeZone string `json:"time_zone"` Actions []string `json:"actions"` LbIPAddress string `json:"lb_ip_address"` LbPort string `json:"lb_port"` }
type GaussDBNoSQL ¶
type GaussDBNoSQL struct { Id string `json:"id"` Name string `json:"name"` Status string `json:"status"` Port string `json:"port"` Mode string `json:"mode"` Region string `json:"region"` Datastore struct { Type string `json:"type"` Version string `json:"version"` PatchAvailable bool `json:"patch_available"` WholeVersion string `json:"whole_version"` } `json:"datastore"` Engine string `json:"engine"` Created string `json:"created"` Updated string `json:"updated"` DbUserName string `json:"db_user_name"` VpcId string `json:"vpc_id"` SubnetId string `json:"subnet_id"` SecurityGroupId string `json:"security_group_id"` BackupStrategy struct { StartTime string `json:"start_time"` KeepDays int `json:"keep_days"` } `json:"backup_strategy"` PayMode string `json:"pay_mode"` MaintenanceWindow string `json:"maintenance_window"` BackupSpaceUsage struct { BackupUsage int `json:"backup_usage"` } `json:"backup_space_usage"` Groups []struct { Id string `json:"id"` Status string `json:"status"` Volume struct { Size int `json:"size"` Used string `json:"used"` GiftSize string `json:"gift_size"` } `json:"volume"` Nodes []struct { Id string `json:"id"` Name string `json:"name"` Status string `json:"status"` SubnetId string `json:"subnet_id"` PrivateIP string `json:"private_ip"` SpecCode string `json:"spec_code"` AvailabilityZone string `json:"availability_zone"` SupportReduce bool `json:"support_reduce"` } `json:"nodes"` } `json:"groups"` EnterpriseProjectId string `json:"enterprise_project_id"` TimeZone string `json:"time_zone"` Actions []string `json:"actions"` LbIPAddress string `json:"lb_ip_address"` LbPort string `json:"lb_port"` }
type HuaweiClientConfig ¶
type HuaweiClientConfig struct {
// contains filtered or unexported fields
}
func NewHuaweiClientConfig ¶
func NewHuaweiClientConfig(accessKey, accessSecret string) *HuaweiClientConfig
func (*HuaweiClientConfig) CloudproviderConfig ¶
func (cfg *HuaweiClientConfig) CloudproviderConfig(cpcfg cloudprovider.ProviderConfig) *HuaweiClientConfig
func (*HuaweiClientConfig) Debug ¶
func (cfg *HuaweiClientConfig) Debug(debug bool) *HuaweiClientConfig
type HuaweiDiskTags ¶
func (*HuaweiDiskTags) GetSysTags ¶
func (self *HuaweiDiskTags) GetSysTags() map[string]string
type HuaweiTags ¶
type HuaweiTags struct {
Tags []string
}
func (*HuaweiTags) GetSysTags ¶
func (self *HuaweiTags) GetSysTags() map[string]string
type InsertHeaders ¶
type InsertHeaders struct {
XForwardedELBIP bool `json:"X-Forwarded-ELB-IP"`
}
type Loadbalancer ¶
type Loadbalancer struct {
ID string `json:"id"`
}
type Metadata ¶
type Metadata struct {
SystemEnableActive string `json:"__system__enableActive"` // 如果为true。则表明是系统盘快照
}
type MetricData ¶
type ModelartsStatistics ¶
type OSExtraSpecs ¶
type OSExtraSpecs struct {
EcsPerformancetype string `json:"ecs:performancetype"`
}
type OSSchedulerHints ¶
type OSSchedulerHints struct { }
type Port ¶
type Port struct { multicloud.SNetworkInterfaceBase HuaweiTags ID string `json:"id"` Name string `json:"name"` Status string `json:"status"` AdminStateUp string `json:"admin_state_up"` DNSName string `json:"dns_name"` MACAddress string `json:"mac_address"` NetworkID string `json:"network_id"` TenantID string `json:"tenant_id"` DeviceID string `json:"device_id"` DeviceOwner string `json:"device_owner"` BindingVnicType string `json:"binding:vnic_type"` FixedIps []SFixedIP // contains filtered or unexported fields }
func (*Port) GetAssociateId ¶
func (*Port) GetGlobalId ¶
func (*Port) GetICloudInterfaceAddresses ¶
func (port *Port) GetICloudInterfaceAddresses() ([]cloudprovider.ICloudInterfaceAddress, error)
func (*Port) GetMacAddress ¶
type RequestVpcInfo ¶
type SAMLProvider ¶
type SAMLProvider struct { multicloud.SResourceBase HuaweiTags Id string Links SAMLProviderLinks Description 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 SAMLProviderLinks ¶
type SAMLProviderMapping ¶
type SAMLProviderMapping struct { Id string Rules jsonutils.JSONObject }
type SAMLProviderMetadata ¶
type SAMLProviderProtocol ¶
type SAccessKey ¶
type SBackupStrategy ¶
type SBalance ¶
type SBalance struct { Amount float64 `json:"amount"` Currency string `json:"currency"` AccountId string `json:"account_id"` AccountType int64 `json:"account_type"` DesignatedAmount float64 `json:"designated_amount,omitempty"` CreditAmount float64 `json:"credit_amount,omitempty"` MeasureUnit int64 `json:"measure_unit"` }
type SBucket ¶
type SBucket struct { multicloud.SBaseBucket HuaweiTags Name string Location string CreationDate time.Time // contains filtered or unexported fields }
func (*SBucket) AbortMultipartUpload ¶
func (*SBucket) CompleteMultipartUpload ¶
func (*SBucket) CopyObject ¶
func (*SBucket) DeleteCORS ¶
func (*SBucket) DeleteObject ¶
func (*SBucket) DeletePolicy ¶
func (b *SBucket) DeletePolicy(id []string) ([]cloudprovider.SBucketPolicyStatement, error)
func (*SBucket) DeleteWebSiteConf ¶
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) GetCreatedAt ¶
func (*SBucket) GetGlobalId ¶
func (*SBucket) GetIRegion ¶
func (b *SBucket) GetIRegion() cloudprovider.ICloudRegion
func (*SBucket) GetLimit ¶
func (b *SBucket) GetLimit() cloudprovider.SBucketStats
func (*SBucket) GetLocation ¶
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 (*SBucket) GetStats ¶
func (b *SBucket) GetStats() cloudprovider.SBucketStats
func (*SBucket) GetStorageClass ¶
func (*SBucket) GetTempUrl ¶
func (*SBucket) GetWebsiteConf ¶
func (b *SBucket) GetWebsiteConf() (cloudprovider.SBucketWebsiteConf, error)
func (*SBucket) LimitSupport ¶
func (b *SBucket) LimitSupport() cloudprovider.SBucketStats
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 (*SBucket) SetAcl ¶
func (b *SBucket) SetAcl(acl cloudprovider.TBucketACLType) error
func (*SBucket) SetCORS ¶
func (b *SBucket) SetCORS(rules []cloudprovider.SBucketCORSRule) error
func (*SBucket) SetLimit ¶
func (b *SBucket) SetLimit(limit cloudprovider.SBucketStats) error
func (*SBucket) SetPolicy ¶
func (b *SBucket) SetPolicy(policy cloudprovider.SBucketPolicyStatementInput) error
func (*SBucket) SetWebsite ¶
func (b *SBucket) SetWebsite(websitConf cloudprovider.SBucketWebsiteConf) error
type SBucketPolicyStatement ¶
type SBucketPolicyStatement struct { Version string `json:"version"` Statement []SBucketPolicyStatementDetails `json:"Statement"` }
type SBucketPolicyStatementDetails ¶
type SBucketPolicyStatementDetails struct { Id string `json:"id"` Sid string `json:"Sid"` Effect string `json:"Effect"` Principal map[string][]string `json:"Principal"` Action []string `json:"Action"` Resource []string `json:"Resource"` Condition map[string]map[string]interface{} `json:"Condition"` }
type SCdnDomain ¶
type SCdnDomain struct { multicloud.SResourceBase HuaweiTags DomainOriginHost SCdnDomainOriginHost `json:"domain_origin_host"` Sources []SCdnSource `json:"sources"` DomainName string `json:"domain_name"` // 加速域名 Cname string `json:"cname"` // 加速域名对应的CNAME Id string `json:"id"` // 加速域名ID UserDomainId string `json:"user_domain_id"` // 域名所属用户的domain_id BusinessType string `json:"business_type"` // 域名业务类型,若为web,则表示类型为网站加速;若为download,则表示业务类型为文件下载加速;若为video,则表示业务类型为点播加速;若为wholeSite,则表示类型为全站加速 ServiceArea string `json:"service_area"` // 华为云CDN提供的加速服务范围,包含:mainland_china中国大陆、outside_mainland_china中国大陆境外、global全球 DomainStatus string `json:"domain_status"` // 加速域名状态。取值意义: - online表示“已开启” - offline表示“已停用” - configuring表示“配置中” - configure_failed表示“配置失败” - checking表示“审核中” - check_failed表示“审核未通过” - deleting表示“删除中” HttpsStatus int `json:"https_status"` // 是否开启HTTPS加速 CreateTime int64 `json:"create_time"` // 域名创建时间,相对于UTC 1970-01-01到当前时间相隔的毫秒数 ModifyTime int64 `json:"modify_time"` // 域名修改时间,相对于UTC 1970-01-01到当前时间相隔的毫秒数 Disabled int `json:"disabled"` // 封禁状态(0代表未禁用;1代表禁用) Locked int `json:"locked"` // 锁定状态(0代表未锁定;1代表锁定) RangeStatus string `json:"range_status"` // Range回源状态 FollowStatus string `json:"follow_status"` // 回源跟随状态 OriginStatus string `json:"origin_status"` // 是否暂停源站回源 AutoRefreshPreheat int `json:"auto_refresh_preheat"` // 自动刷新预热(0代表关闭;1代表打开) EnterpriseProjectId string `json:"enterprise_project_id"` // 企业项目ID // contains filtered or unexported fields }
func (*SCdnDomain) Delete ¶
func (cd *SCdnDomain) Delete() error
func (*SCdnDomain) GetArea ¶
func (cd *SCdnDomain) GetArea() string
func (*SCdnDomain) GetCache ¶
func (cd *SCdnDomain) GetCache() (*cloudprovider.SCDNCache, error)
func (*SCdnDomain) GetCacheKeys ¶
func (cd *SCdnDomain) GetCacheKeys() (*cloudprovider.SCDNCacheKeys, error)
func (*SCdnDomain) GetCname ¶
func (cd *SCdnDomain) GetCname() string
func (*SCdnDomain) GetEnabled ¶
func (cd *SCdnDomain) GetEnabled() bool
func (*SCdnDomain) GetForceRedirect ¶
func (cd *SCdnDomain) GetForceRedirect() (*cloudprovider.SCDNForceRedirect, error)
func (*SCdnDomain) GetGlobalId ¶
func (cd *SCdnDomain) GetGlobalId() string
func (*SCdnDomain) GetHTTPS ¶
func (cd *SCdnDomain) GetHTTPS() (*cloudprovider.SCDNHttps, error)
func (*SCdnDomain) GetId ¶
func (cd *SCdnDomain) GetId() string
func (*SCdnDomain) GetMaxAge ¶
func (cd *SCdnDomain) GetMaxAge() (*cloudprovider.SCDNMaxAge, error)
func (*SCdnDomain) GetName ¶
func (cd *SCdnDomain) GetName() string
func (*SCdnDomain) GetOrigins ¶
func (cd *SCdnDomain) GetOrigins() *cloudprovider.SCdnOrigins
func (*SCdnDomain) GetProjectId ¶
func (self *SCdnDomain) GetProjectId() string
func (*SCdnDomain) GetRangeOriginPull ¶
func (cd *SCdnDomain) GetRangeOriginPull() (*cloudprovider.SCDNRangeOriginPull, error)
func (*SCdnDomain) GetReferer ¶
func (cd *SCdnDomain) GetReferer() (*cloudprovider.SCDNReferer, error)
func (*SCdnDomain) GetServiceType ¶
func (cd *SCdnDomain) GetServiceType() string
func (*SCdnDomain) GetStatus ¶
func (cd *SCdnDomain) GetStatus() string
func (*SCdnDomain) Refresh ¶
func (cd *SCdnDomain) Refresh() error
type SCdnDomainOriginHost ¶
type SCdnSource ¶
type SCdnSource struct { IPOrDomain string `json:"ip_or_domain"` // 源站IP(非内网IP)或者域名 DomainID string `json:"domain_id"` // OriginType string `json:"origin_type"` // 源站类型取值:ipaddr、 domain、obs_bucket,分别表示:源站IP、源站域名、OBS桶访问域名 ActiveStandby int `json:"active_standby"` // 主备状态(1代表主站;0代表备站),主源站必须存在,备源站可选,OBS桶不能有备源站 }
type SCloudgroup ¶
type SCloudgroup struct { Name string Description string Id string CreateTime string // contains filtered or unexported fields }
func (*SCloudgroup) AddUser ¶
func (group *SCloudgroup) AddUser(name string) error
func (*SCloudgroup) AttachCustomPolicy ¶
func (group *SCloudgroup) AttachCustomPolicy(roleId string) error
func (*SCloudgroup) AttachSystemPolicy ¶
func (group *SCloudgroup) AttachSystemPolicy(roleId string) error
func (*SCloudgroup) Delete ¶
func (group *SCloudgroup) Delete() error
func (*SCloudgroup) DetachCustomPolicy ¶
func (group *SCloudgroup) DetachCustomPolicy(roleId string) error
func (*SCloudgroup) DetachSystemPolicy ¶
func (group *SCloudgroup) DetachSystemPolicy(roleId string) error
func (*SCloudgroup) GetDescription ¶
func (group *SCloudgroup) GetDescription() string
func (*SCloudgroup) GetGlobalId ¶
func (group *SCloudgroup) GetGlobalId() string
func (*SCloudgroup) GetICloudusers ¶
func (group *SCloudgroup) GetICloudusers() ([]cloudprovider.IClouduser, error)
func (*SCloudgroup) GetICustomCloudpolicies ¶
func (group *SCloudgroup) GetICustomCloudpolicies() ([]cloudprovider.ICloudpolicy, error)
func (*SCloudgroup) GetISystemCloudpolicies ¶
func (group *SCloudgroup) GetISystemCloudpolicies() ([]cloudprovider.ICloudpolicy, error)
func (*SCloudgroup) GetName ¶
func (group *SCloudgroup) GetName() string
func (*SCloudgroup) RemoveUser ¶
func (group *SCloudgroup) RemoveUser(name string) error
type SClouduser ¶
type SClouduser struct { Description string DomainId string Enabled bool ForceResetPwd bool Id string LastProjectId string Links SLink Name string PasswordExpiresAt string PwdStatus bool // contains filtered or unexported fields }
func (*SClouduser) AttachCustomPolicy ¶
func (user *SClouduser) AttachCustomPolicy(policyType string) error
func (*SClouduser) AttachSystemPolicy ¶
func (user *SClouduser) AttachSystemPolicy(policyType string) error
func (*SClouduser) CreateAccessKey ¶
func (user *SClouduser) CreateAccessKey(name string) (*cloudprovider.SAccessKey, error)
func (*SClouduser) Delete ¶
func (user *SClouduser) Delete() error
func (*SClouduser) DeleteAccessKey ¶
func (user *SClouduser) DeleteAccessKey(accessKey string) error
func (*SClouduser) DetachCustomPolicy ¶
func (user *SClouduser) DetachCustomPolicy(policyId string) error
func (*SClouduser) DetachSystemPolicy ¶
func (user *SClouduser) DetachSystemPolicy(policyId string) error
func (*SClouduser) GetAccessKeys ¶
func (user *SClouduser) GetAccessKeys() ([]cloudprovider.SAccessKey, error)
func (*SClouduser) GetEmailAddr ¶
func (user *SClouduser) GetEmailAddr() string
func (*SClouduser) GetGlobalId ¶
func (user *SClouduser) GetGlobalId() string
func (*SClouduser) GetICloudgroups ¶
func (user *SClouduser) GetICloudgroups() ([]cloudprovider.ICloudgroup, error)
func (*SClouduser) GetICustomCloudpolicies ¶
func (user *SClouduser) GetICustomCloudpolicies() ([]cloudprovider.ICloudpolicy, error)
func (*SClouduser) GetISystemCloudpolicies ¶
func (user *SClouduser) GetISystemCloudpolicies() ([]cloudprovider.ICloudpolicy, error)
func (*SClouduser) GetInviteUrl ¶
func (user *SClouduser) GetInviteUrl() string
func (*SClouduser) GetName ¶
func (user *SClouduser) GetName() string
func (*SClouduser) IsConsoleLogin ¶
func (user *SClouduser) IsConsoleLogin() bool
func (*SClouduser) ResetPassword ¶
func (user *SClouduser) ResetPassword(password string) error
type SDBInstance ¶
type SDBInstance struct { multicloud.SDBInstanceBase HuaweiTags BackupStrategy SBackupStrategy Created string //time.Time Datastore SDatastore DbUserName string DIskEncryptionId string FlavorRef string Ha SHa Id string MaintenanceWindow string MaxIops int Name string Nodes []SNonde Port int PrivateIps []string PublicIps []string Region string RelatedInstance []SRelatedInstance SecurityGroupId string Status string SubnetId string SwitchStrategy string TimeZone string Type string Updated string //time.Time Volume SVolume VpcId string EnterpriseProjectId string // contains filtered or unexported fields }
func (*SDBInstance) ChangeConfig ¶
func (rds *SDBInstance) ChangeConfig(cxt context.Context, desc *cloudprovider.SManagedDBInstanceChangeConfig) error
func (*SDBInstance) ClosePublicConnection ¶
func (rds *SDBInstance) ClosePublicConnection() error
func (*SDBInstance) CreateAccount ¶
func (rds *SDBInstance) CreateAccount(conf *cloudprovider.SDBInstanceAccountCreateConfig) error
func (*SDBInstance) CreateDatabase ¶
func (rds *SDBInstance) CreateDatabase(conf *cloudprovider.SDBInstanceDatabaseCreateConfig) error
func (*SDBInstance) CreateIBackup ¶
func (rds *SDBInstance) CreateIBackup(conf *cloudprovider.SDBInstanceBackupCreateConfig) (string, error)
func (*SDBInstance) Delete ¶
func (rds *SDBInstance) Delete() error
func (*SDBInstance) GetBillingType ¶
func (rds *SDBInstance) GetBillingType() string
func (*SDBInstance) GetCategory ¶
func (rds *SDBInstance) GetCategory() string
func (*SDBInstance) GetConnectionStr ¶
func (rds *SDBInstance) GetConnectionStr() string
func (*SDBInstance) GetCreatedAt ¶
func (rds *SDBInstance) GetCreatedAt() time.Time
func (*SDBInstance) GetDBNetworks ¶
func (rds *SDBInstance) GetDBNetworks() ([]cloudprovider.SDBInstanceNetwork, error)
func (*SDBInstance) GetDiskSizeGB ¶
func (rds *SDBInstance) GetDiskSizeGB() int
func (*SDBInstance) GetEngine ¶
func (rds *SDBInstance) GetEngine() string
func (*SDBInstance) GetEngineVersion ¶
func (rds *SDBInstance) GetEngineVersion() string
func (*SDBInstance) GetExpiredAt ¶
func (rds *SDBInstance) GetExpiredAt() time.Time
func (*SDBInstance) GetGlobalId ¶
func (rds *SDBInstance) GetGlobalId() string
func (*SDBInstance) GetIDBInstanceAccounts ¶
func (rds *SDBInstance) GetIDBInstanceAccounts() ([]cloudprovider.ICloudDBInstanceAccount, error)
func (*SDBInstance) GetIDBInstanceBackups ¶
func (rds *SDBInstance) GetIDBInstanceBackups() ([]cloudprovider.ICloudDBInstanceBackup, error)
func (*SDBInstance) GetIDBInstanceDatabases ¶
func (rds *SDBInstance) GetIDBInstanceDatabases() ([]cloudprovider.ICloudDBInstanceDatabase, error)
func (*SDBInstance) GetIDBInstanceParameters ¶
func (rds *SDBInstance) GetIDBInstanceParameters() ([]cloudprovider.ICloudDBInstanceParameter, error)
func (*SDBInstance) GetIVpcId ¶
func (rds *SDBInstance) GetIVpcId() string
func (*SDBInstance) GetId ¶
func (rds *SDBInstance) GetId() string
func (*SDBInstance) GetInstanceType ¶
func (rds *SDBInstance) GetInstanceType() string
func (*SDBInstance) GetInternalConnectionStr ¶
func (rds *SDBInstance) GetInternalConnectionStr() string
func (*SDBInstance) GetIops ¶
func (rds *SDBInstance) GetIops() int
func (*SDBInstance) GetMaintainTime ¶
func (rds *SDBInstance) GetMaintainTime() string
func (*SDBInstance) GetName ¶
func (rds *SDBInstance) GetName() string
func (*SDBInstance) GetPort ¶
func (rds *SDBInstance) GetPort() int
func (*SDBInstance) GetProjectId ¶
func (rds *SDBInstance) GetProjectId() string
func (*SDBInstance) GetSecurityGroupIds ¶
func (rds *SDBInstance) GetSecurityGroupIds() ([]string, error)
func (*SDBInstance) GetStatus ¶
func (rds *SDBInstance) GetStatus() string
func (*SDBInstance) GetStorageType ¶
func (rds *SDBInstance) GetStorageType() string
func (*SDBInstance) GetVcpuCount ¶
func (rds *SDBInstance) GetVcpuCount() int
func (*SDBInstance) GetVmemSizeMB ¶
func (rds *SDBInstance) GetVmemSizeMB() int
func (*SDBInstance) GetZone1Id ¶
func (rds *SDBInstance) GetZone1Id() string
func (*SDBInstance) GetZone2Id ¶
func (rds *SDBInstance) GetZone2Id() string
func (*SDBInstance) GetZone3Id ¶
func (rds *SDBInstance) GetZone3Id() string
func (*SDBInstance) GetZoneIdByRole ¶
func (rds *SDBInstance) GetZoneIdByRole(role string) string
func (*SDBInstance) OpenPublicConnection ¶
func (rds *SDBInstance) OpenPublicConnection() error
func (*SDBInstance) Reboot ¶
func (rds *SDBInstance) Reboot() error
func (*SDBInstance) RecoveryFromBackup ¶
func (rds *SDBInstance) RecoveryFromBackup(conf *cloudprovider.SDBInstanceRecoveryConfig) error
func (*SDBInstance) Refresh ¶
func (rds *SDBInstance) Refresh() error
func (*SDBInstance) Renew ¶
func (rds *SDBInstance) Renew(bc billing.SBillingCycle) error
func (*SDBInstance) SetTags ¶
func (self *SDBInstance) SetTags(tags map[string]string, replace bool) error
func (*SDBInstance) Update ¶
func (rds *SDBInstance) Update(ctx context.Context, input cloudprovider.SDBInstanceUpdateOptions) error
type SDBInstanceAccount ¶
type SDBInstanceAccount struct { multicloud.SDBInstanceAccountBase HuaweiTags Name string // contains filtered or unexported fields }
func (*SDBInstanceAccount) Delete ¶
func (account *SDBInstanceAccount) Delete() error
func (*SDBInstanceAccount) GetIDBInstanceAccountPrivileges ¶
func (account *SDBInstanceAccount) GetIDBInstanceAccountPrivileges() ([]cloudprovider.ICloudDBInstanceAccountPrivilege, error)
func (*SDBInstanceAccount) GetName ¶
func (account *SDBInstanceAccount) GetName() string
func (*SDBInstanceAccount) GrantPrivilege ¶
func (account *SDBInstanceAccount) GrantPrivilege(database, privilege string) error
func (*SDBInstanceAccount) ResetPassword ¶
func (account *SDBInstanceAccount) ResetPassword(password string) error
func (*SDBInstanceAccount) RevokePrivilege ¶
func (account *SDBInstanceAccount) RevokePrivilege(database string) error
type SDBInstanceBackup ¶
type SDBInstanceBackup struct { multicloud.SDBInstanceBackupBase HuaweiTags BeginTime string Datastore SDatastore EndTime string Id string InstanceId string Name string Size int Status string Type string // contains filtered or unexported fields }
func (*SDBInstanceBackup) CreateICloudDBInstance ¶
func (self *SDBInstanceBackup) CreateICloudDBInstance(opts *cloudprovider.SManagedDBInstanceCreateConfig) (cloudprovider.ICloudDBInstance, error)
func (*SDBInstanceBackup) Delete ¶
func (backup *SDBInstanceBackup) Delete() error
func (*SDBInstanceBackup) GetBackupMode ¶
func (backup *SDBInstanceBackup) GetBackupMode() string
func (*SDBInstanceBackup) GetBackupSizeMb ¶
func (backup *SDBInstanceBackup) GetBackupSizeMb() int
func (*SDBInstanceBackup) GetDBInstanceId ¶
func (backup *SDBInstanceBackup) GetDBInstanceId() string
func (*SDBInstanceBackup) GetDBNames ¶
func (backup *SDBInstanceBackup) GetDBNames() string
func (*SDBInstanceBackup) GetEndTime ¶
func (backup *SDBInstanceBackup) GetEndTime() time.Time
func (*SDBInstanceBackup) GetEngine ¶
func (backup *SDBInstanceBackup) GetEngine() string
func (*SDBInstanceBackup) GetEngineVersion ¶
func (backup *SDBInstanceBackup) GetEngineVersion() string
func (*SDBInstanceBackup) GetGlobalId ¶
func (backup *SDBInstanceBackup) GetGlobalId() string
func (*SDBInstanceBackup) GetId ¶
func (backup *SDBInstanceBackup) GetId() string
func (*SDBInstanceBackup) GetName ¶
func (backup *SDBInstanceBackup) GetName() string
func (*SDBInstanceBackup) GetStartTime ¶
func (backup *SDBInstanceBackup) GetStartTime() time.Time
func (*SDBInstanceBackup) GetStatus ¶
func (backup *SDBInstanceBackup) GetStatus() string
func (*SDBInstanceBackup) Refresh ¶
func (backup *SDBInstanceBackup) Refresh() error
type SDBInstanceDatabase ¶
type SDBInstanceDatabase struct { multicloud.SDBInstanceDatabaseBase HuaweiTags Name string CharacterSet string // contains filtered or unexported fields }
func (*SDBInstanceDatabase) Delete ¶
func (database *SDBInstanceDatabase) Delete() error
func (*SDBInstanceDatabase) GetCharacterSet ¶
func (database *SDBInstanceDatabase) GetCharacterSet() string
func (*SDBInstanceDatabase) GetGlobalId ¶
func (database *SDBInstanceDatabase) GetGlobalId() string
func (*SDBInstanceDatabase) GetId ¶
func (database *SDBInstanceDatabase) GetId() string
func (*SDBInstanceDatabase) GetName ¶
func (database *SDBInstanceDatabase) GetName() string
func (*SDBInstanceDatabase) GetStatus ¶
func (database *SDBInstanceDatabase) GetStatus() string
type SDBInstanceFlavor ¶
type SDBInstanceJob ¶
type SDBInstanceParameter ¶
type SDBInstanceParameter struct { Name string Value string RestartRequired bool Readonly bool ValueRange string Type string Description string // contains filtered or unexported fields }
func (*SDBInstanceParameter) GetDescription ¶
func (param *SDBInstanceParameter) GetDescription() string
func (*SDBInstanceParameter) GetGlobalId ¶
func (param *SDBInstanceParameter) GetGlobalId() string
func (*SDBInstanceParameter) GetKey ¶
func (param *SDBInstanceParameter) GetKey() string
func (*SDBInstanceParameter) GetValue ¶
func (param *SDBInstanceParameter) GetValue() string
type SDatabasePrivilege ¶
type SDatabasePrivilege struct { Name string Readonly bool // contains filtered or unexported fields }
func (*SDatabasePrivilege) GetDBName ¶
func (privilege *SDatabasePrivilege) GetDBName() string
func (*SDatabasePrivilege) GetGlobalId ¶
func (privilege *SDatabasePrivilege) GetGlobalId() string
func (*SDatabasePrivilege) GetPrivilege ¶
func (privilege *SDatabasePrivilege) GetPrivilege() string
type SDatastore ¶
type SDisk ¶
type SDisk struct { multicloud.SDisk HuaweiDiskTags ID string `json:"id"` Name string `json:"name"` Status string `json:"status"` Attachments []Attachment `json:"attachments"` Description string `json:"description"` SizeGB int `json:"size"` Metadata DiskMeta `json:"metadata"` Encrypted bool `json:"encrypted"` Bootable string `json:"bootable"` Multiattach bool `json:"multiattach"` AvailabilityZone string `json:"availability_zone"` SourceVolid string `json:"source_volid"` SnapshotID string `json:"snapshot_id"` CreatedAt time.Time `json:"created_at"` VolumeType string `json:"volume_type"` VolumeImageMetadata VolumeImageMetadata `json:"volume_image_metadata"` ReplicationStatus string `json:"replication_status"` UserID string `json:"user_id"` ConsistencygroupID string `json:"consistencygroup_id"` UpdatedAt string `json:"updated_at"` EnterpriseProjectId string ExpiredTime time.Time // contains filtered or unexported fields }
https://support.huaweicloud.com/api-evs/zh-cn_topic_0124881427.html
func (*SDisk) CreateISnapshot ¶
func (self *SDisk) CreateISnapshot(ctx context.Context, name string, desc string) (cloudprovider.ICloudSnapshot, error)
func (*SDisk) GetAccessPath ¶
func (*SDisk) GetBillingType ¶
func (*SDisk) GetCacheMode ¶
func (*SDisk) GetCreatedAt ¶
func (*SDisk) GetDiskFormat ¶
func (*SDisk) GetDiskSizeMB ¶
func (*SDisk) GetDiskType ¶
func (*SDisk) GetExpiredAt ¶
func (*SDisk) GetFsFormat ¶
func (*SDisk) GetGlobalId ¶
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) GetIsAutoDelete ¶
func (*SDisk) GetIsNonPersistent ¶
func (*SDisk) GetMountServerId ¶
func (*SDisk) GetMountpoint ¶
func (*SDisk) GetProjectId ¶
func (*SDisk) GetTemplateId ¶
type SDiskType ¶
type SDiskType struct { ExtraSpecs ExtraSpecs `json:"extra_specs"` Name string `json:"name"` QosSpecsID string `json:"qos_specs_id"` Id string `json:"id"` IsPublic bool `json:"is_public"` }
type SDomain ¶
type SDomain struct { Contacts string `json:"contacts"` Description string `json:"description"` Enabled bool `json:"enabled"` EnterpriseName string `json:"enterpriseName"` ID string `json:"id"` Name string `json:"name"` Tagflag int `json:"tagflag"` }
https://support.huaweicloud.com/api-iam/zh-cn_topic_0057845574.html 租户列表
type SEipAddress ¶
type SEipAddress struct { multicloud.SEipBase HuaweiTags Alias string Id string Status string Type string PublicIPAddress string CreateTime time.Time Bandwidth struct { Id string Size int ShareType string ChargeMode string Name string } BillingInfo string EnterpriseProjectId string AssociateInstanceType string AssociateInstanceId string IPVersion int64 PortId string // contains filtered or unexported fields }
func (*SEipAddress) Associate ¶
func (self *SEipAddress) Associate(opts *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) 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) Refresh ¶
func (self *SEipAddress) Refresh() error
type SElasticcache ¶
type SElasticcache struct { multicloud.SElasticcacheBase HuaweiTags Name string `json:"name"` Engine string `json:"engine"` CapacityGB int `json:"capacity"` IP string `json:"ip"` DomainName string `json:"domainName"` Port int `json:"port"` Status string `json:"status"` Libos bool `json:"libos"` Description string `json:"description"` Task string `json:"task"` MaxMemoryMB int `json:"max_memory"` UsedMemoryMB int `json:"used_memory"` InstanceID string `json:"instance_id"` ResourceSpecCode string `json:"resource_spec_code"` EngineVersion string `json:"engine_version"` InternalVersion string `json:"internal_version"` ChargingMode int `json:"charging_mode"` CapacityMinor string `json:"capacity_minor"` VpcID string `json:"vpc_id"` VpcName string `json:"vpc_name"` TaskStatus string `json:"task_status"` CreatedAt string `json:"created_at"` ErrorCode string `json:"error_code"` UserID string `json:"user_id"` UserName string `json:"user_name"` MaintainBegin string `json:"maintain_begin"` MaintainEnd string `json:"maintain_end"` NoPasswordAccess string `json:"no_password_access"` AccessUser string `json:"access_user"` EnablePublicip bool `json:"enable_publicip"` PublicipID string `json:"publicip_id"` PublicipAddress string `json:"publicip_address"` EnableSSL bool `json:"enable_ssl"` ServiceUpgrade bool `json:"service_upgrade"` ServiceTaskID string `json:"service_task_id"` IsFree string `json:"is_free"` EnterpriseProjectID string `json:"enterprise_project_id"` AvailableZones []string `json:"available_zones"` SubnetID string `json:"subnet_id"` SecurityGroupID string `json:"security_group_id"` BackendAddrs []string `json:"backend_addrs"` ProductID string `json:"product_id"` SecurityGroupName string `json:"security_group_name"` SubnetName string `json:"subnet_name"` OrderID string `json:"order_id"` SubnetCIDR string `json:"subnet_cidr"` InstanceBackupPolicy string `json:"instance_backup_policy"` EnterpriseProjectName string `json:"enterprise_project_name"` // contains filtered or unexported fields }
func (*SElasticcache) AllocatePublicConnection ¶
func (self *SElasticcache) AllocatePublicConnection(port int) (string, error)
https://support.huaweicloud.com/usermanual-dcs/dcs-zh-ug-180314001.html 目前只有Redis3.0版本密码模式的实例支持通过公网访问Redis实例,其他版本暂不支持公网访问。 todo: 目前没找到api
func (*SElasticcache) ChangeInstanceSpec ¶
func (self *SElasticcache) ChangeInstanceSpec(spec string) error
func (*SElasticcache) CreateAccount ¶
func (self *SElasticcache) CreateAccount(account cloudprovider.SCloudElasticCacheAccountInput) (cloudprovider.ICloudElasticcacheAccount, error)
func (*SElasticcache) CreateAcl ¶
func (self *SElasticcache) CreateAcl(aclName, securityIps string) (cloudprovider.ICloudElasticcacheAcl, error)
func (*SElasticcache) CreateBackup ¶
func (self *SElasticcache) CreateBackup(desc string) (cloudprovider.ICloudElasticcacheBackup, error)
https://support.huaweicloud.com/api-dcs/dcs-zh-api-180423033.html
func (*SElasticcache) Delete ¶
func (self *SElasticcache) Delete() error
func (*SElasticcache) FlushInstance ¶
func (self *SElasticcache) FlushInstance(input cloudprovider.SCloudElasticCacheFlushInstanceInput) error
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) 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) 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
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
func (*SElasticcache) GetVpcId ¶
func (self *SElasticcache) GetVpcId() string
func (*SElasticcache) GetZoneId ¶
func (self *SElasticcache) GetZoneId() string
func (*SElasticcache) Refresh ¶
func (self *SElasticcache) Refresh() error
func (*SElasticcache) ReleasePublicConnection ¶
func (self *SElasticcache) ReleasePublicConnection() error
todo: 目前没找到api
func (*SElasticcache) Renew ¶
func (self *SElasticcache) Renew(bc billing.SBillingCycle) error
func (*SElasticcache) Restart ¶
func (self *SElasticcache) Restart() error
func (*SElasticcache) SetAutoRenew ¶
func (self *SElasticcache) SetAutoRenew(bc billing.SBillingCycle) error
func (*SElasticcache) SetMaintainTime ¶
func (self *SElasticcache) SetMaintainTime(maintainStartTime, maintainEndTime string) error
func (*SElasticcache) SetTags ¶
func (instance *SElasticcache) SetTags(tags map[string]string, replace bool) error
func (*SElasticcache) UpdateAuthMode ¶
func (self *SElasticcache) UpdateAuthMode(noPwdAccess bool, password string) error
SElasticcacheAccount => ResetPassword
func (*SElasticcache) UpdateBackupPolicy ¶
func (self *SElasticcache) UpdateBackupPolicy(opts cloudprovider.SCloudElasticCacheBackupPolicyUpdateInput) error
func (*SElasticcache) UpdateInstanceParameters ¶
func (self *SElasticcache) UpdateInstanceParameters(config jsonutils.JSONObject) error
func (*SElasticcache) UpdateSecurityGroups ¶
func (self *SElasticcache) UpdateSecurityGroups(secgroupIds []string) error
type SElasticcacheAccount ¶
type SElasticcacheAccount struct { multicloud.SElasticcacheAccountBase HuaweiTags // contains filtered or unexported fields }
func (*SElasticcacheAccount) Delete ¶
func (self *SElasticcacheAccount) Delete() error
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) ResetPassword ¶
func (self *SElasticcacheAccount) ResetPassword(input cloudprovider.SCloudElasticCacheAccountResetPasswordInput) error
func (*SElasticcacheAccount) UpdateAccount ¶
func (self *SElasticcacheAccount) UpdateAccount(input cloudprovider.SCloudElasticCacheAccountUpdateInput) error
type SElasticcacheBackup ¶
type SElasticcacheBackup struct { multicloud.SElasticcacheBackupBase HuaweiTags Status string `json:"status"` Remark string `json:"remark"` Period string `json:"period"` Progress string `json:"progress"` SizeByte int64 `json:"size"` InstanceID string `json:"instance_id"` BackupID string `json:"backup_id"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` ExecutionAt time.Time `json:"execution_at"` BackupType string `json:"backup_type"` BackupName string `json:"backup_name"` ErrorCode string `json:"error_code"` IsSupportRestore string `json:"is_support_restore"` // contains filtered or unexported fields }
https://support.huaweicloud.com/api-dcs/dcs-zh-api-180423035.html
func (*SElasticcacheBackup) Delete ¶
func (self *SElasticcacheBackup) Delete() 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
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
func (*SElasticcacheBackup) Refresh ¶
func (self *SElasticcacheBackup) Refresh() error
func (*SElasticcacheBackup) RestoreInstance ¶
func (self *SElasticcacheBackup) RestoreInstance(instanceId string) error
type SElasticcacheParameter ¶
type SElasticcacheParameter struct { multicloud.SElasticcacheParameterBase HuaweiTags Description string `json:"description"` ParamID int64 `json:"param_id"` ParamName string `json:"param_name"` ParamValue string `json:"param_value"` DefaultValue string `json:"default_value"` ValueType string `json:"value_type"` ValueRange string `json:"value_range"` // contains filtered or unexported fields }
https://support.huaweicloud.com/api-dcs/dcs-zh-api-180423027.html
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 SElbACL ¶
type SElbACL struct { multicloud.SResourceBase HuaweiTags ID string `json:"id"` ListenerID string `json:"listener_id"` TenantID string `json:"tenant_id"` EnableWhitelist bool `json:"enable_whitelist"` Whitelist string `json:"whitelist"` // contains filtered or unexported fields }
func (*SElbACL) GetAclEntries ¶
func (self *SElbACL) GetAclEntries() []cloudprovider.SLoadbalancerAccessControlListEntry
func (*SElbACL) GetAclListenerID ¶
func (*SElbACL) GetGlobalId ¶
func (*SElbACL) GetProjectId ¶
func (*SElbACL) IsEmulated ¶
func (*SElbACL) Sync ¶
func (self *SElbACL) Sync(acl *cloudprovider.SLoadbalancerAccessControlList) error
type SElbBackend ¶
type SElbBackend struct { multicloud.SResourceBase HuaweiTags Name string `json:"name"` Weight int `json:"weight"` AdminStateUp bool `json:"admin_state_up"` SubnetID string `json:"subnet_id"` TenantID string `json:"tenant_id"` ProjectID string `json:"project_id"` Address string `json:"address"` ProtocolPort int `json:"protocol_port"` OperatingStatus string `json:"operating_status"` ID string `json:"id"` // contains filtered or unexported fields }
func (*SElbBackend) GetBackendId ¶
func (self *SElbBackend) GetBackendId() string
func (*SElbBackend) GetBackendRole ¶
func (self *SElbBackend) GetBackendRole() string
func (*SElbBackend) GetBackendType ¶
func (self *SElbBackend) GetBackendType() string
func (*SElbBackend) GetGlobalId ¶
func (self *SElbBackend) GetGlobalId() string
func (*SElbBackend) GetId ¶
func (self *SElbBackend) GetId() string
func (*SElbBackend) GetIpAddress ¶
func (self *SElbBackend) GetIpAddress() string
func (*SElbBackend) GetName ¶
func (self *SElbBackend) GetName() string
func (*SElbBackend) GetPort ¶
func (self *SElbBackend) GetPort() int
func (*SElbBackend) GetProjectId ¶
func (self *SElbBackend) GetProjectId() string
func (*SElbBackend) GetStatus ¶
func (self *SElbBackend) GetStatus() string
func (*SElbBackend) GetWeight ¶
func (self *SElbBackend) GetWeight() int
func (*SElbBackend) IsEmulated ¶
func (self *SElbBackend) IsEmulated() bool
func (*SElbBackend) Refresh ¶
func (self *SElbBackend) Refresh() error
type SElbBackendGroup ¶
type SElbBackendGroup struct { multicloud.SResourceBase HuaweiTags LBAlgorithm string `json:"lb_algorithm"` Protocol string `json:"protocol"` Description string `json:"description"` AdminStateUp bool `json:"admin_state_up"` Loadbalancers []Loadbalancer `json:"loadbalancers"` TenantID string `json:"tenant_id"` ProjectID string `json:"project_id"` Listeners []Listener `json:"listeners"` ID string `json:"id"` Name string `json:"name"` HealthMonitorID string `json:"healthmonitor_id"` SessionPersistence StickySession `json:"session_persistence"` // contains filtered or unexported fields }
func (*SElbBackendGroup) AddBackendServer ¶
func (self *SElbBackendGroup) AddBackendServer(serverId string, weight int, port int) (cloudprovider.ICloudLoadbalancerBackend, error)
func (*SElbBackendGroup) GetGlobalId ¶
func (self *SElbBackendGroup) GetGlobalId() string
func (*SElbBackendGroup) GetHealthCheck ¶
func (self *SElbBackendGroup) GetHealthCheck() (*cloudprovider.SLoadbalancerHealthCheck, error)
func (*SElbBackendGroup) GetILoadbalancer ¶
func (self *SElbBackendGroup) GetILoadbalancer() cloudprovider.ICloudLoadbalancer
func (*SElbBackendGroup) GetILoadbalancerBackendById ¶
func (self *SElbBackendGroup) GetILoadbalancerBackendById(serverId string) (cloudprovider.ICloudLoadbalancerBackend, error)
func (*SElbBackendGroup) GetILoadbalancerBackends ¶
func (self *SElbBackendGroup) GetILoadbalancerBackends() ([]cloudprovider.ICloudLoadbalancerBackend, error)
func (*SElbBackendGroup) GetId ¶
func (self *SElbBackendGroup) GetId() string
func (*SElbBackendGroup) GetLoadbalancerId ¶
func (self *SElbBackendGroup) GetLoadbalancerId() string
func (*SElbBackendGroup) GetName ¶
func (self *SElbBackendGroup) GetName() string
func (*SElbBackendGroup) GetProjectId ¶
func (self *SElbBackendGroup) GetProjectId() string
func (*SElbBackendGroup) GetProtocolType ¶
func (self *SElbBackendGroup) GetProtocolType() string
func (*SElbBackendGroup) GetScheduler ¶
func (self *SElbBackendGroup) GetScheduler() string
func (*SElbBackendGroup) GetStatus ¶
func (self *SElbBackendGroup) GetStatus() string
func (*SElbBackendGroup) GetStickySession ¶
func (self *SElbBackendGroup) GetStickySession() (*cloudprovider.SLoadbalancerStickySession, error)
func (*SElbBackendGroup) GetType ¶
func (self *SElbBackendGroup) GetType() string
func (*SElbBackendGroup) IsDefault ¶
func (self *SElbBackendGroup) IsDefault() bool
func (*SElbBackendGroup) Refresh ¶
func (self *SElbBackendGroup) Refresh() error
func (*SElbBackendGroup) RemoveBackendServer ¶
func (self *SElbBackendGroup) RemoveBackendServer(backendId string, weight int, port int) error
func (*SElbBackendGroup) Sync ¶
func (self *SElbBackendGroup) Sync(ctx context.Context, group *cloudprovider.SLoadbalancerBackendGroup) error
type SElbCert ¶
type SElbCert struct { multicloud.SResourceBase HuaweiTags Certificate string `json:"certificate"` CreateTime time.Time `json:"create_time"` ExpireTime time.Time `json:"expire_time"` Description string `json:"description"` Domain string `json:"domain"` ID string `json:"id"` AdminStateUp bool `json:"admin_state_up"` TenantID string `json:"tenant_id"` Name string `json:"name"` PrivateKey string `json:"private_key"` Type string `json:"type"` UpdateTime time.Time `json:"update_time"` // contains filtered or unexported fields }
func (*SElbCert) GetCommonName ¶
func (*SElbCert) GetExpireTime ¶
func (*SElbCert) GetFingerprint ¶
func (*SElbCert) GetGlobalId ¶
func (*SElbCert) GetPrivateKey ¶
func (*SElbCert) GetProjectId ¶
func (*SElbCert) GetPublickKey ¶
func (*SElbCert) GetSubjectAlternativeNames ¶
func (*SElbCert) IsEmulated ¶
type SElbHealthCheck ¶
type SElbHealthCheck struct { Name string `json:"name"` AdminStateUp bool `json:"admin_state_up"` TenantID string `json:"tenant_id"` ProjectID string `json:"project_id"` DomainName string `json:"domain_name"` Delay int `json:"delay"` ExpectedCodes string `json:"expected_codes"` MaxRetries int `json:"max_retries"` HTTPMethod string `json:"http_method"` Timeout int `json:"timeout"` Pools []Pool `json:"pools"` URLPath string `json:"url_path"` Type string `json:"type"` ID string `json:"id"` MonitorPort int `json:"monitor_port"` // contains filtered or unexported fields }
type SElbListener ¶
type SElbListener struct { multicloud.SResourceBase multicloud.SLoadbalancerRedirectBase HuaweiTags ProtocolPort int `json:"protocol_port"` Protocol string `json:"protocol"` Description string `json:"description"` AdminStateUp bool `json:"admin_state_up"` Http2Enable bool `json:"http2_enable"` Loadbalancers []Loadbalancer `json:"loadbalancers"` TenantID string `json:"tenant_id"` ProjectID string `json:"project_id"` ConnectionLimit int `json:"connection_limit"` DefaultPoolID string `json:"default_pool_id"` ID string `json:"id"` Name string `json:"name"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` InsertHeaders InsertHeaders `json:"insert_headers"` DefaultTlsContainerRef string `json:"default_tls_container_ref"` // contains filtered or unexported fields }
func (*SElbListener) ChangeCertificate ¶
func (self *SElbListener) ChangeCertificate(ctx context.Context, opts *cloudprovider.ListenerCertificateOptions) error
func (*SElbListener) ChangeScheduler ¶
func (self *SElbListener) ChangeScheduler(ctx context.Context, opts *cloudprovider.ChangeListenerSchedulerOptions) error
func (*SElbListener) CreateILoadBalancerListenerRule ¶
func (self *SElbListener) CreateILoadBalancerListenerRule(rule *cloudprovider.SLoadbalancerListenerRule) (cloudprovider.ICloudLoadbalancerListenerRule, error)
https://support.huaweicloud.com/api-elb/zh-cn_topic_0136295317.html
func (*SElbListener) GetAcl ¶
func (self *SElbListener) GetAcl() (*SElbACL, error)
func (*SElbListener) GetAclId ¶
func (self *SElbListener) GetAclId() string
func (*SElbListener) GetAclStatus ¶
func (self *SElbListener) GetAclStatus() string
func (*SElbListener) GetAclType ¶
func (self *SElbListener) GetAclType() string
func (*SElbListener) GetBackendConnectTimeout ¶
func (self *SElbListener) GetBackendConnectTimeout() int
func (*SElbListener) GetBackendGroup ¶
func (self *SElbListener) GetBackendGroup() (*SElbBackendGroup, error)
func (*SElbListener) GetBackendGroupId ¶
func (self *SElbListener) GetBackendGroupId() string
func (*SElbListener) GetBackendServerPort ¶
func (self *SElbListener) GetBackendServerPort() int
func (*SElbListener) GetCertificateId ¶
func (self *SElbListener) GetCertificateId() string
func (*SElbListener) GetClientIdleTimeout ¶
func (self *SElbListener) GetClientIdleTimeout() int
func (*SElbListener) GetEgressMbps ¶
func (self *SElbListener) GetEgressMbps() int
func (*SElbListener) GetGlobalId ¶
func (self *SElbListener) GetGlobalId() string
func (*SElbListener) GetHealthCheck ¶
func (self *SElbListener) GetHealthCheck() string
func (*SElbListener) GetHealthCheckCode ¶
func (self *SElbListener) GetHealthCheckCode() string
func (*SElbListener) GetHealthCheckDomain ¶
func (self *SElbListener) GetHealthCheckDomain() string
func (*SElbListener) GetHealthCheckExp ¶
func (self *SElbListener) GetHealthCheckExp() string
func (*SElbListener) GetHealthCheckFail ¶
func (self *SElbListener) GetHealthCheckFail() int
func (*SElbListener) GetHealthCheckInterval ¶
func (self *SElbListener) GetHealthCheckInterval() int
func (*SElbListener) GetHealthCheckReq ¶
func (self *SElbListener) GetHealthCheckReq() string
func (*SElbListener) GetHealthCheckRise ¶
func (self *SElbListener) GetHealthCheckRise() int
func (*SElbListener) GetHealthCheckTimeout ¶
func (self *SElbListener) GetHealthCheckTimeout() int
func (*SElbListener) GetHealthCheckType ¶
func (self *SElbListener) GetHealthCheckType() string
func (*SElbListener) GetHealthCheckURI ¶
func (self *SElbListener) GetHealthCheckURI() string
func (*SElbListener) GetILoadBalancerListenerRuleById ¶
func (self *SElbListener) GetILoadBalancerListenerRuleById(ruleId string) (cloudprovider.ICloudLoadbalancerListenerRule, error)
func (*SElbListener) GetILoadbalancerListenerRules ¶
func (self *SElbListener) GetILoadbalancerListenerRules() ([]cloudprovider.ICloudLoadbalancerListenerRule, error)
func (*SElbListener) GetId ¶
func (self *SElbListener) GetId() string
func (*SElbListener) GetListenerPort ¶
func (self *SElbListener) GetListenerPort() int
func (*SElbListener) GetListenerType ¶
func (self *SElbListener) GetListenerType() string
func (*SElbListener) GetName ¶
func (self *SElbListener) GetName() string
func (*SElbListener) GetProjectId ¶
func (self *SElbListener) GetProjectId() string
func (*SElbListener) GetScheduler ¶
func (self *SElbListener) GetScheduler() string
func (*SElbListener) GetStatus ¶
func (self *SElbListener) GetStatus() string
func (*SElbListener) GetStickySession ¶
func (self *SElbListener) GetStickySession() string
func (*SElbListener) GetStickySessionCookie ¶
func (self *SElbListener) GetStickySessionCookie() string
func (*SElbListener) GetStickySessionCookieTimeout ¶
func (self *SElbListener) GetStickySessionCookieTimeout() int
func (*SElbListener) GetStickySessionType ¶
func (self *SElbListener) GetStickySessionType() string
func (*SElbListener) GetTLSCipherPolicy ¶
func (self *SElbListener) GetTLSCipherPolicy() string
func (*SElbListener) GzipEnabled ¶
func (self *SElbListener) GzipEnabled() bool
func (*SElbListener) HTTP2Enabled ¶
func (self *SElbListener) HTTP2Enabled() bool
func (*SElbListener) IsEmulated ¶
func (self *SElbListener) IsEmulated() bool
func (*SElbListener) Refresh ¶
func (self *SElbListener) Refresh() error
func (*SElbListener) SetAcl ¶
func (listerner *SElbListener) SetAcl(ctx context.Context, opts *cloudprovider.ListenerAclOptions) error
func (*SElbListener) SetHealthCheck ¶
func (self *SElbListener) SetHealthCheck(ctx context.Context, opts *cloudprovider.ListenerHealthCheckOptions) error
func (*SElbListener) Start ¶
func (self *SElbListener) Start() error
func (*SElbListener) Stop ¶
func (self *SElbListener) Stop() error
func (*SElbListener) XForwardedForEnabled ¶
func (self *SElbListener) XForwardedForEnabled() bool
type SElbListenerPolicy ¶
type SElbListenerPolicy struct { multicloud.SResourceBase multicloud.SLoadbalancerRedirectBase HuaweiTags RedirectPoolID string `json:"redirect_pool_id"` RedirectListenerID *string `json:"redirect_listener_id"` Description string `json:"description"` AdminStateUp bool `json:"admin_state_up"` Rules []Rule `json:"rules"` TenantID string `json:"tenant_id"` ProjectID string `json:"project_id"` ListenerID string `json:"listener_id"` RedirectURL *string `json:"redirect_url"` ProvisioningStatus string `json:"provisioning_status"` Action string `json:"action"` Position int64 `json:"position"` ID string `json:"id"` Name string `json:"name"` // contains filtered or unexported fields }
func (*SElbListenerPolicy) Delete ¶
func (self *SElbListenerPolicy) Delete(ctx context.Context) error
func (*SElbListenerPolicy) GetBackendGroupId ¶
func (self *SElbListenerPolicy) GetBackendGroupId() string
func (*SElbListenerPolicy) GetCondition ¶
func (self *SElbListenerPolicy) GetCondition() string
func (*SElbListenerPolicy) GetDomain ¶
func (self *SElbListenerPolicy) GetDomain() string
func (*SElbListenerPolicy) GetGlobalId ¶
func (self *SElbListenerPolicy) GetGlobalId() string
func (*SElbListenerPolicy) GetId ¶
func (self *SElbListenerPolicy) GetId() string
func (*SElbListenerPolicy) GetName ¶
func (self *SElbListenerPolicy) GetName() string
func (*SElbListenerPolicy) GetPath ¶
func (self *SElbListenerPolicy) GetPath() string
func (*SElbListenerPolicy) GetProjectId ¶
func (self *SElbListenerPolicy) GetProjectId() string
func (*SElbListenerPolicy) GetRules ¶
func (self *SElbListenerPolicy) GetRules() ([]SElbListenerPolicyRule, error)
func (*SElbListenerPolicy) GetStatus ¶
func (self *SElbListenerPolicy) GetStatus() string
负载均衡没有启用禁用操作
func (*SElbListenerPolicy) IsDefault ¶
func (self *SElbListenerPolicy) IsDefault() bool
func (*SElbListenerPolicy) IsEmulated ¶
func (self *SElbListenerPolicy) IsEmulated() bool
func (*SElbListenerPolicy) Refresh ¶
func (self *SElbListenerPolicy) Refresh() error
type SElbListenerPolicyRule ¶
type SElbListenerPolicyRule struct { CompareType string `json:"compare_type"` ProvisioningStatus string `json:"provisioning_status"` AdminStateUp bool `json:"admin_state_up"` TenantID string `json:"tenant_id"` ProjectID string `json:"project_id"` Invert bool `json:"invert"` Value string `json:"value"` Key interface{} `json:"key"` Type string `json:"type"` ID string `json:"id"` // contains filtered or unexported fields }
type SEnterpriseProject ¶
type SEnterpriseProject struct { multicloud.SProjectBase HuaweiTags Id string Name string Description string Status int CreatedAt time.Time UpdatedAt time.Time }
func (*SEnterpriseProject) GetGlobalId ¶
func (ep *SEnterpriseProject) GetGlobalId() string
func (*SEnterpriseProject) GetId ¶
func (ep *SEnterpriseProject) GetId() string
func (*SEnterpriseProject) GetName ¶
func (ep *SEnterpriseProject) GetName() string
func (*SEnterpriseProject) GetStatus ¶
func (ep *SEnterpriseProject) GetStatus() string
type SEvent ¶
type SEvent struct { TraceId string Code string TraceName string ResourceType string ApiVersion string SourceIp string TraceType string ServiceType string EventType string ProjectId string Request string Response string TrackerName string TraceStatus string Time int64 ResourceId string ResourceName string User SUser RecordTime int64 }
func (*SEvent) GetAccount ¶
func (*SEvent) GetCreatedAt ¶
func (*SEvent) GetRequest ¶
func (event *SEvent) GetRequest() jsonutils.JSONObject
func (*SEvent) GetRequestId ¶
func (*SEvent) GetResourceType ¶
func (*SEvent) GetService ¶
type SFunction ¶
type SFunction struct { FuncUrn string `json:"func_urn"` FuncName string `json:"func_name"` DomainId string `json:"domain_id"` Namespace string `json:"namespace"` ProjectName string `json:"project_name"` Package string `json:"package"` Runtime string `json:"runtime"` Timeout int `json:"timeout"` Handler string `json:"handler"` MemorySize int `json:"memory_size"` CPU int `json:"cpu"` CodeType string `json:"code_type"` CodeFilename string `json:"code_filename"` CodeSize int `json:"code_size"` DomainNames string `json:"domain_names"` UserData string `json:"user_data"` Digest string `json:"digest"` Version string `json:"version"` ImageName string `json:"image_name"` Xrole string `json:"xrole"` AppXrole string `json:"app_xrole"` LastModified time.Time `json:"last_modified"` FuncCode struct { } `json:"func_code"` FuncCode0 struct { } `json:"FuncCode"` Concurrency int `json:"concurrency"` ConcurrentNum int `json:"concurrent_num"` StrategyConfig struct { Concurrency int `json:"concurrency"` ConcurrentNum int `json:"concurrent_num"` } `json:"strategy_config"` InitializerHandler string `json:"initializer_handler"` InitializerTimeout int `json:"initializer_timeout"` EnterpriseProjectId string `json:"enterprise_project_id"` FuncVpcId string `json:"func_vpc_id"` LongTime bool `json:"long_time"` LogConfig struct { GroupName string `json:"group_name"` GroupId string `json:"group_id"` StreamName string `json:"stream_name"` StreamId string `json:"stream_id"` SwitchTime int `json:"switch_time"` } `json:"log_config"` Type string `json:"type"` EnableCloudDebug string `json:"enable_cloud_debug"` EnableDynamicMemory bool `json:"enable_dynamic_memory"` CustomImage struct { } `json:"custom_image"` IsStatefulFunction bool `json:"is_stateful_function"` IsBridgeFunction bool `json:"is_bridge_function"` IsReturnStream bool `json:"is_return_stream"` EnableAuthInHeader bool `json:"enable_auth_in_header"` ReservedInstanceIdleMode bool `json:"reserved_instance_idle_mode"` EnableSnapshot bool `json:"enable_snapshot"` EphemeralStorage int `json:"ephemeral_storage"` EnableClassIsolation bool `json:"enable_class_isolation"` ResourceId string `json:"resource_id"` }
type SGaussNoSQLFlavor ¶
type SHost ¶
type SHost struct { multicloud.SHostBase // contains filtered or unexported fields }
func (*SHost) CreateVM ¶
func (self *SHost) CreateVM(opts *cloudprovider.SManagedVMCreateConfig) (cloudprovider.ICloudVM, error)
func (*SHost) GetAccessIp ¶
func (*SHost) GetAccessMac ¶
func (*SHost) GetCpuCount ¶
func (*SHost) GetCpuDesc ¶
func (*SHost) GetEnabled ¶
func (*SHost) GetGlobalId ¶
func (*SHost) GetHostStatus ¶
func (*SHost) GetHostType ¶
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(id string) (cloudprovider.ICloudVM, error)
func (*SHost) GetIsMaintenance ¶
func (*SHost) GetMemSizeMB ¶
func (*SHost) GetNodeCount ¶
func (*SHost) GetStorageSizeMB ¶
func (*SHost) GetStorageType ¶
func (*SHost) GetSysInfo ¶
func (self *SHost) GetSysInfo() jsonutils.JSONObject
func (*SHost) GetVersion ¶
func (*SHost) IsEmulated ¶
type SHuaweiClient ¶
type SHuaweiClient struct { *HuaweiClientConfig // contains filtered or unexported fields }
func NewHuaweiClient ¶
func NewHuaweiClient(cfg *HuaweiClientConfig) (*SHuaweiClient, error)
func (*SHuaweiClient) AddUserToGroup ¶
func (self *SHuaweiClient) AddUserToGroup(groupId, userId string) error
https://console.huaweicloud.com/apiexplorer/#/openapi/IAM/doc?api=KeystoneAddUserToGroup
func (*SHuaweiClient) AttachGroupCustomRole ¶
func (self *SHuaweiClient) AttachGroupCustomRole(groupId, roleId string) error
func (*SHuaweiClient) AttachGroupRole ¶
func (self *SHuaweiClient) AttachGroupRole(groupId, roleId string) error
func (*SHuaweiClient) CreateAKSK ¶
func (self *SHuaweiClient) CreateAKSK(id, name string) (*cloudprovider.SAccessKey, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/IAM/doc?api=CreatePermanentAccessKey
func (*SHuaweiClient) CreateClouduser ¶
func (self *SHuaweiClient) CreateClouduser(name, password, desc string) (*SClouduser, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/IAM/doc?api=CreateUser
func (*SHuaweiClient) CreateExterpriseProject ¶
func (self *SHuaweiClient) CreateExterpriseProject(name, desc string) (*SEnterpriseProject, error)
func (*SHuaweiClient) CreateGroup ¶
func (self *SHuaweiClient) CreateGroup(name, desc string) (*SCloudgroup, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/IAM/doc?api=KeystoneCreateGroup
func (*SHuaweiClient) CreateICloudgroup ¶
func (self *SHuaweiClient) CreateICloudgroup(name, desc string) (cloudprovider.ICloudgroup, error)
func (*SHuaweiClient) CreateIClouduser ¶
func (self *SHuaweiClient) CreateIClouduser(conf *cloudprovider.SClouduserCreateConfig) (cloudprovider.IClouduser, error)
func (*SHuaweiClient) CreateIProject ¶
func (self *SHuaweiClient) CreateIProject(name string) (cloudprovider.ICloudProject, error)
func (*SHuaweiClient) CreateSAMLProvider ¶
func (self *SHuaweiClient) CreateSAMLProvider(opts *cloudprovider.SAMLProviderCreateOptions) (*SAMLProvider, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/IAM/doc?api=KeystoneCreateIdentityProvider
func (*SHuaweiClient) DeleteAKSK ¶
func (self *SHuaweiClient) DeleteAKSK(accessKey string) error
https://console.huaweicloud.com/apiexplorer/#/openapi/IAM/doc?api=DeletePermanentAccessKey
func (*SHuaweiClient) DeleteClouduser ¶
func (self *SHuaweiClient) DeleteClouduser(id string) error
https://console.huaweicloud.com/apiexplorer/#/openapi/IAM/doc?api=KeystoneDeleteUser
func (*SHuaweiClient) DeleteGroup ¶
func (self *SHuaweiClient) DeleteGroup(id string) error
https://console.huaweicloud.com/apiexplorer/#/openapi/IAM/doc?api=KeystoneDeleteGroup
func (*SHuaweiClient) DeleteSAMLProvider ¶
func (self *SHuaweiClient) DeleteSAMLProvider(id string) error
https://console.huaweicloud.com/apiexplorer/#/openapi/IAM/doc?api=KeystoneDeleteIdentityProvider
func (*SHuaweiClient) DeleteSAMLProviderMapping ¶
func (self *SHuaweiClient) DeleteSAMLProviderMapping(id string) error
https://console.huaweicloud.com/apiexplorer/#/openapi/IAM/doc?api=KeystoneDeleteMapping
func (*SHuaweiClient) DeleteSAMLProviderProtocol ¶
func (self *SHuaweiClient) DeleteSAMLProviderProtocol(spId, id string) error
https://console.huaweicloud.com/apiexplorer/#/openapi/IAM/doc?api=KeystoneDeleteProtocol
func (*SHuaweiClient) DescribeUserDomains ¶
func (hc *SHuaweiClient) DescribeUserDomains(domain string, pageSize, pageNumber int) ([]SCdnDomain, int, error)
func (*SHuaweiClient) DetachGroupCustomRole ¶
func (self *SHuaweiClient) DetachGroupCustomRole(groupId, roleId string) error
func (*SHuaweiClient) DetachGroupRole ¶
func (self *SHuaweiClient) DetachGroupRole(groupId, roleId string) error
func (*SHuaweiClient) GetAKSK ¶
func (self *SHuaweiClient) GetAKSK(id string) ([]cloudprovider.SAccessKey, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/IAM/doc?api=ListPermanentAccessKeys
func (*SHuaweiClient) GetAccountId ¶
func (client *SHuaweiClient) GetAccountId() string
func (*SHuaweiClient) GetCDNDomainByName ¶
func (hc *SHuaweiClient) GetCDNDomainByName(name string) (*SCdnDomain, error)
func (*SHuaweiClient) GetCapabilities ¶
func (self *SHuaweiClient) GetCapabilities() []string
func (*SHuaweiClient) GetCdnDomain ¶
func (hc *SHuaweiClient) GetCdnDomain(domainID, epID string) (*SCdnDomain, error)
func (*SHuaweiClient) GetCdnDomains ¶
func (hc *SHuaweiClient) GetCdnDomains() ([]SCdnDomain, error)
func (*SHuaweiClient) GetCloudusers ¶
func (self *SHuaweiClient) GetCloudusers(name string) ([]SClouduser, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/IAM/doc?api=KeystoneListUsers
func (*SHuaweiClient) GetCustomRole ¶
func (self *SHuaweiClient) GetCustomRole(name string) (*SRole, error)
func (*SHuaweiClient) GetCustomRoles ¶
func (self *SHuaweiClient) GetCustomRoles() ([]SRole, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/IAM/doc?api=ListCustomPolicies
func (*SHuaweiClient) GetDomains ¶
func (self *SHuaweiClient) GetDomains() ([]SDomain, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/IAM/doc?api=KeystoneListAuthDomains
func (*SHuaweiClient) GetEnterpriseProjects ¶
func (self *SHuaweiClient) GetEnterpriseProjects() ([]SEnterpriseProject, error)
func (*SHuaweiClient) GetGroupRoles ¶
func (self *SHuaweiClient) GetGroupRoles(groupId string) ([]SRole, error)
func (*SHuaweiClient) GetGroupUsers ¶
func (self *SHuaweiClient) GetGroupUsers(groupId string) ([]SClouduser, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/IAM/doc?api=KeystoneListUsersForGroupByAdmin
func (*SHuaweiClient) GetGroups ¶
func (self *SHuaweiClient) GetGroups(domainId, name string) ([]SCloudgroup, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/IAM/doc?api=KeystoneListGroups
func (*SHuaweiClient) GetICloudCDNDomainByName ¶
func (hc *SHuaweiClient) GetICloudCDNDomainByName(name string) (cloudprovider.ICloudCDNDomain, error)
func (*SHuaweiClient) GetICloudCDNDomains ¶
func (hc *SHuaweiClient) GetICloudCDNDomains() ([]cloudprovider.ICloudCDNDomain, error)
func (*SHuaweiClient) GetICloudSAMLProviders ¶
func (self *SHuaweiClient) GetICloudSAMLProviders() ([]cloudprovider.ICloudSAMLProvider, error)
func (*SHuaweiClient) GetICloudgroupByName ¶
func (self *SHuaweiClient) GetICloudgroupByName(name string) (cloudprovider.ICloudgroup, error)
func (*SHuaweiClient) GetICloudgroups ¶
func (self *SHuaweiClient) GetICloudgroups() ([]cloudprovider.ICloudgroup, error)
func (*SHuaweiClient) GetIClouduserByName ¶
func (self *SHuaweiClient) GetIClouduserByName(name string) (cloudprovider.IClouduser, error)
func (*SHuaweiClient) GetICloudusers ¶
func (self *SHuaweiClient) GetICloudusers() ([]cloudprovider.IClouduser, error)
func (*SHuaweiClient) GetIProjects ¶
func (self *SHuaweiClient) GetIProjects() ([]cloudprovider.ICloudProject, error)
func (*SHuaweiClient) GetIRegionById ¶
func (self *SHuaweiClient) GetIRegionById(id string) (cloudprovider.ICloudRegion, error)
func (*SHuaweiClient) GetIRegions ¶
func (self *SHuaweiClient) GetIRegions() []cloudprovider.ICloudRegion
func (*SHuaweiClient) GetISSLCertificate ¶
func (self *SHuaweiClient) GetISSLCertificate(certId string) (cloudprovider.ICloudSSLCertificate, error)
func (*SHuaweiClient) GetISSLCertificates ¶
func (self *SHuaweiClient) GetISSLCertificates() ([]cloudprovider.ICloudSSLCertificate, error)
func (*SHuaweiClient) GetISystemCloudpolicies ¶
func (self *SHuaweiClient) GetISystemCloudpolicies() ([]cloudprovider.ICloudpolicy, error)
func (*SHuaweiClient) GetIamLoginUrl ¶
func (client *SHuaweiClient) GetIamLoginUrl() string
func (*SHuaweiClient) GetMetrics ¶
func (self *SHuaweiClient) GetMetrics(opts *cloudprovider.MetricListOptions) ([]cloudprovider.MetricValues, error)
func (*SHuaweiClient) GetMosProjectId ¶
func (self *SHuaweiClient) GetMosProjectId() string
obs 权限必须赋予到mos project之上
func (*SHuaweiClient) GetOrderResources ¶
func (self *SHuaweiClient) GetOrderResources() (map[string]SOrderResource, error)
func (*SHuaweiClient) GetOwnerId ¶
func (self *SHuaweiClient) GetOwnerId() (string, error)
owner id == domain_id == account id https://console.huaweicloud.com/apiexplorer/#/openapi/IAM/doc?api=ShowUser
func (*SHuaweiClient) GetProjectById ¶
func (self *SHuaweiClient) GetProjectById(projectId string) (SProject, error)
func (*SHuaweiClient) GetProjects ¶
func (self *SHuaweiClient) GetProjects() ([]SProject, error)
func (*SHuaweiClient) GetRegion ¶
func (self *SHuaweiClient) GetRegion(regionId string) *SRegion
func (*SHuaweiClient) GetRegions ¶
func (self *SHuaweiClient) GetRegions() []SRegion
func (*SHuaweiClient) GetRoles ¶
func (self *SHuaweiClient) GetRoles(domainId, name string) ([]SRole, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/IAM/doc?api=KeystoneListPermissions
func (*SHuaweiClient) GetSAMLProviderMetadata ¶
func (self *SHuaweiClient) GetSAMLProviderMetadata(id string) (*SAMLProviderMetadata, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/IAM/doc?api=ShowMetadata
func (*SHuaweiClient) GetSAMLProviderProtocols ¶
func (self *SHuaweiClient) GetSAMLProviderProtocols(id string) ([]SAMLProviderProtocol, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/IAM/doc?api=KeystoneShowProtocol
func (*SHuaweiClient) GetSSLCertificate ¶
func (r *SHuaweiClient) GetSSLCertificate(certId string) (*SSSLCertificate, error)
func (*SHuaweiClient) GetSSLCertificates ¶
func (r *SHuaweiClient) GetSSLCertificates() ([]SSSLCertificate, error)
func (*SHuaweiClient) GetSubAccounts ¶
func (self *SHuaweiClient) GetSubAccounts() ([]cloudprovider.SSubAccount, error)
func (*SHuaweiClient) GetUserId ¶
func (self *SHuaweiClient) GetUserId() (string, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/IAM/doc?api=ShowPermanentAccessKey
func (*SHuaweiClient) GetVersion ¶
func (self *SHuaweiClient) GetVersion() string
func (*SHuaweiClient) InitSAMLProviderMapping ¶
func (self *SHuaweiClient) InitSAMLProviderMapping(spId string) error
https://console.huaweicloud.com/apiexplorer/#/openapi/IAM/doc?api=KeystoneCreateMapping
func (*SHuaweiClient) KeystoneAssociateGroupWithDomainPermission ¶
func (self *SHuaweiClient) KeystoneAssociateGroupWithDomainPermission(domainId, groupId, roleId string) error
func (*SHuaweiClient) KeystoneAssociateGroupWithProjectPermission ¶
func (self *SHuaweiClient) KeystoneAssociateGroupWithProjectPermission(projectId, groupId, roleId string) error
func (*SHuaweiClient) KeystoneRemoveDomainPermissionFromGroup ¶
func (self *SHuaweiClient) KeystoneRemoveDomainPermissionFromGroup(domainId, groupId, roleId string) error
func (*SHuaweiClient) KeystoneRemoveProjectPermissionFromGroup ¶
func (self *SHuaweiClient) KeystoneRemoveProjectPermissionFromGroup(projectId, groupId, roleId string) error
func (*SHuaweiClient) ListSAMLProviderMappings ¶
func (self *SHuaweiClient) ListSAMLProviderMappings() ([]SAMLProviderMapping, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/IAM/doc?api=KeystoneListMappings
func (*SHuaweiClient) ListSAMLProviders ¶
func (self *SHuaweiClient) ListSAMLProviders() ([]SAMLProvider, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/IAM/doc?api=KeystoneListIdentityProviders
func (*SHuaweiClient) ListUserGroups ¶
func (self *SHuaweiClient) ListUserGroups(userId string) ([]SCloudgroup, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/IAM/doc?api=KeystoneListGroupsForUser
func (*SHuaweiClient) QueryAccountBalance ¶
func (self *SHuaweiClient) QueryAccountBalance() (*SBalance, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/BSS/doc?api=ShowCustomerAccountBalances
func (*SHuaweiClient) RemoveUserFromGroup ¶
func (self *SHuaweiClient) RemoveUserFromGroup(groupId, userId string) error
https://console.huaweicloud.com/apiexplorer/#/openapi/IAM/doc?api=KeystoneRemoveUserFromGroup
func (*SHuaweiClient) ResetClouduserPassword ¶
func (self *SHuaweiClient) ResetClouduserPassword(id, password string) error
https://console.huaweicloud.com/apiexplorer/#/openapi/IAM/doc?api=UpdateUser
func (*SHuaweiClient) UpdateSAMLProviderMetadata ¶
func (self *SHuaweiClient) UpdateSAMLProviderMetadata(id, metadata string) error
https://console.huaweicloud.com/apiexplorer/#/openapi/IAM/doc?api=CreateMetadata
type SImage ¶
type SImage struct { multicloud.SImageBase HuaweiTags Schema string `json:"schema"` MinDiskGB int64 `json:"min_disk"` CreatedAt time.Time `json:"created_at"` ImageSourceType string `json:"__image_source_type"` ContainerFormat string `json:"container_format"` File string `json:"file"` UpdatedAt time.Time `json:"updated_at"` Protected bool `json:"protected"` Checksum string `json:"checksum"` ID string `json:"id"` Isregistered string `json:"__isregistered"` MinRamMB int `json:"min_ram"` Lazyloading string `json:"__lazyloading"` Owner string `json:"owner"` OSType string `json:"__os_type"` Imagetype string `json:"__imagetype"` Visibility string `json:"visibility"` VirtualEnvType string `json:"virtual_env_type"` Platform string `json:"__platform"` SizeGB int `json:"size"` ImageSize int64 `json:"__image_size"` OSBit string `json:"__os_bit"` OSVersion string `json:"__os_version"` Name string `json:"name"` Self string `json:"self"` DiskFormat string `json:"disk_format"` Status string `json:"status"` SupportKVMFPGAType string `json:"__support_kvm_fpga_type"` SupportKVMNVMEHIGHIO string `json:"__support_nvme_highio"` SupportLargeMemory string `json:"__support_largememory"` SupportDiskIntensive string `json:"__support_diskintensive"` SupportHighPerformance string `json:"__support_highperformance"` SupportXENGPUType string `json:"__support_xen_gpu_type"` SupportKVMGPUType string `json:"__support_kvm_gpu_type"` SupportGPUT4 string `json:"__support_gpu_t4"` SupportKVMAscend310 string `json:"__support_kvm_ascend_310"` SupportArm string `json:"__support_arm"` // contains filtered or unexported fields }
func (*SImage) GetBios ¶
func (self *SImage) GetBios() cloudprovider.TBiosType
func (*SImage) GetCreatedAt ¶
func (*SImage) GetFullOsName ¶
func (*SImage) GetGlobalId ¶
func (*SImage) GetIStoragecache ¶
func (self *SImage) GetIStoragecache() cloudprovider.ICloudStoragecache
func (*SImage) GetImageFormat ¶
func (*SImage) GetImageStatus ¶
func (*SImage) GetImageType ¶
func (self *SImage) GetImageType() cloudprovider.TImageType
func (*SImage) GetMinOsDiskSizeGb ¶
func (*SImage) GetMinRamSizeMb ¶
func (*SImage) GetOsType ¶
func (self *SImage) GetOsType() cloudprovider.TOsType
func (*SImage) GetOsVersion ¶
func (*SImage) GetSizeByte ¶
type SInstance ¶
type SInstance struct { multicloud.SInstanceBase HuaweiTags ID string `json:"id"` Name string `json:"name"` Addresses map[string][]IpAddress `json:"addresses"` Flavor Flavor `json:"flavor"` AccessIPv4 string `json:"accessIPv4"` AccessIPv6 string `json:"accessIPv6"` Status string `json:"status"` Progress string `json:"progress"` HostID string `json:"hostId"` Image Image `json:"image"` Updated string `json:"updated"` Created time.Time `json:"created"` Metadata VMMetadata `json:"metadata"` Description string `json:"description"` Locked bool `json:"locked"` ConfigDrive string `json:"config_drive"` TenantID string `json:"tenant_id"` UserID string `json:"user_id"` KeyName string `json:"key_name"` OSExtendedVolumesVolumesAttached []OSExtendedVolumesVolumesAttached `json:"os-extended-volumes:volumes_attached"` OSEXTSTSTaskState string `json:"OS-EXT-STS:task_state"` OSEXTSTSPowerState int64 `json:"OS-EXT-STS:power_state"` OSEXTSTSVMState string `json:"OS-EXT-STS:vm_state"` OSEXTSRVATTRHost string `json:"OS-EXT-SRV-ATTR:host"` OSEXTSRVATTRInstanceName string `json:"OS-EXT-SRV-ATTR:instance_name"` OSEXTSRVATTRHypervisorHostname string `json:"OS-EXT-SRV-ATTR:hypervisor_hostname"` OSDCFDiskConfig string `json:"OS-DCF:diskConfig"` OSEXTAZAvailabilityZone string `json:"OS-EXT-AZ:availability_zone"` OSSchedulerHints OSSchedulerHints `json:"os:scheduler_hints"` OSEXTSRVATTRRootDeviceName string `json:"OS-EXT-SRV-ATTR:root_device_name"` OSEXTSRVATTRRamdiskID string `json:"OS-EXT-SRV-ATTR:ramdisk_id"` EnterpriseProjectID string `json:"enterprise_project_id"` OSEXTSRVATTRUserData string `json:"OS-EXT-SRV-ATTR:user_data"` OSSRVUSGLaunchedAt time.Time `json:"OS-SRV-USG:launched_at"` OSEXTSRVATTRKernelID string `json:"OS-EXT-SRV-ATTR:kernel_id"` OSEXTSRVATTRLaunchIndex int64 `json:"OS-EXT-SRV-ATTR:launch_index"` HostStatus string `json:"host_status"` OSEXTSRVATTRReservationID string `json:"OS-EXT-SRV-ATTR:reservation_id"` OSEXTSRVATTRHostname string `json:"OS-EXT-SRV-ATTR:hostname"` OSSRVUSGTerminatedAt time.Time `json:"OS-SRV-USG:terminated_at"` SysTags []SysTag `json:"sys_tags"` SecurityGroups []SecurityGroup `json:"security_groups"` EnterpriseProjectId string // contains filtered or unexported fields }
func (*SInstance) AttachDisk ¶
func (*SInstance) ChangeConfig ¶
func (self *SInstance) ChangeConfig(ctx context.Context, config *cloudprovider.SManagedVMChangeConfig) error
func (*SInstance) DeployVM ¶
func (self *SInstance) DeployVM(ctx context.Context, opts *cloudprovider.SInstanceDeployOptions) error
func (*SInstance) DetachDisk ¶
func (*SInstance) GetBillingType ¶
func (*SInstance) GetBios ¶
func (self *SInstance) GetBios() cloudprovider.TBiosType
func (*SInstance) GetBootOrder ¶
func (*SInstance) GetCreatedAt ¶
func (*SInstance) GetDescription ¶
func (*SInstance) GetExpiredAt ¶
func (*SInstance) GetFullOsName ¶
func (*SInstance) GetGlobalId ¶
func (*SInstance) GetHostname ¶
func (*SInstance) GetHypervisor ¶
func (*SInstance) GetIDisks ¶
func (self *SInstance) GetIDisks() ([]cloudprovider.ICloudDisk, error)
func (*SInstance) GetIHost ¶
func (self *SInstance) GetIHost() cloudprovider.ICloudHost
func (*SInstance) GetInstanceType ¶
func (*SInstance) GetMachine ¶
func (*SInstance) GetOsType ¶
func (self *SInstance) GetOsType() cloudprovider.TOsType
func (*SInstance) GetOsVersion ¶
func (*SInstance) GetPowerStates ¶
func (*SInstance) GetProjectId ¶
func (*SInstance) GetSecurityGroupIds ¶
func (*SInstance) GetVNCInfo ¶
func (self *SInstance) GetVNCInfo(input *cloudprovider.ServerVncInput) (*cloudprovider.ServerVncOutput, error)
func (*SInstance) GetVcpuCount ¶
func (*SInstance) GetVmemSizeMB ¶
func (*SInstance) NextDeviceName ¶
func (*SInstance) RebuildRoot ¶
func (self *SInstance) RebuildRoot(ctx context.Context, opts *cloudprovider.SManagedVMRebuildRootConfig) (string, error)
func (*SInstance) SaveImage ¶
func (self *SInstance) SaveImage(opts *cloudprovider.SaveImageOptions) (cloudprovider.ICloudImage, error)
func (*SInstance) SetSecurityGroups ¶
func (*SInstance) StopVM ¶
func (self *SInstance) StopVM(ctx context.Context, opts *cloudprovider.ServerStopOptions) error
func (*SInstance) UpdateUserData ¶
func (*SInstance) UpdateVM ¶
func (self *SInstance) UpdateVM(ctx context.Context, input cloudprovider.SInstanceUpdateOptions) error
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) GetSubAddress ¶
func (self *SInstanceNic) GetSubAddress() ([]string, error)
func (*SInstanceNic) InClassicNetwork ¶
func (self *SInstanceNic) InClassicNetwork() bool
type SInstanceType ¶
type SInstanceType struct { ID string `json:"id"` Name string `json:"name"` Vcpus string `json:"vcpus"` RamMB int `json:"ram"` // 内存大小 OSExtraSpecs OSExtraSpecs `json:"os_extra_specs"` // 扩展规格 }
type SLoadbalancer ¶
type SLoadbalancer struct { multicloud.SResourceBase HuaweiTags Description string `json:"description"` ProvisioningStatus string `json:"provisioning_status"` TenantId string `json:"tenant_id"` ProjectId string `json:"project_id"` EnterpriseProjectId string `json:"enterprise_project_id"` AdminStateUp bool `json:"admin_state_up"` Provider string `json:"provider"` Pools []Pool `json:"pools"` Listeners []Listener `json:"listeners"` VipPortId string `json:"vip_port_id"` OperatingStatus string `json:"operating_status"` VipAddress string `json:"vip_address"` VipSubnetId string `json:"vip_subnet_id"` Id string `json:"id"` Name string `json:"name"` VpcId string CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` Publicips []struct { PublicipId string PublicipAddress string IpVersion string } // contains filtered or unexported fields }
func (*SLoadbalancer) CreateHealthCheck ¶
func (self *SLoadbalancer) CreateHealthCheck(backendGroupId string, healthcheck *cloudprovider.SLoadbalancerHealthCheck) error
func (*SLoadbalancer) CreateILoadBalancerBackendGroup ¶
func (self *SLoadbalancer) CreateILoadBalancerBackendGroup(opts *cloudprovider.SLoadbalancerBackendGroup) (cloudprovider.ICloudLoadbalancerBackendGroup, error)
func (*SLoadbalancer) CreateILoadBalancerListener ¶
func (self *SLoadbalancer) CreateILoadBalancerListener(ctx context.Context, opts *cloudprovider.SLoadbalancerListenerCreateOptions) (cloudprovider.ICloudLoadbalancerListener, error)
func (*SLoadbalancer) Delete ¶
func (self *SLoadbalancer) Delete(ctx context.Context) error
https://console.huaweicloud.com/apiexplorer/#/openapi/ELB/doc?version=v3&api=DeleteLoadBalancer
func (*SLoadbalancer) GetAddress ¶
func (self *SLoadbalancer) GetAddress() string
func (*SLoadbalancer) GetAddressType ¶
func (self *SLoadbalancer) GetAddressType() string
todo: api.LB_ADDR_TYPE_INTERNET?
func (*SLoadbalancer) GetChargeType ¶
func (self *SLoadbalancer) GetChargeType() string
func (*SLoadbalancer) GetEgressMbps ¶
func (self *SLoadbalancer) GetEgressMbps() int
func (*SLoadbalancer) GetEip ¶
func (self *SLoadbalancer) GetEip() (*SEipAddress, error)
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)
https://console.huaweicloud.com/apiexplorer/#/openapi/ELB/doc?version=v3&api=ShowPool
func (*SLoadbalancer) GetILoadBalancerBackendGroups ¶
func (self *SLoadbalancer) GetILoadBalancerBackendGroups() ([]cloudprovider.ICloudLoadbalancerBackendGroup, error)
func (*SLoadbalancer) GetILoadBalancerListenerById ¶
func (self *SLoadbalancer) GetILoadBalancerListenerById(listenerId string) (cloudprovider.ICloudLoadbalancerListener, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/ELB/doc?version=v3&api=ShowListener
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) GetNetwork ¶
func (self *SLoadbalancer) GetNetwork() *SNetwork
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
func (*SLoadbalancer) Stop ¶
func (self *SLoadbalancer) Stop() error
type SModelartsDataPoints ¶
type SModelartsDataPoints struct { Timestamp int64 Unit string Statistics []ModelartsStatistics }
type SModelartsDimensions ¶
type SModelartsMetric ¶
type SModelartsMetric struct { Metric SModelartsMetricInfo `json:"metric"` Datapoints []SModelartsDataPoints `json:"dataPoints"` }
type SModelartsMetricInfo ¶
type SModelartsMetricInfo struct { Dimensions []SModelartsDimensions `json:"dimensions"` MetricName string Namespace string }
type SModelartsMetrics ¶
type SModelartsMetrics struct {
Metrics []SModelartsMetric `json:"metrics"`
}
type SModelartsNetworkSpce ¶
type SModelartsNetworkSpce struct {
Cidr string `json:"cidr"`
}
type SModelartsNetworkStatus ¶
type SModelartsNetworkStatus struct {
Phase string `json:"phase"`
}
type SModelartsPool ¶
type SModelartsPool struct { multicloud.SResourceBase Metadata SModelartsPoolMetadata `json:"metadata"` Spec SModelartsPoolSpec `json:"spec"` Status SModelartsPoolStatus `json:"status"` InstanceType string WorkType string // contains filtered or unexported fields }
func (*SModelartsPool) ChangeConfig ¶
func (self *SModelartsPool) ChangeConfig(opts *cloudprovider.ModelartsPoolChangeConfigOptions) error
func (*SModelartsPool) Delete ¶
func (self *SModelartsPool) Delete() error
func (*SModelartsPool) GetBillingType ¶
func (self *SModelartsPool) GetBillingType() string
func (*SModelartsPool) GetCreatedAt ¶
func (self *SModelartsPool) GetCreatedAt() time.Time
func (*SModelartsPool) GetExpiredAt ¶
func (self *SModelartsPool) GetExpiredAt() time.Time
func (*SModelartsPool) GetGlobalId ¶
func (self *SModelartsPool) GetGlobalId() string
func (*SModelartsPool) GetId ¶
func (self *SModelartsPool) GetId() string
func (*SModelartsPool) GetInstanceType ¶
func (self *SModelartsPool) GetInstanceType() string
func (*SModelartsPool) GetName ¶
func (self *SModelartsPool) GetName() string
func (*SModelartsPool) GetNodeCount ¶
func (self *SModelartsPool) GetNodeCount() int
func (*SModelartsPool) GetStatus ¶
func (self *SModelartsPool) GetStatus() string
func (*SModelartsPool) GetStatusMessage ¶
func (self *SModelartsPool) GetStatusMessage() string
func (*SModelartsPool) GetSysTags ¶
func (self *SModelartsPool) GetSysTags() map[string]string
func (*SModelartsPool) GetWorkType ¶
func (self *SModelartsPool) GetWorkType() string
func (*SModelartsPool) IsAutoRenew ¶
func (self *SModelartsPool) IsAutoRenew() bool
func (*SModelartsPool) IsEmulated ¶
func (self *SModelartsPool) IsEmulated() bool
func (*SModelartsPool) Refresh ¶
func (self *SModelartsPool) Refresh() error
func (*SModelartsPool) RefreshForCreate ¶
func (self *SModelartsPool) RefreshForCreate() error
func (*SModelartsPool) Renew ¶
func (self *SModelartsPool) Renew(bc billing.SBillingCycle) error
func (*SModelartsPool) SetAutoRenew ¶
func (self *SModelartsPool) SetAutoRenew(bc billing.SBillingCycle) error
type SModelartsPoolMetadata ¶
type SModelartsPoolMetadata struct { Name string `json:"name"` CreationTimestamp string `json:"creationTimestamp"` Labels SModelartsPoolMeatadataLabel Annotations SModelartsPoolMetadataAnnotations `json:"annotations"` }
type SModelartsPoolMetadataAnnotations ¶
type SModelartsPoolMetadataAnnotations struct { Describe string `json:"os.modelarts/description"` BillingType string `json:"os.modelarts/billing.mode"` BillingCycle string `json:"os.modelarts/period.num"` BillingPeriodType string `json:"os.modelarts/period.type"` BillingMod string `json:"os.modelarts/charging.mode"` BillingRenew string `json:"os.modelarts/auto.renew"` OrderId string `json:"os.modelarts/order.id"` }
type SModelartsPoolNetwork ¶
type SModelartsPoolNetwork struct { Metadata SModelartsPoolNetworkMetadata `json:"metadata"` Spec SModelartsNetworkSpce `json:"spec"` Status SModelartsNetworkStatus `json:"status"` }
type SModelartsPoolResource ¶
type SModelartsPoolResource struct { Flavor string `json:"flavor"` Count int `json:"count"` cloudprovider.Azs }
type SModelartsPoolSku ¶
type SModelartsPoolSku struct { multicloud.SResourceBase HuaweiTags Kind string `json:"kind"` Spec SModelartsResourceflavorsSpec `json:"spec"` Status SModelartsResourceflavorsStatus `json:"status"` MetaData SModelartsResourceflavorsMetadata `json:"metadata"` // contains filtered or unexported fields }
func (*SModelartsPoolSku) GetCpuArch ¶
func (self *SModelartsPoolSku) GetCpuArch() string
func (*SModelartsPoolSku) GetCpuCoreCount ¶
func (self *SModelartsPoolSku) GetCpuCoreCount() int
func (*SModelartsPoolSku) GetCreatedAt ¶
func (self *SModelartsPoolSku) GetCreatedAt() time.Time
func (*SModelartsPoolSku) GetGlobalId ¶
func (self *SModelartsPoolSku) GetGlobalId() string
func (*SModelartsPoolSku) GetGpuSize ¶
func (self *SModelartsPoolSku) GetGpuSize() int
func (*SModelartsPoolSku) GetGpuType ¶
func (self *SModelartsPoolSku) GetGpuType() string
func (*SModelartsPoolSku) GetId ¶
func (self *SModelartsPoolSku) GetId() string
func (*SModelartsPoolSku) GetMemorySizeMB ¶
func (self *SModelartsPoolSku) GetMemorySizeMB() int
func (*SModelartsPoolSku) GetName ¶
func (self *SModelartsPoolSku) GetName() string
func (*SModelartsPoolSku) GetNpuSize ¶
func (self *SModelartsPoolSku) GetNpuSize() int
func (*SModelartsPoolSku) GetNpuType ¶
func (self *SModelartsPoolSku) GetNpuType() string
func (*SModelartsPoolSku) GetPoolType ¶
func (self *SModelartsPoolSku) GetPoolType() string
func (*SModelartsPoolSku) GetProcessorType ¶
func (sku *SModelartsPoolSku) GetProcessorType() string
func (*SModelartsPoolSku) GetStatus ¶
func (self *SModelartsPoolSku) GetStatus() string
type SModelartsPoolSpec ¶
type SModelartsPoolSpec struct { Type string `json:"type"` Scope []string `json:"scope"` Resource []SModelartsPoolResource `json:"resources"` }
type SModelartsPoolStatus ¶
type SModelartsPoolStatus struct { Phase string `json:"phase"` Message string `json:"message"` Resource SNodeStatus `json:"resources"` }
type SModelartsResourceflavorsMetadata ¶
type SModelartsResourceflavorsMetadata struct {
Name string `json:"name"`
}
type SModelartsResourceflavorsSpec ¶
type SModelartsResourceflavorsSpec struct { BillingCode string `json:"billingCode"` BillingModes []int `json:"billingMods"` Cpu int `json:"cpu"` CpuArch string `json:"cpuArch"` Gpu SModelartsResourceflavorsGpuSpec `json:"gpu"` Npu SModelartsResourceflavorsGpuSpec `json:"npu"` Memory string `json:"memory"` Type string `json:"type"` }
type SModelartsResourceflavorsStatus ¶
type SModelartsResourceflavorsStatus struct {
Phase map[string]interface{} `json:"phase"`
}
type SNatDEntry ¶
type SNatDEntry struct { multicloud.SResourceBase HuaweiTags ID string `json:"id"` NatGatewayID string `json:"nat_gateway_id"` Protocol string `json:"protocol"` Status string `json:"status"` ExternalIP string `json:"floating_ip_address"` ExternalPort int `json:"external_service_port"` InternalIP string `json:"private_ip"` InternalPort int `json:"internal_service_port"` PortID string `json:"port_id"` AdminStateUp bool `json:"admin_state_up"` // contains filtered or unexported fields }
func (*SNatDEntry) Delete ¶
func (nat *SNatDEntry) Delete() error
func (*SNatDEntry) GetExternalIp ¶
func (nat *SNatDEntry) GetExternalIp() string
func (*SNatDEntry) GetExternalPort ¶
func (nat *SNatDEntry) GetExternalPort() int
func (*SNatDEntry) GetGlobalId ¶
func (nat *SNatDEntry) GetGlobalId() string
func (*SNatDEntry) GetId ¶
func (nat *SNatDEntry) GetId() string
func (*SNatDEntry) GetInternalIp ¶
func (nat *SNatDEntry) GetInternalIp() string
func (*SNatDEntry) GetInternalPort ¶
func (nat *SNatDEntry) GetInternalPort() int
func (*SNatDEntry) GetIpProtocol ¶
func (nat *SNatDEntry) GetIpProtocol() string
func (*SNatDEntry) GetName ¶
func (nat *SNatDEntry) GetName() string
func (*SNatDEntry) GetStatus ¶
func (nat *SNatDEntry) GetStatus() string
func (*SNatDEntry) Refresh ¶
func (nat *SNatDEntry) Refresh() error
type SNatGateway ¶
type SNatGateway struct { multicloud.SNatGatewayBase HuaweiTags ID string Name string Description string Spec string Status string InternalNetworkId string CreatedTime string `json:"created_at"` // contains filtered or unexported fields }
func (*SNatGateway) CreateINatDEntry ¶
func (gateway *SNatGateway) CreateINatDEntry(rule cloudprovider.SNatDRule) (cloudprovider.ICloudNatDEntry, error)
func (*SNatGateway) CreateINatSEntry ¶
func (gateway *SNatGateway) CreateINatSEntry(rule cloudprovider.SNatSRule) (cloudprovider.ICloudNatSEntry, error)
func (*SNatGateway) Delete ¶
func (self *SNatGateway) Delete() error
func (*SNatGateway) GetBillingType ¶
func (gateway *SNatGateway) GetBillingType() string
func (*SNatGateway) GetCreatedAt ¶
func (gateway *SNatGateway) GetCreatedAt() time.Time
func (*SNatGateway) GetDescription ¶
func (gateway *SNatGateway) GetDescription() string
func (*SNatGateway) GetExpiredAt ¶
func (gateway *SNatGateway) GetExpiredAt() time.Time
func (*SNatGateway) GetGlobalId ¶
func (gateway *SNatGateway) GetGlobalId() string
func (*SNatGateway) GetIEips ¶
func (gateway *SNatGateway) GetIEips() ([]cloudprovider.ICloudEIP, error)
func (*SNatGateway) GetINatDEntryByID ¶
func (gateway *SNatGateway) GetINatDEntryByID(id string) (cloudprovider.ICloudNatDEntry, error)
func (*SNatGateway) GetINatDTable ¶
func (gateway *SNatGateway) GetINatDTable() ([]cloudprovider.ICloudNatDEntry, error)
func (*SNatGateway) GetINatSEntryByID ¶
func (gateway *SNatGateway) GetINatSEntryByID(id string) (cloudprovider.ICloudNatSEntry, error)
func (*SNatGateway) GetINatSTable ¶
func (gateway *SNatGateway) GetINatSTable() ([]cloudprovider.ICloudNatSEntry, error)
func (*SNatGateway) GetINetworkId ¶
func (self *SNatGateway) GetINetworkId() string
func (*SNatGateway) GetId ¶
func (gateway *SNatGateway) GetId() string
func (*SNatGateway) GetName ¶
func (gateway *SNatGateway) GetName() string
func (*SNatGateway) GetNatSpec ¶
func (gateway *SNatGateway) GetNatSpec() string
func (*SNatGateway) GetStatus ¶
func (gateway *SNatGateway) GetStatus() string
func (*SNatGateway) Refresh ¶
func (self *SNatGateway) Refresh() error
type SNatSEntry ¶
type SNatSEntry struct { multicloud.SResourceBase HuaweiTags ID string `json:"id"` NatGatewayID string `json:"nat_gateway_id"` NetworkID string `json:"network_id"` SourceCIDR string `json:"cidr"` Status string `json:"status"` SNatIP string `json:"floating_ip_address"` AdminStateUp bool `json:"admin_state_up"` // contains filtered or unexported fields }
func (*SNatSEntry) Delete ¶
func (nat *SNatSEntry) Delete() error
func (*SNatSEntry) GetGlobalId ¶
func (nat *SNatSEntry) GetGlobalId() string
func (*SNatSEntry) GetIP ¶
func (nat *SNatSEntry) GetIP() string
func (*SNatSEntry) GetId ¶
func (nat *SNatSEntry) GetId() string
func (*SNatSEntry) GetName ¶
func (nat *SNatSEntry) GetName() string
func (*SNatSEntry) GetNetworkId ¶
func (nat *SNatSEntry) GetNetworkId() string
func (*SNatSEntry) GetSourceCIDR ¶
func (nat *SNatSEntry) GetSourceCIDR() string
func (*SNatSEntry) GetStatus ¶
func (nat *SNatSEntry) GetStatus() string
func (*SNatSEntry) Refresh ¶
func (nat *SNatSEntry) Refresh() error
type SNetwork ¶
type SNetwork struct { multicloud.SResourceBase HuaweiTags AvailabilityZone string `json:"availability_zone"` CIDR string `json:"cidr"` DHCPEnable bool `json:"dhcp_enable"` DNSList []string `json:"dnsList"` GatewayIP string `json:"gateway_ip"` ID string `json:"id"` Ipv6Enable bool `json:"ipv6_enable"` Name string `json:"name"` NeutronNetworkID string `json:"neutron_network_id"` NeutronSubnetID string `json:"neutron_subnet_id"` PrimaryDNS string `json:"primary_dns"` SecondaryDNS string `json:"secondary_dns"` Status string `json:"status"` VpcID string `json:"vpc_id"` // contains filtered or unexported fields }
https://support.huaweicloud.com/api-vpc/zh-cn_topic_0020090590.html
func (*SNetwork) GetAllocTimeoutSeconds ¶
func (*SNetwork) GetGateway ¶
func (*SNetwork) GetGlobalId ¶
func (*SNetwork) GetIWire ¶
func (self *SNetwork) GetIWire() cloudprovider.ICloudWire
func (*SNetwork) GetIpStart ¶
func (*SNetwork) GetIsPublic ¶
func (*SNetwork) GetProjectId ¶
func (*SNetwork) GetPublicScope ¶
func (self *SNetwork) GetPublicScope() rbacscope.TRbacScope
func (*SNetwork) GetServerType ¶
type SNodeFlavor ¶
type SNodeStatus ¶
type SNodeStatus struct { Creating []SNodeFlavor `json:"creating"` Available []SNodeFlavor `json:"available"` Abnormal []SNodeFlavor `json:"abnormal"` Deleting []SNodeFlavor `json:"deleting"` }
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) SetAcl ¶
func (o *SObject) SetAcl(aclStr cloudprovider.TBucketACLType) error
type SOrderResource ¶
type SProject ¶
type SProject struct { IsDomain bool Description string Enabled bool Id string ParentId string DomainId string Name string // contains filtered or unexported fields }
func (*SProject) GetRegionId ¶
type SRdsNetwork ¶
type SRegion ¶
type SRegion struct { multicloud.SRegion Description string Id string Locales Locales ParentRegionId string Type string // contains filtered or unexported fields }
func (*SRegion) AcceptVpcPeering ¶
https://console.huaweicloud.com/apiexplorer/#/openapi/VPC/doc?version=v2&api=AcceptVpcPeering
func (*SRegion) AddLoadBalancerBackend ¶
func (self *SRegion) AddLoadBalancerBackend(backendGroupId, subnetId, ipaddr string, port, weight int) (*SElbBackend, error)
https://support.huaweicloud.com/api-elb/zh-cn_topic_0096561556.html
func (*SRegion) AllocateEIP ¶
func (self *SRegion) AllocateEIP(opts *cloudprovider.SEip) (*SEipAddress, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/EIP/doc?version=v2&api=CreatePublicip
func (*SRegion) AssociateEip ¶
https://console.huaweicloud.com/apiexplorer/#/openapi/EIP/doc?version=v3&api=AssociatePublicips
func (*SRegion) AttachDisk ¶
https://console.huaweicloud.com/apiexplorer/#/openapi/ECS/doc?api=AttachServerVolume
func (*SRegion) BatchResetServersPassword ¶
https://console.huaweicloud.com/apiexplorer/#/openapi/ECS/doc?api=BatchResetServersPassword
func (*SRegion) ChangeDBInstanceConfig ¶
func (*SRegion) ChangeVMConfig ¶
https://console.huaweicloud.com/apiexplorer/#/openapi/ECS/doc?api=ResizeServer
func (*SRegion) CreateDBInstanceAccount ¶
func (*SRegion) CreateDBInstanceBackup ¶
func (*SRegion) CreateDBInstanceDatabase ¶
func (*SRegion) CreateDisk ¶
func (self *SRegion) CreateDisk(zoneId string, category string, name string, sizeGb int, snapshotId string, desc string, projectId string) (string, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/doc?api=CreateVolume
func (*SRegion) CreateEIP ¶
func (self *SRegion) CreateEIP(opts *cloudprovider.SEip) (cloudprovider.ICloudEIP, error)
https://support.huaweicloud.com/api-vpc/zh-cn_topic_0020090596.html size: 1Mbit/s~2000Mbit/s bgpType: 5_telcom,5_union,5_bgp,5_sbgp. 东北-大连:5_telcom、5_union 华南-广州:5_sbgp 华东-上海二:5_sbgp 华北-北京一:5_bgp、5_sbgp 亚太-香港:5_bgp
func (*SRegion) CreateElasticcache ¶
func (self *SRegion) CreateElasticcache(opts *cloudprovider.SCloudElasticCacheInput) (cloudprovider.ICloudElasticcache, error)
func (*SRegion) CreateIBucket ¶
func (*SRegion) CreateICloudAccessGroup ¶
func (self *SRegion) CreateICloudAccessGroup(opts *cloudprovider.SAccessGroup) (cloudprovider.ICloudAccessGroup, error)
func (*SRegion) CreateICloudFileSystem ¶
func (self *SRegion) CreateICloudFileSystem(opts *cloudprovider.FileSystemCraeteOptions) (cloudprovider.ICloudFileSystem, error)
func (*SRegion) CreateIDBInstance ¶
func (region *SRegion) CreateIDBInstance(desc *cloudprovider.SManagedDBInstanceCreateConfig) (cloudprovider.ICloudDBInstance, error)
func (*SRegion) CreateIElasticcaches ¶
func (self *SRegion) CreateIElasticcaches(opts *cloudprovider.SCloudElasticCacheInput) (cloudprovider.ICloudElasticcache, error)
func (*SRegion) CreateILoadBalancer ¶
func (self *SRegion) CreateILoadBalancer(loadbalancer *cloudprovider.SLoadbalancerCreateOptions) (cloudprovider.ICloudLoadbalancer, error)
func (*SRegion) CreateILoadBalancerAcl ¶
func (self *SRegion) CreateILoadBalancerAcl(acl *cloudprovider.SLoadbalancerAccessControlList) (cloudprovider.ICloudLoadbalancerAcl, error)
func (*SRegion) CreateILoadBalancerCertificate ¶
func (self *SRegion) CreateILoadBalancerCertificate(cert *cloudprovider.SLoadbalancerCertificate) (cloudprovider.ICloudLoadbalancerCertificate, error)
func (*SRegion) CreateIModelartsPool ¶
func (self *SRegion) CreateIModelartsPool(args *cloudprovider.ModelartsPoolCreateOption, callback func(id string)) (cloudprovider.ICloudModelartsPool, error)
func (*SRegion) CreateISecurityGroup ¶
func (self *SRegion) CreateISecurityGroup(opts *cloudprovider.SecurityGroupCreateInput) (cloudprovider.ICloudSecurityGroup, error)
func (*SRegion) CreateIVpc ¶
func (self *SRegion) CreateIVpc(opts *cloudprovider.VpcCreateOptions) (cloudprovider.ICloudVpc, error)
func (*SRegion) CreateInstance ¶
func (self *SRegion) CreateInstance(keypair, zoneId string, opts *cloudprovider.SManagedVMCreateConfig) (string, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/ECS/doc?api=CreateServers
func (*SRegion) CreateLoadBalancer ¶
func (self *SRegion) CreateLoadBalancer(opts *cloudprovider.SLoadbalancerCreateOptions) (*SLoadbalancer, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/ELB/doc?version=v3&api=CreateLoadBalancer
func (*SRegion) CreateLoadBalancerAcl ¶
func (self *SRegion) CreateLoadBalancerAcl(acl *cloudprovider.SLoadbalancerAccessControlList) (*SElbACL, error)
func (*SRegion) CreateLoadBalancerBackendGroup ¶
func (self *SRegion) CreateLoadBalancerBackendGroup(lbId string, opts *cloudprovider.SLoadbalancerBackendGroup) (*SElbBackendGroup, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/ELB/doc?version=v3&api=CreatePool
func (*SRegion) CreateLoadBalancerCertificate ¶
func (self *SRegion) CreateLoadBalancerCertificate(cert *cloudprovider.SLoadbalancerCertificate) (*SElbCert, error)
func (*SRegion) CreateLoadBalancerHealthCheck ¶
func (self *SRegion) CreateLoadBalancerHealthCheck(backendGroupId string, healthCheck *cloudprovider.SLoadbalancerHealthCheck) (SElbHealthCheck, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/ELB/doc?version=v3&api=CreateHealthMonitor
func (*SRegion) CreateLoadBalancerListener ¶
func (self *SRegion) CreateLoadBalancerListener(listener *cloudprovider.SLoadbalancerListenerCreateOptions, lbId string) (*SElbListener, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/ELB/doc?version=v3&api=CreateLoadBalancer
func (*SRegion) CreateLoadBalancerPolicy ¶
func (self *SRegion) CreateLoadBalancerPolicy(listenerID string, rule *cloudprovider.SLoadbalancerListenerRule) (*SElbListenerPolicy, error)
https://support.huaweicloud.com/api-elb/zh-cn_topic_0136295317.html
func (*SRegion) CreateNatDEntry ¶
func (region *SRegion) CreateNatDEntry(rule cloudprovider.SNatDRule, gatewayID string) (*SNatDEntry, error)
func (*SRegion) CreateNatGateway ¶
func (self *SRegion) CreateNatGateway(opts *cloudprovider.NatGatewayCreateOptions) (*SNatGateway, error)
func (*SRegion) CreateNatSEntry ¶
func (region *SRegion) CreateNatSEntry(rule cloudprovider.SNatSRule, gatewayId string) (*SNatSEntry, error)
func (*SRegion) CreateNetwork ¶
func (self *SRegion) CreateNetwork(vpcId string, opts *cloudprovider.SNetworkCreateOptions) (*SNetwork, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/VPC/doc?version=v2&api=ListSubnets
func (*SRegion) CreatePoolNetworks ¶
func (self *SRegion) CreatePoolNetworks(cidr string) (jsonutils.JSONObject, error)
func (*SRegion) CreatePublicipTag ¶
https://console.huaweicloud.com/apiexplorer/#/openapi/EIP/doc?version=v2&api=CreatePublicipTag
func (*SRegion) CreateRdsTags ¶
func (*SRegion) CreateSecurityGroup ¶
func (self *SRegion) CreateSecurityGroup(opts *cloudprovider.SecurityGroupCreateInput) (*SSecurityGroup, error)
func (*SRegion) CreateSecurityGroupRule ¶
func (self *SRegion) CreateSecurityGroupRule(groupId string, opts *cloudprovider.SecurityGroupRuleCreateOptions) (*SecurityGroupRule, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/VPC/doc?version=v3&api=CreateSecurityGroupRule
func (*SRegion) CreateServerTags ¶
key 相同时value不会替换 https://console.huaweicloud.com/apiexplorer/#/openapi/ECS/doc?api=BatchCreateServerTags
func (*SRegion) CreateSfsTurbo ¶
func (self *SRegion) CreateSfsTurbo(opts *cloudprovider.FileSystemCraeteOptions) (*SfsTurbo, error)
func (*SRegion) CreateSnapshot ¶
func (*SRegion) CreateVpcPeering ¶
func (self *SRegion) CreateVpcPeering(vpcId string, opts *cloudprovider.VpcPeeringConnectionCreateOptions) (*SVpcPeering, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/VPC/doc?version=v2&api=CreateVpcPeering
func (*SRegion) DeallocateEIP ¶
https://console.huaweicloud.com/apiexplorer/#/openapi/EIP/doc?version=v2&api=DeletePublicip
func (*SRegion) DeleteDBInstance ¶
func (*SRegion) DeleteDBInstanceAccount ¶
func (*SRegion) DeleteDBInstanceBackup ¶
func (*SRegion) DeleteDBInstanceDatabase ¶
func (*SRegion) DeleteDisk ¶
https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/doc?api=DeleteVolume
func (*SRegion) DeleteElbListener ¶
func (*SRegion) DeleteIBucket ¶
func (*SRegion) DeleteImage ¶
func (*SRegion) DeleteLoadBalancer ¶
https://console.huaweicloud.com/apiexplorer/#/openapi/ELB/doc?version=v3&api=DeleteLoadBalancer
func (*SRegion) DeleteLoadBalancerBackendGroup ¶
https://support.huaweicloud.com/api-elb/zh-cn_topic_0096561551.html
func (*SRegion) DeleteLoadBalancerPolicy ¶
func (*SRegion) DeleteLoadbalancerHealthCheck ¶
https://console.huaweicloud.com/apiexplorer/#/openapi/ELB/doc?version=v3&api=DeleteHealthMonitor
func (*SRegion) DeleteNatDEntry ¶
func (*SRegion) DeleteNatGateway ¶
func (*SRegion) DeleteNatSEntry ¶
func (*SRegion) DeletePool ¶
func (self *SRegion) DeletePool(poolName string) (jsonutils.JSONObject, error)
func (*SRegion) DeletePublicipTag ¶
https://console.huaweicloud.com/apiexplorer/#/openapi/EIP/doc?version=v2&api=DeletePublicipTag
func (*SRegion) DeleteRdsTags ¶
func (*SRegion) DeleteSecurityGroup ¶
func (*SRegion) DeleteSecurityGroupRule ¶
https://console.huaweicloud.com/apiexplorer/#/openapi/VPC/doc?version=v3&api=DeleteSecurityGroupRule
func (*SRegion) DeleteServerTags ¶
https://console.huaweicloud.com/apiexplorer/#/openapi/ECS/doc?api=BatchDeleteServerTags
func (*SRegion) DeleteSfsTurbo ¶
func (*SRegion) DeleteSnapshot ¶
func (*SRegion) DeleteVM ¶
https://console.huaweicloud.com/apiexplorer/#/openapi/ECS/doc?api=DeleteServers
func (*SRegion) DeleteVpc ¶
https://console.huaweicloud.com/apiexplorer/#/openapi/VPC/doc?version=v2&api=DeleteVpc
func (*SRegion) DeleteVpcPeering ¶
https://console.huaweicloud.com/apiexplorer/#/openapi/VPC/doc?version=v2&api=DeleteVpcPeering
func (*SRegion) DeployVM ¶
func (self *SRegion) DeployVM(instanceId string, opts *cloudprovider.SInstanceDeployOptions) error
func (*SRegion) DetachDisk ¶
https://console.huaweicloud.com/apiexplorer/#/openapi/ECS/doc?api=DetachServerVolume
func (*SRegion) DissociateEip ¶
https://console.huaweicloud.com/apiexplorer/#/openapi/EIP/doc?version=v3&api=DisassociatePublicips
func (*SRegion) GetAllSubTaskEntityIDs ¶
https://support.huaweicloud.com/api-ecs/zh-cn_topic_0022225398.html 数据结构 entities -> []job
func (*SRegion) GetCapabilities ¶
func (*SRegion) GetClient ¶
func (self *SRegion) GetClient() *SHuaweiClient
func (*SRegion) GetCloudEnv ¶
func (*SRegion) GetDBInstance ¶
func (region *SRegion) GetDBInstance(instanceId string) (*SDBInstance, error)
func (*SRegion) GetDBInstanceAccounts ¶
func (region *SRegion) GetDBInstanceAccounts(instanceId string) ([]SDBInstanceAccount, error)
func (*SRegion) GetDBInstanceBackups ¶
func (region *SRegion) GetDBInstanceBackups(instanceId, backupId string) ([]SDBInstanceBackup, error)
func (*SRegion) GetDBInstanceDatabases ¶
func (region *SRegion) GetDBInstanceDatabases(instanceId string) ([]SDBInstanceDatabase, error)
func (*SRegion) GetDBInstanceFlavors ¶
func (region *SRegion) GetDBInstanceFlavors(engine string, version string) ([]SDBInstanceFlavor, error)
func (*SRegion) GetDBInstanceJob ¶
func (self *SRegion) GetDBInstanceJob(id string) (*SDBInstanceJob, error)
func (*SRegion) GetDBInstanceParameters ¶
func (region *SRegion) GetDBInstanceParameters(dbinstanceId string) ([]SDBInstanceParameter, error)
func (*SRegion) GetDBInstancePrivileges ¶
func (region *SRegion) GetDBInstancePrivileges(instanceId string, username string) ([]SDatabasePrivilege, error)
func (*SRegion) GetDBInstances ¶
func (region *SRegion) GetDBInstances(id string) ([]SDBInstance, error)
func (*SRegion) GetDisk ¶
https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/doc?api=ShowVolume
func (*SRegion) GetDiskTypes ¶
func (*SRegion) GetDisks ¶
https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/doc?api=ListVolumes
func (*SRegion) GetEip ¶
func (self *SRegion) GetEip(eipId string) (*SEipAddress, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/EIP/doc?version=v3&api=ShowPublicip
func (*SRegion) GetEips ¶
func (self *SRegion) GetEips(portId string, addrs []string) ([]SEipAddress, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/EIP/doc?version=v3&api=ListPublicips
func (*SRegion) GetElasticCache ¶
func (self *SRegion) GetElasticCache(instanceId string) (*SElasticcache, error)
func (*SRegion) GetElasticCacheBackups ¶
func (self *SRegion) GetElasticCacheBackups(instanceId, startTime, endTime string) ([]SElasticcacheBackup, error)
func (*SRegion) GetElasticCacheParameters ¶
func (self *SRegion) GetElasticCacheParameters(instanceId string) ([]SElasticcacheParameter, error)
func (*SRegion) GetElasticCaches ¶
func (self *SRegion) GetElasticCaches() ([]SElasticcache, error)
func (*SRegion) GetElbBackend ¶
func (self *SRegion) GetElbBackend(pool, id string) (*SElbBackend, error)
func (*SRegion) GetGeographicInfo ¶
func (self *SRegion) GetGeographicInfo() cloudprovider.SGeographicInfo
func (*SRegion) GetGlobalId ¶
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) GetICloudAccessGroupById ¶
func (self *SRegion) GetICloudAccessGroupById(id string) (cloudprovider.ICloudAccessGroup, error)
func (*SRegion) GetICloudAccessGroups ¶
func (self *SRegion) GetICloudAccessGroups() ([]cloudprovider.ICloudAccessGroup, error)
func (*SRegion) GetICloudEvents ¶
func (self *SRegion) GetICloudEvents(start time.Time, end time.Time, withReadEvent bool) ([]cloudprovider.ICloudEvent, error)
func (*SRegion) GetICloudFileSystemById ¶
func (self *SRegion) GetICloudFileSystemById(id string) (cloudprovider.ICloudFileSystem, error)
func (*SRegion) GetICloudFileSystems ¶
func (self *SRegion) GetICloudFileSystems() ([]cloudprovider.ICloudFileSystem, error)
func (*SRegion) GetIDBInstanceBackupById ¶
func (region *SRegion) GetIDBInstanceBackupById(backupId string) (cloudprovider.ICloudDBInstanceBackup, error)
func (*SRegion) GetIDBInstanceBackups ¶
func (region *SRegion) GetIDBInstanceBackups() ([]cloudprovider.ICloudDBInstanceBackup, error)
func (*SRegion) GetIDBInstanceById ¶
func (region *SRegion) GetIDBInstanceById(instanceId string) (cloudprovider.ICloudDBInstance, error)
func (*SRegion) GetIDBInstances ¶
func (region *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) GetIElasticcacheById ¶
func (self *SRegion) GetIElasticcacheById(id string) (cloudprovider.ICloudElasticcache, error)
func (*SRegion) GetIElasticcaches ¶
func (self *SRegion) GetIElasticcaches() ([]cloudprovider.ICloudElasticcache, error)
func (*SRegion) GetIHostById ¶
func (self *SRegion) GetIHostById(id string) (cloudprovider.ICloudHost, error)
func (*SRegion) GetIHosts ¶
func (self *SRegion) GetIHosts() ([]cloudprovider.ICloudHost, error)
func (*SRegion) GetILoadBalancerAclById ¶
func (self *SRegion) GetILoadBalancerAclById(aclId string) (cloudprovider.ICloudLoadbalancerAcl, error)
func (*SRegion) GetILoadBalancerAcls ¶
func (self *SRegion) GetILoadBalancerAcls() ([]cloudprovider.ICloudLoadbalancerAcl, error)
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) GetIModelartsPoolById ¶
func (self *SRegion) GetIModelartsPoolById(poolId string) (cloudprovider.ICloudModelartsPool, error)
func (*SRegion) GetIModelartsPoolSku ¶
func (self *SRegion) GetIModelartsPoolSku() ([]cloudprovider.ICloudModelartsPoolSku, error)
func (*SRegion) GetIModelartsPools ¶
func (self *SRegion) GetIModelartsPools() ([]cloudprovider.ICloudModelartsPool, error)
func (*SRegion) GetINetworkInterfaces ¶
func (region *SRegion) GetINetworkInterfaces() ([]cloudprovider.ICloudNetworkInterface, error)
func (*SRegion) GetISecurityGroupById ¶
func (self *SRegion) GetISecurityGroupById(secgroupId string) (cloudprovider.ICloudSecurityGroup, error)
func (*SRegion) GetISecurityGroups ¶
func (self *SRegion) GetISecurityGroups() ([]cloudprovider.ICloudSecurityGroup, error)
func (*SRegion) GetISnapshotById ¶
func (self *SRegion) GetISnapshotById(id string) (cloudprovider.ICloudSnapshot, error)
func (*SRegion) GetISnapshots ¶
func (self *SRegion) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error)
func (*SRegion) GetIStorageById ¶
func (self *SRegion) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)
func (*SRegion) GetIStoragecacheById ¶
func (self *SRegion) GetIStoragecacheById(idstr 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) GetIVMById ¶
func (self *SRegion) GetIVMById(id string) (cloudprovider.ICloudVM, error)
func (*SRegion) GetIVpcById ¶
func (self *SRegion) GetIVpcById(id string) (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) GetImages ¶
https://console.huaweicloud.com/apiexplorer/#/openapi/IMS/doc?api=ListImages
func (*SRegion) GetInstance ¶
https://console.huaweicloud.com/apiexplorer/#/openapi/ECS/doc?api=ShowServer
func (*SRegion) GetInstancePortId ¶
func (*SRegion) GetInstanceTypes ¶
func (self *SRegion) GetInstanceTypes(zoneId string) ([]SInstanceType, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/ECS/doc?api=ListFlavors
func (*SRegion) GetInstanceVNCUrl ¶
func (self *SRegion) GetInstanceVNCUrl(instanceId string) (*cloudprovider.ServerVncOutput, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/ECS/doc?api=ShowServerRemoteConsole
func (*SRegion) GetInstances ¶
https://console.huaweicloud.com/apiexplorer/#/openapi/ECS/doc?api=ListServersDetails
func (*SRegion) GetKeypairs ¶
https://console.huaweicloud.com/apiexplorer/#/openapi/ECS/doc?api=NovaListKeypairs
func (*SRegion) GetLoadBalancerAcl ¶
func (*SRegion) GetLoadBalancerAcls ¶
https://support.huaweicloud.com/api-elb/zh-cn_topic_0096561582.html
func (*SRegion) GetLoadBalancerBackendGroup ¶
func (self *SRegion) GetLoadBalancerBackendGroup(backendGroupId string) (*SElbBackendGroup, error)
func (*SRegion) GetLoadBalancerBackendGroups ¶
func (self *SRegion) GetLoadBalancerBackendGroups(elbId string) ([]SElbBackendGroup, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/ELB/doc?version=v3&api=ListPools
func (*SRegion) GetLoadBalancerBackends ¶
func (self *SRegion) GetLoadBalancerBackends(backendGroupId string) ([]SElbBackend, error)
func (*SRegion) GetLoadBalancerCertificate ¶
func (*SRegion) GetLoadBalancerCertificates ¶
func (*SRegion) GetLoadBalancerHealthCheck ¶
func (self *SRegion) GetLoadBalancerHealthCheck(healthCheckId string) (*SElbHealthCheck, error)
func (*SRegion) GetLoadBalancerListeners ¶
func (self *SRegion) GetLoadBalancerListeners(lbId string) ([]SElbListener, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/ELB/doc?version=v3&api=ListListeners
func (*SRegion) GetLoadBalancerPolicies ¶
func (self *SRegion) GetLoadBalancerPolicies(listenerId string) ([]SElbListenerPolicy, error)
https://support.huaweicloud.com/api-elb/zh-cn_topic_0136295315.html
func (*SRegion) GetLoadBalancerPolicyRules ¶
func (self *SRegion) GetLoadBalancerPolicyRules(policyId string) ([]SElbListenerPolicyRule, error)
https://support.huaweicloud.com/api-elb/zh-cn_topic_0116649234.html
func (*SRegion) GetLoadBalancers ¶
func (self *SRegion) GetLoadBalancers() ([]SLoadbalancer, error)
func (*SRegion) GetLoadbalancer ¶
func (self *SRegion) GetLoadbalancer(id string) (*SLoadbalancer, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/ELB/doc?version=v3&api=ShowLoadBalancer
func (*SRegion) GetMatchInstanceTypes ¶
func (*SRegion) GetNatDEntryByID ¶
func (region *SRegion) GetNatDEntryByID(id string) (*SNatDEntry, error)
func (*SRegion) GetNatDTable ¶
func (region *SRegion) GetNatDTable(natId string) ([]SNatDEntry, error)
func (*SRegion) GetNatGateway ¶
func (self *SRegion) GetNatGateway(id string) (*SNatGateway, error)
func (*SRegion) GetNatGateways ¶
func (region *SRegion) GetNatGateways(vpcId, id string) ([]SNatGateway, error)
func (*SRegion) GetNatSEntryByID ¶
func (region *SRegion) GetNatSEntryByID(id string) (*SNatSEntry, error)
func (*SRegion) GetNatSTable ¶
func (region *SRegion) GetNatSTable(natId string) ([]SNatSEntry, error)
func (*SRegion) GetNetwork ¶
https://console.huaweicloud.com/apiexplorer/#/openapi/VPC/doc?version=v2&api=ShowSubnet
func (*SRegion) GetNetworks ¶
https://console.huaweicloud.com/apiexplorer/#/openapi/VPC/doc?version=v2&api=ListSubnets
func (*SRegion) GetPort ¶
https://console.huaweicloud.com/apiexplorer/#/openapi/VPC/doc?version=v2&api=ShowPort
func (*SRegion) GetPorts ¶
https://console.huaweicloud.com/apiexplorer/#/openapi/VPC/doc?version=v2&api=ListPorts
func (*SRegion) GetProvider ¶
func (*SRegion) GetRouteTable ¶
func (self *SRegion) GetRouteTable(id string) (*SRouteTable, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/VPC/doc?version=v2&api=ShowRouteTable
func (*SRegion) GetRouteTables ¶
func (self *SRegion) GetRouteTables(vpcId string) ([]SRouteTable, error)
func (*SRegion) GetSecurityGroup ¶
func (self *SRegion) GetSecurityGroup(id string) (*SSecurityGroup, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/VPC/doc?version=v3&api=ShowSecurityGroup
func (*SRegion) GetSecurityGroupRules ¶
func (self *SRegion) GetSecurityGroupRules(groupId string) ([]SecurityGroupRule, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/VPC/doc?version=v3&api=ListSecurityGroupRules
func (*SRegion) GetSecurityGroups ¶
func (self *SRegion) GetSecurityGroups(name string) ([]SSecurityGroup, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/VPC/doc?version=v3&api=ListSecurityGroups
func (*SRegion) GetSfsTurbos ¶
func (*SRegion) GetSkus ¶
func (self *SRegion) GetSkus(zoneId string) ([]cloudprovider.ICloudSku, error)
func (*SRegion) GetSnapshots ¶
func (*SRegion) GetSysDefaultSecgroupId ¶
func (*SRegion) GetTaskEntityID ¶
数据结构 entities -> job
func (*SRegion) GetTaskStatus ¶
func (*SRegion) GetVpc ¶
https://console.huaweicloud.com/apiexplorer/#/openapi/VPC/doc?version=v3&api=ShowVpc
func (*SRegion) GetVpcPeering ¶
func (self *SRegion) GetVpcPeering(id string) (*SVpcPeering, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/VPC/doc?version=v2&api=ListVpcPeerings
func (*SRegion) GetVpcPeerings ¶
func (self *SRegion) GetVpcPeerings(vpcId string) ([]SVpcPeering, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/VPC/doc?version=v2&api=ListVpcPeerings
func (*SRegion) GetVpcs ¶
https://console.huaweicloud.com/apiexplorer/#/openapi/VPC/doc?version=v3&api=ListVpcs
func (*SRegion) GetZones ¶
https://console.huaweicloud.com/apiexplorer/#/openapi/ECS/doc?api=NovaListAvailabilityZones
func (*SRegion) GrantDBInstancePrivilege ¶
func (*SRegion) ImportImageJob ¶
func (*SRegion) ImportKeypair ¶
https://console.huaweicloud.com/apiexplorer/#/openapi/ECS/doc?api=NovaCreateKeypair
func (*SRegion) ListFunctions ¶
func (*SRegion) ListGaussMySqlInstances ¶
func (self *SRegion) ListGaussMySqlInstances() ([]GaussDBMySQL, error)
func (*SRegion) ListGaussNoSQLFlavors ¶
func (self *SRegion) ListGaussNoSQLFlavors() ([]SGaussNoSQLFlavor, error)
func (*SRegion) ListGaussNoSQLInstances ¶
func (self *SRegion) ListGaussNoSQLInstances() ([]GaussDBNoSQL, error)
func (*SRegion) ModifyDBInstanceDesc ¶
func (*SRegion) ModifyDBInstanceName ¶
func (*SRegion) MonitorPool ¶
func (self *SRegion) MonitorPool(poolId string) (*SModelartsMetrics, error)
func (*SRegion) PublicConnectionAction ¶
func (*SRegion) RebootDBInstance ¶
func (*SRegion) RebuildRoot ¶
func (self *SRegion) RebuildRoot(instanceId string, opts *cloudprovider.SManagedVMRebuildRootConfig) (jsonutils.JSONObject, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/ECS/doc?api=ChangeServerOsWithoutCloudInit
func (*SRegion) RecoveryDBInstanceFromBackup ¶
func (*SRegion) RemoveLoadBalancerBackend ¶
func (*SRegion) RenewInstance ¶
func (self *SRegion) RenewInstance(instanceId string, bc billing.SBillingCycle) error
https://console.huaweicloud.com/apiexplorer/#/openapi/BSS/doc?api=RenewalResources
func (*SRegion) ResetDBInstanceAccountPassword ¶
func (*SRegion) ResizeDisk ¶
https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/doc?api=ResizeVolume
func (*SRegion) RevokeDBInstancePrivilege ¶
func (*SRegion) SaveImage ¶
func (self *SRegion) SaveImage(instanceId string, opts *cloudprovider.SaveImageOptions) (*SImage, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/IMS/doc?api=CreateImage
func (*SRegion) StartVM ¶
https://console.huaweicloud.com/apiexplorer/#/openapi/ECS/doc?api=NovaStartServer
func (*SRegion) StopVM ¶
https://console.huaweicloud.com/apiexplorer/#/openapi/ECS/doc?api=NovaStopServer
func (*SRegion) Update ¶
func (region *SRegion) Update(instanceId string, input cloudprovider.SDBInstanceUpdateOptions) error
func (*SRegion) UpdateEipBandwidth ¶
https://console.huaweicloud.com/apiexplorer/#/openapi/EIP/doc?version=v2&api=UpdateBandwidth
func (*SRegion) UpdateLoadBalancerHealthCheck ¶
func (self *SRegion) UpdateLoadBalancerHealthCheck(healthCheckId string, healthCheck *cloudprovider.SLoadbalancerHealthCheck) (SElbHealthCheck, error)
https://console.huaweicloud.com/apiexplorer/#/openapi/ELB/doc?version=v3&api=UpdateHealthMonitor
func (*SRegion) UpdateLoadBalancerListener ¶
func (self *SRegion) UpdateLoadBalancerListener(listenerId string, listener *cloudprovider.SLoadbalancerListenerCreateOptions) error
func (*SRegion) UpdateVM ¶
func (self *SRegion) UpdateVM(instanceId string, input cloudprovider.SInstanceUpdateOptions) error
https://console.huaweicloud.com/apiexplorer/#/openapi/ECS/doc?api=UpdateServer
type SRelatedInstance ¶
type SRole ¶
type SRole struct { DomainId string Flag string DescriptionCn string Catelog string Description string Id string DisplayName string Type string UpdatedTime string CreatedTime string Links SLink Policy jsonutils.JSONDict }
func (*SRole) GetDescription ¶
func (*SRole) GetGlobalId ¶
func (*SRole) GetPolicyType ¶
type SRoute ¶
type SRoute struct { multicloud.SResourceBase HuaweiTags Type string `json:"type"` Destination string `json:"destination"` Nexthop string `json:"nexthop"` Description string `json:"description,omitempty"` }
func (*SRoute) GetGlobalId ¶
func (*SRoute) GetNextHop ¶
func (*SRoute) GetNextHopType ¶
type SRouteTable ¶
type SRouteTable struct { multicloud.SResourceBase HuaweiTags Id string `json:"id"` Name string `json:"name"` Routes []SRoute `json:"routes"` Subnets []Subnet `json:"subnets"` VpcId string `json:"vpc_id"` Default bool `json:"default"` TenantId string `json:"tenant_id"` // contains filtered or unexported fields }
func (*SRouteTable) CreateRoute ¶
func (self *SRouteTable) CreateRoute(route cloudprovider.RouteSet) error
https://console.huaweicloud.com/apiexplorer/#/openapi/VPC/doc?version=v2&api=CreateRouteTable
func (*SRouteTable) GetAssociations ¶
func (self *SRouteTable) GetAssociations() []cloudprovider.RouteTableAssociation
func (*SRouteTable) GetDescription ¶
func (self *SRouteTable) GetDescription() string
func (*SRouteTable) GetGlobalId ¶
func (self *SRouteTable) GetGlobalId() string
func (*SRouteTable) GetIRoutes ¶
func (self *SRouteTable) GetIRoutes() ([]cloudprovider.ICloudRoute, error)
func (*SRouteTable) GetId ¶
func (self *SRouteTable) GetId() string
func (*SRouteTable) GetName ¶
func (self *SRouteTable) GetName() string
func (*SRouteTable) GetRegionId ¶
func (self *SRouteTable) GetRegionId() string
func (*SRouteTable) GetStatus ¶
func (self *SRouteTable) GetStatus() string
func (*SRouteTable) GetType ¶
func (self *SRouteTable) GetType() cloudprovider.RouteTableType
func (*SRouteTable) GetVpcId ¶
func (self *SRouteTable) GetVpcId() string
func (*SRouteTable) Refresh ¶
func (self *SRouteTable) Refresh() error
func (*SRouteTable) RemoveRoute ¶
func (self *SRouteTable) RemoveRoute(route cloudprovider.RouteSet) error
func (*SRouteTable) UpdateRoute ¶
func (self *SRouteTable) UpdateRoute(route cloudprovider.RouteSet) error
type SSSLCertificate ¶
type SSSLCertificate struct { multicloud.SVirtualResourceBase HuaweiTags Id string // 证书ID Name string // 证书名称 Domain string // 证书绑定的域名 Sans string // 证书的SAN(Subject Alternative Name)扩展属性,表示证书关联的其他域名、IP地址等 SignatureAlgorithm string // 证书签名算法 DeploySupport bool // 是否支持部署 Type string // 证书类型 取值如下: DV_SSL_CERT、DV_SSL_CERT_BASIC、EV_SSL_CERT、EV_SSL_CERT_PRO、OV_SSL_CERT、OV_SSL_CERT_PRO Brand string // 证书品牌 取值如下:GLOBALSIGN、SYMANTEC、GEOTRUST、CFCA //ExpireTime time.Time // 证书过期时间 ExpireTime string // 证书过期时间 DomainType string // 域名类型。取值如下: SINGLE_DOMAIN:单域名 WILDCARD:通配符 MULTI_DOMAIN:多域名 ValidityPeriod int // 证书有效期,单位为月 Status string // 证书状态。取值如下: PAID:证书已支付;待申请证书 ISSUED:证书已签发 CHECKING:证书申请审核中 CANCELCHECKING:取消证书申请审核中 UNPASSED:证书申请未通过 EXPIRED:证书已过期 REVOKING:证书吊销申请审核中 CANCLEREVOKING:证书取消吊销申请审核中 REVOKED:证书已吊销 UPLOAD:证书托管中 SUPPLEMENTCHECKING:多域名证书新增附加域名审核中 CANCELSUPPLEMENTING:取消新增附加域名审核中 DomainCount int // 证书绑定的域名数量 WildcardCount int // 证书绑定的通配符域名数量 Description string // 证书描述 EnterpriseProjectId string // 企业项目ID 默认为“0” Certificate string `json:"certificate"` // 证书内容 PrivateKey string `json:"private_key"` // 证书私钥 // contains filtered or unexported fields }
func (*SSSLCertificate) GetCert ¶
func (s *SSSLCertificate) GetCert() string
func (*SSSLCertificate) GetCity ¶
func (s *SSSLCertificate) GetCity() string
func (*SSSLCertificate) GetCommon ¶
func (s *SSSLCertificate) GetCommon() string
func (*SSSLCertificate) GetCountry ¶
func (s *SSSLCertificate) GetCountry() string
func (*SSSLCertificate) GetDetails ¶
func (s *SSSLCertificate) GetDetails() (*SSSLCertificate, error)
func (*SSSLCertificate) GetEndDate ¶
func (s *SSSLCertificate) GetEndDate() time.Time
func (*SSSLCertificate) GetExpired ¶
func (s *SSSLCertificate) GetExpired() bool
func (*SSSLCertificate) GetFingerprint ¶
func (s *SSSLCertificate) GetFingerprint() string
func (*SSSLCertificate) GetGlobalId ¶
func (s *SSSLCertificate) GetGlobalId() string
func (*SSSLCertificate) GetId ¶
func (s *SSSLCertificate) GetId() string
func (*SSSLCertificate) GetIsUpload ¶
func (s *SSSLCertificate) GetIsUpload() bool
func (*SSSLCertificate) GetIssuer ¶
func (s *SSSLCertificate) GetIssuer() string
func (*SSSLCertificate) GetKey ¶
func (s *SSSLCertificate) GetKey() string
func (*SSSLCertificate) GetName ¶
func (s *SSSLCertificate) GetName() string
func (*SSSLCertificate) GetOrgName ¶
func (s *SSSLCertificate) GetOrgName() string
func (*SSSLCertificate) GetProvince ¶
func (s *SSSLCertificate) GetProvince() string
func (*SSSLCertificate) GetSans ¶
func (s *SSSLCertificate) GetSans() string
func (*SSSLCertificate) GetStartDate ¶
func (s *SSSLCertificate) GetStartDate() time.Time
func (*SSSLCertificate) GetStatus ¶
func (s *SSSLCertificate) GetStatus() string
type SSecurityGroup ¶
type SSecurityGroup struct { multicloud.SSecurityGroup HuaweiTags Id string `json:"id"` Name string `json:"name"` Description string `json:"description"` VpcId string `json:"vpc_id"` EnterpriseProjectId string `json:"enterprise_project_id "` SecurityGroupRules []SecurityGroupRule `json:"security_group_rules"` // contains filtered or unexported fields }
func (*SSecurityGroup) CreateRule ¶
func (self *SSecurityGroup) CreateRule(opts *cloudprovider.SecurityGroupRuleCreateOptions) (cloudprovider.ISecurityGroupRule, error)
func (*SSecurityGroup) Delete ¶
func (self *SSecurityGroup) Delete() error
func (*SSecurityGroup) GetDescription ¶
func (self *SSecurityGroup) GetDescription() string
func (*SSecurityGroup) GetGlobalId ¶
func (self *SSecurityGroup) GetGlobalId() string
func (*SSecurityGroup) GetId ¶
func (self *SSecurityGroup) GetId() string
func (*SSecurityGroup) GetName ¶
func (self *SSecurityGroup) GetName() string
func (*SSecurityGroup) GetProjectId ¶
func (self *SSecurityGroup) GetProjectId() string
func (*SSecurityGroup) GetRules ¶
func (self *SSecurityGroup) GetRules() ([]cloudprovider.ISecurityGroupRule, error)
func (*SSecurityGroup) GetStatus ¶
func (self *SSecurityGroup) GetStatus() string
func (*SSecurityGroup) GetVpcId ¶
func (self *SSecurityGroup) GetVpcId() string
func (*SSecurityGroup) Refresh ¶
func (self *SSecurityGroup) Refresh() error
type SSnapshot ¶
type SSnapshot struct { multicloud.SResourceBase HuaweiTags Metadata Metadata `json:"metadata"` CreatedAt string `json:"created_at"` Description string `json:"description"` ID string `json:"id"` Name string `json:"name"` OSExtendedSnapshotAttributesProgress string `json:"os-extended-snapshot-attributes:progress"` OSExtendedSnapshotAttributesProjectID string `json:"os-extended-snapshot-attributes:project_id"` Size int32 `json:"size"` // GB Status string `json:"status"` UpdatedAt string `json:"updated_at"` VolumeID string `json:"volume_id"` // contains filtered or unexported fields }
func (*SSnapshot) GetDiskType ¶
func (*SSnapshot) GetGlobalId ¶
func (*SSnapshot) GetProjectId ¶
func (*SSnapshot) IsEmulated ¶
type SStorage ¶
type SStorage struct { multicloud.SStorageBase HuaweiTags // contains filtered or unexported fields }
func (*SStorage) CreateIDisk ¶
func (self *SStorage) CreateIDisk(conf *cloudprovider.DiskCreateConfig) (cloudprovider.ICloudDisk, error)
func (*SStorage) GetCapacityMB ¶
func (*SStorage) GetCapacityUsedMB ¶
func (*SStorage) GetEnabled ¶
func (*SStorage) GetGlobalId ¶
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) GetMediumType ¶
func (*SStorage) GetMountPoint ¶
func (*SStorage) GetStorageConf ¶
func (self *SStorage) GetStorageConf() jsonutils.JSONObject
func (*SStorage) GetStorageType ¶
func (*SStorage) IsEmulated ¶
func (*SStorage) IsSysDiskStore ¶
type SStoragecache ¶
type SStoragecache struct { multicloud.SResourceBase HuaweiTags // 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 SVpc ¶
type SVpc struct { multicloud.SVpc HuaweiTags ID string `json:"id"` Name string `json:"name"` CIDR string `json:"cidr"` Status string `json:"status"` EnterpriseProjectID string `json:"enterprise_project_id"` // contains filtered or unexported fields }
https://support.huaweicloud.com/api-vpc/zh-cn_topic_0020090625.html
func (*SVpc) AcceptICloudVpcPeeringConnection ¶
func (*SVpc) CreateICloudVpcPeeringConnection ¶
func (self *SVpc) CreateICloudVpcPeeringConnection(opts *cloudprovider.VpcPeeringConnectionCreateOptions) (cloudprovider.ICloudVpcPeeringConnection, error)
func (*SVpc) CreateINatGateway ¶
func (self *SVpc) CreateINatGateway(opts *cloudprovider.NatGatewayCreateOptions) (cloudprovider.ICloudNatGateway, error)
func (*SVpc) GetAuthorityOwnerId ¶
func (*SVpc) GetCidrBlock ¶
func (*SVpc) GetGlobalId ¶
func (*SVpc) GetICloudAccepterVpcPeeringConnections ¶
func (self *SVpc) GetICloudAccepterVpcPeeringConnections() ([]cloudprovider.ICloudVpcPeeringConnection, error)
func (*SVpc) GetICloudVpcPeeringConnectionById ¶
func (self *SVpc) GetICloudVpcPeeringConnectionById(id string) (cloudprovider.ICloudVpcPeeringConnection, error)
func (*SVpc) GetICloudVpcPeeringConnections ¶
func (self *SVpc) GetICloudVpcPeeringConnections() ([]cloudprovider.ICloudVpcPeeringConnection, error)
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) GetIsDefault ¶
func (*SVpc) GetRegion ¶
func (self *SVpc) GetRegion() cloudprovider.ICloudRegion
type SVpcPeering ¶
type SVpcPeering struct { multicloud.SResourceBase HuaweiTags RequestVpcInfo RequestVpcInfo `json:"request_vpc_info"` AcceptVpcInfo AcceptVpcInfo `json:"accept_vpc_info"` Name string `json:"name"` ID string `json:"id"` Status string `json:"status"` // contains filtered or unexported fields }
func (*SVpcPeering) Delete ¶
func (self *SVpcPeering) Delete() error
func (*SVpcPeering) GetEnabled ¶
func (self *SVpcPeering) GetEnabled() bool
func (*SVpcPeering) GetGlobalId ¶
func (self *SVpcPeering) GetGlobalId() string
func (*SVpcPeering) GetId ¶
func (self *SVpcPeering) GetId() string
func (*SVpcPeering) GetName ¶
func (self *SVpcPeering) GetName() string
func (*SVpcPeering) GetPeerAccountId ¶
func (self *SVpcPeering) GetPeerAccountId() string
func (*SVpcPeering) GetPeerVpcId ¶
func (self *SVpcPeering) GetPeerVpcId() string
func (*SVpcPeering) GetStatus ¶
func (self *SVpcPeering) GetStatus() string
func (*SVpcPeering) GetVpcId ¶
func (self *SVpcPeering) GetVpcId() string
func (*SVpcPeering) Refresh ¶
func (self *SVpcPeering) Refresh() error
type SWire ¶
type SWire struct { multicloud.SResourceBase HuaweiTags // contains filtered or unexported fields }
华为云的子网有点特殊。子网在整个region可用。
func (*SWire) CreateINetwork ¶
func (self *SWire) CreateINetwork(opts *cloudprovider.SNetworkCreateOptions) (cloudprovider.ICloudNetwork, error)
func (*SWire) GetBandwidth ¶
func (*SWire) GetGlobalId ¶
func (*SWire) GetINetworkById ¶
func (self *SWire) GetINetworkById(id 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) IsEmulated ¶
type SZone ¶
type SZone struct { multicloud.SResourceBase HuaweiTags ZoneState ZoneState `json:"zoneState"` ZoneName string `json:"zoneName"` // contains filtered or unexported fields }
func (*SZone) GetGlobalId ¶
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) IsEmulated ¶
type SecurityGroup ¶
type SecurityGroupRule ¶
type SecurityGroupRule struct { Direction string Ethertype string Id string Description string PortRangeMax int64 PortRangeMin int64 Protocol string RemoteGroupId string RemoteIPPrefix string SecurityGroupId string TenantId string Priority int // contains filtered or unexported fields }
func (*SecurityGroupRule) Delete ¶
func (self *SecurityGroupRule) Delete() error
func (*SecurityGroupRule) GetAction ¶
func (self *SecurityGroupRule) GetAction() secrules.TSecurityRuleAction
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 ¶
func (self *SecurityGroupRule) Update(opts *cloudprovider.SecurityGroupRuleUpdateOptions) error
type SfsTurbo ¶
type SfsTurbo struct { multicloud.SNasBase HuaweiTags EnterpriseProjectId string Actions []string AvailCapacity float64 AvailabilityZone string AzName string CreatedAt time.Time CryptKeyId string ExpandType string ExportLocation string Id string Name string PayModel string Region string SecurityGroupId string Size float64 Status string SubStatus string SubnetId string VpcId string Description string // contains filtered or unexported fields }
func (*SfsTurbo) CreateMountTarget ¶
func (self *SfsTurbo) CreateMountTarget(opts *cloudprovider.SMountTargetCreateOptions) (cloudprovider.ICloudMountTarget, error)
func (*SfsTurbo) GetBillingType ¶
func (*SfsTurbo) GetCapacityGb ¶
func (*SfsTurbo) GetCreatedAt ¶
func (*SfsTurbo) GetFileSystemType ¶
func (*SfsTurbo) GetGlobalId ¶
func (*SfsTurbo) GetMountTargetCountLimit ¶
func (*SfsTurbo) GetMountTargets ¶
func (self *SfsTurbo) GetMountTargets() ([]cloudprovider.ICloudMountTarget, error)
func (*SfsTurbo) GetProtocol ¶
func (*SfsTurbo) GetStorageType ¶
func (*SfsTurbo) GetUsedCapacityGb ¶
type SnapshotStatusType ¶
type SnapshotStatusType string
const ( SnapshotStatusCreating SnapshotStatusType = "creating" SnapshotStatusAvailable SnapshotStatusType = "available" // 云硬盘快照创建成功,可以使用。 SnapshotStatusError SnapshotStatusType = "error" // 云硬盘快照在创建过程中出现错误。 SnapshotStatusDeleting SnapshotStatusType = "deleting" // 云硬盘快照处于正在删除的过程中。 SnapshotStatusErrorDeleting SnapshotStatusType = "error_deleting" // 云硬盘快照在删除过程中出现错误 SnapshotStatusRollbacking SnapshotStatusType = "rollbacking" // 云硬盘快照处于正在回滚数据的过程中。 SnapshotStatusBackingUp SnapshotStatusType = "backing-up" // 通过快照创建备份,快照状态就会变为backing-up )
type StickySession ¶
type VMMetadata ¶
type VMMetadata struct { MeteringImageID string `json:"metering.image_id"` MeteringImagetype string `json:"metering.imagetype"` MeteringOrderId string `json:"metering.order_id"` MeteringResourcespeccode string `json:"metering.resourcespeccode"` ImageName string `json:"image_name"` OSBit string `json:"os_bit"` VpcID string `json:"vpc_id"` MeteringResourcetype string `json:"metering.resourcetype"` CascadedInstanceExtrainfo string `json:"cascaded.instance_extrainfo"` OSType string `json:"os_type"` ChargingMode string `json:"charging_mode"` }
type VolumeImageMetadata ¶
type VolumeImageMetadata struct { QuickStart string `json:"__quick_start"` ContainerFormat string `json:"container_format"` MinRAM string `json:"min_ram"` ImageName string `json:"image_name"` ImageID string `json:"image_id"` OSType string `json:"__os_type"` OSFeatureList string `json:"__os_feature_list"` MinDisk string `json:"min_disk"` SupportKVM string `json:"__support_kvm"` VirtualEnvType string `json:"virtual_env_type"` SizeGB string `json:"size"` OSVersion string `json:"__os_version"` OSBit string `json:"__os_bit"` SupportKVMHi1822Hiovs string `json:"__support_kvm_hi1822_hiovs"` SupportXen string `json:"__support_xen"` Description string `json:"__description"` Imagetype string `json:"__imagetype"` DiskFormat string `json:"disk_format"` ImageSourceType string `json:"__image_source_type"` Checksum string `json:"checksum"` Isregistered string `json:"__isregistered"` HwVifMultiqueueEnabled string `json:"hw_vif_multiqueue_enabled"` Platform string `json:"__platform"` }
Source Files ¶
- bucket.go
- cdn.go
- cloudgroup.go
- clouduser.go
- consts.go
- dbinstance.go
- dbinstance_account.go
- dbinstance_backup.go
- dbinstance_database.go
- dbinstance_parameter.go
- dbinstance_privilege.go
- disk.go
- disktype.go
- doc.go
- domain.go
- eip.go
- elasticcache_account.go
- elasticcache_acl.go
- elasticcache_backup.go
- elasticcache_instance.go
- elasticcache_parameter.go
- enterpriseprojects.go
- functiongraph.go
- gaussdb_mysql.go
- gaussdb_nosql.go
- host.go
- huawei.go
- image.go
- instance.go
- instancenic.go
- instancetype.go
- keypair.go
- latitud_and_longitude.go
- loadbalancer.go
- loadbalancer_acl.go
- loadbalancer_backend.go
- loadbalancer_backendgroup.go
- loadbalancer_cert.go
- loadbalancer_healthcheck.go
- loadbalancer_listener.go
- loadbalancer_listener_rule.go
- modelarts_pool.go
- modelarts_pool_sku.go
- monitor.go
- natdtable.go
- natgateway.go
- natstable.go
- network.go
- object.go
- order.go
- port.go
- project.go
- region.go
- roles.go
- routetables.go
- saml_provider.go
- secgrouprule.go
- securitygroup.go
- sfs-turbo.go
- snapshot.go
- sslcertificate.go
- storage.go
- storagecache.go
- tag_base.go
- task.go
- traces.go
- vpc.go
- vpc_peering.go
- wire.go
- zone.go