Class: TencentCloud::Gpm::V20200820::CreateMatchRequest

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

Overview

CreateMatch请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

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, tags=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 = tags
end

Instance Attribute Details

#CustomPushDataObject

Parameters:

  • MatchName:

    匹配名称,* 长度128

  • RuleCode:

    规则code

  • Timeout:

    超时时间,1-600秒

  • ServerType:

    是否为匹配结果请求服务器资源,0表示否,1表示请求GSE资源

  • MatchDesc:

    匹配描述,最长1024

  • NotifyUrl:

    只支持https 和 http 协议

  • ServerRegion:

    游戏服务器队列地域

  • ServerQueue:

    游戏服务器队列

  • CustomPushData:

    自定义推送数据

  • ServerSessionData:

    游戏服务器会话数据

  • GameProperties:

    游戏属性,key-value结构的数组

  • LogSwitch:

    日志开关,0表示关,1表示开

  • Tags:

    标签,key-value结构的数组



109
110
111
# File 'lib/v20200820/models.rb', line 109

def CustomPushData
  @CustomPushData
end

#GamePropertiesObject

Parameters:

  • MatchName:

    匹配名称,* 长度128

  • RuleCode:

    规则code

  • Timeout:

    超时时间,1-600秒

  • ServerType:

    是否为匹配结果请求服务器资源,0表示否,1表示请求GSE资源

  • MatchDesc:

    匹配描述,最长1024

  • NotifyUrl:

    只支持https 和 http 协议

  • ServerRegion:

    游戏服务器队列地域

  • ServerQueue:

    游戏服务器队列

  • CustomPushData:

    自定义推送数据

  • ServerSessionData:

    游戏服务器会话数据

  • GameProperties:

    游戏属性,key-value结构的数组

  • LogSwitch:

    日志开关,0表示关,1表示开

  • Tags:

    标签,key-value结构的数组



109
110
111
# File 'lib/v20200820/models.rb', line 109

def GameProperties
  @GameProperties
end

#LogSwitchObject

Parameters:

  • MatchName:

    匹配名称,* 长度128

  • RuleCode:

    规则code

  • Timeout:

    超时时间,1-600秒

  • ServerType:

    是否为匹配结果请求服务器资源,0表示否,1表示请求GSE资源

  • MatchDesc:

    匹配描述,最长1024

  • NotifyUrl:

    只支持https 和 http 协议

  • ServerRegion:

    游戏服务器队列地域

  • ServerQueue:

    游戏服务器队列

  • CustomPushData:

    自定义推送数据

  • ServerSessionData:

    游戏服务器会话数据

  • GameProperties:

    游戏属性,key-value结构的数组

  • LogSwitch:

    日志开关,0表示关,1表示开

  • Tags:

    标签,key-value结构的数组



109
110
111
# File 'lib/v20200820/models.rb', line 109

def LogSwitch
  @LogSwitch
end

#MatchDescObject

Parameters:

  • MatchName:

    匹配名称,* 长度128

  • RuleCode:

    规则code

  • Timeout:

    超时时间,1-600秒

  • ServerType:

    是否为匹配结果请求服务器资源,0表示否,1表示请求GSE资源

  • MatchDesc:

    匹配描述,最长1024

  • NotifyUrl:

    只支持https 和 http 协议

  • ServerRegion:

    游戏服务器队列地域

  • ServerQueue:

    游戏服务器队列

  • CustomPushData:

    自定义推送数据

  • ServerSessionData:

    游戏服务器会话数据

  • GameProperties:

    游戏属性,key-value结构的数组

  • LogSwitch:

    日志开关,0表示关,1表示开

  • Tags:

    标签,key-value结构的数组



109
110
111
# File 'lib/v20200820/models.rb', line 109

def MatchDesc
  @MatchDesc
end

#MatchNameObject

