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.



2886
2887
2888
2889
2890
2891
# File 'lib/v20170312/models.rb', line 2886

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:
  • IsPermanent:

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

  • SnapshotName:

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

  • Deadline:

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



2884
2885
2886
# File 'lib/v20170312/models.rb', line 2884

def Deadline
  @Deadline
end

#IsPermanentObject

Parameters:

  • SnapshotId:
  • IsPermanent:

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

  • SnapshotName:

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

  • Deadline:

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



2884
2885
2886
# File 'lib/v20170312/models.rb', line 2884

def IsPermanent
  @IsPermanent
end

#SnapshotIdObject

Parameters:

  • SnapshotId:
  • IsPermanent:

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

  • SnapshotName:

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

  • Deadline:

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



2884
2885
2886
# File 'lib/v20170312/models.rb', line 2884

def SnapshotId
  @SnapshotId
end

#SnapshotNameObject

Parameters:

  • SnapshotId:
  • IsPermanent:

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

  • SnapshotName:

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

  • Deadline:

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



2884
2885
2886
# File 'lib/v20170312/models.rb', line 2884

def SnapshotName
  @SnapshotName
end

Instance Method Details

#deserialize(params) ⇒ Object



2893
2894
2895
2896
2897
2898
# File 'lib/v20170312/models.rb', line 2893

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