Google Cloud Asset V1beta1 Client - Class Asset (1.13.2)

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

setResource

Representation of the resource.

Parameter
Name
Description
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

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
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: