Google Cloud Asset V1 Client - Class GovernedResource (1.16.4)

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

The Google Cloud resources governed by the organization policies of the AnalyzeOrgPolicyGovernedAssetsRequest.constraint.

Generated from protobuf message google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource

Namespace

Google \ Cloud \ Asset \ V1 \ AnalyzeOrgPolicyGovernedAssetsResponse

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ full_resource_name string

The full resource name of the Google Cloud resource.

↳ parent string

The full resource name of the parent of AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name.

↳ project string

The project that this resource belongs to, in the format of projects/{PROJECT_NUMBER}. This field is available when the resource belongs to a project.

↳ folders array

The folder(s) that this resource belongs to, in the format of folders/{FOLDER_NUMBER}. This field is available when the resource belongs (directly or cascadingly) to one or more folders.

↳ organization string

The organization that this resource belongs to, in the format of organizations/{ORGANIZATION_NUMBER}. This field is available when the resource belongs (directly or cascadingly) to an organization.

↳ asset_type string

The asset type of the AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name Example: cloudresourcemanager.googleapis.com/Project See Cloud Asset Inventory Supported Asset Types for all supported asset types.

↳ effective_tags array<Google\Cloud\Asset\V1\EffectiveTagDetails>

The effective tags on this resource.

getFullResourceName

The full resource name of the Google Cloud resource.

Returns
Type Description
string

setFullResourceName

The full resource name of the Google Cloud resource.

Parameter
Name Description
var string
Returns
Type Description
$this

getParent

Returns
Type Description
string

setParent

Parameter
Name Description
var string
Returns
Type Description
$this

getProject

The project that this resource belongs to, in the format of projects/{PROJECT_NUMBER}. This field is available when the resource belongs to a project.

Returns
Type Description
string

setProject

The project that this resource belongs to, in the format of projects/{PROJECT_NUMBER}. This field is available when the resource belongs to a project.

Parameter
Name Description
var string
Returns
Type Description
$this

getFolders

The folder(s) that this resource belongs to, in the format of folders/{FOLDER_NUMBER}. This field is available when the resource belongs (directly or cascadingly) to one or more folders.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setFolders

The folder(s) that this resource belongs to, in the format of folders/{FOLDER_NUMBER}. This field is available when the resource belongs (directly or cascadingly) to one or more folders.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getOrganization

The organization that this resource belongs to, in the format of organizations/{ORGANIZATION_NUMBER}. This field is available when the resource belongs (directly or cascadingly) to an organization.

Returns
Type Description
string

setOrganization

The organization that this resource belongs to, in the format of organizations/{ORGANIZATION_NUMBER}. This field is available when the resource belongs (directly or cascadingly) to an organization.

Parameter
Name Description
var string
Returns
Type Description
$this

getAssetType

The asset type of the AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name Example: cloudresourcemanager.googleapis.com/Project See Cloud Asset Inventory Supported Asset Types for all supported asset types.

Returns
Type Description
string

setAssetType

The asset type of the AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name Example: cloudresourcemanager.googleapis.com/Project See Cloud Asset Inventory Supported Asset Types for all supported asset types.

Parameter
Name Description
var string
Returns
Type Description
$this

getEffectiveTags

The effective tags on this resource.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setEffectiveTags

The effective tags on this resource.

Parameter
Name Description
var array<Google\Cloud\Asset\V1\EffectiveTagDetails>
Returns
Type Description
$this