Google Cloud Container V1 Client - Class UpgradeAvailableEvent (2.2.0)

Reference documentation and code samples for the Google Cloud Container V1 Client class UpgradeAvailableEvent.

UpgradeAvailableEvent is a notification sent to customers when a new available version is released.

Generated from protobuf message google.container.v1.UpgradeAvailableEvent

Namespace

Google \ Cloud \ Container \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ version string

The release version available for upgrade.

↳ resource_type int

The resource type of the release version.

↳ release_channel Google\Cloud\Container\V1\ReleaseChannel

The release channel of the version. If empty, it means a non-channel release.

↳ resource string

Optional relative path to the resource. For example, the relative path of the node pool.

getVersion

The release version available for upgrade.

Returns
Type Description
string

setVersion

The release version available for upgrade.

Parameter
Name Description
var string
Returns
Type Description
$this

getResourceType

The resource type of the release version.

Returns
Type Description
int

setResourceType

The resource type of the release version.

Parameter
Name Description
var int
Returns
Type Description
$this

getReleaseChannel

The release channel of the version. If empty, it means a non-channel release.

Returns
Type Description
Google\Cloud\Container\V1\ReleaseChannel|null

hasReleaseChannel

clearReleaseChannel

setReleaseChannel

The release channel of the version. If empty, it means a non-channel release.

Parameter
Name Description
var Google\Cloud\Container\V1\ReleaseChannel
Returns
Type Description
$this

getResource

Optional relative path to the resource. For example, the relative path of the node pool.

Returns
Type Description
string

setResource

Optional relative path to the resource. For example, the relative path of the node pool.

Parameter
Name Description
var string
Returns
Type Description
$this