Google Cloud Asset V1beta1 Client - Class Asset (1.14.1)

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
NameDescription
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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getAssetType

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

Returns
TypeDescription
string

setAssetType

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getResource

Representation of the resource.

Returns
TypeDescription
Google\Cloud\Asset\V1beta1\Resource

setResource

Representation of the resource.

Parameter
NameDescription
var Google\Cloud\Asset\V1beta1\Resource
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var Google\Cloud\Iam\V1\Policy
Returns
TypeDescription
$this