packer-cn/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/vm/models/Image.go

73 lines
2.6 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Copyright 2018 JDCLOUD.COM
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// NOTE: This class is auto generated by the jdcloud code generator program.
package models
type Image struct {
/* 镜像ID (Optional) */
ImageId string `json:"imageId"`
/* 镜像名称 (Optional) */
Name string `json:"name"`
/* 镜像的操作系统发行版。取值Ubuntu,CentOS,Windows Server (Optional) */
Platform string `json:"platform"`
/* 镜像的操作系统版本。 (Optional) */
OsVersion string `json:"osVersion"`
/* 镜像架构。取值i386,x86_64 (Optional) */
Architecture string `json:"architecture"`
/* 镜像系统盘大小 (Optional) */
SystemDiskSizeGB int `json:"systemDiskSizeGB"`
/* 镜像来源。取值jcloud官方镜像marketplace镜像市场镜像self用户自己的镜像shared其他用户分享的镜像 (Optional) */
ImageSource string `json:"imageSource"`
/* 镜像的操作系统类型。取值windows,linux (Optional) */
OsType string `json:"osType"`
/* <a href="http://docs.jdcloud.com/virtual-machines/api/image_status">参考镜像状态</a> (Optional) */
Status string `json:"status"`
/* 创建时间 (Optional) */
CreateTime string `json:"createTime"`
/* 镜像文件实际大小 (Optional) */
SizeMB int `json:"sizeMB"`
/* 镜像描述 (Optional) */
Desc string `json:"desc"`
/* 镜像系统盘配置 (Optional) */
SystemDisk InstanceDiskAttachment `json:"systemDisk"`
/* 镜像数据盘映射信息 (Optional) */
DataDisks []InstanceDiskAttachment `json:"dataDisks"`
/* 创建云盘系统盘所使用的云硬盘快照ID。系统盘类型为本地盘的镜像此参数为空。 (Optional) */
SnapshotId string `json:"snapshotId"`
/* 镜像支持的系统盘类型。取值localDisk本地盘系统盘cloudDisk云盘系统盘。 (Optional) */
RootDeviceType string `json:"rootDeviceType"`
/* 镜像复制和转换时的进度,仅显示数值,单位为百分比 (Optional) */
Progress string `json:"progress"`
}