Class: TencentCloud::Apigateway::V20180808::UsagePlan

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

Overview

usagePlan详情

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(environment = nil, usageplanid = nil, usageplanname = nil, usageplandesc = nil, maxrequestnumpresec = nil, createdtime = nil, modifiedtime = nil) ⇒ UsagePlan

Returns a new instance of UsagePlan.



9791
9792
9793
9794
9795
9796
9797
9798
9799
# File 'lib/v20180808/models.rb', line 9791

def initialize(environment=nil, usageplanid=nil, usageplanname=nil, usageplandesc=nil, maxrequestnumpresec=nil, createdtime=nil, modifiedtime=nil)
  @Environment = environment
  @UsagePlanId = usageplanid
  @UsagePlanName = usageplanname
  @UsagePlanDesc = usageplandesc
  @MaxRequestNumPreSec = maxrequestnumpresec
  @CreatedTime = createdtime
  @ModifiedTime = modifiedtime
end

Instance Attribute Details

#CreatedTimeObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Environment:

    环境名称。

  • UsagePlanId:

    使用计划唯一ID。

  • UsagePlanName:

    使用计划名称。

  • UsagePlanDesc:

    使用计划描述。

  • MaxRequestNumPreSec:

    使用计划qps,-1表示没有限制。

  • CreatedTime:

    使用计划时间。

  • ModifiedTime:

    使用计划修改时间。



9789
9790
9791
# File 'lib/v20180808/models.rb', line 9789

def CreatedTime
  @CreatedTime
end

#EnvironmentObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Environment:

    环境名称。

  • UsagePlanId:

    使用计划唯一ID。

  • UsagePlanName:

    使用计划名称。

  • UsagePlanDesc:

    使用计划描述。

  • MaxRequestNumPreSec:

    使用计划qps,-1表示没有限制。

  • CreatedTime:

    使用计划时间。

  • ModifiedTime:

    使用计划修改时间。



9789
9790
9791
# File 'lib/v20180808/models.rb', line 9789

def Environment
  @Environment
end

#MaxRequestNumPreSecObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Environment:

    环境名称。

  • UsagePlanId:

    使用计划唯一ID。

  • UsagePlanName:

    使用计划名称。

  • UsagePlanDesc:

    使用计划描述。

  • MaxRequestNumPreSec:

    使用计划qps,-1表示没有限制。

  • CreatedTime:

    使用计划时间。

  • ModifiedTime:

    使用计划修改时间。



9789
9790
9791
# File 'lib/v20180808/models.rb', line 9789

def MaxRequestNumPreSec
  @MaxRequestNumPreSec
end

#ModifiedTimeObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Environment:

    环境名称。

  • UsagePlanId:

    使用计划唯一ID。

  • UsagePlanName:

    使用计划名称。

  • UsagePlanDesc:

    使用计划描述。

  • MaxRequestNumPreSec:

    使用计划qps,-1表示没有限制。

  • CreatedTime:

    使用计划时间。

  • ModifiedTime:

    使用计划修改时间。



9789
9790
9791
# File 'lib/v20180808/models.rb', line 9789

def ModifiedTime
  @ModifiedTime
end

#UsagePlanDescObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Environment:

    环境名称。

  • UsagePlanId:

    使用计划唯一ID。

  • UsagePlanName:

    使用计划名称。

  • UsagePlanDesc:

    使用计划描述。

  • MaxRequestNumPreSec:

    使用计划qps,-1表示没有限制。

  • CreatedTime:

    使用计划时间。

  • ModifiedTime:

    使用计划修改时间。



9789
9790
9791
# File 'lib/v20180808/models.rb', line 9789

def UsagePlanDesc
  @UsagePlanDesc
end

#UsagePlanIdObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Environment:

    环境名称。

  • UsagePlanId:

    使用计划唯一ID。

  • UsagePlanName:

    使用计划名称。

  • UsagePlanDesc:

    使用计划描述。

  • MaxRequestNumPreSec:

    使用计划qps,-1表示没有限制。

  • CreatedTime:

    使用计划时间。

  • ModifiedTime:

    使用计划修改时间。



9789
9790
9791
# File 'lib/v20180808/models.rb', line 9789

def UsagePlanId
  @UsagePlanId
end

#UsagePlanNameObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Environment:

    环境名称。

  • UsagePlanId:

    使用计划唯一ID。

  • UsagePlanName:

    使用计划名称。

  • UsagePlanDesc:

    使用计划描述。

  • MaxRequestNumPreSec:

    使用计划qps,-1表示没有限制。

  • CreatedTime:

    使用计划时间。

  • ModifiedTime:

    使用计划修改时间。



9789
9790
9791
# File 'lib/v20180808/models.rb', line 9789

def UsagePlanName
  @UsagePlanName
end

Instance Method Details

#deserialize(params) ⇒ Object



9801
9802
9803
9804
9805
9806
9807
9808
9809
# File 'lib/v20180808/models.rb', line 9801

def deserialize(params)
  @Environment = params['Environment']
  @UsagePlanId = params['UsagePlanId']
  @UsagePlanName = params['UsagePlanName']
  @UsagePlanDesc = params['UsagePlanDesc']
  @MaxRequestNumPreSec = params['MaxRequestNumPreSec']
  @CreatedTime = params['CreatedTime']
  @ModifiedTime = params['ModifiedTime']
end