Class: TencentCloud::Gpm::V20200820::ModifyMatchRequest

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

Overview

ModifyMatch请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(matchname = nil, rulecode = nil, timeout = nil, servertype = nil, matchcode = nil, matchdesc = nil, notifyurl = nil, serverregion = nil, serverqueue = nil, custompushdata = nil, serversessiondata = nil, gameproperties = nil, logswitch = nil, tags = nil) ⇒ ModifyMatchRequest

Returns a new instance of ModifyMatchRequest.



1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
# File 'lib/v20200820/models.rb', line 1092

def initialize(matchname=nil, rulecode=nil, timeout=nil, servertype=nil, matchcode=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
  @MatchCode = matchcode
  @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资源

  • MatchCode:

    匹配code

  • MatchDesc:

    匹配描述,最长1024

  • NotifyUrl:

    只支持 http 和 https 协议

  • ServerRegion:

    游戏服务器队列地域

  • ServerQueue:

    游戏服务器队列

  • CustomPushData:

    自定义推送数据

  • ServerSessionData:

    游戏服务器会话数据

  • GameProperties:

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

  • LogSwitch:

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

  • Tags:

    标签,key-value结构的数组



1090
1091
1092
# File 'lib/v20200820/models.rb', line 1090

def CustomPushData
  @CustomPushData
end

#GamePropertiesObject

Parameters:

  • MatchName:

    匹配名称,* 长度128

  • RuleCode:

    规则code

  • Timeout:

    超时时间,1-600秒

  • ServerType:

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

  • MatchCode:

    匹配code

  • MatchDesc:

    匹配描述,最长1024

  • NotifyUrl:

    只支持 http 和 https 协议

  • ServerRegion:

    游戏服务器队列地域

  • ServerQueue:

    游戏服务器队列

  • CustomPushData:

    自定义推送数据

  • ServerSessionData:

    游戏服务器会话数据

  • GameProperties:

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

  • LogSwitch:

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

  • Tags:

    标签,key-value结构的数组



1090
1091
1092
# File 'lib/v20200820/models.rb', line 1090

def GameProperties
  @GameProperties
end

#LogSwitchObject

Parameters:

  • MatchName:

    匹配名称,* 长度128

  • RuleCode:

    规则code

  • Timeout:

    超时时间,1-600秒

  • ServerType:

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

  • MatchCode:

    匹配code

  • MatchDesc:

    匹配描述,最长1024

  • NotifyUrl:

    只支持 http 和 https 协议

  • ServerRegion:

    游戏服务器队列地域

  • ServerQueue:

    游戏服务器队列

  • CustomPushData:

    自定义推送数据

  • ServerSessionData:

    游戏服务器会话数据

  • GameProperties:

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

  • LogSwitch:

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

  • Tags:

    标签,key-value结构的数组



1090
1091
1092
# File 'lib/v20200820/models.rb', line 1090

def LogSwitch
  @LogSwitch
end

#MatchCodeObject

Parameters:

  • MatchName:

    匹配名称,* 长度128

  • RuleCode:

    规则code

  • Timeout:

    超时时间,1-600秒

  • ServerType:

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

  • MatchCode:

    匹配code

  • MatchDesc:

    匹配描述,最长1024

  • NotifyUrl:

    只支持 http 和 https 协议

  • ServerRegion:

    游戏服务器队列地域

  • ServerQueue:

    游戏服务器队列

  • CustomPushData:

    自定义推送数据

  • ServerSessionData:

    游戏服务器会话数据

  • GameProperties:

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

  • LogSwitch:

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

  • Tags:

    标签,key-value结构的数组



1090
1091
1092
# File 'lib/v20200820/models.rb', line 1090

def MatchCode
  @MatchCode
end

#MatchDescObject

Parameters:

  • MatchName:

    匹配名称,* 长度128

  • RuleCode:

    规则code

  • Timeout:

    超时时间,1-600秒

  • ServerType:

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

  • MatchCode:

    匹配code

  • MatchDesc:

    匹配描述,最长1024

  • NotifyUrl:

    只支持 http 和 https 协议

  • ServerRegion:

    游戏服务器队列地域

  • ServerQueue:

    游戏服务器队列

  • CustomPushData:

    自定义推送数据

  • ServerSessionData:

    游戏服务器会话数据

  • GameProperties:

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

  • LogSwitch:

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

  • Tags:

    标签,key-value结构的数组



1090
1091
1092
# File 'lib/v20200820/models.rb', line 1090

def MatchDesc
  @MatchDesc
end

#MatchNameObject

Parameters:

  • MatchName:

    匹配名称,* 长度128

  • RuleCode:

    规则code

  • Timeout:

    超时时间,1-600秒

  • ServerType:

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

  • MatchCode:

    匹配code

  • MatchDesc:

    匹配描述,最长1024

  • NotifyUrl:

    只支持 http 和 https 协议

  • ServerRegion:

    游戏服务器队列地域

  • ServerQueue:

    游戏服务器队列

  • CustomPushData:

    自定义推送数据

  • ServerSessionData:

    游戏服务器会话数据

  • GameProperties:

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

  • LogSwitch:

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

  • Tags:

    标签,key-value结构的数组



1090
1091
1092
# File 'lib/v20200820/models.rb', line 1090

def MatchName
  @MatchName
end

#NotifyUrlObject

Parameters:

  • MatchName:

    匹配名称,* 长度128

  • RuleCode:

    规则code

  • Timeout:

    超时时间,1-600秒

  • ServerType:

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

  • MatchCode:

    匹配code

  • MatchDesc:

    匹配描述,最长1024

  • NotifyUrl:

    只支持 http 和 https 协议

  • ServerRegion:

    游戏服务器队列地域

  • ServerQueue:

    游戏服务器队列

  • CustomPushData:

    自定义推送数据

  • ServerSessionData:

    游戏服务器会话数据

  • GameProperties:

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

  • LogSwitch:

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

  • Tags:

    标签,key-value结构的数组



1090
1091
1092
# File 'lib/v20200820/models.rb', line 1090

def NotifyUrl
  @NotifyUrl
end

#RuleCodeObject

Parameters:

  • MatchName:

    匹配名称,* 长度128

  • RuleCode:

    规则code

  • Timeout:

    超时时间,1-600秒

  • ServerType:

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

  • MatchCode:

    匹配code

  • MatchDesc:

    匹配描述,最长1024

  • NotifyUrl:

    只支持 http 和 https 协议

  • ServerRegion:

    游戏服务器队列地域

  • ServerQueue:

    游戏服务器队列

  • CustomPushData:

    自定义推送数据

  • ServerSessionData:

    游戏服务器会话数据

  • GameProperties:

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

  • LogSwitch:

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

  • Tags:

    标签,key-value结构的数组



1090
1091
1092
# File 'lib/v20200820/models.rb', line 1090

def RuleCode
  @RuleCode
end

#ServerQueueObject

Parameters:

  • MatchName:

    匹配名称,* 长度128

  • RuleCode:

    规则code

  • Timeout:

    超时时间,1-600秒

  • ServerType:

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

  • MatchCode:

    匹配code

  • MatchDesc:

    匹配描述,最长1024

  • NotifyUrl:

    只支持 http 和 https 协议

  • ServerRegion:

    游戏服务器队列地域

  • ServerQueue:

    游戏服务器队列

  • CustomPushData:

    自定义推送数据

  • ServerSessionData:

    游戏服务器会话数据

  • GameProperties:

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

  • LogSwitch:

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

  • Tags:

    标签,key-value结构的数组



1090
1091
1092
# File 'lib/v20200820/models.rb', line 1090

def ServerQueue
  @ServerQueue
end

#ServerRegionObject

Parameters:

  • MatchName:

    匹配名称,* 长度128

  • RuleCode:

    规则code

  • Timeout:

    超时时间,1-600秒

  • ServerType:

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

  • MatchCode:

    匹配code

  • MatchDesc:

    匹配描述,最长1024

  • NotifyUrl:

    只支持 http 和 https 协议

  • ServerRegion:

    游戏服务器队列地域

  • ServerQueue:

    游戏服务器队列

  • CustomPushData:

    自定义推送数据

  • ServerSessionData:

    游戏服务器会话数据

  • GameProperties:

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

  • LogSwitch:

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

  • Tags:

    标签,key-value结构的数组



1090
1091
1092
# File 'lib/v20200820/models.rb', line 1090

def ServerRegion
  @ServerRegion
end

#ServerSessionDataObject

Parameters:

  • MatchName:

    匹配名称,* 长度128

  • RuleCode:

    规则code

  • Timeout:

    超时时间,1-600秒

  • ServerType:

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

  • MatchCode:

    匹配code

  • MatchDesc:

    匹配描述,最长1024

  • NotifyUrl:

    只支持 http 和 https 协议

  • ServerRegion:

    游戏服务器队列地域

  • ServerQueue:

    游戏服务器队列

  • CustomPushData:

    自定义推送数据

  • ServerSessionData:

    游戏服务器会话数据

  • GameProperties:

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

  • LogSwitch:

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

  • Tags:

    标签,key-value结构的数组



1090
1091
1092
# File 'lib/v20200820/models.rb', line 1090

def ServerSessionData
  @ServerSessionData
end

#ServerTypeObject

Parameters:

  • MatchName:

    匹配名称,* 长度128

  • RuleCode:

    规则code

  • Timeout:

    超时时间,1-600秒

  • ServerType:

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

  • MatchCode:

    匹配code

  • MatchDesc:

    匹配描述,最长1024

  • NotifyUrl:

    只支持 http 和 https 协议

  • ServerRegion:

    游戏服务器队列地域

  • ServerQueue:

    游戏服务器队列

  • CustomPushData:

    自定义推送数据

  • ServerSessionData:

    游戏服务器会话数据

  • GameProperties:

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

  • LogSwitch:

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

  • Tags:

    标签,key-value结构的数组



1090
1091
1092
# File 'lib/v20200820/models.rb', line 1090

def ServerType
  @ServerType
end

#TagsObject

Parameters:

  • MatchName:

    匹配名称,* 长度128

  • RuleCode:

    规则code

  • Timeout:

    超时时间,1-600秒

  • ServerType:

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

  • MatchCode:

    匹配code

  • MatchDesc:

    匹配描述,最长1024

  • NotifyUrl:

    只支持 http 和 https 协议

  • ServerRegion:

    游戏服务器队列地域

  • ServerQueue:

    游戏服务器队列

  • CustomPushData:

    自定义推送数据

  • ServerSessionData:

    游戏服务器会话数据

  • GameProperties:

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

  • LogSwitch:

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

  • Tags:

    标签,key-value结构的数组



1090
1091
1092
# File 'lib/v20200820/models.rb', line 1090

def Tags
  @Tags
end

#TimeoutObject

Parameters:

  • MatchName:

    匹配名称,* 长度128

  • RuleCode:

    规则code

  • Timeout:

    超时时间,1-600秒

  • ServerType:

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

  • MatchCode:

    匹配code

  • MatchDesc:

    匹配描述,最长1024

  • NotifyUrl:

    只支持 http 和 https 协议

  • ServerRegion:

    游戏服务器队列地域

  • ServerQueue:

    游戏服务器队列

  • CustomPushData:

    自定义推送数据

  • ServerSessionData:

    游戏服务器会话数据

  • GameProperties:

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

  • LogSwitch:

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

  • Tags:

    标签,key-value结构的数组



1090
1091
1092
# File 'lib/v20200820/models.rb', line 1090

def Timeout
  @Timeout
end

Instance Method Details

#deserialize(params) ⇒ Object



1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
# File 'lib/v20200820/models.rb', line 1109

def deserialize(params)
  @MatchName = params['MatchName']
  @RuleCode = params['RuleCode']
  @Timeout = params['Timeout']
  @ServerType = params['ServerType']
  @MatchCode = params['MatchCode']
  @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