Google Cloud Chronicle Client - Class Cloud (0.9.0)

Reference documentation and code samples for the Google Cloud Chronicle Client class Cloud.

Metadata related to the cloud environment.

Generated from protobuf message google.backstory.Cloud

Namespace

Google \ Backstory

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ environment int

The Cloud environment.

↳ vpc Resource

The cloud environment VPC. Deprecated.

↳ project Resource

The cloud environment project information. Deprecated: Use Resource.resource_ancestors

↳ availability_zone string

The cloud environment availability zone (different from region which is location.name).

getEnvironment

The Cloud environment.

Returns
Type Description
int Enum of type CloudEnvironment.

setEnvironment

The Cloud environment.

Parameter
Name Description
var int

Enum of type CloudEnvironment.

Returns
Type Description
$this

getVpc

The cloud environment VPC.

Deprecated.

Returns
Type Description
Resource|null

hasVpc

clearVpc

setVpc

The cloud environment VPC.

Deprecated.

Parameter
Name Description
var Resource
Returns
Type Description
$this

getProject

The cloud environment project information.

Deprecated: Use Resource.resource_ancestors

Returns
Type Description
Resource|null

hasProject

clearProject

setProject

The cloud environment project information.

Deprecated: Use Resource.resource_ancestors

Parameter
Name Description
var Resource
Returns
Type Description
$this

getAvailabilityZone

The cloud environment availability zone (different from region which is location.name).

Returns
Type Description
string

setAvailabilityZone

The cloud environment availability zone (different from region which is location.name).

Parameter
Name Description
var string
Returns
Type Description
$this