Source code for jdcloud_sdk.services.disk.models.Snapshot

# coding=utf8

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


[docs]class Snapshot(object): def __init__(self, snapshotId=None, snapshotSource=None, diskId=None, snapshotSizeGB=None, images=None, name=None, description=None, status=None, createTime=None, expireTime=None, sharInfo=None, shareInfo=None, encrypted=None): """ :param snapshotId: (Optional) 云硬盘快照ID :param snapshotSource: (Optional) 快照来源 可以有self,others两种来源 :param diskId: (Optional) 创建快照的云硬盘ID(snapshotSource为others时不展示) :param snapshotSizeGB: (Optional) 快照大小,单位为GiB :param images: (Optional) 快照关联的所有镜像ID(snapshotSource为others时不展示) :param name: (Optional) 快照名称 :param description: (Optional) 快照描述 :param status: (Optional) 快照状态,取值为 creating、available、in-use、deleting、error_create、error_delete 之一 :param createTime: (Optional) 创建时间 :param expireTime: (Optional) 过期删除时间 :param sharInfo: (Optional) 共享信息(已废弃,使用shareInfo) :param shareInfo: (Optional) 共享信息 :param encrypted: (Optional) 快照是否为加密盘的快照 """ self.snapshotId = snapshotId self.snapshotSource = snapshotSource self.diskId = diskId self.snapshotSizeGB = snapshotSizeGB self.images = images self.name = name self.description = description self.status = status self.createTime = createTime self.expireTime = expireTime self.sharInfo = sharInfo self.shareInfo = shareInfo self.encrypted = encrypted