Documentation
¶
Index ¶
- type CreateSnapshotRequest
- type CreateSnapshotResponse
- type CreateSnapshotResult
- type DeleteSnapshotRequest
- type DeleteSnapshotResponse
- type DeleteSnapshotResult
- type DescribeDiskRequest
- type DescribeDiskResponse
- type DescribeDiskResult
- type DescribeDisksRequest
- type DescribeDisksResponse
- type DescribeDisksResult
- type DescribeSnapshotRequest
- type DescribeSnapshotResponse
- type DescribeSnapshotResult
- type DescribeSnapshotsRequest
- func (r DescribeSnapshotsRequest) GetRegionId() string
- func (r *DescribeSnapshotsRequest) SetFilters(filters []common.Filter)
- func (r *DescribeSnapshotsRequest) SetPageNumber(pageNumber int)
- func (r *DescribeSnapshotsRequest) SetPageSize(pageSize int)
- func (r *DescribeSnapshotsRequest) SetRegionId(regionId string)
- type DescribeSnapshotsResponse
- type DescribeSnapshotsResult
- type ModifyDiskAttributeRequest
- func (r ModifyDiskAttributeRequest) GetRegionId() string
- func (r *ModifyDiskAttributeRequest) SetDescription(description string)
- func (r *ModifyDiskAttributeRequest) SetDiskId(diskId string)
- func (r *ModifyDiskAttributeRequest) SetName(name string)
- func (r *ModifyDiskAttributeRequest) SetRegionId(regionId string)
- type ModifyDiskAttributeResponse
- type ModifyDiskAttributeResult
- type ModifySnpAttributeRequest
- func (r ModifySnpAttributeRequest) GetRegionId() string
- func (r *ModifySnpAttributeRequest) SetDescription(description string)
- func (r *ModifySnpAttributeRequest) SetName(name string)
- func (r *ModifySnpAttributeRequest) SetRegionId(regionId string)
- func (r *ModifySnpAttributeRequest) SetSnapshotId(snapshotId string)
- type ModifySnpAttributeResponse
- type ModifySnpAttributeResult
- type RestoreDiskRequest
- type RestoreDiskResponse
- type RestoreDiskResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateSnapshotRequest ¶
type CreateSnapshotRequest struct {
JDCloudRequest
/* 地域ID */
RegionId string `json:"regionId"`
/* 创建快照规格 */
SnapshotSpec *disk.SnapshotSpec `json:"snapshotSpec"`
/* 幂等性校验参数 */
ClientToken string `json:"clientToken"`
}
func NewCreateSnapshotRequest ¶
func NewCreateSnapshotRequest( regionId string, snapshotSpec *disk.SnapshotSpec, clientToken string, ) *CreateSnapshotRequest
* param regionId: 地域ID * param snapshotSpec: 创建快照规格 * param clientToken: 幂等性校验参数
func (CreateSnapshotRequest) GetRegionId ¶
func (r CreateSnapshotRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*CreateSnapshotRequest) SetClientToken ¶
func (r *CreateSnapshotRequest) SetClientToken(clientToken string)
func (*CreateSnapshotRequest) SetRegionId ¶
func (r *CreateSnapshotRequest) SetRegionId(regionId string)
func (*CreateSnapshotRequest) SetSnapshotSpec ¶
func (r *CreateSnapshotRequest) SetSnapshotSpec(snapshotSpec *disk.SnapshotSpec)
type CreateSnapshotResponse ¶
type CreateSnapshotResponse struct {
RequestID string `json:"requestId"`
Error ErrorResponse `json:"error"`
Result CreateSnapshotResult `json:"result"`
}
type CreateSnapshotResult ¶
type CreateSnapshotResult struct {
SnapshotId string `json:"snapshotId"`
}
type DeleteSnapshotRequest ¶
type DeleteSnapshotRequest struct {
JDCloudRequest
/* 地域ID */
RegionId string `json:"regionId"`
/* 快照ID */
SnapshotId string `json:"snapshotId"`
}
func NewDeleteSnapshotRequest ¶
func NewDeleteSnapshotRequest( regionId string, snapshotId string, ) *DeleteSnapshotRequest
* param regionId: 地域ID * param snapshotId: 快照ID
func (DeleteSnapshotRequest) GetRegionId ¶
func (r DeleteSnapshotRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DeleteSnapshotRequest) SetRegionId ¶
func (r *DeleteSnapshotRequest) SetRegionId(regionId string)
func (*DeleteSnapshotRequest) SetSnapshotId ¶
func (r *DeleteSnapshotRequest) SetSnapshotId(snapshotId string)
type DeleteSnapshotResponse ¶
type DeleteSnapshotResponse struct {
RequestID string `json:"requestId"`
Error ErrorResponse `json:"error"`
Result DeleteSnapshotResult `json:"result"`
}
type DeleteSnapshotResult ¶
type DeleteSnapshotResult struct {
}
type DescribeDiskRequest ¶
type DescribeDiskRequest struct {
JDCloudRequest
/* 地域ID */
RegionId string `json:"regionId"`
/* 云硬盘ID */
DiskId string `json:"diskId"`
}
func NewDescribeDiskRequest ¶
func NewDescribeDiskRequest( regionId string, diskId string, ) *DescribeDiskRequest
* param regionId: 地域ID * param diskId: 云硬盘ID
func (DescribeDiskRequest) GetRegionId ¶
func (r DescribeDiskRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DescribeDiskRequest) SetDiskId ¶
func (r *DescribeDiskRequest) SetDiskId(diskId string)
func (*DescribeDiskRequest) SetRegionId ¶
func (r *DescribeDiskRequest) SetRegionId(regionId string)
type DescribeDiskResponse ¶
type DescribeDiskResponse struct {
RequestID string `json:"requestId"`
Error ErrorResponse `json:"error"`
Result DescribeDiskResult `json:"result"`
}
type DescribeDiskResult ¶
type DescribeDisksRequest ¶
type DescribeDisksRequest struct {
JDCloudRequest
/* 地域ID */
RegionId string `json:"regionId"`
/* 页码, 默认为1, 取值范围:[1,∞) (Optional) */
PageNumber *int `json:"pageNumber"`
/* 分页大小,默认为20,取值范围:[10,100] (Optional) */
PageSize *int `json:"pageSize"`
/* diskId - 云硬盘ID,精确匹配,支持多个
diskType - 云硬盘类型,精确匹配,支持多个,取值为 ssd 或 premium-hdd
instanceId - 云硬盘所挂载主机的ID,精确匹配,支持多个
instanceType - 云硬盘所挂载主机的类型,精确匹配,支持多个
status - 可用区,精确匹配,支持多个
az - 云硬盘状态,精确匹配,支持多个
name - 云硬盘名称,模糊匹配,支持单个
(Optional) */
Filters []common.Filter `json:"filters"`
}
func NewDescribeDisksRequest ¶
func NewDescribeDisksRequest( regionId string, ) *DescribeDisksRequest
- param regionId: 地域ID
- param pageNumber: 页码, 默认为1, 取值范围:[1,∞) (Optional)
- param pageSize: 分页大小,默认为20,取值范围:[10,100] (Optional)
- param filters: diskId - 云硬盘ID,精确匹配,支持多个
diskType - 云硬盘类型,精确匹配,支持多个,取值为 ssd 或 premium-hdd instanceId - 云硬盘所挂载主机的ID,精确匹配,支持多个 instanceType - 云硬盘所挂载主机的类型,精确匹配,支持多个 status - 可用区,精确匹配,支持多个 az - 云硬盘状态,精确匹配,支持多个 name - 云硬盘名称,模糊匹配,支持单个
(Optional)
func (DescribeDisksRequest) GetRegionId ¶
func (r DescribeDisksRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DescribeDisksRequest) SetFilters ¶
func (r *DescribeDisksRequest) SetFilters(filters []common.Filter)
func (*DescribeDisksRequest) SetPageNumber ¶
func (r *DescribeDisksRequest) SetPageNumber(pageNumber int)
func (*DescribeDisksRequest) SetPageSize ¶
func (r *DescribeDisksRequest) SetPageSize(pageSize int)
func (*DescribeDisksRequest) SetRegionId ¶
func (r *DescribeDisksRequest) SetRegionId(regionId string)
type DescribeDisksResponse ¶
type DescribeDisksResponse struct {
RequestID string `json:"requestId"`
Error ErrorResponse `json:"error"`
Result DescribeDisksResult `json:"result"`
}
type DescribeDisksResult ¶
type DescribeSnapshotRequest ¶
type DescribeSnapshotRequest struct {
JDCloudRequest
/* 地域ID */
RegionId string `json:"regionId"`
/* 快照ID */
SnapshotId string `json:"snapshotId"`
}
func NewDescribeSnapshotRequest ¶
func NewDescribeSnapshotRequest( regionId string, snapshotId string, ) *DescribeSnapshotRequest
* param regionId: 地域ID * param snapshotId: 快照ID
func (DescribeSnapshotRequest) GetRegionId ¶
func (r DescribeSnapshotRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DescribeSnapshotRequest) SetRegionId ¶
func (r *DescribeSnapshotRequest) SetRegionId(regionId string)
func (*DescribeSnapshotRequest) SetSnapshotId ¶
func (r *DescribeSnapshotRequest) SetSnapshotId(snapshotId string)
type DescribeSnapshotResponse ¶
type DescribeSnapshotResponse struct {
RequestID string `json:"requestId"`
Error ErrorResponse `json:"error"`
Result DescribeSnapshotResult `json:"result"`
}
type DescribeSnapshotResult ¶
type DescribeSnapshotsRequest ¶
type DescribeSnapshotsRequest struct {
JDCloudRequest
/* 地域ID */
RegionId string `json:"regionId"`
/* 页码, 默认为1, 取值范围:[1,∞) (Optional) */
PageNumber *int `json:"pageNumber"`
/* 分页大小,默认为20,取值范围:[10,100] (Optional) */
PageSize *int `json:"pageSize"`
/* snapshotId - 云硬盘快照ID,支持多个
diskId - 生成快照的云硬盘ID,支持多个
status - 快照状态,精确匹配,支持多个,取值为 creating、available、in-use、deleting、error_create、error_delete
name - 快照名称,模糊匹配,支持单个
(Optional) */
Filters []common.Filter `json:"filters"`
}
func NewDescribeSnapshotsRequest ¶
func NewDescribeSnapshotsRequest( regionId string, ) *DescribeSnapshotsRequest
- param regionId: 地域ID
- param pageNumber: 页码, 默认为1, 取值范围:[1,∞) (Optional)
- param pageSize: 分页大小,默认为20,取值范围:[10,100] (Optional)
- param filters: snapshotId - 云硬盘快照ID,支持多个
diskId - 生成快照的云硬盘ID,支持多个 status - 快照状态,精确匹配,支持多个,取值为 creating、available、in-use、deleting、error_create、error_delete name - 快照名称,模糊匹配,支持单个
(Optional)
func (DescribeSnapshotsRequest) GetRegionId ¶
func (r DescribeSnapshotsRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DescribeSnapshotsRequest) SetFilters ¶
func (r *DescribeSnapshotsRequest) SetFilters(filters []common.Filter)
func (*DescribeSnapshotsRequest) SetPageNumber ¶
func (r *DescribeSnapshotsRequest) SetPageNumber(pageNumber int)
func (*DescribeSnapshotsRequest) SetPageSize ¶
func (r *DescribeSnapshotsRequest) SetPageSize(pageSize int)
func (*DescribeSnapshotsRequest) SetRegionId ¶
func (r *DescribeSnapshotsRequest) SetRegionId(regionId string)
type DescribeSnapshotsResponse ¶
type DescribeSnapshotsResponse struct {
RequestID string `json:"requestId"`
Error ErrorResponse `json:"error"`
Result DescribeSnapshotsResult `json:"result"`
}
type DescribeSnapshotsResult ¶
type ModifyDiskAttributeRequest ¶
type ModifyDiskAttributeRequest struct {
JDCloudRequest
/* 地域ID */
RegionId string `json:"regionId"`
/* 云硬盘ID */
DiskId string `json:"diskId"`
/* 云硬盘名称 (Optional) */
Name *string `json:"name"`
/* 云硬盘描述,name和description必须要指定一个 (Optional) */
Description *string `json:"description"`
}
func NewModifyDiskAttributeRequest ¶
func NewModifyDiskAttributeRequest( regionId string, diskId string, ) *ModifyDiskAttributeRequest
* param regionId: 地域ID * param diskId: 云硬盘ID * param name: 云硬盘名称 (Optional) * param description: 云硬盘描述,name和description必须要指定一个 (Optional)
func (ModifyDiskAttributeRequest) GetRegionId ¶
func (r ModifyDiskAttributeRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*ModifyDiskAttributeRequest) SetDescription ¶
func (r *ModifyDiskAttributeRequest) SetDescription(description string)
func (*ModifyDiskAttributeRequest) SetDiskId ¶
func (r *ModifyDiskAttributeRequest) SetDiskId(diskId string)
func (*ModifyDiskAttributeRequest) SetName ¶
func (r *ModifyDiskAttributeRequest) SetName(name string)
func (*ModifyDiskAttributeRequest) SetRegionId ¶
func (r *ModifyDiskAttributeRequest) SetRegionId(regionId string)
type ModifyDiskAttributeResponse ¶
type ModifyDiskAttributeResponse struct {
RequestID string `json:"requestId"`
Error ErrorResponse `json:"error"`
Result ModifyDiskAttributeResult `json:"result"`
}
type ModifyDiskAttributeResult ¶
type ModifyDiskAttributeResult struct {
}
type ModifySnpAttributeRequest ¶
type ModifySnpAttributeRequest struct {
JDCloudRequest
/* 地域ID */
RegionId string `json:"regionId"`
/* 快照ID */
SnapshotId string `json:"snapshotId"`
/* 快照名称 (Optional) */
Name *string `json:"name"`
/* 快照描述,name和description必须要指定一个 (Optional) */
Description *string `json:"description"`
}
func NewModifySnpAttributeRequest ¶
func NewModifySnpAttributeRequest( regionId string, snapshotId string, ) *ModifySnpAttributeRequest
* param regionId: 地域ID * param snapshotId: 快照ID * param name: 快照名称 (Optional) * param description: 快照描述,name和description必须要指定一个 (Optional)
func (ModifySnpAttributeRequest) GetRegionId ¶
func (r ModifySnpAttributeRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*ModifySnpAttributeRequest) SetDescription ¶
func (r *ModifySnpAttributeRequest) SetDescription(description string)
func (*ModifySnpAttributeRequest) SetName ¶
func (r *ModifySnpAttributeRequest) SetName(name string)
func (*ModifySnpAttributeRequest) SetRegionId ¶
func (r *ModifySnpAttributeRequest) SetRegionId(regionId string)
func (*ModifySnpAttributeRequest) SetSnapshotId ¶
func (r *ModifySnpAttributeRequest) SetSnapshotId(snapshotId string)
type ModifySnpAttributeResponse ¶
type ModifySnpAttributeResponse struct {
RequestID string `json:"requestId"`
Error ErrorResponse `json:"error"`
Result ModifySnpAttributeResult `json:"result"`
}
type ModifySnpAttributeResult ¶
type ModifySnpAttributeResult struct {
}
type RestoreDiskRequest ¶
type RestoreDiskRequest struct {
JDCloudRequest
/* 地域ID */
RegionId string `json:"regionId"`
/* 云硬盘ID */
DiskId string `json:"diskId"`
/* 用于恢复云盘的快照ID */
SnapshotId string `json:"snapshotId"`
}
func NewRestoreDiskRequest ¶
func NewRestoreDiskRequest( regionId string, diskId string, snapshotId string, ) *RestoreDiskRequest
* param regionId: 地域ID * param diskId: 云硬盘ID * param snapshotId: 用于恢复云盘的快照ID
func (RestoreDiskRequest) GetRegionId ¶
func (r RestoreDiskRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*RestoreDiskRequest) SetDiskId ¶
func (r *RestoreDiskRequest) SetDiskId(diskId string)
func (*RestoreDiskRequest) SetRegionId ¶
func (r *RestoreDiskRequest) SetRegionId(regionId string)
func (*RestoreDiskRequest) SetSnapshotId ¶
func (r *RestoreDiskRequest) SetSnapshotId(snapshotId string)
type RestoreDiskResponse ¶
type RestoreDiskResponse struct {
RequestID string `json:"requestId"`
Error ErrorResponse `json:"error"`
Result RestoreDiskResult `json:"result"`
}
type RestoreDiskResult ¶
type RestoreDiskResult struct {
}