Google Cloud Asset V1 Client - Class RelatedResource (1.9.2)

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

The detailed related resource.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ asset_type string

The type of the asset. Example: compute.googleapis.com/Instance

↳ full_resource_name string

The full resource name of the related resource. Example: //compute.googleapis.com/projects/my_proj_123/zones/instance/instance123

getAssetType

The type of the asset. Example: compute.googleapis.com/Instance

Generated from protobuf field string asset_type = 1;

Returns
TypeDescription
string

setAssetType

The type of the asset. Example: compute.googleapis.com/Instance

Generated from protobuf field string asset_type = 1;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getFullResourceName

The full resource name of the related resource. Example: //compute.googleapis.com/projects/my_proj_123/zones/instance/instance123

Generated from protobuf field string full_resource_name = 2;

Returns
TypeDescription
string

setFullResourceName

The full resource name of the related resource. Example: //compute.googleapis.com/projects/my_proj_123/zones/instance/instance123

Generated from protobuf field string full_resource_name = 2;

Parameter
NameDescription
var string
Returns
TypeDescription
$this