model

package
v0.1.113 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddProtectedInstanceNicRequest

type AddProtectedInstanceNicRequest struct {

	// 保护实例的ID。
	ProtectedInstanceId string `json:"protected_instance_id"`

	Body *ProtectedInstanceAddNicRequestBody `json:"body,omitempty"`
}

AddProtectedInstanceNicRequest Request Object

func (AddProtectedInstanceNicRequest) String

type AddProtectedInstanceNicResponse

type AddProtectedInstanceNicResponse struct {

	// 成功返回jobId信息
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

AddProtectedInstanceNicResponse Response Object

func (AddProtectedInstanceNicResponse) String

type AddProtectedInstanceTagsRequest

type AddProtectedInstanceTagsRequest struct {

	// 保护实例的ID。
	ProtectedInstanceId string `json:"protected_instance_id"`

	Body *ProtectedInstanceAddTagsRequestBody `json:"body,omitempty"`
}

AddProtectedInstanceTagsRequest Request Object

func (AddProtectedInstanceTagsRequest) String

type AddProtectedInstanceTagsResponse

type AddProtectedInstanceTagsResponse struct {
	HttpStatusCode int `json:"-"`
}

AddProtectedInstanceTagsResponse Response Object

func (AddProtectedInstanceTagsResponse) String

type AttachProtectedInstanceReplicationRequest

type AttachProtectedInstanceReplicationRequest struct {

	// 保护实例的ID。
	ProtectedInstanceId string `json:"protected_instance_id"`

	Body *ProtectedInstanceAttachReplicationRequestBody `json:"body,omitempty"`
}

AttachProtectedInstanceReplicationRequest Request Object

func (AttachProtectedInstanceReplicationRequest) String

type AttachProtectedInstanceReplicationResponse

type AttachProtectedInstanceReplicationResponse struct {

	// 成功返回jobId信息
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

AttachProtectedInstanceReplicationResponse Response Object

func (AttachProtectedInstanceReplicationResponse) String

type BatchAddTagsRequest

type BatchAddTagsRequest struct {

	// 保护实例的ID。
	ProtectedInstanceId string `json:"protected_instance_id"`

	Body *BatchAddTagsRequestBody `json:"body,omitempty"`
}

BatchAddTagsRequest Request Object

func (BatchAddTagsRequest) String

func (o BatchAddTagsRequest) String() string

type BatchAddTagsRequestBody

type BatchAddTagsRequestBody struct {

	// 标签列表。
	Tags []ResourceTag `json:"tags"`

	// 操作标识,取值仅限于:create:创建
	Action BatchAddTagsRequestBodyAction `json:"action"`
}

BatchAddTagsRequestBody 批量添加保护实例标签请求体

func (BatchAddTagsRequestBody) String

func (o BatchAddTagsRequestBody) String() string

type BatchAddTagsRequestBodyAction

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

func (BatchAddTagsRequestBodyAction) MarshalJSON

func (c BatchAddTagsRequestBodyAction) MarshalJSON() ([]byte, error)

func (*BatchAddTagsRequestBodyAction) UnmarshalJSON

func (c *BatchAddTagsRequestBodyAction) UnmarshalJSON(b []byte) error

func (BatchAddTagsRequestBodyAction) Value added in v0.0.90

type BatchAddTagsRequestBodyActionEnum

type BatchAddTagsRequestBodyActionEnum struct {
	CREATE BatchAddTagsRequestBodyAction
}

func GetBatchAddTagsRequestBodyActionEnum

func GetBatchAddTagsRequestBodyActionEnum() BatchAddTagsRequestBodyActionEnum

type BatchAddTagsResponse

type BatchAddTagsResponse struct {
	HttpStatusCode int `json:"-"`
}

BatchAddTagsResponse Response Object

func (BatchAddTagsResponse) String

func (o BatchAddTagsResponse) String() string

type BatchCreateProtectedInstancesRequest

type BatchCreateProtectedInstancesRequest struct {
	Body *BatchCreateProtectedInstancesRequestBody `json:"body,omitempty"`
}

BatchCreateProtectedInstancesRequest Request Object

func (BatchCreateProtectedInstancesRequest) String

type BatchCreateProtectedInstancesRequestBody

type BatchCreateProtectedInstancesRequestBody struct {
	ProtectedInstances *BatchCreateProtectedInstancesRequestParams `json:"protected_instances"`
}

BatchCreateProtectedInstancesRequestBody 批量创建保护实例请求数据接口

func (BatchCreateProtectedInstancesRequestBody) String

type BatchCreateProtectedInstancesRequestParams

type BatchCreateProtectedInstancesRequestParams struct {

	// 保护实例的名称前缀,批量创建保护实例时,为区分不同保护实例,创建过程中系统会自动在名称后加\"-0001\"的类似标记,故此时名称的长度为[1-59]个字符。只包含中文字符、英文字母(a~z、A~Z)、数字(0~9)、小数点(.)、下划线(_)、中划线(-)。
	NamePrefix string `json:"name_prefix"`

	// 保护实例的描述,最大支持长度为64个字符。不能包含左尖括号(<)或右尖括号(>)。
	Description *string `json:"description,omitempty"`

	// 需要加入的保护组ID。
	ServerGroupId string `json:"server_group_id"`

	// 专属分布式存储池ID。当容灾站点磁盘选择专属分布式存储时指定该字段。
	ClusterId *string `json:"cluster_id,omitempty"`

	// 容灾站点云服务器主网卡所在的子网subnetID,与neutron_network_id字段值一致。
	PrimarySubnetId *string `json:"primary_subnet_id,omitempty"`

	// 在专属主机或共享池中创建容灾站点云服务器,默认为在共享池中创建。值为:shared或dedicated。shared:表示共享池。dedicated:表示专属主机。
	Tenancy *BatchCreateProtectedInstancesRequestParamsTenancy `json:"tenancy,omitempty"`

	// 专属主机id,此属性仅在tenancy值为dedicated时有效。若不指定此属性,系统将自动分配租户可以自动放置弹性云服务器的专属主机。
	DedicatedHostId *string `json:"dedicated_host_id,omitempty"`

	// 用于创建保护实例的云服务器信息列表。
	Servers []ServerInfo `json:"servers"`

	// 标签列表。
	Tags *[]ResourceTag `json:"tags,omitempty"`
}

BatchCreateProtectedInstancesRequestParams 批量创建保护实例请求数据接口

func (BatchCreateProtectedInstancesRequestParams) String

type BatchCreateProtectedInstancesRequestParamsTenancy

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

func (BatchCreateProtectedInstancesRequestParamsTenancy) MarshalJSON

func (*BatchCreateProtectedInstancesRequestParamsTenancy) UnmarshalJSON

func (BatchCreateProtectedInstancesRequestParamsTenancy) Value added in v0.0.90

type BatchCreateProtectedInstancesResponse

type BatchCreateProtectedInstancesResponse struct {

	// 成功返回jobId信息
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

BatchCreateProtectedInstancesResponse Response Object

func (BatchCreateProtectedInstancesResponse) String

type BatchDeleteProtectedInstancesRequest

type BatchDeleteProtectedInstancesRequest struct {
	Body *BatchDeleteProtectedInstancesRequestBody `json:"body,omitempty"`
}

BatchDeleteProtectedInstancesRequest Request Object

func (BatchDeleteProtectedInstancesRequest) String

type BatchDeleteProtectedInstancesRequestBody

type BatchDeleteProtectedInstancesRequestBody struct {

	// 所需要删除的保护实例列表。
	ProtectedInstances []ResourceId `json:"protected_instances"`

	// 是否删除容灾站点服务器,默认值为false。
	DeleteTargetServer *bool `json:"delete_target_server,omitempty"`

	// 是否删除容灾站点弹性IP,默认值为false。
	DeleteTargetEip *bool `json:"delete_target_eip,omitempty"`
}

BatchDeleteProtectedInstancesRequestBody 批量删除请求体

func (BatchDeleteProtectedInstancesRequestBody) String

type BatchDeleteProtectedInstancesResponse

type BatchDeleteProtectedInstancesResponse struct {

	// 成功返回jobId信息
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

BatchDeleteProtectedInstancesResponse Response Object

func (BatchDeleteProtectedInstancesResponse) String

type BatchDeleteTagsRequest

type BatchDeleteTagsRequest struct {

	// 保护实例的ID。
	ProtectedInstanceId string `json:"protected_instance_id"`

	Body *BatchDeleteTagsRequestBody `json:"body,omitempty"`
}

BatchDeleteTagsRequest Request Object

func (BatchDeleteTagsRequest) String

func (o BatchDeleteTagsRequest) String() string

type BatchDeleteTagsRequestBody

type BatchDeleteTagsRequestBody struct {

	// 标签列表。
	Tags []DeleteResourceTag `json:"tags"`

	// 操作标识,取值仅限于:delete:删除
	Action BatchDeleteTagsRequestBodyAction `json:"action"`
}

BatchDeleteTagsRequestBody 批量删除保护实例标签请求体

func (BatchDeleteTagsRequestBody) String

type BatchDeleteTagsRequestBodyAction

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

func (BatchDeleteTagsRequestBodyAction) MarshalJSON

func (c BatchDeleteTagsRequestBodyAction) MarshalJSON() ([]byte, error)

func (*BatchDeleteTagsRequestBodyAction) UnmarshalJSON

func (c *BatchDeleteTagsRequestBodyAction) UnmarshalJSON(b []byte) error

func (BatchDeleteTagsRequestBodyAction) Value added in v0.0.90

type BatchDeleteTagsRequestBodyActionEnum

type BatchDeleteTagsRequestBodyActionEnum struct {
	DELETE BatchDeleteTagsRequestBodyAction
}

func GetBatchDeleteTagsRequestBodyActionEnum

func GetBatchDeleteTagsRequestBodyActionEnum() BatchDeleteTagsRequestBodyActionEnum

type BatchDeleteTagsResponse

type BatchDeleteTagsResponse struct {
	HttpStatusCode int `json:"-"`
}

BatchDeleteTagsResponse Response Object

func (BatchDeleteTagsResponse) String

func (o BatchDeleteTagsResponse) String() string

type CreateDisasterRecoveryDrillRequest

type CreateDisasterRecoveryDrillRequest struct {
	Body *CreateDisasterRecoveryDrillRequestBody `json:"body,omitempty"`
}

CreateDisasterRecoveryDrillRequest Request Object

func (CreateDisasterRecoveryDrillRequest) String

type CreateDisasterRecoveryDrillRequestBody

type CreateDisasterRecoveryDrillRequestBody struct {
	DisasterRecoveryDrill *CreateDisasterRecoveryDrillRequestParams `json:"disaster_recovery_drill"`
}

CreateDisasterRecoveryDrillRequestBody 创建容灾演练请求体

func (CreateDisasterRecoveryDrillRequestBody) String

type CreateDisasterRecoveryDrillRequestParams

type CreateDisasterRecoveryDrillRequestParams struct {

	// 保护组的ID。
	ServerGroupId string `json:"server_group_id"`

	// 演练虚拟私有云ID,不指定时系统会自动创建演练VPC。
	DrillVpcId *string `json:"drill_vpc_id,omitempty"`

	// 指定容灾演练的名称,最大支持长度为64个字节。只包含中文字符、英文字母(a~z、A~Z)、数字(0~9)、小数点(.)、下划线(_)、中划线(-)。
	Name string `json:"name"`
}

CreateDisasterRecoveryDrillRequestParams 创建容灾演练请求数据结构

func (CreateDisasterRecoveryDrillRequestParams) String

type CreateDisasterRecoveryDrillResponse

type CreateDisasterRecoveryDrillResponse struct {

	// 成功返回jobId信息
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateDisasterRecoveryDrillResponse Response Object

func (CreateDisasterRecoveryDrillResponse) String

type CreateProtectedInstanceRequest

type CreateProtectedInstanceRequest struct {
	Body *CreateProtectedInstanceRequestBody `json:"body,omitempty"`
}

CreateProtectedInstanceRequest Request Object

func (CreateProtectedInstanceRequest) String

type CreateProtectedInstanceRequestBody

type CreateProtectedInstanceRequestBody struct {
	ProtectedInstance *CreateProtectedInstanceRequestParams `json:"protected_instance"`
}

CreateProtectedInstanceRequestBody 创建保护实例请求体

func (CreateProtectedInstanceRequestBody) String

type CreateProtectedInstanceRequestParams

type CreateProtectedInstanceRequestParams struct {

	// 需要加入的保护组ID。
	ServerGroupId string `json:"server_group_id"`

	// 指定的生产站点云服务器ID。
	ServerId string `json:"server_id"`

	// 指定保护实例的名称,最大支持长度为64个字节。只包含中文字符、英文字母(a~z、A~Z)、数字(0~9)、小数点(.)、下划线(_)、中划线(-)。
	Name string `json:"name"`

	// 指定保护实例的描述,最大支持长度为64个字节。不能包含左尖括号(<)或右尖括号(>)。
	Description *string `json:"description,omitempty"`

	// 专属分布式存储池ID。 当容灾站点磁盘选择专属分布式存储时指定该字段。
	ClusterId *string `json:"cluster_id,omitempty"`

	// 容灾站点云服务器主网卡所在的子网subnetID,与neutron_network_id字段值一致。
	PrimarySubnetId *string `json:"primary_subnet_id,omitempty"`

	// 容灾站点云服务器主网卡IP地址。此参数仅在传入primary_subnet_id时有效。指定primary_subnet_id时,如果不指定该参数,将自动分配容灾站点云服务器主网卡IP地址。
	PrimaryIpAddress *string `json:"primary_ip_address,omitempty"`

	// 标签列表。
	Tags *[]ResourceTag `json:"tags,omitempty"`

	// 指定的容灾站点云服务器的flavor ID。 查询flavor列表,请参见查询云服务器规格变更支持列表。  说明:不指定此参数时,容灾站点云服务器的flavor ID默认和生产站点云服务器保持一致。 不同规格的云服务器在性能上存在差异,可能会对云服务器上运行的应用产生影响。为保证切换/故障切换后云服务器的性能,建议容灾站点服务器的规格(CPU、内存)不低于生产站点云服务器的规格(CPU、内存)。 生产站点云服务器和容灾站点云服务器的flavor存在匹配关系,可以通过上述接口使用生产站点云服务器过滤出满足要求的容灾站点云服务器flavor。
	FlavorRef *string `json:"flavorRef,omitempty"`

	// 在专属主机或共享池中创建容灾站点云服务器,默认为在共享池中创建。 值为:shared或dedicated。shared:表示共享池。 dedicated:表示专属主机。
	Tenancy *CreateProtectedInstanceRequestParamsTenancy `json:"tenancy,omitempty"`

	// 专属主机id,此属性仅在tenancy值为dedicated时有效。 若不指定此属性,系统将自动分配租户可以自动放置弹性云服务器的专属主机。
	DedicatedHostId *string `json:"dedicated_host_id,omitempty"`
}

CreateProtectedInstanceRequestParams 创建保护实例数据结构

func (CreateProtectedInstanceRequestParams) String

type CreateProtectedInstanceRequestParamsTenancy

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

func (CreateProtectedInstanceRequestParamsTenancy) MarshalJSON

func (*CreateProtectedInstanceRequestParamsTenancy) UnmarshalJSON

func (CreateProtectedInstanceRequestParamsTenancy) Value added in v0.0.90

type CreateProtectedInstanceRequestParamsTenancyEnum

type CreateProtectedInstanceRequestParamsTenancyEnum struct {
	SHARED    CreateProtectedInstanceRequestParamsTenancy
	DEDICATED CreateProtectedInstanceRequestParamsTenancy
}

func GetCreateProtectedInstanceRequestParamsTenancyEnum

func GetCreateProtectedInstanceRequestParamsTenancyEnum() CreateProtectedInstanceRequestParamsTenancyEnum

type CreateProtectedInstanceResponse

type CreateProtectedInstanceResponse struct {

	// 成功返回jobId信息
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateProtectedInstanceResponse Response Object

func (CreateProtectedInstanceResponse) String

type CreateProtectionGroupRequest

type CreateProtectionGroupRequest struct {
	Body *CreateProtectionGroupRequestBody `json:"body,omitempty"`
}

CreateProtectionGroupRequest Request Object

func (CreateProtectionGroupRequest) String

type CreateProtectionGroupRequestBody

type CreateProtectionGroupRequestBody struct {
	ServerGroup *CreateProtectionGroupRequestParams `json:"server_group"`
}

CreateProtectionGroupRequestBody 创建保护组请求体

func (CreateProtectionGroupRequestBody) String

type CreateProtectionGroupRequestParams

type CreateProtectionGroupRequestParams struct {

	// 指定保护组的名称,最大支持长度为64个字节。只包含中文字符、英文字母(a~z、A~Z)、数字(0~9)、小数点(.)、下划线(_)、中划线(-)。
	Name string `json:"name"`

	// 指定保护组的描述,最大支持长度为64个字节。不能包含左尖括号(<)或右尖括号(>)。
	Description *string `json:"description,omitempty"`

	// 指定保护组的生产站点可用区名称。
	SourceAvailabilityZone string `json:"source_availability_zone"`

	// 指定保护组的容灾站点可用区名称。
	TargetAvailabilityZone string `json:"target_availability_zone"`

	// 指定双活域的ID。
	DomainId string `json:"domain_id"`

	// 生产站点虚拟私有云ID。
	SourceVpcId string `json:"source_vpc_id"`

	// 部署模式。默认值为“migration”,migration表示VPC内迁移。
	DrType *CreateProtectionGroupRequestParamsDrType `json:"dr_type,omitempty"`
}

CreateProtectionGroupRequestParams 创建保护组请求体结构

func (CreateProtectionGroupRequestParams) String

type CreateProtectionGroupRequestParamsDrType

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

func (CreateProtectionGroupRequestParamsDrType) MarshalJSON

func (*CreateProtectionGroupRequestParamsDrType) UnmarshalJSON

func (c *CreateProtectionGroupRequestParamsDrType) UnmarshalJSON(b []byte) error

func (CreateProtectionGroupRequestParamsDrType) Value added in v0.0.90

type CreateProtectionGroupRequestParamsDrTypeEnum

type CreateProtectionGroupRequestParamsDrTypeEnum struct {
	MIGRATION CreateProtectionGroupRequestParamsDrType
}

func GetCreateProtectionGroupRequestParamsDrTypeEnum

func GetCreateProtectionGroupRequestParamsDrTypeEnum() CreateProtectionGroupRequestParamsDrTypeEnum

type CreateProtectionGroupResponse

type CreateProtectionGroupResponse struct {

	// 成功返回jobId信息
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateProtectionGroupResponse Response Object

func (CreateProtectionGroupResponse) String

type CreateReplicationRequest

type CreateReplicationRequest struct {
	Body *CreateReplicationRequestBody `json:"body,omitempty"`
}

CreateReplicationRequest Request Object

func (CreateReplicationRequest) String

func (o CreateReplicationRequest) String() string

type CreateReplicationRequestBody

type CreateReplicationRequestBody struct {
	Replication *CreateReplicationRequestParams `json:"replication"`
}

CreateReplicationRequestBody 创建复制对请求体

func (CreateReplicationRequestBody) String

type CreateReplicationRequestParams

type CreateReplicationRequestParams struct {

	// 保护组的ID。
	ServerGroupId string `json:"server_group_id"`

	// 生产站点卷的ID。
	VolumeId string `json:"volume_id"`

	// 指定复制对的名称,最大支持长度为64个字节。只包含中文字符、英文字母(a~z、A~Z)、数字(0~9)、小数点(.)、下划线(_)、中划线(-)。
	Name string `json:"name"`

	// 指定复制对的描述,最大支持长度为64个字节,不能包含左尖括号(<)或右尖括号(>)。
	Description *string `json:"description,omitempty"`

	// 专属分布式存储池ID。
	ClusterId *string `json:"cluster_id,omitempty"`
}

CreateReplicationRequestParams 创建复制对请求体数据结构

func (CreateReplicationRequestParams) String

type CreateReplicationResponse

type CreateReplicationResponse struct {

	// 成功返回jobId信息
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateReplicationResponse Response Object

func (CreateReplicationResponse) String

func (o CreateReplicationResponse) String() string

type DeleteAllServerGroupFailureJobsRequest

type DeleteAllServerGroupFailureJobsRequest struct {
}

DeleteAllServerGroupFailureJobsRequest Request Object

func (DeleteAllServerGroupFailureJobsRequest) String

type DeleteAllServerGroupFailureJobsResponse

type DeleteAllServerGroupFailureJobsResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteAllServerGroupFailureJobsResponse Response Object

func (DeleteAllServerGroupFailureJobsResponse) String

type DeleteDisasterRecoveryDrillRequest

type DeleteDisasterRecoveryDrillRequest struct {

	// 容灾演练的ID。
	DisasterRecoveryDrillId string `json:"disaster_recovery_drill_id"`
}

DeleteDisasterRecoveryDrillRequest Request Object

func (DeleteDisasterRecoveryDrillRequest) String

type DeleteDisasterRecoveryDrillResponse

type DeleteDisasterRecoveryDrillResponse struct {

	// 成功返回jobId信息
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

DeleteDisasterRecoveryDrillResponse Response Object

func (DeleteDisasterRecoveryDrillResponse) String

type DeleteFailureJobRequest

type DeleteFailureJobRequest struct {

	// 失败任务ID。
	FailureJobId string `json:"failure_job_id"`
}

DeleteFailureJobRequest Request Object

func (DeleteFailureJobRequest) String

func (o DeleteFailureJobRequest) String() string

type DeleteFailureJobResponse

type DeleteFailureJobResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteFailureJobResponse Response Object

func (DeleteFailureJobResponse) String

func (o DeleteFailureJobResponse) String() string

type DeleteProtectedInstanceNicRequest

type DeleteProtectedInstanceNicRequest struct {

	// 保护实例的ID。
	ProtectedInstanceId string `json:"protected_instance_id"`

	Body *ProtectedInstanceDeleteNicRequestBody `json:"body,omitempty"`
}

DeleteProtectedInstanceNicRequest Request Object

func (DeleteProtectedInstanceNicRequest) String

type DeleteProtectedInstanceNicResponse

type DeleteProtectedInstanceNicResponse struct {

	// 成功返回jobId信息
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

DeleteProtectedInstanceNicResponse Response Object

func (DeleteProtectedInstanceNicResponse) String

type DeleteProtectedInstanceRequest

type DeleteProtectedInstanceRequest struct {

	// 保护实例的ID。
	ProtectedInstanceId string `json:"protected_instance_id"`

	Body *DeleteProtectedInstanceRequestBody `json:"body,omitempty"`
}

DeleteProtectedInstanceRequest Request Object

func (DeleteProtectedInstanceRequest) String

type DeleteProtectedInstanceRequestBody

type DeleteProtectedInstanceRequestBody struct {

	// 是否删除容灾站点服务器,默认值为false。
	DeleteTargetServer *bool `json:"delete_target_server,omitempty"`

	// 是否删除容灾站点弹性IP,默认值为false。
	DeleteTargetEip *bool `json:"delete_target_eip,omitempty"`
}

DeleteProtectedInstanceRequestBody 删除保护实例请求体

func (DeleteProtectedInstanceRequestBody) String

type DeleteProtectedInstanceResponse

type DeleteProtectedInstanceResponse struct {

	// 成功返回jobId信息
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

DeleteProtectedInstanceResponse Response Object

func (DeleteProtectedInstanceResponse) String

type DeleteProtectedInstanceTagRequest

type DeleteProtectedInstanceTagRequest struct {

	// 保护实例的ID。
	ProtectedInstanceId string `json:"protected_instance_id"`

	// 标签key。
	Key string `json:"key"`
}

DeleteProtectedInstanceTagRequest Request Object

func (DeleteProtectedInstanceTagRequest) String

type DeleteProtectedInstanceTagResponse

type DeleteProtectedInstanceTagResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteProtectedInstanceTagResponse Response Object

func (DeleteProtectedInstanceTagResponse) String

type DeleteProtectionGroupRequest

type DeleteProtectionGroupRequest struct {

	// 保护组ID。
	ServerGroupId string `json:"server_group_id"`
}

DeleteProtectionGroupRequest Request Object

func (DeleteProtectionGroupRequest) String

type DeleteProtectionGroupResponse

type DeleteProtectionGroupResponse struct {

	// 成功返回jobId信息
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

DeleteProtectionGroupResponse Response Object

func (DeleteProtectionGroupResponse) String

type DeleteReplicationRequest

type DeleteReplicationRequest struct {

	// 复制对的ID。
	ReplicationId string `json:"replication_id"`

	Body *DeleteReplicationRequestBody `json:"body,omitempty"`
}

DeleteReplicationRequest Request Object

func (DeleteReplicationRequest) String

func (o DeleteReplicationRequest) String() string

type DeleteReplicationRequestBody

type DeleteReplicationRequestBody struct {
	Replication *DeleteReplicationRequestParams `json:"replication"`
}

DeleteReplicationRequestBody 删除复制对请求体

func (DeleteReplicationRequestBody) String

type DeleteReplicationRequestParams

type DeleteReplicationRequestParams struct {

	// 保护组的ID。
	ServerGroupId *string `json:"server_group_id,omitempty"`

	// 是否删除容灾站点磁盘,默认值为false。
	DeleteTargetVolume *bool `json:"delete_target_volume,omitempty"`
}

DeleteReplicationRequestParams 删除复制对请求数据结构

func (DeleteReplicationRequestParams) String

type DeleteReplicationResponse

type DeleteReplicationResponse struct {

	// 成功返回jobId信息
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

DeleteReplicationResponse Response Object

func (DeleteReplicationResponse) String

func (o DeleteReplicationResponse) String() string

type DeleteResourceTag

type DeleteResourceTag struct {

	// 键。同一资源的key值不能重复。最大长度为36个UNICODE字符。key不能为空,不允许为空字符串。不能包含以下字符:非打印字符ASCII(0-31)特殊字符“*”,“<”,“>”,“\\”,“=”,“,”,“|”,“/”键。不能为空。对于同一资源键值唯一。
	Key string `json:"key"`

	// 值。最大长度为43个UNICODE字符。删除时如果value有值按照key/value删除,如果value没值,则按照key删除。当value存在时,不能为空,可以为空字符串。不能包含以下字符:非打印字符ASCII(0-31)特殊字符“*”,“<”,“>”,“\\”,“=”,“,”,“|”,“/”。长度不超过43个字符。
	Value *string `json:"value,omitempty"`
}

DeleteResourceTag 删除单个标签资源结构

func (DeleteResourceTag) String

func (o DeleteResourceTag) String() string

type DeleteServerGroupFailureJobsRequest

type DeleteServerGroupFailureJobsRequest struct {

	// 保护组ID。
	ServerGroupId string `json:"server_group_id"`
}

DeleteServerGroupFailureJobsRequest Request Object

func (DeleteServerGroupFailureJobsRequest) String

type DeleteServerGroupFailureJobsResponse

type DeleteServerGroupFailureJobsResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteServerGroupFailureJobsResponse Response Object

func (DeleteServerGroupFailureJobsResponse) String

type DetachProtectedInstanceReplicationRequest

type DetachProtectedInstanceReplicationRequest struct {

	// 保护实例的ID。
	ProtectedInstanceId string `json:"protected_instance_id"`

	// 复制对的ID。
	ReplicationId string `json:"replication_id"`
}

DetachProtectedInstanceReplicationRequest Request Object

func (DetachProtectedInstanceReplicationRequest) String

type DetachProtectedInstanceReplicationResponse

type DetachProtectedInstanceReplicationResponse struct {

	// 成功返回jobId信息
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

DetachProtectedInstanceReplicationResponse Response Object

func (DetachProtectedInstanceReplicationResponse) String

type DrillServerParams

type DrillServerParams struct {

	// 演练云服务器对应的保护实例ID。
	ProtectedInstance string `json:"protected_instance"`

	// 演练云服务器ID。
	DrillServerId string `json:"drill_server_id"`
}

DrillServerParams 容灾演练虚拟机数据结构

func (DrillServerParams) String

func (o DrillServerParams) String() string

type ExpandReplicationRequest

type ExpandReplicationRequest struct {

	// 复制对的ID。
	ReplicationId string `json:"replication_id"`

	Body *ExtendReplicationRequestBody `json:"body,omitempty"`
}

ExpandReplicationRequest Request Object

func (ExpandReplicationRequest) String

func (o ExpandReplicationRequest) String() string

type ExpandReplicationResponse

type ExpandReplicationResponse struct {

	// 成功返回jobId信息
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ExpandReplicationResponse Response Object

func (ExpandReplicationResponse) String

func (o ExpandReplicationResponse) String() string

type ExtendReplicationRequestBody

type ExtendReplicationRequestBody struct {
	ExtendReplication *ExtendReplicationRequestParams `json:"extend-replication"`
}

ExtendReplicationRequestBody 复制对扩容请求体

func (ExtendReplicationRequestBody) String

type ExtendReplicationRequestParams

type ExtendReplicationRequestParams struct {

	// 复制对内的磁盘扩容后的最终容量。单位:GB 说明:该参数的取值为小数时,系统默认取小数点前的整数值。
	NewSize int32 `json:"new_size"`
}

ExtendReplicationRequestParams 复制对扩容请求数据结构

func (ExtendReplicationRequestParams) String

type FailoverProtectionGroupRequestBody

type FailoverProtectionGroupRequestBody struct {

	// 标识保护组故障切换操作。该参数目前默认值为空。
	FailoverServerGroup *interface{} `json:"failover-server-group"`
}

FailoverProtectionGroupRequestBody 保护组故障切换请求体

func (FailoverProtectionGroupRequestBody) String

type FailureJobParams

type FailureJobParams struct {

	// 任务名称。
	JobType string `json:"job_type"`

	// 任务状态。当前仅支持“FAIL”。FAIL:表示任务失败。
	JobStatus FailureJobParamsJobStatus `json:"job_status"`

	// 任务操作时间。默认格式为:\"yyyy-MM-ddTHH:mm:ss.SSSZ\",例:\"2019-04-01T12:00:00.000Z\"。
	BeginTime string `json:"begin_time"`

	// 任务id。执行异步API命令下发成功的返回参数。
	JobId string `json:"job_id"`

	// 失败任务状态。createFail:表示创建失败。deleteFail:表示删除失败。attachFail:表示挂载失败。detachFail:表示卸载失败。expandFail:表示扩容失败。resizeFail:表示变更规格失败。startFail:表示开启保护失败。stopFail:表示停止保护失败。reverseFail:表示切换失败。failoverFail:表示故障切换失败。reprotectFail : 表示重保护失败。
	FailureStatus FailureJobParamsFailureStatus `json:"failure_status"`

	// 资源ID。
	ResourceId string `json:"resource_id"`

	// 资源名称。
	ResourceName string `json:"resource_name"`

	// 任务失败错误码。
	ErrorCode string `json:"error_code"`

	// 任务失败原因。
	FailReason string `json:"fail_reason"`

	// 资源类型。 server_groups:表示保护组。 protected_instances:表示保护实例。 replications:表示复制对。 disaster_recovery_drills:表示容灾演练。
	ResourceType FailureJobParamsResourceType `json:"resource_type"`
}

FailureJobParams 失败任务数据结构

func (FailureJobParams) String

func (o FailureJobParams) String() string

type FailureJobParamsFailureStatus

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

func (FailureJobParamsFailureStatus) MarshalJSON

func (c FailureJobParamsFailureStatus) MarshalJSON() ([]byte, error)

func (*FailureJobParamsFailureStatus) UnmarshalJSON

func (c *FailureJobParamsFailureStatus) UnmarshalJSON(b []byte) error

func (FailureJobParamsFailureStatus) Value added in v0.0.90

type FailureJobParamsJobStatus

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

func (FailureJobParamsJobStatus) MarshalJSON

func (c FailureJobParamsJobStatus) MarshalJSON() ([]byte, error)

func (*FailureJobParamsJobStatus) UnmarshalJSON

func (c *FailureJobParamsJobStatus) UnmarshalJSON(b []byte) error

func (FailureJobParamsJobStatus) Value added in v0.0.90

type FailureJobParamsJobStatusEnum

type FailureJobParamsJobStatusEnum struct {
	FAIL FailureJobParamsJobStatus
}

func GetFailureJobParamsJobStatusEnum

func GetFailureJobParamsJobStatusEnum() FailureJobParamsJobStatusEnum

type FailureJobParamsResourceType

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

func (FailureJobParamsResourceType) MarshalJSON

func (c FailureJobParamsResourceType) MarshalJSON() ([]byte, error)

func (*FailureJobParamsResourceType) UnmarshalJSON

func (c *FailureJobParamsResourceType) UnmarshalJSON(b []byte) error

func (FailureJobParamsResourceType) Value added in v0.0.90

type FailureJobParamsResourceTypeEnum

type FailureJobParamsResourceTypeEnum struct {
	SERVER_GROUPS            FailureJobParamsResourceType
	PROTECTED_INSTANCES      FailureJobParamsResourceType
	REPLICATIONS             FailureJobParamsResourceType
	DISASTER_RECOVERY_DRILLS FailureJobParamsResourceType
}

func GetFailureJobParamsResourceTypeEnum

func GetFailureJobParamsResourceTypeEnum() FailureJobParamsResourceTypeEnum

type JobEntities

type JobEntities struct {

	// 复制对ID
	ReplicationPairId *string `json:"replication_pair_id,omitempty"`

	// 组成复制对的云硬盘ID
	VolumeIds *string `json:"volume_ids,omitempty"`

	// 保护组ID
	ServerGroupId *string `json:"server_group_id,omitempty"`

	// 保护实例ID
	ProtectedInstanceId *string `json:"protected_instance_id,omitempty"`

	// 容灾站点服务器ID
	NativeServerId *string `json:"native_server_id,omitempty"`

	// 网卡ID
	NicId *string `json:"nic_id,omitempty"`

	// 子Job信息
	SubJobs *[]SubJobParams `json:"sub_jobs,omitempty"`
}

JobEntities

func (JobEntities) String

func (o JobEntities) String() string

type ListActiveActiveDomainsRequest

type ListActiveActiveDomainsRequest struct {
}

ListActiveActiveDomainsRequest Request Object

func (ListActiveActiveDomainsRequest) String

type ListActiveActiveDomainsResponse

type ListActiveActiveDomainsResponse struct {

	// 双活域列表信息。
	Domains        *[]ShowActiveActiveDomainParams `json:"domains,omitempty"`
	HttpStatusCode int                             `json:"-"`
}

ListActiveActiveDomainsResponse Response Object

func (ListActiveActiveDomainsResponse) String

type ListApiVersionsRequest

type ListApiVersionsRequest struct {
}

ListApiVersionsRequest Request Object

func (ListApiVersionsRequest) String

func (o ListApiVersionsRequest) String() string

type ListApiVersionsResponse

type ListApiVersionsResponse struct {

	// API版本信息列表。
	Versions       *[]ShowApiVersionParams `json:"versions,omitempty"`
	HttpStatusCode int                     `json:"-"`
}

ListApiVersionsResponse Response Object

func (ListApiVersionsResponse) String

func (o ListApiVersionsResponse) String() string

type ListDisasterRecoveryDrillsRequest

type ListDisasterRecoveryDrillsRequest struct {

	// 保护组的ID。
	ServerGroupId *string `json:"server_group_id,omitempty"`

	// 容灾演练的名称。支持模糊查询。
	Name *string `json:"name,omitempty"`

	// 容灾演练的状态。
	Status *string `json:"status,omitempty"`

	// 演练虚拟私有云ID。
	DrillVpcId *string `json:"drill_vpc_id,omitempty"`

	// 每次请求返回结果个数限制,取值范围为[0,1000]的正整数,默认值为1000。
	Limit *int32 `json:"limit,omitempty"`

	// 每次请求开始的下标,即偏移量,默认值为0。offset必须为数字,不能为负数。
	Offset *int32 `json:"offset,omitempty"`
}

ListDisasterRecoveryDrillsRequest Request Object

func (ListDisasterRecoveryDrillsRequest) String

type ListDisasterRecoveryDrillsResponse

type ListDisasterRecoveryDrillsResponse struct {

	// 容灾演练列表。
	DisasterRecoveryDrills *[]ShowDisasterRecoveryDrillParams `json:"disaster_recovery_drills,omitempty"`

	// 列表中包含的容灾演练个数。
	Count          *int32 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListDisasterRecoveryDrillsResponse Response Object

func (ListDisasterRecoveryDrillsResponse) String

type ListFailureJobsRequest

type ListFailureJobsRequest struct {

	// 失败任务状态。createFail:表示创建失败。deleteFail:表示删除失败。attachFail:表示挂载失败。detachFail:表示卸载失败。expandFail:表示扩容失败。resizeFail:表示变更规格失败。startFail:表示开启保护失败。stopFail:表示停止保护失败。reverseFail:表示切换失败。failoverFail:表示故障切换失败。reprotectFail : 表示重保护失败。
	FailureStatus *ListFailureJobsRequestFailureStatus `json:"failure_status,omitempty"`

	// 保护组资源名称。
	ResourceName *string `json:"resource_name,omitempty"`

	// 保护组ID。
	ServerGroupId *string `json:"server_group_id,omitempty"`

	// 资源类型。server_groups:表示保护组。protected_instances:表示保护实例。replications:表示复制对。disaster_recovery_drills:表示容灾演练。
	ResourceType *ListFailureJobsRequestResourceType `json:"resource_type,omitempty"`

	// 每次请求返回结果个数限制。取值范围为[0,1000]的正整数,默认值为1000。
	Limit *int32 `json:"limit,omitempty"`

	// 每次请求开始的下标,即偏移量,默认值为0。offset必须为数字,不能为负数。
	Offset *int32 `json:"offset,omitempty"`
}

ListFailureJobsRequest Request Object

func (ListFailureJobsRequest) String

func (o ListFailureJobsRequest) String() string

type ListFailureJobsRequestFailureStatus

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

func (ListFailureJobsRequestFailureStatus) MarshalJSON

func (c ListFailureJobsRequestFailureStatus) MarshalJSON() ([]byte, error)

func (*ListFailureJobsRequestFailureStatus) UnmarshalJSON

func (c *ListFailureJobsRequestFailureStatus) UnmarshalJSON(b []byte) error

func (ListFailureJobsRequestFailureStatus) Value added in v0.0.90

type ListFailureJobsRequestResourceType

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

func (ListFailureJobsRequestResourceType) MarshalJSON

func (c ListFailureJobsRequestResourceType) MarshalJSON() ([]byte, error)

func (*ListFailureJobsRequestResourceType) UnmarshalJSON

func (c *ListFailureJobsRequestResourceType) UnmarshalJSON(b []byte) error

func (ListFailureJobsRequestResourceType) Value added in v0.0.90

type ListFailureJobsRequestResourceTypeEnum

type ListFailureJobsRequestResourceTypeEnum struct {
	SERVER_GROUPS            ListFailureJobsRequestResourceType
	PROTECTED_INSTANCES      ListFailureJobsRequestResourceType
	REPLICATIONS             ListFailureJobsRequestResourceType
	DISASTER_RECOVERY_DRILLS ListFailureJobsRequestResourceType
}

func GetListFailureJobsRequestResourceTypeEnum

func GetListFailureJobsRequestResourceTypeEnum() ListFailureJobsRequestResourceTypeEnum

type ListFailureJobsResponse

type ListFailureJobsResponse struct {

	// 失败任务信息列表。
	FailureJobs *[]FailureJobParams `json:"failure_jobs,omitempty"`

	// 列表中失败任务个数。
	Count          *int32 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListFailureJobsResponse Response Object

func (ListFailureJobsResponse) String

func (o ListFailureJobsResponse) String() string

type ListProtectedInstanceTagsRequest

type ListProtectedInstanceTagsRequest struct {

	// 保护实例的ID。
	ProtectedInstanceId string `json:"protected_instance_id"`
}

ListProtectedInstanceTagsRequest Request Object

func (ListProtectedInstanceTagsRequest) String

type ListProtectedInstanceTagsResponse

type ListProtectedInstanceTagsResponse struct {

	// 标签列表。
	Tags           *[]ResourceTag `json:"tags,omitempty"`
	HttpStatusCode int            `json:"-"`
}

ListProtectedInstanceTagsResponse Response Object

func (ListProtectedInstanceTagsResponse) String

type ListProtectedInstancesByTagsRequest

type ListProtectedInstancesByTagsRequest struct {
	Body *ListProtectedInstancesByTagsRequestBody `json:"body,omitempty"`
}

ListProtectedInstancesByTagsRequest Request Object

func (ListProtectedInstancesByTagsRequest) String

type ListProtectedInstancesByTagsRequestBody

type ListProtectedInstancesByTagsRequestBody struct {

	// 包含标签,最多包含10个key,每个key下面的value最多10个,每个key对应的value可以为空数组但结构体不能缺失。Key不能重复,同一个key中values不能重复。结果返回包含所有标签的资源列表,key之间是与的关系,key-value结构中value是或的关系。无tag过滤条件时返回全量数据。
	Tags *[]TagParams `json:"tags,omitempty"`

	// 包含任意标签,最多包含10个key,每个key下面的value最多10个, 每个key对应的value可以为空数组但结构体不能缺失。Key不能重复,同一个key中values不能重复。结果返回包含标签的资源列表,key之间是或的关系,key-value结构中value是或的关系。无过滤条件时返回全量数据。
	TagsAny *[]TagParams `json:"tags_any,omitempty"`

	// 不包含标签,最多包含10个key,每个key下面的value最多10个, 每个key对应的value可以为空数组但结构体不能缺失。Key不能重复,同一个key中values不能重复。结果返回不包含标签的资源列表,key之间是与的关系,key-value结构中value是或的关系。无过滤条件时返回全量数据。
	NotTags *[]TagParams `json:"not_tags,omitempty"`

	// 不包含任意标签,最多包含10个key,每个key下面的value最多10个, 每个key对应的value可以为空数组但结构体不能缺失。Key不能重复,同一个key中values不能重复。结果返回不包含标签的资源列表,key之间是或的关系,key-value结构中value是或的关系。无过滤条件时返回全量数据。
	NotTagsAny *[]TagParams `json:"not_tags_any,omitempty"`

	// 查询记录数(action为count时无此参数)如果action为filter默认为1000,limit最多为1000,不能为负数,最小值为1。
	Limit *string `json:"limit,omitempty"`

	// 索引位置,偏移量(action为count时无此参数)从第一条数据偏移offset条数据后开始查询,如果action为filter默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
	Offset *string `json:"offset,omitempty"`

	// 操作标识(仅限于filter,count):filter(过滤),count(查询总条数)。如果是filter就按照过滤条件查询,如果是count,只需要返回总条数,禁止返回其他字段。
	Action ListProtectedInstancesByTagsRequestBodyAction `json:"action"`

	// 搜索字段,key为要匹配的字段,如resource_name等。value为匹配的值。key为固定字典值,不能包含重复的key或不支持的key。根据key的值确认是否需要模糊匹配,如resource_name默认为模糊搜索(不区分大小写),如果value为空字符串精确匹配。目前只有resource_name,后续再扩展。
	Matches *[]MatchParams `json:"matches,omitempty"`
}

ListProtectedInstancesByTagsRequestBody 通过标签查询保护实例请求体

func (ListProtectedInstancesByTagsRequestBody) String

type ListProtectedInstancesByTagsRequestBodyAction

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

func (ListProtectedInstancesByTagsRequestBodyAction) MarshalJSON

func (*ListProtectedInstancesByTagsRequestBodyAction) UnmarshalJSON

func (ListProtectedInstancesByTagsRequestBodyAction) Value added in v0.0.90

type ListProtectedInstancesByTagsResponse

type ListProtectedInstancesByTagsResponse struct {

	// 返回的保护实例列表。
	Resources *[]ResourceParams `json:"resources,omitempty"`

	// 总记录数。该值不受过滤条件的影响。
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListProtectedInstancesByTagsResponse Response Object

func (ListProtectedInstancesByTagsResponse) String

type ListProtectedInstancesProjectTagsRequest

type ListProtectedInstancesProjectTagsRequest struct {
}

ListProtectedInstancesProjectTagsRequest Request Object

func (ListProtectedInstancesProjectTagsRequest) String

type ListProtectedInstancesProjectTagsResponse

type ListProtectedInstancesProjectTagsResponse struct {

	// 标签列表。
	Tags           *[]TagParams `json:"tags,omitempty"`
	HttpStatusCode int          `json:"-"`
}

ListProtectedInstancesProjectTagsResponse Response Object

func (ListProtectedInstancesProjectTagsResponse) String

type ListProtectedInstancesRequest

type ListProtectedInstancesRequest struct {

	// 保护组的ID,表示查询该保护组下的所有保护实例列表。
	ServerGroupId *string `json:"server_group_id,omitempty"`

	// 保护组的ID列表,格式为server_group_ids=['server_group_id1','server_group_id2',...,'server_group_idx'],请使用URL编码进行转换。返回“server_group_ids”中有效server_group_id的所有保护实例列表,无效的server_group_id会被忽略。支持查询最多30个server_group_id对应的所有保护实例列表。如果“server_group_id”和“server_group_ids”查询参数同时存在,“server_group_id”会被忽略。
	ServerGroupIds *string `json:"server_group_ids,omitempty"`

	// 保护实例的ID列表,格式为protected_instance_ids=['protected_instance_id1','protected_instance_id2',...,'protected_instance_idx'],请使用URL编码进行转换。返回“protected_instance_ids”中有效protected_instance_id的所有保护实例列表,无效的protected_instance_id会被忽略。支持查询最多30个protected_instance_id对应的所有保护实例列表。如果“server_group_id”或者“server_group_ids”查询参数存在时,“protected_instance_ids”会被忽略。
	ProtectedInstanceIds *string `json:"protected_instance_ids,omitempty"`

	// 每次请求返回结果个数限制,取值范围为[0,1000]的正整数,默认值为1000。
	Limit *int32 `json:"limit,omitempty"`

	// 每次请求开始的下标,即偏移量,默认值为0。offset必须为数字,不能为负数。
	Offset *int32 `json:"offset,omitempty"`

	// 保护实例状态。
	Status *string `json:"status,omitempty"`

	// 保护实例的名称。支持模糊查询。
	Name *string `json:"name,omitempty"`

	// 查询场景类型。status_abnormal:表示查询异常状态的保护实例列表。general或空时:该参数不生效。
	QueryType *ListProtectedInstancesRequestQueryType `json:"query_type,omitempty"`

	// 保护实例所在的保护组的当前生产站点可用区。
	AvailabilityZone *string `json:"availability_zone,omitempty"`
}

ListProtectedInstancesRequest Request Object

func (ListProtectedInstancesRequest) String

type ListProtectedInstancesRequestQueryType

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

func (ListProtectedInstancesRequestQueryType) MarshalJSON

func (c ListProtectedInstancesRequestQueryType) MarshalJSON() ([]byte, error)

func (*ListProtectedInstancesRequestQueryType) UnmarshalJSON

func (c *ListProtectedInstancesRequestQueryType) UnmarshalJSON(b []byte) error

func (ListProtectedInstancesRequestQueryType) Value added in v0.0.90

type ListProtectedInstancesRequestQueryTypeEnum

type ListProtectedInstancesRequestQueryTypeEnum struct {
	STATUS_ABNORMAL ListProtectedInstancesRequestQueryType
	GENERAL         ListProtectedInstancesRequestQueryType
}

func GetListProtectedInstancesRequestQueryTypeEnum

func GetListProtectedInstancesRequestQueryTypeEnum() ListProtectedInstancesRequestQueryTypeEnum

type ListProtectedInstancesResponse

type ListProtectedInstancesResponse struct {

	// 保护实例的信息列表。
	ProtectedInstances *[]ShowProtectedInstanceParams `json:"protected_instances,omitempty"`

	// 列表中包含的保护实例个数。
	Count          *int32 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListProtectedInstancesResponse Response Object

func (ListProtectedInstancesResponse) String

type ListProtectionGroupsRequest

type ListProtectionGroupsRequest struct {

	// 每次请求返回结果个数限制,取值范围为[0,1000]的正整数,默认值为1000。
	Limit *int32 `json:"limit,omitempty"`

	// 每次请求开始的下标,即偏移量,默认值为0。offset必须为数字,不能为负数。
	Offset *int32 `json:"offset,omitempty"`

	// 保护组状态。
	Status *string `json:"status,omitempty"`

	// 保护组的名称。支持模糊查询。
	Name *string `json:"name,omitempty"`

	// 查询场景类型。 status_abnormal:表示查询异常状态的保护组列表。 stop_protected:表示查询停止保护的保护组列表。 period_no_dr_drill:表示查询一段时间未做容灾演练的保护组,默认为三个月。 general或空时:该参数不生效。
	QueryType *ListProtectionGroupsRequestQueryType `json:"query_type,omitempty"`

	// 保护组的当前生产站点可用区。
	AvailabilityZone *string `json:"availability_zone,omitempty"`
}

ListProtectionGroupsRequest Request Object

func (ListProtectionGroupsRequest) String

type ListProtectionGroupsRequestQueryType

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

func (ListProtectionGroupsRequestQueryType) MarshalJSON

func (c ListProtectionGroupsRequestQueryType) MarshalJSON() ([]byte, error)

func (*ListProtectionGroupsRequestQueryType) UnmarshalJSON

func (c *ListProtectionGroupsRequestQueryType) UnmarshalJSON(b []byte) error

func (ListProtectionGroupsRequestQueryType) Value added in v0.0.90

type ListProtectionGroupsRequestQueryTypeEnum

type ListProtectionGroupsRequestQueryTypeEnum struct {
	STATUS_ABNORMAL    ListProtectionGroupsRequestQueryType
	STOP_PROTECTED     ListProtectionGroupsRequestQueryType
	PERIOD_NO_DR_DRILL ListProtectionGroupsRequestQueryType
	GENERAL            ListProtectionGroupsRequestQueryType
}

func GetListProtectionGroupsRequestQueryTypeEnum

func GetListProtectionGroupsRequestQueryTypeEnum() ListProtectionGroupsRequestQueryTypeEnum

type ListProtectionGroupsResponse

type ListProtectionGroupsResponse struct {

	// 保护组的信息列表。
	ServerGroups *[]ShowProtectionGroupParams `json:"server_groups,omitempty"`

	// 此参数为满足过滤条件的列表中包含的保护组个数。
	Count          *int32 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListProtectionGroupsResponse Response Object

func (ListProtectionGroupsResponse) String

type ListReplicationsRequest

type ListReplicationsRequest struct {

	// 保护组的ID。
	ServerGroupId *string `json:"server_group_id,omitempty"`

	// 保护组的ID列表,格式为server_group_ids=['server_group_id1','server_group_id2',...,'server_group_idx'],请使用URL编码进行转换。返回“server_group_ids”中有效server_group_id的复制对列表,无效的server_group_id会被忽略。支持查询最多30个server_group_id对应的复制对列表。如果“server_group_id”和“server_group_ids”查询参数同时存在,“server_group_id”会被忽略。
	ServerGroupIds *string `json:"server_group_ids,omitempty"`

	// 保护实例的ID。
	ProtectedInstanceId *string `json:"protected_instance_id,omitempty"`

	// 保护实例的ID列表,格式为protected_instance_ids=['protected_instance_id1','protected_instance_id2',...,'protected_instance_idx'],请使用URL编码进行转换。返回“protected_instance_ids”中有效protected_instance_id的复制对列表,无效的protected_instance_id会被忽略。支持查询最多30个protected_instance_id对应的复制对列表。如果“protected_instance_id”和“protected_instance_ids”查询参数同时存在,“protected_instance_id”会被忽略。
	ProtectedInstanceIds *string `json:"protected_instance_ids,omitempty"`

	// 复制对的名称。支持模糊查询。
	Name *string `json:"name,omitempty"`

	// 复制对的状态。
	Status *string `json:"status,omitempty"`

	// 每次请求返回结果个数限制,取值范围为[0,1000]的正整数,默认值为1000。
	Limit *int32 `json:"limit,omitempty"`

	// 每次请求开始的下标,即偏移量,默认值为0。offset必须为数字,不能为负数。
	Offset *int32 `json:"offset,omitempty"`

	// 查询场景类型。如需查询异常状态的复制对列表,query_type的值为“status_abnormal”。否则,query_type取值为空或“general”。
	QueryType *ListReplicationsRequestQueryType `json:"query_type,omitempty"`

	// 复制对所在的保护组的当前生产站点可用区。
	AvailabilityZone *string `json:"availability_zone,omitempty"`
}

ListReplicationsRequest Request Object

func (ListReplicationsRequest) String

func (o ListReplicationsRequest) String() string

type ListReplicationsRequestQueryType

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

func (ListReplicationsRequestQueryType) MarshalJSON

func (c ListReplicationsRequestQueryType) MarshalJSON() ([]byte, error)

func (*ListReplicationsRequestQueryType) UnmarshalJSON

func (c *ListReplicationsRequestQueryType) UnmarshalJSON(b []byte) error

func (ListReplicationsRequestQueryType) Value added in v0.0.90

type ListReplicationsRequestQueryTypeEnum

type ListReplicationsRequestQueryTypeEnum struct {
	STATUS_ABNORMAL ListReplicationsRequestQueryType
	GENERAL         ListReplicationsRequestQueryType
}

func GetListReplicationsRequestQueryTypeEnum

func GetListReplicationsRequestQueryTypeEnum() ListReplicationsRequestQueryTypeEnum

type ListReplicationsResponse

type ListReplicationsResponse struct {

	// 复制对列表。
	Replications *[]ShowReplicationParams `json:"replications,omitempty"`

	// 列表中包含的复制对个数。
	Count          *int32 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListReplicationsResponse Response Object

func (ListReplicationsResponse) String

func (o ListReplicationsResponse) String() string

type ListRpoStatisticsRequest

type ListRpoStatisticsRequest struct {

	// 每次请求返回结果个数限制,取值范围为[0,1000]的正整数,默认值为1000。
	Limit *int32 `json:"limit,omitempty"`

	// 每次请求开始的下标,即偏移量,默认值为0。offset必须为数字,不能为负数。
	Offset *int32 `json:"offset,omitempty"`

	// 开始时间。默认格式为:\"yyyy-MM-dd HH:mm:ss.SSS\",例:\"2019-04-01 12:00:00.000\"。
	StartTime *string `json:"start_time,omitempty"`

	// 结束时间。默认格式为:\"yyyy-MM-dd HH:mm:ss.SSS\",例:\"2019-04-01 12:00:00.000\"。
	EndTime *string `json:"end_time,omitempty"`

	// 资源类型。replication:表示查询复制对的RPO超标趋势记录。
	ResourceType *string `json:"resource_type,omitempty"`
}

ListRpoStatisticsRequest Request Object

func (ListRpoStatisticsRequest) String

func (o ListRpoStatisticsRequest) String() string

type ListRpoStatisticsResponse

type ListRpoStatisticsResponse struct {

	// 资源的RPO超标趋势记录列表。
	ResourceRpoStatistics *[]RpoStattisticsParams `json:"resource_rpo_statistics,omitempty"`

	// 列表中包含的资源的RPO超标趋势记录个数。
	Count          *int32 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListRpoStatisticsResponse Response Object

func (ListRpoStatisticsResponse) String

func (o ListRpoStatisticsResponse) String() string

type MatchParams

type MatchParams struct {

	// 键。目前限定为resource_name,后续扩展。
	Key string `json:"key"`

	// 值。每个值最大长度255个unicode字符。
	Value string `json:"value"`
}

MatchParams match数据结构

func (MatchParams) String

func (o MatchParams) String() string

type MetadataParams

type MetadataParams struct {

	// 保护实例元数据中资源冻结的字段。 true:表示资源被冻结。 空:表示资源没有被冻结。
	SystemFrozen string `json:"__system__frozen"`
}

MetadataParams 保护实例元数据数据结构

func (MetadataParams) String

func (o MetadataParams) String() string

type ProtectedInstanceAddNicRequestBody

type ProtectedInstanceAddNicRequestBody struct {

	// 添加网卡的子网ID。该参数是子网的network_id,和neutron_network_id的值保持一致。
	SubnetId string `json:"subnet_id"`

	// 添加网卡的安全组信息。默认为Sys-default安全组。
	SecurityGroups *[]SecurityGroupsParams `json:"security_groups,omitempty"`

	// IP地址,若无该参数表示自动分配IP地址。
	IpAddress *string `json:"ip_address,omitempty"`
}

ProtectedInstanceAddNicRequestBody 保护实例添加网卡请求体

func (ProtectedInstanceAddNicRequestBody) String

type ProtectedInstanceAddTagsRequestBody

type ProtectedInstanceAddTagsRequestBody struct {
	Tag *ResourceTag `json:"tag"`
}

ProtectedInstanceAddTagsRequestBody 添加保护实例标签请求体

func (ProtectedInstanceAddTagsRequestBody) String

type ProtectedInstanceAttachReplicationRequestBody

type ProtectedInstanceAttachReplicationRequestBody struct {
	ReplicationAttachment *ProtectedInstanceAttachReplicationRequestParams `json:"replicationAttachment"`
}

ProtectedInstanceAttachReplicationRequestBody 保护实例挂载复制对请求体

func (ProtectedInstanceAttachReplicationRequestBody) String

type ProtectedInstanceAttachReplicationRequestParams

type ProtectedInstanceAttachReplicationRequestParams struct {

	// 复制对的ID。
	ReplicationId string `json:"replication_id"`

	// 复制对中使用的磁盘挂载点。  说明:新增加的磁盘挂载点不能和已有的磁盘挂载点相同。 对于采用XEN虚拟化类型的弹性云服务器组成的保护实例,系统盘挂载点请指定/dev/sda;数据盘挂载点请按英文字母顺序依次指定,如/dev/sdb,/dev/sdc,如果指定了以“/dev/vd”开头的挂载点,系统默认改为“/dev/sd”。对于采用KVM虚拟化类型的弹性云服务器组成的保护实例,系统盘挂载点请指定/dev/vda;数据盘挂载点请按英文字母顺序依次指定,如/dev/vdb,/dev/vdc,如果指定了以“/dev/sd”开头的挂载点,系统默认改为“/dev/vd”。
	Device string `json:"device"`
}

ProtectedInstanceAttachReplicationRequestParams 保护实例挂载复制对请求数据结构

func (ProtectedInstanceAttachReplicationRequestParams) String

type ProtectedInstanceAttachment

type ProtectedInstanceAttachment struct {

	// 复制对ID。
	Replication string `json:"replication"`

	// 挂载点。
	Device string `json:"device"`
}

ProtectedInstanceAttachment 保护实例挂载信息结构

func (ProtectedInstanceAttachment) String

type ProtectedInstanceDeleteNicRequestBody

type ProtectedInstanceDeleteNicRequestBody struct {

	// 网卡Port ID。
	NicId string `json:"nic_id"`
}

ProtectedInstanceDeleteNicRequestBody 保护实例删除网卡请求体

func (ProtectedInstanceDeleteNicRequestBody) String

type QuotaParams

type QuotaParams struct {

	// 租户资源配额信息列表。
	Resources []QuotaResourceParams `json:"resources"`
}

QuotaParams 配额数据结构

func (QuotaParams) String

func (o QuotaParams) String() string

type QuotaResourceParams

type QuotaResourceParams struct {

	// 资源类型server_groups:表示保护组资源类型。replications:表示复制对资源类型。
	Type string `json:"type"`

	// 已经使用的资源个数。
	Used int32 `json:"used"`

	// 资源配额。-1:表示无穷大。
	Quota int32 `json:"quota"`

	// 设置该资源配额允许的最小值。
	Min int32 `json:"min"`

	// 设置该资源配额允许的最大值。-1:表示无穷大。
	Max int32 `json:"max"`
}

QuotaResourceParams 配额资源数据结构

func (QuotaResourceParams) String

func (o QuotaResourceParams) String() string

type ReplicationAttachment

type ReplicationAttachment struct {

	// 该复制对挂载的保护实例ID。
	ProtectedInstance string `json:"protected_instance"`

	// 挂载点。
	Device string `json:"device"`
}

ReplicationAttachment 复制对挂载信息数据结构

func (ReplicationAttachment) String

func (o ReplicationAttachment) String() string

type ReplicationClusterParams

type ReplicationClusterParams struct {

	// 可用区名称。
	AvailabilityZone string `json:"availability_zone"`
}

ReplicationClusterParams 复制集群相关参数

func (ReplicationClusterParams) String

func (o ReplicationClusterParams) String() string

type ReplicationRecordMetadata

type ReplicationRecordMetadata struct {

	// 复制对中的云硬盘是否为共享云硬盘。
	Multiattach bool `json:"multiattach"`

	// 复制对中的云硬盘是否为系统盘。
	Bootable bool `json:"bootable"`

	// 复制对中的云硬盘容量。单位:GB
	VolumeSize int32 `json:"volume_size"`

	// 复制对中的云硬盘类型。SATA:普通IO磁盘类型。SAS:高IO磁盘类型。SSD:超高IO磁盘类型。co-p1:高IO(性能优化I型)uh-l1:超高IO(时延优化)其中co-p1和uh-l1两种云硬盘只能使用在HANA云服务器、HL1型云服务器、HL2型云服务器上。
	VolumeType ReplicationRecordMetadataVolumeType `json:"volume_type"`
}

ReplicationRecordMetadata 复制对元数据

func (ReplicationRecordMetadata) String

func (o ReplicationRecordMetadata) String() string

type ReplicationRecordMetadataVolumeType

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

func (ReplicationRecordMetadataVolumeType) MarshalJSON

func (c ReplicationRecordMetadataVolumeType) MarshalJSON() ([]byte, error)

func (*ReplicationRecordMetadataVolumeType) UnmarshalJSON

func (c *ReplicationRecordMetadataVolumeType) UnmarshalJSON(b []byte) error

func (ReplicationRecordMetadataVolumeType) Value added in v0.0.90

type ResizeProtectedInstanceRequest

type ResizeProtectedInstanceRequest struct {

	// 保护实例的ID。
	ProtectedInstanceId string `json:"protected_instance_id"`

	Body *ResizeProtectedInstanceRequestBody `json:"body,omitempty"`
}

ResizeProtectedInstanceRequest Request Object

func (ResizeProtectedInstanceRequest) String

type ResizeProtectedInstanceRequestBody

type ResizeProtectedInstanceRequestBody struct {
	Resize *ResizeProtectedInstanceRequestParams `json:"resize"`
}

ResizeProtectedInstanceRequestBody 保护实例变更规格请求体

func (ResizeProtectedInstanceRequestBody) String

type ResizeProtectedInstanceRequestParams

type ResizeProtectedInstanceRequestParams struct {

	// 变更规格后,生产站点云服务器和容灾站点云服务器的flavor ID。可通过查询云服务器规格变更支持列表接口获取。 说明:系统支持同时变更生产站点云服务器和容灾站点云服务器的规格。如需同时变更,请使用flavorRef参数,变更规格后,生产站点云服务器和容灾站点云服务器的规格相同。
	FlavorRef *string `json:"flavorRef,omitempty"`

	// 变更规格后,生产站点云服务器的flavor ID。可通过查询云服务器规格变更支持列表接口获取。 说明:系统支持仅变更生产站点云服务器的规格。此时,请使用production_flavorRef参数。当flavorRef参数有值时,production_flavorRef参数不生效。
	ProductionFlavorRef *string `json:"production_flavorRef,omitempty"`

	// 变更规格后,容灾站点云服务器的flavor ID。可通过查询云服务器规格变更支持列表接口获取。 说明:系统支持仅变更容灾站点云服务器的规格。此时,请使用dr_flavorRef参数。当flavorRef参数有值时,dr_flavorRef参数不生效。
	DrFlavorRef *string `json:"dr_flavorRef,omitempty"`

	// 新生产站点专属主机ID。 说明:生产站点云服务器在专属主机上时,变更规格需要指定此参数。可以指定为生产站点云服务器当前所在专属主机ID或其他专属主机ID。
	ProductionDedicatedHostId *string `json:"production_dedicated_host_id,omitempty"`

	// 新容灾站点专属主机ID。 说明:容灾站点云服务器在专属主机上时,变更规格需要指定此参数。可以指定为容灾站点云服务器当前所在专属主机ID或其他专属主机ID。
	DrDedicatedHostId *string `json:"dr_dedicated_host_id,omitempty"`
}

ResizeProtectedInstanceRequestParams 保护实例变更规格请求数据结构

func (ResizeProtectedInstanceRequestParams) String

type ResizeProtectedInstanceResponse

type ResizeProtectedInstanceResponse struct {

	// 成功返回jobId信息
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ResizeProtectedInstanceResponse Response Object

func (ResizeProtectedInstanceResponse) String

type ResourceId

type ResourceId struct {

	// 资源ID
	Id string `json:"id"`
}

ResourceId 保护实例Id

func (ResourceId) String

func (o ResourceId) String() string

type ResourceParams

type ResourceParams struct {

	// 保护实例ID。
	ResourceId string `json:"resource_id"`

	ResourceDetail *ShowProtectedInstanceParams `json:"resource_detail"`

	// 标签列表,没有标签默认为空数组。
	Tags []ResourceTag `json:"tags"`

	// 保护实例名称,没有名称时默认为空字符串。
	ResourceName *string `json:"resource_name,omitempty"`
}

ResourceParams 资源参数数据结构

func (ResourceParams) String

func (o ResourceParams) String() string

type ResourceTag

type ResourceTag struct {

	// 键。同一资源的key值不能重复。最大长度为36个UNICODE字符。key不能为空,不允许为空字符串。不能包含以下字符:非打印字符ASCII(0-31)特殊字符“*”,“<”,“>”,“\\”,“=”,“,”,“|”,“/”键。不能为空。对于同一资源键值唯一。
	Key string `json:"key"`

	// 值。最大长度为43个UNICODE字符。value不能为空,可以为空字符串。不能包含以下字符:非打印字符ASCII(0-31)特殊字符“*”,“<”,“>”,“\\”,“=”,“,”,“|”,“/”。长度不超过43个字符。
	Value string `json:"value"`
}

ResourceTag 单个标签资源结构

func (ResourceTag) String

func (o ResourceTag) String() string

type ReverseProtectionGroupRequestBody

type ReverseProtectionGroupRequestBody struct {
	ReverseServerGroup *ReverseProtectionGroupRequestParams `json:"reverse-server-group"`
}

ReverseProtectionGroupRequestBody 保护组切换请求体

func (ReverseProtectionGroupRequestBody) String

type ReverseProtectionGroupRequestParams

type ReverseProtectionGroupRequestParams struct {

	// 切换方向。target:表示从创建保护组时指定的生产站点切换到创建保护组时指定的容灾站点。source:表示从创建保护组时指定的容灾站点切换到创建保护组时指定的生产站点。
	PriorityStation ReverseProtectionGroupRequestParamsPriorityStation `json:"priority_station"`
}

ReverseProtectionGroupRequestParams 保护组切换请求参数数据结构

func (ReverseProtectionGroupRequestParams) String

type ReverseProtectionGroupRequestParamsPriorityStation

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

func (ReverseProtectionGroupRequestParamsPriorityStation) MarshalJSON

func (*ReverseProtectionGroupRequestParamsPriorityStation) UnmarshalJSON

func (ReverseProtectionGroupRequestParamsPriorityStation) Value added in v0.0.90

type RpoStattisticsParams

type RpoStattisticsParams struct {

	// 资源的RPO超标趋势记录id。
	Id string `json:"id"`

	// 资源的RPO超标趋势记录打点时间。默认格式为:\"yyyy-MM-dd HH:mm\"。
	PointTime string `json:"point_time"`

	// RPO超标的资源个数。
	ResourceNum int32 `json:"resource_num"`

	// RPO超标的资源类型。replication:表示查询复制对的RPO超标趋势记录。
	ResourceType RpoStattisticsParamsResourceType `json:"resource_type"`

	// 创建时间。默认格式为:\"yyyy-MM-dd HH:mm:ss.SSS\",例:\"2019-04-01 12:00:00.000\"。
	CreatedAt string `json:"created_at"`

	// 更新时间。默认格式为:\"yyyy-MM-dd HH:mm:ss.SSS\",例:\"2019-04-01 12:00:00.000\"。
	UpdatedAt string `json:"updated_at"`
}

RpoStattisticsParams rpo超标记录

func (RpoStattisticsParams) String

func (o RpoStattisticsParams) String() string

type RpoStattisticsParamsResourceType

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

func (RpoStattisticsParamsResourceType) MarshalJSON

func (c RpoStattisticsParamsResourceType) MarshalJSON() ([]byte, error)

func (*RpoStattisticsParamsResourceType) UnmarshalJSON

func (c *RpoStattisticsParamsResourceType) UnmarshalJSON(b []byte) error

func (RpoStattisticsParamsResourceType) Value added in v0.0.90

type RpoStattisticsParamsResourceTypeEnum

type RpoStattisticsParamsResourceTypeEnum struct {
	REPLICATION RpoStattisticsParamsResourceType
}

func GetRpoStattisticsParamsResourceTypeEnum

func GetRpoStattisticsParamsResourceTypeEnum() RpoStattisticsParamsResourceTypeEnum

type SecurityGroupsParams

type SecurityGroupsParams struct {

	// 安全组的ID。
	Id string `json:"id"`
}

SecurityGroupsParams 安全组数据结构

func (SecurityGroupsParams) String

func (o SecurityGroupsParams) String() string

type ServerInfo

type ServerInfo struct {

	// 指定的生产站点云服务器ID。
	ServerId string `json:"server_id"`

	// 指定的容灾站点云服务器的flavor ID。
	FlavorRef *string `json:"flavorRef,omitempty"`
}

ServerInfo 批量创建保护实例虚拟机信息

func (ServerInfo) String

func (o ServerInfo) String() string

type ShowActiveActiveDomainParams

type ShowActiveActiveDomainParams struct {

	// 双活域ID。
	Id string `json:"id"`

	// 双活域名称。
	Name string `json:"name"`

	// 双活域描述。
	Description string `json:"description"`

	// 表示该双活域下的资源是否售罄。
	SoldOut bool `json:"sold_out"`

	LocalReplicationCluster *ReplicationClusterParams `json:"local_replication_cluster"`

	RemoteReplicationCluster *ReplicationClusterParams `json:"remote_replication_cluster"`
}

ShowActiveActiveDomainParams 查询双活域响应体结构

func (ShowActiveActiveDomainParams) String

type ShowApiVersionLinksParams

type ShowApiVersionLinksParams struct {

	// 链接的描述
	Rel string `json:"rel"`

	// 版本号查询链接
	Href string `json:"href"`
}

ShowApiVersionLinksParams API的URL地址。

func (ShowApiVersionLinksParams) String

func (o ShowApiVersionLinksParams) String() string

type ShowApiVersionParams

type ShowApiVersionParams struct {

	// 版本ID(版本号),如v1。
	Id string `json:"id"`

	// 版本号查询链接
	Links []ShowApiVersionLinksParams `json:"links"`

	// 若该版本API支持微版本,则返回支持的最大微版本号,如果不支持微版本,则返回空。
	Version string `json:"version"`

	// 版本状态,为如下3种: CURRENT:表示该版本为主推版本 SUPPORTED:表示为老版本,但是现在还继续支持 DEPRECATED:表示为废弃版本,存在后续删除的可能
	Status ShowApiVersionParamsStatus `json:"status"`

	// 版本发布时间,采用UTC时间表示。如v1发布的时间2018-05-30T15:00:00Z。
	Updated string `json:"updated"`

	// 若该版本API 支持微版本,则返回支持的最小微版本号,如果不支持微版本,则返回空。
	MinVersion string `json:"min_version"`
}

ShowApiVersionParams 查询api版本结构

func (ShowApiVersionParams) String

func (o ShowApiVersionParams) String() string

type ShowApiVersionParamsStatus

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

func (ShowApiVersionParamsStatus) MarshalJSON

func (c ShowApiVersionParamsStatus) MarshalJSON() ([]byte, error)

func (*ShowApiVersionParamsStatus) UnmarshalJSON

func (c *ShowApiVersionParamsStatus) UnmarshalJSON(b []byte) error

func (ShowApiVersionParamsStatus) Value added in v0.0.90

type ShowApiVersionParamsStatusEnum

type ShowApiVersionParamsStatusEnum struct {
	CURRENT    ShowApiVersionParamsStatus
	SUPPORTED  ShowApiVersionParamsStatus
	DEPRECATED ShowApiVersionParamsStatus
}

func GetShowApiVersionParamsStatusEnum

func GetShowApiVersionParamsStatusEnum() ShowApiVersionParamsStatusEnum

type ShowDisasterRecoveryDrillParams

type ShowDisasterRecoveryDrillParams struct {

	// 容灾演练的ID。
	Id string `json:"id"`

	// 容灾演练的名称。
	Name string `json:"name"`

	// 容灾演练的状态。
	Status string `json:"status"`

	// 演练虚拟私有云id。
	DrillVpcId string `json:"drill_vpc_id"`

	// 创建时间。默认格式为:\"yyyy-MM-dd HH:mm:ss.SSS\",例:\"2019-04-01 12:00:00.000\"。
	CreatedAt string `json:"created_at"`

	// 更新时间。默认格式为:\"yyyy-MM-dd HH:mm:ss.SSS\",例:\"2019-04-01 12:00:00.000\"。
	UpdatedAt string `json:"updated_at"`

	// 保护组的ID。
	ServerGroupId string `json:"server_group_id"`

	// 演练云服务器列表。
	DrillServers []DrillServerParams `json:"drill_servers"`
}

ShowDisasterRecoveryDrillParams 查询容灾演练数据结构

func (ShowDisasterRecoveryDrillParams) String

type ShowDisasterRecoveryDrillRequest

type ShowDisasterRecoveryDrillRequest struct {

	// 容灾演练的ID。
	DisasterRecoveryDrillId string `json:"disaster_recovery_drill_id"`
}

ShowDisasterRecoveryDrillRequest Request Object

func (ShowDisasterRecoveryDrillRequest) String

type ShowDisasterRecoveryDrillResponse

type ShowDisasterRecoveryDrillResponse struct {
	DisasterRecoveryDrill *ShowDisasterRecoveryDrillParams `json:"disaster_recovery_drill,omitempty"`
	HttpStatusCode        int                              `json:"-"`
}

ShowDisasterRecoveryDrillResponse Response Object

func (ShowDisasterRecoveryDrillResponse) String

type ShowJobStatusRequest

type ShowJobStatusRequest struct {

	// job ID
	JobId string `json:"job_id"`
}

ShowJobStatusRequest Request Object

func (ShowJobStatusRequest) String

func (o ShowJobStatusRequest) String() string

type ShowJobStatusResponse

type ShowJobStatusResponse struct {

	// Job的状态。 SUCCESS:成功。 RUNNING:运行中。 FAIL:失败。 INIT:正在初始化。
	Status *ShowJobStatusResponseStatus `json:"status,omitempty"`

	Entities *JobEntities `json:"entities,omitempty"`

	// Job ID。
	JobId *string `json:"job_id,omitempty"`

	// Job的类型。createProtectionGroupNoCG:创建保护组。deleteProtectionGroupNoCG:删除保护组。startProtectionGroupNoCG :保护组开始保护。reprotectProtectionGroupNoCG :保护组重保护。stopProtectionGroupNoCG :保护组停止保护。failoverProtectionGroupNoCG  :保护组故障切换。reverseProtectionGroupNoCG:保护组切换。createProtectedInstanceNoCG:创建保护实例。deleteProtectedInstanceNoCG:删除保护实例。attachReplicationPairNew:保护实例挂载复制对。detachReplicationPairNew:保护实例卸载复制对。addNicNew:保护实例添加网卡。deleteNicNew:保护实例删除网卡。resizeProtectedInstanceNew:保护实例变更规格。createReplicationPairNoCG:创建复制对。deleteReplicationPairNoCG:删除复制对。expandReplicationPairNew:复制对扩容。createDisasterRecoveryDrill:创建容灾演练。deleteDisasterRecoveryDrill:删除容灾演练。
	JobType *string `json:"job_type,omitempty"`

	// 开始时间。默认格式为:\"yyyy-MM-dd'T'HH:mm:ss.SSSZ\",例:\"2019-04-01T12:00:00.000Z\"。
	BeginTime *string `json:"begin_time,omitempty"`

	// 结束时间。默认格式为:\"yyyy-MM-dd'T'HH:mm:ss.SSSZ\",例:\"2019-04-01T12:00:00.000Z\"。
	EndTime *string `json:"end_time,omitempty"`

	// Job执行失败时的错误码。
	ErrorCode *string `json:"error_code,omitempty"`

	// Job执行失败时的错误原因。
	FailReason     *string `json:"fail_reason,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowJobStatusResponse Response Object

func (ShowJobStatusResponse) String

func (o ShowJobStatusResponse) String() string

type ShowJobStatusResponseStatus

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

func (ShowJobStatusResponseStatus) MarshalJSON

func (c ShowJobStatusResponseStatus) MarshalJSON() ([]byte, error)

func (*ShowJobStatusResponseStatus) UnmarshalJSON

func (c *ShowJobStatusResponseStatus) UnmarshalJSON(b []byte) error

func (ShowJobStatusResponseStatus) Value added in v0.0.90

type ShowProtectedInstanceParams

type ShowProtectedInstanceParams struct {

	// 保护实例的ID。
	Id string `json:"id"`

	// 保护实例的名称。
	Name string `json:"name"`

	// 保护实例的描述。
	Description string `json:"description"`

	// 保护实例的状态。
	Status string `json:"status"`

	// 生产站点云服务器ID。
	SourceServer string `json:"source_server"`

	// 容灾站点云服务器ID。
	TargetServer string `json:"target_server"`

	// 保护组的ID。
	ServerGroupId string `json:"server_group_id"`

	// 创建时间。默认格式为:\"yyyy-MM-dd HH:mm:ss.SSS\",例:\"2019-04-01 12:00:00.000\"。
	CreatedAt string `json:"created_at"`

	// 更新时间。默认格式为:\"yyyy-MM-dd HH:mm:ss.SSS\",例:\"2019-04-01 12:00:00.000\"。
	UpdatedAt string `json:"updated_at"`

	Metadata *MetadataParams `json:"metadata"`

	// 挂载的复制对列表。
	Attachment []ProtectedInstanceAttachment `json:"attachment"`

	// 标签列表。
	Tags *[]ResourceTag `json:"tags,omitempty"`

	// 保护实例的同步进度。单位:百分比(%)。
	Progress int32 `json:"progress"`

	// 标识保护实例所在保护组的当前生产站点可用区。source:表示当前生产站点可用区为保护组source_availability_zone的值。target:表示当前生产站点可用区为保护组的target_availability_zone的值。
	PriorityStation string `json:"priority_station"`
}

ShowProtectedInstanceParams 查询保护实例数据结构

func (ShowProtectedInstanceParams) String

type ShowProtectedInstanceRequest

type ShowProtectedInstanceRequest struct {

	// 保护实例的ID。
	ProtectedInstanceId string `json:"protected_instance_id"`
}

ShowProtectedInstanceRequest Request Object

func (ShowProtectedInstanceRequest) String

type ShowProtectedInstanceResponse

type ShowProtectedInstanceResponse struct {
	ProtectedInstance *ShowProtectedInstanceParams `json:"protected_instance,omitempty"`
	HttpStatusCode    int                          `json:"-"`
}

ShowProtectedInstanceResponse Response Object

func (ShowProtectedInstanceResponse) String

type ShowProtectionGroupParams

type ShowProtectionGroupParams struct {

	// 保护组的ID。
	Id string `json:"id"`

	// 保护组的名称。
	Name string `json:"name"`

	// 保护组的描述。
	Description string `json:"description"`

	// 保护组的状态。
	Status string `json:"status"`

	// 保护组的同步进度。单位:百分比(%)。
	Progress int32 `json:"progress"`

	// 保护组创建时的生产站点可用区名称。注意:保护组切换、故障切换后,该值不变。
	SourceAvailabilityZone string `json:"source_availability_zone"`

	// 保护组创建时的容灾站点可用区名称。注意:保护组切换、故障切换后,该值不变。
	TargetAvailabilityZone string `json:"target_availability_zone"`

	// 双活域ID。
	DomainId string `json:"domain_id"`

	// 双活域名称。
	DomainName string `json:"domain_name"`

	// 用于标识保护组的当前生产站点。 source:表示当前生产站点可用区为source_availability_zone的值。 target:表示当前生产站点可用区为target_availability_zone的值。
	PriorityStation string `json:"priority_station"`

	// 该保护组中保护实例的个数。
	ProtectedInstanceNum int32 `json:"protected_instance_num"`

	// 该保护组中复制对的个数。
	ReplicationNum int32 `json:"replication_num"`

	// 该保护组中容灾演练的个数。
	DisasterRecoveryDrillNum int32 `json:"disaster_recovery_drill_num"`

	// 保护状态。started:表示该保护组开始保护。stopped:表示该保护组停止保护。 说明:系统近期进行了升级,对于升级后创建的保护组,该字段值为null,无实际意义。
	ProtectedStatus ShowProtectionGroupParamsProtectedStatus `json:"protected_status"`

	// 数据同步状态。 active:表示数据已同步完成。 inactive:表示数据未同步。 copying:表示数据正在同步。 active-stopped:表示数据已停止同步。  说明:系统近期进行了升级,对于升级后创建的保护组,该字段值为null,无实际意义。
	ReplicationStatus ShowProtectionGroupParamsReplicationStatus `json:"replication_status"`

	// 健康状态。 normal:表示该保护组处于正常状态。 abnormal:表示该保护组处于非正常状态。  说明:系统近期进行了升级,对于升级后创建的保护组,该字段值为null,无实际意义。
	HealthStatus ShowProtectionGroupParamsHealthStatus `json:"health_status"`

	// 生产站点虚拟私有云ID。
	SourceVpcId string `json:"source_vpc_id"`

	// 容灾站点虚拟私有云ID。
	TargetVpcId string `json:"target_vpc_id"`

	// 容灾演练虚拟私有云ID。(该参数暂未使用)
	TestVpcId string `json:"test_vpc_id"`

	// 部署模式。默认值为“migration”,migration表示VPC内迁移。
	DrType string `json:"dr_type"`

	// 创建时间。默认格式为:\"yyyy-MM-dd'T'HH:mm:ss.SSSZ\",例:\"2019-04-01T12:00:00.000Z\"。
	CreatedAt string `json:"created_at"`

	// 更新时间。默认格式为:\"yyyy-MM-dd'T'HH:mm:ss.SSSZ\",例:\"2019-04-01T12:00:00.000Z\"。
	UpdatedAt string `json:"updated_at"`

	// 保护模式。 replication-pair:表示以复制对为单位进行数据同步。 null:表示将保护组中的所有复制对作为一个整体进行数据同步。  说明:当保护组中的所有复制对作为一个整体进行数据同步时,如果数据同步失败,保护组中的所有复制对都会受到影响。因此,SDRS服务对系统做了优化升级: 对于升级后创建的资源,默认以复制对为单位进行数据同步,返回值为replication-pair; 对于已有资源,仍以一个整体进行数据同步,返回值为null。
	ProtectionType ShowProtectionGroupParamsProtectionType `json:"protection_type"`

	// 复制类型。 说明:预留参数,暂未启用。
	ReplicationModel string `json:"replication_model"`

	// 管理的服务器类型 ECS:表示管理的服务器类型为云服务器。
	ServerType string `json:"server_type"`
}

ShowProtectionGroupParams 查询保护组数据结构

func (ShowProtectionGroupParams) String

func (o ShowProtectionGroupParams) String() string

type ShowProtectionGroupParamsHealthStatus

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

func (ShowProtectionGroupParamsHealthStatus) MarshalJSON

func (c ShowProtectionGroupParamsHealthStatus) MarshalJSON() ([]byte, error)

func (*ShowProtectionGroupParamsHealthStatus) UnmarshalJSON

func (c *ShowProtectionGroupParamsHealthStatus) UnmarshalJSON(b []byte) error

func (ShowProtectionGroupParamsHealthStatus) Value added in v0.0.90

type ShowProtectionGroupParamsProtectedStatus

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

func (ShowProtectionGroupParamsProtectedStatus) MarshalJSON

func (*ShowProtectionGroupParamsProtectedStatus) UnmarshalJSON

func (c *ShowProtectionGroupParamsProtectedStatus) UnmarshalJSON(b []byte) error

func (ShowProtectionGroupParamsProtectedStatus) Value added in v0.0.90

type ShowProtectionGroupParamsProtectedStatusEnum

type ShowProtectionGroupParamsProtectedStatusEnum struct {
	STARTED ShowProtectionGroupParamsProtectedStatus
	STOPPED ShowProtectionGroupParamsProtectedStatus
}

func GetShowProtectionGroupParamsProtectedStatusEnum

func GetShowProtectionGroupParamsProtectedStatusEnum() ShowProtectionGroupParamsProtectedStatusEnum

type ShowProtectionGroupParamsProtectionType

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

func (ShowProtectionGroupParamsProtectionType) MarshalJSON

func (c ShowProtectionGroupParamsProtectionType) MarshalJSON() ([]byte, error)

func (*ShowProtectionGroupParamsProtectionType) UnmarshalJSON

func (c *ShowProtectionGroupParamsProtectionType) UnmarshalJSON(b []byte) error

func (ShowProtectionGroupParamsProtectionType) Value added in v0.0.90

type ShowProtectionGroupParamsProtectionTypeEnum

type ShowProtectionGroupParamsProtectionTypeEnum struct {
	REPLICATION_PAIR ShowProtectionGroupParamsProtectionType
	NULL             ShowProtectionGroupParamsProtectionType
}

func GetShowProtectionGroupParamsProtectionTypeEnum

func GetShowProtectionGroupParamsProtectionTypeEnum() ShowProtectionGroupParamsProtectionTypeEnum

type ShowProtectionGroupParamsReplicationStatus

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

func (ShowProtectionGroupParamsReplicationStatus) MarshalJSON

func (*ShowProtectionGroupParamsReplicationStatus) UnmarshalJSON

func (ShowProtectionGroupParamsReplicationStatus) Value added in v0.0.90

type ShowProtectionGroupRequest

type ShowProtectionGroupRequest struct {

	// 保护组的ID。
	ServerGroupId string `json:"server_group_id"`
}

ShowProtectionGroupRequest Request Object

func (ShowProtectionGroupRequest) String

type ShowProtectionGroupResponse

type ShowProtectionGroupResponse struct {
	ServerGroup    *ShowProtectionGroupParams `json:"server_group,omitempty"`
	HttpStatusCode int                        `json:"-"`
}

ShowProtectionGroupResponse Response Object

func (ShowProtectionGroupResponse) String

type ShowQuotaRequest

type ShowQuotaRequest struct {
}

ShowQuotaRequest Request Object

func (ShowQuotaRequest) String

func (o ShowQuotaRequest) String() string

type ShowQuotaResponse

type ShowQuotaResponse struct {
	Quotas         *QuotaParams `json:"quotas,omitempty"`
	HttpStatusCode int          `json:"-"`
}

ShowQuotaResponse Response Object

func (ShowQuotaResponse) String

func (o ShowQuotaResponse) String() string

type ShowReplicationParams

type ShowReplicationParams struct {

	// 复制对的ID。
	Id string `json:"id"`

	// 复制对的名称。
	Name string `json:"name"`

	// 复制对的描述。
	Description string `json:"description"`

	// 复制对的状态。
	Status string `json:"status"`

	// 复制对使用的云硬盘ID。
	VolumeIds string `json:"volume_ids"`

	// 挂载点。
	Attachment []ReplicationAttachment `json:"attachment"`

	// 创建时间。默认格式为:\"yyyy-MM-ddTHH:mm:ss.SSSZ\",例如:\"2019-04-01T12:00:00.000Z\"
	CreatedAt string `json:"created_at"`

	// 更新时间。默认格式为:\"yyyy-MM-ddTHH:mm:ss.SSSZ\",例如:\"2019-04-01T12:00:00.000Z\"
	UpdatedAt string `json:"updated_at"`

	// 复制对的复制类型。默认值为“hypermetro”,表示同步复制。
	ReplicationModel string `json:"replication_model"`

	// 复制对的同步进度。单位:百分比(%)。
	Progress int32 `json:"progress"`

	// 仅在复制对的状态“status”为“error”时,返回的错误码。
	FailureDetail string `json:"failure_detail"`

	RecordMetadata *ReplicationRecordMetadata `json:"record_metadata"`

	// 复制对的故障等级。0:表示无故障。2:表示当前生产站点的云硬盘无读写数据权限,此时建议执行故障切换操作。5:表示复制链路已断,不能执行故障切换操作,需联系技术支持工程师。
	FaultLevel string `json:"fault_level"`

	// 保护组的ID。
	ServerGroupId string `json:"server_group_id"`

	// 标识复制对所在保护组的当前生产站点可用区。source:表示当前生产站点可用区为保护组source_availability_zone的值。target:表示当前生产站点可用区为保护组target_availability_zone的值。
	PriorityStation string `json:"priority_station"`

	// 数据同步状态。active:表示数据已同步完成。inactive:表示数据未同步。copying:表示数据正在同步。active-stopped:表示数据已停止同步。
	ReplicationStatus ShowReplicationParamsReplicationStatus `json:"replication_status"`
}

ShowReplicationParams 查询复制对数据结构

func (ShowReplicationParams) String

func (o ShowReplicationParams) String() string

type ShowReplicationParamsReplicationStatus

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

func (ShowReplicationParamsReplicationStatus) MarshalJSON

func (c ShowReplicationParamsReplicationStatus) MarshalJSON() ([]byte, error)

func (*ShowReplicationParamsReplicationStatus) UnmarshalJSON

func (c *ShowReplicationParamsReplicationStatus) UnmarshalJSON(b []byte) error

func (ShowReplicationParamsReplicationStatus) Value added in v0.0.90

type ShowReplicationRequest

type ShowReplicationRequest struct {

	// 复制对ID。
	ReplicationId string `json:"replication_id"`
}

ShowReplicationRequest Request Object

func (ShowReplicationRequest) String

func (o ShowReplicationRequest) String() string

type ShowReplicationResponse

type ShowReplicationResponse struct {
	Replication    *ShowReplicationParams `json:"replication,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

ShowReplicationResponse Response Object

func (ShowReplicationResponse) String

func (o ShowReplicationResponse) String() string

type ShowSpecifiedApiVersionRequest

type ShowSpecifiedApiVersionRequest struct {

	// API版本号。例如: v1。
	ApiVersion string `json:"api_version"`
}

ShowSpecifiedApiVersionRequest Request Object

func (ShowSpecifiedApiVersionRequest) String

type ShowSpecifiedApiVersionResponse

type ShowSpecifiedApiVersionResponse struct {
	Version        *ShowApiVersionParams `json:"version,omitempty"`
	HttpStatusCode int                   `json:"-"`
}

ShowSpecifiedApiVersionResponse Response Object

func (ShowSpecifiedApiVersionResponse) String

type StartFailoverProtectionGroupRequest

type StartFailoverProtectionGroupRequest struct {

	// 保护组的ID。
	ServerGroupId string `json:"server_group_id"`

	Body *FailoverProtectionGroupRequestBody `json:"body,omitempty"`
}

StartFailoverProtectionGroupRequest Request Object

func (StartFailoverProtectionGroupRequest) String

type StartFailoverProtectionGroupResponse

type StartFailoverProtectionGroupResponse struct {

	// 成功返回jobId信息
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

StartFailoverProtectionGroupResponse Response Object

func (StartFailoverProtectionGroupResponse) String

type StartProtectionGroupRequest

type StartProtectionGroupRequest struct {

	// 保护组的ID。
	ServerGroupId string `json:"server_group_id"`

	Body *StartProtectionGroupRequestBody `json:"body,omitempty"`
}

StartProtectionGroupRequest Request Object

func (StartProtectionGroupRequest) String

type StartProtectionGroupRequestBody

type StartProtectionGroupRequestBody struct {

	// 标识保护组开始保护操作。目前该参数为空。
	StartServerGroup *interface{} `json:"start-server-group"`
}

StartProtectionGroupRequestBody 开启保护/重保护请求体

func (StartProtectionGroupRequestBody) String

type StartProtectionGroupResponse

type StartProtectionGroupResponse struct {

	// 成功返回jobId信息
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

StartProtectionGroupResponse Response Object

func (StartProtectionGroupResponse) String

type StartReverseProtectionGroupRequest

type StartReverseProtectionGroupRequest struct {

	// 保护组的ID。
	ServerGroupId string `json:"server_group_id"`

	Body *ReverseProtectionGroupRequestBody `json:"body,omitempty"`
}

StartReverseProtectionGroupRequest Request Object

func (StartReverseProtectionGroupRequest) String

type StartReverseProtectionGroupResponse

type StartReverseProtectionGroupResponse struct {

	// 成功返回jobId信息
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

StartReverseProtectionGroupResponse Response Object

func (StartReverseProtectionGroupResponse) String

type StopProtectionGroupRequest

type StopProtectionGroupRequest struct {

	// 保护组的ID。
	ServerGroupId string `json:"server_group_id"`

	Body *StopProtectionGroupRequestBody `json:"body,omitempty"`
}

StopProtectionGroupRequest Request Object

func (StopProtectionGroupRequest) String

type StopProtectionGroupRequestBody

type StopProtectionGroupRequestBody struct {

	// 标识保护组停止保护操作。该参数目前默认值为空。
	StopServerGroup *interface{} `json:"stop-server-group"`
}

StopProtectionGroupRequestBody 保护组停止保护请求体

func (StopProtectionGroupRequestBody) String

type StopProtectionGroupResponse

type StopProtectionGroupResponse struct {

	// 成功返回jobId信息
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

StopProtectionGroupResponse Response Object

func (StopProtectionGroupResponse) String

type SubJobEntities

type SubJobEntities struct {

	// 复制对ID
	ReplicationPairId *string `json:"replication_pair_id,omitempty"`

	// 组成复制对的云硬盘ID
	VolumeIds *string `json:"volume_ids,omitempty"`

	// 保护组ID
	ServerGroupId *string `json:"server_group_id,omitempty"`

	// 保护实例ID
	ProtectedInstanceId *string `json:"protected_instance_id,omitempty"`

	// 容灾站点服务器ID
	NativeServerId *string `json:"native_server_id,omitempty"`

	// 网卡ID
	NicId *string `json:"nic_id,omitempty"`
}

SubJobEntities

func (SubJobEntities) String

func (o SubJobEntities) String() string

type SubJobParams

type SubJobParams struct {

	// Job的状态。 SUCCESS:成功。 RUNNING:运行中。 FAIL:失败。 INIT:正在初始化。
	Status SubJobParamsStatus `json:"status"`

	Entities *SubJobEntities `json:"entities"`

	// Job ID。
	JobId string `json:"job_id"`

	// Job的类型。createProtectionGroupNoCG:创建保护组。deleteProtectionGroupNoCG:删除保护组。startProtectionGroupNoCG :保护组开始保护。reprotectProtectionGroupNoCG :保护组重保护。stopProtectionGroupNoCG :保护组停止保护。failoverProtectionGroupNoCG  :保护组故障切换。reverseProtectionGroupNoCG:保护组切换。createProtectedInstanceNoCG:创建保护实例。deleteProtectedInstanceNoCG:删除保护实例。attachReplicationPairNew:保护实例挂载复制对。detachReplicationPairNew:保护实例卸载复制对。addNicNew:保护实例添加网卡。deleteNicNew:保护实例删除网卡。resizeProtectedInstanceNew:保护实例变更规格。createReplicationPairNoCG:创建复制对。deleteReplicationPairNoCG:删除复制对。expandReplicationPairNew:复制对扩容。createDisasterRecoveryDrill:创建容灾演练。deleteDisasterRecoveryDrill:删除容灾演练。
	JobType string `json:"job_type"`

	// 开始时间。默认格式为:\"yyyy-MM-dd'T'HH:mm:ss.SSSZ\",例:\"2019-04-01T12:00:00.000Z\"。
	BeginTime string `json:"begin_time"`

	// 结束时间。默认格式为:\"yyyy-MM-dd'T'HH:mm:ss.SSSZ\",例:\"2019-04-01T12:00:00.000Z\"。
	EndTime string `json:"end_time"`

	// Job执行失败时的错误码。
	ErrorCode string `json:"error_code"`

	// Job执行失败时的错误原因。
	FailReason string `json:"fail_reason"`
}

SubJobParams

func (SubJobParams) String

func (o SubJobParams) String() string

type SubJobParamsStatus

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

func (SubJobParamsStatus) MarshalJSON

func (c SubJobParamsStatus) MarshalJSON() ([]byte, error)

func (*SubJobParamsStatus) UnmarshalJSON

func (c *SubJobParamsStatus) UnmarshalJSON(b []byte) error

func (SubJobParamsStatus) Value added in v0.0.90

func (c SubJobParamsStatus) Value() string

type SubJobParamsStatusEnum

type SubJobParamsStatusEnum struct {
	SUCCESS SubJobParamsStatus
	RUNNING SubJobParamsStatus
	FAIL    SubJobParamsStatus
	INIT    SubJobParamsStatus
}

func GetSubJobParamsStatusEnum

func GetSubJobParamsStatusEnum() SubJobParamsStatusEnum

type TagParams

type TagParams struct {

	// 键。最大长度127个unicode字符。 key不能为空。key不能为空或者空字符串,不能为空格,使用之前先trim 前后半角空格。
	Key string `json:"key"`

	// 值列表。每个值最大长度255个unicode字符,使用之前先trim 前后半角空格。\\*为系统保留字符,如果value是以\\*开头表示按照\\*后面的值全模糊匹配。不能只传入“\\*”。如果values为空列表,则表示any_value(查询任意value)。value之间为或的关系。
	Values []string `json:"values"`
}

TagParams 值为列表的tag结构

func (TagParams) String

func (o TagParams) String() string

type UpdateDisasterRecoveryDrillNameRequest

type UpdateDisasterRecoveryDrillNameRequest struct {

	// 容灾演练的ID。
	DisasterRecoveryDrillId string `json:"disaster_recovery_drill_id"`

	Body *UpdateDisasterRecoveryDrillNameRequestBody `json:"body,omitempty"`
}

UpdateDisasterRecoveryDrillNameRequest Request Object

func (UpdateDisasterRecoveryDrillNameRequest) String

type UpdateDisasterRecoveryDrillNameRequestBody

type UpdateDisasterRecoveryDrillNameRequestBody struct {
	DisasterRecoveryDrill *UpdateDisasterRecoveryDrillNameRequestParams `json:"disaster_recovery_drill"`
}

UpdateDisasterRecoveryDrillNameRequestBody 更新容灾演练名称请求体

func (UpdateDisasterRecoveryDrillNameRequestBody) String

type UpdateDisasterRecoveryDrillNameRequestParams

type UpdateDisasterRecoveryDrillNameRequestParams struct {

	// 容灾演练的名称。最大支持长度为64个字节。只包含中文字符、英文字母(a~z、A~Z)、数字(0~9)、小数点(.)、下划线(_)、中划线(-)。
	Name string `json:"name"`
}

UpdateDisasterRecoveryDrillNameRequestParams 更新容灾演练名称数据结构

func (UpdateDisasterRecoveryDrillNameRequestParams) String

type UpdateDisasterRecoveryDrillNameResponse

type UpdateDisasterRecoveryDrillNameResponse struct {
	DisasterRecoveryDrill *ShowDisasterRecoveryDrillParams `json:"disaster_recovery_drill,omitempty"`
	HttpStatusCode        int                              `json:"-"`
}

UpdateDisasterRecoveryDrillNameResponse Response Object

func (UpdateDisasterRecoveryDrillNameResponse) String

type UpdateProtectedInstanceNameRequest

type UpdateProtectedInstanceNameRequest struct {

	// 保护实例的ID。
	ProtectedInstanceId string `json:"protected_instance_id"`

	Body *UpdateProtectedInstanceNameRequestBody `json:"body,omitempty"`
}

UpdateProtectedInstanceNameRequest Request Object

func (UpdateProtectedInstanceNameRequest) String

type UpdateProtectedInstanceNameRequestBody

type UpdateProtectedInstanceNameRequestBody struct {
	ProtectedInstance *UpdateProtectedInstanceNameRequestParams `json:"protected_instance"`
}

UpdateProtectedInstanceNameRequestBody 更新保护实例名称请求体

func (UpdateProtectedInstanceNameRequestBody) String

type UpdateProtectedInstanceNameRequestParams

type UpdateProtectedInstanceNameRequestParams struct {

	// 保护实例的名称。最大支持长度为64个字节。只包含中文字符、英文字母(a~z、A~Z)、数字(0~9)、小数点(.)、下划线(_)、中划线(-)。
	Name string `json:"name"`
}

UpdateProtectedInstanceNameRequestParams 更新保护实例名称请求数据结构

func (UpdateProtectedInstanceNameRequestParams) String

type UpdateProtectedInstanceNameResponse

type UpdateProtectedInstanceNameResponse struct {
	ProtectedInstance *ShowProtectedInstanceParams `json:"protected_instance,omitempty"`
	HttpStatusCode    int                          `json:"-"`
}

UpdateProtectedInstanceNameResponse Response Object

func (UpdateProtectedInstanceNameResponse) String

type UpdateProtectionGroupNameRequest

type UpdateProtectionGroupNameRequest struct {

	// 保护组ID。
	ServerGroupId string `json:"server_group_id"`

	Body *UpdateProtectionGroupNameRequestBody `json:"body,omitempty"`
}

UpdateProtectionGroupNameRequest Request Object

func (UpdateProtectionGroupNameRequest) String

type UpdateProtectionGroupNameRequestBody

type UpdateProtectionGroupNameRequestBody struct {
	ServerGroup *UpdateProtectionGroupNameRequestParams `json:"server_group"`
}

UpdateProtectionGroupNameRequestBody 更新保护组名称请求体

func (UpdateProtectionGroupNameRequestBody) String

type UpdateProtectionGroupNameRequestParams

type UpdateProtectionGroupNameRequestParams struct {

	// 保护组的名称。 最大支持长度为64个字节。 只包含中文字符、英文字母(a~z、A~Z)、数字(0~9)、小数点(.)、下划线(_)、中划线(-)。
	Name string `json:"name"`
}

UpdateProtectionGroupNameRequestParams 更新保护组名称请求数据结构

func (UpdateProtectionGroupNameRequestParams) String

type UpdateProtectionGroupNameResponse

type UpdateProtectionGroupNameResponse struct {
	ServerGroup    *ShowProtectionGroupParams `json:"server_group,omitempty"`
	HttpStatusCode int                        `json:"-"`
}

UpdateProtectionGroupNameResponse Response Object

func (UpdateProtectionGroupNameResponse) String

type UpdateReplicationNameRequest

type UpdateReplicationNameRequest struct {

	// replication_id
	ReplicationId string `json:"replication_id"`

	Body *UpdateReplicationNameRequestBody `json:"body,omitempty"`
}

UpdateReplicationNameRequest Request Object

func (UpdateReplicationNameRequest) String

type UpdateReplicationNameRequestBody

type UpdateReplicationNameRequestBody struct {
	Replication *UpdateReplicationNameRequestParams `json:"replication"`
}

UpdateReplicationNameRequestBody 更新复制对名称请求体

func (UpdateReplicationNameRequestBody) String

type UpdateReplicationNameRequestParams

type UpdateReplicationNameRequestParams struct {

	// 复制对的名称。最大支持长度为64个字节。只包含中文字符、英文字母(a~z、A~Z)、数字(0~9)、小数点(.)、下划线(_)、中划线(-)。
	Name string `json:"name"`
}

UpdateReplicationNameRequestParams 更新复制对名称请求体数据结构

func (UpdateReplicationNameRequestParams) String

type UpdateReplicationNameResponse

type UpdateReplicationNameResponse struct {
	Replication    *ShowReplicationParams `json:"replication,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

UpdateReplicationNameResponse Response Object

func (UpdateReplicationNameResponse) String

Source Files

Jump to

Keyboard shortcuts

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