Google Cloud Asset V1 Client - Class AttachedResource (1.9.2)

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

Attached resource representation, which is defined by the corresponding service provider. It represents an attached resource's payload.

Generated from protobuf message google.cloud.asset.v1.AttachedResource

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ asset_type string

The type of this attached resource. Example: osconfig.googleapis.com/Inventory You can find the supported attached asset types of each resource in this table: https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types

↳ versioned_resources array<Google\Cloud\Asset\V1\VersionedResource>

Versioned resource representations of this attached resource. This is repeated because there could be multiple versions of the attached resource representations during version migration.

getAssetType

The type of this attached resource.

Example: osconfig.googleapis.com/Inventory You can find the supported attached asset types of each resource in this table: https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types

Generated from protobuf field string asset_type = 1;

Returns
TypeDescription
string

setAssetType

The type of this attached resource.

Example: osconfig.googleapis.com/Inventory You can find the supported attached asset types of each resource in this table: https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types

Generated from protobuf field string asset_type = 1;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getVersionedResources

Versioned resource representations of this attached resource. This is repeated because there could be multiple versions of the attached resource representations during version migration.

Generated from protobuf field repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setVersionedResources

Versioned resource representations of this attached resource. This is repeated because there could be multiple versions of the attached resource representations during version migration.

Generated from protobuf field repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;

Parameter
NameDescription
var array<Google\Cloud\Asset\V1\VersionedResource>
Returns
TypeDescription
$this