Parameters:

  • MatchName:

    匹配名称,* 长度128

  • RuleCode:

    规则code

  • Timeout:

    超时时间,1-600秒

  • ServerType:

    是否为匹配结果请求服务器资源,0表示否,1表示请求GSE资源

  • MatchDesc:

    匹配描述,最长1024

  • NotifyUrl:

    只支持https 和 http 协议

  • ServerRegion:

    游戏服务器队列地域

  • ServerQueue:

    游戏服务器队列

  • CustomPushData:

    自定义推送数据

  • ServerSessionData:

    游戏服务器会话数据

  • GameProperties:

    游戏属性,key-value结构的数组

  • LogSwitch:

    日志开关,0表示关,1表示开

  • Tags:

    标签,key-value结构的数组



109
110
111
# File 'lib/v20200820/models.rb', line 109

def MatchName
  @MatchName
end

#NotifyUrlObject

Parameters:

  • MatchName:

    匹配名称,* 长度128

  • RuleCode:

    规则code

  • Timeout:

    超时时间,1-600秒

  • ServerType:

    是否为匹配结果请求服务器资源,0表示否,1表示请求GSE资源

  • MatchDesc:

    匹配描述,最长1024

  • NotifyUrl:

    只支持https 和 http 协议

  • ServerRegion:

    游戏服务器队列地域

  • ServerQueue:

    游戏服务器队列

  • CustomPushData:

    自定义推送数据

  • ServerSessionData:

    游戏服务器会话数据

  • GameProperties:

    游戏属性,key-value结构的数组

  • LogSwitch:

    日志开关,0表示关,1表示开

  • Tags:

    标签,key-value结构的数组



109
110
111
# File 'lib/v20200820/models.rb', line 109

def NotifyUrl
  @NotifyUrl
end

#RuleCodeObject

Parameters:

  • MatchName:

    匹配名称,* 长度128

  • RuleCode:

    规则code

  • Timeout:

    超时时间,1-600秒

  • ServerType:

    是否为匹配结果请求服务器资源,0表示否,1表示请求GSE资源

  • MatchDesc:

    匹配描述,最长1024

  • NotifyUrl:

    只支持https 和 http 协议

  • ServerRegion:

    游戏服务器队列地域

  • ServerQueue:

    游戏服务器队列

  • CustomPushData:

    自定义推送数据

  • ServerSessionData:

    游戏服务器会话数据

  • GameProperties:

    游戏属性,key-value结构的数组

  • LogSwitch:

    日志开关,0表示关,1表示开

  • Tags:

    标签,key-value结构的数组



109
110
111
# File 'lib/v20200820/models.rb', line 109

def RuleCode
  @RuleCode
end

#ServerQueueObject

Parameters:

  • MatchName:

    匹配名称,* 长度128

  • RuleCode:

    规则code

  • Timeout:

    超时时间,1-600秒

  • ServerType:

    是否为匹配结果请求服务器资源,0表示否,1表示请求GSE资源

  • MatchDesc:

    匹配描述,最长1024

  • NotifyUrl:

    只支持https 和 http 协议

  • ServerRegion:

    游戏服务器队列地域

  • ServerQueue:

    游戏服务器队列

  • CustomPushData:

    自定义推送数据

  • ServerSessionData:

    游戏服务器会话数据

  • GameProperties:

    游戏属性,key-value结构的数组

  • LogSwitch:

    日志开关,0表示关,1表示开

  • Tags:

    标签,key-value结构的数组



109
110
111
# File 'lib/v20200820/models.rb', line 109

def ServerQueue
  @ServerQueue
end

#ServerRegionObject

Parameters:

  • MatchName:

    匹配名称,* 长度128

  • RuleCode:

    规则code

  • Timeout:

    超时时间,1-600秒

  • ServerType:

    是否为匹配结果请求服务器资源,0表示否,1表示请求GSE资源

  • MatchDesc:

    匹配描述,最长1024

  • NotifyUrl:

    只支持https 和 http 协议

  • ServerRegion:

    游戏服务器队列地域

  • ServerQueue:

    游戏服务器队列

  • CustomPushData:

    自定义推送数据

  • ServerSessionData:

    游戏服务器会话数据

  • GameProperties:

    游戏属性,key-value结构的数组

  • LogSwitch:

    日志开关,0表示关,1表示开

  • Tags:

    标签,key-value结构的数组



