model

package
v0.0.32-rc.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddMemberRequest

type AddMemberRequest struct {
	BackupId string         `json:"backup_id"`
	Body     *AddMembersReq `json:"body,omitempty"`
}

Request Object

func (AddMemberRequest) String

func (o AddMemberRequest) String() string

type AddMemberResponse

type AddMemberResponse struct {
	// 添加备份共享成员响应信息
	Members *[]Member `json:"members,omitempty"`
	//
	Count          *int32 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (AddMemberResponse) String

func (o AddMemberResponse) String() string

type AddMembersReq

type AddMembersReq struct {
	// 列表,待添加备份共享成员的project_id。
	Members []string `json:"members"`
}

备份共享目标用户的项目id。

func (AddMembersReq) String

func (o AddMembersReq) String() string

type AddVaultResourceRequest

type AddVaultResourceRequest struct {
	VaultId string               `json:"vault_id"`
	Body    *VaultAddResourceReq `json:"body,omitempty"`
}

Request Object

func (AddVaultResourceRequest) String

func (o AddVaultResourceRequest) String() string

type AddVaultResourceResponse

type AddVaultResourceResponse struct {
	// 已添加的资源ID列表
	AddResourceIds *[]string `json:"add_resource_ids,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (AddVaultResourceResponse) String

func (o AddVaultResourceResponse) String() string

type AssociateVaultPolicyRequest

type AssociateVaultPolicyRequest struct {
	VaultId string          `json:"vault_id"`
	Body    *VaultAssociate `json:"body,omitempty"`
}

Request Object

func (AssociateVaultPolicyRequest) String

type AssociateVaultPolicyResponse

type AssociateVaultPolicyResponse struct {
	AssociatePolicy *VaultPolicyResp `json:"associate_policy,omitempty"`
	HttpStatusCode  int              `json:"-"`
}

Response Object

func (AssociateVaultPolicyResponse) String

type BackupDetail

type BackupDetail struct {
	// 还原点ID
	CheckpointId string `json:"checkpoint_id"`
	// 创建时间,例如:\"2020-02-05T10:38:34.209782\"
	CreatedAt *sdktime.SdkTime `json:"created_at"`
	// 备份描述
	Description string `json:"description"`
	// 过期时间,例如:\"2020-02-05T10:38:34.209782\"
	ExpiredAt  *sdktime.SdkTime  `json:"expired_at"`
	ExtendInfo *BackupExtendInfo `json:"extend_info"`
	// 备份ID
	Id string `json:"id"`
	// 备份类型
	ImageType BackupDetailImageType `json:"image_type"`
	// 备份名称
	Name string `json:"name"`
	// 父备份ID
	ParentId string `json:"parent_id"`
	// 项目ID
	ProjectId string `json:"project_id"`
	// 备份时间
	ProtectedAt string `json:"protected_at"`
	// 资源可用区
	ResourceAz string `json:"resource_az"`
	// 资源ID
	ResourceId string `json:"resource_id"`
	// 资源名称
	ResourceName string `json:"resource_name"`
	// 资源大小,单位为GB
	ResourceSize int32 `json:"resource_size"`
	// 资源类型
	ResourceType BackupDetailResourceType `json:"resource_type"`
	// 备份状态
	Status BackupDetailStatus `json:"status"`
	// 更新时间,例如:\"2020-02-05T10:38:34.209782\"
	UpdatedAt *sdktime.SdkTime `json:"updated_at"`
	// 存储库ID
	VaultId string `json:"vault_id"`
	// 复制记录
	ReplicationRecords []ReplicationRecordGet `json:"replication_records"`
	// 企业项目id,默认为‘0’。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
	//
	Children []BackupResp `json:"children"`
}

func (BackupDetail) String

func (o BackupDetail) String() string

type BackupDetailImageType

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

func (BackupDetailImageType) MarshalJSON

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

func (*BackupDetailImageType) UnmarshalJSON

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

type BackupDetailImageTypeEnum

type BackupDetailImageTypeEnum struct {
	BACKUP      BackupDetailImageType
	REPLICATION BackupDetailImageType
}

func GetBackupDetailImageTypeEnum

func GetBackupDetailImageTypeEnum() BackupDetailImageTypeEnum

type BackupDetailResourceType

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

func (BackupDetailResourceType) MarshalJSON

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

func (*BackupDetailResourceType) UnmarshalJSON

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

type BackupDetailResourceTypeEnum

type BackupDetailResourceTypeEnum struct {
	OSNOVASERVER   BackupDetailResourceType
	OSCINDERVOLUME BackupDetailResourceType
}

func GetBackupDetailResourceTypeEnum

func GetBackupDetailResourceTypeEnum() BackupDetailResourceTypeEnum

type BackupDetailStatus

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

func (BackupDetailStatus) MarshalJSON

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

func (*BackupDetailStatus) UnmarshalJSON

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

type BackupDetailStatusEnum

type BackupDetailStatusEnum struct {
	AVAILABLE       BackupDetailStatus
	PROTECTING      BackupDetailStatus
	DELETING        BackupDetailStatus
	RESTORING       BackupDetailStatus
	ERROR           BackupDetailStatus
	WAITING_PROTECT BackupDetailStatus
	WAITING_DELETE  BackupDetailStatus
	WAITING_RESTORE BackupDetailStatus
}

func GetBackupDetailStatusEnum

func GetBackupDetailStatusEnum() BackupDetailStatusEnum

type BackupExtendInfo

type BackupExtendInfo struct {
	// 是否是自动生成的备份副本
	AutoTrigger *bool `json:"auto_trigger,omitempty"`
	// 是否系统盘备份
	Bootable *bool `json:"bootable,omitempty"`
	// 是否是增备
	Incremental *bool `json:"incremental,omitempty"`
	// 卷备份副本的快照id
	SnapshotId *string `json:"snapshot_id,omitempty"`
	// 是否支持lazyloading快速恢复
	SupportLld *bool `json:"support_lld,omitempty"`
	// 备份支持恢复的方式,当前取值包含na,snapshot和backup。如果该字段取值为snapshot,代表备份此时已经支持创建整机镜像;如果该字段取值为backup,备份支持通过云服务器上硬盘的备份进行恢复;如果该字段取值为na,备份不支持恢复。
	SupportedRestoreMode *BackupExtendInfoSupportedRestoreMode `json:"supported_restore_mode,omitempty"`
	// 备份注册镜像ID列表
	OsImagesData *[]ImageData `json:"os_images_data,omitempty"`
	// 整机备份是否包含系统盘
	ContainSystemDisk *bool `json:"contain_system_disk,omitempty"`
	// 是否加密
	Encrypted *bool `json:"encrypted,omitempty"`
	// 是否是系统盘
	SystemDisk *bool `json:"system_disk,omitempty"`
}

func (BackupExtendInfo) String

func (o BackupExtendInfo) String() string

type BackupExtendInfoSupportedRestoreMode

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

func (BackupExtendInfoSupportedRestoreMode) MarshalJSON

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

func (*BackupExtendInfoSupportedRestoreMode) UnmarshalJSON

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

type BackupReplicateReq

type BackupReplicateReq struct {
	Replicate *BackupReplicateReqBody `json:"replicate"`
}

func (BackupReplicateReq) String

func (o BackupReplicateReq) String() string

type BackupReplicateReqBody

type BackupReplicateReqBody struct {
	// 复制的描述
	Description *string `json:"description,omitempty"`
	// 复制的目标项目ID
	DestinationProjectId string `json:"destination_project_id"`
	// 复制的目标区域
	DestinationRegion string `json:"destination_region"`
	// 复制的目标区域的存储库ID
	DestinationVaultId string `json:"destination_vault_id"`
	// 跨区域复制时,是否启用加速从而缩短复制的时间,如果不指定,默认不启用加速。
	EnableAcceleration *bool `json:"enable_acceleration,omitempty"`
	// 复制名称
	Name *string `json:"name,omitempty"`
}

func (BackupReplicateReqBody) String

func (o BackupReplicateReqBody) String() string

type BackupReplicateRespBody

type BackupReplicateRespBody struct {
	// 待复制的备份ID
	BackupId *string `json:"backup_id,omitempty"`
	// 复制的目标项目ID
	DestinationProjectId *string `json:"destination_project_id,omitempty"`
	// 复制的目标区域
	DestinationRegion *string `json:"destination_region,omitempty"`
	// 复制的目标区域存储库ID
	DestinationVaultId *string `json:"destination_vault_id,omitempty"`
	// 执行复制的项目ID
	ProjectId *string `json:"project_id,omitempty"`
	//
	ProviderId *string `json:"provider_id,omitempty"`
	// 复制记录ID
	ReplicationRecordId *string `json:"replication_record_id,omitempty"`
	// 复制的源区域
	SourceRegion *string `json:"source_region,omitempty"`
}

func (BackupReplicateRespBody) String

func (o BackupReplicateRespBody) String() string

type BackupResp

type BackupResp struct {
	// 还原点ID
	CheckpointId string `json:"checkpoint_id"`
	// 创建时间,例如:\"2020-02-05T10:38:34.209782\"
	CreatedAt *sdktime.SdkTime `json:"created_at"`
	// 备份描述
	Description string `json:"description"`
	// 过期时间,例如:\"2020-02-05T10:38:34.209782\"
	ExpiredAt  *sdktime.SdkTime  `json:"expired_at"`
	ExtendInfo *BackupExtendInfo `json:"extend_info"`
	// 备份ID
	Id string `json:"id"`
	// 备份类型
	ImageType BackupRespImageType `json:"image_type"`
	// 备份名称
	Name string `json:"name"`
	// 父备份ID
	ParentId string `json:"parent_id"`
	// 项目ID
	ProjectId string `json:"project_id"`
	// 备份时间
	ProtectedAt string `json:"protected_at"`
	// 资源可用区
	ResourceAz string `json:"resource_az"`
	// 资源ID
	ResourceId string `json:"resource_id"`
	// 资源名称
	ResourceName string `json:"resource_name"`
	// 资源大小,单位为GB
	ResourceSize int32 `json:"resource_size"`
	// 资源类型
	ResourceType BackupRespResourceType `json:"resource_type"`
	// 备份状态
	Status BackupRespStatus `json:"status"`
	// 更新时间,例如:\"2020-02-05T10:38:34.209782\"
	UpdatedAt *sdktime.SdkTime `json:"updated_at"`
	// 存储库ID
	VaultId string `json:"vault_id"`
	// 复制记录
	ReplicationRecords []ReplicationRecordGet `json:"replication_records"`
	// 企业项目id,默认为‘0’。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

func (BackupResp) String

func (o BackupResp) String() string

type BackupRespImageType

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

func (BackupRespImageType) MarshalJSON

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

func (*BackupRespImageType) UnmarshalJSON

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

type BackupRespImageTypeEnum

type BackupRespImageTypeEnum struct {
	BACKUP      BackupRespImageType
	REPLICATION BackupRespImageType
}

func GetBackupRespImageTypeEnum

func GetBackupRespImageTypeEnum() BackupRespImageTypeEnum

type BackupRespResourceType

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

func (BackupRespResourceType) MarshalJSON

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

func (*BackupRespResourceType) UnmarshalJSON

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

type BackupRespResourceTypeEnum

type BackupRespResourceTypeEnum struct {
	OSNOVASERVER   BackupRespResourceType
	OSCINDERVOLUME BackupRespResourceType
}

func GetBackupRespResourceTypeEnum

func GetBackupRespResourceTypeEnum() BackupRespResourceTypeEnum

type BackupRespStatus

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

func (BackupRespStatus) MarshalJSON

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

func (*BackupRespStatus) UnmarshalJSON

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

type BackupRespStatusEnum

type BackupRespStatusEnum struct {
	AVAILABLE       BackupRespStatus
	PROTECTING      BackupRespStatus
	DELETING        BackupRespStatus
	RESTORING       BackupRespStatus
	ERROR           BackupRespStatus
	WAITING_PROTECT BackupRespStatus
	WAITING_DELETE  BackupRespStatus
	WAITING_RESTORE BackupRespStatus
}

func GetBackupRespStatusEnum

func GetBackupRespStatusEnum() BackupRespStatusEnum

type BackupRestore

type BackupRestore struct {
	// 恢复的映射关系(整机恢复时必填,卷恢复时可选但是不会用到填写的值)
	Mappings *[]BackupRestoreServerMapping `json:"mappings,omitempty"`
	// 恢复后是否开始,默认开机。
	PowerOn *bool `json:"power_on,omitempty"`
	// 恢复的目标虚拟机ID(整机恢复时必填)
	ServerId *string `json:"server_id,omitempty"`
	// 恢复的目标卷ID(卷恢复时必填)
	VolumeId *string `json:"volume_id,omitempty"`
	// 待恢复的目标资源ID
	ResourceId *string `json:"resource_id,omitempty"`
}

func (BackupRestore) String

func (o BackupRestore) String() string

type BackupRestoreReq

type BackupRestoreReq struct {
	Restore *BackupRestore `json:"restore"`
}

恢复请求body

func (BackupRestoreReq) String

func (o BackupRestoreReq) String() string

type BackupRestoreServerMapping

type BackupRestoreServerMapping struct {
	// 卷备份ID,可以通过控制台或者“查询指定备份”接口获取。
	BackupId string `json:"backup_id"`
	// 待恢复目标卷ID
	VolumeId string `json:"volume_id"`
}

func (BackupRestoreServerMapping) String

type BackupSync

type BackupSync struct {
	// 备份副本ID
	BackupId string `json:"backup_id"`
	// 备份名称
	BackupName string `json:"backup_name"`
	// 桶名
	BucketName string `json:"bucket_name"`
	// 备份链在存储单元上的路径
	ImagePath string `json:"image_path"`
	// 备份对象ID
	ResourceId string `json:"resource_id"`
	// 备份对象名称
	ResourceName string `json:"resource_name"`
	// 备份对象资源类型
	ResourceType string `json:"resource_type"`
	// 备份时间戳,例如1548898428
	CreatedAt int32 `json:"created_at"`
}

func (BackupSync) String

func (o BackupSync) String() string

type BackupSyncReq

type BackupSyncReq struct {
	// 待同步备份副本列表
	Sync []BackupSync `json:"sync"`
}

func (BackupSyncReq) String

func (o BackupSyncReq) String() string

type BackupSyncRespBody

type BackupSyncRespBody struct {
	// 备份副本ID
	BackupId string `json:"backup_id"`
	// 同步任务ID
	OperationLogId string `json:"operation_log_id"`
}

func (BackupSyncRespBody) String

func (o BackupSyncRespBody) String() string

type BatchCreateAndDeleteVaultTagsRequest

type BatchCreateAndDeleteVaultTagsRequest struct {
	VaultId string                           `json:"vault_id"`
	Body    *BulkCreateAndDeleteVaultTagsReq `json:"body,omitempty"`
}

Request Object

func (BatchCreateAndDeleteVaultTagsRequest) String

type BatchCreateAndDeleteVaultTagsResponse

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

Response Object

func (BatchCreateAndDeleteVaultTagsResponse) String

type BillbingCreateExtraInfo

type BillbingCreateExtraInfo struct {
	// 组合创建ID,组合创建时必传。
	CombinedOrderId *string `json:"combined_order_id,omitempty"`
	// 组合创建数量,组合创建时必填。
	CombinedOrderEcsNum *int32 `json:"combined_order_ecs_num,omitempty"`
}

func (BillbingCreateExtraInfo) String

func (o BillbingCreateExtraInfo) String() string

type Billing

type Billing struct {
	// 已分配容量,单位MB
	Allocated int32 `json:"allocated"`
	// 创建模式
	ChargingMode BillingChargingMode `json:"charging_mode"`
	// 云平台
	CloudType *BillingCloudType `json:"cloud_type,omitempty"`
	// [规格,崩溃一致性(crash_consistent)或应用一致性(app_consistent)](tag:hws,hws_hk,fcs_vm,ctc) [规格,默认为崩溃一致性(crash_consistent)](tag:dt,ocb,tlf,sbc)
	ConsistentLevel string `json:"consistent_level"`
	// 对象类型
	ObjectType *BillingObjectType `json:"object_type,omitempty"`
	// 订单ID
	OrderId *string `json:"order_id,omitempty"`
	// 产品ID
	ProductId *string `json:"product_id,omitempty"`
	// 保护类型
	ProtectType BillingProtectType `json:"protect_type"`
	// 容量,单位GB
	Size int32 `json:"size"`
	// 规格编码
	SpecCode BillingSpecCode `json:"spec_code"`
	// 保管库状态
	Status BillingStatus `json:"status"`
	// 存储库桶名
	StorageUnit *string `json:"storage_unit,omitempty"`
	// 已使用容量,单位MB
	Used int32 `json:"used"`
	// 冻结场景
	FrozenScene *string `json:"frozen_scene,omitempty"`
}

func (Billing) String

func (o Billing) String() string

type BillingChargingMode

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

func (BillingChargingMode) MarshalJSON

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

func (*BillingChargingMode) UnmarshalJSON

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

type BillingChargingModeEnum

type BillingChargingModeEnum struct {
	PRE_PAID  BillingChargingMode
	POST_PAID BillingChargingMode
}

func GetBillingChargingModeEnum

func GetBillingChargingModeEnum() BillingChargingModeEnum

type BillingCloudType

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

func (BillingCloudType) MarshalJSON

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

func (*BillingCloudType) UnmarshalJSON

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

type BillingCloudTypeEnum

type BillingCloudTypeEnum struct {
	PUBLIC BillingCloudType
	HYBRID BillingCloudType
}

func GetBillingCloudTypeEnum

func GetBillingCloudTypeEnum() BillingCloudTypeEnum

type BillingCreate

type BillingCreate struct {
	// [云平台,云平台,公有云或者混合云](tag:hws,hws_hk,fcs_vm,ctc) [云平台,云平台,公有云](tag:dt,ocb,tlf,sbc)
	CloudType *BillingCreateCloudType `json:"cloud_type,omitempty"`
	// [规格,崩溃一致性(crash_consistent)或应用一致性(app_consistent)](tag:hws,hws_hk,fcs_vm,ctc) [规格,默认为崩溃一致性(crash_consistent)](tag:dt,ocb,tlf,sbc)
	ConsistentLevel string `json:"consistent_level"`
	// 对象类型:云服务器(server),云硬盘(disk),文件系统(turbo)。
	ObjectType BillingCreateObjectType `json:"object_type"`
	// 保护类型:备份(backup)、复制(replication)
	ProtectType BillingCreateProtectType `json:"protect_type"`
	// 容量,单位GB
	Size int32 `json:"size"`
	// 创建模式,按需:post_paid,包周期:pre_paid,默认为post_paid
	ChargingMode *BillingCreateChargingMode `json:"charging_mode,omitempty"`
	// 创建类型,按年(year)或者按月(month)
	PeriodType *BillingCreatePeriodType `json:"period_type,omitempty"`
	// 创建类型的数量
	PeriodNum *int32 `json:"period_num,omitempty"`
	// 到期后是否自动续期,默认不续期
	IsAutoRenew *bool `json:"is_auto_renew,omitempty"`
	// 是否自动付费,默认为不自动付费
	IsAutoPay *bool `json:"is_auto_pay,omitempty"`
	// 跳转URL
	ConsoleUrl *string                  `json:"console_url,omitempty"`
	ExtraInfo  *BillbingCreateExtraInfo `json:"extra_info,omitempty"`
}

创建参数

func (BillingCreate) String

func (o BillingCreate) String() string

type BillingCreateChargingMode

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

func (BillingCreateChargingMode) MarshalJSON

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

func (*BillingCreateChargingMode) UnmarshalJSON

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

type BillingCreateChargingModeEnum

type BillingCreateChargingModeEnum struct {
	POST_PAID BillingCreateChargingMode
	PRE_PAID  BillingCreateChargingMode
}

func GetBillingCreateChargingModeEnum

func GetBillingCreateChargingModeEnum() BillingCreateChargingModeEnum

type BillingCreateCloudType

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

func (BillingCreateCloudType) MarshalJSON

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

func (*BillingCreateCloudType) UnmarshalJSON

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

type BillingCreateCloudTypeEnum

type BillingCreateCloudTypeEnum struct {
	PUBLIC BillingCreateCloudType
	HYBRID BillingCreateCloudType
}

func GetBillingCreateCloudTypeEnum

func GetBillingCreateCloudTypeEnum() BillingCreateCloudTypeEnum

type BillingCreateObjectType

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

func (BillingCreateObjectType) MarshalJSON

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

func (*BillingCreateObjectType) UnmarshalJSON

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

type BillingCreateObjectTypeEnum

type BillingCreateObjectTypeEnum struct {
	SERVER BillingCreateObjectType
	DISK   BillingCreateObjectType
	TURBO  BillingCreateObjectType
}

func GetBillingCreateObjectTypeEnum

func GetBillingCreateObjectTypeEnum() BillingCreateObjectTypeEnum

type BillingCreatePeriodType

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

func (BillingCreatePeriodType) MarshalJSON

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

func (*BillingCreatePeriodType) UnmarshalJSON

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

type BillingCreatePeriodTypeEnum

type BillingCreatePeriodTypeEnum struct {
	YEAR  BillingCreatePeriodType
	MONTH BillingCreatePeriodType
}

func GetBillingCreatePeriodTypeEnum

func GetBillingCreatePeriodTypeEnum() BillingCreatePeriodTypeEnum

type BillingCreateProtectType

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

func (BillingCreateProtectType) MarshalJSON

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

func (*BillingCreateProtectType) UnmarshalJSON

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

type BillingCreateProtectTypeEnum

type BillingCreateProtectTypeEnum struct {
	BACKUP      BillingCreateProtectType
	REPLICATION BillingCreateProtectType
}

func GetBillingCreateProtectTypeEnum

func GetBillingCreateProtectTypeEnum() BillingCreateProtectTypeEnum

type BillingObjectType

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

func (BillingObjectType) MarshalJSON

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

func (*BillingObjectType) UnmarshalJSON

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

type BillingObjectTypeEnum

type BillingObjectTypeEnum struct {
	SERVER BillingObjectType
	DISK   BillingObjectType
}

func GetBillingObjectTypeEnum

func GetBillingObjectTypeEnum() BillingObjectTypeEnum

type BillingProtectType

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

func (BillingProtectType) MarshalJSON

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

func (*BillingProtectType) UnmarshalJSON

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

type BillingProtectTypeEnum

type BillingProtectTypeEnum struct {
	BACKUP      BillingProtectType
	REPLICATION BillingProtectType
	HYBRID      BillingProtectType
}

func GetBillingProtectTypeEnum

func GetBillingProtectTypeEnum() BillingProtectTypeEnum

type BillingSpecCode

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

func (BillingSpecCode) MarshalJSON

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

func (*BillingSpecCode) UnmarshalJSON

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

type BillingSpecCodeEnum

type BillingSpecCodeEnum struct {
	VAULT_BACKUP_SERVER_NORMAL BillingSpecCode
	VAULT_BACKUP_VOLUME_NORMAL BillingSpecCode
}

func GetBillingSpecCodeEnum

func GetBillingSpecCodeEnum() BillingSpecCodeEnum

type BillingStatus

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

func (BillingStatus) MarshalJSON

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

func (*BillingStatus) UnmarshalJSON

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

type BillingStatusEnum

type BillingStatusEnum struct {
	AVAILABLE BillingStatus
	LOCK      BillingStatus
	FROZEN    BillingStatus
	DELETING  BillingStatus
	ERROR     BillingStatus
}

func GetBillingStatusEnum

func GetBillingStatusEnum() BillingStatusEnum

type BillingUpdate

type BillingUpdate struct {
	// 存储库规格
	ConsistentLevel *BillingUpdateConsistentLevel `json:"consistent_level,omitempty"`
	// 存储库大小,单位为GB
	Size *int32 `json:"size,omitempty"`
}

func (BillingUpdate) String

func (o BillingUpdate) String() string

type BillingUpdateConsistentLevel

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

func (BillingUpdateConsistentLevel) MarshalJSON

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

func (*BillingUpdateConsistentLevel) UnmarshalJSON

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

type BillingUpdateConsistentLevelEnum

type BillingUpdateConsistentLevelEnum struct {
	APP_CONSISTENT   BillingUpdateConsistentLevel
	CRASH_CONSISTENT BillingUpdateConsistentLevel
}

func GetBillingUpdateConsistentLevelEnum

func GetBillingUpdateConsistentLevelEnum() BillingUpdateConsistentLevelEnum

type BulkCreateAndDeleteVaultTagsReq

type BulkCreateAndDeleteVaultTagsReq struct {
	// 标签列表。  tags不允许为空列表。  tags中最多包含10个key。  tags中key不允许重复。
	Tags *[]Tag `json:"tags,omitempty"`
	// 系统标签列表。  op_service权限可以访问,和tags二选一。  目前TMS调用时只包含一个resource_tag结构体 ,key固定为:_sys_enterprise_project_id。  value是UUID或0,value为0表示默认企业项目。  现在仅支持create操作。
	SysTags *[]SysTag `json:"sys_tags,omitempty"`
	// 操作标识:仅限于create(创建)、delete(删除)
	Action BulkCreateAndDeleteVaultTagsReqAction `json:"action"`
}

func (BulkCreateAndDeleteVaultTagsReq) String

type BulkCreateAndDeleteVaultTagsReqAction

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

func (BulkCreateAndDeleteVaultTagsReqAction) MarshalJSON

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

func (*BulkCreateAndDeleteVaultTagsReqAction) UnmarshalJSON

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

type BulkCreateAndDeleteVaultTagsReqActionEnum

type BulkCreateAndDeleteVaultTagsReqActionEnum struct {
	CREATE BulkCreateAndDeleteVaultTagsReqAction
	DELETE BulkCreateAndDeleteVaultTagsReqAction
}

func GetBulkCreateAndDeleteVaultTagsReqActionEnum

func GetBulkCreateAndDeleteVaultTagsReqActionEnum() BulkCreateAndDeleteVaultTagsReqActionEnum

type CheckpointCreate

type CheckpointCreate struct {
	// 创建时间,例如:\"2020-02-05T10:38:34.209782\"
	CreatedAt string `json:"created_at"`
	// 还原点ID
	Id string `json:"id"`
	// 项目ID
	ProjectId string `json:"project_id"`
	// 状态
	Status    CheckpointCreateStatus   `json:"status"`
	Vault     *CheckpointPlanCreate    `json:"vault,omitempty"`
	ExtraInfo *CheckpointExtraInfoResp `json:"extra_info,omitempty"`
}

func (CheckpointCreate) String

func (o CheckpointCreate) String() string

type CheckpointCreateSkippedResource

type CheckpointCreateSkippedResource struct {
	// 资源ID
	Id *string `json:"id,omitempty"`
	// 资源类型
	Type *string `json:"type,omitempty"`
	// 资源名称
	Name *string `json:"name,omitempty"`
	// 请参见[错误码](ErrorCode.xml)。
	Code *string `json:"code,omitempty"`
	// 跳过原因,例如:该资源正在备份中。
	Reason *string `json:"reason,omitempty"`
}

备份时跳过的资源

func (CheckpointCreateSkippedResource) String

type CheckpointCreateStatus

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

func (CheckpointCreateStatus) MarshalJSON

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

func (*CheckpointCreateStatus) UnmarshalJSON

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

type CheckpointCreateStatusEnum

type CheckpointCreateStatusEnum struct {
	AVAILABLE CheckpointCreateStatus
	DELETING  CheckpointCreateStatus
	CREATING  CheckpointCreateStatus
	RESTORING CheckpointCreateStatus
	ERROR     CheckpointCreateStatus
}

func GetCheckpointCreateStatusEnum

func GetCheckpointCreateStatusEnum() CheckpointCreateStatusEnum

type CheckpointExtraInfoResp

type CheckpointExtraInfoResp struct {
	// 备份名称
	Name *string `json:"name,omitempty"`
	// 备份描述
	Description *string `json:"description,omitempty"`
	// 备份保留天数
	RetentionDuration *int32 `json:"retention_duration,omitempty"`
}

func (CheckpointExtraInfoResp) String

func (o CheckpointExtraInfoResp) String() string

type CheckpointParam

type CheckpointParam struct {
	// 是否自动触发,true:自动触发,false:非自动触发。
	AutoTrigger *bool `json:"auto_trigger,omitempty"`
	// 备份描述
	Description *string `json:"description,omitempty"`
	// 是否增量备份,true:增量备份,false:非增量备份。
	Incremental *bool `json:"incremental,omitempty"`
	// 备份名称
	Name *string `json:"name,omitempty"`
	// 待备份的资源id列表:uuid
	Resources *[]string `json:"resources,omitempty"`
	//
	ResourceDetails *[]Resource `json:"resource_details,omitempty"`
}

func (CheckpointParam) String

func (o CheckpointParam) String() string

type CheckpointPlanCreate

type CheckpointPlanCreate struct {
	// 存储库id
	Id string `json:"id"`
	// 存储库名称
	Name string `json:"name"`
	// 备份对象
	Resources *[]CheckpointResourceResp `json:"resources,omitempty"`
	// 备份时跳过的资源列表
	SkippedResources *[]CheckpointCreateSkippedResource `json:"skipped_resources,omitempty"`
}

func (CheckpointPlanCreate) String

func (o CheckpointPlanCreate) String() string

type CheckpointReplicateParam

type CheckpointReplicateParam struct {
	// 本次复制是否自动触发,默认为false,代表手动触发
	AutoTrigger *bool `json:"auto_trigger,omitempty"`
	// 复制的目标项目ID
	DestinationProjectId string `json:"destination_project_id"`
	// 复制的目标区域id
	DestinationRegion string `json:"destination_region"`
	// 目标区域存储库ID
	DestinationVaultId string `json:"destination_vault_id"`
	// 跨区域复制时,是否启用加速从而缩短复制的时间,如果不指定,默认不启用加速,如果启用加速,会额外收取加速的费用。
	EnableAcceleration *bool `json:"enable_acceleration,omitempty"`
	// 存储库ID: uuid
	VaultId string `json:"vault_id"`
}

func (CheckpointReplicateParam) String

func (o CheckpointReplicateParam) String() string

type CheckpointReplicateReq

type CheckpointReplicateReq struct {
	Replicate *CheckpointReplicateParam `json:"replicate"`
}

执行复制请求体

func (CheckpointReplicateReq) String

func (o CheckpointReplicateReq) String() string

type CheckpointReplicateRespBody

type CheckpointReplicateRespBody struct {
	// 待复制的备份列表
	Backups []CheckpointReplicateRespbackups `json:"backups"`
	// 复制的目标项目ID
	DestinationProjectId string `json:"destination_project_id"`
	// 复制的目标区域
	DestinationRegion string `json:"destination_region"`
	// 目标区域存储库ID
	DestinationVaultId string `json:"destination_vault_id"`
	// 执行复制的项目ID
	ProjectId string `json:"project_id"`
	// 备份提供商ID
	ProviderId string `json:"provider_id"`
	// 复制的源区域
	SourceRegion string `json:"source_region"`
	// 存储库ID
	VaultId string `json:"vault_id"`
}

func (CheckpointReplicateRespBody) String

type CheckpointReplicateRespbackups

type CheckpointReplicateRespbackups struct {
	// 待复制的备份ID
	BackupId string `json:"backup_id"`
	// 复制记录ID
	ReplicationRecordId string `json:"replication_record_id"`
}

func (CheckpointReplicateRespbackups) String

type CheckpointResourceResp

type CheckpointResourceResp struct {
	// 资源附加信息
	ExtraInfo *string `json:"extra_info,omitempty"`
	// 待备份资源id
	Id string `json:"id"`
	// 待备份资源名称
	Name string `json:"name"`
	// 保护状态
	ProtectStatus *CheckpointResourceRespProtectStatus `json:"protect_status,omitempty"`
	// 资源已分配容量,单位为GB
	ResourceSize *string `json:"resource_size,omitempty"`
	//
	Type string `json:"type"`
	// 副本大小
	BackupSize *string `json:"backup_size,omitempty"`
	// 副本数量
	BackupCount *string `json:"backup_count,omitempty"`
}

func (CheckpointResourceResp) String

func (o CheckpointResourceResp) String() string

type CheckpointResourceRespProtectStatus

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

func (CheckpointResourceRespProtectStatus) MarshalJSON

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

func (*CheckpointResourceRespProtectStatus) UnmarshalJSON

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

type CopyBackupRequest

type CopyBackupRequest struct {
	BackupId string              `json:"backup_id"`
	Body     *BackupReplicateReq `json:"body,omitempty"`
}

Request Object

func (CopyBackupRequest) String

func (o CopyBackupRequest) String() string

type CopyBackupResponse

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

Response Object

func (CopyBackupResponse) String

func (o CopyBackupResponse) String() string

type CopyCheckpointRequest

type CopyCheckpointRequest struct {
	Body *CheckpointReplicateReq `json:"body,omitempty"`
}

Request Object

func (CopyCheckpointRequest) String

func (o CopyCheckpointRequest) String() string

type CopyCheckpointResponse

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

Response Object

func (CopyCheckpointResponse) String

func (o CopyCheckpointResponse) String() string

type CreateCheckpointRequest

type CreateCheckpointRequest struct {
	Body *VaultBackupReq `json:"body,omitempty"`
}

Request Object

func (CreateCheckpointRequest) String

func (o CreateCheckpointRequest) String() string

type CreateCheckpointResponse

type CreateCheckpointResponse struct {
	Checkpoint     *CheckpointCreate `json:"checkpoint,omitempty"`
	HttpStatusCode int               `json:"-"`
}

Response Object

func (CreateCheckpointResponse) String

func (o CreateCheckpointResponse) String() string

type CreatePolicyRequest

type CreatePolicyRequest struct {
	Body *PolicyCreateReq `json:"body,omitempty"`
}

Request Object

func (CreatePolicyRequest) String

func (o CreatePolicyRequest) String() string

type CreatePolicyResponse

type CreatePolicyResponse struct {
	Policy         *Policy `json:"policy,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreatePolicyResponse) String

func (o CreatePolicyResponse) String() string

type CreateVaultRequest

type CreateVaultRequest struct {
	Body *VaultCreateReq `json:"body,omitempty"`
}

Request Object

func (CreateVaultRequest) String

func (o CreateVaultRequest) String() string

type CreateVaultResponse

type CreateVaultResponse struct {
	Vault          *Vault `json:"vault,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (CreateVaultResponse) String

func (o CreateVaultResponse) String() string

type CreateVaultTagsRequest

type CreateVaultTagsRequest struct {
	VaultId string              `json:"vault_id"`
	Body    *VaultTagsCreateReq `json:"body,omitempty"`
}

Request Object

func (CreateVaultTagsRequest) String

func (o CreateVaultTagsRequest) String() string

type CreateVaultTagsResponse

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

Response Object

func (CreateVaultTagsResponse) String

func (o CreateVaultTagsResponse) String() string

type DeleteBackupRequest

type DeleteBackupRequest struct {
	BackupId string `json:"backup_id"`
}

Request Object

func (DeleteBackupRequest) String

func (o DeleteBackupRequest) String() string

type DeleteBackupResponse

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

Response Object

func (DeleteBackupResponse) String

func (o DeleteBackupResponse) String() string

type DeleteMemberRequest

type DeleteMemberRequest struct {
	BackupId string `json:"backup_id"`
	MemberId string `json:"member_id"`
}

Request Object

func (DeleteMemberRequest) String

func (o DeleteMemberRequest) String() string

type DeleteMemberResponse

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

Response Object

func (DeleteMemberResponse) String

func (o DeleteMemberResponse) String() string

type DeletePolicyRequest

type DeletePolicyRequest struct {
	PolicyId string `json:"policy_id"`
}

Request Object

func (DeletePolicyRequest) String

func (o DeletePolicyRequest) String() string

type DeletePolicyResponse

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

Response Object

func (DeletePolicyResponse) String

func (o DeletePolicyResponse) String() string

type DeleteVaultRequest

type DeleteVaultRequest struct {
	VaultId string `json:"vault_id"`
}

Request Object

func (DeleteVaultRequest) String

func (o DeleteVaultRequest) String() string

type DeleteVaultResponse

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

Response Object

func (DeleteVaultResponse) String

func (o DeleteVaultResponse) String() string

type DeleteVaultTagRequest

type DeleteVaultTagRequest struct {
	Key     string `json:"key"`
	VaultId string `json:"vault_id"`
}

Request Object

func (DeleteVaultTagRequest) String

func (o DeleteVaultTagRequest) String() string

type DeleteVaultTagResponse

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

Response Object

func (DeleteVaultTagResponse) String

func (o DeleteVaultTagResponse) String() string

type DisassociateVaultPolicyRequest

type DisassociateVaultPolicyRequest struct {
	VaultId string           `json:"vault_id"`
	Body    *VaultDissociate `json:"body,omitempty"`
}

Request Object

func (DisassociateVaultPolicyRequest) String

type DisassociateVaultPolicyResponse

type DisassociateVaultPolicyResponse struct {
	DissociatePolicy *VaultPolicyResp `json:"dissociate_policy,omitempty"`
	HttpStatusCode   int              `json:"-"`
}

Response Object

func (DisassociateVaultPolicyResponse) String

type ImageData

type ImageData struct {
	//
	ImageId *string `json:"image_id,omitempty"`
}

镜像元素

func (ImageData) String

func (o ImageData) String() string

type ImportBackupRequest

type ImportBackupRequest struct {
	Body *BackupSyncReq `json:"body,omitempty"`
}

Request Object

func (ImportBackupRequest) String

func (o ImportBackupRequest) String() string

type ImportBackupResponse

type ImportBackupResponse struct {
	// 同步备份副本接口的返回信息
	Sync           *[]BackupSyncRespBody `json:"sync,omitempty"`
	HttpStatusCode int                   `json:"-"`
}

Response Object

func (ImportBackupResponse) String

func (o ImportBackupResponse) String() string

type ListBackupsRequest

type ListBackupsRequest struct {
	CheckpointId        *string                         `json:"checkpoint_id,omitempty"`
	Dec                 *bool                           `json:"dec,omitempty"`
	EndTime             *string                         `json:"end_time,omitempty"`
	ImageType           *ListBackupsRequestImageType    `json:"image_type,omitempty"`
	Limit               *int32                          `json:"limit,omitempty"`
	Marker              *string                         `json:"marker,omitempty"`
	Name                *string                         `json:"name,omitempty"`
	Offset              *int32                          `json:"offset,omitempty"`
	ResourceAz          *string                         `json:"resource_az,omitempty"`
	ResourceId          *string                         `json:"resource_id,omitempty"`
	ResourceName        *string                         `json:"resource_name,omitempty"`
	ResourceType        *ListBackupsRequestResourceType `json:"resource_type,omitempty"`
	Sort                *string                         `json:"sort,omitempty"`
	StartTime           *string                         `json:"start_time,omitempty"`
	Status              *ListBackupsRequestStatus       `json:"status,omitempty"`
	VaultId             *string                         `json:"vault_id,omitempty"`
	EnterpriseProjectId *string                         `json:"enterprise_project_id,omitempty"`
	OwnType             *ListBackupsRequestOwnType      `json:"own_type,omitempty"`
	MemberStatus        *ListBackupsRequestMemberStatus `json:"member_status,omitempty"`
	ParentId            *string                         `json:"parent_id,omitempty"`
	UsedPercent         *string                         `json:"used_percent,omitempty"`
}

Request Object

func (ListBackupsRequest) String

func (o ListBackupsRequest) String() string

type ListBackupsRequestImageType

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

func (ListBackupsRequestImageType) MarshalJSON

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

func (*ListBackupsRequestImageType) UnmarshalJSON

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

type ListBackupsRequestImageTypeEnum

type ListBackupsRequestImageTypeEnum struct {
	BACKUP      ListBackupsRequestImageType
	REPLICATION ListBackupsRequestImageType
}

func GetListBackupsRequestImageTypeEnum

func GetListBackupsRequestImageTypeEnum() ListBackupsRequestImageTypeEnum

type ListBackupsRequestMemberStatus

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

func (ListBackupsRequestMemberStatus) MarshalJSON

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

func (*ListBackupsRequestMemberStatus) UnmarshalJSON

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

type ListBackupsRequestMemberStatusEnum

type ListBackupsRequestMemberStatusEnum struct {
	PENDING ListBackupsRequestMemberStatus
	ACCEPT  ListBackupsRequestMemberStatus
	REJECT  ListBackupsRequestMemberStatus
}

func GetListBackupsRequestMemberStatusEnum

func GetListBackupsRequestMemberStatusEnum() ListBackupsRequestMemberStatusEnum

type ListBackupsRequestOwnType

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

func (ListBackupsRequestOwnType) MarshalJSON

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

func (*ListBackupsRequestOwnType) UnmarshalJSON

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

type ListBackupsRequestOwnTypeEnum

type ListBackupsRequestOwnTypeEnum struct {
	ALL_GRANTED ListBackupsRequestOwnType
	PRIVATE     ListBackupsRequestOwnType
	SHARED      ListBackupsRequestOwnType
}

func GetListBackupsRequestOwnTypeEnum

func GetListBackupsRequestOwnTypeEnum() ListBackupsRequestOwnTypeEnum

type ListBackupsRequestResourceType

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

func (ListBackupsRequestResourceType) MarshalJSON

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

func (*ListBackupsRequestResourceType) UnmarshalJSON

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

type ListBackupsRequestResourceTypeEnum

type ListBackupsRequestResourceTypeEnum struct {
	OSCINDERVOLUME ListBackupsRequestResourceType
	OSNOVASERVER   ListBackupsRequestResourceType
}

func GetListBackupsRequestResourceTypeEnum

func GetListBackupsRequestResourceTypeEnum() ListBackupsRequestResourceTypeEnum

type ListBackupsRequestStatus

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

func (ListBackupsRequestStatus) MarshalJSON

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

func (*ListBackupsRequestStatus) UnmarshalJSON

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

type ListBackupsRequestStatusEnum

type ListBackupsRequestStatusEnum struct {
	AVAILABLE       ListBackupsRequestStatus
	PROTECTING      ListBackupsRequestStatus
	DELETING        ListBackupsRequestStatus
	RESTORING       ListBackupsRequestStatus
	ERROR           ListBackupsRequestStatus
	WAITING_PROTECT ListBackupsRequestStatus
	WAITING_DELETE  ListBackupsRequestStatus
	WAITING_RESTORE ListBackupsRequestStatus
}

func GetListBackupsRequestStatusEnum

func GetListBackupsRequestStatusEnum() ListBackupsRequestStatusEnum

type ListBackupsResponse

type ListBackupsResponse struct {
	// 备份列表
	Backups *[]BackupResp `json:"backups,omitempty"`
	// 备份个数
	Count          *int32 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListBackupsResponse) String

func (o ListBackupsResponse) String() string

type ListOpLogsRequest

type ListOpLogsRequest struct {
	EndTime             *string                         `json:"end_time,omitempty"`
	Limit               *int32                          `json:"limit,omitempty"`
	Offset              *int32                          `json:"offset,omitempty"`
	OperationType       *ListOpLogsRequestOperationType `json:"operation_type,omitempty"`
	ProviderId          *string                         `json:"provider_id,omitempty"`
	ResourceId          *string                         `json:"resource_id,omitempty"`
	ResourceName        *string                         `json:"resource_name,omitempty"`
	StartTime           *string                         `json:"start_time,omitempty"`
	Status              *ListOpLogsRequestStatus        `json:"status,omitempty"`
	VaultId             *string                         `json:"vault_id,omitempty"`
	VaultName           *string                         `json:"vault_name,omitempty"`
	EnterpriseProjectId *string                         `json:"enterprise_project_id,omitempty"`
}

Request Object

func (ListOpLogsRequest) String

func (o ListOpLogsRequest) String() string

type ListOpLogsRequestOperationType

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

func (ListOpLogsRequestOperationType) MarshalJSON

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

func (*ListOpLogsRequestOperationType) UnmarshalJSON

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

type ListOpLogsRequestStatus

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

func (ListOpLogsRequestStatus) MarshalJSON

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

func (*ListOpLogsRequestStatus) UnmarshalJSON

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

type ListOpLogsRequestStatusEnum

type ListOpLogsRequestStatusEnum struct {
	SUCCESS ListOpLogsRequestStatus
	SKIPPED ListOpLogsRequestStatus
	FAILED  ListOpLogsRequestStatus
	RUNNING ListOpLogsRequestStatus
	TIMEOUT ListOpLogsRequestStatus
	WAITING ListOpLogsRequestStatus
}

func GetListOpLogsRequestStatusEnum

func GetListOpLogsRequestStatusEnum() ListOpLogsRequestStatusEnum

type ListOpLogsResponse

type ListOpLogsResponse struct {
	// 任务列表
	OperationLogs *[]OperationLog `json:"operation_logs,omitempty"`
	// 任务个数
	Count          *int32 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListOpLogsResponse) String

func (o ListOpLogsResponse) String() string

type ListPoliciesRequest

type ListPoliciesRequest struct {
	OperationType *ListPoliciesRequestOperationType `json:"operation_type,omitempty"`
	VaultId       *string                           `json:"vault_id,omitempty"`
}

Request Object

func (ListPoliciesRequest) String

func (o ListPoliciesRequest) String() string

type ListPoliciesRequestOperationType

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

func (ListPoliciesRequestOperationType) MarshalJSON

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

func (*ListPoliciesRequestOperationType) UnmarshalJSON

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

type ListPoliciesRequestOperationTypeEnum

type ListPoliciesRequestOperationTypeEnum struct {
	BACKUP      ListPoliciesRequestOperationType
	REPLICATION ListPoliciesRequestOperationType
}

func GetListPoliciesRequestOperationTypeEnum

func GetListPoliciesRequestOperationTypeEnum() ListPoliciesRequestOperationTypeEnum

type ListPoliciesResponse

type ListPoliciesResponse struct {
	//
	Policies *[]Policy `json:"policies,omitempty"`
	//
	Count          *int32 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListPoliciesResponse) String

func (o ListPoliciesResponse) String() string

type ListProtectableRequest

type ListProtectableRequest struct {
	Limit           *int32                                `json:"limit,omitempty"`
	Marker          *string                               `json:"marker,omitempty"`
	Name            *string                               `json:"name,omitempty"`
	Offset          *int32                                `json:"offset,omitempty"`
	ProtectableType ListProtectableRequestProtectableType `json:"protectable_type"`
	Status          *string                               `json:"status,omitempty"`
	Id              *string                               `json:"id,omitempty"`
	ServerId        *string                               `json:"server_id,omitempty"`
}

Request Object

func (ListProtectableRequest) String

func (o ListProtectableRequest) String() string

type ListProtectableRequestProtectableType

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

func (ListProtectableRequestProtectableType) MarshalJSON

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

func (*ListProtectableRequestProtectableType) UnmarshalJSON

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

type ListProtectableRequestProtectableTypeEnum

type ListProtectableRequestProtectableTypeEnum struct {
	SERVER ListProtectableRequestProtectableType
	DISK   ListProtectableRequestProtectableType
}

func GetListProtectableRequestProtectableTypeEnum

func GetListProtectableRequestProtectableTypeEnum() ListProtectableRequestProtectableTypeEnum

type ListProtectableResponse

type ListProtectableResponse struct {
	// 可保护性查询实例
	Instances      *[]ProtectablesResp `json:"instances,omitempty"`
	HttpStatusCode int                 `json:"-"`
}

Response Object

func (ListProtectableResponse) String

func (o ListProtectableResponse) String() string

type ListVaultRequest

type ListVaultRequest struct {
	Limit               *int32                       `json:"limit,omitempty"`
	Name                *string                      `json:"name,omitempty"`
	Offset              *int32                       `json:"offset,omitempty"`
	CloudType           *ListVaultRequestCloudType   `json:"cloud_type,omitempty"`
	ProtectType         *ListVaultRequestProtectType `json:"protect_type,omitempty"`
	ObjectType          *string                      `json:"object_type,omitempty"`
	EnterpriseProjectId *string                      `json:"enterprise_project_id,omitempty"`
	Id                  *string                      `json:"id,omitempty"`
	PolicyId            *string                      `json:"policy_id,omitempty"`
	Status              *string                      `json:"status,omitempty"`
	ResourceIds         *string                      `json:"resource_ids,omitempty"`
}

Request Object

func (ListVaultRequest) String

func (o ListVaultRequest) String() string

type ListVaultRequestCloudType

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

func (ListVaultRequestCloudType) MarshalJSON

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

func (*ListVaultRequestCloudType) UnmarshalJSON

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

type ListVaultRequestCloudTypeEnum

type ListVaultRequestCloudTypeEnum struct {
	PUBLIC ListVaultRequestCloudType
	HYBRID ListVaultRequestCloudType
}

func GetListVaultRequestCloudTypeEnum

func GetListVaultRequestCloudTypeEnum() ListVaultRequestCloudTypeEnum

type ListVaultRequestProtectType

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

func (ListVaultRequestProtectType) MarshalJSON

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

func (*ListVaultRequestProtectType) UnmarshalJSON

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

type ListVaultRequestProtectTypeEnum

type ListVaultRequestProtectTypeEnum struct {
	BACKUP      ListVaultRequestProtectType
	REPLICATION ListVaultRequestProtectType
}

func GetListVaultRequestProtectTypeEnum

func GetListVaultRequestProtectTypeEnum() ListVaultRequestProtectTypeEnum

type ListVaultResponse

type ListVaultResponse struct {
	// 存储库实例列表
	Vaults *[]Vault `json:"vaults,omitempty"`
	// 存储库个数
	Count          *int32 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListVaultResponse) String

func (o ListVaultResponse) String() string

type Match

type Match struct {
	// 键。 key取值范围为:\"resource_name\",资源名称
	Key string `json:"key"`
	// 值。 最大长度255个字符。 key为\"resource_name\"时,value为空字符串时精确匹配,为非空字符串时模糊匹配。
	Value string `json:"value"`
}

func (Match) String

func (o Match) String() string

type Member

type Member struct {
	// 共享状态
	Status MemberStatus `json:"status"`
	// 共享时间,例如:\"2020-02-05T10:38:34.209782\"
	CreatedAt *string `json:"created_at,omitempty"`
	// 更新时间,例如:\"2020-02-05T10:38:34.209782\"
	UpdatedAt *string `json:"updated_at,omitempty"`
	// 备份副本id
	BackupId *string `json:"backup_id,omitempty"`
	// 接受的共享备份副本注册的镜像id
	ImageId *string `json:"image_id,omitempty"`
	// 接受备份共享的项目id
	DestProjectId *string `json:"dest_project_id,omitempty"`
	// 目标端接受共享备份的存储库id
	VaultId *string `json:"vault_id,omitempty"`
	// 共享记录id
	Id *string `json:"id,omitempty"`
}

func (Member) String

func (o Member) String() string

type MemberStatus

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

func (MemberStatus) MarshalJSON

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

func (*MemberStatus) UnmarshalJSON

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

type MemberStatusEnum

type MemberStatusEnum struct {
	PENDING  MemberStatus
	ACCEPTED MemberStatus
	REJECTED MemberStatus
}

func GetMemberStatusEnum

func GetMemberStatusEnum() MemberStatusEnum

type MigrateVaultResourceRequest

type MigrateVaultResourceRequest struct {
	VaultId string                   `json:"vault_id"`
	Body    *VaultMigrateResourceReq `json:"body,omitempty"`
}

Request Object

func (MigrateVaultResourceRequest) String

type MigrateVaultResourceResponse

type MigrateVaultResourceResponse struct {
	//
	MigratedResources *[]string `json:"migrated_resources,omitempty"`
	HttpStatusCode    int       `json:"-"`
}

Response Object

func (MigrateVaultResourceResponse) String

type OpErrorInfo

type OpErrorInfo struct {
	// 请参见[错误码](ErrorCode.xml)。
	Code *string `json:"code,omitempty"`
	// 错误信息
	Message *string `json:"message,omitempty"`
}

func (OpErrorInfo) String

func (o OpErrorInfo) String() string

type OpExtendInfoBckup

type OpExtendInfoBckup struct {
	// 应用一致性备份失败错误码。请参见[错误码](ErrorCode.xml)。
	AppConsistencyErrorCode *string `json:"app_consistency_error_code,omitempty"`
	// 应用一致性备份错误信息
	AppConsistencyErrorMessage *string `json:"app_consistency_error_message,omitempty"`
	// 应用一致性备份状态;0:非应用一致性,1:应用一致性备份
	AppConsistencyStatus *OpExtendInfoBckupAppConsistencyStatus `json:"app_consistency_status,omitempty"`
	// 备份副本ID
	BackupId string `json:"backup_id"`
	// 备份名称
	BackupName *string `json:"backup_name,omitempty"`
	// 是否增备
	Incremental *OpExtendInfoBckupIncremental `json:"incremental,omitempty"`
}

func (OpExtendInfoBckup) String

func (o OpExtendInfoBckup) String() string

type OpExtendInfoBckupAppConsistencyStatus

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

func (OpExtendInfoBckupAppConsistencyStatus) MarshalJSON

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

func (*OpExtendInfoBckupAppConsistencyStatus) UnmarshalJSON

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

type OpExtendInfoBckupAppConsistencyStatusEnum

type OpExtendInfoBckupAppConsistencyStatusEnum struct {
	E_0 OpExtendInfoBckupAppConsistencyStatus
	E_1 OpExtendInfoBckupAppConsistencyStatus
}

func GetOpExtendInfoBckupAppConsistencyStatusEnum

func GetOpExtendInfoBckupAppConsistencyStatusEnum() OpExtendInfoBckupAppConsistencyStatusEnum

type OpExtendInfoBckupIncremental

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

func (OpExtendInfoBckupIncremental) MarshalJSON

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

func (*OpExtendInfoBckupIncremental) UnmarshalJSON

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

type OpExtendInfoBckupIncrementalEnum

type OpExtendInfoBckupIncrementalEnum struct {
	TRUE  OpExtendInfoBckupIncremental
	FALSE OpExtendInfoBckupIncremental
}

func GetOpExtendInfoBckupIncrementalEnum

func GetOpExtendInfoBckupIncrementalEnum() OpExtendInfoBckupIncrementalEnum

type OpExtendInfoCommon

type OpExtendInfoCommon struct {
	// 进度,取值为0-100
	Progress int32 `json:"progress"`
	// 请求id
	RequestId string `json:"request_id"`
	// 备份任务id
	TaskId *string `json:"task_id,omitempty"`
}

func (OpExtendInfoCommon) String

func (o OpExtendInfoCommon) String() string

type OpExtendInfoDelete

type OpExtendInfoDelete struct {
	// 备份副本ID
	BackupId string `json:"backup_id"`
	// 备份名称
	BackupName string `json:"backup_name"`
}

func (OpExtendInfoDelete) String

func (o OpExtendInfoDelete) String() string

type OpExtendInfoRemoveResources

type OpExtendInfoRemoveResources struct {
	// 删除失败的资源ID列表
	FailCount *int32 `json:"fail_count,omitempty"`
	// 删除的备份数量
	TotalCount *int32 `json:"total_count,omitempty"`
	//
	Resources *[]Resource `json:"resources,omitempty"`
}

func (OpExtendInfoRemoveResources) String

type OpExtendInfoReplication

type OpExtendInfoReplication struct {
	// 目标副本ID
	DestinationBackupId *string `json:"destination_backup_id,omitempty"`
	// 目标还原点ID
	DestinationCheckpointId *string `json:"destination_checkpoint_id,omitempty"`
	// 目标project_id
	DestinationProjectId string `json:"destination_project_id"`
	// 目标区域
	DestinationRegion string `json:"destination_region"`
	// 源副本ID
	SourceBackupId string `json:"source_backup_id"`
	// 源还原点ID
	SourceCheckpointId *string `json:"source_checkpoint_id,omitempty"`
	// 源project_id
	SourceProjectId string `json:"source_project_id"`
	// 源区域
	SourceRegion string `json:"source_region"`
	// 源备份名称
	SourceBackupName *string `json:"source_backup_name,omitempty"`
	// 目标备份名称
	DestinationBackupName *string `json:"destination_backup_name,omitempty"`
}

func (OpExtendInfoReplication) String

func (o OpExtendInfoReplication) String() string

type OpExtendInfoRestore

type OpExtendInfoRestore struct {
	// 备份副本ID
	BackupId *string `json:"backup_id,omitempty"`
	// 备份名称
	BackupName *string `json:"backup_name,omitempty"`
	// 恢复目标资源ID
	TargetResourceId *string `json:"target_resource_id,omitempty"`
	// 恢复目标资源名称
	TargetResourceName *string `json:"target_resource_name,omitempty"`
}

func (OpExtendInfoRestore) String

func (o OpExtendInfoRestore) String() string

type OpExtendInfoSync

type OpExtendInfoSync struct {
	// 同步备份副本数
	SyncBackupNum *int32 `json:"sync_backup_num,omitempty"`
	// 删除的备份副本数
	DeleteBackupNum *int32 `json:"delete_backup_num,omitempty"`
	// 同步失败备副本数
	ErrSyncBackupNum *int32 `json:"err_sync_backup_num,omitempty"`
}

func (OpExtendInfoSync) String

func (o OpExtendInfoSync) String() string

type OpExtendInfoVaultDelete

type OpExtendInfoVaultDelete struct {
	// 删除失败的资源ID列表
	FailCount *int32 `json:"fail_count,omitempty"`
	// 删除的备份数量
	TotalCount *int32 `json:"total_count,omitempty"`
}

func (OpExtendInfoVaultDelete) String

func (o OpExtendInfoVaultDelete) String() string

type OpExtraInfo

type OpExtraInfo struct {
	Backup          *OpExtendInfoBckup           `json:"backup,omitempty"`
	Common          *OpExtendInfoCommon          `json:"common"`
	Delete          *OpExtendInfoDelete          `json:"delete,omitempty"`
	Sync            *OpExtendInfoSync            `json:"sync,omitempty"`
	RemoveResources *OpExtendInfoRemoveResources `json:"remove_resources,omitempty"`
	Replication     *OpExtendInfoReplication     `json:"replication,omitempty"`
	Resource        *Resource                    `json:"resource"`
	Restore         *OpExtendInfoRestore         `json:"restore,omitempty"`
	VaultDelete     *OpExtendInfoVaultDelete     `json:"vault_delete,omitempty"`
}

func (OpExtraInfo) String

func (o OpExtraInfo) String() string

type OperationLog

type OperationLog struct {
	// 备份记录id
	CheckpointId *string `json:"checkpoint_id,omitempty"`
	// 创建时间,例如: \"2020-02-23T01:00:32Z\"
	CreatedAt string `json:"created_at"`
	// 任务结束时间,例如: \"2020-02-23T01:00:32Z\"
	EndedAt   *string      `json:"ended_at,omitempty"`
	ErrorInfo *OpErrorInfo `json:"error_info"`
	ExtraInfo *OpExtraInfo `json:"extra_info,omitempty"`
	// 任务id
	Id string `json:"id"`
	// 任务类型
	OperationType *OperationLogOperationType `json:"operation_type,omitempty"`
	// 策略ID
	PolicyId *string `json:"policy_id,omitempty"`
	// 项目ID
	ProjectId string `json:"project_id"`
	// 备份提供商ID。用于区分备份对象。
	ProviderId *string `json:"provider_id,omitempty"`
	// 任务开始时间,例如: \"2020-02-23T01:00:32Z\"
	StartedAt string `json:"started_at"`
	// 任务状态
	Status OperationLogStatus `json:"status"`
	// 修改时间,例如: \"2020-02-23T01:00:32Z\"
	UpdatedAt string `json:"updated_at"`
	// 任务操作资源所属存储库ID
	VaultId *string `json:"vault_id,omitempty"`
	// 任务操作资源所属存储库名称
	VaultName *string `json:"vault_name,omitempty"`
}

func (OperationLog) String

func (o OperationLog) String() string

type OperationLogOperationType

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

func (OperationLogOperationType) MarshalJSON

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

func (*OperationLogOperationType) UnmarshalJSON

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

type OperationLogStatus

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

func (OperationLogStatus) MarshalJSON

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

func (*OperationLogStatus) UnmarshalJSON

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

type OperationLogStatusEnum

type OperationLogStatusEnum struct {
	SUCCESS OperationLogStatus
	SKIPPED OperationLogStatus
	FAILED  OperationLogStatus
	RUNNING OperationLogStatus
	TIMEOUT OperationLogStatus
	WAITING OperationLogStatus
}

func GetOperationLogStatusEnum

func GetOperationLogStatusEnum() OperationLogStatusEnum

type Policy

type Policy struct {
	// 策略是否启用
	Enabled bool `json:"enabled"`
	// 策略ID
	Id string `json:"id"`
	// 策略名称
	Name                string           `json:"name"`
	OperationDefinition *PolicyoOdCreate `json:"operation_definition"`
	// 策略类型,例如 ‘backup’:自动备份
	OperationType PolicyOperationType `json:"operation_type"`
	Trigger       *PolicyTriggerResp  `json:"trigger"`
	// 关联的存储库
	AssociatedVaults *[]PolicyAssociateVault `json:"associated_vaults,omitempty"`
}

func (Policy) String

func (o Policy) String() string

type PolicyAssociateVault

type PolicyAssociateVault struct {
	// 关联的远端存储库ID
	DestinationVaultId *string `json:"destination_vault_id,omitempty"`
	// 存储库ID
	VaultId string `json:"vault_id"`
}

func (PolicyAssociateVault) String

func (o PolicyAssociateVault) String() string

type PolicyCreate

type PolicyCreate struct {
	// 是否启用策略
	Enabled *bool `json:"enabled,omitempty"`
	// 策略名称,长度限制:1- 64,只能由中文、字母、数字、“_”、“-”组成。
	Name                string           `json:"name"`
	OperationDefinition *PolicyoOdCreate `json:"operation_definition"`
	// 策略类型,如备份,复制 Enum:[ backup,replication]
	OperationType PolicyCreateOperationType `json:"operation_type"`
	Trigger       *PolicyTriggerReq         `json:"trigger"`
}

func (PolicyCreate) String

func (o PolicyCreate) String() string

type PolicyCreateOperationType

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

func (PolicyCreateOperationType) MarshalJSON

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

func (*PolicyCreateOperationType) UnmarshalJSON

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

type PolicyCreateOperationTypeEnum

type PolicyCreateOperationTypeEnum struct {
	BACKUP      PolicyCreateOperationType
	REPLICATION PolicyCreateOperationType
}

func GetPolicyCreateOperationTypeEnum

func GetPolicyCreateOperationTypeEnum() PolicyCreateOperationTypeEnum

type PolicyCreateReq

type PolicyCreateReq struct {
	Policy *PolicyCreate `json:"policy"`
}

func (PolicyCreateReq) String

func (o PolicyCreateReq) String() string

type PolicyOperationType

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

func (PolicyOperationType) MarshalJSON

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

func (*PolicyOperationType) UnmarshalJSON

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

type PolicyOperationTypeEnum

type PolicyOperationTypeEnum struct {
	BACKUP      PolicyOperationType
	REPLICATION PolicyOperationType
}

func GetPolicyOperationTypeEnum

func GetPolicyOperationTypeEnum() PolicyOperationTypeEnum

type PolicyTriggerPropertiesReq

type PolicyTriggerPropertiesReq struct {
	// 调度规则,复制策略建议一天只设置一个时间点。限制24条规则。调度器的调度规则,可参照iCalendar RFC 2445规范中的事件规则,但仅支持FREQ、BYDAY、BYHOUR、BYMINUTE、INTERVAL等参数,其中FREQ仅支持WEEKLY,BYDAY支持一周七天(MO、TU、WE、TH、FR、SA、SU),BYHOUR支持0-23小时,BYMINUTE支持0-59分钟,并且间隔不能小于一小时,一天最大24个时间点。例如,周一到周天,每天14:00调度,其规则为:'FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR,SA,SU;BYHOUR=14;BYMINUTE=00'。
	Pattern []string `json:"pattern"`
}

func (PolicyTriggerPropertiesReq) String

type PolicyTriggerPropertiesResp

type PolicyTriggerPropertiesResp struct {
	// 调度器的调度策略,长度限制为10240个字符,参照iCalendar RFC 2445规范,但仅支持FREQ、BYDAY、BYHOUR、BYMINUTE四个参数,其中FREQ仅支持WEEKLY和DAILY,BYDAY支持一周七天(MO、TU、WE、TH、FR、SA、SU),BYHOUR支持0-23小时,BYMINUTE支持0-59分钟,并且时间点间隔不能小于一小时,一个备份策略可以同时设置多个备份时间点,一天最多可以设置24个时间点。
	Pattern []string `json:"pattern"`
	// 调度器开始时间,例如:\"2020-01-08 09:59:49\"
	StartTime *string `json:"start_time,omitempty"`
}

func (PolicyTriggerPropertiesResp) String

type PolicyTriggerReq

type PolicyTriggerReq struct {
	Properties *PolicyTriggerPropertiesReq `json:"properties"`
}

func (PolicyTriggerReq) String

func (o PolicyTriggerReq) String() string

type PolicyTriggerResp

type PolicyTriggerResp struct {
	// 调度器id
	Id string `json:"id"`
	// 调度器名称
	Name       *string                      `json:"name,omitempty"`
	Properties *PolicyTriggerPropertiesResp `json:"properties"`
	// 调度器类型,目前只支持 time: 定时调度。
	Type *PolicyTriggerRespType `json:"type,omitempty"`
}

func (PolicyTriggerResp) String

func (o PolicyTriggerResp) String() string

type PolicyTriggerRespType

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

func (PolicyTriggerRespType) MarshalJSON

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

func (*PolicyTriggerRespType) UnmarshalJSON

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

type PolicyTriggerRespTypeEnum

type PolicyTriggerRespTypeEnum struct {
	TIME PolicyTriggerRespType
}

func GetPolicyTriggerRespTypeEnum

func GetPolicyTriggerRespTypeEnum() PolicyTriggerRespTypeEnum

type PolicyUpdate

type PolicyUpdate struct {
	// 是否启用策略
	Enabled *bool `json:"enabled,omitempty"`
	// 策略名称
	Name                *string           `json:"name,omitempty"`
	OperationDefinition *PolicyoOdCreate  `json:"operation_definition,omitempty"`
	Trigger             *PolicyTriggerReq `json:"trigger,omitempty"`
}

func (PolicyUpdate) String

func (o PolicyUpdate) String() string

type PolicyUpdateReq

type PolicyUpdateReq struct {
	Policy *PolicyUpdate `json:"policy"`
}

策略修改body

func (PolicyUpdateReq) String

func (o PolicyUpdateReq) String() string

type PolicyoOdCreate

type PolicyoOdCreate struct {
	// 保留日备个数,该备份不受保留最大备份数限制。取值为0到100。若选择该参数,则timezone 也必选。
	DayBackups *int32 `json:"day_backups,omitempty"`
	// 复制的目标项目ID,仅在跨区域复制时才会使用并且必须指定。
	DestinationProjectId *string `json:"destination_project_id,omitempty"`
	// 复制的目标区域,仅在跨区域复制时才会使用并且必须指定。长度限制:0- 255,只能由字母、数字、“_”、“-”组成
	DestinationRegion *string `json:"destination_region,omitempty"`
	// 跨区域复制时,是否启用加速从而缩减复制的时间,如果不指定,默认不启用加速。
	EnableAcceleration *bool `json:"enable_acceleration,omitempty"`
	// 单个备份对象自动备份的最大备份数。取值为-1或0-99999。-1代表不按备份数清理。若该字段和retention_duration_days字段同时为空,备份会永久保留。
	MaxBackups *int32 `json:"max_backups,omitempty"`
	// 保留月备个数,该备份不受保留最大备份数限制。取值为0到100。若选择该参数,则timezone 也必选。
	MonthBackups *int32 `json:"month_backups,omitempty"`
	// 备份保留时长,单位天。最长支持99999天。-1代表不按时间清理。若该字段和max_backups 参数同时为空,备份会永久保留。
	RetentionDurationDays *int32 `json:"retention_duration_days,omitempty"`
	// 用户所在时区,格式形如UTC+08:00,若没有选择年备,月备,周备,日备中任一参数,则不能选择该参数。
	Timezone *string `json:"timezone,omitempty"`
	// 保留周备个数,该备份不受保留最大备份数限制。取值为0到100。若选择该参数,则timezone 也必选。
	WeekBackups *int32 `json:"week_backups,omitempty"`
	// 保留年备个数,该备份不受保留最大备份数限制。取值为0到100。若选择该参数,则timezone 也必选。
	YearBackups *int32 `json:"year_backups,omitempty"`
}

func (PolicyoOdCreate) String

func (o PolicyoOdCreate) String() string

type ProtectableReplicationCapabilitiesRespRegion

type ProtectableReplicationCapabilitiesRespRegion struct {
	// 云服务所在的区域
	Name string `json:"name"`
	// 支持复制的目标区域列表
	ReplicationDestinations []string `json:"replication_destinations"`
}

func (ProtectableReplicationCapabilitiesRespRegion) String

type ProtectableResult

type ProtectableResult struct {
	// 不支持备份的错误码
	Code *string `json:"code,omitempty"`
	// 不支持备份的原因
	Reason *string `json:"reason,omitempty"`
	// 是否可备份
	Result string    `json:"result"`
	Vault  *VaultGet `json:"vault,omitempty"`
}

func (ProtectableResult) String

func (o ProtectableResult) String() string

type ProtectablesResp

type ProtectablesResp struct {
	// 子资源
	Children []interface{} `json:"children"`
	// 资源详情
	Detail *interface{} `json:"detail,omitempty"`
	// id
	Id string `json:"id"`
	// 名称
	Name        string             `json:"name"`
	Protectable *ProtectableResult `json:"protectable"`
	// 大小,单位GB
	Size *string `json:"size,omitempty"`
	// 资源状态
	Status *ProtectablesRespStatus `json:"status,omitempty"`
	// [待备份资源的类型: OS::Nova::Server, OS::Cinder::Volume, OS::Ironic::BareMetalServer, OS::Native::Server, OS::Sfs::Turbo](tag:hws,hws_hk,fcs_vm,ctc) [待备份资源的类型: OS::Nova::Server,  OS::Cinder::Volume](tag:dt,ocb,tlf,sbc)
	Type string `json:"type"`
}

func (ProtectablesResp) String

func (o ProtectablesResp) String() string

type ProtectablesRespStatus

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

func (ProtectablesRespStatus) MarshalJSON

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

func (*ProtectablesRespStatus) UnmarshalJSON

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

type ProtectablesRespStatusEnum

type ProtectablesRespStatusEnum struct {
	ACTIVE  ProtectablesRespStatus
	DELETED ProtectablesRespStatus
	ERROR   ProtectablesRespStatus
}

func GetProtectablesRespStatusEnum

func GetProtectablesRespStatusEnum() ProtectablesRespStatusEnum

type RemoveVaultResourceRequest

type RemoveVaultResourceRequest struct {
	VaultId string                  `json:"vault_id"`
	Body    *VaultRemoveResourceReq `json:"body,omitempty"`
}

Request Object

func (RemoveVaultResourceRequest) String

type RemoveVaultResourceResponse

type RemoveVaultResourceResponse struct {
	// 移除的资源ID
	RemoveResourceIds *[]string `json:"remove_resource_ids,omitempty"`
	HttpStatusCode    int       `json:"-"`
}

Response Object

func (RemoveVaultResourceResponse) String

type ReplicationRecordGet

type ReplicationRecordGet struct {
	// 复制的开始时间
	CreatedAt *string `json:"created_at,omitempty"`
	// 复制的目的备份ID
	DestinationBackupId *string `json:"destination_backup_id,omitempty"`
	// 复制的目的备份记录ID
	DestinationCheckpointId *string `json:"destination_checkpoint_id,omitempty"`
	// 复制的目标项目ID
	DestinationProjectId *string `json:"destination_project_id,omitempty"`
	// 复制的目标区域
	DestinationRegion *string `json:"destination_region,omitempty"`
	// 目标存储库ID
	DestinationVaultId *string `json:"destination_vault_id,omitempty"`
	// 复制附加信息
	ExtraInfo *string `json:"extra_info,omitempty"`
	// 复制记录ID
	Id string `json:"id"`
	// 复制的源备份ID
	SourceBackupId *string `json:"source_backup_id,omitempty"`
	// 复制的源备份记录ID
	SourceCheckpointId *string `json:"source_checkpoint_id,omitempty"`
	// 复制的源项目ID
	SourceProjectId *string `json:"source_project_id,omitempty"`
	// 复制的源区域
	SourceRegion *string `json:"source_region,omitempty"`
	// 复制的状态
	Status *ReplicationRecordGetStatus `json:"status,omitempty"`
	// 备份所在的存储库ID
	VaultId *string `json:"vault_id,omitempty"`
}

func (ReplicationRecordGet) String

func (o ReplicationRecordGet) String() string

type ReplicationRecordGetStatus

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

func (ReplicationRecordGetStatus) MarshalJSON

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

func (*ReplicationRecordGetStatus) UnmarshalJSON

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

type ReplicationRecordGetStatusEnum

type ReplicationRecordGetStatusEnum struct {
	REPLICATING       ReplicationRecordGetStatus
	SUCCESS           ReplicationRecordGetStatus
	FAIL              ReplicationRecordGetStatus
	SKIP              ReplicationRecordGetStatus
	WAITING_REPLICATE ReplicationRecordGetStatus
}

func GetReplicationRecordGetStatusEnum

func GetReplicationRecordGetStatusEnum() ReplicationRecordGetStatusEnum

type Resource

type Resource struct {
	ExtraInfo *ResourceExtraInfo `json:"extra_info,omitempty"`
	// 待备份资源id
	Id string `json:"id"`
	// 待备份资源名称,长度限制:0-255
	Name string `json:"name"`
	// [待备份资源的类型: OS::Nova::Server, OS::Cinder::Volume, OS::Ironic::BareMetalServer, OS::Native::Server, OS::Sfs::Turbo](tag:hws,hws_hk,fcs_vm,ctc) [待备份资源的类型: OS::Nova::Server,  OS::Cinder::Volume](tag:dt,ocb,tlf,sbc)
	Type string `json:"type"`
}

func (Resource) String

func (o Resource) String() string

type ResourceCreate

type ResourceCreate struct {
	ExtraInfo *ResourceExtraInfo `json:"extra_info,omitempty"`
	// 待备份资源id
	Id string `json:"id"`
	// [待备份资源的类型: OS::Nova::Server, OS::Cinder::Volume, OS::Ironic::BareMetalServer, OS::Native::Server, OS::Sfs::Turbo](tag:hws,hws_hk,fcs_vm,ctc) [待备份资源的类型: OS::Nova::Server,  OS::Cinder::Volume](tag:dt,ocb,tlf,sbc)
	Type string `json:"type"`
	// 名称
	Name *string `json:"name,omitempty"`
}

func (ResourceCreate) String

func (o ResourceCreate) String() string

type ResourceExtraInfo

type ResourceExtraInfo struct {
	// 需要排除备份的卷id。仅虚拟机磁盘级备份有效
	ExcludeVolumes *[]string `json:"exclude_volumes,omitempty"`
	// 要备份的卷
	IncludeVolumes *[]ResourceExtraInfoIncludeVolumes `json:"include_volumes,omitempty"`
}

func (ResourceExtraInfo) String

func (o ResourceExtraInfo) String() string

type ResourceExtraInfoIncludeVolumes

type ResourceExtraInfoIncludeVolumes struct {
	// 卷ID,仅支持uuid
	Id string `json:"id"`
	// 操作系统类型
	OsVersion *string `json:"os_version,omitempty"`
}

func (ResourceExtraInfoIncludeVolumes) String

type ResourceResp

type ResourceResp struct {
	ExtraInfo *ResourceExtraInfo `json:"extra_info,omitempty"`
	// 待备份资源id
	Id string `json:"id"`
	// 待备份资源名称
	Name string `json:"name"`
	// 保护状态
	ProtectStatus *ResourceRespProtectStatus `json:"protect_status,omitempty"`
	// 资源已分配容量,单位为GB
	Size *int32 `json:"size,omitempty"`
	// [待备份资源的类型: OS::Nova::Server, OS::Cinder::Volume, OS::Ironic::BareMetalServer, OS::Native::Server, OS::Sfs::Turbo](tag:hws,hws_hk,fcs_vm,ctc) [待备份资源的类型: OS::Nova::Server,  OS::Cinder::Volume](tag:dt,ocb,tlf,sbc)
	Type string `json:"type"`
	// 副本大小
	BackupSize *int32 `json:"backup_size,omitempty"`
	// 副本数量
	BackupCount *int32 `json:"backup_count,omitempty"`
}

func (ResourceResp) String

func (o ResourceResp) String() string

type ResourceRespProtectStatus

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

func (ResourceRespProtectStatus) MarshalJSON

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

func (*ResourceRespProtectStatus) UnmarshalJSON

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

type ResourceRespProtectStatusEnum

type ResourceRespProtectStatusEnum struct {
	AVAILABLE  ResourceRespProtectStatus
	ERROR      ResourceRespProtectStatus
	PROTECTING ResourceRespProtectStatus
	RESTORING  ResourceRespProtectStatus
	REMOVING   ResourceRespProtectStatus
}

func GetResourceRespProtectStatusEnum

func GetResourceRespProtectStatusEnum() ResourceRespProtectStatusEnum

type RestoreBackupRequest

type RestoreBackupRequest struct {
	BackupId string            `json:"backup_id"`
	Body     *BackupRestoreReq `json:"body,omitempty"`
}

Request Object

func (RestoreBackupRequest) String

func (o RestoreBackupRequest) String() string

type RestoreBackupResponse

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

Response Object

func (RestoreBackupResponse) String

func (o RestoreBackupResponse) String() string

type ShowBackupRequest

type ShowBackupRequest struct {
	BackupId string `json:"backup_id"`
}

Request Object

func (ShowBackupRequest) String

func (o ShowBackupRequest) String() string

type ShowBackupResponse

type ShowBackupResponse struct {
	Backup         *BackupDetail `json:"backup,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (ShowBackupResponse) String

func (o ShowBackupResponse) String() string

type ShowCheckpointRequest

type ShowCheckpointRequest struct {
	CheckpointId string `json:"checkpoint_id"`
}

Request Object

func (ShowCheckpointRequest) String

func (o ShowCheckpointRequest) String() string

type ShowCheckpointResponse

type ShowCheckpointResponse struct {
	Checkpoint     *CheckpointCreate `json:"checkpoint,omitempty"`
	HttpStatusCode int               `json:"-"`
}

Response Object

func (ShowCheckpointResponse) String

func (o ShowCheckpointResponse) String() string

type ShowMemberDetailRequest

type ShowMemberDetailRequest struct {
	BackupId string `json:"backup_id"`
	MemberId string `json:"member_id"`
}

Request Object

func (ShowMemberDetailRequest) String

func (o ShowMemberDetailRequest) String() string

type ShowMemberDetailResponse

type ShowMemberDetailResponse struct {
	Member         *Member `json:"member,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowMemberDetailResponse) String

func (o ShowMemberDetailResponse) String() string

type ShowMembersDetailRequest

type ShowMembersDetailRequest struct {
	BackupId      string  `json:"backup_id"`
	DestProjectId *string `json:"dest_project_id,omitempty"`
	ImageId       *string `json:"image_id,omitempty"`
	Status        *string `json:"status,omitempty"`
	VaultId       *string `json:"vault_id,omitempty"`
	Limit         *int32  `json:"limit,omitempty"`
	Marker        *string `json:"marker,omitempty"`
	Offset        *int32  `json:"offset,omitempty"`
	Sort          *string `json:"sort,omitempty"`
}

Request Object

func (ShowMembersDetailRequest) String

func (o ShowMembersDetailRequest) String() string

type ShowMembersDetailResponse

type ShowMembersDetailResponse struct {
	// 添加备份共享成员响应信息
	Members *[]Member `json:"members,omitempty"`
	//
	Count          *int32 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ShowMembersDetailResponse) String

func (o ShowMembersDetailResponse) String() string

type ShowOpLogRequest

type ShowOpLogRequest struct {
	OperationLogId string `json:"operation_log_id"`
}

Request Object

func (ShowOpLogRequest) String

func (o ShowOpLogRequest) String() string

type ShowOpLogResponse

type ShowOpLogResponse struct {
	OperationLog   *OperationLog `json:"operation_log,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (ShowOpLogResponse) String

func (o ShowOpLogResponse) String() string

type ShowPolicyRequest

type ShowPolicyRequest struct {
	PolicyId string `json:"policy_id"`
}

Request Object

func (ShowPolicyRequest) String

func (o ShowPolicyRequest) String() string

type ShowPolicyResponse

type ShowPolicyResponse struct {
	Policy         *Policy `json:"policy,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowPolicyResponse) String

func (o ShowPolicyResponse) String() string

type ShowProtectableRequest

type ShowProtectableRequest struct {
	InstanceId      string                                `json:"instance_id"`
	ProtectableType ShowProtectableRequestProtectableType `json:"protectable_type"`
}

Request Object

func (ShowProtectableRequest) String

func (o ShowProtectableRequest) String() string

type ShowProtectableRequestProtectableType

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

func (ShowProtectableRequestProtectableType) MarshalJSON

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

func (*ShowProtectableRequestProtectableType) UnmarshalJSON

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

type ShowProtectableRequestProtectableTypeEnum

type ShowProtectableRequestProtectableTypeEnum struct {
	SERVER ShowProtectableRequestProtectableType
	DISK   ShowProtectableRequestProtectableType
}

func GetShowProtectableRequestProtectableTypeEnum

func GetShowProtectableRequestProtectableTypeEnum() ShowProtectableRequestProtectableTypeEnum

type ShowProtectableResponse

type ShowProtectableResponse struct {
	Instance       *ProtectablesResp `json:"instance,omitempty"`
	HttpStatusCode int               `json:"-"`
}

Response Object

func (ShowProtectableResponse) String

func (o ShowProtectableResponse) String() string

type ShowReplicationCapabilitiesRequest

type ShowReplicationCapabilitiesRequest struct {
}

Request Object

func (ShowReplicationCapabilitiesRequest) String

type ShowReplicationCapabilitiesResponse

type ShowReplicationCapabilitiesResponse struct {
	// 支持复制的区域列表
	Regions        *[]ProtectableReplicationCapabilitiesRespRegion `json:"regions,omitempty"`
	HttpStatusCode int                                             `json:"-"`
}

Response Object

func (ShowReplicationCapabilitiesResponse) String

type ShowVaultProjectTagRequest

type ShowVaultProjectTagRequest struct {
}

Request Object

func (ShowVaultProjectTagRequest) String

type ShowVaultProjectTagResponse

type ShowVaultProjectTagResponse struct {
	// 标签列表
	Tags           *[]TagsResp `json:"tags,omitempty"`
	HttpStatusCode int         `json:"-"`
}

Response Object

func (ShowVaultProjectTagResponse) String

type ShowVaultRequest

type ShowVaultRequest struct {
	VaultId string `json:"vault_id"`
}

Request Object

func (ShowVaultRequest) String

func (o ShowVaultRequest) String() string

type ShowVaultResourceInstancesRequest

type ShowVaultResourceInstancesRequest struct {
	Body *VaultResourceInstancesReq `json:"body,omitempty"`
}

Request Object

func (ShowVaultResourceInstancesRequest) String

type ShowVaultResourceInstancesResponse

type ShowVaultResourceInstancesResponse struct {
	// 符合查询条件的资源列表(action为count时无此参数)。
	Resources *[]TagResource `json:"resources,omitempty"`
	// 符合查询条件的资源总个数
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ShowVaultResourceInstancesResponse) String

type ShowVaultResponse

type ShowVaultResponse struct {
	Vault          *Vault `json:"vault,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ShowVaultResponse) String

func (o ShowVaultResponse) String() string

type ShowVaultTagRequest

type ShowVaultTagRequest struct {
	VaultId string `json:"vault_id"`
}

Request Object

func (ShowVaultTagRequest) String

func (o ShowVaultTagRequest) String() string

type ShowVaultTagResponse

type ShowVaultTagResponse struct {
	// 标签列表 tags中key不重复
	Tags *[]Tag `json:"tags,omitempty"`
	// 仅op_service权限才可以获取此字段: 目前只包含一个resource_tag结构体  key:_sys_enterprise_project_id value:企业项目id。0表示默认企业项目 非op_service场景不能返回此字段。
	SysTags        *[]SysTag `json:"sys_tags,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ShowVaultTagResponse) String

func (o ShowVaultTagResponse) String() string

type SysTag

type SysTag struct {
	// 键。  系统标签的key,从白名单中取,不能随意定义。 目前仅支持 _sys_enterprise_project_id字段,对应 的value为企业项目ID。
	Key string `json:"key"`
	// 值。  目前仅会用到企业项目ID,其中默 认的企业项目ID为“0”。
	Value string `json:"value"`
}

func (SysTag) String

func (o SysTag) String() string

type SysTags

type SysTags struct {
	// 键。  系统标签的key,从白名单中取,不能随意定义。 目前仅支持 _sys_enterprise_project_id字段,对应 的value为企业项目ID。
	Key string `json:"key"`
	// 值列表。  目前仅会用到企业项目ID,其中默 认的企业项目ID为“0”。
	Values []string `json:"values"`
}

func (SysTags) String

func (o SysTags) String() string

type Tag

type Tag struct {
	// 键。 key最大长度为36个字符。 key不能为空字符串。 key前后空格会被丢弃。 key不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。 [key只能由中文,字母,数字,“-”,“_”组成。](tag:hws,hws_hk,fcs_vm,ctc) [key只能由字母,数字,“_”,“-”组成。](tag:dt,ocb,tlf,sbc)
	Key string `json:"key"`
	// 值。 添加标签时value值必选,删除标签时value值可选。 value最大长度为43个字符。 value可以为空字符串。 value前后的空格会被丢弃。 value不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。 [value只能由中文,字母,数字,“-”,“_”,“.”组成。](tag:hws,hws_hk,fcs_vm,ctc) [value只能由字母,数字,“_”,“-”组成。](tag:dt,ocb,tlf,sbc)
	Value *string `json:"value,omitempty"`
}

func (Tag) String

func (o Tag) String() string

type TagResource

type TagResource struct {
	// 资源ID
	ResourceId string `json:"resource_id"`
	// 资源详情
	ResourceDetail []Vault `json:"resource_detail"`
	// 标签列表 没有标签默认为空数字。
	Tags []Tag `json:"tags"`
	// 资源名称
	ResourceName string `json:"resource_name"`
	// 仅op_service权限才可以可以获取此字段:  目前只包含一个resource_tag 结构体。  key:_sys_enterprise_project_id  value:企业项目id,0表示默认企业项目  非op_service场景不能返回此字段。
	SysTags []SysTag `json:"sys_tags"`
}

func (TagResource) String

func (o TagResource) String() string

type TagsReq

type TagsReq struct {
	// 键。  最大长度127个unicode字符。  不允许为空字符串。  前后的空格会被丢弃。
	Key string `json:"key"`
	// 值列表。  values中最多包含10个value。  每个value最大长度255个unicode字符。前后的空格会被丢弃。  values中value不允许重复。  values中多个value之间是\"或\"的关系。  values允许为空列表,value允许为空字符串。  values如果为空列表,表示任意值。  \\*为系统保留字符,如果value是以\\*开头表示按照\\*后面的值全模糊匹配,不能只传入“\\*”。
	Values []string `json:"values"`
}

func (TagsReq) String

func (o TagsReq) String() string

type TagsResp

type TagsResp struct {
	// 键。  key最大长度36个字符。  key不能为空字符串。  [key只能由中文,字母,数字,“-”,“_”组成。](tag:hws,hws_hk,fcs_vm,ctc)  [key只能由字母,数字,“_”,“-”组成。](tag:dt,ocb,tlf,sbc)
	Key *string `json:"key,omitempty"`
	// 值列表。  value最大长度43个字符。  value可以为空字符串。  [key只能由中文,字母,数字,“-”,“_”组成。](tag:hws,hws_hk,fcs_vm,ctc)  [key只能由字母,数字,“_”,“-”组成。](tag:dt,ocb,tlf,sbc)
	Values *string `json:"values,omitempty"`
}

func (TagsResp) String

func (o TagsResp) String() string

type UpdateMember

type UpdateMember struct {
	// 备份共享状态
	Status UpdateMemberStatus `json:"status"`
	// 共享的备份将存入的存储库,仅支持uuid 更新member状态的时候,如果是接受,必须传入vault_id,如果是拒绝,则无需
	VaultId *string `json:"vault_id,omitempty"`
}

备份共享更新信息

func (UpdateMember) String

func (o UpdateMember) String() string

type UpdateMemberStatus

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

func (UpdateMemberStatus) MarshalJSON

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

func (*UpdateMemberStatus) UnmarshalJSON

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

type UpdateMemberStatusEnum

type UpdateMemberStatusEnum struct {
	ACCEPTED UpdateMemberStatus
	PENDING  UpdateMemberStatus
	REJECTED UpdateMemberStatus
}

func GetUpdateMemberStatusEnum

func GetUpdateMemberStatusEnum() UpdateMemberStatusEnum

type UpdateMemberStatusRequest

type UpdateMemberStatusRequest struct {
	MemberId string        `json:"member_id"`
	BackupId string        `json:"backup_id"`
	Body     *UpdateMember `json:"body,omitempty"`
}

Request Object

func (UpdateMemberStatusRequest) String

func (o UpdateMemberStatusRequest) String() string

type UpdateMemberStatusResponse

type UpdateMemberStatusResponse struct {
	Member         *Member `json:"member,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateMemberStatusResponse) String

type UpdatePolicyRequest

type UpdatePolicyRequest struct {
	PolicyId string           `json:"policy_id"`
	Body     *PolicyUpdateReq `json:"body,omitempty"`
}

Request Object

func (UpdatePolicyRequest) String

func (o UpdatePolicyRequest) String() string

type UpdatePolicyResponse

type UpdatePolicyResponse struct {
	Policy         *Policy `json:"policy,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdatePolicyResponse) String

func (o UpdatePolicyResponse) String() string

type UpdateVaultRequest

type UpdateVaultRequest struct {
	VaultId string          `json:"vault_id"`
	Body    *VaultUpdateReq `json:"body,omitempty"`
}

Request Object

func (UpdateVaultRequest) String

func (o UpdateVaultRequest) String() string

type UpdateVaultResponse

type UpdateVaultResponse struct {
	Vault          *Vault `json:"vault,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (UpdateVaultResponse) String

func (o UpdateVaultResponse) String() string

type Vault

type Vault struct {
	Billing *Billing `json:"billing"`
	// 存储库自定义描述信息。
	Description *string `json:"description,omitempty"`
	// 保管库ID
	Id string `json:"id"`
	// 保管库名称
	Name string `json:"name"`
	// 项目ID
	ProjectId string `json:"project_id"`
	// 保管库类型
	ProviderId string `json:"provider_id"`
	// 存储库资源
	Resources []ResourceResp `json:"resources"`
	// 存储库标签
	Tags *[]Tag `json:"tags,omitempty"`
	// 企业项目id,默认为‘0’。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
	// 是否自动绑定,默认为false,不支持。
	AutoBind  *bool           `json:"auto_bind,omitempty"`
	BindRules *VaultBindRules `json:"bind_rules,omitempty"`
	// 是否开启存储库自动扩容能力(只支持按需存储库)。
	AutoExpand *bool `json:"auto_expand,omitempty"`
	// 用户id
	UserId *string `json:"user_id,omitempty"`
	// 创建时间
	CreatedAt *string `json:"created_at,omitempty"`
}

func (Vault) String

func (o Vault) String() string

type VaultAddResourceReq

type VaultAddResourceReq struct {
	// 资源列表
	Resources []ResourceCreate `json:"resources"`
}

func (VaultAddResourceReq) String

func (o VaultAddResourceReq) String() string

type VaultAssociate

type VaultAssociate struct {
	// 目标vault ID , 只有设置复制策略时使用,而且必传
	DestinationVaultId *string `json:"destination_vault_id,omitempty"`
	// 策略ID
	PolicyId string `json:"policy_id"`
}

func (VaultAssociate) String

func (o VaultAssociate) String() string

type VaultBackup

type VaultBackup struct {
	Parameters *CheckpointParam `json:"parameters,omitempty"`
	// 存储库ID
	VaultId string `json:"vault_id"`
}

func (VaultBackup) String

func (o VaultBackup) String() string

type VaultBackupReq

type VaultBackupReq struct {
	Checkpoint *VaultBackup `json:"checkpoint"`
}

func (VaultBackupReq) String

func (o VaultBackupReq) String() string

type VaultBindRules

type VaultBindRules struct {
	// 按tags过滤自动绑定的资源
	Tags *[]Tag `json:"tags,omitempty"`
}

func (VaultBindRules) String

func (o VaultBindRules) String() string

type VaultCreate

type VaultCreate struct {
	// 备份策略ID,不设置时为null,不自动备份。
	BackupPolicyId *string        `json:"backup_policy_id,omitempty"`
	Billing        *BillingCreate `json:"billing"`
	// 描述
	Description *string `json:"description,omitempty"`
	// 存储库名称
	Name string `json:"name"`
	// 绑定的备份资源,未在创建时绑定资源填[]
	Resources []ResourceCreate `json:"resources"`
	// 标签列表 tags不允许为空列表。 tags中最多包含10个key。 tags中key不允许重复。
	Tags *[]Tag `json:"tags,omitempty"`
	// 企业项目ID,默认为‘0’。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
	// 是否支持自动挂载。
	AutoBind  *bool           `json:"auto_bind,omitempty"`
	BindRules *VaultBindRules `json:"bind_rules,omitempty"`
	// 是否自动扩容。按需存储库支持自动扩容,包周期存储库不支持扩容。
	AutoExpand *bool `json:"auto_expand,omitempty"`
}

func (VaultCreate) String

func (o VaultCreate) String() string

type VaultCreateReq

type VaultCreateReq struct {
	Vault *VaultCreate `json:"vault"`
}

func (VaultCreateReq) String

func (o VaultCreateReq) String() string

type VaultDissociate

type VaultDissociate struct {
	// 策略ID
	PolicyId string `json:"policy_id"`
}

func (VaultDissociate) String

func (o VaultDissociate) String() string

type VaultGet

type VaultGet struct {
	Billing *Billing `json:"billing"`
	// 描述
	Description *string `json:"description,omitempty"`
	// 保管库id
	Id string `json:"id"`
	// 保管库名称
	Name string `json:"name"`
	// 项目id
	ProjectId string `json:"project_id"`
	//
	ProviderId string `json:"provider_id"`
	// 资源
	Resources []VaultResourceIntancesResp `json:"resources"`
	// 标签
	Tags *[]TagsResp `json:"tags,omitempty"`
	// 企业项目id
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
	// 是否自动绑定,默认为false,不支持。
	AutoBind  *bool           `json:"auto_bind,omitempty"`
	BindRules *VaultBindRules `json:"bind_rules,omitempty"`
	// 是否开启存储库自动扩容能力(只支持按需存储库)。
	AutoExpand *bool `json:"auto_expand,omitempty"`
	// 用户id
	UserId *string `json:"user_id,omitempty"`
	// 创建时间,例如:\"2020-02-05T10:38:34.209782\"
	CreatedAt string `json:"created_at"`
	// 更新时间,例如:\"2020-02-05T10:38:34.209782\"
	UpdatedAt string `json:"updated_at"`
	// 版本
	Version *string `json:"version,omitempty"`
}

func (VaultGet) String

func (o VaultGet) String() string

type VaultMigrateResourceReq

type VaultMigrateResourceReq struct {
	// 目标存储库
	DestinationVaultId string `json:"destination_vault_id"`
	// 待迁移的资源ID
	ResourceIds []string `json:"resource_ids"`
}

func (VaultMigrateResourceReq) String

func (o VaultMigrateResourceReq) String() string

type VaultPolicyResp

type VaultPolicyResp struct {
	// 目标region的vault ID,仅设置复制策略时有。
	DestinationVaultId *string `json:"destination_vault_id,omitempty"`
	// 设置的策略ID
	PolicyId string `json:"policy_id"`
	// 设置策略的vault ID
	VaultId string `json:"vault_id"`
}

绑定策略返回体

func (VaultPolicyResp) String

func (o VaultPolicyResp) String() string

type VaultRemoveResourceReq

type VaultRemoveResourceReq struct {
	// 要移除的资源ID列表
	ResourceIds []string `json:"resource_ids"`
}

func (VaultRemoveResourceReq) String

func (o VaultRemoveResourceReq) String() string

type VaultResourceInstancesReq

type VaultResourceInstancesReq struct {
	// 包含标签。  tags不允许为空列表。  tags中最多包含10个key。  tags中key不允许重复。  tags中多个key之间是“与”的关系。  结果返回包含所有标签的资源列表,key之间是与的关系,key-value结构中value是或的关系。  无过滤条件时返回全量数据。
	Tags *[]TagsReq `json:"tags,omitempty"`
	// 包含任一标签。  tags不允许为空列表。  tags中最多包含10个key。  tags中key不允许重复。  结果返回包含任一标签的资源列表,key之间是或的关系,key-value结构中value是或的关系。  无过滤条件时返回全量数据。
	TagsAny *[]TagsReq `json:"tags_any,omitempty"`
	// 不包含标签。  tags不允许为空列表。  tags中最多包含10个key。  tags中key不允许重复。  结果返回不包含所有标签的资源列表,key之间是与的关系,key-value结构中value是或的关系。  无过滤条件时返回全量数据。
	NotTags *[]TagsReq `json:"not_tags,omitempty"`
	// 不包含任一标签。  tags不允许为空列表。  tags中最多包含10个key。  tags中key不允许重复。  结果返回不包含任一标签的资源列表,key之间是或的关系,key-value结构张value是或的关系。  无过滤条件时返回全量数据。
	NotTagsAny *[]TagsReq `json:"not_tags_any,omitempty"`
	// 仅op_service权限可以使用此字段做资源实例过滤条件。  目前TMS调用时只包含一个tag结构体。  * key: _sys_enterprise_project_id  * values:企业项目id列表  目前TMS调用时,key下面只包含一个value,0表示默认企业项目。  sys_tags和租户标签过滤条件(tags、tags_any、not_tags、not_tags_any)不能同时使用。  无sys_tags时按照tag接口处理,无tag过滤条件时返回全量数据。  sys_tags不能为空列表
	SysTags *[]SysTags `json:"sys_tags,omitempty"`
	// 查询记录数(action为count时无此参数)如果action为filter时,默认为1000,limit最小值为1,limit最大值为1000, 不在范围内报错。返回的结果中记录数不超过limit。
	Limit *string `json:"limit,omitempty"`
	// 索引位置(action为count时无此参数)如果action为filter时,默认为0,offset最小值为0。返回的结果中第一条记录为符合查询条件的第offset+1条记录。
	Offset *string `json:"offset,omitempty"`
	// 操作标识取值范围为:\"filter\", \"count\"。如果是filter就是分页查询,如果是count只需按照条件将总条数返回即可
	Action string `json:"action"`
	// 资源本身支持的查询条件。  matches不允许为空列表。  matches中key不允许重复。
	Matches *[]Match `json:"matches,omitempty"`
	// 云类型
	CloudType *VaultResourceInstancesReqCloudType `json:"cloud_type,omitempty"`
	// 资源类型
	ObjectType *VaultResourceInstancesReqObjectType `json:"object_type,omitempty"`
}

func (VaultResourceInstancesReq) String

func (o VaultResourceInstancesReq) String() string

type VaultResourceInstancesReqCloudType

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

func (VaultResourceInstancesReqCloudType) MarshalJSON

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

func (*VaultResourceInstancesReqCloudType) UnmarshalJSON

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

type VaultResourceInstancesReqCloudTypeEnum

type VaultResourceInstancesReqCloudTypeEnum struct {
	PUBLIC VaultResourceInstancesReqCloudType
	HYBRID VaultResourceInstancesReqCloudType
}

func GetVaultResourceInstancesReqCloudTypeEnum

func GetVaultResourceInstancesReqCloudTypeEnum() VaultResourceInstancesReqCloudTypeEnum

type VaultResourceInstancesReqObjectType

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

func (VaultResourceInstancesReqObjectType) MarshalJSON

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

func (*VaultResourceInstancesReqObjectType) UnmarshalJSON

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

type VaultResourceInstancesReqObjectTypeEnum

type VaultResourceInstancesReqObjectTypeEnum struct {
	SERVER VaultResourceInstancesReqObjectType
	DISK   VaultResourceInstancesReqObjectType
}

func GetVaultResourceInstancesReqObjectTypeEnum

func GetVaultResourceInstancesReqObjectTypeEnum() VaultResourceInstancesReqObjectTypeEnum

type VaultResourceIntancesResp

type VaultResourceIntancesResp struct {
	// 符合查询条件的资源列表(action为count时无此参数)。
	Resources *[]TagResource `json:"resources,omitempty"`
	// 符合查询条件的资源总个数
	TotalCount *int32 `json:"total_count,omitempty"`
}

func (VaultResourceIntancesResp) String

func (o VaultResourceIntancesResp) String() string

type VaultTagsCreateReq

type VaultTagsCreateReq struct {
	Tag *Tag `json:"tag,omitempty"`
}

func (VaultTagsCreateReq) String

func (o VaultTagsCreateReq) String() string

type VaultUpdate

type VaultUpdate struct {
	Billing *BillingUpdate `json:"billing,omitempty"`
	// 存储库名称
	Name *string `json:"name,omitempty"`
	// 是否支持自动挂载
	AutoBind  *bool           `json:"auto_bind,omitempty"`
	BindRules *VaultBindRules `json:"bind_rules,omitempty"`
	// 是否自动扩容。按需存储库支持自动扩容,包周期存储库不支持扩容。
	AutoExpand *bool `json:"auto_expand,omitempty"`
}

func (VaultUpdate) String

func (o VaultUpdate) String() string

type VaultUpdateReq

type VaultUpdateReq struct {
	Vault *VaultUpdate `json:"vault"`
}

存储库修改参数体

func (VaultUpdateReq) String

func (o VaultUpdateReq) String() string

Source Files

Jump to

Keyboard shortcuts

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