Class: TencentCloud::Postgres::V20170312::BackupDownloadRestriction

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

Overview

备份下载限制信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(restrictiontype = nil, vpcrestrictioneffect = nil, vpcidset = nil, iprestrictioneffect = nil, ipset = nil) ⇒ BackupDownloadRestriction

Returns a new instance of BackupDownloadRestriction.



194
195
196
197
198
199
200
# File 'lib/v20170312/models.rb', line 194

def initialize(restrictiontype=nil, vpcrestrictioneffect=nil, vpcidset=nil, iprestrictioneffect=nil, ipset=nil)
  @RestrictionType = restrictiontype
  @VpcRestrictionEffect = vpcrestrictioneffect
  @VpcIdSet = vpcidset
  @IpRestrictionEffect = iprestrictioneffect
  @IpSet = ipset
end

Instance Attribute Details

#IpRestrictionEffectObject

Parameters:

  • RestrictionType:

    备份文件下载限制类型,NONE 无限制,内外网都可以下载;INTRANET 只允许内网下载;CUSTOMIZE 自定义限制下载的vpc或ip。当该参数取值为CUSTOMIZE 时,vpc或ip信息至少填写一项

  • VpcRestrictionEffect:

    vpc限制效力,ALLOW 允许;DENY 拒绝。

  • VpcIdSet:

    允许或拒绝下载备份文件的vpcId列表。

  • IpRestrictionEffect:

    ip限制效力,ALLOW 允许;DENY 拒绝。

  • IpSet:

    允许或拒绝下载备份文件的ip列表。



192
193
194
# File 'lib/v20170312/models.rb', line 192

def IpRestrictionEffect
  @IpRestrictionEffect
end

#IpSetObject

Parameters:

  • RestrictionType:

    备份文件下载限制类型,NONE 无限制,内外网都可以下载;INTRANET 只允许内网下载;CUSTOMIZE 自定义限制下载的vpc或ip。当该参数取值为CUSTOMIZE 时,vpc或ip信息至少填写一项

  • VpcRestrictionEffect:

    vpc限制效力,ALLOW 允许;DENY 拒绝。

  • VpcIdSet:

    允许或拒绝下载备份文件的vpcId列表。

  • IpRestrictionEffect:

    ip限制效力,ALLOW 允许;DENY 拒绝。

  • IpSet:

    允许或拒绝下载备份文件的ip列表。



192
193
194
# File 'lib/v20170312/models.rb', line 192

def IpSet
  @IpSet
end

#RestrictionTypeObject

Parameters:

  • RestrictionType:

    备份文件下载限制类型,NONE 无限制,内外网都可以下载;INTRANET 只允许内网下载;CUSTOMIZE 自定义限制下载的vpc或ip。当该参数取值为CUSTOMIZE 时,vpc或ip信息至少填写一项

  • VpcRestrictionEffect:

    vpc限制效力,ALLOW 允许;DENY 拒绝。

  • VpcIdSet:

    允许或拒绝下载备份文件的vpcId列表。

  • IpRestrictionEffect:

    ip限制效力,ALLOW 允许;DENY 拒绝。

  • IpSet:

    允许或拒绝下载备份文件的ip列表。



192
193
194
# File 'lib/v20170312/models.rb', line 192

def RestrictionType
  @RestrictionType
end

#VpcIdSetObject

Parameters:

  • RestrictionType:

    备份文件下载限制类型,NONE 无限制,内外网都可以下载;INTRANET 只允许内网下载;CUSTOMIZE 自定义限制下载的vpc或ip。当该参数取值为CUSTOMIZE 时,vpc或ip信息至少填写一项

  • VpcRestrictionEffect:

    vpc限制效力,ALLOW 允许;DENY 拒绝。

  • VpcIdSet:

    允许或拒绝下载备份文件的vpcId列表。

  • IpRestrictionEffect:

    ip限制效力,ALLOW 允许;DENY 拒绝。

  • IpSet:

    允许或拒绝下载备份文件的ip列表。



192
193
194
# File 'lib/v20170312/models.rb', line 192

def VpcIdSet
  @VpcIdSet
end

#VpcRestrictionEffectObject

Parameters:

  • RestrictionType:

    备份文件下载限制类型,NONE 无限制,内外网都可以下载;INTRANET 只允许内网下载;CUSTOMIZE 自定义限制下载的vpc或ip。当该参数取值为CUSTOMIZE 时,vpc或ip信息至少填写一项

  • VpcRestrictionEffect:

    vpc限制效力,ALLOW 允许;DENY 拒绝。

  • VpcIdSet:

    允许或拒绝下载备份文件的vpcId列表。

  • IpRestrictionEffect:

    ip限制效力,ALLOW 允许;DENY 拒绝。

  • IpSet:

    允许或拒绝下载备份文件的ip列表。



192
193
194
# File 'lib/v20170312/models.rb', line 192

def VpcRestrictionEffect
  @VpcRestrictionEffect
end

Instance Method Details

#deserialize(params) ⇒ Object



202
203
204
205
206
207
208
# File 'lib/v20170312/models.rb', line 202

def deserialize(params)
  @RestrictionType = params['RestrictionType']
  @VpcRestrictionEffect = params['VpcRestrictionEffect']
  @VpcIdSet = params['VpcIdSet']
  @IpRestrictionEffect = params['IpRestrictionEffect']
  @IpSet = params['IpSet']
end