109
110
111
# File 'lib/v20200820/models.rb', line 109

def ServerRegion
  @ServerRegion
end

#ServerSessionDataObject

Parameters:

  • MatchName:

    匹配名称,* 长度128

  • RuleCode:

    规则code

  • Timeout:

    超时时间,1-600秒

  • ServerType:

    是否为匹配结果请求服务器资源,0表示否,1表示请求GSE资源

  • MatchDesc:

    匹配描述,最长1024

  • NotifyUrl:

    只支持https 和 http 协议

  • ServerRegion:

    游戏服务器队列地域

  • ServerQueue:

    游戏服务器队列

  • CustomPushData:

    自定义推送数据

  • ServerSessionData:

    游戏服务器会话数据

  • GameProperties:

    游戏属性,key-value结构的数组

  • LogSwitch:

    日志开关,0表示关,1表示开

  • Tags:

    标签,key-value结构的数组



109
110
111
# File 'lib/v20200820/models.rb', line 109

def ServerSessionData
  @ServerSessionData
end

#ServerTypeObject

Parameters:

  • MatchName:

    匹配名称,* 长度128

  • RuleCode:

    规则code

  • Timeout:

    超时时间,1-600秒

  • ServerType:

    是否为匹配结果请求服务器资源,0表示否,1表示请求GSE资源

  • MatchDesc:

    匹配描述,最长1024

  • NotifyUrl:

    只支持https 和 http 协议

  • ServerRegion:

    游戏服务器队列地域

  • ServerQueue:

    游戏服务器队列

  • CustomPushData:

    自定义推送数据

  • ServerSessionData:

    游戏服务器会话数据

  • GameProperties:

    游戏属性,key-value结构的数组

  • LogSwitch:

    日志开关,0表示关,1表示开

  • Tags:

    标签,key-value结构的数组



109
110
111
# File 'lib/v20200820/models.rb', line 109

def ServerType
  @ServerType
end

#TagsObject

Parameters:

  • MatchName:

    匹配名称,* 长度128

  • RuleCode:

    规则code

  • Timeout:

    超时时间,1-600秒

  • ServerType:

    是否为匹配结果请求服务器资源,0表示否,1表示请求GSE资源

  • MatchDesc:

    匹配描述,最长1024

  • NotifyUrl:

    只支持https 和 http 协议

  • ServerRegion:

    游戏服务器队列地域

  • ServerQueue:

    游戏服务器队列

  • CustomPushData:

    自定义推送数据

  • ServerSessionData:

    游戏服务器会话数据

  • GameProperties:

    游戏属性,key-value结构的数组

  • LogSwitch:

    日志开关,0表示关,1表示开

  • Tags:

    标签,key-value结构的数组



109
110
111
# File 'lib/v20200820/models.rb', line 109

def Tags
  @Tags
end

#TimeoutObject

Parameters:

  • MatchName:

    匹配名称,* 长度128

  • RuleCode:

    规则code

  • Timeout:

    超时时间,1-600秒

  • ServerType:

    是否为匹配结果请求服务器资源,0表示否,1表示请求GSE资源

  • MatchDesc:

    匹配描述,最长1024

  • NotifyUrl:

    只支持https 和 http 协议

  • ServerRegion:

    游戏服务器队列地域

  • ServerQueue:

    游戏服务器队列

  • CustomPushData:

    自定义推送数据

  • ServerSessionData:

    游戏服务器会话数据

  • GameProperties:

    游戏属性,key-value结构的数组

  • LogSwitch:

    日志开关,0表示关,1表示开

  • Tags:

    标签,key-value结构的数组



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