Documentation ¶
Index ¶
- func GenReqDefForCreateSyncEvents() *def.HttpRequestDef
- func GenReqDefForCreateTask() *def.HttpRequestDef
- func GenReqDefForDeleteTask() *def.HttpRequestDef
- func GenReqDefForListApiVersions() *def.HttpRequestDef
- func GenReqDefForListTasks() *def.HttpRequestDef
- func GenReqDefForShowApiInfo() *def.HttpRequestDef
- func GenReqDefForShowTask() *def.HttpRequestDef
- func GenReqDefForStartTask() *def.HttpRequestDef
- func GenReqDefForStopTask() *def.HttpRequestDef
- func GenReqDefForUpdateBandwidthPolicy() *def.HttpRequestDef
- func OmsClientBuilder() *http_client.HcHttpClientBuilder
- type OmsClient
- func (c *OmsClient) CreateSyncEvents(request *model.CreateSyncEventsRequest) (*model.CreateSyncEventsResponse, error)
- func (c *OmsClient) CreateTask(request *model.CreateTaskRequest) (*model.CreateTaskResponse, error)
- func (c *OmsClient) DeleteTask(request *model.DeleteTaskRequest) (*model.DeleteTaskResponse, error)
- func (c *OmsClient) ListApiVersions(request *model.ListApiVersionsRequest) (*model.ListApiVersionsResponse, error)
- func (c *OmsClient) ListTasks(request *model.ListTasksRequest) (*model.ListTasksResponse, error)
- func (c *OmsClient) ShowApiInfo(request *model.ShowApiInfoRequest) (*model.ShowApiInfoResponse, error)
- func (c *OmsClient) ShowTask(request *model.ShowTaskRequest) (*model.ShowTaskResponse, error)
- func (c *OmsClient) StartTask(request *model.StartTaskRequest) (*model.StartTaskResponse, error)
- func (c *OmsClient) StopTask(request *model.StopTaskRequest) (*model.StopTaskResponse, error)
- func (c *OmsClient) UpdateBandwidthPolicy(request *model.UpdateBandwidthPolicyRequest) (*model.UpdateBandwidthPolicyResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenReqDefForCreateSyncEvents ¶
func GenReqDefForCreateSyncEvents() *def.HttpRequestDef
func GenReqDefForCreateTask ¶
func GenReqDefForCreateTask() *def.HttpRequestDef
func GenReqDefForDeleteTask ¶
func GenReqDefForDeleteTask() *def.HttpRequestDef
func GenReqDefForListApiVersions ¶
func GenReqDefForListApiVersions() *def.HttpRequestDef
func GenReqDefForListTasks ¶
func GenReqDefForListTasks() *def.HttpRequestDef
func GenReqDefForShowApiInfo ¶
func GenReqDefForShowApiInfo() *def.HttpRequestDef
func GenReqDefForShowTask ¶
func GenReqDefForShowTask() *def.HttpRequestDef
func GenReqDefForStartTask ¶
func GenReqDefForStartTask() *def.HttpRequestDef
func GenReqDefForStopTask ¶
func GenReqDefForStopTask() *def.HttpRequestDef
func GenReqDefForUpdateBandwidthPolicy ¶
func GenReqDefForUpdateBandwidthPolicy() *def.HttpRequestDef
func OmsClientBuilder ¶
func OmsClientBuilder() *http_client.HcHttpClientBuilder
Types ¶
type OmsClient ¶
type OmsClient struct {
HcClient *http_client.HcHttpClient
}
func NewOmsClient ¶
func NewOmsClient(hcClient *http_client.HcHttpClient) *OmsClient
func (*OmsClient) CreateSyncEvents ¶
func (c *OmsClient) CreateSyncEvents(request *model.CreateSyncEventsRequest) (*model.CreateSyncEventsResponse, error)
创建同步事件
源端有对象需要进行同步时,调用该接口创建一个同步事件,系统将根据同步事件中包含的对象名称进行同步
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OmsClient) CreateTask ¶
func (c *OmsClient) CreateTask(request *model.CreateTaskRequest) (*model.CreateTaskResponse, error)
创建迁移任务
创建迁移任务,创建成功后,任务会被自动启动,不需要额外调用启动任务命令。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OmsClient) DeleteTask ¶
func (c *OmsClient) DeleteTask(request *model.DeleteTaskRequest) (*model.DeleteTaskResponse, error)
删除迁移任务
调用该接口删除迁移任务。 正在运行的任务不允许删除,如果删除会返回失败;若要删除,请先行暂停任务。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OmsClient) ListApiVersions ¶
func (c *OmsClient) ListApiVersions(request *model.ListApiVersionsRequest) (*model.ListApiVersionsResponse, error)
查询API版本信息列表
查询对象存储迁移服务的API版本信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OmsClient) ListTasks ¶
func (c *OmsClient) ListTasks(request *model.ListTasksRequest) (*model.ListTasksResponse, error)
查询迁移任务列表
查询用户账户下的所有任务信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OmsClient) ShowApiInfo ¶
func (c *OmsClient) ShowApiInfo(request *model.ShowApiInfoRequest) (*model.ShowApiInfoResponse, error)
查询指定API版本信息
查询对象存储迁移服务指定API版本信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OmsClient) ShowTask ¶
func (c *OmsClient) ShowTask(request *model.ShowTaskRequest) (*model.ShowTaskResponse, error)
查询指定ID的任务详情
查询指定ID的任务详情。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OmsClient) StartTask ¶
func (c *OmsClient) StartTask(request *model.StartTaskRequest) (*model.StartTaskResponse, error)
启动迁移任务
迁移任务暂停或失败后,调用该接口以启动任务。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OmsClient) StopTask ¶
func (c *OmsClient) StopTask(request *model.StopTaskRequest) (*model.StopTaskResponse, error)
暂停迁移任务
当迁移任务处于迁移中时,调用该接口停止任务。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OmsClient) UpdateBandwidthPolicy ¶
func (c *OmsClient) UpdateBandwidthPolicy(request *model.UpdateBandwidthPolicyRequest) (*model.UpdateBandwidthPolicyResponse, error)
更新任务带宽策略
当迁移任务未执行完成时,修改迁移任务的流量控制策略。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.