Documentation ¶
Index ¶
- type CreateDisksRequest
- func NewCreateDisksRequest(regionId string, diskSpec *disk.DiskSpec, maxCount int, clientToken string) *CreateDisksRequest
- func NewCreateDisksRequestWithAllParams(regionId string, diskSpec *disk.DiskSpec, maxCount int, userTags []disk.Tag, ...) *CreateDisksRequest
- func NewCreateDisksRequestWithoutParam() *CreateDisksRequest
- func (r CreateDisksRequest) GetRegionId() string
- func (r *CreateDisksRequest) SetClientToken(clientToken string)
- func (r *CreateDisksRequest) SetDiskSpec(diskSpec *disk.DiskSpec)
- func (r *CreateDisksRequest) SetMaxCount(maxCount int)
- func (r *CreateDisksRequest) SetRegionId(regionId string)
- func (r *CreateDisksRequest) SetUserTags(userTags []disk.Tag)
- type CreateDisksResponse
- type CreateDisksResult
- type CreateSnapshotRequest
- func NewCreateSnapshotRequest(regionId string, snapshotSpec *disk.SnapshotSpec, clientToken string) *CreateSnapshotRequest
- func NewCreateSnapshotRequestWithAllParams(regionId string, snapshotSpec *disk.SnapshotSpec, clientToken string) *CreateSnapshotRequest
- func NewCreateSnapshotRequestWithoutParam() *CreateSnapshotRequest
- type CreateSnapshotResponse
- type CreateSnapshotResult
- type DeleteDiskRequest
- type DeleteDiskResponse
- type DeleteDiskResult
- type DeleteSnapshotRequest
- type DeleteSnapshotResponse
- type DeleteSnapshotResult
- type DeleteSnapshotsRequest
- type DeleteSnapshotsResponse
- type DeleteSnapshotsResult
- type DescribeDiskRequest
- type DescribeDiskResponse
- type DescribeDiskResult
- type DescribeDisksRequest
- func (r DescribeDisksRequest) GetRegionId() string
- func (r *DescribeDisksRequest) SetFilters(filters []common.Filter)
- func (r *DescribeDisksRequest) SetPageNumber(pageNumber int)
- func (r *DescribeDisksRequest) SetPageSize(pageSize int)
- func (r *DescribeDisksRequest) SetRegionId(regionId string)
- func (r *DescribeDisksRequest) SetTags(tags []disk.TagFilter)
- 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)
- func (r *DescribeSnapshotsRequest) SetSnapshotSource(snapshotSource string)
- type DescribeSnapshotsResponse
- type DescribeSnapshotsResult
- type ExtendDiskRequest
- type ExtendDiskResponse
- type ExtendDiskResult
- type ModifyDiskAttributeRequest
- func NewModifyDiskAttributeRequest(regionId string, diskId string) *ModifyDiskAttributeRequest
- func NewModifyDiskAttributeRequestWithAllParams(regionId string, diskId string, name *string, description *string) *ModifyDiskAttributeRequest
- func NewModifyDiskAttributeRequestWithoutParam() *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 ModifySnapshotAttributeRequest
- func NewModifySnapshotAttributeRequest(regionId string, snapshotId string) *ModifySnapshotAttributeRequest
- func NewModifySnapshotAttributeRequestWithAllParams(regionId string, snapshotId string, name *string, description *string) *ModifySnapshotAttributeRequest
- func NewModifySnapshotAttributeRequestWithoutParam() *ModifySnapshotAttributeRequest
- func (r ModifySnapshotAttributeRequest) GetRegionId() string
- func (r *ModifySnapshotAttributeRequest) SetDescription(description string)
- func (r *ModifySnapshotAttributeRequest) SetName(name string)
- func (r *ModifySnapshotAttributeRequest) SetRegionId(regionId string)
- func (r *ModifySnapshotAttributeRequest) SetSnapshotId(snapshotId string)
- type ModifySnapshotAttributeResponse
- type ModifySnapshotAttributeResult
- type RestoreDiskRequest
- type RestoreDiskResponse
- type RestoreDiskResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateDisksRequest ¶ added in v1.0.2
type CreateDisksRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 创建云硬盘规格 */ DiskSpec *disk.DiskSpec `json:"diskSpec"` /* 购买实例数量;取值范围:[1,100] */ MaxCount int `json:"maxCount"` /* 用户标签 (Optional) */ UserTags []disk.Tag `json:"userTags"` /* 幂等性校验参数 */ ClientToken string `json:"clientToken"` }
func NewCreateDisksRequest ¶ added in v1.0.2
func NewCreateDisksRequest( regionId string, diskSpec *disk.DiskSpec, maxCount int, clientToken string, ) *CreateDisksRequest
* param regionId: 地域ID (Required) * param diskSpec: 创建云硬盘规格 (Required) * param maxCount: 购买实例数量;取值范围:[1,100] (Required) * param clientToken: 幂等性校验参数 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewCreateDisksRequestWithAllParams ¶ added in v1.0.4
func NewCreateDisksRequestWithAllParams( regionId string, diskSpec *disk.DiskSpec, maxCount int, userTags []disk.Tag, clientToken string, ) *CreateDisksRequest
* param regionId: 地域ID (Required) * param diskSpec: 创建云硬盘规格 (Required) * param maxCount: 购买实例数量;取值范围:[1,100] (Required) * param userTags: 用户标签 (Optional) * param clientToken: 幂等性校验参数 (Required)
func NewCreateDisksRequestWithoutParam ¶ added in v1.0.4
func NewCreateDisksRequestWithoutParam() *CreateDisksRequest
This constructor has better compatible ability when API parameters changed
func (CreateDisksRequest) GetRegionId ¶ added in v1.0.2
func (r CreateDisksRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*CreateDisksRequest) SetClientToken ¶ added in v1.0.2
func (r *CreateDisksRequest) SetClientToken(clientToken string)
param clientToken: 幂等性校验参数(Required)
func (*CreateDisksRequest) SetDiskSpec ¶ added in v1.0.2
func (r *CreateDisksRequest) SetDiskSpec(diskSpec *disk.DiskSpec)
param diskSpec: 创建云硬盘规格(Required)
func (*CreateDisksRequest) SetMaxCount ¶ added in v1.0.2
func (r *CreateDisksRequest) SetMaxCount(maxCount int)
param maxCount: 购买实例数量;取值范围:[1,100](Required)
func (*CreateDisksRequest) SetRegionId ¶ added in v1.0.2
func (r *CreateDisksRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
func (*CreateDisksRequest) SetUserTags ¶ added in v1.19.0
func (r *CreateDisksRequest) SetUserTags(userTags []disk.Tag)
param userTags: 用户标签(Optional)
type CreateDisksResponse ¶ added in v1.0.2
type CreateDisksResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result CreateDisksResult `json:"result"` }
type CreateDisksResult ¶ added in v1.0.2
type CreateSnapshotRequest ¶
type CreateSnapshotRequest struct { core.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 (Required) * param snapshotSpec: 创建快照规格 (Required) * param clientToken: 幂等性校验参数 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewCreateSnapshotRequestWithAllParams ¶ added in v1.0.4
func NewCreateSnapshotRequestWithAllParams( regionId string, snapshotSpec *disk.SnapshotSpec, clientToken string, ) *CreateSnapshotRequest
* param regionId: 地域ID (Required) * param snapshotSpec: 创建快照规格 (Required) * param clientToken: 幂等性校验参数 (Required)
func NewCreateSnapshotRequestWithoutParam ¶ added in v1.0.4
func NewCreateSnapshotRequestWithoutParam() *CreateSnapshotRequest
This constructor has better compatible ability when API parameters changed
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)
param clientToken: 幂等性校验参数(Required)
func (*CreateSnapshotRequest) SetRegionId ¶
func (r *CreateSnapshotRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
func (*CreateSnapshotRequest) SetSnapshotSpec ¶
func (r *CreateSnapshotRequest) SetSnapshotSpec(snapshotSpec *disk.SnapshotSpec)
param snapshotSpec: 创建快照规格(Required)
type CreateSnapshotResponse ¶
type CreateSnapshotResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result CreateSnapshotResult `json:"result"` }
type CreateSnapshotResult ¶
type CreateSnapshotResult struct {
SnapshotId string `json:"snapshotId"`
}
type DeleteDiskRequest ¶ added in v1.0.2
type DeleteDiskRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 云硬盘ID */ DiskId string `json:"diskId"` }
func NewDeleteDiskRequest ¶ added in v1.0.2
func NewDeleteDiskRequest( regionId string, diskId string, ) *DeleteDiskRequest
* param regionId: 地域ID (Required) * param diskId: 云硬盘ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDeleteDiskRequestWithAllParams ¶ added in v1.0.4
func NewDeleteDiskRequestWithAllParams( regionId string, diskId string, ) *DeleteDiskRequest
* param regionId: 地域ID (Required) * param diskId: 云硬盘ID (Required)
func NewDeleteDiskRequestWithoutParam ¶ added in v1.0.4
func NewDeleteDiskRequestWithoutParam() *DeleteDiskRequest
This constructor has better compatible ability when API parameters changed
func (DeleteDiskRequest) GetRegionId ¶ added in v1.0.2
func (r DeleteDiskRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DeleteDiskRequest) SetDiskId ¶ added in v1.0.2
func (r *DeleteDiskRequest) SetDiskId(diskId string)
param diskId: 云硬盘ID(Required)
func (*DeleteDiskRequest) SetRegionId ¶ added in v1.0.2
func (r *DeleteDiskRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type DeleteDiskResponse ¶ added in v1.0.2
type DeleteDiskResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DeleteDiskResult `json:"result"` }
type DeleteDiskResult ¶ added in v1.0.2
type DeleteDiskResult struct { }
type DeleteSnapshotRequest ¶
type DeleteSnapshotRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 快照ID */ SnapshotId string `json:"snapshotId"` }
func NewDeleteSnapshotRequest ¶
func NewDeleteSnapshotRequest( regionId string, snapshotId string, ) *DeleteSnapshotRequest
* param regionId: 地域ID (Required) * param snapshotId: 快照ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDeleteSnapshotRequestWithAllParams ¶ added in v1.0.4
func NewDeleteSnapshotRequestWithAllParams( regionId string, snapshotId string, ) *DeleteSnapshotRequest
* param regionId: 地域ID (Required) * param snapshotId: 快照ID (Required)
func NewDeleteSnapshotRequestWithoutParam ¶ added in v1.0.4
func NewDeleteSnapshotRequestWithoutParam() *DeleteSnapshotRequest
This constructor has better compatible ability when API parameters changed
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)
param regionId: 地域ID(Required)
func (*DeleteSnapshotRequest) SetSnapshotId ¶
func (r *DeleteSnapshotRequest) SetSnapshotId(snapshotId string)
param snapshotId: 快照ID(Required)
type DeleteSnapshotResponse ¶
type DeleteSnapshotResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DeleteSnapshotResult `json:"result"` }
type DeleteSnapshotResult ¶
type DeleteSnapshotResult struct { }
type DeleteSnapshotsRequest ¶ added in v1.19.0
type DeleteSnapshotsRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 快照ID列表 */ SnapshotIds []string `json:"snapshotIds"` }
func NewDeleteSnapshotsRequest ¶ added in v1.19.0
func NewDeleteSnapshotsRequest( regionId string, snapshotIds []string, ) *DeleteSnapshotsRequest
* param regionId: 地域ID (Required) * param snapshotIds: 快照ID列表 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDeleteSnapshotsRequestWithAllParams ¶ added in v1.19.0
func NewDeleteSnapshotsRequestWithAllParams( regionId string, snapshotIds []string, ) *DeleteSnapshotsRequest
* param regionId: 地域ID (Required) * param snapshotIds: 快照ID列表 (Required)
func NewDeleteSnapshotsRequestWithoutParam ¶ added in v1.19.0
func NewDeleteSnapshotsRequestWithoutParam() *DeleteSnapshotsRequest
This constructor has better compatible ability when API parameters changed
func (DeleteSnapshotsRequest) GetRegionId ¶ added in v1.19.0
func (r DeleteSnapshotsRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DeleteSnapshotsRequest) SetRegionId ¶ added in v1.19.0
func (r *DeleteSnapshotsRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
func (*DeleteSnapshotsRequest) SetSnapshotIds ¶ added in v1.19.0
func (r *DeleteSnapshotsRequest) SetSnapshotIds(snapshotIds []string)
param snapshotIds: 快照ID列表(Required)
type DeleteSnapshotsResponse ¶ added in v1.19.0
type DeleteSnapshotsResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DeleteSnapshotsResult `json:"result"` }
type DeleteSnapshotsResult ¶ added in v1.19.0
type DeleteSnapshotsResult struct { Snapshots []disk.DelSnapshot `json:"snapshots"` SuccessCount int `json:"successCount"` FailedCount int `json:"failedCount"` }
type DescribeDiskRequest ¶
type DescribeDiskRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 云硬盘ID */ DiskId string `json:"diskId"` }
func NewDescribeDiskRequest ¶
func NewDescribeDiskRequest( regionId string, diskId string, ) *DescribeDiskRequest
* param regionId: 地域ID (Required) * param diskId: 云硬盘ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDescribeDiskRequestWithAllParams ¶ added in v1.0.4
func NewDescribeDiskRequestWithAllParams( regionId string, diskId string, ) *DescribeDiskRequest
* param regionId: 地域ID (Required) * param diskId: 云硬盘ID (Required)
func NewDescribeDiskRequestWithoutParam ¶ added in v1.0.4
func NewDescribeDiskRequestWithoutParam() *DescribeDiskRequest
This constructor has better compatible ability when API parameters changed
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)
param diskId: 云硬盘ID(Required)
func (*DescribeDiskRequest) SetRegionId ¶
func (r *DescribeDiskRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type DescribeDiskResponse ¶
type DescribeDiskResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DescribeDiskResult `json:"result"` }
type DescribeDiskResult ¶
type DescribeDisksRequest ¶
type DescribeDisksRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 页码, 默认为1, 取值范围:[1,∞) (Optional) */ PageNumber *int `json:"pageNumber"` /* 分页大小,默认为20,取值范围:[10,100] (Optional) */ PageSize *int `json:"pageSize"` /* Tag筛选条件 (Optional) */ Tags []disk.TagFilter `json:"tags"` /* diskId - 云硬盘ID,精确匹配,支持多个 diskType - 云硬盘类型,精确匹配,支持多个,取值为 ssd,premium-hdd,ssd.io1,ssd.gp1,hdd.std1 instanceId - 云硬盘所挂载主机的ID,精确匹配,支持多个 instanceType - 云硬盘所挂载主机的类型,精确匹配,支持多个 status - 可用区,精确匹配,支持多个 az - 云硬盘状态,精确匹配,支持多个 name - 云硬盘名称,模糊匹配,支持单个 multiAttach - 云硬盘是否多点挂载,精确匹配,支持单个 encrypted - 云硬盘是否加密,精确匹配,支持单个 (Optional) */ Filters []common.Filter `json:"filters"` }
func NewDescribeDisksRequest ¶
func NewDescribeDisksRequest( regionId string, ) *DescribeDisksRequest
* param regionId: 地域ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDescribeDisksRequestWithAllParams ¶ added in v1.0.4
func NewDescribeDisksRequestWithAllParams( regionId string, pageNumber *int, pageSize *int, tags []disk.TagFilter, filters []common.Filter, ) *DescribeDisksRequest
- param regionId: 地域ID (Required)
- param pageNumber: 页码, 默认为1, 取值范围:[1,∞) (Optional)
- param pageSize: 分页大小,默认为20,取值范围:[10,100] (Optional)
- param tags: Tag筛选条件 (Optional)
- param filters: diskId - 云硬盘ID,精确匹配,支持多个
diskType - 云硬盘类型,精确匹配,支持多个,取值为 ssd,premium-hdd,ssd.io1,ssd.gp1,hdd.std1 instanceId - 云硬盘所挂载主机的ID,精确匹配,支持多个 instanceType - 云硬盘所挂载主机的类型,精确匹配,支持多个 status - 可用区,精确匹配,支持多个 az - 云硬盘状态,精确匹配,支持多个 name - 云硬盘名称,模糊匹配,支持单个 multiAttach - 云硬盘是否多点挂载,精确匹配,支持单个 encrypted - 云硬盘是否加密,精确匹配,支持单个
(Optional)
func NewDescribeDisksRequestWithoutParam ¶ added in v1.0.4
func NewDescribeDisksRequestWithoutParam() *DescribeDisksRequest
This constructor has better compatible ability when API parameters changed
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)
param filters: diskId - 云硬盘ID,精确匹配,支持多个
diskType - 云硬盘类型,精确匹配,支持多个,取值为 ssd,premium-hdd,ssd.io1,ssd.gp1,hdd.std1 instanceId - 云硬盘所挂载主机的ID,精确匹配,支持多个 instanceType - 云硬盘所挂载主机的类型,精确匹配,支持多个 status - 可用区,精确匹配,支持多个 az - 云硬盘状态,精确匹配,支持多个 name - 云硬盘名称,模糊匹配,支持单个 multiAttach - 云硬盘是否多点挂载,精确匹配,支持单个 encrypted - 云硬盘是否加密,精确匹配,支持单个 (Optional)
func (*DescribeDisksRequest) SetPageNumber ¶
func (r *DescribeDisksRequest) SetPageNumber(pageNumber int)
param pageNumber: 页码, 默认为1, 取值范围:[1,∞)(Optional)
func (*DescribeDisksRequest) SetPageSize ¶
func (r *DescribeDisksRequest) SetPageSize(pageSize int)
param pageSize: 分页大小,默认为20,取值范围:[10,100](Optional)
func (*DescribeDisksRequest) SetRegionId ¶
func (r *DescribeDisksRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
func (*DescribeDisksRequest) SetTags ¶ added in v1.0.4
func (r *DescribeDisksRequest) SetTags(tags []disk.TagFilter)
param tags: Tag筛选条件(Optional)
type DescribeDisksResponse ¶
type DescribeDisksResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DescribeDisksResult `json:"result"` }
type DescribeDisksResult ¶
type DescribeSnapshotRequest ¶
type DescribeSnapshotRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 快照ID */ SnapshotId string `json:"snapshotId"` }
func NewDescribeSnapshotRequest ¶
func NewDescribeSnapshotRequest( regionId string, snapshotId string, ) *DescribeSnapshotRequest
* param regionId: 地域ID (Required) * param snapshotId: 快照ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDescribeSnapshotRequestWithAllParams ¶ added in v1.0.4
func NewDescribeSnapshotRequestWithAllParams( regionId string, snapshotId string, ) *DescribeSnapshotRequest
* param regionId: 地域ID (Required) * param snapshotId: 快照ID (Required)
func NewDescribeSnapshotRequestWithoutParam ¶ added in v1.0.4
func NewDescribeSnapshotRequestWithoutParam() *DescribeSnapshotRequest
This constructor has better compatible ability when API parameters changed
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)
param regionId: 地域ID(Required)
func (*DescribeSnapshotRequest) SetSnapshotId ¶
func (r *DescribeSnapshotRequest) SetSnapshotId(snapshotId string)
param snapshotId: 快照ID(Required)
type DescribeSnapshotResponse ¶
type DescribeSnapshotResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DescribeSnapshotResult `json:"result"` }
type DescribeSnapshotResult ¶
type DescribeSnapshotsRequest ¶
type DescribeSnapshotsRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 页码, 默认为1, 取值范围:[1,∞) (Optional) */ PageNumber *int `json:"pageNumber"` /* 分页大小,默认为20,取值范围:[10,100] (Optional) */ PageSize *int `json:"pageSize"` /* 查找快照的类型,可以为private,others,shared,默认为private (Optional) */ SnapshotSource *string `json:"snapshotSource"` /* snapshotId - 云硬盘快照ID,支持多个 diskId - 生成快照的云硬盘ID,支持多个 status - 快照状态,精确匹配,支持多个,取值为 creating、available、copying、deleting、error_create、error_delete name - 快照名称,模糊匹配,支持单个 (Optional) */ Filters []common.Filter `json:"filters"` }
func NewDescribeSnapshotsRequest ¶
func NewDescribeSnapshotsRequest( regionId string, ) *DescribeSnapshotsRequest
* param regionId: 地域ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDescribeSnapshotsRequestWithAllParams ¶ added in v1.0.4
func NewDescribeSnapshotsRequestWithAllParams( regionId string, pageNumber *int, pageSize *int, snapshotSource *string, filters []common.Filter, ) *DescribeSnapshotsRequest
- param regionId: 地域ID (Required)
- param pageNumber: 页码, 默认为1, 取值范围:[1,∞) (Optional)
- param pageSize: 分页大小,默认为20,取值范围:[10,100] (Optional)
- param snapshotSource: 查找快照的类型,可以为private,others,shared,默认为private (Optional)
- param filters: snapshotId - 云硬盘快照ID,支持多个
diskId - 生成快照的云硬盘ID,支持多个 status - 快照状态,精确匹配,支持多个,取值为 creating、available、copying、deleting、error_create、error_delete name - 快照名称,模糊匹配,支持单个
(Optional)
func NewDescribeSnapshotsRequestWithoutParam ¶ added in v1.0.4
func NewDescribeSnapshotsRequestWithoutParam() *DescribeSnapshotsRequest
This constructor has better compatible ability when API parameters changed
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)
param filters: snapshotId - 云硬盘快照ID,支持多个
diskId - 生成快照的云硬盘ID,支持多个 status - 快照状态,精确匹配,支持多个,取值为 creating、available、copying、deleting、error_create、error_delete name - 快照名称,模糊匹配,支持单个 (Optional)
func (*DescribeSnapshotsRequest) SetPageNumber ¶
func (r *DescribeSnapshotsRequest) SetPageNumber(pageNumber int)
param pageNumber: 页码, 默认为1, 取值范围:[1,∞)(Optional)
func (*DescribeSnapshotsRequest) SetPageSize ¶
func (r *DescribeSnapshotsRequest) SetPageSize(pageSize int)
param pageSize: 分页大小,默认为20,取值范围:[10,100](Optional)
func (*DescribeSnapshotsRequest) SetRegionId ¶
func (r *DescribeSnapshotsRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
func (*DescribeSnapshotsRequest) SetSnapshotSource ¶ added in v1.4.0
func (r *DescribeSnapshotsRequest) SetSnapshotSource(snapshotSource string)
param snapshotSource: 查找快照的类型,可以为private,others,shared,默认为private(Optional)
type DescribeSnapshotsResponse ¶
type DescribeSnapshotsResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DescribeSnapshotsResult `json:"result"` }
type DescribeSnapshotsResult ¶
type ExtendDiskRequest ¶ added in v1.0.2
type ExtendDiskRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 云硬盘ID */ DiskId string `json:"diskId"` /* 扩容后的云硬盘大小,单位为GiB */ DiskSizeGB int `json:"diskSizeGB"` /* 修改ssd.io1型云硬盘的iops数量,当且仅当ssd.io1型的云盘类型有效,步长是10. (Optional) */ Iops *int `json:"iops"` }
func NewExtendDiskRequest ¶ added in v1.0.2
func NewExtendDiskRequest( regionId string, diskId string, diskSizeGB int, ) *ExtendDiskRequest
* param regionId: 地域ID (Required) * param diskId: 云硬盘ID (Required) * param diskSizeGB: 扩容后的云硬盘大小,单位为GiB (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewExtendDiskRequestWithAllParams ¶ added in v1.0.4
func NewExtendDiskRequestWithAllParams( regionId string, diskId string, diskSizeGB int, iops *int, ) *ExtendDiskRequest
* param regionId: 地域ID (Required) * param diskId: 云硬盘ID (Required) * param diskSizeGB: 扩容后的云硬盘大小,单位为GiB (Required) * param iops: 修改ssd.io1型云硬盘的iops数量,当且仅当ssd.io1型的云盘类型有效,步长是10. (Optional)
func NewExtendDiskRequestWithoutParam ¶ added in v1.0.4
func NewExtendDiskRequestWithoutParam() *ExtendDiskRequest
This constructor has better compatible ability when API parameters changed
func (ExtendDiskRequest) GetRegionId ¶ added in v1.0.2
func (r ExtendDiskRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*ExtendDiskRequest) SetDiskId ¶ added in v1.0.2
func (r *ExtendDiskRequest) SetDiskId(diskId string)
param diskId: 云硬盘ID(Required)
func (*ExtendDiskRequest) SetDiskSizeGB ¶ added in v1.0.2
func (r *ExtendDiskRequest) SetDiskSizeGB(diskSizeGB int)
param diskSizeGB: 扩容后的云硬盘大小,单位为GiB(Required)
func (*ExtendDiskRequest) SetIops ¶ added in v1.10.0
func (r *ExtendDiskRequest) SetIops(iops int)
param iops: 修改ssd.io1型云硬盘的iops数量,当且仅当ssd.io1型的云盘类型有效,步长是10.(Optional)
func (*ExtendDiskRequest) SetRegionId ¶ added in v1.0.2
func (r *ExtendDiskRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type ExtendDiskResponse ¶ added in v1.0.2
type ExtendDiskResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result ExtendDiskResult `json:"result"` }
type ExtendDiskResult ¶ added in v1.0.2
type ExtendDiskResult struct { }
type ModifyDiskAttributeRequest ¶
type ModifyDiskAttributeRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 云硬盘ID */ DiskId string `json:"diskId"` /* 云硬盘名称,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符。 (Optional) */ Name *string `json:"name"` /* 云硬盘描述,允许输入UTF-8编码下的全部字符,不超过256字符。 (Optional) */ Description *string `json:"description"` }
func NewModifyDiskAttributeRequest ¶
func NewModifyDiskAttributeRequest( regionId string, diskId string, ) *ModifyDiskAttributeRequest
* param regionId: 地域ID (Required) * param diskId: 云硬盘ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewModifyDiskAttributeRequestWithAllParams ¶ added in v1.0.4
func NewModifyDiskAttributeRequestWithAllParams( regionId string, diskId string, name *string, description *string, ) *ModifyDiskAttributeRequest
* param regionId: 地域ID (Required) * param diskId: 云硬盘ID (Required) * param name: 云硬盘名称,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符。 (Optional) * param description: 云硬盘描述,允许输入UTF-8编码下的全部字符,不超过256字符。 (Optional)
func NewModifyDiskAttributeRequestWithoutParam ¶ added in v1.0.4
func NewModifyDiskAttributeRequestWithoutParam() *ModifyDiskAttributeRequest
This constructor has better compatible ability when API parameters changed
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)
param description: 云硬盘描述,允许输入UTF-8编码下的全部字符,不超过256字符。(Optional)
func (*ModifyDiskAttributeRequest) SetDiskId ¶
func (r *ModifyDiskAttributeRequest) SetDiskId(diskId string)
param diskId: 云硬盘ID(Required)
func (*ModifyDiskAttributeRequest) SetName ¶
func (r *ModifyDiskAttributeRequest) SetName(name string)
param name: 云硬盘名称,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符。(Optional)
func (*ModifyDiskAttributeRequest) SetRegionId ¶
func (r *ModifyDiskAttributeRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type ModifyDiskAttributeResponse ¶
type ModifyDiskAttributeResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result ModifyDiskAttributeResult `json:"result"` }
type ModifyDiskAttributeResult ¶
type ModifyDiskAttributeResult struct { }
type ModifySnapshotAttributeRequest ¶ added in v1.4.0
type ModifySnapshotAttributeRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 快照ID */ SnapshotId string `json:"snapshotId"` /* 快照名称 (Optional) */ Name *string `json:"name"` /* 快照描述,name和description必须要指定一个 (Optional) */ Description *string `json:"description"` }
func NewModifySnapshotAttributeRequest ¶ added in v1.4.0
func NewModifySnapshotAttributeRequest( regionId string, snapshotId string, ) *ModifySnapshotAttributeRequest
* param regionId: 地域ID (Required) * param snapshotId: 快照ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewModifySnapshotAttributeRequestWithAllParams ¶ added in v1.4.0
func NewModifySnapshotAttributeRequestWithAllParams( regionId string, snapshotId string, name *string, description *string, ) *ModifySnapshotAttributeRequest
* param regionId: 地域ID (Required) * param snapshotId: 快照ID (Required) * param name: 快照名称 (Optional) * param description: 快照描述,name和description必须要指定一个 (Optional)
func NewModifySnapshotAttributeRequestWithoutParam ¶ added in v1.4.0
func NewModifySnapshotAttributeRequestWithoutParam() *ModifySnapshotAttributeRequest
This constructor has better compatible ability when API parameters changed
func (ModifySnapshotAttributeRequest) GetRegionId ¶ added in v1.4.0
func (r ModifySnapshotAttributeRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*ModifySnapshotAttributeRequest) SetDescription ¶ added in v1.4.0
func (r *ModifySnapshotAttributeRequest) SetDescription(description string)
param description: 快照描述,name和description必须要指定一个(Optional)
func (*ModifySnapshotAttributeRequest) SetName ¶ added in v1.4.0
func (r *ModifySnapshotAttributeRequest) SetName(name string)
param name: 快照名称(Optional)
func (*ModifySnapshotAttributeRequest) SetRegionId ¶ added in v1.4.0
func (r *ModifySnapshotAttributeRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
func (*ModifySnapshotAttributeRequest) SetSnapshotId ¶ added in v1.4.0
func (r *ModifySnapshotAttributeRequest) SetSnapshotId(snapshotId string)
param snapshotId: 快照ID(Required)
type ModifySnapshotAttributeResponse ¶ added in v1.4.0
type ModifySnapshotAttributeResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result ModifySnapshotAttributeResult `json:"result"` }
type ModifySnapshotAttributeResult ¶ added in v1.4.0
type ModifySnapshotAttributeResult struct { }
type RestoreDiskRequest ¶
type RestoreDiskRequest struct { core.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 (Required) * param diskId: 云硬盘ID (Required) * param snapshotId: 用于恢复云盘的快照ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewRestoreDiskRequestWithAllParams ¶ added in v1.0.4
func NewRestoreDiskRequestWithAllParams( regionId string, diskId string, snapshotId string, ) *RestoreDiskRequest
* param regionId: 地域ID (Required) * param diskId: 云硬盘ID (Required) * param snapshotId: 用于恢复云盘的快照ID (Required)
func NewRestoreDiskRequestWithoutParam ¶ added in v1.0.4
func NewRestoreDiskRequestWithoutParam() *RestoreDiskRequest
This constructor has better compatible ability when API parameters changed
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)
param diskId: 云硬盘ID(Required)
func (*RestoreDiskRequest) SetRegionId ¶
func (r *RestoreDiskRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
func (*RestoreDiskRequest) SetSnapshotId ¶
func (r *RestoreDiskRequest) SetSnapshotId(snapshotId string)
param snapshotId: 用于恢复云盘的快照ID(Required)
type RestoreDiskResponse ¶
type RestoreDiskResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result RestoreDiskResult `json:"result"` }
type RestoreDiskResult ¶
type RestoreDiskResult struct { }