Class: TencentCloud::Cbs::V20170312::ModifySnapshotAttributeRequest

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

Overview

ModifySnapshotAttribute请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(snapshotid = nil, ispermanent = nil, snapshotname = nil, deadline = nil) ⇒ ModifySnapshotAttributeRequest

Returns a new instance of ModifySnapshotAttributeRequest.



2931
2932
2933
2934
2935
2936
# File 'lib/v20170312/models.rb', line 2931

def initialize(snapshotid=nil, ispermanent=nil, snapshotname=nil, deadline=nil)
  @SnapshotId = snapshotid
  @IsPermanent = ispermanent
  @SnapshotName = snapshotname
  @Deadline = deadline
end

Instance Attribute Details

#DeadlineObject

Parameters:

  • SnapshotId:

    快照ID, 可通过DescribeSnapshots查询。

  • IsPermanent:

    快照的保留方式,FALSE表示非永久保留,TRUE表示永久保留。

  • SnapshotName:

    新的快照名称。最长为60个字符。

  • Deadline:

    快照的到期时间;设置好快照将会被同时设置为非永久保留方式;超过到期时间后快照将会被自动删除。注:该参数仅在参数IsPermanent为False时生效。



2929
2930
2931
# File 'lib/v20170312/models.rb', line 2929

def Deadline
  @Deadline
end

#IsPermanentObject

Parameters:

  • SnapshotId:

    快照ID, 可通过DescribeSnapshots查询。

  • IsPermanent:

    快照的保留方式,FALSE表示非永久保留,TRUE表示永久保留。

  • SnapshotName:

    新的快照名称。最长为60个字符。

  • Deadline:

    快照的到期时间;设置好快照将会被同时设置为非永久保留方式;超过到期时间后快照将会被自动删除。注:该参数仅在参数IsPermanent为False时生效。



2929
2930
2931
# File 'lib/v20170312/models.rb', line 2929

def IsPermanent
  @IsPermanent
end

#SnapshotIdObject

Parameters:

  • SnapshotId:

    快照ID, 可通过DescribeSnapshots查询。

  • IsPermanent:

    快照的保留方式,FALSE表示非永久保留,TRUE表示永久保留。

  • SnapshotName:

    新的快照名称。最长为60个字符。

  • Deadline:

    快照的到期时间;设置好快照将会被同时设置为非永久保留方式;超过到期时间后快照将会被自动删除。注:该参数仅在参数IsPermanent为False时生效。



2929
2930
2931
# File 'lib/v20170312/models.rb', line 2929

def SnapshotId
  @SnapshotId
end

#SnapshotNameObject

Parameters:

  • SnapshotId:

    快照ID, 可通过DescribeSnapshots查询。

  • IsPermanent:

    快照的保留方式,FALSE表示非永久保留,TRUE表示永久保留。

  • SnapshotName:

    新的快照名称。最长为60个字符。

  • Deadline:

    快照的到期时间;设置好快照将会被同时设置为非永久保留方式;超过到期时间后快照将会被自动删除。注:该参数仅在参数IsPermanent为False时生效。



2929
2930
2931
# File 'lib/v20170312/models.rb', line 2929

def SnapshotName
  @SnapshotName
end

Instance Method Details

#deserialize(params) ⇒ Object



2938
2939
2940
2941
2942
2943
# File 'lib/v20170312/models.rb', line 2938

def deserialize(params)
  @SnapshotId = params['SnapshotId']
  @IsPermanent = params['IsPermanent']
  @SnapshotName = params['SnapshotName']
  @Deadline = params['Deadline']
end