Documentation ¶
Index ¶
- type Attachment
- type AzInfo
- type BatchCreateVolumeTagsRequest
- type BatchCreateVolumeTagsRequestBody
- type BatchCreateVolumeTagsRequestBodyAction
- type BatchCreateVolumeTagsRequestBodyActionEnum
- type BatchCreateVolumeTagsResponse
- type BatchDeleteVolumeTagsRequest
- type BatchDeleteVolumeTagsRequestBody
- type BatchDeleteVolumeTagsRequestBodyAction
- type BatchDeleteVolumeTagsRequestBodyActionEnum
- type BatchDeleteVolumeTagsResponse
- type BssParamForCreateVolume
- type BssParamForCreateVolumeChargingMode
- type BssParamForCreateVolumeChargingModeEnum
- type BssParamForCreateVolumeIsAutoPay
- type BssParamForCreateVolumeIsAutoPayEnum
- type BssParamForCreateVolumeIsAutoRenew
- type BssParamForCreateVolumeIsAutoRenewEnum
- type BssParamForCreateVolumePeriodType
- type BssParamForCreateVolumePeriodTypeEnum
- type BssParamForResizeVolume
- type BssParamForResizeVolumeIsAutoPay
- type BssParamForResizeVolumeIsAutoPayEnum
- type CinderExportToImageOption
- type CinderExportToImageOptionContainerFormat
- type CinderExportToImageOptionContainerFormatEnum
- type CinderExportToImageOptionDiskFormat
- type CinderExportToImageOptionDiskFormatEnum
- type CinderExportToImageOptionOsType
- type CinderExportToImageOptionOsTypeEnum
- type CinderExportToImageRequest
- type CinderExportToImageRequestBody
- type CinderExportToImageResponse
- type CinderListAvailabilityZonesRequest
- type CinderListAvailabilityZonesResponse
- type CinderListQuotasRequest
- type CinderListQuotasRequestUsage
- type CinderListQuotasRequestUsageEnum
- type CinderListQuotasResponse
- type CinderListVolumeTypesRequest
- type CinderListVolumeTypesResponse
- type CreateSnapshotOption
- type CreateSnapshotRequest
- type CreateSnapshotRequestBody
- type CreateSnapshotResponse
- type CreateVolumeOption
- type CreateVolumeOptionShareable
- type CreateVolumeOptionShareableEnum
- type CreateVolumeOptionVolumeType
- type CreateVolumeOptionVolumeTypeEnum
- type CreateVolumeRequest
- type CreateVolumeRequestBody
- type CreateVolumeResponse
- type CreateVolumeSchedulerHints
- type DeleteSnapshotRequest
- type DeleteSnapshotResponse
- type DeleteTagsOption
- type DeleteVolumeRequest
- type DeleteVolumeResponse
- type Image
- type JobEntities
- type Link
- type ListSnapshotsRequest
- type ListSnapshotsResponse
- type ListVolumeTagsRequest
- type ListVolumeTagsResponse
- type ListVolumesByTagsRequest
- type ListVolumesByTagsRequestBody
- type ListVolumesByTagsRequestBodyAction
- type ListVolumesByTagsRequestBodyActionEnum
- type ListVolumesByTagsResponse
- type ListVolumesRequest
- type ListVolumesResponse
- type Match
- type MatchKey
- type MatchKeyEnum
- type OsExtend
- type QuotaDetail
- type QuotaDetailBackupGigabytes
- type QuotaDetailBackups
- type QuotaDetailGigabytes
- type QuotaDetailGigabytesGpssd
- type QuotaDetailGigabytesSas
- type QuotaDetailGigabytesSata
- type QuotaDetailGigabytesSsd
- type QuotaDetailPerVolumeGigabytes
- type QuotaDetailSnapshots
- type QuotaDetailSnapshotsGpssd
- type QuotaDetailSnapshotsSas
- type QuotaDetailSnapshotsSata
- type QuotaDetailSnapshotsSsd
- type QuotaDetailVolumes
- type QuotaDetailVolumesGpssd
- type QuotaDetailVolumesSas
- type QuotaDetailVolumesSata
- type QuotaDetailVolumesSsd
- type QuotaList
- type ResizeVolumeRequest
- type ResizeVolumeRequestBody
- type ResizeVolumeResponse
- type Resource
- type RollbackInfo
- type RollbackSnapshotOption
- type RollbackSnapshotRequest
- type RollbackSnapshotRequestBody
- type RollbackSnapshotResponse
- type ShowJobRequest
- type ShowJobResponse
- type ShowJobResponseStatus
- type ShowJobResponseStatusEnum
- type ShowSnapshotRequest
- type ShowSnapshotResponse
- type ShowVolumeRequest
- type ShowVolumeResponse
- type ShowVolumeTagsRequest
- type ShowVolumeTagsResponse
- type SnapshotDetails
- type SnapshotList
- type SubJob
- type SubJobEntities
- type SubJobStatus
- type SubJobStatusEnum
- type Tag
- type TagsForListVolumes
- type UpdateSnapshotOption
- type UpdateSnapshotRequest
- type UpdateSnapshotRequestBody
- type UpdateSnapshotResponse
- type UpdateVolumeOption
- type UpdateVolumeRequest
- type UpdateVolumeRequestBody
- type UpdateVolumeResponse
- type VolumeDetail
- type VolumeDetailForTag
- type VolumeMetadata
- type VolumeType
- type VolumeTypeExtraSpecs
- type ZoneState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type Attachment struct { AttachedAt string `json:"attached_at"` AttachmentId string `json:"attachment_id"` Device string `json:"device"` HostName string `json:"host_name"` Id string `json:"id"` ServerId string `json:"server_id"` VolumeId string `json:"volume_id"` }
云硬盘挂载信息。
func (Attachment) String ¶
func (o Attachment) String() string
type BatchCreateVolumeTagsRequest ¶
type BatchCreateVolumeTagsRequest struct { VolumeId string `json:"volume_id"` Body *BatchCreateVolumeTagsRequestBody `json:"body,omitempty"` }
Request Object
func (BatchCreateVolumeTagsRequest) String ¶
func (o BatchCreateVolumeTagsRequest) String() string
type BatchCreateVolumeTagsRequestBody ¶
type BatchCreateVolumeTagsRequestBody struct { Action BatchCreateVolumeTagsRequestBodyAction `json:"action"` Tags []Tag `json:"tags"` }
This is a auto create Body Object
func (BatchCreateVolumeTagsRequestBody) String ¶
func (o BatchCreateVolumeTagsRequestBody) String() string
type BatchCreateVolumeTagsRequestBodyAction ¶
type BatchCreateVolumeTagsRequestBodyAction struct {
// contains filtered or unexported fields
}
func (BatchCreateVolumeTagsRequestBodyAction) MarshalJSON ¶
func (c BatchCreateVolumeTagsRequestBodyAction) MarshalJSON() ([]byte, error)
func (*BatchCreateVolumeTagsRequestBodyAction) UnmarshalJSON ¶
func (c *BatchCreateVolumeTagsRequestBodyAction) UnmarshalJSON(b []byte) error
type BatchCreateVolumeTagsRequestBodyActionEnum ¶
type BatchCreateVolumeTagsRequestBodyActionEnum struct {
CREATE BatchCreateVolumeTagsRequestBodyAction
}
func GetBatchCreateVolumeTagsRequestBodyActionEnum ¶
func GetBatchCreateVolumeTagsRequestBodyActionEnum() BatchCreateVolumeTagsRequestBodyActionEnum
type BatchCreateVolumeTagsResponse ¶
type BatchCreateVolumeTagsResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (BatchCreateVolumeTagsResponse) String ¶
func (o BatchCreateVolumeTagsResponse) String() string
type BatchDeleteVolumeTagsRequest ¶
type BatchDeleteVolumeTagsRequest struct { VolumeId string `json:"volume_id"` Body *BatchDeleteVolumeTagsRequestBody `json:"body,omitempty"` }
Request Object
func (BatchDeleteVolumeTagsRequest) String ¶
func (o BatchDeleteVolumeTagsRequest) String() string
type BatchDeleteVolumeTagsRequestBody ¶
type BatchDeleteVolumeTagsRequestBody struct { Action BatchDeleteVolumeTagsRequestBodyAction `json:"action"` Tags []DeleteTagsOption `json:"tags"` }
This is a auto create Body Object
func (BatchDeleteVolumeTagsRequestBody) String ¶
func (o BatchDeleteVolumeTagsRequestBody) String() string
type BatchDeleteVolumeTagsRequestBodyAction ¶
type BatchDeleteVolumeTagsRequestBodyAction struct {
// contains filtered or unexported fields
}
func (BatchDeleteVolumeTagsRequestBodyAction) MarshalJSON ¶
func (c BatchDeleteVolumeTagsRequestBodyAction) MarshalJSON() ([]byte, error)
func (*BatchDeleteVolumeTagsRequestBodyAction) UnmarshalJSON ¶
func (c *BatchDeleteVolumeTagsRequestBodyAction) UnmarshalJSON(b []byte) error
type BatchDeleteVolumeTagsRequestBodyActionEnum ¶
type BatchDeleteVolumeTagsRequestBodyActionEnum struct {
DELETE BatchDeleteVolumeTagsRequestBodyAction
}
func GetBatchDeleteVolumeTagsRequestBodyActionEnum ¶
func GetBatchDeleteVolumeTagsRequestBodyActionEnum() BatchDeleteVolumeTagsRequestBodyActionEnum
type BatchDeleteVolumeTagsResponse ¶
type BatchDeleteVolumeTagsResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (BatchDeleteVolumeTagsResponse) String ¶
func (o BatchDeleteVolumeTagsResponse) String() string
type BssParamForCreateVolume ¶
type BssParamForCreateVolume struct { ChargingMode *BssParamForCreateVolumeChargingMode `json:"chargingMode,omitempty"` IsAutoPay *BssParamForCreateVolumeIsAutoPay `json:"isAutoPay,omitempty"` IsAutoRenew *BssParamForCreateVolumeIsAutoRenew `json:"isAutoRenew,omitempty"` PeriodNum *int32 `json:"periodNum,omitempty"` PeriodType *BssParamForCreateVolumePeriodType `json:"periodType,omitempty"` }
包周期创卷的计费策略参数。
func (BssParamForCreateVolume) String ¶
func (o BssParamForCreateVolume) String() string
type BssParamForCreateVolumeChargingMode ¶
type BssParamForCreateVolumeChargingMode struct {
// contains filtered or unexported fields
}
func (BssParamForCreateVolumeChargingMode) MarshalJSON ¶
func (c BssParamForCreateVolumeChargingMode) MarshalJSON() ([]byte, error)
func (*BssParamForCreateVolumeChargingMode) UnmarshalJSON ¶
func (c *BssParamForCreateVolumeChargingMode) UnmarshalJSON(b []byte) error
type BssParamForCreateVolumeChargingModeEnum ¶
type BssParamForCreateVolumeChargingModeEnum struct { POST_PAID BssParamForCreateVolumeChargingMode PRE_PAID BssParamForCreateVolumeChargingMode }
func GetBssParamForCreateVolumeChargingModeEnum ¶
func GetBssParamForCreateVolumeChargingModeEnum() BssParamForCreateVolumeChargingModeEnum
type BssParamForCreateVolumeIsAutoPay ¶
type BssParamForCreateVolumeIsAutoPay struct {
// contains filtered or unexported fields
}
func (BssParamForCreateVolumeIsAutoPay) MarshalJSON ¶
func (c BssParamForCreateVolumeIsAutoPay) MarshalJSON() ([]byte, error)
func (*BssParamForCreateVolumeIsAutoPay) UnmarshalJSON ¶
func (c *BssParamForCreateVolumeIsAutoPay) UnmarshalJSON(b []byte) error
type BssParamForCreateVolumeIsAutoPayEnum ¶
type BssParamForCreateVolumeIsAutoPayEnum struct { TRUE BssParamForCreateVolumeIsAutoPay FALSE BssParamForCreateVolumeIsAutoPay }
func GetBssParamForCreateVolumeIsAutoPayEnum ¶
func GetBssParamForCreateVolumeIsAutoPayEnum() BssParamForCreateVolumeIsAutoPayEnum
type BssParamForCreateVolumeIsAutoRenew ¶
type BssParamForCreateVolumeIsAutoRenew struct {
// contains filtered or unexported fields
}
func (BssParamForCreateVolumeIsAutoRenew) MarshalJSON ¶
func (c BssParamForCreateVolumeIsAutoRenew) MarshalJSON() ([]byte, error)
func (*BssParamForCreateVolumeIsAutoRenew) UnmarshalJSON ¶
func (c *BssParamForCreateVolumeIsAutoRenew) UnmarshalJSON(b []byte) error
type BssParamForCreateVolumeIsAutoRenewEnum ¶
type BssParamForCreateVolumeIsAutoRenewEnum struct { TRUE BssParamForCreateVolumeIsAutoRenew FALSE BssParamForCreateVolumeIsAutoRenew }
func GetBssParamForCreateVolumeIsAutoRenewEnum ¶
func GetBssParamForCreateVolumeIsAutoRenewEnum() BssParamForCreateVolumeIsAutoRenewEnum
type BssParamForCreateVolumePeriodType ¶
type BssParamForCreateVolumePeriodType struct {
// contains filtered or unexported fields
}
func (BssParamForCreateVolumePeriodType) MarshalJSON ¶
func (c BssParamForCreateVolumePeriodType) MarshalJSON() ([]byte, error)
func (*BssParamForCreateVolumePeriodType) UnmarshalJSON ¶
func (c *BssParamForCreateVolumePeriodType) UnmarshalJSON(b []byte) error
type BssParamForCreateVolumePeriodTypeEnum ¶
type BssParamForCreateVolumePeriodTypeEnum struct { MONTH BssParamForCreateVolumePeriodType YEAR BssParamForCreateVolumePeriodType }
func GetBssParamForCreateVolumePeriodTypeEnum ¶
func GetBssParamForCreateVolumePeriodTypeEnum() BssParamForCreateVolumePeriodTypeEnum
type BssParamForResizeVolume ¶
type BssParamForResizeVolume struct {
IsAutoPay *BssParamForResizeVolumeIsAutoPay `json:"isAutoPay,omitempty"`
}
包周期扩容计费策略参数。
func (BssParamForResizeVolume) String ¶
func (o BssParamForResizeVolume) String() string
type BssParamForResizeVolumeIsAutoPay ¶
type BssParamForResizeVolumeIsAutoPay struct {
// contains filtered or unexported fields
}
func (BssParamForResizeVolumeIsAutoPay) MarshalJSON ¶
func (c BssParamForResizeVolumeIsAutoPay) MarshalJSON() ([]byte, error)
func (*BssParamForResizeVolumeIsAutoPay) UnmarshalJSON ¶
func (c *BssParamForResizeVolumeIsAutoPay) UnmarshalJSON(b []byte) error
type BssParamForResizeVolumeIsAutoPayEnum ¶
type BssParamForResizeVolumeIsAutoPayEnum struct { FALSE BssParamForResizeVolumeIsAutoPay TRUE BssParamForResizeVolumeIsAutoPay }
func GetBssParamForResizeVolumeIsAutoPayEnum ¶
func GetBssParamForResizeVolumeIsAutoPayEnum() BssParamForResizeVolumeIsAutoPayEnum
type CinderExportToImageOption ¶
type CinderExportToImageOption struct { ContainerFormat *CinderExportToImageOptionContainerFormat `json:"container_format,omitempty"` DiskFormat *CinderExportToImageOptionDiskFormat `json:"disk_format,omitempty"` Force *bool `json:"force,omitempty"` ImageName string `json:"image_name"` OsType *CinderExportToImageOptionOsType `json:"__os_type,omitempty"` }
将云硬盘导出为镜像的请求参数
func (CinderExportToImageOption) String ¶
func (o CinderExportToImageOption) String() string
type CinderExportToImageOptionContainerFormat ¶
type CinderExportToImageOptionContainerFormat struct {
// contains filtered or unexported fields
}
func (CinderExportToImageOptionContainerFormat) MarshalJSON ¶
func (c CinderExportToImageOptionContainerFormat) MarshalJSON() ([]byte, error)
func (*CinderExportToImageOptionContainerFormat) UnmarshalJSON ¶
func (c *CinderExportToImageOptionContainerFormat) UnmarshalJSON(b []byte) error
type CinderExportToImageOptionContainerFormatEnum ¶
type CinderExportToImageOptionContainerFormatEnum struct { AMI CinderExportToImageOptionContainerFormat ARI CinderExportToImageOptionContainerFormat AKI CinderExportToImageOptionContainerFormat OVF CinderExportToImageOptionContainerFormat BARE CinderExportToImageOptionContainerFormat }
func GetCinderExportToImageOptionContainerFormatEnum ¶
func GetCinderExportToImageOptionContainerFormatEnum() CinderExportToImageOptionContainerFormatEnum
type CinderExportToImageOptionDiskFormat ¶
type CinderExportToImageOptionDiskFormat struct {
// contains filtered or unexported fields
}
func (CinderExportToImageOptionDiskFormat) MarshalJSON ¶
func (c CinderExportToImageOptionDiskFormat) MarshalJSON() ([]byte, error)
func (*CinderExportToImageOptionDiskFormat) UnmarshalJSON ¶
func (c *CinderExportToImageOptionDiskFormat) UnmarshalJSON(b []byte) error
type CinderExportToImageOptionDiskFormatEnum ¶
type CinderExportToImageOptionDiskFormatEnum struct { VHD CinderExportToImageOptionDiskFormat ZVHD CinderExportToImageOptionDiskFormat ZVHD2 CinderExportToImageOptionDiskFormat RAW CinderExportToImageOptionDiskFormat QCOW2 CinderExportToImageOptionDiskFormat }
func GetCinderExportToImageOptionDiskFormatEnum ¶
func GetCinderExportToImageOptionDiskFormatEnum() CinderExportToImageOptionDiskFormatEnum
type CinderExportToImageOptionOsType ¶
type CinderExportToImageOptionOsType struct {
// contains filtered or unexported fields
}
func (CinderExportToImageOptionOsType) MarshalJSON ¶
func (c CinderExportToImageOptionOsType) MarshalJSON() ([]byte, error)
func (*CinderExportToImageOptionOsType) UnmarshalJSON ¶
func (c *CinderExportToImageOptionOsType) UnmarshalJSON(b []byte) error
type CinderExportToImageOptionOsTypeEnum ¶
type CinderExportToImageOptionOsTypeEnum struct { WINDOWS CinderExportToImageOptionOsType LINUX CinderExportToImageOptionOsType }
func GetCinderExportToImageOptionOsTypeEnum ¶
func GetCinderExportToImageOptionOsTypeEnum() CinderExportToImageOptionOsTypeEnum
type CinderExportToImageRequest ¶
type CinderExportToImageRequest struct { VolumeId string `json:"volume_id"` Body *CinderExportToImageRequestBody `json:"body,omitempty"` }
Request Object
func (CinderExportToImageRequest) String ¶
func (o CinderExportToImageRequest) String() string
type CinderExportToImageRequestBody ¶
type CinderExportToImageRequestBody struct {
OsVolumeUploadImage *CinderExportToImageOption `json:"os-volume_upload_image"`
}
This is a auto create Body Object
func (CinderExportToImageRequestBody) String ¶
func (o CinderExportToImageRequestBody) String() string
type CinderExportToImageResponse ¶
type CinderExportToImageResponse struct { OsVolumeUploadImage *Image `json:"os-volume_upload_image,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CinderExportToImageResponse) String ¶
func (o CinderExportToImageResponse) String() string
type CinderListAvailabilityZonesRequest ¶
type CinderListAvailabilityZonesRequest struct { }
Request Object
func (CinderListAvailabilityZonesRequest) String ¶
func (o CinderListAvailabilityZonesRequest) String() string
type CinderListAvailabilityZonesResponse ¶
type CinderListAvailabilityZonesResponse struct { AvailabilityZoneInfo *[]AzInfo `json:"availabilityZoneInfo,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CinderListAvailabilityZonesResponse) String ¶
func (o CinderListAvailabilityZonesResponse) String() string
type CinderListQuotasRequest ¶
type CinderListQuotasRequest struct { TargetProjectId string `json:"target_project_id"` Usage CinderListQuotasRequestUsage `json:"usage"` }
Request Object
func (CinderListQuotasRequest) String ¶
func (o CinderListQuotasRequest) String() string
type CinderListQuotasRequestUsage ¶
type CinderListQuotasRequestUsage struct {
// contains filtered or unexported fields
}
func (CinderListQuotasRequestUsage) MarshalJSON ¶
func (c CinderListQuotasRequestUsage) MarshalJSON() ([]byte, error)
func (*CinderListQuotasRequestUsage) UnmarshalJSON ¶
func (c *CinderListQuotasRequestUsage) UnmarshalJSON(b []byte) error
type CinderListQuotasRequestUsageEnum ¶
type CinderListQuotasRequestUsageEnum struct {
TRUE CinderListQuotasRequestUsage
}
func GetCinderListQuotasRequestUsageEnum ¶
func GetCinderListQuotasRequestUsageEnum() CinderListQuotasRequestUsageEnum
type CinderListQuotasResponse ¶
type CinderListQuotasResponse struct { QuotaSet *QuotaList `json:"quota_set,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CinderListQuotasResponse) String ¶
func (o CinderListQuotasResponse) String() string
type CinderListVolumeTypesRequest ¶
type CinderListVolumeTypesRequest struct { }
Request Object
func (CinderListVolumeTypesRequest) String ¶
func (o CinderListVolumeTypesRequest) String() string
type CinderListVolumeTypesResponse ¶
type CinderListVolumeTypesResponse struct { VolumeTypes *[]VolumeType `json:"volume_types,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CinderListVolumeTypesResponse) String ¶
func (o CinderListVolumeTypesResponse) String() string
type CreateSnapshotOption ¶
type CreateSnapshotOption struct { VolumeId string `json:"volume_id"` Force *bool `json:"force,omitempty"` Metadata map[string]string `json:"metadata,omitempty"` Description *string `json:"description,omitempty"` Name *string `json:"name,omitempty"` }
快照信息。
func (CreateSnapshotOption) String ¶
func (o CreateSnapshotOption) String() string
type CreateSnapshotRequest ¶
type CreateSnapshotRequest struct {
Body *CreateSnapshotRequestBody `json:"body,omitempty"`
}
Request Object
func (CreateSnapshotRequest) String ¶
func (o CreateSnapshotRequest) String() string
type CreateSnapshotRequestBody ¶
type CreateSnapshotRequestBody struct {
Snapshot *CreateSnapshotOption `json:"snapshot"`
}
This is a auto create Body Object
func (CreateSnapshotRequestBody) String ¶
func (o CreateSnapshotRequestBody) String() string
type CreateSnapshotResponse ¶
type CreateSnapshotResponse struct { Snapshot *SnapshotDetails `json:"snapshot,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CreateSnapshotResponse) String ¶
func (o CreateSnapshotResponse) String() string
type CreateVolumeOption ¶
type CreateVolumeOption struct { AvailabilityZone string `json:"availability_zone"` BackupId *string `json:"backup_id,omitempty"` Count *int32 `json:"count,omitempty"` Description *string `json:"description,omitempty"` EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` ImageRef *string `json:"imageRef,omitempty"` Metadata map[string]string `json:"metadata,omitempty"` Multiattach *bool `json:"multiattach,omitempty"` Name *string `json:"name,omitempty"` Size *int32 `json:"size,omitempty"` SnapshotId *string `json:"snapshot_id,omitempty"` VolumeType CreateVolumeOptionVolumeType `json:"volume_type"` Tags map[string]string `json:"tags,omitempty"` }
创建云硬盘的信息。
func (CreateVolumeOption) String ¶
func (o CreateVolumeOption) String() string
type CreateVolumeOptionShareable ¶
type CreateVolumeOptionShareable struct {
// contains filtered or unexported fields
}
func (CreateVolumeOptionShareable) MarshalJSON ¶
func (c CreateVolumeOptionShareable) MarshalJSON() ([]byte, error)
func (*CreateVolumeOptionShareable) UnmarshalJSON ¶
func (c *CreateVolumeOptionShareable) UnmarshalJSON(b []byte) error
type CreateVolumeOptionShareableEnum ¶
type CreateVolumeOptionShareableEnum struct {}
func GetCreateVolumeOptionShareableEnum ¶
func GetCreateVolumeOptionShareableEnum() CreateVolumeOptionShareableEnum
type CreateVolumeOptionVolumeType ¶
type CreateVolumeOptionVolumeType struct {
// contains filtered or unexported fields
}
func (CreateVolumeOptionVolumeType) MarshalJSON ¶
func (c CreateVolumeOptionVolumeType) MarshalJSON() ([]byte, error)
func (*CreateVolumeOptionVolumeType) UnmarshalJSON ¶
func (c *CreateVolumeOptionVolumeType) UnmarshalJSON(b []byte) error
type CreateVolumeOptionVolumeTypeEnum ¶
type CreateVolumeOptionVolumeTypeEnum struct { SSD CreateVolumeOptionVolumeType GPSSD CreateVolumeOptionVolumeType SAS CreateVolumeOptionVolumeType SATA CreateVolumeOptionVolumeType }
func GetCreateVolumeOptionVolumeTypeEnum ¶
func GetCreateVolumeOptionVolumeTypeEnum() CreateVolumeOptionVolumeTypeEnum
type CreateVolumeRequest ¶
type CreateVolumeRequest struct {
Body *CreateVolumeRequestBody `json:"body,omitempty"`
}
Request Object
func (CreateVolumeRequest) String ¶
func (o CreateVolumeRequest) String() string
type CreateVolumeRequestBody ¶
type CreateVolumeRequestBody struct { BssParam *BssParamForCreateVolume `json:"bssParam,omitempty"` Volume *CreateVolumeOption `json:"volume"` ServerId *string `json:"server_id,omitempty"` OSSCHHNTschedulerHints *CreateVolumeSchedulerHints `json:"OS-SCH-HNT:scheduler_hints,omitempty"` }
This is a auto create Body Object
func (CreateVolumeRequestBody) String ¶
func (o CreateVolumeRequestBody) String() string
type CreateVolumeResponse ¶
type CreateVolumeResponse struct { JobId *string `json:"job_id,omitempty"` OrderId *string `json:"order_id,omitempty"` VolumeIds *[]string `json:"volume_ids,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CreateVolumeResponse) String ¶
func (o CreateVolumeResponse) String() string
type CreateVolumeSchedulerHints ¶
type CreateVolumeSchedulerHints struct {
DedicatedStorageId *string `json:"dedicated_storage_id,omitempty"`
}
创建云硬盘的调度参数。
func (CreateVolumeSchedulerHints) String ¶
func (o CreateVolumeSchedulerHints) String() string
type DeleteSnapshotRequest ¶
type DeleteSnapshotRequest struct {
SnapshotId string `json:"snapshot_id"`
}
Request Object
func (DeleteSnapshotRequest) String ¶
func (o DeleteSnapshotRequest) String() string
type DeleteSnapshotResponse ¶
type DeleteSnapshotResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (DeleteSnapshotResponse) String ¶
func (o DeleteSnapshotResponse) String() string
type DeleteTagsOption ¶
type DeleteTagsOption struct {
Key string `json:"key"`
}
func (DeleteTagsOption) String ¶
func (o DeleteTagsOption) String() string
type DeleteVolumeRequest ¶
type DeleteVolumeRequest struct {
VolumeId string `json:"volume_id"`
}
Request Object
func (DeleteVolumeRequest) String ¶
func (o DeleteVolumeRequest) String() string
type DeleteVolumeResponse ¶
type DeleteVolumeResponse struct { JobId *string `json:"job_id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (DeleteVolumeResponse) String ¶
func (o DeleteVolumeResponse) String() string
type Image ¶
type Image struct { ContainerFormat *string `json:"container_format,omitempty"` DiskFormat *string `json:"disk_format,omitempty"` DisplayDescription *string `json:"display_description,omitempty"` Id string `json:"id"` ImageId string `json:"image_id"` ImageName string `json:"image_name"` Size int32 `json:"size"` Status string `json:"status"` UpdatedAt string `json:"updated_at"` VolumeType *VolumeType `json:"volume_type,omitempty"` }
type JobEntities ¶
type JobEntities struct { VolumeType *string `json:"volume_type,omitempty"` Size *int32 `json:"size,omitempty"` VolumeId *string `json:"volume_id,omitempty"` Name *string `json:"name,omitempty"` SubJobs *[]SubJob `json:"sub_jobs,omitempty"` }
Job的响应信息。
func (JobEntities) String ¶
func (o JobEntities) String() string
type ListSnapshotsRequest ¶
type ListSnapshotsRequest struct { Offset *int32 `json:"offset,omitempty"` Limit *int32 `json:"limit,omitempty"` Name *string `json:"name,omitempty"` Status *string `json:"status,omitempty"` VolumeId *string `json:"volume_id,omitempty"` AvailabilityZone *string `json:"availability_zone,omitempty"` Id *string `json:"id,omitempty"` DedicatedStorageName *string `json:"dedicated_storage_name,omitempty"` DedicatedStorageId *string `json:"dedicated_storage_id,omitempty"` ServiceType *string `json:"service_type,omitempty"` EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` }
Request Object
func (ListSnapshotsRequest) String ¶
func (o ListSnapshotsRequest) String() string
type ListSnapshotsResponse ¶
type ListSnapshotsResponse struct { Count *int32 `json:"count,omitempty"` Snapshots *[]SnapshotList `json:"snapshots,omitempty"` SnapshotsLinks *[]Link `json:"snapshots_links,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListSnapshotsResponse) String ¶
func (o ListSnapshotsResponse) String() string
type ListVolumeTagsRequest ¶
type ListVolumeTagsRequest struct { }
Request Object
func (ListVolumeTagsRequest) String ¶
func (o ListVolumeTagsRequest) String() string
type ListVolumeTagsResponse ¶
type ListVolumeTagsResponse struct { Tags map[string][]string `json:"tags,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListVolumeTagsResponse) String ¶
func (o ListVolumeTagsResponse) String() string
type ListVolumesByTagsRequest ¶
type ListVolumesByTagsRequest struct {
Body *ListVolumesByTagsRequestBody `json:"body,omitempty"`
}
Request Object
func (ListVolumesByTagsRequest) String ¶
func (o ListVolumesByTagsRequest) String() string
type ListVolumesByTagsRequestBody ¶
type ListVolumesByTagsRequestBody struct { Action ListVolumesByTagsRequestBodyAction `json:"action"` Limit *int32 `json:"limit,omitempty"` Matches *[]Match `json:"matches,omitempty"` Offset *int32 `json:"offset,omitempty"` Tags []TagsForListVolumes `json:"tags"` }
This is a auto create Body Object
func (ListVolumesByTagsRequestBody) String ¶
func (o ListVolumesByTagsRequestBody) String() string
type ListVolumesByTagsRequestBodyAction ¶
type ListVolumesByTagsRequestBodyAction struct {
// contains filtered or unexported fields
}
func (ListVolumesByTagsRequestBodyAction) MarshalJSON ¶
func (c ListVolumesByTagsRequestBodyAction) MarshalJSON() ([]byte, error)
func (*ListVolumesByTagsRequestBodyAction) UnmarshalJSON ¶
func (c *ListVolumesByTagsRequestBodyAction) UnmarshalJSON(b []byte) error
type ListVolumesByTagsRequestBodyActionEnum ¶
type ListVolumesByTagsRequestBodyActionEnum struct {
FILTER ListVolumesByTagsRequestBodyAction
}
func GetListVolumesByTagsRequestBodyActionEnum ¶
func GetListVolumesByTagsRequestBodyActionEnum() ListVolumesByTagsRequestBodyActionEnum
type ListVolumesByTagsResponse ¶
type ListVolumesByTagsResponse struct { TotalCount *int32 `json:"total_count,omitempty"` Resources *[]Resource `json:"resources,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListVolumesByTagsResponse) String ¶
func (o ListVolumesByTagsResponse) String() string
type ListVolumesRequest ¶
type ListVolumesRequest struct { Marker *string `json:"marker,omitempty"` Name *string `json:"name,omitempty"` Limit *int32 `json:"limit,omitempty"` SortKey *string `json:"sort_key,omitempty"` Offset *int32 `json:"offset,omitempty"` SortDir *string `json:"sort_dir,omitempty"` Status *string `json:"status,omitempty"` Metadata *string `json:"metadata,omitempty"` AvailabilityZone *string `json:"availability_zone,omitempty"` Multiattach *bool `json:"multiattach,omitempty"` ServiceType *string `json:"service_type,omitempty"` DedicatedStorageId *string `json:"dedicated_storage_id,omitempty"` DedicatedStorageName *string `json:"dedicated_storage_name,omitempty"` VolumeTypeId *string `json:"volume_type_id,omitempty"` Id *string `json:"id,omitempty"` Ids *string `json:"ids,omitempty"` EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` }
Request Object
func (ListVolumesRequest) String ¶
func (o ListVolumesRequest) String() string
type ListVolumesResponse ¶
type ListVolumesResponse struct { Count *int32 `json:"count,omitempty"` VolumesLinks *[]Link `json:"volumes_links,omitempty"` Volumes *[]VolumeDetail `json:"volumes,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListVolumesResponse) String ¶
func (o ListVolumesResponse) String() string
type MatchKey ¶
type MatchKey struct {
// contains filtered or unexported fields
}
func (MatchKey) MarshalJSON ¶
func (*MatchKey) UnmarshalJSON ¶
type MatchKeyEnum ¶
func GetMatchKeyEnum ¶
func GetMatchKeyEnum() MatchKeyEnum
type QuotaDetail ¶
type QuotaDetail struct { InUse int32 `json:"in_use"` Limit int32 `json:"limit"` Reserved int32 `json:"reserved"` Allocated int32 `json:"allocated"` }
配额详细信息。
func (QuotaDetail) String ¶
func (o QuotaDetail) String() string
type QuotaDetailBackupGigabytes ¶
type QuotaDetailBackupGigabytes struct { InUse int32 `json:"in_use"` Limit int32 `json:"limit"` Reserved int32 `json:"reserved"` Allocated int32 `json:"allocated"` }
备份容量,单位为GB,键值对,包含:reserved(预留)、allocated(预留)、limit(最大)和in_use(已使用)。
func (QuotaDetailBackupGigabytes) String ¶
func (o QuotaDetailBackupGigabytes) String() string
type QuotaDetailBackups ¶
type QuotaDetailBackups struct { InUse int32 `json:"in_use"` Limit int32 `json:"limit"` Reserved int32 `json:"reserved"` Allocated int32 `json:"allocated"` }
备份个数,键值对,包含:reserved(预留)、allocated(预留)、limit(最大)和in_use(已使用)。
func (QuotaDetailBackups) String ¶
func (o QuotaDetailBackups) String() string
type QuotaDetailGigabytes ¶
type QuotaDetailGigabytes struct { InUse int32 `json:"in_use"` Limit int32 `json:"limit"` Reserved int32 `json:"reserved"` Allocated int32 `json:"allocated"` }
总容量,单位为GB,键值对,包含:reserved(预留)、allocated(预留)、limit(最大)和in_use(已使用)。
func (QuotaDetailGigabytes) String ¶
func (o QuotaDetailGigabytes) String() string
type QuotaDetailGigabytesGpssd ¶
type QuotaDetailGigabytesGpssd struct { InUse int32 `json:"in_use"` Limit int32 `json:"limit"` Reserved int32 `json:"reserved"` Allocated int32 `json:"allocated"` }
GPSSD类型云硬盘预留的size大小,单位为GB,键值对,包含:reserved(预留)、allocated(预留)、limit(最大)和in_use(已使用)。
func (QuotaDetailGigabytesGpssd) String ¶
func (o QuotaDetailGigabytesGpssd) String() string
type QuotaDetailGigabytesSas ¶
type QuotaDetailGigabytesSas struct { InUse int32 `json:"in_use"` Limit int32 `json:"limit"` Reserved int32 `json:"reserved"` Allocated int32 `json:"allocated"` }
SAS类型云硬盘预留的size大小,单位为GB,键值对,包含:reserved(预留)、allocated(预留)、limit(最大)和in_use(已使用)。
func (QuotaDetailGigabytesSas) String ¶
func (o QuotaDetailGigabytesSas) String() string
type QuotaDetailGigabytesSata ¶
type QuotaDetailGigabytesSata struct { InUse int32 `json:"in_use"` Limit int32 `json:"limit"` Reserved int32 `json:"reserved"` Allocated int32 `json:"allocated"` }
SATA云硬盘类型预留的容量大小,单位为GB,键值对,包含:reserved(预留)、allocated(预留)、limit(最大)和in_use(已使用)。
func (QuotaDetailGigabytesSata) String ¶
func (o QuotaDetailGigabytesSata) String() string
type QuotaDetailGigabytesSsd ¶
type QuotaDetailGigabytesSsd struct { InUse int32 `json:"in_use"` Limit int32 `json:"limit"` Reserved int32 `json:"reserved"` Allocated int32 `json:"allocated"` }
SSD类型云硬盘预留的size大小,单位为GB,键值对,包含:reserved(预留)、allocated(预留)、limit(最大)和in_use(已使用)。
func (QuotaDetailGigabytesSsd) String ¶
func (o QuotaDetailGigabytesSsd) String() string
type QuotaDetailPerVolumeGigabytes ¶
type QuotaDetailPerVolumeGigabytes struct { InUse int32 `json:"in_use"` Limit int32 `json:"limit"` Reserved int32 `json:"reserved"` Allocated int32 `json:"allocated"` }
每个云硬盘的容量配额限制。键值对,包含:reserved(预留)、allocated(预留)、limit(最大)和in_use(已使用)。
func (QuotaDetailPerVolumeGigabytes) String ¶
func (o QuotaDetailPerVolumeGigabytes) String() string
type QuotaDetailSnapshots ¶
type QuotaDetailSnapshots struct { InUse int32 `json:"in_use"` Limit int32 `json:"limit"` Reserved int32 `json:"reserved"` Allocated int32 `json:"allocated"` }
快照个数,键值对,包含:reserved(预留)、allocated(预留)、limit(最大)和in_use(已使用)。
func (QuotaDetailSnapshots) String ¶
func (o QuotaDetailSnapshots) String() string
type QuotaDetailSnapshotsGpssd ¶
type QuotaDetailSnapshotsGpssd struct { InUse int32 `json:"in_use"` Limit int32 `json:"limit"` Reserved int32 `json:"reserved"` Allocated int32 `json:"allocated"` }
GPSSD类型云硬盘预留快照个数,键值对,包含:reserved(预留)、allocated(预留)、limit(最大)和in_use(已使用)。
func (QuotaDetailSnapshotsGpssd) String ¶
func (o QuotaDetailSnapshotsGpssd) String() string
type QuotaDetailSnapshotsSas ¶
type QuotaDetailSnapshotsSas struct { InUse int32 `json:"in_use"` Limit int32 `json:"limit"` Reserved int32 `json:"reserved"` Allocated int32 `json:"allocated"` }
SAS类型云硬盘预留快照个数,键值对,包含:reserved(预留)、allocated(预留)、limit(最大)和in_use(已使用)。
func (QuotaDetailSnapshotsSas) String ¶
func (o QuotaDetailSnapshotsSas) String() string
type QuotaDetailSnapshotsSata ¶
type QuotaDetailSnapshotsSata struct { InUse int32 `json:"in_use"` Limit int32 `json:"limit"` Reserved int32 `json:"reserved"` Allocated int32 `json:"allocated"` }
SATA云硬盘类型预留快照个数,键值对,包含:reserved(预留)、allocated(预留)、limit(最大)和in_use(已使用)。
func (QuotaDetailSnapshotsSata) String ¶
func (o QuotaDetailSnapshotsSata) String() string
type QuotaDetailSnapshotsSsd ¶
type QuotaDetailSnapshotsSsd struct { InUse int32 `json:"in_use"` Limit int32 `json:"limit"` Reserved int32 `json:"reserved"` Allocated int32 `json:"allocated"` }
SSD类型云硬盘预留快照个数,键值对,包含:reserved(预留)、allocated(预留)、limit(最大)和in_use(已使用)。
func (QuotaDetailSnapshotsSsd) String ¶
func (o QuotaDetailSnapshotsSsd) String() string
type QuotaDetailVolumes ¶
type QuotaDetailVolumes struct { InUse int32 `json:"in_use"` Limit int32 `json:"limit"` Reserved int32 `json:"reserved"` Allocated int32 `json:"allocated"` }
云硬盘个数,键值对,包含:reserved(预留)、allocated(预留)、limit(最大)和in_use(已使用)。
func (QuotaDetailVolumes) String ¶
func (o QuotaDetailVolumes) String() string
type QuotaDetailVolumesGpssd ¶
type QuotaDetailVolumesGpssd struct { InUse int32 `json:"in_use"` Limit int32 `json:"limit"` Reserved int32 `json:"reserved"` Allocated int32 `json:"allocated"` }
GPSSD类型云硬盘预留的云硬盘个数,键值对,包含:reserved(预留)、allocated(预留)、limit(最大)和in_use(已使用)。
func (QuotaDetailVolumesGpssd) String ¶
func (o QuotaDetailVolumesGpssd) String() string
type QuotaDetailVolumesSas ¶
type QuotaDetailVolumesSas struct { InUse int32 `json:"in_use"` Limit int32 `json:"limit"` Reserved int32 `json:"reserved"` Allocated int32 `json:"allocated"` }
SAS类型云硬盘预留的云硬盘个数,键值对,包含:reserved(预留)、allocated(预留)、limit(最大)和in_use(已使用)。
func (QuotaDetailVolumesSas) String ¶
func (o QuotaDetailVolumesSas) String() string
type QuotaDetailVolumesSata ¶
type QuotaDetailVolumesSata struct { InUse int32 `json:"in_use"` Limit int32 `json:"limit"` Reserved int32 `json:"reserved"` Allocated int32 `json:"allocated"` }
SATA云硬盘类型预留的云硬盘个数,键值对,包含:reserved(预留)、allocated(预留)、limit(最大)和in_use(已使用)。
func (QuotaDetailVolumesSata) String ¶
func (o QuotaDetailVolumesSata) String() string
type QuotaDetailVolumesSsd ¶
type QuotaDetailVolumesSsd struct { InUse int32 `json:"in_use"` Limit int32 `json:"limit"` Reserved int32 `json:"reserved"` Allocated int32 `json:"allocated"` }
SSD类型云硬盘预留的云硬盘个数,键值对,包含:reserved(预留)、allocated(预留)、limit(最大)和in_use(已使用)。
func (QuotaDetailVolumesSsd) String ¶
func (o QuotaDetailVolumesSsd) String() string
type QuotaList ¶
type QuotaList struct { BackupGigabytes *QuotaDetailBackupGigabytes `json:"backup_gigabytes"` Backups *QuotaDetailBackups `json:"backups"` Gigabytes *QuotaDetailGigabytes `json:"gigabytes"` Id string `json:"id"` Snapshots *QuotaDetailSnapshots `json:"snapshots"` Volumes *QuotaDetailVolumes `json:"volumes"` GigabytesSATA *QuotaDetailGigabytesSata `json:"gigabytes_SATA,omitempty"` SnapshotsSATA *QuotaDetailSnapshotsSata `json:"snapshots_SATA,omitempty"` VolumesSATA *QuotaDetailVolumesSata `json:"volumes_SATA,omitempty"` GigabytesSAS *QuotaDetailGigabytesSas `json:"gigabytes_SAS,omitempty"` SnapshotsSAS *QuotaDetailSnapshotsSas `json:"snapshots_SAS,omitempty"` VolumesSAS *QuotaDetailVolumesSas `json:"volumes_SAS,omitempty"` GigabytesSSD *QuotaDetailGigabytesSsd `json:"gigabytes_SSD,omitempty"` SnapshotsSSD *QuotaDetailSnapshotsSsd `json:"snapshots_SSD,omitempty"` VolumesSSD *QuotaDetailVolumesSsd `json:"volumes_SSD,omitempty"` GigabytesGPSSD *QuotaDetailGigabytesGpssd `json:"gigabytes_GPSSD,omitempty"` SnapshotsGPSSD *QuotaDetailSnapshotsGpssd `json:"snapshots_GPSSD,omitempty"` VolumesGPSSD *QuotaDetailVolumesGpssd `json:"volumes_GPSSD,omitempty"` PerVolumeGigabytes *QuotaDetailPerVolumeGigabytes `json:"per_volume_gigabytes,omitempty"` }
配额信息。
type ResizeVolumeRequest ¶
type ResizeVolumeRequest struct { VolumeId string `json:"volume_id"` Body *ResizeVolumeRequestBody `json:"body,omitempty"` }
Request Object
func (ResizeVolumeRequest) String ¶
func (o ResizeVolumeRequest) String() string
type ResizeVolumeRequestBody ¶
type ResizeVolumeRequestBody struct { BssParam *BssParamForResizeVolume `json:"bssParam,omitempty"` OsExtend *OsExtend `json:"os-extend"` }
This is a auto create Body Object
func (ResizeVolumeRequestBody) String ¶
func (o ResizeVolumeRequestBody) String() string
type ResizeVolumeResponse ¶
type ResizeVolumeResponse struct { JobId *string `json:"job_id,omitempty"` OrderId *string `json:"order_id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ResizeVolumeResponse) String ¶
func (o ResizeVolumeResponse) String() string
type Resource ¶
type Resource struct { ResourceId string `json:"resource_id"` ResourceName *string `json:"resource_name,omitempty"` ResourceDetail *VolumeDetailForTag `json:"resource_detail"` Tags []map[string]string `json:"tags"` }
type RollbackInfo ¶
type RollbackInfo struct {
VolumeId string `json:"volume_id"`
}
func (RollbackInfo) String ¶
func (o RollbackInfo) String() string
type RollbackSnapshotOption ¶
type RollbackSnapshotOption struct { Name *string `json:"name,omitempty"` VolumeId string `json:"volume_id"` }
func (RollbackSnapshotOption) String ¶
func (o RollbackSnapshotOption) String() string
type RollbackSnapshotRequest ¶
type RollbackSnapshotRequest struct { SnapshotId string `json:"snapshot_id"` Body *RollbackSnapshotRequestBody `json:"body,omitempty"` }
Request Object
func (RollbackSnapshotRequest) String ¶
func (o RollbackSnapshotRequest) String() string
type RollbackSnapshotRequestBody ¶
type RollbackSnapshotRequestBody struct {
Rollback *RollbackSnapshotOption `json:"rollback"`
}
This is a auto create Body Object
func (RollbackSnapshotRequestBody) String ¶
func (o RollbackSnapshotRequestBody) String() string
type RollbackSnapshotResponse ¶
type RollbackSnapshotResponse struct { Rollback *RollbackInfo `json:"rollback,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RollbackSnapshotResponse) String ¶
func (o RollbackSnapshotResponse) String() string
type ShowJobRequest ¶
type ShowJobRequest struct {
JobId string `json:"job_id"`
}
Request Object
func (ShowJobRequest) String ¶
func (o ShowJobRequest) String() string
type ShowJobResponse ¶
type ShowJobResponse struct { Status *ShowJobResponseStatus `json:"status,omitempty"` Entities *JobEntities `json:"entities,omitempty"` JobId *string `json:"job_id,omitempty"` JobType *string `json:"job_type,omitempty"` BeginTime *string `json:"begin_time,omitempty"` EndTime *string `json:"end_time,omitempty"` ErrorCode *string `json:"error_code,omitempty"` FailReason *string `json:"fail_reason,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowJobResponse) String ¶
func (o ShowJobResponse) String() string
type ShowJobResponseStatus ¶
type ShowJobResponseStatus struct {
// contains filtered or unexported fields
}
func (ShowJobResponseStatus) MarshalJSON ¶
func (c ShowJobResponseStatus) MarshalJSON() ([]byte, error)
func (*ShowJobResponseStatus) UnmarshalJSON ¶
func (c *ShowJobResponseStatus) UnmarshalJSON(b []byte) error
type ShowJobResponseStatusEnum ¶
type ShowJobResponseStatusEnum struct { SUCCESS ShowJobResponseStatus RUNNING ShowJobResponseStatus FAIL ShowJobResponseStatus INIT ShowJobResponseStatus }
func GetShowJobResponseStatusEnum ¶
func GetShowJobResponseStatusEnum() ShowJobResponseStatusEnum
type ShowSnapshotRequest ¶
type ShowSnapshotRequest struct {
SnapshotId string `json:"snapshot_id"`
}
Request Object
func (ShowSnapshotRequest) String ¶
func (o ShowSnapshotRequest) String() string
type ShowSnapshotResponse ¶
type ShowSnapshotResponse struct { Snapshot *SnapshotDetails `json:"snapshot,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowSnapshotResponse) String ¶
func (o ShowSnapshotResponse) String() string
type ShowVolumeRequest ¶
type ShowVolumeRequest struct {
VolumeId string `json:"volume_id"`
}
Request Object
func (ShowVolumeRequest) String ¶
func (o ShowVolumeRequest) String() string
type ShowVolumeResponse ¶
type ShowVolumeResponse struct { Volume *VolumeDetail `json:"volume,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowVolumeResponse) String ¶
func (o ShowVolumeResponse) String() string
type ShowVolumeTagsRequest ¶
type ShowVolumeTagsRequest struct {
VolumeId string `json:"volume_id"`
}
Request Object
func (ShowVolumeTagsRequest) String ¶
func (o ShowVolumeTagsRequest) String() string
type ShowVolumeTagsResponse ¶
type ShowVolumeTagsResponse struct { Tags *[]Tag `json:"tags,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowVolumeTagsResponse) String ¶
func (o ShowVolumeTagsResponse) String() string
type SnapshotDetails ¶
type SnapshotDetails struct { Id *string `json:"id,omitempty"` Status *string `json:"status,omitempty"` Name *string `json:"name,omitempty"` Description *string `json:"description,omitempty"` CreatedAt *string `json:"created_at,omitempty"` UpdatedAt *string `json:"updated_at,omitempty"` Metadata *interface{} `json:"metadata,omitempty"` VolumeId *string `json:"volume_id,omitempty"` Size *int32 `json:"size,omitempty"` OsExtendedSnapshotAttributesprojectId *string `json:"os-extended-snapshot-attributes:project_id,omitempty"` OsExtendedSnapshotAttributesprogress *string `json:"os-extended-snapshot-attributes:progress,omitempty"` }
快照详情。
func (SnapshotDetails) String ¶
func (o SnapshotDetails) String() string
type SnapshotList ¶
type SnapshotList struct { Id string `json:"id"` Status string `json:"status"` Name *string `json:"name,omitempty"` Description *string `json:"description,omitempty"` CreatedAt string `json:"created_at"` UpdatedAt *string `json:"updated_at,omitempty"` Metadata map[string]string `json:"metadata,omitempty"` VolumeId string `json:"volume_id"` Size int32 `json:"size"` OsExtendedSnapshotAttributesprojectId string `json:"os-extended-snapshot-attributes:project_id"` OsExtendedSnapshotAttributesprogress string `json:"os-extended-snapshot-attributes:progress"` DedicatedStorageId *string `json:"dedicated_storage_id,omitempty"` DedicatedStorageName *string `json:"dedicated_storage_name,omitempty"` ServiceType string `json:"service_type"` }
快照列表信息。
func (SnapshotList) String ¶
func (o SnapshotList) String() string
type SubJob ¶
type SubJob struct { Status SubJobStatus `json:"status"` Entities *SubJobEntities `json:"entities"` JobId string `json:"job_id"` JobType string `json:"job_type"` BeginTime string `json:"begin_time"` EndTime string `json:"end_time"` ErrorCode string `json:"error_code"` FailReason string `json:"fail_reason"` }
子Job的详细信息。
type SubJobEntities ¶
type SubJobEntities struct { VolumeType *string `json:"volume_type,omitempty"` Size *int32 `json:"size,omitempty"` VolumeId *string `json:"volume_id,omitempty"` Name *string `json:"name,omitempty"` }
子Job的响应信息。
func (SubJobEntities) String ¶
func (o SubJobEntities) String() string
type SubJobStatus ¶
type SubJobStatus struct {
// contains filtered or unexported fields
}
func (SubJobStatus) MarshalJSON ¶
func (c SubJobStatus) MarshalJSON() ([]byte, error)
func (*SubJobStatus) UnmarshalJSON ¶
func (c *SubJobStatus) UnmarshalJSON(b []byte) error
type SubJobStatusEnum ¶
type SubJobStatusEnum struct { SUCCESS SubJobStatus RUNNING SubJobStatus FAIL SubJobStatus INIT SubJobStatus }
func GetSubJobStatusEnum ¶
func GetSubJobStatusEnum() SubJobStatusEnum
type TagsForListVolumes ¶
func (TagsForListVolumes) String ¶
func (o TagsForListVolumes) String() string
type UpdateSnapshotOption ¶
type UpdateSnapshotOption struct { Description *string `json:"description,omitempty"` Name *string `json:"name,omitempty"` }
func (UpdateSnapshotOption) String ¶
func (o UpdateSnapshotOption) String() string
type UpdateSnapshotRequest ¶
type UpdateSnapshotRequest struct { SnapshotId string `json:"snapshot_id"` Body *UpdateSnapshotRequestBody `json:"body,omitempty"` }
Request Object
func (UpdateSnapshotRequest) String ¶
func (o UpdateSnapshotRequest) String() string
type UpdateSnapshotRequestBody ¶
type UpdateSnapshotRequestBody struct {
Snapshot *UpdateSnapshotOption `json:"snapshot"`
}
This is a auto create Body Object
func (UpdateSnapshotRequestBody) String ¶
func (o UpdateSnapshotRequestBody) String() string
type UpdateSnapshotResponse ¶
type UpdateSnapshotResponse struct { Snapshot *SnapshotDetails `json:"snapshot,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (UpdateSnapshotResponse) String ¶
func (o UpdateSnapshotResponse) String() string
type UpdateVolumeOption ¶
type UpdateVolumeOption struct { Description *string `json:"description,omitempty"` Name *string `json:"name,omitempty"` }
func (UpdateVolumeOption) String ¶
func (o UpdateVolumeOption) String() string
type UpdateVolumeRequest ¶
type UpdateVolumeRequest struct { VolumeId string `json:"volume_id"` Body *UpdateVolumeRequestBody `json:"body,omitempty"` }
Request Object
func (UpdateVolumeRequest) String ¶
func (o UpdateVolumeRequest) String() string
type UpdateVolumeRequestBody ¶
type UpdateVolumeRequestBody struct {
Volume *UpdateVolumeOption `json:"volume"`
}
This is a auto create Body Object
func (UpdateVolumeRequestBody) String ¶
func (o UpdateVolumeRequestBody) String() string
type UpdateVolumeResponse ¶
type UpdateVolumeResponse struct { Attachments *[]Attachment `json:"attachments,omitempty"` AvailabilityZone *string `json:"availability_zone,omitempty"` Bootable *string `json:"bootable,omitempty"` CreatedAt *string `json:"created_at,omitempty"` Id *string `json:"id,omitempty"` Links *[]Link `json:"links,omitempty"` Metadata *VolumeMetadata `json:"metadata,omitempty"` Multiattach *bool `json:"multiattach,omitempty"` Name *string `json:"name,omitempty"` OsVolHostAttrhost *string `json:"os-vol-host-attr:host,omitempty"` OsVolTenantAttrtenantId *string `json:"os-vol-tenant-attr:tenant_id,omitempty"` Size *int32 `json:"size,omitempty"` SnapshotId *string `json:"snapshot_id,omitempty"` SourceVolid *string `json:"source_volid,omitempty"` Status *string `json:"status,omitempty"` VolumeImageMetadata *interface{} `json:"volume_image_metadata,omitempty"` VolumeType *string `json:"volume_type,omitempty"` Description *string `json:"description,omitempty"` OsVolumeReplicationextendedStatus *string `json:"os-volume-replication:extended_status,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (UpdateVolumeResponse) String ¶
func (o UpdateVolumeResponse) String() string
type VolumeDetail ¶
type VolumeDetail struct { Id string `json:"id"` Links []Link `json:"links"` Name string `json:"name"` Status string `json:"status"` Attachments []Attachment `json:"attachments"` AvailabilityZone string `json:"availability_zone"` OsVolHostAttrhost string `json:"os-vol-host-attr:host"` SourceVolid *string `json:"source_volid,omitempty"` SnapshotId string `json:"snapshot_id"` Description string `json:"description"` CreatedAt string `json:"created_at"` OsVolTenantAttrtenantId string `json:"os-vol-tenant-attr:tenant_id"` VolumeImageMetadata map[string]interface{} `json:"volume_image_metadata"` VolumeType string `json:"volume_type"` Size int32 `json:"size"` ConsistencygroupId *string `json:"consistencygroup_id,omitempty"` Bootable string `json:"bootable"` Metadata *VolumeMetadata `json:"metadata"` UpdatedAt string `json:"updated_at"` Encrypted *bool `json:"encrypted,omitempty"` ReplicationStatus string `json:"replication_status"` OsVolumeReplicationextendedStatus string `json:"os-volume-replication:extended_status"` OsVolMigStatusAttrmigstat string `json:"os-vol-mig-status-attr:migstat"` OsVolMigStatusAttrnameId string `json:"os-vol-mig-status-attr:name_id"` UserId string `json:"user_id"` ServiceType string `json:"service_type"` Multiattach bool `json:"multiattach"` DedicatedStorageId *string `json:"dedicated_storage_id,omitempty"` DedicatedStorageName *string `json:"dedicated_storage_name,omitempty"` Tags map[string]string `json:"tags"` Wwn *string `json:"wwn,omitempty"` EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` }
云硬盘详情。
func (VolumeDetail) String ¶
func (o VolumeDetail) String() string
type VolumeDetailForTag ¶
type VolumeDetailForTag struct { Id string `json:"id"` Links []Link `json:"links"` Name string `json:"name"` Status string `json:"status"` Attachments []Attachment `json:"attachments"` AvailabilityZone string `json:"availability_zone"` OsVolHostAttrhost string `json:"os-vol-host-attr:host"` SourceVolid *string `json:"source_volid,omitempty"` SnapshotId string `json:"snapshot_id"` Description string `json:"description"` CreatedAt string `json:"created_at"` OsVolTenantAttrtenantId string `json:"os-vol-tenant-attr:tenant_id"` VolumeImageMetadata map[string]interface{} `json:"volume_image_metadata"` VolumeType string `json:"volume_type"` Size int32 `json:"size"` ConsistencygroupId *string `json:"consistencygroup_id,omitempty"` Bootable string `json:"bootable"` Metadata *VolumeMetadata `json:"metadata"` UpdatedAt string `json:"updated_at"` Encrypted *bool `json:"encrypted,omitempty"` ReplicationStatus string `json:"replication_status"` OsVolumeReplicationextendedStatus string `json:"os-volume-replication:extended_status"` OsVolMigStatusAttrmigstat string `json:"os-vol-mig-status-attr:migstat"` OsVolMigStatusAttrnameId string `json:"os-vol-mig-status-attr:name_id"` UserId string `json:"user_id"` ServiceType string `json:"service_type"` Multiattach bool `json:"multiattach"` DedicatedStorageId *string `json:"dedicated_storage_id,omitempty"` DedicatedStorageName *string `json:"dedicated_storage_name,omitempty"` Tags map[string]string `json:"tags"` Wwn *string `json:"wwn,omitempty"` EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` }
云硬盘详情。
func (VolumeDetailForTag) String ¶
func (o VolumeDetailForTag) String() string
type VolumeMetadata ¶
type VolumeMetadata struct { SystemCmkid *string `json:"__system__cmkid,omitempty"` SystemEncrypted *string `json:"__system__encrypted,omitempty"` FullClone *string `json:"full_clone,omitempty"` Hwpassthrough *string `json:"hw:passthrough,omitempty"` OrderID *string `json:"orderID,omitempty"` }
云硬盘的元数据。
func (VolumeMetadata) String ¶
func (o VolumeMetadata) String() string
type VolumeType ¶
type VolumeType struct { Id string `json:"id"` Name string `json:"name"` ExtraSpecs *VolumeTypeExtraSpecs `json:"extra_specs,omitempty"` Description *string `json:"description,omitempty"` QosSpecsId *string `json:"qos_specs_id,omitempty"` IsPublic *bool `json:"is_public,omitempty"` }
func (VolumeType) String ¶
func (o VolumeType) String() string
type VolumeTypeExtraSpecs ¶
type VolumeTypeExtraSpecs struct { RESKEYavailabilityZones *string `json:"RESKEY:availability_zones,omitempty"` AvailabilityZone *string `json:"availability-zone,omitempty"` OsVendorExtendedsoldOutAvailabilityZones *string `json:"os-vendor-extended:sold_out_availability_zones,omitempty"` VolumeBackendName *string `json:"volume_backend_name,omitempty"` HWavailabilityZone *string `json:"HW:availability_zone,omitempty"` }
云硬盘类型的规格
func (VolumeTypeExtraSpecs) String ¶
func (o VolumeTypeExtraSpecs) String() string
Source Files ¶
- model_attachment.go
- model_az_info.go
- model_batch_create_volume_tags_request.go
- model_batch_create_volume_tags_request_body.go
- model_batch_create_volume_tags_response.go
- model_batch_delete_volume_tags_request.go
- model_batch_delete_volume_tags_request_body.go
- model_batch_delete_volume_tags_response.go
- model_bss_param_for_create_volume.go
- model_bss_param_for_resize_volume.go
- model_cinder_export_to_image_option.go
- model_cinder_export_to_image_request.go
- model_cinder_export_to_image_request_body.go
- model_cinder_export_to_image_response.go
- model_cinder_list_availability_zones_request.go
- model_cinder_list_availability_zones_response.go
- model_cinder_list_quotas_request.go
- model_cinder_list_quotas_response.go
- model_cinder_list_volume_types_request.go
- model_cinder_list_volume_types_response.go
- model_create_snapshot_option.go
- model_create_snapshot_request.go
- model_create_snapshot_request_body.go
- model_create_snapshot_response.go
- model_create_volume_option.go
- model_create_volume_request.go
- model_create_volume_request_body.go
- model_create_volume_response.go
- model_create_volume_scheduler_hints.go
- model_delete_snapshot_request.go
- model_delete_snapshot_response.go
- model_delete_tags_option.go
- model_delete_volume_request.go
- model_delete_volume_response.go
- model_image.go
- model_job_entities.go
- model_link.go
- model_list_snapshots_request.go
- model_list_snapshots_response.go
- model_list_volume_tags_request.go
- model_list_volume_tags_response.go
- model_list_volumes_by_tags_request.go
- model_list_volumes_by_tags_request_body.go
- model_list_volumes_by_tags_response.go
- model_list_volumes_request.go
- model_list_volumes_response.go
- model_match.go
- model_os_extend.go
- model_quota_detail.go
- model_quota_detail_backup_gigabytes.go
- model_quota_detail_backups.go
- model_quota_detail_gigabytes.go
- model_quota_detail_gigabytes_gpssd.go
- model_quota_detail_gigabytes_sas.go
- model_quota_detail_gigabytes_sata.go
- model_quota_detail_gigabytes_ssd.go
- model_quota_detail_per_volume_gigabytes.go
- model_quota_detail_snapshots.go
- model_quota_detail_snapshots_gpssd.go
- model_quota_detail_snapshots_sas.go
- model_quota_detail_snapshots_sata.go
- model_quota_detail_snapshots_ssd.go
- model_quota_detail_volumes.go
- model_quota_detail_volumes_gpssd.go
- model_quota_detail_volumes_sas.go
- model_quota_detail_volumes_sata.go
- model_quota_detail_volumes_ssd.go
- model_quota_list.go
- model_resize_volume_request.go
- model_resize_volume_request_body.go
- model_resize_volume_response.go
- model_resource.go
- model_rollback_info.go
- model_rollback_snapshot_option.go
- model_rollback_snapshot_request.go
- model_rollback_snapshot_request_body.go
- model_rollback_snapshot_response.go
- model_show_job_request.go
- model_show_job_response.go
- model_show_snapshot_request.go
- model_show_snapshot_response.go
- model_show_volume_request.go
- model_show_volume_response.go
- model_show_volume_tags_request.go
- model_show_volume_tags_response.go
- model_snapshot_details.go
- model_snapshot_list.go
- model_sub_job.go
- model_sub_job_entities.go
- model_tag.go
- model_tags_for_list_volumes.go
- model_update_snapshot_option.go
- model_update_snapshot_request.go
- model_update_snapshot_request_body.go
- model_update_snapshot_response.go
- model_update_volume_option.go
- model_update_volume_request.go
- model_update_volume_request_body.go
- model_update_volume_response.go
- model_volume_detail.go
- model_volume_detail_for_tag.go
- model_volume_metadata.go
- model_volume_type.go
- model_volume_type_extra_specs.go
- model_zone_state.go