Documentation
¶
Index ¶
- Constants
- type Apis
- type HpfsCapacityQuotaApi
- type HpfsCapacityQuotaRequest
- type HpfsCapacityQuotaResponse
- type HpfsCapacityQuotaReturnObjResponse
- type HpfsCountQuotaApi
- type HpfsCountQuotaRequest
- type HpfsCountQuotaResponse
- type HpfsCountQuotaReturnObjResponse
- type HpfsDataflowQuotaApi
- type HpfsDataflowQuotaRequest
- type HpfsDataflowQuotaResponse
- type HpfsDataflowQuotaReturnObjResponse
- type HpfsDeleteDataflowApi
- type HpfsDeleteDataflowRequest
- type HpfsDeleteDataflowResponse
- type HpfsDeleteDataflowReturnObjResponse
- type HpfsDeleteProtocolServiceApi
- type HpfsDeleteProtocolServiceRequest
- type HpfsDeleteProtocolServiceResponse
- type HpfsDeleteProtocolServiceReturnObjResourcesResponse
- type HpfsDeleteProtocolServiceReturnObjResponse
- type HpfsInfoByNameSfsApi
- type HpfsInfoByNameSfsRequest
- type HpfsInfoByNameSfsResponse
- type HpfsInfoByNameSfsReturnObjResponse
- type HpfsInfoDataflowApi
- type HpfsInfoDataflowRequest
- type HpfsInfoDataflowResponse
- type HpfsInfoDataflowReturnObjResponse
- type HpfsInfoDataflowtaskApi
- type HpfsInfoDataflowtaskRequest
- type HpfsInfoDataflowtaskResponse
- type HpfsInfoDataflowtaskReturnObjResponse
- type HpfsInfoDirectoryApi
- type HpfsInfoDirectoryRequest
- type HpfsInfoDirectoryResponse
- type HpfsInfoDirectoryReturnObjResponse
- type HpfsInfoProtocolServiceApi
- type HpfsInfoProtocolServiceRequest
- type HpfsInfoProtocolServiceResponse
- type HpfsInfoProtocolServiceReturnObjResponse
- type HpfsInfoSfsApi
- type HpfsInfoSfsRequest
- type HpfsInfoSfsResponse
- type HpfsInfoSfsReturnObjResponse
- type HpfsListBaselineApi
- type HpfsListBaselineRequest
- type HpfsListBaselineResponse
- type HpfsListBaselineReturnObjBaselineListResponse
- type HpfsListBaselineReturnObjResponse
- type HpfsListClusterApi
- type HpfsListClusterByDeviceApi
- type HpfsListClusterByDeviceRequest
- type HpfsListClusterByDeviceResponse
- type HpfsListClusterByDeviceReturnObjClusterListResponse
- type HpfsListClusterByDeviceReturnObjResponse
- type HpfsListClusterRequest
- type HpfsListClusterResponse
- type HpfsListClusterReturnObjClusterListResponse
- type HpfsListClusterReturnObjResponse
- type HpfsListDataflowApi
- type HpfsListDataflowRequest
- type HpfsListDataflowResponse
- type HpfsListDataflowReturnObjDataflowListResponse
- type HpfsListDataflowReturnObjResponse
- type HpfsListDataflowtaskApi
- type HpfsListDataflowtaskRequest
- type HpfsListDataflowtaskResponse
- type HpfsListDataflowtaskReturnObjResponse
- type HpfsListDataflowtaskReturnObjTaskListResponse
- type HpfsListProtocolServiceApi
- type HpfsListProtocolServiceRequest
- type HpfsListProtocolServiceResponse
- type HpfsListProtocolServiceReturnObjResponse
- type HpfsListRegionApi
- type HpfsListRegionRequest
- type HpfsListRegionResponse
- type HpfsListRegionReturnObjRegionListResponse
- type HpfsListRegionReturnObjResponse
- type HpfsListSfsApi
- type HpfsListSfsByClusterApi
- type HpfsListSfsByClusterRequest
- type HpfsListSfsByClusterResponse
- type HpfsListSfsByClusterReturnObjListResponse
- type HpfsListSfsByClusterReturnObjResponse
- type HpfsListSfsBySfstypeApi
- type HpfsListSfsBySfstypeRequest
- type HpfsListSfsBySfstypeResponse
- type HpfsListSfsBySfstypeReturnObjListResponse
- type HpfsListSfsBySfstypeReturnObjResponse
- type HpfsListSfsRequest
- type HpfsListSfsResponse
- type HpfsListSfsReturnObjListResponse
- type HpfsListSfsReturnObjResponse
- type HpfsListZoneApi
- type HpfsListZoneRequest
- type HpfsListZoneResponse
- type HpfsListZoneReturnObjResponse
- type HpfsListZoneReturnObjZoneListResponse
- type HpfsNewDataflowApi
- type HpfsNewDataflowRequest
- type HpfsNewDataflowResponse
- type HpfsNewDataflowReturnObjResourcesResponse
- type HpfsNewDataflowReturnObjResponse
- type HpfsNewDataflowtaskApi
- type HpfsNewDataflowtaskRequest
- type HpfsNewDataflowtaskResponse
- type HpfsNewDataflowtaskReturnObjResourcesResponse
- type HpfsNewDataflowtaskReturnObjResponse
- type HpfsNewDirectoryApi
- type HpfsNewDirectoryRequest
- type HpfsNewDirectoryResponse
- type HpfsNewProtocolServiceApi
- type HpfsNewProtocolServiceRequest
- type HpfsNewProtocolServiceResponse
- type HpfsNewProtocolServiceReturnObjResourcesResponse
- type HpfsNewProtocolServiceReturnObjResponse
- type HpfsNewSfsApi
- type HpfsNewSfsRequest
- type HpfsNewSfsResponse
- type HpfsNewSfsReturnObjResourcesResponse
- type HpfsNewSfsReturnObjResponse
- type HpfsRefundSfsApi
- type HpfsRefundSfsErrorDetailResponse
- type HpfsRefundSfsRequest
- type HpfsRefundSfsResponse
- type HpfsRefundSfsReturnObjResponse
- type HpfsRenameSfsApi
- type HpfsRenameSfsRequest
- type HpfsRenameSfsResponse
- type HpfsResizeSfsApi
- type HpfsResizeSfsErrorDetailResponse
- type HpfsResizeSfsRequest
- type HpfsResizeSfsResponse
- type HpfsResizeSfsReturnObjResponse
- type HpfsUpdateDataflowApi
- type HpfsUpdateDataflowRequest
- type HpfsUpdateDataflowResponse
- type HpfsUpdateDataflowReturnObjResponse
Constants ¶
View Source
const EndpointName = "hpfs"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Apis ¶
type Apis struct { HpfsNewSfsApi *HpfsNewSfsApi HpfsInfoSfsApi *HpfsInfoSfsApi HpfsInfoByNameSfsApi *HpfsInfoByNameSfsApi HpfsRefundSfsApi *HpfsRefundSfsApi HpfsResizeSfsApi *HpfsResizeSfsApi HpfsListClusterApi *HpfsListClusterApi HpfsListBaselineApi *HpfsListBaselineApi HpfsListRegionApi *HpfsListRegionApi HpfsListZoneApi *HpfsListZoneApi HpfsCountQuotaApi *HpfsCountQuotaApi HpfsCapacityQuotaApi *HpfsCapacityQuotaApi HpfsDataflowQuotaApi *HpfsDataflowQuotaApi HpfsRenameSfsApi *HpfsRenameSfsApi HpfsInfoDirectoryApi *HpfsInfoDirectoryApi HpfsNewDirectoryApi *HpfsNewDirectoryApi HpfsListSfsByClusterApi *HpfsListSfsByClusterApi HpfsListSfsBySfstypeApi *HpfsListSfsBySfstypeApi HpfsListClusterByDeviceApi *HpfsListClusterByDeviceApi HpfsListSfsApi *HpfsListSfsApi HpfsListDataflowApi *HpfsListDataflowApi HpfsInfoDataflowApi *HpfsInfoDataflowApi HpfsNewDataflowApi *HpfsNewDataflowApi HpfsUpdateDataflowApi *HpfsUpdateDataflowApi HpfsDeleteDataflowApi *HpfsDeleteDataflowApi HpfsNewDataflowtaskApi *HpfsNewDataflowtaskApi HpfsListDataflowtaskApi *HpfsListDataflowtaskApi HpfsInfoDataflowtaskApi *HpfsInfoDataflowtaskApi HpfsNewProtocolServiceApi *HpfsNewProtocolServiceApi HpfsDeleteProtocolServiceApi *HpfsDeleteProtocolServiceApi HpfsListProtocolServiceApi *HpfsListProtocolServiceApi HpfsInfoProtocolServiceApi *HpfsInfoProtocolServiceApi }
type HpfsCapacityQuotaApi ¶
type HpfsCapacityQuotaApi struct {
// contains filtered or unexported fields
}
func NewHpfsCapacityQuotaApi ¶
func NewHpfsCapacityQuotaApi(client *core.CtyunClient) *HpfsCapacityQuotaApi
func (*HpfsCapacityQuotaApi) Do ¶
func (a *HpfsCapacityQuotaApi) Do(ctx context.Context, credential core.Credential, req *HpfsCapacityQuotaRequest) (*HpfsCapacityQuotaResponse, error)
type HpfsCapacityQuotaRequest ¶
type HpfsCapacityQuotaRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池 ID */
}
type HpfsCapacityQuotaResponse ¶
type HpfsCapacityQuotaResponse struct { StatusCode int32 `json:"statusCode"` /* 返回状态码(800 为成功,900 为失败) */ Message string `json:"message"` /* 响应描述 */ Description string `json:"description"` /* 响应描述 */ ReturnObj *HpfsCapacityQuotaReturnObjResponse `json:"returnObj"` /* 返回对象 */ ErrorCode string `json:"errorCode"` /* 业务细分码,为 product.module.code 三段式码 */ Error string `json:"error"` /* 业务细分码,为product.module.code三段式大驼峰码 */ }
type HpfsCountQuotaApi ¶
type HpfsCountQuotaApi struct {
// contains filtered or unexported fields
}
func NewHpfsCountQuotaApi ¶
func NewHpfsCountQuotaApi(client *core.CtyunClient) *HpfsCountQuotaApi
func (*HpfsCountQuotaApi) Do ¶
func (a *HpfsCountQuotaApi) Do(ctx context.Context, credential core.Credential, req *HpfsCountQuotaRequest) (*HpfsCountQuotaResponse, error)
type HpfsCountQuotaRequest ¶
type HpfsCountQuotaRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池 ID */
}
type HpfsCountQuotaResponse ¶
type HpfsCountQuotaResponse struct { StatusCode int32 `json:"statusCode"` /* 返回状态码(800 为成功,900 为失败) */ Message string `json:"message"` /* 响应描述 */ Description string `json:"description"` /* 响应描述 */ ReturnObj *HpfsCountQuotaReturnObjResponse `json:"returnObj"` /* 返回对象 */ ErrorCode string `json:"errorCode"` /* 业务细分码,为 product.module.code 三段式码 */ Error string `json:"error"` /* 业务细分码,为product.module.code三段式大驼峰码 */ }
type HpfsDataflowQuotaApi ¶
type HpfsDataflowQuotaApi struct {
// contains filtered or unexported fields
}
func NewHpfsDataflowQuotaApi ¶
func NewHpfsDataflowQuotaApi(client *core.CtyunClient) *HpfsDataflowQuotaApi
func (*HpfsDataflowQuotaApi) Do ¶
func (a *HpfsDataflowQuotaApi) Do(ctx context.Context, credential core.Credential, req *HpfsDataflowQuotaRequest) (*HpfsDataflowQuotaResponse, error)
type HpfsDataflowQuotaResponse ¶
type HpfsDataflowQuotaResponse struct { StatusCode int32 `json:"statusCode"` /* 返回状态码(800 为成功,900 为失败) */ Message string `json:"message"` /* 响应描述 */ Description string `json:"description"` /* 响应描述 */ ReturnObj *HpfsDataflowQuotaReturnObjResponse `json:"returnObj"` /* 返回对象 */ ErrorCode string `json:"errorCode"` /* 业务细分码,为 product.module.code 三段式码 */ Error string `json:"error"` /* 业务细分码,为product.module.code三段式大驼峰码 */ }
type HpfsDeleteDataflowApi ¶
type HpfsDeleteDataflowApi struct {
// contains filtered or unexported fields
}
func NewHpfsDeleteDataflowApi ¶
func NewHpfsDeleteDataflowApi(client *core.CtyunClient) *HpfsDeleteDataflowApi
func (*HpfsDeleteDataflowApi) Do ¶
func (a *HpfsDeleteDataflowApi) Do(ctx context.Context, credential core.Credential, req *HpfsDeleteDataflowRequest) (*HpfsDeleteDataflowResponse, error)
type HpfsDeleteDataflowResponse ¶
type HpfsDeleteDataflowResponse struct { StatusCode int32 `json:"statusCode"` /* 返回状态码(800 为成功,900 为失败) */ Message string `json:"message"` /* 响应描述 */ Description string `json:"description"` /* 响应描述 */ ReturnObj *HpfsDeleteDataflowReturnObjResponse `json:"returnObj"` /* 返回对象 */ ErrorCode string `json:"errorCode"` /* 业务细分码,为 product.module.code 三段式码 */ Error string `json:"error"` /* 业务细分码,为product.module.code三段式大驼峰码 */ }
type HpfsDeleteDataflowReturnObjResponse ¶
type HpfsDeleteDataflowReturnObjResponse struct {
RegionID string `json:"regionID"` /* 资源所属资源池 ID */
}
type HpfsDeleteProtocolServiceApi ¶
type HpfsDeleteProtocolServiceApi struct {
// contains filtered or unexported fields
}
func NewHpfsDeleteProtocolServiceApi ¶
func NewHpfsDeleteProtocolServiceApi(client *core.CtyunClient) *HpfsDeleteProtocolServiceApi
func (*HpfsDeleteProtocolServiceApi) Do ¶
func (a *HpfsDeleteProtocolServiceApi) Do(ctx context.Context, credential core.Credential, req *HpfsDeleteProtocolServiceRequest) (*HpfsDeleteProtocolServiceResponse, error)
type HpfsDeleteProtocolServiceResponse ¶
type HpfsDeleteProtocolServiceResponse struct { StatusCode int32 `json:"statusCode"` /* 返回状态码(800为成功,900为处理中/失败,详见errorCode) */ Message string `json:"message"` /* 响应描述 */ Description string `json:"description"` /* 响应描述 */ ReturnObj *HpfsDeleteProtocolServiceReturnObjResponse `json:"returnObj"` /* 返回对象 */ ErrorCode string `json:"errorCode"` /* 业务细分码,为 product.module.code 三段式码 */ Error string `json:"error"` /* 业务细分码,为product.module.code三段式大驼峰码 */ }
type HpfsDeleteProtocolServiceReturnObjResponse ¶
type HpfsDeleteProtocolServiceReturnObjResponse struct { RegionID string `json:"regionID"` /* 资源所属资源池 ID */ Resources []*HpfsDeleteProtocolServiceReturnObjResourcesResponse `json:"resources"` /* 资源明细 */ }
type HpfsInfoByNameSfsApi ¶
type HpfsInfoByNameSfsApi struct {
// contains filtered or unexported fields
}
func NewHpfsInfoByNameSfsApi ¶
func NewHpfsInfoByNameSfsApi(client *core.CtyunClient) *HpfsInfoByNameSfsApi
func (*HpfsInfoByNameSfsApi) Do ¶
func (a *HpfsInfoByNameSfsApi) Do(ctx context.Context, credential core.Credential, req *HpfsInfoByNameSfsRequest) (*HpfsInfoByNameSfsResponse, error)
type HpfsInfoByNameSfsResponse ¶
type HpfsInfoByNameSfsResponse struct { StatusCode int32 `json:"statusCode"` /* 返回状态码(800 为成功,900为失败) */ Message string `json:"message"` /* 响应描述 */ Description string `json:"description"` /* 响应描述 */ ReturnObj *HpfsInfoByNameSfsReturnObjResponse `json:"returnObj"` /* 返回对象 */ ErrorCode string `json:"errorCode"` /* 业务细分码,为 product.module.code 三段式码 */ Error string `json:"error"` /* 业务细分码,为product.module.code三段式大驼峰码 */ }
type HpfsInfoByNameSfsReturnObjResponse ¶
type HpfsInfoByNameSfsReturnObjResponse struct { SfsName string `json:"sfsName"` /* 并行文件命名 */ SfsUID string `json:"sfsUID"` /* 并行文件唯一 ID */ SfsSize int32 `json:"sfsSize"` /* 大小(GB) */ SfsType string `json:"sfsType"` /* 类型,hpfs_perf(HPC性能型) */ SfsProtocol string `json:"sfsProtocol"` /* 挂载协议,nfs/hpfs */ SfsStatus string `json:"sfsStatus"` /* 并行文件状态 */ UsedSize int32 `json:"usedSize"` /* 已用大小(MB) */ CreateTime int64 `json:"createTime"` /* 创建时刻,epoch 时戳,精度毫秒 */ UpdateTime int64 `json:"updateTime"` /* 更新时刻,epoch 时戳,精度毫秒 */ ProjectID string `json:"projectID"` /* 资源所属企业项目 ID */ OnDemand *bool `json:"onDemand"` /* 是否按需订购 */ RegionID string `json:"regionID"` /* 资源池 ID */ AzName string `json:"azName"` /* 多可用区下的可用区名字 */ ClusterName string `json:"clusterName"` /* 集群名称 */ Baseline string `json:"baseline"` /* 性能基线(MB/s/TB) */ MountCount int32 `json:"mountCount"` /* 挂载点数量 */ SecretKey string `json:"secretKey"` /* HPC型挂载需要的密钥 */ DataflowList []string `json:"dataflowList"` /* HPFS文件系统下的数据流动策略ID列表 */ DataflowCount int32 `json:"dataflowCount"` /* HPFS文件系统下的数据流动策略数量 */ }
type HpfsInfoDataflowApi ¶
type HpfsInfoDataflowApi struct {
// contains filtered or unexported fields
}
func NewHpfsInfoDataflowApi ¶
func NewHpfsInfoDataflowApi(client *core.CtyunClient) *HpfsInfoDataflowApi
func (*HpfsInfoDataflowApi) Do ¶
func (a *HpfsInfoDataflowApi) Do(ctx context.Context, credential core.Credential, req *HpfsInfoDataflowRequest) (*HpfsInfoDataflowResponse, error)
type HpfsInfoDataflowRequest ¶
type HpfsInfoDataflowResponse ¶
type HpfsInfoDataflowResponse struct { StatusCode int32 `json:"statusCode"` /* 返回状态码(800 为成功,900 为失败) */ Message string `json:"message"` /* 响应描述 */ Description string `json:"description"` /* 响应描述 */ ReturnObj *HpfsInfoDataflowReturnObjResponse `json:"returnObj"` /* 返回对象 */ ErrorCode string `json:"errorCode"` /* 业务细分码,为 product.module.code 三段式码 */ Error string `json:"error"` /* 业务细分码,为product.module.code三段式大驼峰码 */ }
type HpfsInfoDataflowReturnObjResponse ¶
type HpfsInfoDataflowReturnObjResponse struct { RegionID string `json:"regionID"` /* 资源池id */ DataflowID string `json:"dataflowID"` /* 数据流动策略id */ SfsUID string `json:"sfsUID"` /* 并行文件唯一id */ SfsDirectory string `json:"sfsDirectory"` /* 并行文件下目录 */ BucketName string `json:"bucketName"` /* 对象存储的桶名称 */ BucketPrefix string `json:"bucketPrefix"` /* 对象存储桶的前缀 */ AutoImport *bool `json:"autoImport"` /* 是否打开自动导入 */ AutoExport *bool `json:"autoExport"` /* 是否打开自动导出 */ ImportDataType string `json:"importDataType"` /* 导入的数据类型 */ ExportDataType string `json:"exportDataType"` /* 导出的数据类型 */ ImportTrigger string `json:"importTrigger"` /* 导入的触发条件,多个条件用英文逗号隔开 */ ExportTrigger string `json:"exportTrigger"` /* 导出的触发条件,多个条件用英文逗号隔开 */ DataflowDescription string `json:"dataflowDescription"` /* 数据流动策略的描述 */ CreateTime int64 `json:"createTime"` /* 数据流动策略创建时间 */ DataflowStatus string `json:"dataflowStatus"` /* 数据流动策略的状态,creating/updating/available/syncing/deleting/fail/error。creating:策略创建中;updating:策略更新中;available:策略可用(未打开自动导入导出开);syncing:策略同步中(打开了自动导入或自动导出,数据持续流动中,即使没有数据正在流动也是同步中);deleting:策略删除中;fail:策略异常(异常原因可见dataflowFailMsg,该状态的策略可更新、可恢复);error:策略创建失败(异常原因可见dataflowFailMsg,该状态的策略只能删除,无法恢复,不占用配额) */ DataflowFailTime int64 `json:"dataflowFailTime"` /* 数据流动策略异常发生时间,当数据流动策略状态dataflowStatus为fail或error才有此字段 */ DataflowFailMsg string `json:"dataflowFailMsg"` /* 数据流动策略异常原因,当数据流动策略状态dataflowStatus为fail或error才有此字段 */ AzName string `json:"azName"` /* 多可用区下的可用区名字 */ }
type HpfsInfoDataflowtaskApi ¶
type HpfsInfoDataflowtaskApi struct {
// contains filtered or unexported fields
}
func NewHpfsInfoDataflowtaskApi ¶
func NewHpfsInfoDataflowtaskApi(client *core.CtyunClient) *HpfsInfoDataflowtaskApi
func (*HpfsInfoDataflowtaskApi) Do ¶
func (a *HpfsInfoDataflowtaskApi) Do(ctx context.Context, credential core.Credential, req *HpfsInfoDataflowtaskRequest) (*HpfsInfoDataflowtaskResponse, error)
type HpfsInfoDataflowtaskResponse ¶
type HpfsInfoDataflowtaskResponse struct { StatusCode int32 `json:"statusCode"` /* 返回状态码(800 为成功,900 为失败) */ Message string `json:"message"` /* 响应描述 */ Description string `json:"description"` /* 响应描述 */ ReturnObj *HpfsInfoDataflowtaskReturnObjResponse `json:"returnObj"` /* 返回对象 */ ErrorCode string `json:"errorCode"` /* 业务细分码,为 product.module.code 三段式码 */ Error string `json:"error"` /* 业务细分码,为product.module.code三段式大驼峰码 */ }
type HpfsInfoDataflowtaskReturnObjResponse ¶
type HpfsInfoDataflowtaskReturnObjResponse struct { RegionID string `json:"regionID"` /* 资源池id */ TaskID string `json:"taskID"` /* 数据流动任务id */ DataflowID string `json:"dataflowID"` /* 数据流动策略id */ SfsUID string `json:"sfsUID"` /* 并行文件唯一id */ SfsDirectory string `json:"sfsDirectory"` /* 并行文件下目录 */ BucketName string `json:"bucketName"` /* 对象存储的桶名称 */ BucketPrefix string `json:"bucketPrefix"` /* 对象存储桶的前缀 */ TaskType string `json:"taskType"` /* 任务类型(import_data/import_metadata/export_data) */ TaskDescription string `json:"taskDescription"` /* 数据流动任务的描述 */ TaskStatus string `json:"taskStatus"` /* 数据流动任务的状态,creating/executing/completed/canceling/fail。creating:任务创建中;executing:任务执行中;completed:任务已完成;canceling:任务取消中(可能是任务失败正在取消,也可能是策略删除任务正在取消);fail:任务异常(异常原因可见failMsg,异常的任务不可恢复) */ CreateTime int64 `json:"createTime"` /* 数据流动任务创建时间 */ StartTime int64 `json:"startTime"` /* 数据流动任务开始时间 */ CompleteTime int64 `json:"completeTime"` /* 数据流动任务完成时间 */ CancelTime int64 `json:"cancelTime"` /* 数据流动任务取消时间 */ FailTime int64 `json:"failTime"` /* 数据流动任务异常发生时间 */ FailMsg string `json:"failMsg"` /* 数据流动任务异常原因 */ AzName string `json:"azName"` /* 多可用区下的可用区名字 */ }
type HpfsInfoDirectoryApi ¶
type HpfsInfoDirectoryApi struct {
// contains filtered or unexported fields
}
func NewHpfsInfoDirectoryApi ¶
func NewHpfsInfoDirectoryApi(client *core.CtyunClient) *HpfsInfoDirectoryApi
func (*HpfsInfoDirectoryApi) Do ¶
func (a *HpfsInfoDirectoryApi) Do(ctx context.Context, credential core.Credential, req *HpfsInfoDirectoryRequest) (*HpfsInfoDirectoryResponse, error)
type HpfsInfoDirectoryRequest ¶
type HpfsInfoDirectoryRequest struct { RegionID string `json:"regionID,omitempty"` /* 资源池 ID */ SfsUID string `json:"sfsUID,omitempty"` /* 并行文件唯一ID */ SfsDirectory string `json:"sfsDirectory,omitempty"` /* 并行文件目录,目录名仅允许数字、字母、下划线、连接符、中文组成,每级目录最大长度为255字节,最大目录层数为1000,最大全路径长度为4096字节,如果参数为mydir/、mydir、/mydir或/mydir/,则都视为输入/mydir的目录 */ }
type HpfsInfoDirectoryResponse ¶
type HpfsInfoDirectoryResponse struct { StatusCode int32 `json:"statusCode"` /* 返回状态码(800 为成功,900 为失败) */ Message string `json:"message"` /* 响应描述 */ Description string `json:"description"` /* 响应描述 */ ReturnObj *HpfsInfoDirectoryReturnObjResponse `json:"returnObj"` /* 返回对象 */ ErrorCode string `json:"errorCode"` /* 业务细分码,为 product.module.code 三段式码 */ Error string `json:"error"` /* 业务细分码,为product.module.code三段式大驼峰码 */ }
type HpfsInfoDirectoryReturnObjResponse ¶
type HpfsInfoDirectoryReturnObjResponse struct { SfsDirectory string `json:"sfsDirectory"` /* 并行文件目录 */ SfsDirectoryMode string `json:"sfsDirectoryMode"` /* 目录权限,每位的范围为0到7。第一位表示目录所有者的权限,第二位表示目录所属用户组的权限,第三位表示其他用户的权限。目录所有者由uid指定,目录所属用户组由gid指定,不是目录所有者且不在目录所属用户组的用户为其他用户。例如:755中第一位7代表该目录所有者对该目录具有读、写、执行权限;第二位5代表该目录所属用户组对该目录具有读、执行权限;第三位5代表其他用户对该目录具有读、执行权限 */ SfsDirectoryUID int64 `json:"sfsDirectoryUID"` /* 目录所有者的用户id,取值范围是0到4,294,967,294(即2^32-2) */ SfsDirectoryGID int64 `json:"sfsDirectoryGID"` /* 目录所属用户组id,取值范围是0到4,294,967,294(即2^32-2) */ }
type HpfsInfoProtocolServiceApi ¶
type HpfsInfoProtocolServiceApi struct {
// contains filtered or unexported fields
}
func NewHpfsInfoProtocolServiceApi ¶
func NewHpfsInfoProtocolServiceApi(client *core.CtyunClient) *HpfsInfoProtocolServiceApi
func (*HpfsInfoProtocolServiceApi) Do ¶
func (a *HpfsInfoProtocolServiceApi) Do(ctx context.Context, credential core.Credential, req *HpfsInfoProtocolServiceRequest) (*HpfsInfoProtocolServiceResponse, error)
type HpfsInfoProtocolServiceResponse ¶
type HpfsInfoProtocolServiceResponse struct { StatusCode int32 `json:"statusCode"` /* 返回状态码(800为成功,900为处理中/失败,详见errorCode) */ Message string `json:"message"` /* 响应描述 */ Description string `json:"description"` /* 响应描述 */ ReturnObj *HpfsInfoProtocolServiceReturnObjResponse `json:"returnObj"` /* 返回对象 */ ErrorCode string `json:"errorCode"` /* 业务细分码,为 product.module.code 三段式码 */ Error string `json:"error"` /* 业务细分码,为product.module.code三段式大驼峰码 */ }
type HpfsInfoProtocolServiceReturnObjResponse ¶
type HpfsInfoProtocolServiceReturnObjResponse struct { RegionID string `json:"regionID"` /* 资源池ID */ SfsUID string `json:"sfsUID"` /* 并行文件唯一 ID */ AzName string `json:"azName"` /* 多可用区下可用区的名字 */ ProtocolServiceID string `json:"protocolServiceID"` /* 协议服务唯一ID */ ProtocolServiceStatus string `json:"protocolServiceStatus"` /* 协议服务的状态,creating/available//deleting/create_fail/agent_err。creating:协议服务创建中;available:协议服务可用;deleting:协议服务删除中;create_fail:协议服务创建失败;agent_err:底层协议服务组件异常(该异常状态可恢复) */ ProtocolSpec string `json:"protocolSpec"` /* 协议规格 */ ProtocolType string `json:"protocolType"` /* 协议类型 */ VpcID string `json:"vpcID"` /* 虚拟网 ID */ VpcName string `json:"vpcName"` /* vpc名称 */ SubnetID string `json:"subnetID"` /* 子网ID */ CreateTime int64 `json:"createTime"` /* 协议服务的创建时间 */ FailMsg string `json:"failMsg"` /* 协议服务的异常原因 */ ProtocolDescription string `json:"protocolDescription"` /* 协议服务的描述 */ }
type HpfsInfoSfsApi ¶
type HpfsInfoSfsApi struct {
// contains filtered or unexported fields
}
func NewHpfsInfoSfsApi ¶
func NewHpfsInfoSfsApi(client *core.CtyunClient) *HpfsInfoSfsApi
func (*HpfsInfoSfsApi) Do ¶
func (a *HpfsInfoSfsApi) Do(ctx context.Context, credential core.Credential, req *HpfsInfoSfsRequest) (*HpfsInfoSfsResponse, error)
type HpfsInfoSfsRequest ¶
type HpfsInfoSfsResponse ¶
type HpfsInfoSfsResponse struct { StatusCode int32 `json:"statusCode"` /* 返回状态码(800 为成功,900 为失败) */ Message string `json:"message"` /* 响应描述 */ Description string `json:"description"` /* 响应描述 */ ReturnObj *HpfsInfoSfsReturnObjResponse `json:"returnObj"` /* 返回对象 */ ErrorCode string `json:"errorCode"` /* 业务细分码,为 product.module.code 三段式码 */ Error string `json:"error"` /* 业务细分码,为product.module.code三段式大驼峰码 */ }
type HpfsInfoSfsReturnObjResponse ¶
type HpfsInfoSfsReturnObjResponse struct { SfsName string `json:"sfsName"` /* 并行文件命名 */ SfsUID string `json:"sfsUID"` /* 并行文件唯一 ID */ SfsSize int32 `json:"sfsSize"` /* 大小(GB) */ SfsType string `json:"sfsType"` /* 类型,hpfs_perf(HPC性能型) */ SfsProtocol string `json:"sfsProtocol"` /* 挂载协议,nfs/hpfs */ SfsStatus string `json:"sfsStatus"` /* 并行文件状态 */ UsedSize int32 `json:"usedSize"` /* 已用大小(MB) */ CreateTime int64 `json:"createTime"` /* 创建时刻,epoch 时戳,精度毫秒 */ UpdateTime int64 `json:"updateTime"` /* 更新时刻,epoch 时戳,精度毫秒 */ ProjectID string `json:"projectID"` /* 资源所属企业项目 ID */ OnDemand *bool `json:"onDemand"` /* 是否按需订购 */ RegionID string `json:"regionID"` /* 资源池 ID */ AzName string `json:"azName"` /* 多可用区下的可用区名字 */ ClusterName string `json:"clusterName"` /* 集群名称 */ Baseline string `json:"baseline"` /* 性能基线(MB/s/TB) */ SecretKey string `json:"secretKey"` /* HPC型挂载需要的密钥 */ DataflowList []string `json:"dataflowList"` /* HPFS文件系统下的数据流动策略ID列表 */ DataflowCount int32 `json:"dataflowCount"` /* HPFS文件系统下的数据流动策略数量 */ }
type HpfsListBaselineApi ¶
type HpfsListBaselineApi struct {
// contains filtered or unexported fields
}
func NewHpfsListBaselineApi ¶
func NewHpfsListBaselineApi(client *core.CtyunClient) *HpfsListBaselineApi
func (*HpfsListBaselineApi) Do ¶
func (a *HpfsListBaselineApi) Do(ctx context.Context, credential core.Credential, req *HpfsListBaselineRequest) (*HpfsListBaselineResponse, error)
type HpfsListBaselineRequest ¶
type HpfsListBaselineRequest struct { RegionID string `json:"regionID,omitempty"` /* 资源池 ID */ SfsType string `json:"sfsType,omitempty"` /* 类型,hpfs_perf(HPC性能型) */ AzName string `json:"azName,omitempty"` /* 多可用区下的可用区名字,4.0资源池必填 */ ClusterName string `json:"clusterName,omitempty"` /* 集群名称 */ PageNo int32 `json:"pageNo,omitempty"` /* 列表的分页页码 ,默认值为1 */ PageSize int32 `json:"pageSize,omitempty"` /* 每页包含的元素个数范围(1-50),默认值为10 */ }
type HpfsListBaselineResponse ¶
type HpfsListBaselineResponse struct { StatusCode int32 `json:"statusCode"` /* 返回状态码(800 为成功,900 为失败) */ Message string `json:"message"` /* 响应描述 */ Description string `json:"description"` /* 响应描述 */ ReturnObj *HpfsListBaselineReturnObjResponse `json:"returnObj"` /* 返回对象 */ ErrorCode string `json:"errorCode"` /* 业务细分码,为 product.module.code 三段式码 */ Error string `json:"error"` /* 业务细分码,为product.module.code三段式大驼峰码 */ }
type HpfsListBaselineReturnObjResponse ¶
type HpfsListBaselineReturnObjResponse struct { BaselineList []*HpfsListBaselineReturnObjBaselineListResponse `json:"baselineList"` /* 返回的性能基线列表 */ TotalCount int32 `json:"totalCount"` /* 指定条件下性能基线总数 */ CurrentCount int32 `json:"currentCount"` /* 当前页码下查询回来的基线数 */ PageSize int32 `json:"pageSize"` /* 每页包含的元素个数范围(1-50) */ PageNo int32 `json:"pageNo"` /* 列表的分页页码 */ }
type HpfsListClusterApi ¶
type HpfsListClusterApi struct {
// contains filtered or unexported fields
}
func NewHpfsListClusterApi ¶
func NewHpfsListClusterApi(client *core.CtyunClient) *HpfsListClusterApi
func (*HpfsListClusterApi) Do ¶
func (a *HpfsListClusterApi) Do(ctx context.Context, credential core.Credential, req *HpfsListClusterRequest) (*HpfsListClusterResponse, error)
type HpfsListClusterByDeviceApi ¶
type HpfsListClusterByDeviceApi struct {
// contains filtered or unexported fields
}
func NewHpfsListClusterByDeviceApi ¶
func NewHpfsListClusterByDeviceApi(client *core.CtyunClient) *HpfsListClusterByDeviceApi
func (*HpfsListClusterByDeviceApi) Do ¶
func (a *HpfsListClusterByDeviceApi) Do(ctx context.Context, credential core.Credential, req *HpfsListClusterByDeviceRequest) (*HpfsListClusterByDeviceResponse, error)
type HpfsListClusterByDeviceRequest ¶
type HpfsListClusterByDeviceRequest struct { RegionID string `json:"regionID,omitempty"` /* 资源池 ID */ EbmDeviceType string `json:"ebmDeviceType,omitempty"` /* 裸金属设备规格 */ PageNo int32 `json:"pageNo,omitempty"` /* 列表的分页页码,默认值为1 */ PageSize int32 `json:"pageSize,omitempty"` /* 每页包含的元素个数范围(1-50),默认值为10 */ }
type HpfsListClusterByDeviceResponse ¶
type HpfsListClusterByDeviceResponse struct { StatusCode int32 `json:"statusCode"` /* 返回状态码(800 为成功,900 为失败) */ Message string `json:"message"` /* 响应描述 */ Description string `json:"description"` /* 响应描述 */ ReturnObj *HpfsListClusterByDeviceReturnObjResponse `json:"returnObj"` /* 返回对象 */ ErrorCode string `json:"errorCode"` /* 业务细分码,为 product.module.code 三段式码 */ Error string `json:"error"` /* 业务细分码,为product.module.code三段式大驼峰码 */ }
type HpfsListClusterByDeviceReturnObjClusterListResponse ¶
type HpfsListClusterByDeviceReturnObjClusterListResponse struct { ClusterName string `json:"clusterName"` /* 集群名称 */ RemainingStatus *bool `json:"remainingStatus"` /* 该集群是否可以售卖 */ StorageType string `json:"storageType"` /* 集群的存储类型 */ AzName string `json:"azName"` /* 多可用区下的可用区名字 */ ProtocolType []string `json:"protocolType"` /* 集群支持的协议列表 */ Baselines []string `json:"baselines"` /* 集群支持的性能基线列表(仅当资源池支持性能基线时返回) */ NetworkType string `json:"networkType"` /* 集群的网络类型(tcp/o2ib) */ EbmDeviceTypes []string `json:"ebmDeviceTypes"` /* 集群支持的裸金属设备规格列表 */ }
type HpfsListClusterByDeviceReturnObjResponse ¶
type HpfsListClusterByDeviceReturnObjResponse struct { ClusterList []*HpfsListClusterByDeviceReturnObjClusterListResponse `json:"clusterList"` /* 返回的集群列表 */ TotalCount int32 `json:"totalCount"` /* 某资源池指定条件下集群总数 */ CurrentCount int32 `json:"currentCount"` /* 当前页码下查询回来的集群数 */ PageSize int32 `json:"pageSize"` /* 每页包含的元素个数范围(1-50) */ PageNo int32 `json:"pageNo"` /* 列表的分页页码 */ }
type HpfsListClusterRequest ¶
type HpfsListClusterRequest struct { RegionID string `json:"regionID,omitempty"` /* 资源池 ID */ SfsType string `json:"sfsType,omitempty"` /* 类型,hpfs_perf(HPC性能型) */ AzName string `json:"azName,omitempty"` /* 多可用区下的可用区名字 */ EbmDeviceType string `json:"ebmDeviceType,omitempty"` /* 裸金属设备规格 */ PageNo int32 `json:"pageNo,omitempty"` /* 列表的分页页码,默认值为1 */ PageSize int32 `json:"pageSize,omitempty"` /* 每页包含的元素个数范围(1-50),默认值为10 */ }
type HpfsListClusterResponse ¶
type HpfsListClusterResponse struct { StatusCode int32 `json:"statusCode"` /* 返回状态码(800 为成功,900 为失败) */ Message string `json:"message"` /* 响应描述 */ Description string `json:"description"` /* 响应描述 */ ReturnObj *HpfsListClusterReturnObjResponse `json:"returnObj"` /* 返回对象 */ ErrorCode string `json:"errorCode"` /* 业务细分码,为 product.module.code 三段式码 */ Error string `json:"error"` /* 业务细分码,为product.module.code三段式大驼峰码 */ }
type HpfsListClusterReturnObjClusterListResponse ¶
type HpfsListClusterReturnObjClusterListResponse struct { ClusterName string `json:"clusterName"` /* 集群名称 */ RemainingStatus *bool `json:"remainingStatus"` /* 该集群是否可以售卖 */ StorageType string `json:"storageType"` /* 集群的存储类型 */ AzName string `json:"azName"` /* 多可用区下的可用区名字 */ ProtocolType []string `json:"protocolType"` /* 集群支持的协议列表 */ Baselines []string `json:"baselines"` /* 集群支持的性能基线列表(仅当资源池支持性能基线时返回) */ NetworkType string `json:"networkType"` /* 集群的网络类型(tcp/o2ib) */ EbmDeviceTypes []string `json:"ebmDeviceTypes"` /* 集群支持的裸金属设备规格列表 */ }
type HpfsListClusterReturnObjResponse ¶
type HpfsListClusterReturnObjResponse struct { ClusterList []*HpfsListClusterReturnObjClusterListResponse `json:"clusterList"` /* 返回的集群列表 */ TotalCount int32 `json:"totalCount"` /* 某资源池指定条件下集群总数 */ CurrentCount int32 `json:"currentCount"` /* 当前页码下查询回来的集群数 */ PageSize int32 `json:"pageSize"` /* 每页包含的元素个数范围(1-50) */ PageNo int32 `json:"pageNo"` /* 列表的分页页码 */ }
type HpfsListDataflowApi ¶
type HpfsListDataflowApi struct {
// contains filtered or unexported fields
}
func NewHpfsListDataflowApi ¶
func NewHpfsListDataflowApi(client *core.CtyunClient) *HpfsListDataflowApi
func (*HpfsListDataflowApi) Do ¶
func (a *HpfsListDataflowApi) Do(ctx context.Context, credential core.Credential, req *HpfsListDataflowRequest) (*HpfsListDataflowResponse, error)
type HpfsListDataflowRequest ¶
type HpfsListDataflowRequest struct { RegionID string `json:"regionID,omitempty"` /* 资源池 ID */ AzName string `json:"azName,omitempty"` /* 多可用区下的可用区名字,不传为查询全部 */ SfsUID string `json:"sfsUID,omitempty"` /* 数据流动策略所属并行文件UID */ PageSize int32 `json:"pageSize,omitempty"` /* 每页包含的元素个数范围(1-50),默认值为10 */ PageNo int32 `json:"pageNo,omitempty"` /* 列表的分页页码,默认值为1 */ }
type HpfsListDataflowResponse ¶
type HpfsListDataflowResponse struct { StatusCode int32 `json:"statusCode"` /* 返回状态码(800 为成功,900 为失败) */ Message string `json:"message"` /* 响应描述 */ Description string `json:"description"` /* 响应描述 */ ReturnObj *HpfsListDataflowReturnObjResponse `json:"returnObj"` /* 返回对象 */ ErrorCode string `json:"errorCode"` /* 业务细分码,为 product.module.code 三段式码 */ Error string `json:"error"` /* 业务细分码,为product.module.code三段式大驼峰码 */ }
type HpfsListDataflowReturnObjDataflowListResponse ¶
type HpfsListDataflowReturnObjDataflowListResponse struct { RegionID string `json:"regionID"` /* 资源池id */ DataflowID string `json:"dataflowID"` /* 数据流动策略id */ SfsUID string `json:"sfsUID"` /* 并行文件唯一id */ SfsDirectory string `json:"sfsDirectory"` /* 并行文件下目录 */ BucketName string `json:"bucketName"` /* 对象存储的桶名称 */ BucketPrefix string `json:"bucketPrefix"` /* 对象存储桶的前缀 */ AutoImport *bool `json:"autoImport"` /* 是否打开自动导入 */ AutoExport *bool `json:"autoExport"` /* 是否打开自动导出 */ ImportDataType string `json:"importDataType"` /* 导入的数据类型 */ ExportDataType string `json:"exportDataType"` /* 导出的数据类型 */ ImportTrigger string `json:"importTrigger"` /* 导入的触发条件,多个条件用英文逗号隔开 */ ExportTrigger string `json:"exportTrigger"` /* 导出的触发条件,多个条件用英文逗号隔开 */ DataflowDescription string `json:"dataflowDescription"` /* 数据流动策略的描述 */ CreateTime int64 `json:"createTime"` /* 数据流动策略创建时间 */ DataflowStatus string `json:"dataflowStatus"` /* 数据流动策略的状态,creating/updating/available/syncing/deleting/fail/error。creating:策略创建中;updating:策略更新中;available:策略可用(未打开自动导入导出开);syncing:策略同步中(打开了自动导入或自动导出,数据持续流动中,即使没有数据正在流动也是同步中);deleting:策略删除中;fail:策略异常(异常原因可见dataflowFailMsg,该状态的策略可更新、可恢复);error:策略创建失败(异常原因可见dataflowFailMsg,该状态的策略只能删除,无法恢复,不占用配额) */ DataflowFailTime int64 `json:"dataflowFailTime"` /* 数据流动策略异常发生时间,当数据流动策略状态dataflowStatus为fail或error才有此字段 */ DataflowFailMsg string `json:"dataflowFailMsg"` /* 数据流动策略异常原因,当数据流动策略状态dataflowStatus为fail或error才有此字段 */ AzName string `json:"azName"` /* 多可用区下的可用区名字 */ }
type HpfsListDataflowReturnObjResponse ¶
type HpfsListDataflowReturnObjResponse struct { DataflowList []*HpfsListDataflowReturnObjDataflowListResponse `json:"dataflowList"` /* 返回的数据流动策略列表 */ TotalCount int32 `json:"totalCount"` /* 资源池下用户数据流动策略总数 */ CurrentCount int32 `json:"currentCount"` /* 当前页码下查询回来的用户数据流动策略数 */ PageSize int32 `json:"pageSize"` /* 每页包含的元素个数范围(1-50) */ PageNo int32 `json:"pageNo"` /* 列表的分页页码 */ }
type HpfsListDataflowtaskApi ¶
type HpfsListDataflowtaskApi struct {
// contains filtered or unexported fields
}
func NewHpfsListDataflowtaskApi ¶
func NewHpfsListDataflowtaskApi(client *core.CtyunClient) *HpfsListDataflowtaskApi
func (*HpfsListDataflowtaskApi) Do ¶
func (a *HpfsListDataflowtaskApi) Do(ctx context.Context, credential core.Credential, req *HpfsListDataflowtaskRequest) (*HpfsListDataflowtaskResponse, error)
type HpfsListDataflowtaskRequest ¶
type HpfsListDataflowtaskRequest struct { RegionID string `json:"regionID,omitempty"` /* 资源池 ID */ AzName string `json:"azName,omitempty"` /* 多可用区下的可用区名字,不传为查询全部 */ SfsUID string `json:"sfsUID,omitempty"` /* 并行文件UID */ DataflowID string `json:"dataflowID,omitempty"` /* 数据流动策略ID */ TaskStatus string `json:"taskStatus,omitempty"` /* 数据流动任务状态(creating/executing/completed/canceling/fail) */ TaskType string `json:"taskType,omitempty"` /* 数据流动任务类型(import_data/import_metadata/export_data) */ PageSize int32 `json:"pageSize,omitempty"` /* 每页包含的元素个数范围(1-50),默认值为10 */ PageNo int32 `json:"pageNo,omitempty"` /* 列表的分页页码,默认值为1 */ }
type HpfsListDataflowtaskResponse ¶
type HpfsListDataflowtaskResponse struct { StatusCode int32 `json:"statusCode"` /* 返回状态码(800 为成功,900 为失败) */ Message string `json:"message"` /* 响应描述 */ Description string `json:"description"` /* 响应描述 */ ReturnObj *HpfsListDataflowtaskReturnObjResponse `json:"returnObj"` /* 返回对象 */ ErrorCode string `json:"errorCode"` /* 业务细分码,为 product.module.code 三段式码 */ Error string `json:"error"` /* 业务细分码,为product.module.code三段式大驼峰码 */ }
type HpfsListDataflowtaskReturnObjResponse ¶
type HpfsListDataflowtaskReturnObjResponse struct { TaskList []*HpfsListDataflowtaskReturnObjTaskListResponse `json:"taskList"` /* 返回的数据流动任务列表 */ TotalCount int32 `json:"totalCount"` /* 指定条件下用户数据流动任务总数 */ CurrentCount int32 `json:"currentCount"` /* 当前页码下查询回来的用户数据流动任务数 */ PageSize int32 `json:"pageSize"` /* 每页包含的元素个数范围(1-50) */ PageNo int32 `json:"pageNo"` /* 列表的分页页码 */ }
type HpfsListDataflowtaskReturnObjTaskListResponse ¶
type HpfsListDataflowtaskReturnObjTaskListResponse struct { RegionID string `json:"regionID"` /* 资源池id */ TaskID string `json:"taskID"` /* 数据流动任务id */ DataflowID string `json:"dataflowID"` /* 数据流动策略id */ SfsUID string `json:"sfsUID"` /* 并行文件唯一id */ SfsDirectory string `json:"sfsDirectory"` /* 并行文件下目录 */ BucketName string `json:"bucketName"` /* 对象存储的桶名称 */ BucketPrefix string `json:"bucketPrefix"` /* 对象存储桶的前缀 */ TaskType string `json:"taskType"` /* 任务类型(import_data/import_metadata/export_data) */ TaskDescription string `json:"taskDescription"` /* 数据流动任务的描述 */ TaskStatus string `json:"taskStatus"` /* 数据流动任务的状态,creating/executing/completed/canceling/fail。creating:任务创建中;executing:任务执行中;completed:任务已完成;canceling:任务取消中(可能是任务失败正在取消,也可能是策略删除任务正在取消);fail:任务异常(异常原因可见failMsg,异常的任务不可恢复) */ CreateTime int64 `json:"createTime"` /* 数据流动任务创建时间 */ StartTime int64 `json:"startTime"` /* 数据流动任务开始时间 */ CompleteTime int64 `json:"completeTime"` /* 数据流动任务完成时间 */ CancelTime int64 `json:"cancelTime"` /* 数据流动任务取消时间 */ FailTime int64 `json:"failTime"` /* 数据流动任务异常发生时间 */ FailMsg string `json:"failMsg"` /* 数据流动任务异常原因 */ AzName string `json:"azName"` /* 多可用区下的可用区名字 */ }
type HpfsListProtocolServiceApi ¶
type HpfsListProtocolServiceApi struct {
// contains filtered or unexported fields
}
func NewHpfsListProtocolServiceApi ¶
func NewHpfsListProtocolServiceApi(client *core.CtyunClient) *HpfsListProtocolServiceApi
func (*HpfsListProtocolServiceApi) Do ¶
func (a *HpfsListProtocolServiceApi) Do(ctx context.Context, credential core.Credential, req *HpfsListProtocolServiceRequest) (*HpfsListProtocolServiceResponse, error)
type HpfsListProtocolServiceRequest ¶
type HpfsListProtocolServiceRequest struct { RegionID string `json:"regionID,omitempty"` /* 资源池 ID,例:100054c0416811e9a6690242ac110002 */ AzName string `json:"azName,omitempty"` /* 多可用区下的可用区名字,不传为查询全部 */ SfsUID string `json:"sfsUID,omitempty"` /* 并行文件唯一id */ ProtocolServiceStatus string `json:"protocolServiceStatus,omitempty"` /* 协议状态 */ ProtocolSpec string `json:"protocolSpec,omitempty"` /* 协议规格 */ ProtocolType string `json:"protocolType,omitempty"` /* 协议类型 */ PageSize int32 `json:"pageSize,omitempty"` /* 每页包含的元素个数范围(1-50),默认值为10 */ PageNo int32 `json:"pageNo,omitempty"` /* 列表的分页页码,默认值为1 */ }
type HpfsListProtocolServiceResponse ¶
type HpfsListProtocolServiceResponse struct { StatusCode int32 `json:"statusCode"` /* 返回状态码(800为成功,900为处理中/失败,详见errorCode) */ Message string `json:"message"` /* 响应描述 */ Description string `json:"description"` /* 响应描述 */ ReturnObj *HpfsListProtocolServiceReturnObjResponse `json:"returnObj"` /* 返回对象 */ ErrorCode string `json:"errorCode"` /* 业务细分码,为 product.module.code 三段式码 */ Error string `json:"error"` /* 业务细分码,为product.module.code三段式大驼峰码 */ }
type HpfsListRegionApi ¶
type HpfsListRegionApi struct {
// contains filtered or unexported fields
}
func NewHpfsListRegionApi ¶
func NewHpfsListRegionApi(client *core.CtyunClient) *HpfsListRegionApi
func (*HpfsListRegionApi) Do ¶
func (a *HpfsListRegionApi) Do(ctx context.Context, credential core.Credential, req *HpfsListRegionRequest) (*HpfsListRegionResponse, error)
type HpfsListRegionRequest ¶
type HpfsListRegionResponse ¶
type HpfsListRegionResponse struct { StatusCode int32 `json:"statusCode"` /* 返回状态码(800 为成功,900 为失败) */ Message string `json:"message"` /* 响应描述 */ Description string `json:"description"` /* 响应描述 */ ReturnObj *HpfsListRegionReturnObjResponse `json:"returnObj"` /* 返回对象 */ ErrorCode string `json:"errorCode"` /* 业务细分码,为 product.module.code 三段式码 */ Error string `json:"error"` /* 业务细分码,为product.module.code三段式大驼峰码 */ }
type HpfsListRegionReturnObjResponse ¶
type HpfsListRegionReturnObjResponse struct { RegionList []*HpfsListRegionReturnObjRegionListResponse `json:"regionList"` /* 查询的地域详情列表 */ TotalCount int32 `json:"totalCount"` /* 支持并行文件的地域总数 */ CurrentCount int32 `json:"currentCount"` /* 当前页码的元素个数 */ PageSize int32 `json:"pageSize"` /* 每页个数 */ PageNo int32 `json:"pageNo"` /* 当前页数 */ }
type HpfsListSfsApi ¶
type HpfsListSfsApi struct {
// contains filtered or unexported fields
}
func NewHpfsListSfsApi ¶
func NewHpfsListSfsApi(client *core.CtyunClient) *HpfsListSfsApi
func (*HpfsListSfsApi) Do ¶
func (a *HpfsListSfsApi) Do(ctx context.Context, credential core.Credential, req *HpfsListSfsRequest) (*HpfsListSfsResponse, error)
type HpfsListSfsByClusterApi ¶
type HpfsListSfsByClusterApi struct {
// contains filtered or unexported fields
}
func NewHpfsListSfsByClusterApi ¶
func NewHpfsListSfsByClusterApi(client *core.CtyunClient) *HpfsListSfsByClusterApi
func (*HpfsListSfsByClusterApi) Do ¶
func (a *HpfsListSfsByClusterApi) Do(ctx context.Context, credential core.Credential, req *HpfsListSfsByClusterRequest) (*HpfsListSfsByClusterResponse, error)
type HpfsListSfsByClusterRequest ¶
type HpfsListSfsByClusterRequest struct { RegionID string `json:"regionID,omitempty"` /* 资源池 ID */ AzName string `json:"azName,omitempty"` /* 可用区名称,多可用区下必填 */ ClusterName string `json:"clusterName,omitempty"` /* 集群名称 */ ProjectID string `json:"projectID,omitempty"` /* 资源所属企业项目 ID,默认为"0" */ PageSize int32 `json:"pageSize,omitempty"` /* 每页包含的元素个数范围(1-50),默认值为10 */ PageNo int32 `json:"pageNo,omitempty"` /* 列表的分页页码,默认值为1 */ }
type HpfsListSfsByClusterResponse ¶
type HpfsListSfsByClusterResponse struct { StatusCode int32 `json:"statusCode"` /* 返回状态码(800 为成功,900 为失败) */ Message string `json:"message"` /* 响应描述 */ Description string `json:"description"` /* 响应描述 */ ReturnObj *HpfsListSfsByClusterReturnObjResponse `json:"returnObj"` /* 返回对象 */ ErrorCode string `json:"errorCode"` /* 业务细分码,为 product.module.code 三段式码 */ Error string `json:"error"` /* 业务细分码,为product.module.code三段式大驼峰码 */ }
type HpfsListSfsByClusterReturnObjListResponse ¶
type HpfsListSfsByClusterReturnObjListResponse struct { SfsName string `json:"sfsName"` /* 并行文件命名 */ SfsUID string `json:"sfsUID"` /* 并行文件唯一 ID */ SfsSize int32 `json:"sfsSize"` /* 大小(GB) */ SfsType string `json:"sfsType"` /* 类型,hpfs_perf(HPC性能型) */ SfsProtocol string `json:"sfsProtocol"` /* 挂载协议,nfs/hpfs */ SfsStatus string `json:"sfsStatus"` /* 并行文件状态 */ UsedSize int32 `json:"usedSize"` /* 已用大小(MB) */ CreateTime int64 `json:"createTime"` /* 创建时刻,epoch 时戳,精度毫秒 */ UpdateTime int64 `json:"updateTime"` /* 更新时刻,epoch 时戳,精度毫秒 */ ProjectID string `json:"projectID"` /* 资源所属企业项目 ID */ OnDemand *bool `json:"onDemand"` /* 是否按需订购 */ RegionID string `json:"regionID"` /* 资源池 ID */ AzName string `json:"azName"` /* 多可用区下的可用区名字 */ ClusterName string `json:"clusterName"` /* 集群名称 */ Baseline string `json:"baseline"` /* 性能基线(MB/s/TB) */ SecretKey string `json:"secretKey"` /* HPC型挂载需要的密钥 */ DataflowList []string `json:"dataflowList"` /* HPFS文件系统下的数据流动策略ID列表 */ DataflowCount int32 `json:"dataflowCount"` /* HPFS文件系统下的数据流动策略数量 */ }
type HpfsListSfsByClusterReturnObjResponse ¶
type HpfsListSfsByClusterReturnObjResponse struct { List []*HpfsListSfsByClusterReturnObjListResponse `json:"list"` /* 文件系统详情列表 */ Total int32 `json:"total"` /* 指定条件下用户并行文件总数 */ TotalCount int32 `json:"totalCount"` /* 指定条件下用户并行文件总数 */ CurrentCount int32 `json:"currentCount"` /* 当前页码的元素个数 */ PageSize int32 `json:"pageSize"` /* 每页个数 */ PageNo int32 `json:"pageNo"` /* 当前页数 */ }
type HpfsListSfsBySfstypeApi ¶
type HpfsListSfsBySfstypeApi struct {
// contains filtered or unexported fields
}
func NewHpfsListSfsBySfstypeApi ¶
func NewHpfsListSfsBySfstypeApi(client *core.CtyunClient) *HpfsListSfsBySfstypeApi
func (*HpfsListSfsBySfstypeApi) Do ¶
func (a *HpfsListSfsBySfstypeApi) Do(ctx context.Context, credential core.Credential, req *HpfsListSfsBySfstypeRequest) (*HpfsListSfsBySfstypeResponse, error)
type HpfsListSfsBySfstypeRequest ¶
type HpfsListSfsBySfstypeRequest struct { RegionID string `json:"regionID,omitempty"` /* 资源池 ID */ AzName string `json:"azName,omitempty"` /* 可用区名称,多可用区下必填 */ SfsType string `json:"sfsType,omitempty"` /* 存储类型 */ ProjectID string `json:"projectID,omitempty"` /* 资源所属企业项目 ID,默认为"0" */ PageSize int32 `json:"pageSize,omitempty"` /* 每页包含的元素个数范围(1-50),默认值为10 */ PageNo int32 `json:"pageNo,omitempty"` /* 列表的分页页码,默认值为1 */ }
type HpfsListSfsBySfstypeResponse ¶
type HpfsListSfsBySfstypeResponse struct { StatusCode int32 `json:"statusCode"` /* 返回状态码(800 为成功,900 为失败) */ Message string `json:"message"` /* 响应描述 */ Description string `json:"description"` /* 响应描述 */ ReturnObj *HpfsListSfsBySfstypeReturnObjResponse `json:"returnObj"` /* 返回对象 */ ErrorCode string `json:"errorCode"` /* 业务细分码,为 product.module.code 三段式码 */ Error string `json:"error"` /* 业务细分码,为product.module.code三段式大驼峰码 */ }
type HpfsListSfsBySfstypeReturnObjListResponse ¶
type HpfsListSfsBySfstypeReturnObjListResponse struct { SfsName string `json:"sfsName"` /* 并行文件命名 */ SfsUID string `json:"sfsUID"` /* 并行文件唯一 ID */ SfsSize int32 `json:"sfsSize"` /* 大小(GB) */ SfsType string `json:"sfsType"` /* 类型,hpfs_perf(HPC性能型) */ SfsProtocol string `json:"sfsProtocol"` /* 挂载协议,nfs/hpfs */ SfsStatus string `json:"sfsStatus"` /* 并行文件状态 */ UsedSize int32 `json:"usedSize"` /* 已用大小(MB) */ CreateTime int64 `json:"createTime"` /* 创建时刻,epoch 时戳,精度毫秒 */ UpdateTime int64 `json:"updateTime"` /* 更新时刻,epoch 时戳,精度毫秒 */ ProjectID string `json:"projectID"` /* 资源所属企业项目 ID */ OnDemand *bool `json:"onDemand"` /* 是否按需订购 */ RegionID string `json:"regionID"` /* 资源池 ID */ AzName string `json:"azName"` /* 多可用区下的可用区名字 */ ClusterName string `json:"clusterName"` /* 集群名称 */ Baseline string `json:"baseline"` /* 性能基线(MB/s/TB) */ SecretKey string `json:"secretKey"` /* HPC型挂载需要的密钥 */ DataflowList []string `json:"dataflowList"` /* HPFS文件系统下的数据流动策略ID列表 */ DataflowCount int32 `json:"dataflowCount"` /* HPFS文件系统下的数据流动策略数量 */ }
type HpfsListSfsBySfstypeReturnObjResponse ¶
type HpfsListSfsBySfstypeReturnObjResponse struct { List []*HpfsListSfsBySfstypeReturnObjListResponse `json:"list"` /* 文件系统详情列表 */ Total int32 `json:"total"` /* 资源池下用户并行文件总数 */ TotalCount int32 `json:"totalCount"` /* 当前目录下文件总数 */ CurrentCount int32 `json:"currentCount"` /* 当前页码的元素个数 */ PageSize int32 `json:"pageSize"` /* 每页个数 */ PageNo int32 `json:"pageNo"` /* 当前页数 */ }
type HpfsListSfsRequest ¶
type HpfsListSfsRequest struct { RegionID string `json:"regionID,omitempty"` /* 资源池 ID */ SfsStatus string `json:"sfsStatus,omitempty"` /* 并行文件状态。creating/available/unusable,不传为查询全部 */ SfsProtocol string `json:"sfsProtocol,omitempty"` /* 挂载协议。2 种,nfs/hpfs ,不传为查询全部 */ AzName string `json:"azName,omitempty"` /* 多可用区下的可用区名字,不传为查询全部 */ ProjectID string `json:"projectID,omitempty"` /* 资源所属企业项目 ID,默认为"0" */ PageSize int32 `json:"pageSize,omitempty"` /* 每页包含的元素个数范围(1-50),默认值为10 */ PageNo int32 `json:"pageNo,omitempty"` /* 列表的分页页码,默认值为1 */ }
type HpfsListSfsResponse ¶
type HpfsListSfsResponse struct { StatusCode int32 `json:"statusCode"` /* 返回状态码(800 为成功,900 为失败) */ Message string `json:"message"` /* 响应描述 */ Description string `json:"description"` /* 响应描述 */ ReturnObj *HpfsListSfsReturnObjResponse `json:"returnObj"` /* 返回对象 */ ErrorCode string `json:"errorCode"` /* 业务细分码,为 product.module.code 三段式码 */ Error string `json:"error"` /* 业务细分码,为product.module.code三段式大驼峰码 */ }
type HpfsListSfsReturnObjListResponse ¶
type HpfsListSfsReturnObjListResponse struct { SfsName string `json:"sfsName"` /* 并行文件命名 */ SfsUID string `json:"sfsUID"` /* 并行文件唯一 ID */ SfsSize int32 `json:"sfsSize"` /* 大小(GB) */ SfsType string `json:"sfsType"` /* 类型,hpfs_perf(HPC性能型) */ SfsProtocol string `json:"sfsProtocol"` /* 挂载协议,nfs/hpfs */ SfsStatus string `json:"sfsStatus"` /* 并行文件状态 */ UsedSize int32 `json:"usedSize"` /* 已用大小(MB) */ CreateTime int64 `json:"createTime"` /* 创建时刻,epoch 时戳,精度毫秒 */ UpdateTime int64 `json:"updateTime"` /* 更新时刻,epoch 时戳,精度毫秒 */ ProjectID string `json:"projectID"` /* 资源所属企业项目 ID */ OnDemand *bool `json:"onDemand"` /* 是否按需订购 */ RegionID string `json:"regionID"` /* 资源池 ID */ AzName string `json:"azName"` /* 多可用区下的可用区名字 */ ClusterName string `json:"clusterName"` /* 集群名称 */ Baseline string `json:"baseline"` /* 性能基线(MB/s/TB) */ SecretKey string `json:"secretKey"` /* HPC型挂载需要的密钥 */ DataflowList []string `json:"dataflowList"` /* HPFS文件系统下的数据流动策略ID列表 */ DataflowCount int32 `json:"dataflowCount"` /* HPFS文件系统下的数据流动策略数量 */ }
type HpfsListSfsReturnObjResponse ¶
type HpfsListSfsReturnObjResponse struct { List []*HpfsListSfsReturnObjListResponse `json:"list"` /* 返回的文件列表 */ TotalCount int32 `json:"totalCount"` /* 资源池下用户并行文件总数 */ CurrentCount int32 `json:"currentCount"` /* 当前页码下查询回来的用户并行文件数 */ Total int32 `json:"total"` /* 资源池下用户并行文件总数 */ PageSize int32 `json:"pageSize"` /* 每页包含的元素个数范围(1-50) */ PageNo int32 `json:"pageNo"` /* 列表的分页页码 */ }
type HpfsListZoneApi ¶
type HpfsListZoneApi struct {
// contains filtered or unexported fields
}
func NewHpfsListZoneApi ¶
func NewHpfsListZoneApi(client *core.CtyunClient) *HpfsListZoneApi
func (*HpfsListZoneApi) Do ¶
func (a *HpfsListZoneApi) Do(ctx context.Context, credential core.Credential, req *HpfsListZoneRequest) (*HpfsListZoneResponse, error)
type HpfsListZoneRequest ¶
type HpfsListZoneResponse ¶
type HpfsListZoneResponse struct { StatusCode int32 `json:"statusCode"` /* 返回状态码(800 为成功,900 为失败) */ Message string `json:"message"` /* 响应描述 */ Description string `json:"description"` /* 响应描述 */ ReturnObj *HpfsListZoneReturnObjResponse `json:"returnObj"` /* 返回对象 */ ErrorCode string `json:"errorCode"` /* 业务细分码,为 product.module.code 三段式码 */ Error string `json:"error"` /* 业务细分码,为product.module.code三段式大驼峰码 */ }
type HpfsListZoneReturnObjResponse ¶
type HpfsListZoneReturnObjResponse struct { ZoneList []*HpfsListZoneReturnObjZoneListResponse `json:"zoneList"` /* 查询的可用区列表 */ TotalCount int32 `json:"totalCount"` /* 当前资源池下可用区总数 */ CurrentCount int32 `json:"currentCount"` /* 当前页码的元素个数 */ PageSize int32 `json:"pageSize"` /* 每页个数 */ PageNo int32 `json:"pageNo"` /* 当前页数 */ }
type HpfsNewDataflowApi ¶
type HpfsNewDataflowApi struct {
// contains filtered or unexported fields
}
func NewHpfsNewDataflowApi ¶
func NewHpfsNewDataflowApi(client *core.CtyunClient) *HpfsNewDataflowApi
func (*HpfsNewDataflowApi) Do ¶
func (a *HpfsNewDataflowApi) Do(ctx context.Context, credential core.Credential, req *HpfsNewDataflowRequest) (*HpfsNewDataflowResponse, error)
type HpfsNewDataflowRequest ¶
type HpfsNewDataflowRequest struct { RegionID string `json:"regionID,omitempty"` /* 资源池 ID */ SfsUID string `json:"sfsUID,omitempty"` /* 并行文件唯一id */ SfsDirectory string `json:"sfsDirectory,omitempty"` /* 并行文件目录,目录名仅允许数字、字母、下划线、连接符、中文组成,每级目录最大长度为255字节,最大全路径长度为4096字节,如果参数为mydir/、mydir、/mydir或/mydir/,则都视为输入/mydir的目录 */ BucketName string `json:"bucketName,omitempty"` /* 对象存储的桶名称 */ BucketPrefix string `json:"bucketPrefix,omitempty"` /* 对象存储桶的前缀 */ AutoImport bool `json:"autoImport"` /* 是否打开自动导入 */ AutoExport bool `json:"autoExport"` /* 是否打开自动导出 */ ImportDataType string `json:"importDataType,omitempty"` /* 导入的数据类型,data/metadata,自动导入开关打开时必填 */ ExportDataType string `json:"exportDataType,omitempty"` /* 导出的数据类型,仅支持data,自动导出开关打开时必填 */ ImportTrigger string `json:"importTrigger,omitempty"` /* 导入的触发条件,仅支持new(创建),自动导入开关打开时必填 */ ExportTrigger string `json:"exportTrigger,omitempty"` /* 导出的触发条件,支持new(创建)/changed(新增+修改)自动导出开关打开时必填 */ DataflowDescription string `json:"dataflowDescription,omitempty"` /* 数据流动策略的描述,最高支持128字符 */ }
type HpfsNewDataflowResponse ¶
type HpfsNewDataflowResponse struct { StatusCode int32 `json:"statusCode"` /* 返回状态码(800 为成功,900 为失败) */ Message string `json:"message"` /* 响应描述 */ Description string `json:"description"` /* 响应描述 */ ReturnObj *HpfsNewDataflowReturnObjResponse `json:"returnObj"` /* 返回对象 */ ErrorCode string `json:"errorCode"` /* 业务细分码,为 product.module.code 三段式码 */ Error string `json:"error"` /* 业务细分码,为product.module.code三段式大驼峰码 */ }
type HpfsNewDataflowReturnObjResponse ¶
type HpfsNewDataflowReturnObjResponse struct { RegionID string `json:"regionID"` /* 资源所属资源池 ID */ Resources []*HpfsNewDataflowReturnObjResourcesResponse `json:"resources"` /* 资源明细 */ }
type HpfsNewDataflowtaskApi ¶
type HpfsNewDataflowtaskApi struct {
// contains filtered or unexported fields
}
func NewHpfsNewDataflowtaskApi ¶
func NewHpfsNewDataflowtaskApi(client *core.CtyunClient) *HpfsNewDataflowtaskApi
func (*HpfsNewDataflowtaskApi) Do ¶
func (a *HpfsNewDataflowtaskApi) Do(ctx context.Context, credential core.Credential, req *HpfsNewDataflowtaskRequest) (*HpfsNewDataflowtaskResponse, error)
type HpfsNewDataflowtaskRequest ¶
type HpfsNewDataflowtaskRequest struct { RegionID string `json:"regionID,omitempty"` /* 资源池 ID */ SfsUID string `json:"sfsUID,omitempty"` /* 并行文件唯一ID */ DataflowID string `json:"dataflowID,omitempty"` /* 数据流动策略ID */ TaskType string `json:"taskType,omitempty"` /* 数据流动任务类型(目前支持import_data/import_metadata/export_data) */ TaskDescription string `json:"taskDescription,omitempty"` /* 数据流动策略的描述,最高支持128字符 */ }
type HpfsNewDataflowtaskResponse ¶
type HpfsNewDataflowtaskResponse struct { StatusCode int32 `json:"statusCode"` /* 返回状态码(800 为成功,900 为失败) */ Message string `json:"message"` /* 响应描述 */ Description string `json:"description"` /* 响应描述 */ ReturnObj *HpfsNewDataflowtaskReturnObjResponse `json:"returnObj"` /* 返回对象 */ ErrorCode string `json:"errorCode"` /* 业务细分码,为 product.module.code 三段式码 */ Error string `json:"error"` /* 业务细分码,为product.module.code三段式大驼峰码 */ }
type HpfsNewDataflowtaskReturnObjResponse ¶
type HpfsNewDataflowtaskReturnObjResponse struct { RegionID string `json:"regionID"` /* 资源所属资源池 ID */ Resources []*HpfsNewDataflowtaskReturnObjResourcesResponse `json:"resources"` /* 资源明细 */ }
type HpfsNewDirectoryApi ¶
type HpfsNewDirectoryApi struct {
// contains filtered or unexported fields
}
func NewHpfsNewDirectoryApi ¶
func NewHpfsNewDirectoryApi(client *core.CtyunClient) *HpfsNewDirectoryApi
func (*HpfsNewDirectoryApi) Do ¶
func (a *HpfsNewDirectoryApi) Do(ctx context.Context, credential core.Credential, req *HpfsNewDirectoryRequest) (*HpfsNewDirectoryResponse, error)
type HpfsNewDirectoryRequest ¶
type HpfsNewDirectoryRequest struct { RegionID string `json:"regionID,omitempty"` /* 资源池 ID */ SfsUID string `json:"sfsUID,omitempty"` /* 并行文件唯一ID */ SfsDirectory string `json:"sfsDirectory,omitempty"` /* 并行文件目录,目录名仅允许数字、字母、下划线、连接符、中文组成,每级目录最大长度为255字节,最大全路径长度为4096字节,最大目录层数为1000,如果参数为mydir/、mydir、/mydir或/mydir/,则都视为输入/mydir的目录 */ SfsDirectoryMode string `json:"sfsDirectoryMode,omitempty"` /* 目录权限,默认值是755,若传入则必须为三位,每位的范围为0到7。第一位表示目录所有者的权限,第二位表示目录所属用户组的权限,第三位表示其他用户的权限。目录所有者由uid指定,目录所属用户组由gid指定,不是目录所有者且不在目录所属用户组的用户为其他用户。例如:755中第一位7代表该目录所有者对该目录具有读、写、执行权限;第二位5代表该目录所属用户组对该目录具有读、执行权限;第三位5代表其他用户对该目录具有读、执行权限 */ SfsDirectoryUID int64 `json:"sfsDirectoryUID,omitempty"` /* 目录所有者的用户id,默认值是0,取值范围是0到4,294,967,294(即2^32-2) */ SfsDirectoryGID int64 `json:"sfsDirectoryGID,omitempty"` /* 目录所属用户组id,默认值是0,取值范围是0到4,294,967,294(即2^32-2) */ }
type HpfsNewDirectoryResponse ¶
type HpfsNewDirectoryResponse struct { StatusCode int32 `json:"statusCode"` /* 返回状态码(800 为成功,900 为失败) */ Message string `json:"message"` /* 响应描述 */ Description string `json:"description"` /* 响应描述 */ ErrorCode string `json:"errorCode"` /* 业务细分码,为 product.module.code 三段式码 */ Error string `json:"error"` /* 业务细分码,为product.module.code三段式大驼峰码 */ }
type HpfsNewProtocolServiceApi ¶
type HpfsNewProtocolServiceApi struct {
// contains filtered or unexported fields
}
func NewHpfsNewProtocolServiceApi ¶
func NewHpfsNewProtocolServiceApi(client *core.CtyunClient) *HpfsNewProtocolServiceApi
func (*HpfsNewProtocolServiceApi) Do ¶
func (a *HpfsNewProtocolServiceApi) Do(ctx context.Context, credential core.Credential, req *HpfsNewProtocolServiceRequest) (*HpfsNewProtocolServiceResponse, error)
type HpfsNewProtocolServiceRequest ¶
type HpfsNewProtocolServiceRequest struct { RegionID string `json:"regionID,omitempty"` /* 资源池 ID,例:100054c0416811e9a6690242ac110002 */ SfsUID string `json:"sfsUID,omitempty"` /* 并行文件唯一ID */ ProtocolSpec string `json:"protocolSpec,omitempty"` /* 协议服务规格,目前仅支持general(通用型) */ ProtocolType string `json:"protocolType,omitempty"` /* 协议服务的协议类型,目前仅支持nfs */ VpcID string `json:"vpcID,omitempty"` /* 虚拟网 ID */ SubnetID string `json:"subnetID,omitempty"` /* 子网 ID,3.0资源池必填,4.0资源池若isVpce为true则必填 */ IsVpce *bool `json:"isVpce"` /* 是否创建终端节点,默认false,仅4.0资源池生效 */ IpVersion int32 `json:"ipVersion,omitempty"` /* 终端节点的类型,0:ipv4,1:ipv6,2:双栈,默认为0,仅isVpce为true时生效,仅4.0资源池生效 */ ProtocolDescrption string `json:"protocolDescrption,omitempty"` /* 协议服务的描述,最高支持128字符 */ }
type HpfsNewProtocolServiceResponse ¶
type HpfsNewProtocolServiceResponse struct { StatusCode int32 `json:"statusCode"` /* 返回状态码(800为成功,900为处理中/失败,详见errorCode) */ Message string `json:"message"` /* 响应描述 */ Description string `json:"description"` /* 响应描述 */ ReturnObj *HpfsNewProtocolServiceReturnObjResponse `json:"returnObj"` /* 返回对象 */ ErrorCode string `json:"errorCode"` /* 业务细分码,为 product.module.code 三段式码 */ Error string `json:"error"` /* 业务细分码,为product.module.code三段式大驼峰码 */ }
type HpfsNewProtocolServiceReturnObjResponse ¶
type HpfsNewProtocolServiceReturnObjResponse struct { RegionID string `json:"regionID"` /* 资源所属资源池 ID */ Resources []*HpfsNewProtocolServiceReturnObjResourcesResponse `json:"resources"` /* 资源明细 */ }
type HpfsNewSfsApi ¶
type HpfsNewSfsApi struct {
// contains filtered or unexported fields
}
func NewHpfsNewSfsApi ¶
func NewHpfsNewSfsApi(client *core.CtyunClient) *HpfsNewSfsApi
func (*HpfsNewSfsApi) Do ¶
func (a *HpfsNewSfsApi) Do(ctx context.Context, credential core.Credential, req *HpfsNewSfsRequest) (*HpfsNewSfsResponse, error)
type HpfsNewSfsRequest ¶
type HpfsNewSfsRequest struct { ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。要求单个云平台账户内唯一 */ RegionID string `json:"regionID,omitempty"` /* 资源池 ID,例:100054c0416811e9a6690242ac110002 */ ProjectID string `json:"projectID,omitempty"` /* 资源所属企业项目 ID,默认为"0" */ SfsType string `json:"sfsType,omitempty"` /* 并行文件类型,hpfs_perf(HPC性能型) */ SfsProtocol string `json:"sfsProtocol,omitempty"` /* 协议类型,nfs/hpfs */ OnDemand *bool `json:"onDemand"` /* 是否按需下单。true/false,默认为 true */ CycleType string `json:"cycleType,omitempty"` /* 包周期(subscription)类型,year/month。onDemand 为 false 时,必须指定 */ CycleCount int32 `json:"cycleCount,omitempty"` /* 包周期数。onDemand 为 false 时必须指定。周期最大长度不能超过 3 年 */ SfsName string `json:"sfsName,omitempty"` /* 并行文件名。单账户单资源池下,命名需唯一 */ SfsSize int32 `json:"sfsSize,omitempty"` /* 大小,单位 GB, 起始容量512,步长为512 */ AzName string `json:"azName,omitempty"` /* 多可用区资源池下,必须指定可用区 */ ClusterName string `json:"clusterName,omitempty"` /* 集群名称,仅资源池支持指定集群时可传入该参数 */ Baseline string `json:"baseline,omitempty"` /* 性能基线(MB/s/TB),仅资源池支持性能基线时可传入该参数 */ Vpc string `json:"vpc,omitempty"` /* 虚拟网 ID,标准协议必填,hpfs协议不作校验 */ Subnet string `json:"subnet,omitempty"` /* 子网 ID,标准协议必填,hpfs协议不作校验 */ }
type HpfsNewSfsResponse ¶
type HpfsNewSfsResponse struct { StatusCode int32 `json:"statusCode"` /* 返回状态码(800为成功,900为处理中/失败,详见errorCode) */ Message string `json:"message"` /* 响应描述 */ Description string `json:"description"` /* 响应描述 */ ReturnObj *HpfsNewSfsReturnObjResponse `json:"returnObj"` /* 返回对象 */ ErrorCode string `json:"errorCode"` /* 业务细分码,为 product.module.code 三段式码 */ Error string `json:"error"` /* 业务细分码,为product.module.code三段式大驼峰码 */ }
type HpfsNewSfsReturnObjResourcesResponse ¶
type HpfsNewSfsReturnObjResourcesResponse struct { ResourceID string `json:"resourceID"` /* 单项资源的变配、续订、退订等需要该资源项的 ID。比如某个云主机资源作为主资源,对其挂载 */ ResourceType string `json:"resourceType"` /* 资源类型 */ OrderID string `json:"orderID"` /* 无需关心 */ StartTime int64 `json:"startTime"` /* 启动时刻,epoch 时戳,毫秒精度。例:1589869069561 */ CreateTime int64 `json:"createTime"` /* 创建时刻,epoch 时戳,毫秒精度 */ UpdateTime int64 `json:"updateTime"` /* 更新时刻,epoch 时戳,毫秒精度 */ Status int32 `json:"status"` /* 资源状态 */ IsMaster *bool `json:"isMaster"` /* 是否是主资源项 */ ItemValue int32 `json:"itemValue"` /* 资源大小 */ SfsUID string `json:"sfsUID"` /* 并行文件内部唯一 ID */ SfsStatus string `json:"sfsStatus"` /* 并行文件状态 */ MasterOrderID string `json:"masterOrderID"` /* 订单 ID */ SfsName string `json:"sfsName"` /* 并行文件名字 */ MasterResourceID string `json:"masterResourceID"` /* 主资源 ID */ }
type HpfsNewSfsReturnObjResponse ¶
type HpfsNewSfsReturnObjResponse struct { MasterOrderID string `json:"masterOrderID"` /* 订单 ID。调用方在拿到 masterOrderID 之后,在若干错误情况下,可以使用 materOrderID 进一步确认订单状态及资源状态 */ MasterOrderNO string `json:"masterOrderNO"` /* 订单号 */ MasterResourceID string `json:"masterResourceID"` /* 主资源 ID */ MasterResourceStatus string `json:"masterResourceStatus"` /* 主资源状态。参考主资源状态 */ RegionID string `json:"regionID"` /* 资源所属资源池 ID */ Resources []*HpfsNewSfsReturnObjResourcesResponse `json:"resources"` /* 资源明细 */ }
type HpfsRefundSfsApi ¶
type HpfsRefundSfsApi struct {
// contains filtered or unexported fields
}
func NewHpfsRefundSfsApi ¶
func NewHpfsRefundSfsApi(client *core.CtyunClient) *HpfsRefundSfsApi
func (*HpfsRefundSfsApi) Do ¶
func (a *HpfsRefundSfsApi) Do(ctx context.Context, credential core.Credential, req *HpfsRefundSfsRequest) (*HpfsRefundSfsResponse, error)
type HpfsRefundSfsErrorDetailResponse ¶
type HpfsRefundSfsErrorDetailResponse struct { BssErrCode string `json:"bssErrCode"` /* bss错误明细码,包含于bss格式化JSON错误信息中 */ BssErrMsg string `json:"bssErrMsg"` /* bss错误信息,包含于bss格式化JSON错误信息中 */ BssOrigErr string `json:"bssOrigErr"` /* 无法明确解码bss错误信息时,原样透出的bss错误信息 */ BssErrPrefixHint string `json:"bssErrPrefixHint"` /* bss格式化JSON错误信息的前置提示信息 */ }
type HpfsRefundSfsRequest ¶
type HpfsRefundSfsResponse ¶
type HpfsRefundSfsResponse struct { StatusCode int32 `json:"statusCode"` /* 返回状态码(800为成功,900为失败,详见errorCode) */ Message string `json:"message"` /* 响应描述 */ Description string `json:"description"` /* 响应描述 */ ReturnObj *HpfsRefundSfsReturnObjResponse `json:"returnObj"` /* 返回对象 */ ErrorCode string `json:"errorCode"` /* 业务细分码,为 product.module.code 三段式码 */ ErrorDetail *HpfsRefundSfsErrorDetailResponse `json:"errorDetail"` /* 错误明细。一般情况下,会对订单侧(bss)的并行文件订单业务相关的错误做明确的错误映射和提升,有唯一对应的errorCode。其他订单侧(bss)的错误,以sfs.order.procFailed的errorCode统一映射返回,并在errorDetail中返回订单侧的详细错误信息 */ Error string `json:"error"` /* 业务细分码,为product.module.code三段式大驼峰码 */ }
type HpfsRenameSfsApi ¶
type HpfsRenameSfsApi struct {
// contains filtered or unexported fields
}
func NewHpfsRenameSfsApi ¶
func NewHpfsRenameSfsApi(client *core.CtyunClient) *HpfsRenameSfsApi
func (*HpfsRenameSfsApi) Do ¶
func (a *HpfsRenameSfsApi) Do(ctx context.Context, credential core.Credential, req *HpfsRenameSfsRequest) (*HpfsRenameSfsResponse, error)
type HpfsRenameSfsRequest ¶
type HpfsRenameSfsResponse ¶
type HpfsRenameSfsResponse struct { StatusCode int32 `json:"statusCode"` /* 返回状态码(800 为成功,900 为失败) */ Message string `json:"message"` /* 响应描述 */ Description string `json:"description"` /* 响应描述 */ ErrorCode string `json:"errorCode"` /* 业务细分码,为 product.module.code 三段式码 */ Error string `json:"error"` /* 业务细分码,为product.module.code三段式大驼峰码 */ }
type HpfsResizeSfsApi ¶
type HpfsResizeSfsApi struct {
// contains filtered or unexported fields
}
func NewHpfsResizeSfsApi ¶
func NewHpfsResizeSfsApi(client *core.CtyunClient) *HpfsResizeSfsApi
func (*HpfsResizeSfsApi) Do ¶
func (a *HpfsResizeSfsApi) Do(ctx context.Context, credential core.Credential, req *HpfsResizeSfsRequest) (*HpfsResizeSfsResponse, error)
type HpfsResizeSfsErrorDetailResponse ¶
type HpfsResizeSfsErrorDetailResponse struct { BssErrCode string `json:"bssErrCode"` /* bss错误明细码,包含于bss格式化JSON错误信息中 */ BssErrMsg string `json:"bssErrMsg"` /* bss错误信息,包含于bss格式化JSON错误信息中 */ BssOrigErr string `json:"bssOrigErr"` /* 无法明确解码bss错误信息时,原样透出的bss错误信息 */ BssErrPrefixHint string `json:"bssErrPrefixHint"` /* bss格式化JSON错误信息的前置提示信息 */ }
type HpfsResizeSfsRequest ¶
type HpfsResizeSfsRequest struct { SfsSize int32 `json:"sfsSize,omitempty"` /* 变配后的大小,单位 GB, 起始容量512,步长为512 */ SfsUID string `json:"sfsUID,omitempty"` /* 资源 ID */ RegionID string `json:"regionID,omitempty"` /* 资源池 ID */ ClientToken string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。要求单个云平台账户内唯一 */ }
type HpfsResizeSfsResponse ¶
type HpfsResizeSfsResponse struct { StatusCode int32 `json:"statusCode"` /* 返回状态码(800为成功,900为处理中/失败,详见errorCode) */ Message string `json:"message"` /* 响应描述 */ Description string `json:"description"` /* 响应描述 */ ReturnObj *HpfsResizeSfsReturnObjResponse `json:"returnObj"` /* 返回对象 */ ErrorCode string `json:"errorCode"` /* 业务细分码,为 product.module.code 三段式码 */ ErrorDetail *HpfsResizeSfsErrorDetailResponse `json:"errorDetail"` /* 错误明细。一般情况下,会对订单侧(bss)的并行文件订单业务相关的错误做明确的错误映射和提升,有唯一对应的errorCode。其他订单侧(bss)的错误,以sfs.order.procFailed的errorCode统一映射返回,并在errorDetail中返回订单侧的详细错误信息 */ Error string `json:"error"` /* 业务细分码,为product.module.code三段式大驼峰码 */ }
type HpfsUpdateDataflowApi ¶
type HpfsUpdateDataflowApi struct {
// contains filtered or unexported fields
}
func NewHpfsUpdateDataflowApi ¶
func NewHpfsUpdateDataflowApi(client *core.CtyunClient) *HpfsUpdateDataflowApi
func (*HpfsUpdateDataflowApi) Do ¶
func (a *HpfsUpdateDataflowApi) Do(ctx context.Context, credential core.Credential, req *HpfsUpdateDataflowRequest) (*HpfsUpdateDataflowResponse, error)
type HpfsUpdateDataflowResponse ¶
type HpfsUpdateDataflowResponse struct { StatusCode int32 `json:"statusCode"` /* 返回状态码(800 为成功,900 为失败) */ Message string `json:"message"` /* 响应描述 */ Description string `json:"description"` /* 响应描述 */ ReturnObj *HpfsUpdateDataflowReturnObjResponse `json:"returnObj"` /* 返回对象 */ ErrorCode string `json:"errorCode"` /* 业务细分码,为 product.module.code 三段式码 */ Error string `json:"error"` /* 业务细分码,为product.module.code三段式大驼峰码 */ }
type HpfsUpdateDataflowReturnObjResponse ¶
type HpfsUpdateDataflowReturnObjResponse struct {
RegionID string `json:"regionID"` /* 资源所属资源池 ID */
}
Source Files
¶
- apis.go
- hpfs_capacity_quota_api.go
- hpfs_count_quota_api.go
- hpfs_dataflow_quota_api.go
- hpfs_delete_dataflow_api.go
- hpfs_delete_protocol_service_api.go
- hpfs_info_by_name_sfs_api.go
- hpfs_info_dataflow_api.go
- hpfs_info_dataflowtask_api.go
- hpfs_info_directory_api.go
- hpfs_info_protocol_service_api.go
- hpfs_info_sfs_api.go
- hpfs_list_baseline_api.go
- hpfs_list_cluster_api.go
- hpfs_list_cluster_by_device_api.go
- hpfs_list_dataflow_api.go
- hpfs_list_dataflowtask_api.go
- hpfs_list_protocol_service_api.go
- hpfs_list_region_api.go
- hpfs_list_sfs_api.go
- hpfs_list_sfs_by_cluster_api.go
- hpfs_list_sfs_by_sfstype_api.go
- hpfs_list_zone_api.go
- hpfs_new_dataflow_api.go
- hpfs_new_dataflowtask_api.go
- hpfs_new_directory_api.go
- hpfs_new_protocol_service_api.go
- hpfs_new_sfs_api.go
- hpfs_refund_sfs_api.go
- hpfs_rename_sfs_api.go
- hpfs_resize_sfs_api.go
- hpfs_update_dataflow_api.go
Click to show internal directories.
Click to hide internal directories.