Google Cloud Sql Admin V1 Client - Class ApiWarning (1.2.6)

Reference documentation and code samples for the Google Cloud Sql Admin V1 Client class ApiWarning.

An Admin API warning message.

Generated from protobuf message google.cloud.sql.v1.ApiWarning

Namespace

Google \ Cloud \ Sql \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ code int

Code to uniquely identify the warning type.

↳ message string

The warning message.

↳ region string

The region name for REGION_UNREACHABLE warning.

getCode

Code to uniquely identify the warning type.

Returns
Type Description
int Enum of type SqlApiWarningCode.

setCode

Code to uniquely identify the warning type.

Parameter
Name Description
var int

Enum of type SqlApiWarningCode.

Returns
Type Description
$this

getMessage

The warning message.

Returns
Type Description
string

setMessage

The warning message.

Parameter
Name Description
var string
Returns
Type Description
$this

getRegion

The region name for REGION_UNREACHABLE warning.

Returns
Type Description
string

setRegion

The region name for REGION_UNREACHABLE warning.

Parameter
Name Description
var string
Returns
Type Description
$this