Class: TencentCloud::Tem::V20201221::IngressRule

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

Overview

ingress rule 配置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(http = nil, host = nil, protocol = nil) ⇒ IngressRule

Returns a new instance of IngressRule.



1276
1277
1278
1279
1280
# File 'lib/v20201221/models.rb', line 1276

def initialize(http=nil, host=nil, protocol=nil)
  @Http = http
  @Host = host
  @Protocol = protocol
end

Instance Attribute Details

#HostObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Http:

    ingress rule value

  • Host:

    host 地址

  • Protocol:

    协议,选项为 http, https,默认为 http



1274
1275
1276
# File 'lib/v20201221/models.rb', line 1274

def Host
  @Host
end

#HttpObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Http:

    ingress rule value

  • Host:

    host 地址

  • Protocol:

    协议,选项为 http, https,默认为 http



1274
1275
1276
# File 'lib/v20201221/models.rb', line 1274

def Http
  @Http
end

#ProtocolObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Http:

    ingress rule value

  • Host:

    host 地址

  • Protocol:

    协议,选项为 http, https,默认为 http



1274
1275
1276
# File 'lib/v20201221/models.rb', line 1274

def Protocol
  @Protocol
end

Instance Method Details

#deserialize(params) ⇒ Object



1282
1283
1284
1285
1286
1287
1288
1289
# File 'lib/v20201221/models.rb', line 1282

def deserialize(params)
  unless params['Http'].nil?
    @Http = IngressRuleValue.new
    @Http.deserialize(params['Http'])
  end
  @Host = params['Host']
  @Protocol = params['Protocol']
end