Interface OrgPolicyViolationInfoOrBuilder (2.37.1)

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
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
StructOrBuilder

getResourceTags() (deprecated)

public abstract Map<String,String> getResourceTags()

Use #getResourceTagsMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ViolationInfo

getViolationInfoCount()

public abstract int getViolationInfoCount()

Optional. Policy violations

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

Returns
TypeDescription
int

getViolationInfoList()

public abstract List<ViolationInfo> getViolationInfoList()

Optional. Policy violations

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the payload field is set.