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 messagegoogle.cloud.asset.v1.AttachedResource
Namespace
Google \ Cloud \ Asset \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ asset_type
string
The type of this attached resource. Example:osconfig.googleapis.com/InventoryYou can find the supported attached asset types of each resource in this table:https://cloud.google.com/asset-inventory/docs/supported-asset-types
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/InventoryYou can find the supported attached asset types of each resource in this
table:https://cloud.google.com/asset-inventory/docs/supported-asset-types
Returns
Type
Description
string
setAssetType
The type of this attached resource.
Example:osconfig.googleapis.com/InventoryYou can find the supported attached asset types of each resource in this
table:https://cloud.google.com/asset-inventory/docs/supported-asset-types
Parameter
Name
Description
var
string
Returns
Type
Description
$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.
Versioned resource representations of this attached resource. This is
repeated because there could be multiple versions of the attached resource
representations during version migration.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Asset V1 Client - Class AttachedResource (2.2.3)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.3 (latest)](/php/docs/reference/cloud-asset/latest/V1.AttachedResource)\n- [2.2.2](/php/docs/reference/cloud-asset/2.2.2/V1.AttachedResource)\n- [2.1.3](/php/docs/reference/cloud-asset/2.1.3/V1.AttachedResource)\n- [2.0.1](/php/docs/reference/cloud-asset/2.0.1/V1.AttachedResource)\n- [1.16.4](/php/docs/reference/cloud-asset/1.16.4/V1.AttachedResource)\n- [1.14.1](/php/docs/reference/cloud-asset/1.14.1/V1.AttachedResource)\n- [1.13.2](/php/docs/reference/cloud-asset/1.13.2/V1.AttachedResource)\n- [1.12.2](/php/docs/reference/cloud-asset/1.12.2/V1.AttachedResource)\n- [1.11.3](/php/docs/reference/cloud-asset/1.11.3/V1.AttachedResource)\n- [1.10.2](/php/docs/reference/cloud-asset/1.10.2/V1.AttachedResource)\n- [1.9.2](/php/docs/reference/cloud-asset/1.9.2/V1.AttachedResource) \nReference documentation and code samples for the Google Cloud Asset V1 Client class AttachedResource.\n\nAttached resource representation, which is defined by the corresponding\nservice provider. It represents an attached resource's payload.\n\nGenerated from protobuf message `google.cloud.asset.v1.AttachedResource`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Asset \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getAssetType\n\nThe type of this attached resource.\n\nExample: `osconfig.googleapis.com/Inventory`\nYou can find the supported attached asset types of each resource in this\ntable:\n`https://cloud.google.com/asset-inventory/docs/supported-asset-types`\n\n### setAssetType\n\nThe type of this attached resource.\n\nExample: `osconfig.googleapis.com/Inventory`\nYou can find the supported attached asset types of each resource in this\ntable:\n`https://cloud.google.com/asset-inventory/docs/supported-asset-types`\n\n### getVersionedResources\n\nVersioned resource representations of this attached resource. This is\nrepeated because there could be multiple versions of the attached resource\nrepresentations during version migration.\n\n### setVersionedResources\n\nVersioned resource representations of this attached resource. This is\nrepeated because there could be multiple versions of the attached resource\nrepresentations during version migration."]]