Google Cloud Ai Platform V1 Client - Class HttpGetAction (1.26.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class HttpGetAction.

HttpGetAction describes an action based on HTTP Get requests.

Generated from protobuf message google.cloud.aiplatform.v1.Probe.HttpGetAction

Namespace

Google \ Cloud \ AIPlatform \ V1 \ Probe

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ path
string

Path to access on the HTTP server.

↳ port
int

Number of the port to access on the container. Number must be in the range 1 to 65535.

↳ host
string

Host name to connect to, defaults to the model serving container's IP. You probably want to set "Host" in httpHeaders instead.

↳ scheme
string

Scheme to use for connecting to the host. Defaults to HTTP. Acceptable values are "HTTP" or "HTTPS".

↳ http_headers
array< HttpHeader >

Custom headers to set in the request. HTTP allows repeated headers.

getPath

Path to access on the HTTP server.

Returns
Type
Description
string

setPath

Path to access on the HTTP server.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getPort

Number of the port to access on the container.

Number must be in the range 1 to 65535.

Returns
Type
Description
int

setPort

Number of the port to access on the container.

Number must be in the range 1 to 65535.

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getHost

Host name to connect to, defaults to the model serving container's IP.

You probably want to set "Host" in httpHeaders instead.

Returns
Type
Description
string

setHost

Host name to connect to, defaults to the model serving container's IP.

You probably want to set "Host" in httpHeaders instead.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getScheme

Scheme to use for connecting to the host.

Defaults to HTTP. Acceptable values are "HTTP" or "HTTPS".

Returns
Type
Description
string

setScheme

Scheme to use for connecting to the host.

Defaults to HTTP. Acceptable values are "HTTP" or "HTTPS".

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getHttpHeaders

Custom headers to set in the request. HTTP allows repeated headers.

Returns
Type
Description

setHttpHeaders

Custom headers to set in the request. HTTP allows repeated headers.

Parameter
Name
Description
var
array< HttpHeader >
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: