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 | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ asset_type |
string
The type of this attached resource. Example: |
↳ 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 | |
---|---|
Type | Description |
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 | |
---|---|
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.
Generated from protobuf field repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
array<Google\Cloud\Asset\V1\VersionedResource>
|
Returns | |
---|---|
Type | Description |
$this |