Class: TencentCloud::Apigateway::V20180808::CreatePluginRequest

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

Overview

CreatePlugin请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pluginname = nil, plugintype = nil, plugindata = nil, description = nil, tags = nil) ⇒ CreatePluginRequest

Returns a new instance of CreatePluginRequest.



2503
2504
2505
2506
2507
2508
2509
# File 'lib/v20180808/models.rb', line 2503

def initialize(pluginname=nil, plugintype=nil, plugindata=nil, description=nil, tags=nil)
  @PluginName = pluginname
  @PluginType = plugintype
  @PluginData = plugindata
  @Description = description
  @Tags = tags
end

Instance Attribute Details

#DescriptionObject

Parameters:

  • PluginName:

    用户自定义的插件名称。最长50个字符,最短2个字符,支持 a-z,A-Z,0-9,_, 必须字母开头,字母或者数字结尾。

  • PluginType:

    插件类型。目前支持IPControl, TrafficControl, Cors, CustomReq, CustomAuth,Routing,TrafficControlByParameter, CircuitBreaker, ProxyCache。

  • PluginData:

    插件定义语句,支持json。

  • Description:

    插件描述,限定200字以内。

  • Tags:

    标签



2501
2502
2503
# File 'lib/v20180808/models.rb', line 2501

def Description
  @Description
end

#PluginDataObject

Parameters:

  • PluginName:

    用户自定义的插件名称。最长50个字符,最短2个字符,支持 a-z,A-Z,0-9,_, 必须字母开头,字母或者数字结尾。

  • PluginType:

    插件类型。目前支持IPControl, TrafficControl, Cors, CustomReq, CustomAuth,Routing,TrafficControlByParameter, CircuitBreaker, ProxyCache。

  • PluginData:

    插件定义语句,支持json。

  • Description:

    插件描述,限定200字以内。

  • Tags:

    标签



2501
2502
2503
# File 'lib/v20180808/models.rb', line 2501

def PluginData
  @PluginData
end

#PluginNameObject

Parameters:

  • PluginName:

    用户自定义的插件名称。最长50个字符,最短2个字符,支持 a-z,A-Z,0-9,_, 必须字母开头,字母或者数字结尾。

  • PluginType:

    插件类型。目前支持IPControl, TrafficControl, Cors, CustomReq, CustomAuth,Routing,TrafficControlByParameter, CircuitBreaker, ProxyCache。

  • PluginData:

    插件定义语句,支持json。

  • Description:

    插件描述,限定200字以内。

  • Tags:

    标签



2501
2502
2503
# File 'lib/v20180808/models.rb', line 2501

def PluginName
  @PluginName
end

#PluginTypeObject

Parameters:

  • PluginName:

    用户自定义的插件名称。最长50个字符,最短2个字符,支持 a-z,A-Z,0-9,_, 必须字母开头,字母或者数字结尾。

  • PluginType:

    插件类型。目前支持IPControl, TrafficControl, Cors, CustomReq, CustomAuth,Routing,TrafficControlByParameter, CircuitBreaker, ProxyCache。

  • PluginData:

    插件定义语句,支持json。

  • Description:

    插件描述,限定200字以内。

  • Tags:

    标签



2501
2502
2503
# File 'lib/v20180808/models.rb', line 2501

def PluginType
  @PluginType
end

#TagsObject

Parameters:

  • PluginName:

    用户自定义的插件名称。最长50个字符,最短2个字符,支持 a-z,A-Z,0-9,_, 必须字母开头,字母或者数字结尾。

  • PluginType:

    插件类型。目前支持IPControl, TrafficControl, Cors, CustomReq, CustomAuth,Routing,TrafficControlByParameter, CircuitBreaker, ProxyCache。

  • PluginData:

    插件定义语句,支持json。

  • Description:

    插件描述,限定200字以内。

  • Tags:

    标签



2501
2502
2503
# File 'lib/v20180808/models.rb', line 2501

def Tags
  @Tags
end

Instance Method Details

#deserialize(params) ⇒ Object



2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
# File 'lib/v20180808/models.rb', line 2511

def deserialize(params)
  @PluginName = params['PluginName']
  @PluginType = params['PluginType']
  @PluginData = params['PluginData']
  @Description = params['Description']
  unless params['Tags'].nil?
    @Tags = []
    params['Tags'].each do |i|
      tag_tmp = Tag.new
      tag_tmp.deserialize(i)
      @Tags << tag_tmp
    end
  end
end