Class: TencentCloud::Cfs::V20190719::CreateCfsSnapshotRequest

Inherits:
TencentCloud::Common::AbstractModel
  • Object
show all
Defined in:
lib/v20190719/models.rb

Overview

CreateCfsSnapshot请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(filesystemid = nil, snapshotname = nil, resourcetags = nil) ⇒ CreateCfsSnapshotRequest

Returns a new instance of CreateCfsSnapshotRequest.



822
823
824
825
826
# File 'lib/v20190719/models.rb', line 822

def initialize(filesystemid=nil, snapshotname=nil, resourcetags=nil)
  @FileSystemId = filesystemid
  @SnapshotName = snapshotname
  @ResourceTags = resourcetags
end

Instance Attribute Details

#FileSystemIdObject

Parameters:

  • FileSystemId:

    文件系统ID,通过查询文件系统列表获取;DescribeCfsFileSystems

  • SnapshotName:

    快照名称,支持不超过64字符长度,支持中文、数字、_、-

  • ResourceTags:

    快照标签



820
821
822
# File 'lib/v20190719/models.rb', line 820

def FileSystemId
  @FileSystemId
end

#ResourceTagsObject

Parameters:

  • FileSystemId:

    文件系统ID,通过查询文件系统列表获取;DescribeCfsFileSystems

  • SnapshotName:

    快照名称,支持不超过64字符长度,支持中文、数字、_、-

  • ResourceTags:

    快照标签



820
821
822
# File 'lib/v20190719/models.rb', line 820

def ResourceTags
  @ResourceTags
end

#SnapshotNameObject

Parameters:

  • FileSystemId:

    文件系统ID,通过查询文件系统列表获取;DescribeCfsFileSystems

  • SnapshotName:

    快照名称,支持不超过64字符长度,支持中文、数字、_、-

  • ResourceTags:

    快照标签



820
821
822
# File 'lib/v20190719/models.rb', line 820

def SnapshotName
  @SnapshotName
end

Instance Method Details

#deserialize(params) ⇒ Object



828
829
830
831
832
833
834
835
836
837
838
839
# File 'lib/v20190719/models.rb', line 828

def deserialize(params)
  @FileSystemId = params['FileSystemId']
  @SnapshotName = params['SnapshotName']
  unless params['ResourceTags'].nil?
    @ResourceTags = []
    params['ResourceTags'].each do |i|
      taginfo_tmp = TagInfo.new
      taginfo_tmp.deserialize(i)
      @ResourceTags << taginfo_tmp
    end
  end
end