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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
string |
setUsername
The username to use when authenticating with the HTTP server.
Generated from protobuf field string username = 1;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getPassword
The password to use when authenticating with the HTTP server.
Generated from protobuf field string password = 2;
Returns | |
---|---|
Type | Description |
string |
setPassword
The password to use when authenticating with the HTTP server.
Generated from protobuf field string password = 2;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |