# Google Cloud Asset V1 Client - Class GovernedContainer (2.3.3)

2.3.3 (latest) 2.3.2 2.2.3 2.1.3 2.0.1 1.16.4 1.14.1 1.13.2 1.12.2 1.11.3 1.10.2 1.9.2 Reference documentation and code samples for the Google Cloud Asset V1 Client class GovernedContainer.

The organization/folder/project resource governed by organization policies
of
[AnalyzeOrgPolicyGovernedContainersRequest.constraint](https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.AnalyzeOrgPolicyGovernedContainersRequest#_Google_Cloud_Asset_V1_AnalyzeOrgPolicyGovernedContainersRequest__getConstraint__).

Generated from protobuf message `google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer`

## Namespace

Google \\ Cloud \\ Asset \\ V1 \\ AnalyzeOrgPolicyGovernedContainersResponse

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ full_resource_name` | `string` The [full resource name](https://cloud.google.com/asset-inventory/docs/resource-name-format) of an organization/folder/project resource. |
| `↳ parent` | `string` The [full resource name](https://cloud.google.com/asset-inventory/docs/resource-name-format) of the parent of [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.full_resource_name](https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer#_Google_Cloud_Asset_V1_AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer__getFullResourceName__). |
| `↳ consolidated_policy` | `https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.AnalyzerOrgPolicy` The consolidated organization policy for the analyzed resource. The consolidated organization policy is computed by merging and evaluating [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.policy_bundle](https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer#_Google_Cloud_Asset_V1_AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer__getPolicyBundle__). The evaluation will respect the organization policy [hierarchy rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy). |
| `↳ policy_bundle` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.AnalyzerOrgPolicy>` The ordered list of all organization policies from the [consolidated_policy.attached_resource](https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.AnalyzerOrgPolicy#_Google_Cloud_Asset_V1_AnalyzerOrgPolicy__getAttachedResource__). to the scope specified in the request. If the constraint is defined with default policy, it will also appear in the list. |
| `↳ 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` | `string[]` 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. |
| `↳ effective_tags` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.EffectiveTagDetails>` The effective tags on this resource. |

### getFullResourceName

The [full resource name](https://cloud.google.com/asset-inventory/docs/resource-name-format) of
an organization/folder/project resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setFullResourceName

The [full resource name](https://cloud.google.com/asset-inventory/docs/resource-name-format) of
an organization/folder/project resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getParent

The [full resource name](https://cloud.google.com/asset-inventory/docs/resource-name-format) of
the parent of
[AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.full_resource_name](https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer#_Google_Cloud_Asset_V1_AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer__getFullResourceName__).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setParent

The [full resource name](https://cloud.google.com/asset-inventory/docs/resource-name-format) of
the parent of
[AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.full_resource_name](https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer#_Google_Cloud_Asset_V1_AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer__getFullResourceName__).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getConsolidatedPolicy

The consolidated organization policy for the analyzed resource. The
consolidated organization policy is computed by merging and evaluating
[AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.policy_bundle](https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer#_Google_Cloud_Asset_V1_AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer__getPolicyBundle__).

The evaluation will respect the organization policy [hierarchy
rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.AnalyzerOrgPolicy|null` |   |

### hasConsolidatedPolicy

### clearConsolidatedPolicy

### setConsolidatedPolicy

The consolidated organization policy for the analyzed resource. The
consolidated organization policy is computed by merging and evaluating
[AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.policy_bundle](https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer#_Google_Cloud_Asset_V1_AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer__getPolicyBundle__).

The evaluation will respect the organization policy [hierarchy
rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.AnalyzerOrgPolicy` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPolicyBundle

The ordered list of all organization policies from the
[consolidated_policy.attached_resource](https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.AnalyzerOrgPolicy#_Google_Cloud_Asset_V1_AnalyzerOrgPolicy__getAttachedResource__).

to the scope specified in the request.
If the constraint is defined with default policy, it will also appear in
the list.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.AnalyzerOrgPolicy>` |   |

### setPolicyBundle

The ordered list of all organization policies from the
[consolidated_policy.attached_resource](https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.AnalyzerOrgPolicy#_Google_Cloud_Asset_V1_AnalyzerOrgPolicy__getAttachedResource__).

to the scope specified in the request.
If the constraint is defined with default policy, it will also appear in
the list.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.AnalyzerOrgPolicy>` |

| **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** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### 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` |   |

### getEffectiveTags

The effective tags on this resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.EffectiveTagDetails>` |   |

### setEffectiveTags

The effective tags on this resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.EffectiveTagDetails>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |