Interface OrgPolicyViolationInfoOrBuilder (2.43.0)

public interface OrgPolicyViolationInfoOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsResourceTags(String key)

public abstract boolean containsResourceTags(String key)

Optional. Tags referenced on the resource at the time of evaluation. These also include the federated tags, if they are supplied in the CheckOrgPolicy or CheckCustomConstraints Requests.

Optional field as of now. These tags are the Cloud tags that are available on the resource during the policy evaluation and will be available as part of the OrgPolicy check response for logging purposes.

map<string, string> resource_tags = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getPayload()

public abstract Struct getPayload()

Optional. Resource payload that is currently in scope and is subjected to orgpolicy conditions. This payload may be the subset of the actual Resource that may come in the request. This payload should not contain any core content.

.google.protobuf.Struct payload = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Struct

The payload.

getPayloadOrBuilder()

public abstract StructOrBuilder getPayloadOrBuilder()

Optional. Resource payload that is currently in scope and is subjected to orgpolicy conditions. This payload may be the subset of the actual Resource that may come in the request. This payload should not contain any core content.

.google.protobuf.Struct payload = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StructOrBuilder

getResourceTags() (deprecated)

public abstract Map<String,String> getResourceTags()

Use #getResourceTagsMap() instead.

Returns
Type Description
Map<String,String>

getResourceTagsCount()

public abstract int getResourceTagsCount()

Optional. Tags referenced on the resource at the time of evaluation. These also include the federated tags, if they are supplied in the CheckOrgPolicy or CheckCustomConstraints Requests.

Optional field as of now. These tags are the Cloud tags that are available on the resource during the policy evaluation and will be available as part of the OrgPolicy check response for logging purposes.

map<string, string> resource_tags = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getResourceTagsMap()

public abstract Map<String,String> getResourceTagsMap()

Optional. Tags referenced on the resource at the time of evaluation. These also include the federated tags, if they are supplied in the CheckOrgPolicy or CheckCustomConstraints Requests.

Optional field as of now. These tags are the Cloud tags that are available on the resource during the policy evaluation and will be available as part of the OrgPolicy check response for logging purposes.

map<string, string> resource_tags = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getResourceTagsOrDefault(String key, String defaultValue)

public abstract String getResourceTagsOrDefault(String key, String defaultValue)

Optional. Tags referenced on the resource at the time of evaluation. These also include the federated tags, if they are supplied in the CheckOrgPolicy or CheckCustomConstraints Requests.

Optional field as of now. These tags are the Cloud tags that are available on the resource during the policy evaluation and will be available as part of the OrgPolicy check response for logging purposes.

map<string, string> resource_tags = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getResourceTagsOrThrow(String key)

public abstract String getResourceTagsOrThrow(String key)

Optional. Tags referenced on the resource at the time of evaluation. These also include the federated tags, if they are supplied in the CheckOrgPolicy or CheckCustomConstraints Requests.

Optional field as of now. These tags are the Cloud tags that are available on the resource during the policy evaluation and will be available as part of the OrgPolicy check response for logging purposes.

map<string, string> resource_tags = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getResourceType()

public abstract String getResourceType()

Optional. Resource type that the orgpolicy is checked against. Example: compute.googleapis.com/Instance, store.googleapis.com/bucket

string resource_type = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The resourceType.

getResourceTypeBytes()

public abstract ByteString getResourceTypeBytes()

Optional. Resource type that the orgpolicy is checked against. Example: compute.googleapis.com/Instance, store.googleapis.com/bucket

string resource_type = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for resourceType.

getViolationInfo(int index)

public abstract ViolationInfo getViolationInfo(int index)

Optional. Policy violations

repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ViolationInfo

getViolationInfoCount()

public abstract int getViolationInfoCount()

Optional. Policy violations

repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getViolationInfoList()

public abstract List<ViolationInfo> getViolationInfoList()

Optional. Policy violations

repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<ViolationInfo>

getViolationInfoOrBuilder(int index)

public abstract ViolationInfoOrBuilder getViolationInfoOrBuilder(int index)

Optional. Policy violations

repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ViolationInfoOrBuilder

getViolationInfoOrBuilderList()

public abstract List<? extends ViolationInfoOrBuilder> getViolationInfoOrBuilderList()

Optional. Policy violations

repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.audit.ViolationInfoOrBuilder>

hasPayload()

public abstract boolean hasPayload()

Optional. Resource payload that is currently in scope and is subjected to orgpolicy conditions. This payload may be the subset of the actual Resource that may come in the request. This payload should not contain any core content.

.google.protobuf.Struct payload = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the payload field is set.