Documentation ¶
Index ¶
- type AddAgentPathRequest
- type AddAgentPathResponse
- type AddMemberRequest
- type AddMemberResponse
- type AddMembersReq
- type AddVaultResourceRequest
- type AddVaultResourceResponse
- type Agent
- type AgentAddPathReq
- type AgentRegister
- type AgentRegisterReq
- type AgentRemovePathReq
- type AgentUpdate
- type AgentUpdateReq
- type AgentUpdateStatus
- type AgentUpdateStatusEnum
- type AssociateVaultPolicyRequest
- type AssociateVaultPolicyResponse
- type BackupExtendInfo
- type BackupExtendInfoSupportedRestoreMode
- type BackupExtendInfoSupportedRestoreModeEnum
- type BackupReplicateReq
- type BackupReplicateReqBody
- type BackupReplicateRespBody
- type BackupResp
- type BackupRespImageType
- type BackupRespImageTypeEnum
- type BackupRespResourceType
- type BackupRespResourceTypeEnum
- type BackupRespStatus
- type BackupRespStatusEnum
- type BackupRestore
- type BackupRestoreReq
- type BackupRestoreServerMapping
- type BackupSync
- type BackupSyncReq
- type BackupSyncRespBody
- type BackupUpdate
- type BackupUpdateReq
- type BatchCreateAndDeleteVaultTagsRequest
- type BatchCreateAndDeleteVaultTagsResponse
- type BatchUpdateVaultRequest
- type BatchUpdateVaultRequestBody
- type BatchUpdateVaultResponse
- type Billing
- type BillingChargingMode
- type BillingChargingModeEnum
- type BillingCloudType
- type BillingCloudTypeEnum
- type BillingConsistentLevel
- type BillingConsistentLevelEnum
- type BillingCreate
- type BillingCreateChargingMode
- type BillingCreateChargingModeEnum
- type BillingCreateCloudType
- type BillingCreateCloudTypeEnum
- type BillingCreateConsistentLevel
- type BillingCreateConsistentLevelEnum
- type BillingCreateObjectType
- type BillingCreateObjectTypeEnum
- type BillingCreatePeriodType
- type BillingCreatePeriodTypeEnum
- type BillingCreateProtectType
- type BillingCreateProtectTypeEnum
- type BillingObjectType
- type BillingObjectTypeEnum
- type BillingProtectType
- type BillingProtectTypeEnum
- type BillingSpecCode
- type BillingSpecCodeEnum
- type BillingStatus
- type BillingStatusEnum
- type BillingUpdate
- type BillingUpdateConsistentLevel
- type BillingUpdateConsistentLevelEnum
- type BindRulesTags
- type BulkCreateAndDeleteVaultTagsReq
- type BulkCreateAndDeleteVaultTagsReqAction
- type BulkCreateAndDeleteVaultTagsReqActionEnum
- type CbcOrderResult
- type CbcProductInfoUpdate
- type CbcUpdate
- type CheckAgentRequest
- type CheckAgentResponse
- type CheckpointCreate
- type CheckpointCreateSkippedResource
- type CheckpointCreateStatus
- type CheckpointCreateStatusEnum
- type CheckpointExtraInfoResp
- type CheckpointParam
- type CheckpointPlanCreate
- type CheckpointReplicateParam
- type CheckpointReplicateReq
- type CheckpointReplicateRespBody
- type CheckpointReplicateRespbackups
- type CheckpointResourceResp
- type CheckpointResourceRespProtectStatus
- type CheckpointResourceRespProtectStatusEnum
- type CombinedOrder
- type CopyBackupRequest
- type CopyBackupResponse
- type CopyCheckpointRequest
- type CopyCheckpointResponse
- type CreateCheckpointRequest
- type CreateCheckpointResponse
- type CreatePolicyRequest
- type CreatePolicyResponse
- type CreatePostPaidVaultRequest
- type CreatePostPaidVaultResponse
- type CreateVaultRequest
- type CreateVaultResponse
- type CreateVaultTagsRequest
- type CreateVaultTagsResponse
- type DeleteBackupRequest
- type DeleteBackupResponse
- type DeleteMemberRequest
- type DeleteMemberResponse
- type DeletePolicyRequest
- type DeletePolicyResponse
- type DeleteVaultRequest
- type DeleteVaultResponse
- type DeleteVaultTagRequest
- type DeleteVaultTagResponse
- type DisassociateVaultPolicyRequest
- type DisassociateVaultPolicyResponse
- type DomainMigrate
- type DomainMigrateProjectStatus
- type DomainMigrateProjectStatusStatus
- type DomainMigrateProjectStatusStatusEnum
- type DomainProjectsInfo
- type ImageData
- type ImportBackupRequest
- type ImportBackupResponse
- type ImportCheckpointRequest
- type ImportCheckpointResponse
- type InstancesResourceDetail
- type ListAgentRequest
- type ListAgentResponse
- type ListBackupsRequest
- type ListBackupsRequestImageType
- type ListBackupsRequestImageTypeEnum
- type ListBackupsRequestMemberStatus
- type ListBackupsRequestMemberStatusEnum
- type ListBackupsRequestOwnType
- type ListBackupsRequestOwnTypeEnum
- type ListBackupsRequestResourceType
- type ListBackupsRequestResourceTypeEnum
- type ListBackupsRequestStatus
- type ListBackupsRequestStatusEnum
- type ListBackupsResponse
- type ListDomainProjectsRequest
- type ListDomainProjectsResponse
- type ListExternalVaultRequest
- type ListExternalVaultRequestProtectType
- type ListExternalVaultRequestProtectTypeEnum
- type ListExternalVaultResponse
- type ListOpLogsRequest
- type ListOpLogsRequestOperationType
- type ListOpLogsRequestOperationTypeEnum
- type ListOpLogsRequestStatus
- type ListOpLogsRequestStatusEnum
- type ListOpLogsResponse
- type ListPoliciesRequest
- type ListPoliciesRequestOperationType
- type ListPoliciesRequestOperationTypeEnum
- type ListPoliciesResponse
- type ListProjectsRequest
- type ListProjectsResponse
- type ListProtectableRequest
- type ListProtectableRequestProtectableType
- type ListProtectableRequestProtectableTypeEnum
- type ListProtectableResponse
- type ListVaultRequest
- type ListVaultRequestCloudType
- type ListVaultRequestCloudTypeEnum
- type ListVaultRequestProtectType
- type ListVaultRequestProtectTypeEnum
- type ListVaultResponse
- type Match
- type Member
- type MemberStatus
- type MemberStatusEnum
- type MigrateDomainRequest
- type MigrateDomainResponse
- type MigrateVaultResourceRequest
- type MigrateVaultResourceResponse
- type OpErrorInfo
- type OpExtendInfoBckup
- type OpExtendInfoBckupAppConsistencyStatus
- type OpExtendInfoBckupAppConsistencyStatusEnum
- type OpExtendInfoBckupIncremental
- type OpExtendInfoBckupIncrementalEnum
- type OpExtendInfoCommon
- type OpExtendInfoDelete
- type OpExtendInfoRemoveResources
- type OpExtendInfoReplication
- type OpExtendInfoRestore
- type OpExtendInfoSync
- type OpExtendInfoVaultDelete
- type OpExtraInfo
- type OperationLog
- type OperationLogOperationType
- type OperationLogOperationTypeEnum
- type OperationLogStatus
- type OperationLogStatusEnum
- type Path
- type Policy
- type PolicyAssociateVault
- type PolicyCreate
- type PolicyCreateOperationType
- type PolicyCreateOperationTypeEnum
- type PolicyCreateReq
- type PolicyOperationType
- type PolicyOperationTypeEnum
- type PolicyTriggerPropertiesReq
- type PolicyTriggerPropertiesResp
- type PolicyTriggerReq
- type PolicyTriggerResp
- type PolicyTriggerRespType
- type PolicyTriggerRespTypeEnum
- type PolicyUpdate
- type PolicyUpdateReq
- type PolicyoOdCreate
- type ProjectsListInfo
- type ProtectableAgentReq
- type ProtectableAgentStatus
- type ProtectableAgentStatusResource
- type ProtectableReplicationCapabilitiesRespRegion
- type ProtectableResult
- type ProtectablesResp
- type ProtectablesRespStatus
- type ProtectablesRespStatusEnum
- type RegisterAgentRequest
- type RegisterAgentResponse
- type RemoveAgentPathRequest
- type RemoveAgentPathResponse
- type RemoveVaultResourceRequest
- type RemoveVaultResourceResponse
- type ReplicationRecordGet
- type ReplicationRecordGetStatus
- type ReplicationRecordGetStatusEnum
- type ReplicationRecordsExtraInfo
- type Resource
- type ResourceCreate
- type ResourceExtraInfo
- type ResourceExtraInfoIncludeVolumes
- type ResourceResp
- type ResourceRespProtectStatus
- type ResourceRespProtectStatusEnum
- type RestoreBackupRequest
- type RestoreBackupResponse
- type SelfLinksInfo
- type SetVaultResourceRequest
- type SetVaultResourceResponse
- type ShowAgentRequest
- type ShowAgentResponse
- type ShowBackupRequest
- type ShowBackupResponse
- type ShowCheckpointRequest
- type ShowCheckpointResponse
- type ShowDomainRequest
- type ShowDomainResponse
- type ShowMemberDetailRequest
- type ShowMemberDetailResponse
- type ShowMembersDetailRequest
- type ShowMembersDetailResponse
- type ShowMetadataRequest
- type ShowMetadataResponse
- type ShowMigrateStatusRequest
- type ShowMigrateStatusResponse
- type ShowMigrateStatusResponseStatus
- type ShowMigrateStatusResponseStatusEnum
- type ShowOpLogRequest
- type ShowOpLogResponse
- type ShowPolicyRequest
- type ShowPolicyResponse
- type ShowProtectableRequest
- type ShowProtectableRequestProtectableType
- type ShowProtectableRequestProtectableTypeEnum
- type ShowProtectableResponse
- type ShowReplicationCapabilitiesRequest
- type ShowReplicationCapabilitiesResponse
- type ShowStorageUsageRequest
- type ShowStorageUsageRequestResourceType
- type ShowStorageUsageRequestResourceTypeEnum
- type ShowStorageUsageResponse
- type ShowSummaryRequest
- type ShowSummaryResponse
- type ShowVaultProjectTagRequest
- type ShowVaultProjectTagResponse
- type ShowVaultRequest
- type ShowVaultResourceInstancesRequest
- type ShowVaultResourceInstancesResponse
- type ShowVaultResponse
- type ShowVaultTagRequest
- type ShowVaultTagResponse
- type StorageUsage
- type SyncParam
- type SyncReq
- type SyncRespBody
- type SysTag
- type SysTags
- type Tag
- type TagResource
- type TagsReq
- type TagsResp
- type UnregisterAgentRequest
- type UnregisterAgentResponse
- type UpdateAgentRequest
- type UpdateAgentResponse
- type UpdateBackupRequest
- type UpdateBackupResponse
- type UpdateMember
- type UpdateMemberStatus
- type UpdateMemberStatusEnum
- type UpdateMemberStatusRequest
- type UpdateMemberStatusResponse
- type UpdateOrderRequest
- type UpdateOrderResponse
- type UpdatePolicyRequest
- type UpdatePolicyResponse
- type UpdateVaultRequest
- type UpdateVaultResponse
- type Vault
- type VaultAddResourceReq
- type VaultAssociate
- type VaultBackup
- type VaultBackupReq
- type VaultBatchUpdate
- type VaultBindRules
- type VaultCreate
- type VaultCreateParameters
- type VaultCreateReq
- type VaultCreateResource
- type VaultDissociate
- type VaultGet
- type VaultMigrateResourceReq
- type VaultOrder
- type VaultOrderCreateReqs
- type VaultPolicyResp
- type VaultRemoveResourceReq
- type VaultResourceInstancesReq
- type VaultResourceInstancesReqCloudType
- type VaultResourceInstancesReqCloudTypeEnum
- type VaultResourceInstancesReqObjectType
- type VaultResourceInstancesReqObjectTypeEnum
- type VaultSetResourceReq
- type VaultSetResourceReqAction
- type VaultSetResourceReqActionEnum
- type VaultTagsCreateReq
- type VaultUpdate
- type VaultUpdateReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddAgentPathRequest ¶ added in v0.1.40
type AddAgentPathRequest struct { // 客户端ID AgentId string `json:"agent_id"` Body *AgentAddPathReq `json:"body,omitempty"` }
Request Object
func (AddAgentPathRequest) String ¶ added in v0.1.40
func (o AddAgentPathRequest) String() string
type AddAgentPathResponse ¶ added in v0.1.40
type AddAgentPathResponse struct { // 新添加成功的路径列表 Added *[]string `json:"added,omitempty"` // 已经存在的路径列表 Existed *[]string `json:"existed,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (AddAgentPathResponse) String ¶ added in v0.1.40
func (o AddAgentPathResponse) String() string
type AddMemberRequest ¶
type AddMemberRequest struct { // 备份副本id 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 { // 存储库ID 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 Agent ¶ added in v0.1.40
type Agent struct { // 客户端创建时间 CreatedAt *sdktime.SdkTime `json:"created_at,omitempty"` // 客户端更新时间 UpdatedAt *sdktime.SdkTime `json:"updated_at,omitempty"` // 客户端ID AgentId string `json:"agent_id"` // 客户端版本号 AgentVersion *string `json:"agent_version,omitempty"` // 客户端类型 AgentType *string `json:"agent_type,omitempty"` // 客户端所在的主机名 HostName *string `json:"host_name,omitempty"` // 客户端所在的主机昵称 HostNickname *string `json:"host_nickname,omitempty"` // 客户端所在主机的IP HostIp *string `json:"host_ip,omitempty"` // 客户端主机所在的操作系统 HostOs *string `json:"host_os,omitempty"` // 客户端状态 Status *string `json:"status,omitempty"` // 客户端上次激活时间 LastActiveTime *sdktime.SdkTime `json:"last_active_time,omitempty"` // 客户端的备份路径 Paths *[]Path `json:"paths,omitempty"` }
type AgentAddPathReq ¶ added in v0.1.40
type AgentAddPathReq struct { // 增加备份路径详情 AddPath []string `json:"add_path"` }
func (AgentAddPathReq) String ¶ added in v0.1.40
func (o AgentAddPathReq) String() string
type AgentRegister ¶ added in v0.1.40
type AgentRegister struct { // 客户端ID AgentId string `json:"agent_id"` // 客户端所在的主机名 HostName string `json:"host_name"` // 客户端所在主机的IP HostIp string `json:"host_ip"` // 客户端所在主机的操作系统 HostOs string `json:"host_os"` // 客户端所在主机的主机别名 HostNickname *string `json:"host_nickname,omitempty"` // 客户端版本 AgentVersion *string `json:"agent_version,omitempty"` // 客户端类型,分本地客户端和云上客户端(cloud/native) AgentType *string `json:"agent_type,omitempty"` }
func (AgentRegister) String ¶ added in v0.1.40
func (o AgentRegister) String() string
type AgentRegisterReq ¶ added in v0.1.40
type AgentRegisterReq struct {
Agent *AgentRegister `json:"agent"`
}
func (AgentRegisterReq) String ¶ added in v0.1.40
func (o AgentRegisterReq) String() string
type AgentRemovePathReq ¶ added in v0.1.40
type AgentRemovePathReq struct { // 移除备份路径详情 RemovePath []string `json:"remove_path"` }
func (AgentRemovePathReq) String ¶ added in v0.1.40
func (o AgentRemovePathReq) String() string
type AgentUpdate ¶ added in v0.1.40
type AgentUpdate struct { // 客户端状态,当前只支持卸载,由客户端被卸载时自动触发 Status AgentUpdateStatus `json:"status"` }
func (AgentUpdate) String ¶ added in v0.1.40
func (o AgentUpdate) String() string
type AgentUpdateReq ¶ added in v0.1.40
type AgentUpdateReq struct {
Agent *AgentUpdate `json:"agent"`
}
func (AgentUpdateReq) String ¶ added in v0.1.40
func (o AgentUpdateReq) String() string
type AgentUpdateStatus ¶ added in v0.1.40
type AgentUpdateStatus struct {
// contains filtered or unexported fields
}
func (AgentUpdateStatus) MarshalJSON ¶ added in v0.1.40
func (c AgentUpdateStatus) MarshalJSON() ([]byte, error)
func (*AgentUpdateStatus) UnmarshalJSON ¶ added in v0.1.40
func (c *AgentUpdateStatus) UnmarshalJSON(b []byte) error
func (AgentUpdateStatus) Value ¶ added in v0.1.40
func (c AgentUpdateStatus) Value() string
type AgentUpdateStatusEnum ¶ added in v0.1.40
type AgentUpdateStatusEnum struct {
UNINSTALL AgentUpdateStatus
}
func GetAgentUpdateStatusEnum ¶ added in v0.1.40
func GetAgentUpdateStatusEnum() AgentUpdateStatusEnum
type AssociateVaultPolicyRequest ¶
type AssociateVaultPolicyRequest struct { // 存储库ID VaultId string `json:"vault_id"` Body *VaultAssociate `json:"body,omitempty"` }
Request Object
func (AssociateVaultPolicyRequest) String ¶
func (o AssociateVaultPolicyRequest) String() string
type AssociateVaultPolicyResponse ¶
type AssociateVaultPolicyResponse struct { AssociatePolicy *VaultPolicyResp `json:"associate_policy,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (AssociateVaultPolicyResponse) String ¶
func (o AssociateVaultPolicyResponse) String() string
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"` // 备份类型是否为多AZ IsMultiAz *bool `json:"is_multi_az,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
func (BackupExtendInfoSupportedRestoreMode) Value ¶ added in v0.0.90
func (c BackupExtendInfoSupportedRestoreMode) Value() string
type BackupExtendInfoSupportedRestoreModeEnum ¶
type BackupExtendInfoSupportedRestoreModeEnum struct { NA BackupExtendInfoSupportedRestoreMode BACKUP BackupExtendInfoSupportedRestoreMode SNAPSHOT BackupExtendInfoSupportedRestoreMode }
func GetBackupExtendInfoSupportedRestoreModeEnum ¶
func GetBackupExtendInfoSupportedRestoreModeEnum() BackupExtendInfoSupportedRestoreModeEnum
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"` // 资源类型id 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"` // 资源类型: 云服务器: OS::Nova::Server, 云硬盘: OS::Cinder::Volume, 云桌面:OS::Workspace::DesktopV2 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,omitempty"` // 企业项目id,默认为‘0’。 EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` // 备份提供商ID,用于区分备份对象。当前取值包含 0daac4c5-6707-4851-97ba-169e36266b66,该值代表备份对象为云服务器。d1603440-187d-4516-af25-121250c7cc97,该值代表备份对象为云硬盘。3f3c3220-245c-4805-b811-758870015881, 该值代表备份对象为SFS Turbo。a13639de-00be-4e94-af30-26912d75e4a2,该值代表备份对象为混合云VMware备份。 ProviderId string `json:"provider_id"` // 子副本列表 Children *[]BackupResp `json:"children,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
func (BackupRespImageType) Value ¶ added in v0.0.90
func (c BackupRespImageType) Value() string
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
func (BackupRespResourceType) Value ¶ added in v0.0.90
func (c BackupRespResourceType) Value() string
type BackupRespResourceTypeEnum ¶
type BackupRespResourceTypeEnum struct { OSNOVASERVER BackupRespResourceType OSCINDERVOLUME BackupRespResourceType OSWORKSPACEDESKTOP_V2 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
func (BackupRespStatus) Value ¶ added in v0.0.90
func (c BackupRespStatus) Value() string
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 ¶
func (o BackupRestoreServerMapping) String() 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 BackupUpdate ¶ added in v0.1.41
type BackupUpdate struct { // 备份名称 Name *string `json:"name,omitempty"` }
func (BackupUpdate) String ¶ added in v0.1.41
func (o BackupUpdate) String() string
type BackupUpdateReq ¶ added in v0.1.41
type BackupUpdateReq struct {
Backup *BackupUpdate `json:"backup,omitempty"`
}
更新请求参数体
func (BackupUpdateReq) String ¶ added in v0.1.41
func (o BackupUpdateReq) String() string
type BatchCreateAndDeleteVaultTagsRequest ¶
type BatchCreateAndDeleteVaultTagsRequest struct { // 资源id VaultId string `json:"vault_id"` Body *BulkCreateAndDeleteVaultTagsReq `json:"body,omitempty"` }
Request Object
func (BatchCreateAndDeleteVaultTagsRequest) String ¶
func (o BatchCreateAndDeleteVaultTagsRequest) String() string
type BatchCreateAndDeleteVaultTagsResponse ¶
type BatchCreateAndDeleteVaultTagsResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (BatchCreateAndDeleteVaultTagsResponse) String ¶
func (o BatchCreateAndDeleteVaultTagsResponse) String() string
type BatchUpdateVaultRequest ¶ added in v0.1.41
type BatchUpdateVaultRequest struct {
Body *BatchUpdateVaultRequestBody `json:"body,omitempty"`
}
Request Object
func (BatchUpdateVaultRequest) String ¶ added in v0.1.41
func (o BatchUpdateVaultRequest) String() string
type BatchUpdateVaultRequestBody ¶ added in v0.1.41
type BatchUpdateVaultRequestBody struct {
Vault *VaultBatchUpdate `json:"vault"`
}
存储库批量修改参数体
func (BatchUpdateVaultRequestBody) String ¶ added in v0.1.41
func (o BatchUpdateVaultRequestBody) String() string
type BatchUpdateVaultResponse ¶ added in v0.1.41
type BatchUpdateVaultResponse struct { // 已批量修改id列表 UpdatedVaultsId *[]string `json:"updated_vaults_id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (BatchUpdateVaultResponse) String ¶ added in v0.1.41
func (o BatchUpdateVaultResponse) String() string
type Billing ¶
type Billing struct { // 已分配容量,单位GB Allocated int32 `json:"allocated"` // 创建模式 ChargingMode BillingChargingMode `json:"charging_mode"` // 云平台 CloudType *BillingCloudType `json:"cloud_type,omitempty"` // 崩溃一致性(crash_consistent)或应用一致性(app_consistent) ConsistentLevel BillingConsistentLevel `json:"consistent_level"` // 对象类型:云服务器(server),云硬盘(disk),文件系统(turbo),云桌面(workspace),VMware(vmware),关系型数据库(rds),文件(file)。 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"` // 规格编码: 云服务备份存储库:vault.backup.server.normal;云硬盘备份存储库:vault.backup.volume.normal;文件备份存储库:vault.backup.turbo.normal;数据库备份存储库:vault.backup.database.normal;混合云备份存储库:vault.hybrid.server.normal;复制备份存储库:vault.replication.server.normal 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"` // 存储库多az属性 IsMultiAz *bool `json:"is_multi_az,omitempty"` }
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
func (BillingChargingMode) Value ¶ added in v0.0.90
func (c BillingChargingMode) Value() string
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
func (BillingCloudType) Value ¶ added in v0.0.90
func (c BillingCloudType) Value() string
type BillingCloudTypeEnum ¶
type BillingCloudTypeEnum struct { PUBLIC BillingCloudType HYBRID BillingCloudType }
func GetBillingCloudTypeEnum ¶
func GetBillingCloudTypeEnum() BillingCloudTypeEnum
type BillingConsistentLevel ¶
type BillingConsistentLevel struct {
// contains filtered or unexported fields
}
func (BillingConsistentLevel) MarshalJSON ¶
func (c BillingConsistentLevel) MarshalJSON() ([]byte, error)
func (*BillingConsistentLevel) UnmarshalJSON ¶
func (c *BillingConsistentLevel) UnmarshalJSON(b []byte) error
func (BillingConsistentLevel) Value ¶ added in v0.0.90
func (c BillingConsistentLevel) Value() string
type BillingConsistentLevelEnum ¶
type BillingConsistentLevelEnum struct { APP_CONSISTENT BillingConsistentLevel CRASH_CONSISTENT BillingConsistentLevel }
func GetBillingConsistentLevelEnum ¶
func GetBillingConsistentLevelEnum() BillingConsistentLevelEnum
type BillingCreate ¶
type BillingCreate struct { // 云平台,公有云或者混合云 CloudType *BillingCreateCloudType `json:"cloud_type,omitempty"` // 规格,崩溃一致性(crash_consistent)或应用一致性(app_consistent) ConsistentLevel BillingCreateConsistentLevel `json:"consistent_level"` // 对象类型:云服务器(server),云硬盘(disk),文件系统(turbo),云桌面(workspace),VMware(vmware),关系型数据库(rds),文件(file)。 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"` // 创建类型,charging_mode为pre_paid必填,按年(year)或者按月(month) PeriodType *BillingCreatePeriodType `json:"period_type,omitempty"` // 创建类型的数量,charging_mode为pre_paid必填 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"` // 存储库多az属性,默认为false IsMultiAz *bool `json:"is_multi_az,omitempty"` // 促销信息,包周期时可选参数 PromotionInfo *string `json:"promotion_info,omitempty"` // 购买模式,包周期时可选参数 PurchaseMode *string `json:"purchase_mode,omitempty"` // 订单 ID,包周期时可选参数 OrderId *string `json:"order_id,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
func (BillingCreateChargingMode) Value ¶ added in v0.0.90
func (c BillingCreateChargingMode) Value() string
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
func (BillingCreateCloudType) Value ¶ added in v0.0.90
func (c BillingCreateCloudType) Value() string
type BillingCreateCloudTypeEnum ¶
type BillingCreateCloudTypeEnum struct { PUBLIC BillingCreateCloudType HYBRID BillingCreateCloudType }
func GetBillingCreateCloudTypeEnum ¶
func GetBillingCreateCloudTypeEnum() BillingCreateCloudTypeEnum
type BillingCreateConsistentLevel ¶
type BillingCreateConsistentLevel struct {
// contains filtered or unexported fields
}
func (BillingCreateConsistentLevel) MarshalJSON ¶
func (c BillingCreateConsistentLevel) MarshalJSON() ([]byte, error)
func (*BillingCreateConsistentLevel) UnmarshalJSON ¶
func (c *BillingCreateConsistentLevel) UnmarshalJSON(b []byte) error
func (BillingCreateConsistentLevel) Value ¶ added in v0.0.90
func (c BillingCreateConsistentLevel) Value() string
type BillingCreateConsistentLevelEnum ¶
type BillingCreateConsistentLevelEnum struct { APP_CONSISTENT BillingCreateConsistentLevel CRASH_CONSISTENT BillingCreateConsistentLevel }
func GetBillingCreateConsistentLevelEnum ¶
func GetBillingCreateConsistentLevelEnum() BillingCreateConsistentLevelEnum
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
func (BillingCreateObjectType) Value ¶ added in v0.0.90
func (c BillingCreateObjectType) Value() string
type BillingCreateObjectTypeEnum ¶
type BillingCreateObjectTypeEnum struct { SERVER BillingCreateObjectType DISK BillingCreateObjectType TURBO BillingCreateObjectType WORKSPACE BillingCreateObjectType VMWARE BillingCreateObjectType RDS BillingCreateObjectType FILE 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
func (BillingCreatePeriodType) Value ¶ added in v0.0.90
func (c BillingCreatePeriodType) Value() string
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
func (BillingCreateProtectType) Value ¶ added in v0.0.90
func (c BillingCreateProtectType) Value() string
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
func (BillingObjectType) Value ¶ added in v0.0.90
func (c BillingObjectType) Value() string
type BillingObjectTypeEnum ¶
type BillingObjectTypeEnum struct { SERVER BillingObjectType DISK BillingObjectType WORKSPACE BillingObjectType VMWARE BillingObjectType RDS BillingObjectType FILE 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
func (BillingProtectType) Value ¶ added in v0.0.90
func (c BillingProtectType) Value() string
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
func (BillingSpecCode) Value ¶ added in v0.0.90
func (c BillingSpecCode) Value() string
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
func (BillingStatus) Value ¶ added in v0.0.90
func (c BillingStatus) Value() string
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
func (BillingUpdateConsistentLevel) Value ¶ added in v0.0.90
func (c BillingUpdateConsistentLevel) Value() string
type BillingUpdateConsistentLevelEnum ¶
type BillingUpdateConsistentLevelEnum struct { APP_CONSISTENT BillingUpdateConsistentLevel CRASH_CONSISTENT BillingUpdateConsistentLevel }
func GetBillingUpdateConsistentLevelEnum ¶
func GetBillingUpdateConsistentLevelEnum() BillingUpdateConsistentLevelEnum
type BindRulesTags ¶ added in v0.1.25
type BindRulesTags struct { // key不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\\\”,“,”,“|”,“/”。 [key只能由中文,字母,数字,“-”,“_”组成。](tag:hws,hws_hk,fcs_vm,ctc) [key只能由字母,数字,“_”,“-”组成。](tag:dt,ocb,tlf,sbc,g42,hcso_dt) Key string `json:"key"` // value不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。 [value只能由中文,字母,数字,“-”,“_”,“.”组成。](tag:hws,hws_hk,fcs_vm,ctc) [value只能由字母,数字,“_”,“-”组成。](tag:dt,ocb,tlf,sbc,g42,hcso_dt) Value string `json:"value"` }
自动绑定规则标签
func (BindRulesTags) String ¶ added in v0.1.25
func (o BindRulesTags) String() string
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 ¶
func (o BulkCreateAndDeleteVaultTagsReq) String() 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
func (BulkCreateAndDeleteVaultTagsReqAction) Value ¶ added in v0.0.90
func (c BulkCreateAndDeleteVaultTagsReqAction) Value() string
type BulkCreateAndDeleteVaultTagsReqActionEnum ¶
type BulkCreateAndDeleteVaultTagsReqActionEnum struct { CREATE BulkCreateAndDeleteVaultTagsReqAction DELETE BulkCreateAndDeleteVaultTagsReqAction }
func GetBulkCreateAndDeleteVaultTagsReqActionEnum ¶
func GetBulkCreateAndDeleteVaultTagsReqActionEnum() BulkCreateAndDeleteVaultTagsReqActionEnum
type CbcOrderResult ¶ added in v0.0.84
type CbcOrderResult struct { // 云服务ID CloudServiceId *string `json:"cloudServiceId,omitempty"` // 订单ID OrderId string `json:"orderId"` // 订购结果,1:成功;0:失败 SubscribeResult int32 `json:"subscribeResult"` // 包周期资源预生成资源id。 ResourceId *string `json:"resourceId,omitempty"` }
func (CbcOrderResult) String ¶ added in v0.0.84
func (o CbcOrderResult) String() string
type CbcProductInfoUpdate ¶ added in v0.1.41
type CbcProductInfoUpdate struct { // 产品标识,通过订购询价接口获得,长度限制:1-64,只能由字母、数字、“_”、“-”组成。。 ProductId string `json:"productId"` // 资源容量大小,取值范围:10-10485760 ResourceSize int32 `json:"resourceSize"` // 资源容量度量标识,枚举值17:GB ResourceSizeMeasureId *int32 `json:"resourceSizeMeasureId,omitempty"` // 用户购买云服务产品的资源规格 Enum: [vault.backup.server.normal,vault.backup.turbo.normal, vault.backup.database.normal,vault.backup.volume.normal,vault.backup.rds.normal,vault.replication.server.normal,vault.hybrid.server.normal] ResourceSpecCode string `json:"resourceSpecCode"` }
func (CbcProductInfoUpdate) String ¶ added in v0.1.41
func (o CbcProductInfoUpdate) String() string
type CbcUpdate ¶ added in v0.1.41
type CbcUpdate struct { // 云服务ConsoleURL。订单支付完成后,客户可以通过此URL跳转到云服务Console页面查看信息 CloudServiceConsoleURL *string `json:"cloudServiceConsoleURL,omitempty"` ProductInfo *CbcProductInfoUpdate `json:"productInfo"` // 待变更的资源ID ResourceId string `json:"resourceId"` // 购买折扣 PromotionInfo *string `json:"promotion_info,omitempty"` }
type CheckAgentRequest ¶ added in v0.1.41
type CheckAgentRequest struct {
Body *ProtectableAgentReq `json:"body,omitempty"`
}
Request Object
func (CheckAgentRequest) String ¶ added in v0.1.41
func (o CheckAgentRequest) String() string
type CheckAgentResponse ¶ added in v0.1.41
type CheckAgentResponse struct { // 状态列表 AgentStatus *[]ProtectableAgentStatus `json:"agent_status,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CheckAgentResponse) String ¶ added in v0.1.41
func (o CheckAgentResponse) String() string
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"` // 状态:available,deleting,protecting,deleted,error-deleting,error 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 ¶
func (o CheckpointCreateSkippedResource) String() 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
func (CheckpointCreateStatus) Value ¶ added in v0.0.90
func (c CheckpointCreateStatus) Value() string
type CheckpointCreateStatusEnum ¶
type CheckpointCreateStatusEnum struct { AVAILABLE CheckpointCreateStatus DELETING CheckpointCreateStatus PROTECTING CheckpointCreateStatus DELETED CheckpointCreateStatus ERROR_DELETING 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"` // 自动备份时的策略id PolicyId *string `json:"policy_id,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 ¶
func (o CheckpointReplicateRespBody) String() string
type CheckpointReplicateRespbackups ¶
type CheckpointReplicateRespbackups struct { // 待复制的备份ID BackupId string `json:"backup_id"` // 复制记录ID ReplicationRecordId string `json:"replication_record_id"` }
func (CheckpointReplicateRespbackups) String ¶
func (o CheckpointReplicateRespbackups) String() string
type CheckpointResourceResp ¶
type CheckpointResourceResp struct { // 资源附加信息 ExtraInfo *string `json:"extra_info,omitempty"` // 待备份资源id Id string `json:"id"` // 待备份资源名称 Name string `json:"name"` // 保护状态。available(可用),error(错误),protecting(备份中),restoring(恢复中),removing(删除中)。 ProtectStatus *CheckpointResourceRespProtectStatus `json:"protect_status,omitempty"` // 资源已分配容量,单位为GB ResourceSize *string `json:"resource_size,omitempty"` // 待备份资源的类型: OS::Nova::Server, OS::Cinder::Volume, OS::Ironic::BareMetalServer, OS::Native::Server, OS::Sfs::Turbo, OS::Workspace::DesktopV2 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
func (CheckpointResourceRespProtectStatus) Value ¶ added in v0.0.90
func (c CheckpointResourceRespProtectStatus) Value() string
type CheckpointResourceRespProtectStatusEnum ¶
type CheckpointResourceRespProtectStatusEnum struct { AVAILABLE CheckpointResourceRespProtectStatus ERROR CheckpointResourceRespProtectStatus PROTECTING CheckpointResourceRespProtectStatus RESTORING CheckpointResourceRespProtectStatus REMOVING CheckpointResourceRespProtectStatus }
func GetCheckpointResourceRespProtectStatusEnum ¶
func GetCheckpointResourceRespProtectStatusEnum() CheckpointResourceRespProtectStatusEnum
type CombinedOrder ¶ added in v0.1.41
type CombinedOrder struct { // 组合订单 ID CombinedOrderId *string `json:"combined_order_id,omitempty"` // 组合订单中 ECS 服务器数量,当前批量最大为 500。 最小值:1 最大值:1000 CombinedOrderEcsNum *int32 `json:"combined_order_ecs_num,omitempty"` // 组合订单数量。 最小值:1 最大值:1000 CombinedOrderNum *int32 `json:"combined_order_num,omitempty"` }
组合订单
func (CombinedOrder) String ¶ added in v0.1.41
func (o CombinedOrder) String() string
type CopyBackupRequest ¶
type CopyBackupRequest struct { // 复制的备份ID 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 CreatePostPaidVaultRequest ¶ added in v0.1.41
type CreatePostPaidVaultRequest struct {
Body *VaultOrderCreateReqs `json:"body,omitempty"`
}
Request Object
func (CreatePostPaidVaultRequest) String ¶ added in v0.1.41
func (o CreatePostPaidVaultRequest) String() string
type CreatePostPaidVaultResponse ¶ added in v0.1.41
type CreatePostPaidVaultResponse struct { // 订单详情 Orders *[]CbcOrderResult `json:"orders,omitempty"` // 创建结果代码 0:成功 RetCode *int32 `json:"retCode,omitempty"` // 创建结果信息 ErrText *string `json:"errText,omitempty"` // 操作错误码 0:无错误 ErrorCode *string `json:"error_code,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CreatePostPaidVaultResponse) String ¶ added in v0.1.41
func (o CreatePostPaidVaultResponse) 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 *VaultCreateResource `json:"vault,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CreateVaultResponse) String ¶
func (o CreateVaultResponse) String() string
type CreateVaultTagsRequest ¶
type CreateVaultTagsRequest struct { // 资源id 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 { // 指定删除的备份ID 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 { // 备份副本id BackupId string `json:"backup_id"` // 成员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 { // 策略ID 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 { // 存储库ID 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前后的空格后检查,去掉key前后的空格后使用。 即使底层存在非法的tag也要能删。 Key string `json:"key"` // 资源id 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 { // 存储库ID VaultId string `json:"vault_id"` Body *VaultDissociate `json:"body,omitempty"` }
Request Object
func (DisassociateVaultPolicyRequest) String ¶
func (o DisassociateVaultPolicyRequest) String() string
type DisassociateVaultPolicyResponse ¶
type DisassociateVaultPolicyResponse struct { DissociatePolicy *VaultPolicyResp `json:"dissociate_policy,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (DisassociateVaultPolicyResponse) String ¶
func (o DisassociateVaultPolicyResponse) String() string
type DomainMigrate ¶ added in v0.1.41
type DomainMigrate struct { // 是否触发其他区域迁移 AllRegions bool `json:"all_regions"` // 存储库默认扩容比,取值范围0到1 Reservation float32 `json:"reservation"` }
func (DomainMigrate) String ¶ added in v0.1.41
func (o DomainMigrate) String() string
type DomainMigrateProjectStatus ¶ added in v0.1.41
type DomainMigrateProjectStatus struct { // 迁移状态 Status DomainMigrateProjectStatusStatus `json:"status"` // 项目ID ProjectId string `json:"project_id"` // 项目名称 ProjectName string `json:"project_name"` // 区域ID RegionId *string `json:"region_id,omitempty"` // 迁移进度 Progress *int32 `json:"progress,omitempty"` // 失败错误码(仅当项目状态为失败时才有该参数)。 FailCode *int32 `json:"fail_code,omitempty"` // 失败原因(仅当项目状态为失败时才有该参数)。 FailReason *string `json:"fail_reason,omitempty"` }
func (DomainMigrateProjectStatus) String ¶ added in v0.1.41
func (o DomainMigrateProjectStatus) String() string
type DomainMigrateProjectStatusStatus ¶ added in v0.1.41
type DomainMigrateProjectStatusStatus struct {
// contains filtered or unexported fields
}
func (DomainMigrateProjectStatusStatus) MarshalJSON ¶ added in v0.1.41
func (c DomainMigrateProjectStatusStatus) MarshalJSON() ([]byte, error)
func (*DomainMigrateProjectStatusStatus) UnmarshalJSON ¶ added in v0.1.41
func (c *DomainMigrateProjectStatusStatus) UnmarshalJSON(b []byte) error
func (DomainMigrateProjectStatusStatus) Value ¶ added in v0.1.41
func (c DomainMigrateProjectStatusStatus) Value() string
type DomainMigrateProjectStatusStatusEnum ¶ added in v0.1.41
type DomainMigrateProjectStatusStatusEnum struct { MIGRATING DomainMigrateProjectStatusStatus SUCCESS DomainMigrateProjectStatusStatus FAILED DomainMigrateProjectStatusStatus }
func GetDomainMigrateProjectStatusStatusEnum ¶ added in v0.1.41
func GetDomainMigrateProjectStatusStatusEnum() DomainMigrateProjectStatusStatusEnum
type DomainProjectsInfo ¶ added in v0.1.41
type DomainProjectsInfo struct { // ProjectId string `json:"project_id"` // ProjectName string `json:"project_name"` }
func (DomainProjectsInfo) String ¶ added in v0.1.41
func (o DomainProjectsInfo) 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 ImportCheckpointRequest ¶ added in v0.1.41
type ImportCheckpointRequest struct {
Body *SyncReq `json:"body,omitempty"`
}
Request Object
func (ImportCheckpointRequest) String ¶ added in v0.1.41
func (o ImportCheckpointRequest) String() string
type ImportCheckpointResponse ¶ added in v0.1.41
type ImportCheckpointResponse struct { Sync *SyncRespBody `json:"sync,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ImportCheckpointResponse) String ¶ added in v0.1.41
func (o ImportCheckpointResponse) String() string
type InstancesResourceDetail ¶ added in v0.1.39
type InstancesResourceDetail struct {
Vault *Vault `json:"vault,omitempty"`
}
func (InstancesResourceDetail) String ¶ added in v0.1.39
func (o InstancesResourceDetail) String() string
type ListAgentRequest ¶ added in v0.1.40
type ListAgentRequest struct { // 每页显示条目数,正整数 Limit *string `json:"limit,omitempty"` // 偏移值,正整数 Offset *int32 `json:"offset,omitempty"` // 状态 Status *string `json:"status,omitempty"` // 客户端ID AgentId *string `json:"agent_id,omitempty"` }
Request Object
func (ListAgentRequest) String ¶ added in v0.1.40
func (o ListAgentRequest) String() string
type ListAgentResponse ¶ added in v0.1.40
type ListAgentResponse struct { // 客户端实例列表 Agents *[]Agent `json:"agents,omitempty"` // 客户端个数 Count *int32 `json:"count,omitempty"` // 每页显示的条目数量 Limit *int32 `json:"limit,omitempty"` // 偏移量,表示从此偏移量开始查询 Offset *int32 `json:"offset,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListAgentResponse) String ¶ added in v0.1.40
func (o ListAgentResponse) String() string
type ListBackupsRequest ¶
type ListBackupsRequest struct { // 还原点ID CheckpointId *string `json:"checkpoint_id,omitempty"` // 专属云 (专属云场景使用,非专属云场景不生效) Dec *bool `json:"dec,omitempty"` // 备份产生时间范围的结束时间,格式为%YYYY-%mm-%ddT%HH:%MM:%SSZ,例如2018-02-01T12:00:00Z EndTime *string `json:"end_time,omitempty"` // 备份类型 ImageType *ListBackupsRequestImageType `json:"image_type,omitempty"` // 每页显示的条目数量,正整数 Limit *int32 `json:"limit,omitempty"` // 上一次查询最后一条的id Marker *string `json:"marker,omitempty"` // 名称 Name *string `json:"name,omitempty"` // 偏移值,正整数 Offset *int32 `json:"offset,omitempty"` // 支持按az来过滤 ResourceAz *string `json:"resource_az,omitempty"` // 资源ID ResourceId *string `json:"resource_id,omitempty"` // 资源名称 ResourceName *string `json:"resource_name,omitempty"` // 资源类型: 云服务器: OS::Nova::Server, 云硬盘: OS::Cinder::Volume, 云桌面:OS::Workspace::DesktopV2 ResourceType *ListBackupsRequestResourceType `json:"resource_type,omitempty"` // sort的内容为一组由逗号分隔的属性及可选排序方向组成,形如<key1>[:<direction>],<key2>[:<direction>],其中direction的取值为asc (升序) 或 desc (降序),如没有传入direction参数,默认为降序,sort内容的长度限制为255个字符。key取值范围:[created_at,updated_at,name,status,protected_at,id] Sort *string `json:"sort,omitempty"` // 备份产生时间范围的开始时间,格式为%YYYY-%mm-%ddT%HH:%MM:%SSZ,例如2018-02-01T12:00:00Z StartTime *string `json:"start_time,omitempty"` // 状态。 调用API时,支持通过传多个status值进行过滤。例如:status=available&status=error Status *ListBackupsRequestStatus `json:"status,omitempty"` // 存储库ID VaultId *string `json:"vault_id,omitempty"` // 企业项目id或all_granted_eps,all_granted_eps表示查询用户有权限的所有企业项目id EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` // 持有类型,私有的private/共享的shared/全部all_granted,默认只查询private。 OwnType *ListBackupsRequestOwnType `json:"own_type,omitempty"` // 共享状态 MemberStatus *ListBackupsRequestMemberStatus `json:"member_status,omitempty"` // 父备份ID ParentId *string `json:"parent_id,omitempty"` // 根据存储库使用率过滤备份,取值范围 [1, 100],含1和100。例如,used_percent=80,表示筛选所属存储库使用率大于等于80%的所有备份。 UsedPercent *string `json:"used_percent,omitempty"` // 是否返回复制记录 ShowReplication *bool `json:"show_replication,omitempty"` // 是否是增备 Incremental *bool `json:"incremental,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
func (ListBackupsRequestImageType) Value ¶ added in v0.0.90
func (c ListBackupsRequestImageType) Value() string
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
func (ListBackupsRequestMemberStatus) Value ¶ added in v0.0.90
func (c ListBackupsRequestMemberStatus) Value() string
type ListBackupsRequestMemberStatusEnum ¶
type ListBackupsRequestMemberStatusEnum struct { PENDING ListBackupsRequestMemberStatus ACCEPTED ListBackupsRequestMemberStatus REJECTED 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
func (ListBackupsRequestOwnType) Value ¶ added in v0.0.90
func (c ListBackupsRequestOwnType) Value() string
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
func (ListBackupsRequestResourceType) Value ¶ added in v0.0.90
func (c ListBackupsRequestResourceType) Value() string
type ListBackupsRequestResourceTypeEnum ¶
type ListBackupsRequestResourceTypeEnum struct { OSCINDERVOLUME ListBackupsRequestResourceType OSNOVASERVER ListBackupsRequestResourceType OSWORKSPACEDESKTOP_V2 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
func (ListBackupsRequestStatus) Value ¶ added in v0.0.90
func (c ListBackupsRequestStatus) Value() string
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"` // 偏移量,表示从此偏移量开始查询 Offset *int32 `json:"offset,omitempty"` // 每页显示的条目数量 Limit *int32 `json:"limit,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListBackupsResponse) String ¶
func (o ListBackupsResponse) String() string
type ListDomainProjectsRequest ¶ added in v0.1.41
type ListDomainProjectsRequest struct { // 租户名称 DomainName string `json:"domain_name"` }
Request Object
func (ListDomainProjectsRequest) String ¶ added in v0.1.41
func (o ListDomainProjectsRequest) String() string
type ListDomainProjectsResponse ¶ added in v0.1.41
type ListDomainProjectsResponse struct { // 项目列表 Projects *[]DomainProjectsInfo `json:"projects,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListDomainProjectsResponse) String ¶ added in v0.1.41
func (o ListDomainProjectsResponse) String() string
type ListExternalVaultRequest ¶ added in v0.1.41
type ListExternalVaultRequest struct { // 其他区域的项目ID ExternalProjectId string `json:"external_project_id"` // 每页显示条目数 Limit *int32 `json:"limit,omitempty"` // 偏移值 Offset *int32 `json:"offset,omitempty"` // [保护类型。取值为backup,replication和hybrid。](tag:hws,hws_hk) [保护类型。取值为backup和replication。](tag:ocb) [保护类型。取值为backup。](tag:g42,hk-g42,sbc,dt,fcs_vm,ctc,tm,tlf,cmcc,hcso_dt) ProtectType *ListExternalVaultRequestProtectType `json:"protect_type,omitempty"` // 区域ID RegionId string `json:"region_id"` // 资源类型 ObjcetType *string `json:"objcet_type,omitempty"` // [云类型。取值为public和hybrid。](tag:hws,hws_hk) [云类型。取值为public。](tag:g42,hk-g42,sbc,dt,fcs_vm,ctc,ocb,tm,tlf,cmcc,hcso_dt) CloudType *string `json:"cloud_type,omitempty"` // 存储库ID,指定存储ID时其他过滤条件不生效。 VaultId *string `json:"vault_id,omitempty"` }
Request Object
func (ListExternalVaultRequest) String ¶ added in v0.1.41
func (o ListExternalVaultRequest) String() string
type ListExternalVaultRequestProtectType ¶ added in v0.1.41
type ListExternalVaultRequestProtectType struct {
// contains filtered or unexported fields
}
func (ListExternalVaultRequestProtectType) MarshalJSON ¶ added in v0.1.41
func (c ListExternalVaultRequestProtectType) MarshalJSON() ([]byte, error)
func (*ListExternalVaultRequestProtectType) UnmarshalJSON ¶ added in v0.1.41
func (c *ListExternalVaultRequestProtectType) UnmarshalJSON(b []byte) error
func (ListExternalVaultRequestProtectType) Value ¶ added in v0.1.41
func (c ListExternalVaultRequestProtectType) Value() string
type ListExternalVaultRequestProtectTypeEnum ¶ added in v0.1.41
type ListExternalVaultRequestProtectTypeEnum struct {
BACKUPREPLICATIONHYBRID ListExternalVaultRequestProtectType
}
func GetListExternalVaultRequestProtectTypeEnum ¶ added in v0.1.41
func GetListExternalVaultRequestProtectTypeEnum() ListExternalVaultRequestProtectTypeEnum
type ListExternalVaultResponse ¶ added in v0.1.41
type ListExternalVaultResponse struct { // 存储库实例列表 Vaults *[]Vault `json:"vaults,omitempty"` // 存储库个数 Count *int32 `json:"count,omitempty"` // 每页显示的条目数量 Limit *int32 `json:"limit,omitempty"` // 偏移量,表示从此偏移量开始查询 Offset *int32 `json:"offset,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListExternalVaultResponse) String ¶ added in v0.1.41
func (o ListExternalVaultResponse) String() string
type ListOpLogsRequest ¶
type ListOpLogsRequest struct { // 任务结束时间,格式为%YYYY-%mm-%ddT%HH:%MM:%SSZ,例如2018-02-01T12:00:00Z EndTime *string `json:"end_time,omitempty"` // 每页显示的条目数量,正整数 Limit *int32 `json:"limit,omitempty"` // 偏移值,正整数 Offset *int32 `json:"offset,omitempty"` // 任务类型 OperationType *ListOpLogsRequestOperationType `json:"operation_type,omitempty"` // 备份提供商ID ProviderId *string `json:"provider_id,omitempty"` // 该任务操作的资源ID ResourceId *string `json:"resource_id,omitempty"` // 该任务操作的资源名称 ResourceName *string `json:"resource_name,omitempty"` // 任务开始时间,格式为%YYYY-%mm-%ddT%HH:%MM:%SSZ,例如2018-01-01T12:00:00Z StartTime *string `json:"start_time,omitempty"` // 任务状态 Status *ListOpLogsRequestStatus `json:"status,omitempty"` // 存储库ID,该任务操作的资源所属绑定的存储库。 VaultId *string `json:"vault_id,omitempty"` // 存储库名称,该任务操作资源所绑定的存储库名称。 VaultName *string `json:"vault_name,omitempty"` // 企业项目id或all_granted_eps,all_granted_eps表示查询用户有权限的所有企业项目id 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
func (ListOpLogsRequestOperationType) Value ¶ added in v0.0.90
func (c ListOpLogsRequestOperationType) Value() string
type ListOpLogsRequestOperationTypeEnum ¶
type ListOpLogsRequestOperationTypeEnum struct { BACKUP ListOpLogsRequestOperationType COPY ListOpLogsRequestOperationType REPLICATION ListOpLogsRequestOperationType DELETE ListOpLogsRequestOperationType RESTORE ListOpLogsRequestOperationType VAULT_DELETE ListOpLogsRequestOperationType REMOVE_RESOURCE ListOpLogsRequestOperationType SYNC ListOpLogsRequestOperationType }
func GetListOpLogsRequestOperationTypeEnum ¶
func GetListOpLogsRequestOperationTypeEnum() ListOpLogsRequestOperationTypeEnum
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
func (ListOpLogsRequestStatus) Value ¶ added in v0.0.90
func (c ListOpLogsRequestStatus) Value() string
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"` // 每页显示的条目数量 Limit *int32 `json:"limit,omitempty"` // 偏移量,表示从此偏移量开始查询 Offset *int32 `json:"offset,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListOpLogsResponse) String ¶
func (o ListOpLogsResponse) String() string
type ListPoliciesRequest ¶
type ListPoliciesRequest struct { // 策略类型:备份(backup)、复制(replication) OperationType *ListPoliciesRequestOperationType `json:"operation_type,omitempty"` // 存储库ID 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
func (ListPoliciesRequestOperationType) Value ¶ added in v0.0.90
func (c ListPoliciesRequestOperationType) Value() string
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 ListProjectsRequest ¶ added in v0.1.41
type ListProjectsRequest struct { }
Request Object
func (ListProjectsRequest) String ¶ added in v0.1.41
func (o ListProjectsRequest) String() string
type ListProjectsResponse ¶ added in v0.1.41
type ListProjectsResponse struct { // 项目信息 Projects *[]ProjectsListInfo `json:"projects,omitempty"` Links *SelfLinksInfo `json:"links,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListProjectsResponse) String ¶ added in v0.1.41
func (o ListProjectsResponse) String() string
type ListProtectableRequest ¶
type ListProtectableRequest struct { // 每页显示的条目数量,每页最多支持50条 Limit *int32 `json:"limit,omitempty"` // 上一次查询最后一条的ID Marker *string `json:"marker,omitempty"` // 按名称过滤 Name *string `json:"name,omitempty"` // 偏移值 Offset *int32 `json:"offset,omitempty"` // 对象类型 ProtectableType ListProtectableRequestProtectableType `json:"protectable_type"` // 资源的状态,如available,error 等 Status *string `json:"status,omitempty"` // 根据资源id过滤 Id *string `json:"id,omitempty"` // 根据该id过滤属于该服务器的所有磁盘,支持企业多项目的用户才能传入此参数 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
func (ListProtectableRequestProtectableType) Value ¶ added in v0.0.90
func (c ListProtectableRequestProtectableType) Value() string
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"` // 对象类型:云服务器(server),云硬盘(disk),文件系统(turbo),云桌面(workspace),VMware(vmware),关系型数据库(rds),文件(file)。 ObjectType *string `json:"object_type,omitempty"` // 企业项目id或all_granted_eps,all_granted_eps表示查询用户有权限的所有企业项目id EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` // 存储库ID Id *string `json:"id,omitempty"` // 策略ID PolicyId *string `json:"policy_id,omitempty"` // 状态 Status *string `json:"status,omitempty"` // 资源id 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
func (ListVaultRequestCloudType) Value ¶ added in v0.0.90
func (c ListVaultRequestCloudType) Value() string
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
func (ListVaultRequestProtectType) Value ¶ added in v0.0.90
func (c ListVaultRequestProtectType) Value() string
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"` // 每页显示的条目数量 Limit *int32 `json:"limit,omitempty"` // 偏移量,表示从此偏移量开始查询 Offset *int32 `json:"offset,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListVaultResponse) String ¶
func (o ListVaultResponse) String() string
type Match ¶
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"` }
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
func (MemberStatus) Value ¶ added in v0.0.90
func (c MemberStatus) Value() string
type MemberStatusEnum ¶
type MemberStatusEnum struct { PENDING MemberStatus ACCEPTED MemberStatus REJECTED MemberStatus }
func GetMemberStatusEnum ¶
func GetMemberStatusEnum() MemberStatusEnum
type MigrateDomainRequest ¶ added in v0.1.41
type MigrateDomainRequest struct {
Body *DomainMigrate `json:"body,omitempty"`
}
Request Object
func (MigrateDomainRequest) String ¶ added in v0.1.41
func (o MigrateDomainRequest) String() string
type MigrateDomainResponse ¶ added in v0.1.41
type MigrateDomainResponse struct { Body map[string]string `json:"body,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (MigrateDomainResponse) String ¶ added in v0.1.41
func (o MigrateDomainResponse) String() string
type MigrateVaultResourceRequest ¶
type MigrateVaultResourceRequest struct { VaultId string `json:"vault_id"` Body *VaultMigrateResourceReq `json:"body,omitempty"` }
Request Object
func (MigrateVaultResourceRequest) String ¶
func (o MigrateVaultResourceRequest) String() string
type MigrateVaultResourceResponse ¶
type MigrateVaultResourceResponse struct { // MigratedResources *[]string `json:"migrated_resources,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (MigrateVaultResourceResponse) String ¶
func (o MigrateVaultResourceResponse) String() 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
func (OpExtendInfoBckupAppConsistencyStatus) Value ¶ added in v0.0.90
func (c OpExtendInfoBckupAppConsistencyStatus) Value() string
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
func (OpExtendInfoBckupIncremental) Value ¶ added in v0.0.90
func (c OpExtendInfoBckupIncremental) Value() string
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 { // 删除失败的资源数量 FailCount *int32 `json:"fail_count,omitempty"` // 删除的备份数量 TotalCount *int32 `json:"total_count,omitempty"` // Resources *[]Resource `json:"resources,omitempty"` }
func (OpExtendInfoRemoveResources) String ¶
func (o OpExtendInfoRemoveResources) String() 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 { // 本次任务删除失败的资源数量 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
func (OperationLogOperationType) Value ¶ added in v0.0.90
func (c OperationLogOperationType) Value() string
type OperationLogOperationTypeEnum ¶
type OperationLogOperationTypeEnum struct { BACKUP OperationLogOperationType COPY OperationLogOperationType REPLICATION OperationLogOperationType RESTORE OperationLogOperationType DELETE OperationLogOperationType SYNC OperationLogOperationType VAULT_DELETE OperationLogOperationType REMOVE_RESOURCE OperationLogOperationType }
func GetOperationLogOperationTypeEnum ¶
func GetOperationLogOperationTypeEnum() OperationLogOperationTypeEnum
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
func (OperationLogStatus) Value ¶ added in v0.0.90
func (c OperationLogStatus) Value() string
type OperationLogStatusEnum ¶
type OperationLogStatusEnum struct { SUCCESS OperationLogStatus SKIPPED OperationLogStatus FAILED OperationLogStatus RUNNING OperationLogStatus TIMEOUT OperationLogStatus WAITING OperationLogStatus }
func GetOperationLogStatusEnum ¶
func GetOperationLogStatusEnum() OperationLogStatusEnum
type Path ¶ added in v0.1.40
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"` }
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
func (PolicyCreateOperationType) Value ¶ added in v0.0.90
func (c PolicyCreateOperationType) Value() string
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
func (PolicyOperationType) Value ¶ added in v0.0.90
func (c PolicyOperationType) Value() string
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和DAILY,BYDAY支持一周七天(MO、TU、WE、TH、FR、SA、SU),BYHOUR支持0-23小时,BYMINUTE支持0-59分钟,并且间隔不能小于一小时,一天最大24个时间点。例如,周一到周天,每天UTC时间的14:00调度,其规则为:'FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR,SA,SU;BYHOUR=14;BYMINUTE=00'。例如:某个地区的时间为 UTC+8,若在该地区每天14:00调度,则在14点基础上减8,其规则为'FREQ=DAILY;INTERVAL=1;BYHOUR=6;BYMINUTE=00'。 Pattern []string `json:"pattern"` }
func (PolicyTriggerPropertiesReq) String ¶
func (o PolicyTriggerPropertiesReq) String() string
type PolicyTriggerPropertiesResp ¶
type PolicyTriggerPropertiesResp struct { // 调度规则。限制24条规则。调度器的调度规则,可参照iCalendar RFC 2445规范中的事件规则,但仅支持FREQ、BYDAY、BYHOUR、BYMINUTE、INTERVAL等参数,其中FREQ仅支持WEEKLY和DAILY,BYDAY支持一周七天(MO、TU、WE、TH、FR、SA、SU),BYHOUR支持0-23小时,BYMINUTE支持0-59分钟,并且间隔不能小于一小时,一天最大24个时间点。例如,周一到周天,每天UTC时间的14:00调度,其规则为:'FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR,SA,SU;BYHOUR=14;BYMINUTE=00'。例如:某个地区的时间为 UTC+8,若在该地区每天14:00调度,则在14点基础上减8,其规则为'FREQ=DAILY;INTERVAL=1;BYHOUR=6;BYMINUTE=00'。 Pattern []string `json:"pattern"` // 调度器开始时间,例如:\"2020-01-08 09:59:49\" StartTime *string `json:"start_time,omitempty"` }
func (PolicyTriggerPropertiesResp) String ¶
func (o PolicyTriggerPropertiesResp) String() 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
func (PolicyTriggerRespType) Value ¶ added in v0.0.90
func (c PolicyTriggerRespType) Value() string
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"` // 每间隔多少次执行一次全量备份,当取值为 -1 时,不执行全量备份。 最小值:-1 最大值:100 FullBackupInterval *int32 `json:"full_backup_interval,omitempty"` }
func (PolicyoOdCreate) String ¶
func (o PolicyoOdCreate) String() string
type ProjectsListInfo ¶ added in v0.1.41
type ProjectsListInfo struct { // 域 ID DomainId *string `json:"domain_id,omitempty"` // 是否是域级 IsDomain *bool `json:"is_domain,omitempty"` // 父项目 ID ParentId *string `json:"parent_id,omitempty"` // 名称 Name *string `json:"name,omitempty"` // 描述信息 Description *string `json:"description,omitempty"` // 项目ID Id *string `json:"id,omitempty"` // 是否开启 Enabled *bool `json:"enabled,omitempty"` Links *SelfLinksInfo `json:"links,omitempty"` }
项目信息
func (ProjectsListInfo) String ¶ added in v0.1.41
func (o ProjectsListInfo) String() string
type ProtectableAgentReq ¶ added in v0.1.41
type ProtectableAgentReq struct { // 查询参数列表 AgentStatus []ProtectableAgentStatusResource `json:"agent_status"` }
func (ProtectableAgentReq) String ¶ added in v0.1.41
func (o ProtectableAgentReq) String() string
type ProtectableAgentStatus ¶ added in v0.1.41
type ProtectableAgentStatus struct { // agent无法连接的错误码 Code *int32 `json:"code,omitempty"` // agent是否安装 Installed *bool `json:"installed,omitempty"` // agent是否为老版本 IsOld *bool `json:"is_old,omitempty"` // agent无法连接的错误信息 Message *string `json:"message,omitempty"` // 资源ID ResourceId *string `json:"resource_id,omitempty"` // agent版本号 Version *string `json:"version,omitempty"` }
func (ProtectableAgentStatus) String ¶ added in v0.1.41
func (o ProtectableAgentStatus) String() string
type ProtectableAgentStatusResource ¶ added in v0.1.41
type ProtectableAgentStatusResource struct { // 待检查资源ID ResourceId string `json:"resource_id"` // 待检查资源name ResourceName *string `json:"resource_name,omitempty"` // 待检查的资源类型。当前支持的取值包含两个:OS::Nova::Server,该值代表保护的资源为云服务器,OS::Ironic::BareMetalServer,该值代表保护的资源为裸金属服务器。 ResourceType string `json:"resource_type"` }
func (ProtectableAgentStatusResource) String ¶ added in v0.1.41
func (o ProtectableAgentStatusResource) String() string
type ProtectableReplicationCapabilitiesRespRegion ¶
type ProtectableReplicationCapabilitiesRespRegion struct { // 云服务所在的区域 Name string `json:"name"` // 支持复制的目标区域列表 ReplicationDestinations []string `json:"replication_destinations"` }
func (ProtectableReplicationCapabilitiesRespRegion) String ¶
func (o ProtectableReplicationCapabilitiesRespRegion) String() string
type ProtectableResult ¶
type ProtectableResult struct { // 不支持备份的错误码 Code *string `json:"code,omitempty"` // 不支持备份的原因 Reason *string `json:"reason,omitempty"` // 是否可备份 Result bool `json:"result"` Vault *VaultGet `json:"vault,omitempty"` // 资源不可备份的原因信息,当资源可保护性检验失败时才有该字段。 Message *string `json:"message,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 *int32 `json:"size,omitempty"` // 资源状态 Status *ProtectablesRespStatus `json:"status,omitempty"` // 待备份资源的类型, 云服务器: OS::Nova::Server, 云硬盘: OS::Cinder::Volume, 裸金属服务器: OS::Ironic::BareMetalServer, 线下本地服务器: OS::Native::Server, 弹性文件系统: OS::Sfs::Turbo, 云桌面:OS::Workspace::DesktopV2 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
func (ProtectablesRespStatus) Value ¶ added in v0.0.90
func (c ProtectablesRespStatus) Value() string
type ProtectablesRespStatusEnum ¶
type ProtectablesRespStatusEnum struct { ACTIVE ProtectablesRespStatus DELETED ProtectablesRespStatus ERROR ProtectablesRespStatus }
func GetProtectablesRespStatusEnum ¶
func GetProtectablesRespStatusEnum() ProtectablesRespStatusEnum
type RegisterAgentRequest ¶ added in v0.1.40
type RegisterAgentRequest struct {
Body *AgentRegisterReq `json:"body,omitempty"`
}
Request Object
func (RegisterAgentRequest) String ¶ added in v0.1.40
func (o RegisterAgentRequest) String() string
type RegisterAgentResponse ¶ added in v0.1.40
type RegisterAgentResponse struct { Agent *Agent `json:"agent,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RegisterAgentResponse) String ¶ added in v0.1.40
func (o RegisterAgentResponse) String() string
type RemoveAgentPathRequest ¶ added in v0.1.40
type RemoveAgentPathRequest struct { // 客户端ID AgentId string `json:"agent_id"` Body *AgentRemovePathReq `json:"body,omitempty"` }
Request Object
func (RemoveAgentPathRequest) String ¶ added in v0.1.40
func (o RemoveAgentPathRequest) String() string
type RemoveAgentPathResponse ¶ added in v0.1.40
type RemoveAgentPathResponse struct { // 移除的路径列表 Removed *[]string `json:"removed,omitempty"` // 不存在的路径 NotExisted *[]string `json:"not_existed,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RemoveAgentPathResponse) String ¶ added in v0.1.40
func (o RemoveAgentPathResponse) String() string
type RemoveVaultResourceRequest ¶
type RemoveVaultResourceRequest struct { // 存储库ID VaultId string `json:"vault_id"` Body *VaultRemoveResourceReq `json:"body,omitempty"` }
Request Object
func (RemoveVaultResourceRequest) String ¶
func (o RemoveVaultResourceRequest) String() string
type RemoveVaultResourceResponse ¶
type RemoveVaultResourceResponse struct { // 移除的资源ID RemoveResourceIds *[]string `json:"remove_resource_ids,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RemoveVaultResourceResponse) String ¶
func (o RemoveVaultResourceResponse) String() 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 *ReplicationRecordsExtraInfo `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
func (ReplicationRecordGetStatus) Value ¶ added in v0.0.90
func (c ReplicationRecordGetStatus) Value() string
type ReplicationRecordGetStatusEnum ¶
type ReplicationRecordGetStatusEnum struct { REPLICATING ReplicationRecordGetStatus SUCCESS ReplicationRecordGetStatus FAIL ReplicationRecordGetStatus SKIP ReplicationRecordGetStatus WAITING_REPLICATE ReplicationRecordGetStatus }
func GetReplicationRecordGetStatusEnum ¶
func GetReplicationRecordGetStatusEnum() ReplicationRecordGetStatusEnum
type ReplicationRecordsExtraInfo ¶ added in v0.0.84
type ReplicationRecordsExtraInfo struct { // 复制进度 Progress *int32 `json:"progress,omitempty"` // 失败错误码,成功时为空 FailCode *string `json:"fail_code,omitempty"` // 错误原因 FailReason *string `json:"fail_reason,omitempty"` // 是否为自动调度复制 AutoTrigger *bool `json:"auto_trigger,omitempty"` // 目标端的存储库id DestinatioVaultId *string `json:"destinatio_vault_id,omitempty"` }
复制记录额外信息
func (ReplicationRecordsExtraInfo) String ¶ added in v0.0.84
func (o ReplicationRecordsExtraInfo) String() string
type Resource ¶
type Resource struct { ExtraInfo *ResourceExtraInfo `json:"extra_info,omitempty"` // 待备份资源id Id string `json:"id"` // 待备份资源名称,长度限制:0-255 Name *string `json:"name,omitempty"` // 待备份资源的类型, 云服务器: OS::Nova::Server, 云硬盘: OS::Cinder::Volume, 裸金属服务器: OS::Ironic::BareMetalServer, 线下本地服务器: OS::Native::Server, 弹性文件系统: OS::Sfs::Turbo, 云桌面:OS::Workspace::DesktopV2 Type string `json:"type"` }
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, 云桌面:OS::Workspace::DesktopV2 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 ¶
func (o ResourceExtraInfoIncludeVolumes) String() 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, 云桌面:OS::Workspace::DesktopV2 Type string `json:"type"` // 副本大小 BackupSize *int32 `json:"backup_size,omitempty"` // 副本数量 BackupCount *int32 `json:"backup_count,omitempty"` // 是否跟随存储库自动备份策略进行备份 AutoProtect *bool `json:"auto_protect,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
func (ResourceRespProtectStatus) Value ¶ added in v0.0.90
func (c ResourceRespProtectStatus) Value() string
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 { // 备份id 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 SelfLinksInfo ¶ added in v0.1.41
type SelfLinksInfo struct { // 连接地址 Self *string `json:"self,omitempty"` }
连接信息
func (SelfLinksInfo) String ¶ added in v0.1.41
func (o SelfLinksInfo) String() string
type SetVaultResourceRequest ¶ added in v0.1.41
type SetVaultResourceRequest struct { // 存储库id VaultId string `json:"vault_id"` Body *VaultSetResourceReq `json:"body,omitempty"` }
Request Object
func (SetVaultResourceRequest) String ¶ added in v0.1.41
func (o SetVaultResourceRequest) String() string
type SetVaultResourceResponse ¶ added in v0.1.41
type SetVaultResourceResponse struct { // 本次设置的资源id列表。 SetResourceIds *[]string `json:"set_resource_ids,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (SetVaultResourceResponse) String ¶ added in v0.1.41
func (o SetVaultResourceResponse) String() string
type ShowAgentRequest ¶ added in v0.1.40
type ShowAgentRequest struct { // 客户端ID AgentId string `json:"agent_id"` }
Request Object
func (ShowAgentRequest) String ¶ added in v0.1.40
func (o ShowAgentRequest) String() string
type ShowAgentResponse ¶ added in v0.1.40
type ShowAgentResponse struct { Agent *Agent `json:"agent,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowAgentResponse) String ¶ added in v0.1.40
func (o ShowAgentResponse) String() string
type ShowBackupRequest ¶
type ShowBackupRequest struct { // 备份ID BackupId string `json:"backup_id"` }
Request Object
func (ShowBackupRequest) String ¶
func (o ShowBackupRequest) String() string
type ShowBackupResponse ¶
type ShowBackupResponse struct { Backup *BackupResp `json:"backup,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowBackupResponse) String ¶
func (o ShowBackupResponse) String() string
type ShowCheckpointRequest ¶
type ShowCheckpointRequest struct { // 还原点ID 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 ShowDomainRequest ¶ added in v0.1.41
type ShowDomainRequest struct { // 源项目ID SourceProjectId string `json:"source_project_id"` }
Request Object
func (ShowDomainRequest) String ¶ added in v0.1.41
func (o ShowDomainRequest) String() string
type ShowDomainResponse ¶ added in v0.1.41
type ShowDomainResponse struct { // ProjectName *string `json:"project_name,omitempty"` // ProjectId *string `json:"project_id,omitempty"` // DomainId *string `json:"domain_id,omitempty"` // DomainName *string `json:"domain_name,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowDomainResponse) String ¶ added in v0.1.41
func (o ShowDomainResponse) String() string
type ShowMemberDetailRequest ¶
type ShowMemberDetailRequest struct { // 备份副本id BackupId string `json:"backup_id"` // 成员id,为接收方的project_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 { // 备份id BackupId string `json:"backup_id"` // 接受备份共享的项目id DestProjectId *string `json:"dest_project_id,omitempty"` // 接受的共享备份副本注册的镜像id ImageId *string `json:"image_id,omitempty"` // 备份共享状态 Status *string `json:"status,omitempty"` // 目标端接受共享备份的存储库id,仅支持uuid VaultId *string `json:"vault_id,omitempty"` // 每页显示的条目数量,正整数 Limit *int32 `json:"limit,omitempty"` // 上一次查询最后一条的id,仅支持uuid Marker *string `json:"marker,omitempty"` // 偏移值,正整数 Offset *int32 `json:"offset,omitempty"` // sort的内容为一组由逗号分隔的属性及可选排序方向组成,形如<key1>[:<direction>],<key2>[:<direction>],其中direction的取值为asc (升序) 或 desc (降序),如没有传入direction参数,默认为降序,sort内容的长度限制为255个字符。 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 ShowMetadataRequest ¶ added in v0.1.41
type ShowMetadataRequest struct { // 备份ID BackupId string `json:"backup_id"` }
Request Object
func (ShowMetadataRequest) String ¶ added in v0.1.41
func (o ShowMetadataRequest) String() string
type ShowMetadataResponse ¶ added in v0.1.41
type ShowMetadataResponse struct { // 备份ID BackupId *string `json:"backup_id,omitempty"` // 云服务器备份信息 Backups *string `json:"backups,omitempty"` // 云服务器规格信息 Flavor *string `json:"flavor,omitempty"` // 云服务器浮动IP信息 Floatingips *[]string `json:"floatingips,omitempty"` // 云服务器接口信息 Interface *string `json:"interface,omitempty"` // 云服务器端口信息 Ports *[]string `json:"ports,omitempty"` // 云服务器信息 Server *string `json:"server,omitempty"` // 云服务器卷信息 Volumes *[]string `json:"volumes,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowMetadataResponse) String ¶ added in v0.1.41
func (o ShowMetadataResponse) String() string
type ShowMigrateStatusRequest ¶ added in v0.1.41
type ShowMigrateStatusRequest struct { // 是否查询其他区域结果 AllRegions *bool `json:"all_regions,omitempty"` }
Request Object
func (ShowMigrateStatusRequest) String ¶ added in v0.1.41
func (o ShowMigrateStatusRequest) String() string
type ShowMigrateStatusResponse ¶ added in v0.1.41
type ShowMigrateStatusResponse struct { // 租户迁移状态 Status *ShowMigrateStatusResponseStatus `json:"status,omitempty"` // 项目迁移状态 ProjectStatus *[]DomainMigrateProjectStatus `json:"project_status,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowMigrateStatusResponse) String ¶ added in v0.1.41
func (o ShowMigrateStatusResponse) String() string
type ShowMigrateStatusResponseStatus ¶ added in v0.1.41
type ShowMigrateStatusResponseStatus struct {
// contains filtered or unexported fields
}
func (ShowMigrateStatusResponseStatus) MarshalJSON ¶ added in v0.1.41
func (c ShowMigrateStatusResponseStatus) MarshalJSON() ([]byte, error)
func (*ShowMigrateStatusResponseStatus) UnmarshalJSON ¶ added in v0.1.41
func (c *ShowMigrateStatusResponseStatus) UnmarshalJSON(b []byte) error
func (ShowMigrateStatusResponseStatus) Value ¶ added in v0.1.41
func (c ShowMigrateStatusResponseStatus) Value() string
type ShowMigrateStatusResponseStatusEnum ¶ added in v0.1.41
type ShowMigrateStatusResponseStatusEnum struct { SUCCESS ShowMigrateStatusResponseStatus FAILED ShowMigrateStatusResponseStatus MIGRATING ShowMigrateStatusResponseStatus }
func GetShowMigrateStatusResponseStatusEnum ¶ added in v0.1.41
func GetShowMigrateStatusResponseStatusEnum() ShowMigrateStatusResponseStatusEnum
type ShowOpLogRequest ¶
type ShowOpLogRequest struct { // 任务ID 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 { // 策略ID 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 { // 资源ID 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
func (ShowProtectableRequestProtectableType) Value ¶ added in v0.0.90
func (c ShowProtectableRequestProtectableType) Value() string
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 ¶
func (o ShowReplicationCapabilitiesRequest) String() string
type ShowReplicationCapabilitiesResponse ¶
type ShowReplicationCapabilitiesResponse struct { // 支持复制的区域列表 Regions *[]ProtectableReplicationCapabilitiesRespRegion `json:"regions,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowReplicationCapabilitiesResponse) String ¶
func (o ShowReplicationCapabilitiesResponse) String() string
type ShowStorageUsageRequest ¶ added in v0.1.41
type ShowStorageUsageRequest struct { // 查询条数 Limit *int32 `json:"limit,omitempty"` // 偏移值 Offset *int32 `json:"offset,omitempty"` // 支持按照备份对象ID过滤 ResourceId *string `json:"resource_id,omitempty"` // 支持按照备份对象类型过滤 ResourceType *ShowStorageUsageRequestResourceType `json:"resource_type,omitempty"` }
Request Object
func (ShowStorageUsageRequest) String ¶ added in v0.1.41
func (o ShowStorageUsageRequest) String() string
type ShowStorageUsageRequestResourceType ¶ added in v0.1.41
type ShowStorageUsageRequestResourceType struct {
// contains filtered or unexported fields
}
func (ShowStorageUsageRequestResourceType) MarshalJSON ¶ added in v0.1.41
func (c ShowStorageUsageRequestResourceType) MarshalJSON() ([]byte, error)
func (*ShowStorageUsageRequestResourceType) UnmarshalJSON ¶ added in v0.1.41
func (c *ShowStorageUsageRequestResourceType) UnmarshalJSON(b []byte) error
func (ShowStorageUsageRequestResourceType) Value ¶ added in v0.1.41
func (c ShowStorageUsageRequestResourceType) Value() string
type ShowStorageUsageRequestResourceTypeEnum ¶ added in v0.1.41
type ShowStorageUsageRequestResourceTypeEnum struct { OSNOVASERVER ShowStorageUsageRequestResourceType OSIRONICBARE_METAL_SERVER ShowStorageUsageRequestResourceType }
func GetShowStorageUsageRequestResourceTypeEnum ¶ added in v0.1.41
func GetShowStorageUsageRequestResourceTypeEnum() ShowStorageUsageRequestResourceTypeEnum
type ShowStorageUsageResponse ¶ added in v0.1.41
type ShowStorageUsageResponse struct { // 满足过滤条件的资源总条数 ResourceCount *int32 `json:"resource_count,omitempty"` // StorageUsage *[]StorageUsage `json:"storage_usage,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowStorageUsageResponse) String ¶ added in v0.1.41
func (o ShowStorageUsageResponse) String() string
type ShowSummaryRequest ¶ added in v0.1.42
type ShowSummaryRequest struct { }
Request Object
func (ShowSummaryRequest) String ¶ added in v0.1.42
func (o ShowSummaryRequest) String() string
type ShowSummaryResponse ¶ added in v0.1.42
type ShowSummaryResponse struct { // 总容量大小 Size *int32 `json:"size,omitempty"` // 总使用量 UsedSize *int32 `json:"used_size,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowSummaryResponse) String ¶ added in v0.1.42
func (o ShowSummaryResponse) String() string
type ShowVaultProjectTagRequest ¶
type ShowVaultProjectTagRequest struct { }
Request Object
func (ShowVaultProjectTagRequest) String ¶
func (o ShowVaultProjectTagRequest) String() string
type ShowVaultProjectTagResponse ¶
type ShowVaultProjectTagResponse struct { // 标签列表 Tags *[]TagsResp `json:"tags,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowVaultProjectTagResponse) String ¶
func (o ShowVaultProjectTagResponse) String() string
type ShowVaultRequest ¶
type ShowVaultRequest struct { // 存储库ID 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 ¶
func (o ShowVaultResourceInstancesRequest) String() 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 ¶
func (o ShowVaultResourceInstancesResponse) String() 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 { // 资源id 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 StorageUsage ¶ added in v0.1.41
type StorageUsage struct { // 备份数量 BackupCount *int32 `json:"backup_count,omitempty"` // 备份容量 BackupSize *int32 `json:"backup_size,omitempty"` // 资源ID ResourceId string `json:"resource_id"` // 资源名称 ResourceName string `json:"resource_name"` // 资源类型 ResourceType string `json:"resource_type"` // 多AZ备份大小 BackupSizeMultiaz *int32 `json:"backup_size_multiaz,omitempty"` }
func (StorageUsage) String ¶ added in v0.1.41
func (o StorageUsage) String() string
type SyncParam ¶ added in v0.1.41
type SyncRespBody ¶ added in v0.1.41
type SyncRespBody struct { // 是否自动触发 OperationLogId string `json:"operation_log_id"` // 混合云vault id VaultId string `json:"vault_id"` }
func (SyncRespBody) String ¶ added in v0.1.41
func (o SyncRespBody) String() string
type SysTag ¶
type SysTags ¶
type Tag ¶
type Tag struct { // 键。 key最大长度为36个字符。 key不能为空字符串。 key前后空格会被丢弃。 key不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。 key只能由中文,字母,数字,“-”,“_”组成。 Key string `json:"key"` // 值。 添加标签时value值必选,删除标签时value值可选。 value最大长度为43个字符。 value可以为空字符串。 value前后的空格会被丢弃。 value不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。 value只能由中文,字母,数字,“-”,“_”,“.”组成。 Value *string `json:"value,omitempty"` }
type TagResource ¶
type TagResource struct { // 资源ID ResourceId string `json:"resource_id"` ResourceDetail *InstancesResourceDetail `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"` }
type TagsResp ¶
type UnregisterAgentRequest ¶ added in v0.1.40
type UnregisterAgentRequest struct { // 客户端ID AgentId string `json:"agent_id"` }
Request Object
func (UnregisterAgentRequest) String ¶ added in v0.1.40
func (o UnregisterAgentRequest) String() string
type UnregisterAgentResponse ¶ added in v0.1.40
type UnregisterAgentResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (UnregisterAgentResponse) String ¶ added in v0.1.40
func (o UnregisterAgentResponse) String() string
type UpdateAgentRequest ¶ added in v0.1.40
type UpdateAgentRequest struct { AgentId string `json:"agent_id"` Body *AgentUpdateReq `json:"body,omitempty"` }
Request Object
func (UpdateAgentRequest) String ¶ added in v0.1.40
func (o UpdateAgentRequest) String() string
type UpdateAgentResponse ¶ added in v0.1.40
type UpdateAgentResponse struct { Agent *Agent `json:"agent,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (UpdateAgentResponse) String ¶ added in v0.1.40
func (o UpdateAgentResponse) String() string
type UpdateBackupRequest ¶ added in v0.1.41
type UpdateBackupRequest struct { // 备份ID BackupId string `json:"backup_id"` Body *BackupUpdateReq `json:"body,omitempty"` }
Request Object
func (UpdateBackupRequest) String ¶ added in v0.1.41
func (o UpdateBackupRequest) String() string
type UpdateBackupResponse ¶ added in v0.1.41
type UpdateBackupResponse struct { Backup *BackupResp `json:"backup,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (UpdateBackupResponse) String ¶ added in v0.1.41
func (o UpdateBackupResponse) 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
func (UpdateMemberStatus) Value ¶ added in v0.0.90
func (c UpdateMemberStatus) Value() string
type UpdateMemberStatusEnum ¶
type UpdateMemberStatusEnum struct { ACCEPTED UpdateMemberStatus PENDING UpdateMemberStatus REJECTED UpdateMemberStatus }
func GetUpdateMemberStatusEnum ¶
func GetUpdateMemberStatusEnum() UpdateMemberStatusEnum
type UpdateMemberStatusRequest ¶
type UpdateMemberStatusRequest struct { // 成员id,成员id与项目id为同一个。 MemberId string `json:"member_id"` // 备份副本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 ¶
func (o UpdateMemberStatusResponse) String() string
type UpdateOrderRequest ¶ added in v0.1.41
type UpdateOrderRequest struct { // 订单ID OrderId string `json:"order_id"` Body *CbcUpdate `json:"body,omitempty"` }
Request Object
func (UpdateOrderRequest) String ¶ added in v0.1.41
func (o UpdateOrderRequest) String() string
type UpdateOrderResponse ¶ added in v0.1.41
type UpdateOrderResponse struct { // 订单ID OrderId *string `json:"orderId,omitempty"` // 变更状态码 RetCode *string `json:"retCode,omitempty"` // 变更信息 RetMsg *string `json:"retMsg,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (UpdateOrderResponse) String ¶ added in v0.1.41
func (o UpdateOrderResponse) String() string
type UpdatePolicyRequest ¶
type UpdatePolicyRequest struct { // 策略ID 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 { // 存储库ID 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"` // 存储库资源类型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"` // 用户id UserId *string `json:"user_id,omitempty"` // 创建时间,例如:\"2020-02-05T10:38:34.209782\" CreatedAt *string `json:"created_at,omitempty"` // 是否开启存储库自动扩容能力(只支持按需存储库)。 AutoExpand *bool `json:"auto_expand,omitempty"` // 存储库smn消息通知开关 SmnNotify *bool `json:"smn_notify,omitempty"` // 存储库容量阈值,已用容量占总容量达到此百分比即发送相关通知 Threshold *int32 `json:"threshold,omitempty"` }
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。policy_id字段与add_policy_ids字段在一次请求中有且只有一个。 PolicyId *string `json:"policy_id,omitempty"` // 多策略场景下,绑定新策略的id列表。policy_id字段与add_policy_ids字段在一次请求中有且只有一个。 AddPolicyIds *[]string `json:"add_policy_ids,omitempty"` }
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 VaultBatchUpdate ¶ added in v0.1.41
type VaultBatchUpdate struct { // 存储库smn消息通知开关 SmnNotify *bool `json:"smn_notify,omitempty"` // 存储库容量阈值 Threshold *int32 `json:"threshold,omitempty"` }
存储库批量修改属性
func (VaultBatchUpdate) String ¶ added in v0.1.41
func (o VaultBatchUpdate) String() string
type VaultBindRules ¶
type VaultBindRules struct { // 按tags过滤自动绑定的资源 最小长度:1 最大长度:5 Tags *[]BindRulesTags `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"` // [是否开启存储库自动扩容能力(只支持按需存储库)。](tag:hws,hws_hk) [是否开启存储库自动扩容能力。](tag:dt,ocb,tlf,sbc,fcs_vm,ctc,g42,tm,cmcc,hcso_dt) AutoExpand *bool `json:"auto_expand,omitempty"` // 存储库容量阈值,已用容量占总容量达到此百分比,将根据 smn_notify 参数设置选择是否发送相关通知。 默认值为:80 最大值:100 最小值:1 Threshold *int32 `json:"threshold,omitempty"` // 存储库smn消息通知开关。 默认值为 true。 SmnNotify *bool `json:"smn_notify,omitempty"` // 备份名称前缀,设置后该存储库自动备份产生的备份副本都将携带该备份名称前缀 BackupNamePrefix *string `json:"backup_name_prefix,omitempty"` // 存储库使用是否允许超出容量,只有创建包周期存储库时才允许该值为 true DemandBilling *bool `json:"demand_billing,omitempty"` }
func (VaultCreate) String ¶
func (o VaultCreate) String() string
type VaultCreateParameters ¶ added in v0.1.41
type VaultCreateParameters struct {
CombinedOrder *CombinedOrder `json:"combined_order,omitempty"`
}
存储库创建参数
func (VaultCreateParameters) String ¶ added in v0.1.41
func (o VaultCreateParameters) String() string
type VaultCreateReq ¶
type VaultCreateReq struct {
Vault *VaultCreate `json:"vault"`
}
func (VaultCreateReq) String ¶
func (o VaultCreateReq) String() string
type VaultCreateResource ¶ added in v0.0.84
type VaultCreateResource 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"` // 存储库资源类型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"` // 用户id UserId *string `json:"user_id,omitempty"` // 创建时间,例如:\"2020-02-05T10:38:34.209782\" CreatedAt *string `json:"created_at,omitempty"` // [是否开启存储库自动扩容能力(只支持按需存储库)。](tag:hws,hws_hk) [是否开启存储库自动扩容能力。](tag:dt,ocb,tlf,sbc,fcs_vm,ctc,g42,tm,cmcc,tm,hcso_dt) AutoExpand *bool `json:"auto_expand,omitempty"` // 存储库smn消息通知开关 SmnNotify *bool `json:"smn_notify,omitempty"` // 存储库容量阈值,已用容量占总容量达到此百分比即发送相关通知 Threshold *int32 `json:"threshold,omitempty"` // 包周期创建错误信息 ErrText *string `json:"errText,omitempty"` // 包周期订购结果 RetCode *string `json:"retCode,omitempty"` // 包周期创建订单信息 Orders *[]CbcOrderResult `json:"orders,omitempty"` // 备份名称前缀 BackupNamePrefix *string `json:"backup_name_prefix,omitempty"` // 是否允许使用超出存储库容量 DemandBilling *bool `json:"demand_billing,omitempty"` // 存储库删除次数 CbcDeleteCount *int32 `json:"cbc_delete_count,omitempty"` // 存储库是否冻结 Frozen *bool `json:"frozen,omitempty"` }
func (VaultCreateResource) String ¶ added in v0.0.84
func (o VaultCreateResource) 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"` // 存储库资源类型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"` // 用户id UserId *string `json:"user_id,omitempty"` // 创建时间,例如:\"2020-02-05T10:38:34.209782\" CreatedAt *string `json:"created_at,omitempty"` // 是否开启存储库自动扩容能力(只支持按需存储库)。 AutoExpand *bool `json:"auto_expand,omitempty"` // 存储库smn消息通知开关 SmnNotify *bool `json:"smn_notify,omitempty"` // 存储库容量阈值,已用容量占总容量达到此百分比即发送相关通知 Threshold *int32 `json:"threshold,omitempty"` // 更新时间,例如:\"2020-02-05T10:38:34.209782\" UpdatedAt string `json:"updated_at"` // 版本 Version *string `json:"version,omitempty"` }
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 VaultOrder ¶ added in v0.1.41
type VaultOrder struct { // 存储库名称 最小长度:1 最大长度:64 Name *string `json:"name,omitempty"` Billing *BillingCreate `json:"billing"` // 绑定的备份资源,未在创建时绑定资源填[] Resources []ResourceCreate `json:"resources"` // 描述 最小长度:0 最大长度:255 Description *string `json:"description,omitempty"` // 备份策略ID,不设置时为null,不自动备份。 BackupPolicyId *string `json:"backup_policy_id,omitempty"` // 标签列表 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"` // 存储库阈值,百分比。 最小值:1 最大值:100 Threshold *int32 `json:"threshold,omitempty"` // 当容量到达阈值,是否启用通知 SmnNotify *bool `json:"smn_notify,omitempty"` Parameters *VaultCreateParameters `json:"parameters,omitempty"` // 是否开启存储库自动扩容能力(只支持按需存储库)。 AutoExpand *bool `json:"auto_expand,omitempty"` }
存储库订单
func (VaultOrder) String ¶ added in v0.1.41
func (o VaultOrder) String() string
type VaultOrderCreateReqs ¶ added in v0.1.41
type VaultOrderCreateReqs struct {
Vault *VaultOrder `json:"vault"`
}
创建包周期存储库请求体
func (VaultOrderCreateReqs) String ¶ added in v0.1.41
func (o VaultOrderCreateReqs) 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列表 最小长度:1 最大长度:256 ResourceIds []string `json:"resource_ids"` }
func (VaultRemoveResourceReq) String ¶
func (o VaultRemoveResourceReq) String() string
type VaultResourceInstancesReq ¶
type VaultResourceInstancesReq struct { // 不包含任意一个标签,该字段为true时查询所有不带标签的资源,此时忽略 “tags”、“tags_any”、“not_tags”、“not_tags_any”字段。 WithoutAnyTag *bool `json:"without_any_tag,omitempty"` // 包含标签。 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中key不允许重复。 数组长度最大值为 1,后续再扩展。 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
func (VaultResourceInstancesReqCloudType) Value ¶ added in v0.0.90
func (c VaultResourceInstancesReqCloudType) Value() string
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
func (VaultResourceInstancesReqObjectType) Value ¶ added in v0.0.90
func (c VaultResourceInstancesReqObjectType) Value() string
type VaultResourceInstancesReqObjectTypeEnum ¶
type VaultResourceInstancesReqObjectTypeEnum struct { SERVER VaultResourceInstancesReqObjectType DISK VaultResourceInstancesReqObjectType }
func GetVaultResourceInstancesReqObjectTypeEnum ¶
func GetVaultResourceInstancesReqObjectTypeEnum() VaultResourceInstancesReqObjectTypeEnum
type VaultSetResourceReq ¶ added in v0.1.41
type VaultSetResourceReq struct { // 需要设置的资源id。 ResourceIds []string `json:"resource_ids"` // 设置存储库资源动作 Action VaultSetResourceReqAction `json:"action"` }
存储库设置资源自动备份开关请求体
func (VaultSetResourceReq) String ¶ added in v0.1.41
func (o VaultSetResourceReq) String() string
type VaultSetResourceReqAction ¶ added in v0.1.41
type VaultSetResourceReqAction struct {
// contains filtered or unexported fields
}
func (VaultSetResourceReqAction) MarshalJSON ¶ added in v0.1.41
func (c VaultSetResourceReqAction) MarshalJSON() ([]byte, error)
func (*VaultSetResourceReqAction) UnmarshalJSON ¶ added in v0.1.41
func (c *VaultSetResourceReqAction) UnmarshalJSON(b []byte) error
func (VaultSetResourceReqAction) Value ¶ added in v0.1.41
func (c VaultSetResourceReqAction) Value() string
type VaultSetResourceReqActionEnum ¶ added in v0.1.41
type VaultSetResourceReqActionEnum struct { SUSPEND VaultSetResourceReqAction UNSUSPEND VaultSetResourceReqAction }
func GetVaultSetResourceReqActionEnum ¶ added in v0.1.41
func GetVaultSetResourceReqActionEnum() VaultSetResourceReqActionEnum
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"` // 发送smn通知开关 SmnNotify *bool `json:"smn_notify,omitempty"` // 存储库容量阈值,存储库已用容量和总容量的百分比超过该值,若smn_notify为开,将发送相关通知。 Threshold *int32 `json:"threshold,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 ¶
- model_add_agent_path_request.go
- model_add_agent_path_response.go
- model_add_member_request.go
- model_add_member_response.go
- model_add_members_req.go
- model_add_vault_resource_request.go
- model_add_vault_resource_response.go
- model_agent.go
- model_agent_add_path_req.go
- model_agent_register.go
- model_agent_register_req.go
- model_agent_remove_path_req.go
- model_agent_update.go
- model_agent_update_req.go
- model_associate_vault_policy_request.go
- model_associate_vault_policy_response.go
- model_backup_extend_info.go
- model_backup_replicate_req.go
- model_backup_replicate_req_body.go
- model_backup_replicate_resp_body.go
- model_backup_resp.go
- model_backup_restore.go
- model_backup_restore_req.go
- model_backup_restore_server_mapping.go
- model_backup_sync.go
- model_backup_sync_req.go
- model_backup_sync_resp_body.go
- model_backup_update.go
- model_backup_update_req.go
- model_batch_create_and_delete_vault_tags_request.go
- model_batch_create_and_delete_vault_tags_response.go
- model_batch_update_vault_request.go
- model_batch_update_vault_request_body.go
- model_batch_update_vault_response.go
- model_billing.go
- model_billing_create.go
- model_billing_update.go
- model_bind_rules_tags.go
- model_bulk_create_and_delete_vault_tags_req.go
- model_cbc_order_result.go
- model_cbc_product_info_update.go
- model_cbc_update.go
- model_check_agent_request.go
- model_check_agent_response.go
- model_checkpoint_create.go
- model_checkpoint_create_skipped_resource.go
- model_checkpoint_extra_info_resp.go
- model_checkpoint_param.go
- model_checkpoint_plan_create.go
- model_checkpoint_replicate_param.go
- model_checkpoint_replicate_req.go
- model_checkpoint_replicate_resp_body.go
- model_checkpoint_replicate_respbackups.go
- model_checkpoint_resource_resp.go
- model_combined_order.go
- model_copy_backup_request.go
- model_copy_backup_response.go
- model_copy_checkpoint_request.go
- model_copy_checkpoint_response.go
- model_create_checkpoint_request.go
- model_create_checkpoint_response.go
- model_create_policy_request.go
- model_create_policy_response.go
- model_create_post_paid_vault_request.go
- model_create_post_paid_vault_response.go
- model_create_vault_request.go
- model_create_vault_response.go
- model_create_vault_tags_request.go
- model_create_vault_tags_response.go
- model_delete_backup_request.go
- model_delete_backup_response.go
- model_delete_member_request.go
- model_delete_member_response.go
- model_delete_policy_request.go
- model_delete_policy_response.go
- model_delete_vault_request.go
- model_delete_vault_response.go
- model_delete_vault_tag_request.go
- model_delete_vault_tag_response.go
- model_disassociate_vault_policy_request.go
- model_disassociate_vault_policy_response.go
- model_domain_migrate.go
- model_domain_migrate_project_status.go
- model_domain_projects_info.go
- model_image_data.go
- model_import_backup_request.go
- model_import_backup_response.go
- model_import_checkpoint_request.go
- model_import_checkpoint_response.go
- model_instances_resource_detail.go
- model_list_agent_request.go
- model_list_agent_response.go
- model_list_backups_request.go
- model_list_backups_response.go
- model_list_domain_projects_request.go
- model_list_domain_projects_response.go
- model_list_external_vault_request.go
- model_list_external_vault_response.go
- model_list_op_logs_request.go
- model_list_op_logs_response.go
- model_list_policies_request.go
- model_list_policies_response.go
- model_list_projects_request.go
- model_list_projects_response.go
- model_list_protectable_request.go
- model_list_protectable_response.go
- model_list_vault_request.go
- model_list_vault_response.go
- model_match.go
- model_member.go
- model_migrate_domain_request.go
- model_migrate_domain_response.go
- model_migrate_vault_resource_request.go
- model_migrate_vault_resource_response.go
- model_op_error_info.go
- model_op_extend_info_bckup.go
- model_op_extend_info_common.go
- model_op_extend_info_delete.go
- model_op_extend_info_remove_resources.go
- model_op_extend_info_replication.go
- model_op_extend_info_restore.go
- model_op_extend_info_sync.go
- model_op_extend_info_vault_delete.go
- model_op_extra_info.go
- model_operation_log.go
- model_path.go
- model_policy.go
- model_policy_associate_vault.go
- model_policy_create.go
- model_policy_create_req.go
- model_policy_trigger_properties_req.go
- model_policy_trigger_properties_resp.go
- model_policy_trigger_req.go
- model_policy_trigger_resp.go
- model_policy_update.go
- model_policy_update_req.go
- model_policyo_od_create.go
- model_projects_list_info.go
- model_protectable_agent_req.go
- model_protectable_agent_status.go
- model_protectable_agent_status_resource.go
- model_protectable_replication_capabilities_resp_region.go
- model_protectable_result.go
- model_protectables_resp.go
- model_register_agent_request.go
- model_register_agent_response.go
- model_remove_agent_path_request.go
- model_remove_agent_path_response.go
- model_remove_vault_resource_request.go
- model_remove_vault_resource_response.go
- model_replication_record_get.go
- model_replication_records_extra_info.go
- model_resource.go
- model_resource_create.go
- model_resource_extra_info.go
- model_resource_extra_info_include_volumes.go
- model_resource_resp.go
- model_restore_backup_request.go
- model_restore_backup_response.go
- model_self_links_info.go
- model_set_vault_resource_request.go
- model_set_vault_resource_response.go
- model_show_agent_request.go
- model_show_agent_response.go
- model_show_backup_request.go
- model_show_backup_response.go
- model_show_checkpoint_request.go
- model_show_checkpoint_response.go
- model_show_domain_request.go
- model_show_domain_response.go
- model_show_member_detail_request.go
- model_show_member_detail_response.go
- model_show_members_detail_request.go
- model_show_members_detail_response.go
- model_show_metadata_request.go
- model_show_metadata_response.go
- model_show_migrate_status_request.go
- model_show_migrate_status_response.go
- model_show_op_log_request.go
- model_show_op_log_response.go
- model_show_policy_request.go
- model_show_policy_response.go
- model_show_protectable_request.go
- model_show_protectable_response.go
- model_show_replication_capabilities_request.go
- model_show_replication_capabilities_response.go
- model_show_storage_usage_request.go
- model_show_storage_usage_response.go
- model_show_summary_request.go
- model_show_summary_response.go
- model_show_vault_project_tag_request.go
- model_show_vault_project_tag_response.go
- model_show_vault_request.go
- model_show_vault_resource_instances_request.go
- model_show_vault_resource_instances_response.go
- model_show_vault_response.go
- model_show_vault_tag_request.go
- model_show_vault_tag_response.go
- model_storage_usage.go
- model_sync_param.go
- model_sync_req.go
- model_sync_resp_body.go
- model_sys_tag.go
- model_sys_tags.go
- model_tag.go
- model_tag_resource.go
- model_tags_req.go
- model_tags_resp.go
- model_unregister_agent_request.go
- model_unregister_agent_response.go
- model_update_agent_request.go
- model_update_agent_response.go
- model_update_backup_request.go
- model_update_backup_response.go
- model_update_member.go
- model_update_member_status_request.go
- model_update_member_status_response.go
- model_update_order_request.go
- model_update_order_response.go
- model_update_policy_request.go
- model_update_policy_response.go
- model_update_vault_request.go
- model_update_vault_response.go
- model_vault.go
- model_vault_add_resource_req.go
- model_vault_associate.go
- model_vault_backup.go
- model_vault_backup_req.go
- model_vault_batch_update.go
- model_vault_bind_rules.go
- model_vault_create.go
- model_vault_create_parameters.go
- model_vault_create_req.go
- model_vault_create_resource.go
- model_vault_dissociate.go
- model_vault_get.go
- model_vault_migrate_resource_req.go
- model_vault_order.go
- model_vault_order_create_reqs.go
- model_vault_policy_resp.go
- model_vault_remove_resource_req.go
- model_vault_resource_instances_req.go
- model_vault_set_resource_req.go
- model_vault_tags_create_req.go
- model_vault_update.go
- model_vault_update_req.go