model

package
v0.0.50 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 4

Documentation

Index

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 AzInfo

type AzInfo struct {
	ZoneName string `json:"zoneName"`

	ZoneState *ZoneState `json:"zoneState"`
}

一个az对象

func (AzInfo) String

func (o AzInfo) String() string

type BatchCreateVolumeTagsRequest

type BatchCreateVolumeTagsRequest struct {
	VolumeId string `json:"volume_id"`

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

Request Object

func (BatchCreateVolumeTagsRequest) String

type BatchCreateVolumeTagsRequestBody

type BatchCreateVolumeTagsRequestBody struct {
	Action BatchCreateVolumeTagsRequestBodyAction `json:"action"`

	Tags []Tag `json:"tags"`
}

This is a auto create Body Object

func (BatchCreateVolumeTagsRequestBody) 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

type BatchDeleteVolumeTagsRequest

type BatchDeleteVolumeTagsRequest struct {
	VolumeId string `json:"volume_id"`

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

Request Object

func (BatchDeleteVolumeTagsRequest) String

type BatchDeleteVolumeTagsRequestBody

type BatchDeleteVolumeTagsRequestBody struct {
	Action BatchDeleteVolumeTagsRequestBodyAction `json:"action"`

	Tags []DeleteTagsOption `json:"tags"`
}

This is a auto create Body Object

func (BatchDeleteVolumeTagsRequestBody) 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

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 (*CinderExportToImageOptionContainerFormat) UnmarshalJSON

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

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 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

type CinderExportToImageRequestBody

type CinderExportToImageRequestBody struct {
	OsVolumeUploadImage *CinderExportToImageOption `json:"os-volume_upload_image"`
}

This is a auto create Body Object

func (CinderExportToImageRequestBody) String

type CinderExportToImageResponse

type CinderExportToImageResponse struct {
	OsVolumeUploadImage *Image `json:"os-volume_upload_image,omitempty"`
	HttpStatusCode      int    `json:"-"`
}

Response Object

func (CinderExportToImageResponse) String

type CinderListAvailabilityZonesRequest

type CinderListAvailabilityZonesRequest struct {
}

Request Object

func (CinderListAvailabilityZonesRequest) String

type CinderListAvailabilityZonesResponse

type CinderListAvailabilityZonesResponse struct {
	AvailabilityZoneInfo *[]AzInfo `json:"availabilityZoneInfo,omitempty"`
	HttpStatusCode       int       `json:"-"`
}

Response Object

func (CinderListAvailabilityZonesResponse) 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

type CinderListVolumeTypesResponse

type CinderListVolumeTypesResponse struct {
	VolumeTypes    *[]VolumeType `json:"volume_types,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (CinderListVolumeTypesResponse) 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 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 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

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"`
}

func (Image) String

func (o Image) String() string

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 Link struct {
	Href *string `json:"href,omitempty"`

	Rel *string `json:"rel,omitempty"`
}

云硬盘uri自描述信息。

func (Link) String

func (o Link) 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

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 Match

type Match struct {
	Key MatchKey `json:"key"`

	Value string `json:"value"`
}

func (Match) String

func (o Match) String() string

type MatchKey

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

func (MatchKey) MarshalJSON

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

func (*MatchKey) UnmarshalJSON

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

type MatchKeyEnum

type MatchKeyEnum struct {
	RESOURCE_NAME MatchKey
	SERVICE_TYPE  MatchKey
}

func GetMatchKeyEnum

func GetMatchKeyEnum() MatchKeyEnum

type OsExtend

type OsExtend struct {
	NewSize int32 `json:"new_size"`
}

func (OsExtend) String

func (o OsExtend) String() string

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

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

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"`
}

配额信息。

func (QuotaList) String

func (o QuotaList) String() string

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"`
}

func (Resource) String

func (o Resource) String() string

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

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的详细信息。

func (SubJob) String

func (o SubJob) String() string

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 Tag

type Tag struct {
	Key string `json:"key"`

	Value string `json:"value"`
}

func (Tag) String

func (o Tag) String() string

type TagsForListVolumes

type TagsForListVolumes struct {
	Key string `json:"key"`

	Values []string `json:"values"`
}

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"`

	Shareable *string `json:"shareable,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"`

	Shareable string `json:"shareable"`

	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"`

	Shareable bool `json:"shareable"`

	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

type ZoneState

type ZoneState struct {
	Available *bool `json:"available,omitempty"`
}

可用分区的状态。

func (ZoneState) String

func (o ZoneState) String() string

Source Files

Jump to

Keyboard shortcuts

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