1.9.0 (latest) 1.8.0 1.7.0 1.6.1 1.5.0 1.4.1 1.3.1 1.2.0 1.1.0 1.0.2 0.32.0 0.31.0 0.30.0 0.29.3 0.28.1 0.27.0 0.26.1 0.25.0 0.24.0 0.23.0 0.22.0 0.21.1 0.20.1 0.19.0 0.18.0 0.17.3 Reference documentation and code samples for the Cloud Asset V1 API class Google::Cloud::Asset::V1::AnalyzeOrgPolicyGovernedContainersResponse::GovernedContainer.

The organization/folder/project resource governed by organization policies
of
[AnalyzeOrgPolicyGovernedContainersRequest.constraint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-AnalyzeOrgPolicyGovernedContainersRequest#Google__Cloud__Asset__V1__AnalyzeOrgPolicyGovernedContainersRequest_constraint_instance_ "Google::Cloud::Asset::V1::AnalyzeOrgPolicyGovernedContainersRequest#constraint (method)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #consolidated_policy

    def consolidated_policy() -> ::Google::Cloud::Asset::V1::AnalyzerOrgPolicy

**Returns**

- ([::Google::Cloud::Asset::V1::AnalyzerOrgPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-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/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-AnalyzeOrgPolicyGovernedContainersResponse-GovernedContainer#Google__Cloud__Asset__V1__AnalyzeOrgPolicyGovernedContainersResponse__GovernedContainer_policy_bundle_instance_ "Google::Cloud::Asset::V1::AnalyzeOrgPolicyGovernedContainersResponse::GovernedContainer#policy_bundle (method)"). The evaluation will respect the organization policy [hierarchy
  rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy).

### #consolidated_policy=

    def consolidated_policy=(value) -> ::Google::Cloud::Asset::V1::AnalyzerOrgPolicy

**Parameter**

- **value** ([::Google::Cloud::Asset::V1::AnalyzerOrgPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-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/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-AnalyzeOrgPolicyGovernedContainersResponse-GovernedContainer#Google__Cloud__Asset__V1__AnalyzeOrgPolicyGovernedContainersResponse__GovernedContainer_policy_bundle_instance_ "Google::Cloud::Asset::V1::AnalyzeOrgPolicyGovernedContainersResponse::GovernedContainer#policy_bundle (method)"). The evaluation will respect the organization policy [hierarchy
  rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy).
**Returns**

- ([::Google::Cloud::Asset::V1::AnalyzerOrgPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-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/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-AnalyzeOrgPolicyGovernedContainersResponse-GovernedContainer#Google__Cloud__Asset__V1__AnalyzeOrgPolicyGovernedContainersResponse__GovernedContainer_policy_bundle_instance_ "Google::Cloud::Asset::V1::AnalyzeOrgPolicyGovernedContainersResponse::GovernedContainer#policy_bundle (method)"). The evaluation will respect the organization policy [hierarchy
  rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy).

### #effective_tags

    def effective_tags() -> ::Array<::Google::Cloud::Asset::V1::EffectiveTagDetails>

**Returns**

- (::Array\<[::Google::Cloud::Asset::V1::EffectiveTagDetails](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-EffectiveTagDetails)\>) --- The effective tags on this resource.

### #effective_tags=

    def effective_tags=(value) -> ::Array<::Google::Cloud::Asset::V1::EffectiveTagDetails>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Asset::V1::EffectiveTagDetails](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-EffectiveTagDetails)\>) --- The effective tags on this resource.
**Returns**

- (::Array\<[::Google::Cloud::Asset::V1::EffectiveTagDetails](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-EffectiveTagDetails)\>) --- The effective tags on this resource.

### #folders

    def folders() -> ::Array<::String>

**Returns**

- (::Array\<::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.

### #folders=

    def folders=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::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.
**Returns**

- (::Array\<::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.

### #full_resource_name

    def full_resource_name() -> ::String

**Returns**

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

### #full_resource_name=

    def full_resource_name=(value) -> ::String

**Parameter**

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

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

### #organization

    def organization() -> ::String

**Returns**

- (::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.

### #organization=

    def organization=(value) -> ::String

**Parameter**

- **value** (::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.
**Returns**

- (::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.

### #parent

    def parent() -> ::String

**Returns**

- (::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/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-AnalyzeOrgPolicyGovernedContainersResponse-GovernedContainer#Google__Cloud__Asset__V1__AnalyzeOrgPolicyGovernedContainersResponse__GovernedContainer_full_resource_name_instance_ "Google::Cloud::Asset::V1::AnalyzeOrgPolicyGovernedContainersResponse::GovernedContainer#full_resource_name (method)").

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::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/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-AnalyzeOrgPolicyGovernedContainersResponse-GovernedContainer#Google__Cloud__Asset__V1__AnalyzeOrgPolicyGovernedContainersResponse__GovernedContainer_full_resource_name_instance_ "Google::Cloud::Asset::V1::AnalyzeOrgPolicyGovernedContainersResponse::GovernedContainer#full_resource_name (method)").
**Returns**

- (::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/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-AnalyzeOrgPolicyGovernedContainersResponse-GovernedContainer#Google__Cloud__Asset__V1__AnalyzeOrgPolicyGovernedContainersResponse__GovernedContainer_full_resource_name_instance_ "Google::Cloud::Asset::V1::AnalyzeOrgPolicyGovernedContainersResponse::GovernedContainer#full_resource_name (method)").

### #policy_bundle

    def policy_bundle() -> ::Array<::Google::Cloud::Asset::V1::AnalyzerOrgPolicy>

**Returns**

- (::Array\<[::Google::Cloud::Asset::V1::AnalyzerOrgPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-AnalyzerOrgPolicy)\>) --- The ordered list of all organization policies from the [consolidated_policy.attached_resource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-AnalyzerOrgPolicy#Google__Cloud__Asset__V1__AnalyzerOrgPolicy_attached_resource_instance_ "Google::Cloud::Asset::V1::AnalyzerOrgPolicy#attached_resource (method)"). to the scope specified in the request.


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

### #policy_bundle=

    def policy_bundle=(value) -> ::Array<::Google::Cloud::Asset::V1::AnalyzerOrgPolicy>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Asset::V1::AnalyzerOrgPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-AnalyzerOrgPolicy)\>) --- The ordered list of all organization policies from the [consolidated_policy.attached_resource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-AnalyzerOrgPolicy#Google__Cloud__Asset__V1__AnalyzerOrgPolicy_attached_resource_instance_ "Google::Cloud::Asset::V1::AnalyzerOrgPolicy#attached_resource (method)"). to the scope specified in the request.


  If the constraint is defined with default policy, it will also appear in
  the list.
**Returns**

- (::Array\<[::Google::Cloud::Asset::V1::AnalyzerOrgPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-AnalyzerOrgPolicy)\>) --- The ordered list of all organization policies from the [consolidated_policy.attached_resource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-AnalyzerOrgPolicy#Google__Cloud__Asset__V1__AnalyzerOrgPolicy_attached_resource_instance_ "Google::Cloud::Asset::V1::AnalyzerOrgPolicy#attached_resource (method)"). to the scope specified in the request.


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

### #project

    def project() -> ::String

**Returns**

- (::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.

### #project=

    def project=(value) -> ::String

**Parameter**

- **value** (::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.
**Returns**

- (::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.