Google Cloud Security Command Center V1p1beta1 Client - Class ListAssetsResult (1.13.1)

Reference documentation and code samples for the Google Cloud Security Command Center V1p1beta1 Client class ListAssetsResult.

Result containing the Asset and its State.

Generated from protobuf message google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ asset Google\Cloud\SecurityCenter\V1p1beta1\Asset

Asset matching the search request.

↳ state_change int

State change of the asset between the points in time.

getAsset

Asset matching the search request.

Generated from protobuf field .google.cloud.securitycenter.v1p1beta1.Asset asset = 1;

Returns
TypeDescription
Google\Cloud\SecurityCenter\V1p1beta1\Asset|null

hasAsset

clearAsset

setAsset

Asset matching the search request.

Generated from protobuf field .google.cloud.securitycenter.v1p1beta1.Asset asset = 1;

Parameter
NameDescription
var Google\Cloud\SecurityCenter\V1p1beta1\Asset
Returns
TypeDescription
$this

getStateChange

State change of the asset between the points in time.

Generated from protobuf field .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2;

Returns
TypeDescription
int

setStateChange

State change of the asset between the points in time.

Generated from protobuf field .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2;

Parameter
NameDescription
var int
Returns
TypeDescription
$this