Class: TencentCloud::Iecp::V20210914::HttpProbe

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

Overview

HTTP探测配置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path = nil, port = nil, host = nil, scheme = nil, headers = nil) ⇒ HttpProbe

Returns a new instance of HttpProbe.



4923
4924
4925
4926
4927
4928
4929
# File 'lib/v20210914/models.rb', line 4923

def initialize(path=nil, port=nil, host=nil, scheme=nil, headers=nil)
  @Path = path
  @Port = port
  @Host = host
  @Scheme = scheme
  @Headers = headers
end

Instance Attribute Details

#HeadersObject

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

Parameters:

  • Path:

    请求路径

  • Port:

    请求端口

  • Host:

    请求地址,默认Pod的IP

  • Scheme:

    请求模式 HTTP|HTTPS,默认HTTP

  • Headers:

    HTTP的请求头



4921
4922
4923
# File 'lib/v20210914/models.rb', line 4921

def Headers
  @Headers
end

#HostObject

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

Parameters:

  • Path:

    请求路径

  • Port:

    请求端口

  • Host:

    请求地址,默认Pod的IP

  • Scheme:

    请求模式 HTTP|HTTPS,默认HTTP

  • Headers:

    HTTP的请求头



4921
4922
4923
# File 'lib/v20210914/models.rb', line 4921

def Host
  @Host
end

#PathObject

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

Parameters:

  • Path:

    请求路径

  • Port:

    请求端口

  • Host:

    请求地址,默认Pod的IP

  • Scheme:

    请求模式 HTTP|HTTPS,默认HTTP

  • Headers:

    HTTP的请求头



4921
4922
4923
# File 'lib/v20210914/models.rb', line 4921

def Path
  @Path
end

#PortObject

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

Parameters:

  • Path:

    请求路径

  • Port:

    请求端口

  • Host:

    请求地址,默认Pod的IP

  • Scheme:

    请求模式 HTTP|HTTPS,默认HTTP

  • Headers:

    HTTP的请求头



4921
4922
4923
# File 'lib/v20210914/models.rb', line 4921

def Port
  @Port
end

#SchemeObject

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

Parameters:

  • Path:

    请求路径

  • Port:

    请求端口

  • Host:

    请求地址,默认Pod的IP

  • Scheme:

    请求模式 HTTP|HTTPS,默认HTTP

  • Headers:

    HTTP的请求头



4921
4922
4923
# File 'lib/v20210914/models.rb', line 4921

def Scheme
  @Scheme
end

Instance Method Details

#deserialize(params) ⇒ Object



4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
# File 'lib/v20210914/models.rb', line 4931

def deserialize(params)
  @Path = params['Path']
  @Port = params['Port']
  @Host = params['Host']
  @Scheme = params['Scheme']
  unless params['Headers'].nil?
    @Headers = []
    params['Headers'].each do |i|
      httpheader_tmp = HttpHeader.new
      httpheader_tmp.deserialize(i)
      @Headers << httpheader_tmp
    end
  end
end