Stackdriver Monitoring V3 Client - Class BasicAuthentication (1.2.2)

Reference documentation and code samples for the Stackdriver Monitoring V3 Client class BasicAuthentication.

The authentication parameters to provide to the specified resource or URL that requires a username and password. Currently, only Basic HTTP authentication is supported in Uptime checks.

Generated from protobuf message google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ username string

The username to use when authenticating with the HTTP server.

↳ password string

The password to use when authenticating with the HTTP server.

getUsername

The username to use when authenticating with the HTTP server.

Generated from protobuf field string username = 1;

Returns
TypeDescription
string

setUsername

The username to use when authenticating with the HTTP server.

Generated from protobuf field string username = 1;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPassword

The password to use when authenticating with the HTTP server.

Generated from protobuf field string password = 2;

Returns
TypeDescription
string

setPassword

The password to use when authenticating with the HTTP server.

Generated from protobuf field string password = 2;

Parameter
NameDescription
var string
Returns
TypeDescription
$this