Package com.google.cloud.audit
Interface OrgPolicyViolationInfoOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
OrgPolicyViolationInfo
,OrgPolicyViolationInfo.Builder
public interface OrgPolicyViolationInfoOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
containsResourceTags(java.lang.String key)
Optional.com.google.protobuf.Struct
getPayload()
Optional.com.google.protobuf.StructOrBuilder
getPayloadOrBuilder()
Optional.java.util.Map<java.lang.String,java.lang.String>
getResourceTags()
Deprecated.int
getResourceTagsCount()
Optional.java.util.Map<java.lang.String,java.lang.String>
getResourceTagsMap()
Optional.java.lang.String
getResourceTagsOrDefault(java.lang.String key, java.lang.String defaultValue)
Optional.java.lang.String
getResourceTagsOrThrow(java.lang.String key)
Optional.java.lang.String
getResourceType()
Optional.com.google.protobuf.ByteString
getResourceTypeBytes()
Optional.ViolationInfo
getViolationInfo(int index)
Optional.int
getViolationInfoCount()
Optional.java.util.List<ViolationInfo>
getViolationInfoList()
Optional.ViolationInfoOrBuilder
getViolationInfoOrBuilder(int index)
Optional.java.util.List<? extends ViolationInfoOrBuilder>
getViolationInfoOrBuilderList()
Optional.boolean
hasPayload()
Optional.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasPayload
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:
- Whether the payload field is set.
-
getPayload
com.google.protobuf.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:
- The payload.
-
getPayloadOrBuilder
com.google.protobuf.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];
-
getResourceType
java.lang.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:
- The resourceType.
-
getResourceTypeBytes
com.google.protobuf.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:
- The bytes for resourceType.
-
getResourceTagsCount
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];
-
containsResourceTags
boolean containsResourceTags(java.lang.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];
-
getResourceTags
@Deprecated java.util.Map<java.lang.String,java.lang.String> getResourceTags()
Deprecated.UsegetResourceTagsMap()
instead.
-
getResourceTagsMap
java.util.Map<java.lang.String,java.lang.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];
-
getResourceTagsOrDefault
java.lang.String getResourceTagsOrDefault(java.lang.String key, java.lang.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];
-
getResourceTagsOrThrow
java.lang.String getResourceTagsOrThrow(java.lang.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];
-
getViolationInfoList
java.util.List<ViolationInfo> getViolationInfoList()
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
-
getViolationInfo
ViolationInfo getViolationInfo(int index)
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
-
getViolationInfoCount
int getViolationInfoCount()
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
-
getViolationInfoOrBuilderList
java.util.List<? extends ViolationInfoOrBuilder> getViolationInfoOrBuilderList()
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
-
getViolationInfoOrBuilder
ViolationInfoOrBuilder getViolationInfoOrBuilder(int index)
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
-
-