Class: TencentCloud::Tem::V20210701::IngressRule

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20210701/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.



3075
3076
3077
3078
3079
# File 'lib/v20210701/models.rb', line 3075

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



3073
3074
3075
# File 'lib/v20210701/models.rb', line 3073

def Host
  @Host
end

#HttpObject

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

Parameters:

  • Http:

    ingress rule value

  • Host:

    host 地址

  • Protocol:

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



3073
3074
3075
# File 'lib/v20210701/models.rb', line 3073

def Http
  @Http
end

#ProtocolObject

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

Parameters:

  • Http:

    ingress rule value

  • Host:

    host 地址

  • Protocol:

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



3073
3074
3075
# File 'lib/v20210701/models.rb', line 3073

def Protocol
  @Protocol
end

Instance Method Details

#deserialize(params) ⇒ Object



3081
3082
3083
3084
3085
3086
3087
3088
# File 'lib/v20210701/models.rb', line 3081

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