Google Cloud Asset V1 Client - Class GovernedResource (1.12.2)

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
NameDescription
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.

getFullResourceName

The full resource name of the Google Cloud resource.

Returns
TypeDescription
string

setFullResourceName

The full resource name of the Google Cloud resource.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getParent

Returns
TypeDescription
string

setParent

Parameter
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string[]
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this