Google Cloud Asset V1 Client - Class GovernedContainer (1.14.1)

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.

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

Namespace

Google \ Cloud \ Asset \ V1 \ AnalyzeOrgPolicyGovernedContainersResponse

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ full_resource_name string

The full resource name of an organization/folder/project resource.

↳ parent string

The full resource name of the parent of AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.full_resource_name.

↳ consolidated_policy 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. The evaluation will respect the organization policy hierarchy rules.

↳ policy_bundle array<Google\Cloud\Asset\V1\AnalyzerOrgPolicy>

The ordered list of all organization policies from the AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource. to the scope specified in the request. If the constraint is defined with default policy, it will also appear in the list.

getFullResourceName

The full resource name of an organization/folder/project resource.

Returns
TypeDescription
string

setFullResourceName

The full resource name of an organization/folder/project resource.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getParent

Returns
TypeDescription
string

setParent

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getConsolidatedPolicy

The consolidated organization policy for the analyzed resource. The consolidated organization policy is computed by merging and evaluating AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.policy_bundle.

The evaluation will respect the organization policy hierarchy rules.

Returns
TypeDescription
Google\Cloud\Asset\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.

The evaluation will respect the organization policy hierarchy rules.

Parameter
NameDescription
var Google\Cloud\Asset\V1\AnalyzerOrgPolicy
Returns
TypeDescription
$this

getPolicyBundle

The ordered list of all organization policies from the AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource.

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

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setPolicyBundle

The ordered list of all organization policies from the AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource.

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

Parameter
NameDescription
var array<Google\Cloud\Asset\V1\AnalyzerOrgPolicy>
Returns
TypeDescription
$this