Class: TencentCloud::Gpm::V20200820::CreateMatchRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Gpm::V20200820::CreateMatchRequest
- Defined in:
- lib/v20200820/models.rb
Overview
CreateMatch请求参数结构体
Instance Attribute Summary collapse
- #CustomPushData ⇒ Object
- #GameProperties ⇒ Object
- #LogSwitch ⇒ Object
- #MatchDesc ⇒ Object
- #MatchName ⇒ Object
- #NotifyUrl ⇒ Object
- #RuleCode ⇒ Object
- #ServerQueue ⇒ Object
- #ServerRegion ⇒ Object
- #ServerSessionData ⇒ Object
- #ServerType ⇒ Object
- #Tags ⇒ Object
- #Timeout ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(matchname = nil, rulecode = nil, timeout = nil, servertype = nil, matchdesc = nil, notifyurl = nil, serverregion = nil, serverqueue = nil, custompushdata = nil, serversessiondata = nil, gameproperties = nil, logswitch = nil, tags = nil) ⇒ CreateMatchRequest
constructor
A new instance of CreateMatchRequest.
Constructor Details
#initialize(matchname = nil, rulecode = nil, timeout = nil, servertype = nil, matchdesc = nil, notifyurl = nil, serverregion = nil, serverqueue = nil, custompushdata = nil, serversessiondata = nil, gameproperties = nil, logswitch = nil, tags = nil) ⇒ CreateMatchRequest
Returns a new instance of CreateMatchRequest.
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 |
# File 'lib/v20200820/models.rb', line 111 def initialize(matchname=nil, rulecode=nil, timeout=nil, servertype=nil, matchdesc=nil, notifyurl=nil, serverregion=nil, serverqueue=nil, custompushdata=nil, serversessiondata=nil, gameproperties=nil, logswitch=nil, =nil) @MatchName = matchname @RuleCode = rulecode @Timeout = timeout @ServerType = servertype @MatchDesc = matchdesc @NotifyUrl = notifyurl @ServerRegion = serverregion @ServerQueue = serverqueue @CustomPushData = custompushdata @ServerSessionData = serversessiondata @GameProperties = gameproperties @LogSwitch = logswitch @Tags = end |
Instance Attribute Details
#CustomPushData ⇒ Object
109 110 111 |
# File 'lib/v20200820/models.rb', line 109 def CustomPushData @CustomPushData end |
#GameProperties ⇒ Object
109 110 111 |
# File 'lib/v20200820/models.rb', line 109 def GameProperties @GameProperties end |
#LogSwitch ⇒ Object
109 110 111 |
# File 'lib/v20200820/models.rb', line 109 def LogSwitch @LogSwitch end |
#MatchDesc ⇒ Object
109 110 111 |
# File 'lib/v20200820/models.rb', line 109 def MatchDesc @MatchDesc end |
#MatchName ⇒ Object
109 110 111 |
# File 'lib/v20200820/models.rb', line 109 def MatchName @MatchName end |
#NotifyUrl ⇒ Object
109 110 111 |
# File 'lib/v20200820/models.rb', line 109 def NotifyUrl @NotifyUrl end |
#RuleCode ⇒ Object
109 110 111 |
# File 'lib/v20200820/models.rb', line 109 def RuleCode @RuleCode end |
#ServerQueue ⇒ Object
109 110 111 |
# File 'lib/v20200820/models.rb', line 109 def ServerQueue @ServerQueue end |
#ServerRegion ⇒ Object
109 110 111 |
# File 'lib/v20200820/models.rb', line 109 def ServerRegion @ServerRegion end |
#ServerSessionData ⇒ Object
109 110 111 |
# File 'lib/v20200820/models.rb', line 109 def ServerSessionData @ServerSessionData end |
#ServerType ⇒ Object
109 110 111 |
# File 'lib/v20200820/models.rb', line 109 def ServerType @ServerType end |
#Tags ⇒ Object
109 110 111 |
# File 'lib/v20200820/models.rb', line 109 def Tags @Tags end |
#Timeout ⇒ Object
109 110 111 |
# File 'lib/v20200820/models.rb', line 109 def Timeout @Timeout end |
Instance Method Details
#deserialize(params) ⇒ Object
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 |
# File 'lib/v20200820/models.rb', line 127 def deserialize(params) @MatchName = params['MatchName'] @RuleCode = params['RuleCode'] @Timeout = params['Timeout'] @ServerType = params['ServerType'] @MatchDesc = params['MatchDesc'] @NotifyUrl = params['NotifyUrl'] @ServerRegion = params['ServerRegion'] @ServerQueue = params['ServerQueue'] @CustomPushData = params['CustomPushData'] @ServerSessionData = params['ServerSessionData'] unless params['GameProperties'].nil? @GameProperties = [] params['GameProperties'].each do |i| stringkv_tmp = StringKV.new stringkv_tmp.deserialize(i) @GameProperties << stringkv_tmp end end @LogSwitch = params['LogSwitch'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| stringkv_tmp = StringKV.new stringkv_tmp.deserialize(i) @Tags << stringkv_tmp end end end |