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
Modifier and TypeMethodDescriptionboolean
Optional.com.google.protobuf.Struct
Optional.com.google.protobuf.StructOrBuilder
Optional.Deprecated.int
Optional.Optional.getResourceTagsOrDefault
(String key, String defaultValue) Optional.Optional.Optional.com.google.protobuf.ByteString
Optional.getViolationInfo
(int index) Optional.int
Optional.Optional.getViolationInfoOrBuilder
(int index) Optional.List<? extends ViolationInfoOrBuilder>
Optional.boolean
Optional.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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
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
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.UsegetResourceTagsMap()
instead. -
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
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
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
List<ViolationInfo> getViolationInfoList()Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
-
getViolationInfo
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
List<? extends ViolationInfoOrBuilder> getViolationInfoOrBuilderList()Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
-
getViolationInfoOrBuilder
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
-