Class: TencentCloud::Apigateway::V20180808::CreateUsagePlanRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Apigateway::V20180808::CreateUsagePlanRequest
- Defined in:
- lib/v20180808/models.rb
Overview
CreateUsagePlan请求参数结构体
Instance Attribute Summary collapse
- #MaxRequestNum ⇒ Object
- #MaxRequestNumPreSec ⇒ Object
- #Tags ⇒ Object
- #UsagePlanDesc ⇒ Object
- #UsagePlanName ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(usageplanname = nil, usageplandesc = nil, maxrequestnum = nil, maxrequestnumpresec = nil, tags = nil) ⇒ CreateUsagePlanRequest
constructor
A new instance of CreateUsagePlanRequest.
Constructor Details
#initialize(usageplanname = nil, usageplandesc = nil, maxrequestnum = nil, maxrequestnumpresec = nil, tags = nil) ⇒ CreateUsagePlanRequest
Returns a new instance of CreateUsagePlanRequest.
2778 2779 2780 2781 2782 2783 2784 |
# File 'lib/v20180808/models.rb', line 2778 def initialize(usageplanname=nil, usageplandesc=nil, maxrequestnum=nil, maxrequestnumpresec=nil, =nil) @UsagePlanName = usageplanname @UsagePlanDesc = usageplandesc @MaxRequestNum = maxrequestnum @MaxRequestNumPreSec = maxrequestnumpresec @Tags = end |
Instance Attribute Details
#MaxRequestNum ⇒ Object
2776 2777 2778 |
# File 'lib/v20180808/models.rb', line 2776 def MaxRequestNum @MaxRequestNum end |
#MaxRequestNumPreSec ⇒ Object
2776 2777 2778 |
# File 'lib/v20180808/models.rb', line 2776 def MaxRequestNumPreSec @MaxRequestNumPreSec end |
#Tags ⇒ Object
2776 2777 2778 |
# File 'lib/v20180808/models.rb', line 2776 def Tags @Tags end |
#UsagePlanDesc ⇒ Object
2776 2777 2778 |
# File 'lib/v20180808/models.rb', line 2776 def UsagePlanDesc @UsagePlanDesc end |
#UsagePlanName ⇒ Object
2776 2777 2778 |
# File 'lib/v20180808/models.rb', line 2776 def UsagePlanName @UsagePlanName end |
Instance Method Details
#deserialize(params) ⇒ Object
2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 |
# File 'lib/v20180808/models.rb', line 2786 def deserialize(params) @UsagePlanName = params['UsagePlanName'] @UsagePlanDesc = params['UsagePlanDesc'] @MaxRequestNum = params['MaxRequestNum'] @MaxRequestNumPreSec = params['MaxRequestNumPreSec'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end end |