Documentation ¶
Index ¶
- Variables
- type HuaweiClientError
- type IRequestHook
- type SAMLProviderManager
- type SAMLProviderMappingManager
- type SBandwidthManager
- type SBaseManager
- type SBatchQueryMetricDataInput
- type SCloudEyeManager
- type SCredentialManager
- type SDBInstanceBackupManager
- type SDBInstanceDatastoreManager
- type SDBInstanceFlavorManager
- type SDBInstanceJobManager
- type SDBInstanceManager
- func (self *SDBInstanceManager) Get(id string, querys map[string]string) (jsonutils.JSONObject, error)
- func (self *SDBInstanceManager) ListAccounts(queries map[string]string) (*responses.ListResult, error)
- func (self *SDBInstanceManager) ListDatabases(queries map[string]string) (*responses.ListResult, error)
- func (self *SDBInstanceManager) ListParameters(queries map[string]string) (*responses.ListResult, error)
- func (self *SDBInstanceManager) ListPrivileges(queries map[string]string) (*responses.ListResult, error)
- type SDBInstanceStorageManager
- type SDatapoint
- type SDcsAvailableZoneManager
- type SDiskManager
- type SDomainManager
- type SEipManager
- type SElasticcacheManager
- func (self *SElasticcacheManager) ChangeInstanceSpec(instanceId string, specCode string, newCapacity int64) (jsonutils.JSONObject, error)
- func (self *SElasticcacheManager) Flush(instanceId string) (jsonutils.JSONObject, error)
- func (self *SElasticcacheManager) ListBackups(queries map[string]string) (*responses.ListResult, error)
- func (self *SElasticcacheManager) ListParameters(queries map[string]string) (*responses.ListResult, error)
- func (self *SElasticcacheManager) Restart(instanceId string) (jsonutils.JSONObject, error)
- func (self *SElasticcacheManager) RestoreInstance(instanceId string, backupId string) (jsonutils.JSONObject, error)
- type SElbBackendGroupManager
- type SElbBackendManager
- type SElbCertificatesManager
- type SElbHealthCheckManager
- type SElbL7policiesManager
- type SElbListenersManager
- type SElbPoliciesManager
- type SElbWhitelistManager
- type SEndpointManager
- type SEnterpriseProjectManager
- type SFlavorManager
- type SGroupManager
- type SImageManager
- type SInterfaceManager
- type SJobManager
- type SKeypairManager
- type SLoadbalancerManager
- type SManagerContext
- type SMetric
- type SMetricData
- type SMetricDimension
- type SMetricMeta
- type SNatDRuleManager
- type SNatGatewayManager
- type SNatSRuleManager
- type SPortManager
- type SProjectManager
- type SQuotaManager
- type SRegionManager
- type SResourceManager
- func (self *SResourceManager) AsyncCreate(params jsonutils.JSONObject) (string, error)
- func (self *SResourceManager) Create(params jsonutils.JSONObject) (jsonutils.JSONObject, error)
- func (self *SResourceManager) CreateInContext(ctx manager.IManagerContext, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
- func (self *SResourceManager) CreateInContextWithSpec(ctx manager.IManagerContext, spec string, params jsonutils.JSONObject, ...) (jsonutils.JSONObject, error)
- func (self *SResourceManager) Delete(id string, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
- func (self *SResourceManager) DeleteInContext(ctx manager.IManagerContext, id string, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
- func (self *SResourceManager) DeleteInContextWithSpec(ctx manager.IManagerContext, id string, spec string, queries map[string]string, ...) (jsonutils.JSONObject, error)
- func (self *SResourceManager) Get(id string, queries map[string]string) (jsonutils.JSONObject, error)
- func (self *SResourceManager) GetColumns() []string
- func (self *SResourceManager) GetEndpoint() string
- func (self *SResourceManager) GetInContext(ctx manager.IManagerContext, id string, queries map[string]string) (jsonutils.JSONObject, error)
- func (self *SResourceManager) GetInContextWithSpec(ctx manager.IManagerContext, id string, spec string, queries map[string]string, ...) (jsonutils.JSONObject, error)
- func (self *SResourceManager) Init() error
- func (self *SResourceManager) KeyString() string
- func (self *SResourceManager) List(queries map[string]string) (*responses.ListResult, error)
- func (self *SResourceManager) ListInContext(ctx manager.IManagerContext, queries map[string]string) (*responses.ListResult, error)
- func (self *SResourceManager) ListInContextWithSpec(ctx manager.IManagerContext, spec string, queries map[string]string, ...) (*responses.ListResult, error)
- func (self *SResourceManager) Patch(id string, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
- func (self *SResourceManager) PatchInContext(ctx manager.IManagerContext, id string, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
- func (self *SResourceManager) PatchInContextWithSpec(ctx manager.IManagerContext, id string, spec string, ...) (jsonutils.JSONObject, error)
- func (self *SResourceManager) PerformAction(action string, id string, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
- func (self *SResourceManager) PerformAction2(action string, id string, params jsonutils.JSONObject, responseKey string) (jsonutils.JSONObject, error)
- func (self *SResourceManager) ServiceType() string
- func (self *SResourceManager) SetDomainId(domainId string)
- func (self *SResourceManager) SetVersion(v string)
- func (self *SResourceManager) Update(id string, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
- func (self *SResourceManager) UpdateInContext(ctx manager.IManagerContext, id string, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
- func (self *SResourceManager) UpdateInContextWithSpec(ctx manager.IManagerContext, id string, spec string, ...) (jsonutils.JSONObject, error)
- func (self *SResourceManager) Version() string
- type SRoleManager
- type SSecgroupRuleManager
- type SSecurityGroupManager
- type SServerManager
- type SServiceManager
- type SSnapshotManager
- type SSubnetManager
- type STraceManager
- type SUserManager
- func (self *SUserManager) Delete(id string) (jsonutils.JSONObject, error)
- func (self *SUserManager) List(querys map[string]string) (*responses.ListResult, error)
- func (self *SUserManager) ListGroups(userId string) (*responses.ListResult, error)
- func (self *SUserManager) ResetPassword(id, password string) error
- type SVpcManager
- type SVpcPeeringManager
- type SVpcRouteManager
- type SZoneManager
- type ServiceNameType
- type SfsTurboManager
Constants ¶
This section is empty.
Variables ¶
var ThrottlingLock = sThrottlingThreshold{/* contains filtered or unexported fields */}
Functions ¶
This section is empty.
Types ¶
type HuaweiClientError ¶
type HuaweiClientError struct { Code int Errorcode []string Details string ErrorCode string // contains filtered or unexported fields }
func (*HuaweiClientError) Error ¶
func (ce *HuaweiClientError) Error() string
func (*HuaweiClientError) ParseErrorFromJsonResponse ¶
func (ce *HuaweiClientError) ParseErrorFromJsonResponse(statusCode int, status string, body jsonutils.JSONObject) error
type IRequestHook ¶
type SAMLProviderManager ¶
type SAMLProviderManager struct {
SResourceManager
}
func NewSAMLProviderManager ¶
func NewSAMLProviderManager(cfg manager.IManagerConfig) *SAMLProviderManager
type SAMLProviderMappingManager ¶
type SAMLProviderMappingManager struct {
SResourceManager
}
func NewSAMLProviderMappingManager ¶
func NewSAMLProviderMappingManager(cfg manager.IManagerConfig) *SAMLProviderMappingManager
type SBandwidthManager ¶
type SBandwidthManager struct {
SResourceManager
}
func NewBandwidthManager ¶
func NewBandwidthManager(cfg manager.IManagerConfig) *SBandwidthManager
type SBaseManager ¶
type SBaseManager struct {
// contains filtered or unexported fields
}
func NewBaseManager ¶
func NewBaseManager(cfg manager.IManagerConfig) SBaseManager
func NewBaseManager2 ¶
func NewBaseManager2(cfg manager.IManagerConfig, requesthk IRequestHook) SBaseManager
func (*SBaseManager) GetColumns ¶
func (self *SBaseManager) GetColumns() []string
func (*SBaseManager) SetHttpClient ¶
func (self *SBaseManager) SetHttpClient(httpClient *http.Client)
type SCloudEyeManager ¶
type SCloudEyeManager struct {
SResourceManager
}
func NewCloudEyeManager ¶
func NewCloudEyeManager(cfg manager.IManagerConfig) *SCloudEyeManager
func (*SCloudEyeManager) GetMetricsData ¶
func (ces *SCloudEyeManager) GetMetricsData(metrics []SMetricMeta, since time.Time, until time.Time) ([]SMetricData, error)
func (*SCloudEyeManager) ListMetrics ¶
func (ces *SCloudEyeManager) ListMetrics() ([]SMetricMeta, error)
type SCredentialManager ¶
type SCredentialManager struct {
SResourceManager
}
func NewCredentialManager ¶
func NewCredentialManager(cfg manager.IManagerConfig) *SCredentialManager
type SDBInstanceBackupManager ¶
type SDBInstanceBackupManager struct {
SResourceManager
}
func NewDBInstanceBackupManager ¶
func NewDBInstanceBackupManager(cfg manager.IManagerConfig) *SDBInstanceBackupManager
type SDBInstanceDatastoreManager ¶
type SDBInstanceDatastoreManager struct {
SResourceManager
}
func NewDBInstanceDatastoreManager ¶
func NewDBInstanceDatastoreManager(cfg manager.IManagerConfig) *SDBInstanceDatastoreManager
type SDBInstanceFlavorManager ¶
type SDBInstanceFlavorManager struct {
SResourceManager
}
func NewDBInstanceFlavorManager ¶
func NewDBInstanceFlavorManager(cfg manager.IManagerConfig) *SDBInstanceFlavorManager
type SDBInstanceJobManager ¶
type SDBInstanceJobManager struct {
SResourceManager
}
func NewDBInstanceJobManager ¶
func NewDBInstanceJobManager(cfg manager.IManagerConfig) *SDBInstanceJobManager
func (*SDBInstanceJobManager) Get ¶
func (self *SDBInstanceJobManager) Get(id string, querys map[string]string) (jsonutils.JSONObject, error)
type SDBInstanceManager ¶
type SDBInstanceManager struct {
SResourceManager
}
func NewDBInstanceManager ¶
func NewDBInstanceManager(cfg manager.IManagerConfig) *SDBInstanceManager
func (*SDBInstanceManager) Get ¶
func (self *SDBInstanceManager) Get(id string, querys map[string]string) (jsonutils.JSONObject, error)
func (*SDBInstanceManager) ListAccounts ¶
func (self *SDBInstanceManager) ListAccounts(queries map[string]string) (*responses.ListResult, error)
func (*SDBInstanceManager) ListDatabases ¶
func (self *SDBInstanceManager) ListDatabases(queries map[string]string) (*responses.ListResult, error)
func (*SDBInstanceManager) ListParameters ¶
func (self *SDBInstanceManager) ListParameters(queries map[string]string) (*responses.ListResult, error)
func (*SDBInstanceManager) ListPrivileges ¶
func (self *SDBInstanceManager) ListPrivileges(queries map[string]string) (*responses.ListResult, error)
type SDBInstanceStorageManager ¶
type SDBInstanceStorageManager struct {
SResourceManager
}
func NewDBInstanceStorageManager ¶
func NewDBInstanceStorageManager(cfg manager.IManagerConfig) *SDBInstanceStorageManager
type SDatapoint ¶
type SDcsAvailableZoneManager ¶
type SDcsAvailableZoneManager struct {
SResourceManager
}
func NewDcsAvailableZoneManager ¶
func NewDcsAvailableZoneManager(cfg manager.IManagerConfig) *SDcsAvailableZoneManager
type SDiskManager ¶
type SDiskManager struct {
SResourceManager
}
func NewDiskManager ¶
func NewDiskManager(cfg manager.IManagerConfig) *SDiskManager
func (*SDiskManager) AsyncCreate ¶
func (self *SDiskManager) AsyncCreate(params jsonutils.JSONObject) (string, error)
func (*SDiskManager) GetDiskTypes ¶
func (self *SDiskManager) GetDiskTypes() (*responses.ListResult, error)
func (*SDiskManager) List ¶
func (self *SDiskManager) List(querys map[string]string) (*responses.ListResult, error)
type SDomainManager ¶
type SDomainManager struct {
SResourceManager
}
func NewDomainManager ¶
func NewDomainManager(cfg manager.IManagerConfig) *SDomainManager
func (*SDomainManager) AddRole ¶
func (manager *SDomainManager) AddRole(domainId string, groupId, roleId string) error
func (*SDomainManager) DeleteRole ¶
func (manager *SDomainManager) DeleteRole(domainId string, groupId, roleId string) error
func (*SDomainManager) ListRoles ¶
func (manager *SDomainManager) ListRoles(domainId string, groupId string) (*responses.ListResult, error)
type SEipManager ¶
type SEipManager struct {
SResourceManager
}
func NewEipManager ¶
func NewEipManager(cfg manager.IManagerConfig) *SEipManager
func (*SEipManager) Delete ¶
func (self *SEipManager) Delete(id string, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
type SElasticcacheManager ¶
type SElasticcacheManager struct {
SResourceManager
}
func NewElasticcacheManager ¶
func NewElasticcacheManager(cfg manager.IManagerConfig) *SElasticcacheManager
func (*SElasticcacheManager) ChangeInstanceSpec ¶
func (self *SElasticcacheManager) ChangeInstanceSpec(instanceId string, specCode string, newCapacity int64) (jsonutils.JSONObject, error)
https://support.huaweicloud.com/api-dcs/dcs-zh-api-180423024.html
func (*SElasticcacheManager) Flush ¶
func (self *SElasticcacheManager) Flush(instanceId string) (jsonutils.JSONObject, error)
当前版本,只有DCS2.0实例支持清空数据功能,即flush操作。
func (*SElasticcacheManager) ListBackups ¶
func (self *SElasticcacheManager) ListBackups(queries map[string]string) (*responses.ListResult, error)
https://support.huaweicloud.com/api-dcs/dcs-zh-api-180423035.html
func (*SElasticcacheManager) ListParameters ¶
func (self *SElasticcacheManager) ListParameters(queries map[string]string) (*responses.ListResult, error)
https://support.huaweicloud.com/api-dcs/dcs-zh-api-180423027.html
func (*SElasticcacheManager) Restart ¶
func (self *SElasticcacheManager) Restart(instanceId string) (jsonutils.JSONObject, error)
func (*SElasticcacheManager) RestoreInstance ¶
func (self *SElasticcacheManager) RestoreInstance(instanceId string, backupId string) (jsonutils.JSONObject, error)
https://support.huaweicloud.com/api-dcs/dcs-zh-api-180423034.html
type SElbBackendGroupManager ¶
type SElbBackendGroupManager struct {
SResourceManager
}
func NewElbBackendGroupManager ¶
func NewElbBackendGroupManager(cfg manager.IManagerConfig) *SElbBackendGroupManager
type SElbBackendManager ¶
type SElbBackendManager struct {
SResourceManager
}
func NewElbBackendManager ¶
func NewElbBackendManager(cfg manager.IManagerConfig) *SElbBackendManager
func (*SElbBackendManager) SetBackendGroupId ¶
func (self *SElbBackendManager) SetBackendGroupId(lbgId string) error
type SElbCertificatesManager ¶
type SElbCertificatesManager struct {
SResourceManager
}
func NewElbCertificatesManager ¶
func NewElbCertificatesManager(cfg manager.IManagerConfig) *SElbCertificatesManager
type SElbHealthCheckManager ¶
type SElbHealthCheckManager struct {
SResourceManager
}
func NewElbHealthCheckManager ¶
func NewElbHealthCheckManager(cfg manager.IManagerConfig) *SElbHealthCheckManager
func (*SElbHealthCheckManager) Delete ¶
func (self *SElbHealthCheckManager) Delete(id string, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
type SElbL7policiesManager ¶
type SElbL7policiesManager struct {
SResourceManager
}
func NewElbL7policiesManager ¶
func NewElbL7policiesManager(cfg manager.IManagerConfig) *SElbL7policiesManager
type SElbListenersManager ¶
type SElbListenersManager struct {
SResourceManager
}
func NewElbListenersManager ¶
func NewElbListenersManager(cfg manager.IManagerConfig) *SElbListenersManager
type SElbPoliciesManager ¶
type SElbPoliciesManager struct {
SResourceManager
}
func NewElbPoliciesManager ¶
func NewElbPoliciesManager(cfg manager.IManagerConfig) *SElbPoliciesManager
func (*SElbPoliciesManager) SetL7policyId ¶
func (self *SElbPoliciesManager) SetL7policyId(lbpId string) error
type SElbWhitelistManager ¶
type SElbWhitelistManager struct {
SResourceManager
}
func NewElbWhitelistManager ¶
func NewElbWhitelistManager(cfg manager.IManagerConfig) *SElbWhitelistManager
type SEndpointManager ¶
type SEndpointManager struct {
SResourceManager
}
func NewEndpointManager ¶
func NewEndpointManager(cfg manager.IManagerConfig) *SEndpointManager
type SEnterpriseProjectManager ¶
type SEnterpriseProjectManager struct {
SResourceManager
}
func NewEnterpriseProjectManager ¶
func NewEnterpriseProjectManager(cfg manager.IManagerConfig) *SEnterpriseProjectManager
type SFlavorManager ¶
type SFlavorManager struct {
SResourceManager
}
func NewFlavorManager ¶
func NewFlavorManager(cfg manager.IManagerConfig) *SFlavorManager
type SGroupManager ¶
type SGroupManager struct {
SResourceManager
}
func NewGroupManager ¶
func NewGroupManager(cfg manager.IManagerConfig) *SGroupManager
type SImageManager ¶
type SImageManager struct {
SResourceManager
}
func NewImageManager ¶
func NewImageManager(cfg manager.IManagerConfig) *SImageManager
func NewOpenstackImageManager ¶
func NewOpenstackImageManager(cfg manager.IManagerConfig) *SImageManager
https://support.huaweicloud.com/api-ims/zh-cn_topic_0020092108.html 删除image只能用这个manager
func (*SImageManager) Get ¶
func (self *SImageManager) Get(id string, querys map[string]string) (jsonutils.JSONObject, error)
https://support.huaweicloud.com/api-ims/zh-cn_topic_0020091566.html
type SInterfaceManager ¶
type SInterfaceManager struct {
SResourceManager
}
func NewInterfaceManager ¶
func NewInterfaceManager(cfg manager.IManagerConfig) *SInterfaceManager
不建议使用
type SJobManager ¶
type SJobManager struct {
SResourceManager
}
func NewJobManager ¶
func NewJobManager(cfg manager.IManagerConfig) *SJobManager
func (*SJobManager) Get ¶
func (self *SJobManager) Get(id string, querys map[string]string) (jsonutils.JSONObject, error)
func (*SJobManager) List ¶
func (self *SJobManager) List(querys map[string]string) (*responses.ListResult, error)
type SKeypairManager ¶
type SKeypairManager struct {
SResourceManager
}
func NewKeypairManager ¶
func NewKeypairManager(cfg manager.IManagerConfig) *SKeypairManager
type SLoadbalancerManager ¶
type SLoadbalancerManager struct {
SResourceManager
}
func NewLoadbalancerManager ¶
func NewLoadbalancerManager(cfg manager.IManagerConfig) *SLoadbalancerManager
type SManagerContext ¶
func (*SManagerContext) GetPath ¶
func (self *SManagerContext) GetPath() string
type SMetric ¶
type SMetric struct { MetricName string `json:"metric_name"` Namespace string `json:"namespace"` Dimensions []SMetricDimension `json:"dimensions"` }
type SMetricData ¶
type SMetricData struct { SMetricMeta Datapoints []SDatapoint }
type SMetricDimension ¶
type SMetricMeta ¶
type SNatDRuleManager ¶
type SNatDRuleManager struct {
SResourceManager
}
func NewNatDManager ¶
func NewNatDManager(cfg manager.IManagerConfig) *SNatDRuleManager
type SNatGatewayManager ¶
type SNatGatewayManager struct {
SResourceManager
}
func NewNatGatewayManager ¶
func NewNatGatewayManager(cfg manager.IManagerConfig) *SNatGatewayManager
type SNatSRuleManager ¶
type SNatSRuleManager struct {
SResourceManager
}
func NewNatSManager ¶
func NewNatSManager(cfg manager.IManagerConfig) *SNatSRuleManager
type SPortManager ¶
type SPortManager struct {
SResourceManager
}
func NewPortManager ¶
func NewPortManager(cfg manager.IManagerConfig) *SPortManager
type SProjectManager ¶
type SProjectManager struct {
SResourceManager
}
func NewProjectManager ¶
func NewProjectManager(cfg manager.IManagerConfig) *SProjectManager
func (*SProjectManager) AddProjectRole ¶
func (manager *SProjectManager) AddProjectRole(projectId string, groupId, roleId string) error
func (*SProjectManager) DeleteProjectRole ¶
func (manager *SProjectManager) DeleteProjectRole(projectId, groupId, roleId string) error
func (*SProjectManager) ListRoles ¶
func (manager *SProjectManager) ListRoles(projectId, groupId string) (*responses.ListResult, error)
type SQuotaManager ¶
type SQuotaManager struct {
SResourceManager
}
func NewQuotaManager ¶
func NewQuotaManager(cfg manager.IManagerConfig) *SQuotaManager
type SRegionManager ¶
type SRegionManager struct {
SResourceManager
}
func NewRegionManager ¶
func NewRegionManager(cfg manager.IManagerConfig) *SRegionManager
type SResourceManager ¶
type SResourceManager struct { SBaseManager ServiceName ServiceNameType // 服务名称: ecs Region string // 区域: cn-north-1 DomainId string ProjectId string // 项目ID: uuid Keyword string // 资源名称单数。构建URL时使用 KeywordPlural string // 资源名称复数形式。构建URL时使用 ResourceKeyword string // 资源名称。url中使用 // contains filtered or unexported fields }
func (*SResourceManager) AsyncCreate ¶
func (self *SResourceManager) AsyncCreate(params jsonutils.JSONObject) (string, error)
func (*SResourceManager) Create ¶
func (self *SResourceManager) Create(params jsonutils.JSONObject) (jsonutils.JSONObject, error)
func (*SResourceManager) CreateInContext ¶
func (self *SResourceManager) CreateInContext(ctx manager.IManagerContext, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
func (*SResourceManager) CreateInContextWithSpec ¶
func (self *SResourceManager) CreateInContextWithSpec(ctx manager.IManagerContext, spec string, params jsonutils.JSONObject, responseKey string) (jsonutils.JSONObject, error)
func (*SResourceManager) Delete ¶
func (self *SResourceManager) Delete(id string, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
func (*SResourceManager) DeleteInContext ¶
func (self *SResourceManager) DeleteInContext(ctx manager.IManagerContext, id string, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
func (*SResourceManager) DeleteInContextWithSpec ¶
func (self *SResourceManager) DeleteInContextWithSpec(ctx manager.IManagerContext, id string, spec string, queries map[string]string, params jsonutils.JSONObject, responseKey string) (jsonutils.JSONObject, error)
func (*SResourceManager) Get ¶
func (self *SResourceManager) Get(id string, queries map[string]string) (jsonutils.JSONObject, error)
func (*SResourceManager) GetColumns ¶
func (self *SResourceManager) GetColumns() []string
func (*SResourceManager) GetEndpoint ¶
func (self *SResourceManager) GetEndpoint() string
func (*SResourceManager) GetInContext ¶
func (self *SResourceManager) GetInContext(ctx manager.IManagerContext, id string, queries map[string]string) (jsonutils.JSONObject, error)
func (*SResourceManager) GetInContextWithSpec ¶
func (self *SResourceManager) GetInContextWithSpec(ctx manager.IManagerContext, id string, spec string, queries map[string]string, responseKey string) (jsonutils.JSONObject, error)
func (*SResourceManager) Init ¶
func (self *SResourceManager) Init() error
todo: Init a manager with environment variables
func (*SResourceManager) KeyString ¶
func (self *SResourceManager) KeyString() string
func (*SResourceManager) List ¶
func (self *SResourceManager) List(queries map[string]string) (*responses.ListResult, error)
func (*SResourceManager) ListInContext ¶
func (self *SResourceManager) ListInContext(ctx manager.IManagerContext, queries map[string]string) (*responses.ListResult, error)
func (*SResourceManager) ListInContextWithSpec ¶
func (self *SResourceManager) ListInContextWithSpec(ctx manager.IManagerContext, spec string, queries map[string]string, responseKey string) (*responses.ListResult, error)
func (*SResourceManager) Patch ¶
func (self *SResourceManager) Patch(id string, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
func (*SResourceManager) PatchInContext ¶
func (self *SResourceManager) PatchInContext(ctx manager.IManagerContext, id string, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
func (*SResourceManager) PatchInContextWithSpec ¶
func (self *SResourceManager) PatchInContextWithSpec(ctx manager.IManagerContext, id string, spec string, params jsonutils.JSONObject, responseKey string) (jsonutils.JSONObject, error)
func (*SResourceManager) PerformAction ¶
func (self *SResourceManager) PerformAction(action string, id string, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
func (*SResourceManager) PerformAction2 ¶
func (self *SResourceManager) PerformAction2(action string, id string, params jsonutils.JSONObject, responseKey string) (jsonutils.JSONObject, error)
func (*SResourceManager) ServiceType ¶
func (self *SResourceManager) ServiceType() string
func (*SResourceManager) SetDomainId ¶
func (self *SResourceManager) SetDomainId(domainId string)
func (*SResourceManager) SetVersion ¶
func (self *SResourceManager) SetVersion(v string)
func (*SResourceManager) Update ¶
func (self *SResourceManager) Update(id string, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
func (*SResourceManager) UpdateInContext ¶
func (self *SResourceManager) UpdateInContext(ctx manager.IManagerContext, id string, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
func (*SResourceManager) UpdateInContextWithSpec ¶
func (self *SResourceManager) UpdateInContextWithSpec(ctx manager.IManagerContext, id string, spec string, params jsonutils.JSONObject, responseKey string) (jsonutils.JSONObject, error)
func (*SResourceManager) Version ¶
func (self *SResourceManager) Version() string
type SRoleManager ¶
type SRoleManager struct {
SResourceManager
}
func NewRoleManager ¶
func NewRoleManager(cfg manager.IManagerConfig) *SRoleManager
type SSecgroupRuleManager ¶
type SSecgroupRuleManager struct {
SResourceManager
}
func NewSecgroupRuleManager ¶
func NewSecgroupRuleManager(cfg manager.IManagerConfig) *SSecgroupRuleManager
type SSecurityGroupManager ¶
type SSecurityGroupManager struct {
SResourceManager
}
func NewNovaSecurityGroupManager ¶
func NewNovaSecurityGroupManager(cfg manager.IManagerConfig) *SSecurityGroupManager
func NewSecurityGroupManager ¶
func NewSecurityGroupManager(cfg manager.IManagerConfig) *SSecurityGroupManager
type SServerManager ¶
type SServerManager struct {
SResourceManager
}
func NewNovaServerManager ¶
func NewNovaServerManager(cfg manager.IManagerConfig) *SServerManager
不推荐使用这个manager
func NewServerManager ¶
func NewServerManager(cfg manager.IManagerConfig) *SServerManager
https://support.huaweicloud.com/api-ecs/zh-cn_topic_0020212668.html v.1.1 新增支持创建包年/包月的弹性云服务器。!!但是不支持查询等调用 https://support.huaweicloud.com/api-ecs/zh-cn_topic_0093055772.html
func NewServerV2Manager ¶
func NewServerV2Manager(cfg manager.IManagerConfig) *SServerManager
重装弹性云服务器操作系统(安装Cloud-init),请用这个manager
func (*SServerManager) AsyncCreate ¶
func (self *SServerManager) AsyncCreate(params jsonutils.JSONObject) (string, error)
返回job id 或者 order id
https://support.huaweicloud.com/api-ecs/zh-cn_topic_0093055772.html 创建按需的弹性云服务 ——> job_id 任务ID (返回数据uuid举例:"70a599e0-31e7-49b7-b260-868f441e862b") 包年包月机器 --> order_id (返回数据举例: "CS1711152257C60TL")
func (*SServerManager) Create ¶
func (self *SServerManager) Create(params jsonutils.JSONObject) (jsonutils.JSONObject, error)
func (*SServerManager) List ¶
func (self *SServerManager) List(querys map[string]string) (*responses.ListResult, error)
type SServiceManager ¶
type SServiceManager struct {
SResourceManager
}
func NewServiceManager ¶
func NewServiceManager(cfg manager.IManagerConfig) *SServiceManager
type SSnapshotManager ¶
type SSnapshotManager struct {
SResourceManager
}
func NewOsSnapshotManager ¶
func NewOsSnapshotManager(cfg manager.IManagerConfig) *SSnapshotManager
https://support.huaweicloud.com/api-evs/zh-cn_topic_0051408629.html 回滚快照只能用这个manger。其他情况请不要使用 另外,香港-亚太还支持另外一个接口。https://support.huaweicloud.com/api-evs/zh-cn_topic_0142374138.html
func NewSnapshotManager ¶
func NewSnapshotManager(cfg manager.IManagerConfig) *SSnapshotManager
func (*SSnapshotManager) List ¶
func (self *SSnapshotManager) List(querys map[string]string) (*responses.ListResult, error)
type SSubnetManager ¶
type SSubnetManager struct {
SResourceManager
}
func NewSubnetManager ¶
func NewSubnetManager(cfg manager.IManagerConfig) *SSubnetManager
type STraceManager ¶
type STraceManager struct {
SResourceManager
}
func NewTraceManager ¶
func NewTraceManager(cfg manager.IManagerConfig) *STraceManager
type SUserManager ¶
type SUserManager struct {
SResourceManager
}
func NewUserManager ¶
func NewUserManager(cfg manager.IManagerConfig) *SUserManager
func (*SUserManager) Delete ¶
func (self *SUserManager) Delete(id string) (jsonutils.JSONObject, error)
func (*SUserManager) List ¶
func (self *SUserManager) List(querys map[string]string) (*responses.ListResult, error)
func (*SUserManager) ListGroups ¶
func (self *SUserManager) ListGroups(userId string) (*responses.ListResult, error)
func (*SUserManager) ResetPassword ¶
func (self *SUserManager) ResetPassword(id, password string) error
type SVpcManager ¶
type SVpcManager struct {
SResourceManager
}
func NewVpcManager ¶
func NewVpcManager(cfg manager.IManagerConfig) *SVpcManager
type SVpcPeeringManager ¶
type SVpcPeeringManager struct {
SResourceManager
}
func NewVpcPeeringManager ¶
func NewVpcPeeringManager(cfg manager.IManagerConfig) *SVpcPeeringManager
type SVpcRouteManager ¶
type SVpcRouteManager struct {
SResourceManager
}
func NewVpcRouteManager ¶
func NewVpcRouteManager(cfg manager.IManagerConfig) *SVpcRouteManager
type SZoneManager ¶
type SZoneManager struct {
SResourceManager
}
func NewZoneManager ¶
func NewZoneManager(cfg manager.IManagerConfig) *SZoneManager
type ServiceNameType ¶
type ServiceNameType string
const ( ServiceNameECS ServiceNameType = "ecs" // 弹性云服务 ServiceNameCCE ServiceNameType = "cce" // 云容器服务 ServiceNameAS ServiceNameType = "as" // 弹性伸缩服务 ServiceNameIAM ServiceNameType = "iam" // 统一身份认证服务 ServiceNameIMS ServiceNameType = "ims" // 镜像服务 ServiceNameCSBS ServiceNameType = "csbs" // 云服务器备份服务 ServiceNameCCI ServiceNameType = "cci" // 云容器实例 CCI ServiceNameBMS ServiceNameType = "bms" // 裸金属服务器 ServiceNameEVS ServiceNameType = "evs" // 云硬盘 EVS ServiceNameVBS ServiceNameType = "vbs" // 云硬盘备份 VBS ServiceNameOBS ServiceNameType = "obs" // 对象存储服务 OBS ServiceNameVPC ServiceNameType = "vpc" // 虚拟私有云 VPC ServiceNameELB ServiceNameType = "elb" // 弹性负载均衡 ELB ServiceNameBSS ServiceNameType = "bss" // 合作伙伴运营能力 ServiceNameNAT ServiceNameType = "nat" // Nat网关 NAT ServiceNameDCS ServiceNameType = "dcs" // 分布式缓存服务 ServiceNameRDS ServiceNameType = "rds" // 关系型数据库 RDS ServiceNameCTS ServiceNameType = "cts" // 云审计服务 ServiceNameCES ServiceNameType = "ces" // 监控服务 CloudEye ServiceNameEPS ServiceNameType = "eps" // 企业项目 ServiceNameSFSTurbo ServiceNameType = "sfs-turbo" // 文件系统 )
type SfsTurboManager ¶
type SfsTurboManager struct {
SResourceManager
}
func NewSfsTurboManager ¶
func NewSfsTurboManager(cfg manager.IManagerConfig) *SfsTurboManager
func (*SfsTurboManager) Create ¶
func (self *SfsTurboManager) Create(params jsonutils.JSONObject) (jsonutils.JSONObject, error)
func (*SfsTurboManager) List ¶
func (self *SfsTurboManager) List(querys map[string]string) (*responses.ListResult, error)
Source Files ¶
- doc.go
- manager_base.go
- manager_resource.go
- mod_bandwidths.go
- mod_ces.go
- mod_credential.go
- mod_dbinstance.go
- mod_dbinstance_backup.go
- mod_dbinstance_datastore.go
- mod_dbinstance_flavor.go
- mod_dbinstance_job.go
- mod_dbinstance_storage.go
- mod_disks.go
- mod_dnat_rules.go
- mod_domains.go
- mod_eips.go
- mod_elasticcache.go
- mod_endpoints.go
- mod_enterpriceprojects.go
- mod_flavors.go
- mod_groups.go
- mod_images.go
- mod_interface.go
- mod_jobs.go
- mod_keypairs.go
- mod_loadbalancer_backend.go
- mod_loadbalancer_backend_group.go
- mod_loadbalancer_certificates.go
- mod_loadbalancer_healthcheck.go
- mod_loadbalancer_listeners.go
- mod_loadbalancer_policies.go
- mod_loadbalancer_rules.go
- mod_loadbalancer_whitelists.go
- mod_loadbalancers.go
- mod_mapping.go
- mod_natgateway.go
- mod_port.go
- mod_projects.go
- mod_quotas.go
- mod_regions.go
- mod_roles.go
- mod_saml_provider.go
- mod_secgroup_rules.go
- mod_secgroups.go
- mod_servers.go
- mod_services.go
- mod_sfs.go
- mod_snapshots.go
- mod_snat_rules.go
- mod_subnets.go
- mod_traces.go
- mod_users.go
- mod_vpc_peerings.go
- mod_vpc_routes.go
- mod_vpcs.go
- mod_zones.go