Google Cloud Asset V1 Client - Class GovernedAsset (1.13.2)

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

Represents a Google Cloud asset(resource or IAM policy) governed by the organization policies of the AnalyzeOrgPolicyGovernedAssetsRequest.constraint.

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

Namespace

Google \ Cloud \ Asset \ V1 \ AnalyzeOrgPolicyGovernedAssetsResponse

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ governed_resource Google\Cloud\Asset\V1\AnalyzeOrgPolicyGovernedAssetsResponse\GovernedResource

A Google Cloud resource governed by the organization policies of the AnalyzeOrgPolicyGovernedAssetsRequest.constraint.

↳ governed_iam_policy Google\Cloud\Asset\V1\AnalyzeOrgPolicyGovernedAssetsResponse\GovernedIamPolicy

An IAM policy governed by the organization policies of the AnalyzeOrgPolicyGovernedAssetsRequest.constraint.

↳ consolidated_policy Google\Cloud\Asset\V1\AnalyzerOrgPolicy

The consolidated policy for the analyzed asset. The consolidated policy is computed by merging and evaluating AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.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.

getGovernedResource

A Google Cloud resource governed by the organization policies of the AnalyzeOrgPolicyGovernedAssetsRequest.constraint.

Returns
TypeDescription
Google\Cloud\Asset\V1\AnalyzeOrgPolicyGovernedAssetsResponse\GovernedResource|null

hasGovernedResource

setGovernedResource

A Google Cloud resource governed by the organization policies of the AnalyzeOrgPolicyGovernedAssetsRequest.constraint.

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

getGovernedIamPolicy

An IAM policy governed by the organization policies of the AnalyzeOrgPolicyGovernedAssetsRequest.constraint.

Returns
TypeDescription
Google\Cloud\Asset\V1\AnalyzeOrgPolicyGovernedAssetsResponse\GovernedIamPolicy|null

hasGovernedIamPolicy

setGovernedIamPolicy

An IAM policy governed by the organization policies of the AnalyzeOrgPolicyGovernedAssetsRequest.constraint.

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

getConsolidatedPolicy

The consolidated policy for the analyzed asset. The consolidated policy is computed by merging and evaluating AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle.

The evaluation will respect the organization policy hierarchy rules.

Returns
TypeDescription
Google\Cloud\Asset\V1\AnalyzerOrgPolicy|null

hasConsolidatedPolicy

clearConsolidatedPolicy

setConsolidatedPolicy

The consolidated policy for the analyzed asset. The consolidated policy is computed by merging and evaluating AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.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

getGovernedAsset

Returns
TypeDescription
string