Google Cloud Asset V1beta1 Client - Class Asset (1.16.4)

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

Cloud asset. This includes all Google Cloud Platform resources, Cloud IAM policies, and other non-GCP assets.

Generated from protobuf message google.cloud.asset.v1beta1.Asset

Namespace

Google \ Cloud \ Asset \ V1beta1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

The full name of the asset. For example: //compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1. See Resource Names for more information.

↳ asset_type string

Type of the asset. Example: "google.compute.Disk".

↳ resource Google\Cloud\Asset\V1beta1\Resource

Representation of the resource.

↳ iam_policy Google\Cloud\Iam\V1\Policy

Representation of the actual Cloud IAM policy set on a cloud resource. For each resource, there must be at most one Cloud IAM policy set on it.

getName

The full name of the asset. For example: //compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1.

See Resource Names for more information.

Returns
Type Description
string

setName

The full name of the asset. For example: //compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1.

See Resource Names for more information.

Parameter
Name Description
var string
Returns
Type Description
$this

getAssetType

Type of the asset. Example: "google.compute.Disk".

Returns
Type Description
string

setAssetType

Type of the asset. Example: "google.compute.Disk".

Parameter
Name Description
var string
Returns
Type Description
$this

getResource

Representation of the resource.

Returns
Type Description
Google\Cloud\Asset\V1beta1\Resource

setResource

Representation of the resource.

Parameter
Name Description
var Google\Cloud\Asset\V1beta1\Resource
Returns
Type Description
$this

getIamPolicy

Representation of the actual Cloud IAM policy set on a cloud resource. For each resource, there must be at most one Cloud IAM policy set on it.

Returns
Type Description
Google\Cloud\Iam\V1\Policy

setIamPolicy

Representation of the actual Cloud IAM policy set on a cloud resource. For each resource, there must be at most one Cloud IAM policy set on it.

Parameter
Name Description
var Google\Cloud\Iam\V1\Policy
Returns
Type Description
$this