Package com.google.cloud.asset.v1
Interface AnalyzeOrgPoliciesResponse.OrgPolicyResultOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
AnalyzeOrgPoliciesResponse.OrgPolicyResult,AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder
- Enclosing class:
- AnalyzeOrgPoliciesResponse
public static interface AnalyzeOrgPoliciesResponse.OrgPolicyResultOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionThe consolidated organization policy for the analyzed resource.The consolidated organization policy for the analyzed resource.getFolders(int index) The folder(s) that this consolidated policy belongs to, in the format of folders/{FOLDER_NUMBER}.com.google.protobuf.ByteStringgetFoldersBytes(int index) The folder(s) that this consolidated policy belongs to, in the format of folders/{FOLDER_NUMBER}.intThe folder(s) that this consolidated policy belongs to, in the format of folders/{FOLDER_NUMBER}.The folder(s) that this consolidated policy belongs to, in the format of folders/{FOLDER_NUMBER}.The organization that this consolidated policy belongs to, in the format of organizations/{ORGANIZATION_NUMBER}.com.google.protobuf.ByteStringThe organization that this consolidated policy belongs to, in the format of organizations/{ORGANIZATION_NUMBER}.getPolicyBundle(int index) The ordered list of all organization policies from the [consolidated_policy.attached_resource][google.cloud.asset.v1.AnalyzerOrgPolicy.attached_resource].intThe ordered list of all organization policies from the [consolidated_policy.attached_resource][google.cloud.asset.v1.AnalyzerOrgPolicy.attached_resource].The ordered list of all organization policies from the [consolidated_policy.attached_resource][google.cloud.asset.v1.AnalyzerOrgPolicy.attached_resource].getPolicyBundleOrBuilder(int index) The ordered list of all organization policies from the [consolidated_policy.attached_resource][google.cloud.asset.v1.AnalyzerOrgPolicy.attached_resource].List<? extends AnalyzerOrgPolicyOrBuilder>The ordered list of all organization policies from the [consolidated_policy.attached_resource][google.cloud.asset.v1.AnalyzerOrgPolicy.attached_resource].The project that this consolidated policy belongs to, in the format of projects/{PROJECT_NUMBER}.com.google.protobuf.ByteStringThe project that this consolidated policy belongs to, in the format of projects/{PROJECT_NUMBER}.booleanThe consolidated organization policy for the analyzed resource.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasConsolidatedPolicy
boolean hasConsolidatedPolicy()The consolidated organization policy for the analyzed resource. The consolidated organization policy is computed by merging and evaluating [policy_bundle][google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.OrgPolicyResult.policy_bundle]. The evaluation will respect the organization policy [hierarchy rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy).
.google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 1;- Returns:
- Whether the consolidatedPolicy field is set.
-
getConsolidatedPolicy
AnalyzerOrgPolicy getConsolidatedPolicy()The consolidated organization policy for the analyzed resource. The consolidated organization policy is computed by merging and evaluating [policy_bundle][google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.OrgPolicyResult.policy_bundle]. The evaluation will respect the organization policy [hierarchy rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy).
.google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 1;- Returns:
- The consolidatedPolicy.
-
getConsolidatedPolicyOrBuilder
AnalyzerOrgPolicyOrBuilder getConsolidatedPolicyOrBuilder()The consolidated organization policy for the analyzed resource. The consolidated organization policy is computed by merging and evaluating [policy_bundle][google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.OrgPolicyResult.policy_bundle]. The evaluation will respect the organization policy [hierarchy rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy).
.google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 1; -
getPolicyBundleList
List<AnalyzerOrgPolicy> getPolicyBundleList()The ordered list of all organization policies from the [consolidated_policy.attached_resource][google.cloud.asset.v1.AnalyzerOrgPolicy.attached_resource]. to the scope specified in the request. If the constraint is defined with default policy, it will also appear in the list.
repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 2; -
getPolicyBundle
The ordered list of all organization policies from the [consolidated_policy.attached_resource][google.cloud.asset.v1.AnalyzerOrgPolicy.attached_resource]. to the scope specified in the request. If the constraint is defined with default policy, it will also appear in the list.
repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 2; -
getPolicyBundleCount
int getPolicyBundleCount()The ordered list of all organization policies from the [consolidated_policy.attached_resource][google.cloud.asset.v1.AnalyzerOrgPolicy.attached_resource]. to the scope specified in the request. If the constraint is defined with default policy, it will also appear in the list.
repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 2; -
getPolicyBundleOrBuilderList
List<? extends AnalyzerOrgPolicyOrBuilder> getPolicyBundleOrBuilderList()The ordered list of all organization policies from the [consolidated_policy.attached_resource][google.cloud.asset.v1.AnalyzerOrgPolicy.attached_resource]. to the scope specified in the request. If the constraint is defined with default policy, it will also appear in the list.
repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 2; -
getPolicyBundleOrBuilder
The ordered list of all organization policies from the [consolidated_policy.attached_resource][google.cloud.asset.v1.AnalyzerOrgPolicy.attached_resource]. to the scope specified in the request. If the constraint is defined with default policy, it will also appear in the list.
repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 2; -
getProject
String getProject()The project that this consolidated policy belongs to, in the format of projects/{PROJECT_NUMBER}. This field is available when the consolidated policy belongs to a project.string project = 3;- Returns:
- The project.
-
getProjectBytes
com.google.protobuf.ByteString getProjectBytes()The project that this consolidated policy belongs to, in the format of projects/{PROJECT_NUMBER}. This field is available when the consolidated policy belongs to a project.string project = 3;- Returns:
- The bytes for project.
-
getFoldersList
The folder(s) that this consolidated policy belongs to, in the format of folders/{FOLDER_NUMBER}. This field is available when the consolidated policy belongs (directly or cascadingly) to one or more folders.repeated string folders = 4;- Returns:
- A list containing the folders.
-
getFoldersCount
int getFoldersCount()The folder(s) that this consolidated policy belongs to, in the format of folders/{FOLDER_NUMBER}. This field is available when the consolidated policy belongs (directly or cascadingly) to one or more folders.repeated string folders = 4;- Returns:
- The count of folders.
-
getFolders
The folder(s) that this consolidated policy belongs to, in the format of folders/{FOLDER_NUMBER}. This field is available when the consolidated policy belongs (directly or cascadingly) to one or more folders.repeated string folders = 4;- Parameters:
index- The index of the element to return.- Returns:
- The folders at the given index.
-
getFoldersBytes
com.google.protobuf.ByteString getFoldersBytes(int index) The folder(s) that this consolidated policy belongs to, in the format of folders/{FOLDER_NUMBER}. This field is available when the consolidated policy belongs (directly or cascadingly) to one or more folders.repeated string folders = 4;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the folders at the given index.
-
getOrganization
String getOrganization()The organization that this consolidated policy belongs to, in the format of organizations/{ORGANIZATION_NUMBER}. This field is available when the consolidated policy belongs (directly or cascadingly) to an organization.string organization = 5;- Returns:
- The organization.
-
getOrganizationBytes
com.google.protobuf.ByteString getOrganizationBytes()The organization that this consolidated policy belongs to, in the format of organizations/{ORGANIZATION_NUMBER}. This field is available when the consolidated policy belongs (directly or cascadingly) to an organization.string organization = 5;- Returns:
- The bytes for organization.
-