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
Namespace
Google \ Cloud \ Monitoring \ V3 \ UptimeCheckConfig \ HttpCheckMethods
__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.
| Returns | |
|---|---|
| Type | Description |
string |
|
setUsername
The username to use when authenticating with the HTTP server.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPassword
The password to use when authenticating with the HTTP server.
| Returns | |
|---|---|
| Type | Description |
string |
|
setPassword
The password to use when authenticating with the HTTP server.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|