Class: TencentCloud::Tione::V20211111::AuthToken
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tione::V20211111::AuthToken
- Defined in:
- lib/v20211111/models.rb
Overview
在线服务的 AuthToken 数据
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(base = nil, limits = nil) ⇒ AuthToken
constructor
A new instance of AuthToken.
Constructor Details
#initialize(base = nil, limits = nil) ⇒ AuthToken
Returns a new instance of AuthToken.
61 62 63 64 |
# File 'lib/v20211111/models.rb', line 61 def initialize(base=nil, limits=nil) @Base = base @Limits = limits end |
Instance Attribute Details
#Base ⇒ Object
59 60 61 |
# File 'lib/v20211111/models.rb', line 59 def Base @Base end |
#Limits ⇒ Object
59 60 61 |
# File 'lib/v20211111/models.rb', line 59 def Limits @Limits end |
Instance Method Details
#deserialize(params) ⇒ Object
66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/v20211111/models.rb', line 66 def deserialize(params) unless params['Base'].nil? @Base = AuthTokenBase.new @Base.deserialize(params['Base']) end unless params['Limits'].nil? @Limits = [] params['Limits'].each do |i| authtokenlimit_tmp = AuthTokenLimit.new authtokenlimit_tmp.deserialize(i) @Limits << authtokenlimit_tmp end end end |