Class: TencentCloud::Cdn::V20180606::DescribePurgeQuotaResponse

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

Overview

DescribePurgeQuota返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(urlpurge = nil, pathpurge = nil, requestid = nil) ⇒ DescribePurgeQuotaResponse

Returns a new instance of DescribePurgeQuotaResponse.



5161
5162
5163
5164
5165
# File 'lib/v20180606/models.rb', line 5161

def initialize(urlpurge=nil, pathpurge=nil, requestid=nil)
  @UrlPurge = urlpurge
  @PathPurge = pathpurge
  @RequestId = requestid
end

Instance Attribute Details

#PathPurgeObject

Parameters:

  • UrlPurge:

    URL刷新用量及配额。

  • PathPurge:

    目录刷新用量及配额。

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



5159
5160
5161
# File 'lib/v20180606/models.rb', line 5159

def PathPurge
  @PathPurge
end

#RequestIdObject

Parameters:

  • UrlPurge:

    URL刷新用量及配额。

  • PathPurge:

    目录刷新用量及配额。

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



5159
5160
5161
# File 'lib/v20180606/models.rb', line 5159

def RequestId
  @RequestId
end

#UrlPurgeObject

Parameters:

  • UrlPurge:

    URL刷新用量及配额。

  • PathPurge:

    目录刷新用量及配额。

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



5159
5160
5161
# File 'lib/v20180606/models.rb', line 5159

def UrlPurge
  @UrlPurge
end

Instance Method Details

#deserialize(params) ⇒ Object



5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
# File 'lib/v20180606/models.rb', line 5167

def deserialize(params)
  unless params['UrlPurge'].nil?
    @UrlPurge = []
    params['UrlPurge'].each do |i|
      quota_tmp = Quota.new
      quota_tmp.deserialize(i)
      @UrlPurge << quota_tmp
    end
  end
  unless params['PathPurge'].nil?
    @PathPurge = []
    params['PathPurge'].each do |i|
      quota_tmp = Quota.new
      quota_tmp.deserialize(i)
      @PathPurge << quota_tmp
    end
  end
  @RequestId = params['RequestId']
end