Documentation ¶
Overview ¶
Package auditdata provides Cloud Audit Logs type definitions for CloudEvent data payloads.
Supported CloudEvent Types ¶
- google.cloud.audit.log.v1.written
Index ¶
- Variables
- type AuditLog
- func (*AuditLog) Descriptor() ([]byte, []int)deprecated
- func (x *AuditLog) GetAuthenticationInfo() *AuthenticationInfo
- func (x *AuditLog) GetAuthorizationInfo() []*AuthorizationInfo
- func (x *AuditLog) GetMetadata() *structpb.Struct
- func (x *AuditLog) GetMethodName() string
- func (x *AuditLog) GetNumResponseItems() int64
- func (x *AuditLog) GetRequest() *structpb.Struct
- func (x *AuditLog) GetRequestMetadata() *RequestMetadata
- func (x *AuditLog) GetResourceLocation() *ResourceLocation
- func (x *AuditLog) GetResourceName() string
- func (x *AuditLog) GetResourceOriginalState() *structpb.Struct
- func (x *AuditLog) GetResponse() *structpb.Struct
- func (x *AuditLog) GetServiceData() *structpb.Struct
- func (x *AuditLog) GetServiceName() string
- func (x *AuditLog) GetStatus() *status.Status
- func (*AuditLog) ProtoMessage()
- func (x *AuditLog) ProtoReflect() protoreflect.Message
- func (x *AuditLog) Reset()
- func (x *AuditLog) String() string
- type AuthenticationInfo
- func (*AuthenticationInfo) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticationInfo) GetAuthoritySelector() string
- func (x *AuthenticationInfo) GetPrincipalEmail() string
- func (x *AuthenticationInfo) GetPrincipalSubject() string
- func (x *AuthenticationInfo) GetServiceAccountDelegationInfo() []*ServiceAccountDelegationInfo
- func (x *AuthenticationInfo) GetServiceAccountKeyName() string
- func (x *AuthenticationInfo) GetThirdPartyPrincipal() *structpb.Struct
- func (*AuthenticationInfo) ProtoMessage()
- func (x *AuthenticationInfo) ProtoReflect() protoreflect.Message
- func (x *AuthenticationInfo) Reset()
- func (x *AuthenticationInfo) String() string
- type AuthorizationInfo
- func (*AuthorizationInfo) Descriptor() ([]byte, []int)deprecated
- func (x *AuthorizationInfo) GetGranted() bool
- func (x *AuthorizationInfo) GetPermission() string
- func (x *AuthorizationInfo) GetResource() string
- func (x *AuthorizationInfo) GetResourceAttributes() *attribute_context.AttributeContext_Resource
- func (*AuthorizationInfo) ProtoMessage()
- func (x *AuthorizationInfo) ProtoReflect() protoreflect.Message
- func (x *AuthorizationInfo) Reset()
- func (x *AuthorizationInfo) String() string
- type LogEntryData
- func (*LogEntryData) Descriptor() ([]byte, []int)deprecated
- func (x *LogEntryData) GetInsertId() string
- func (x *LogEntryData) GetLabels() map[string]string
- func (x *LogEntryData) GetLogName() string
- func (x *LogEntryData) GetOperation() *LogEntryOperation
- func (x *LogEntryData) GetProtoPayload() *AuditLog
- func (x *LogEntryData) GetReceiveTimestamp() *timestamppb.Timestamp
- func (x *LogEntryData) GetResource() *api.MonitoredResource
- func (x *LogEntryData) GetSeverity() LogSeverity
- func (x *LogEntryData) GetSpanId() string
- func (x *LogEntryData) GetSplit() *LogSplit
- func (x *LogEntryData) GetTimestamp() *timestamppb.Timestamp
- func (x *LogEntryData) GetTrace() string
- func (*LogEntryData) ProtoMessage()
- func (x *LogEntryData) ProtoReflect() protoreflect.Message
- func (x *LogEntryData) Reset()
- func (x *LogEntryData) String() string
- type LogEntryOperation
- func (*LogEntryOperation) Descriptor() ([]byte, []int)deprecated
- func (x *LogEntryOperation) GetFirst() bool
- func (x *LogEntryOperation) GetId() string
- func (x *LogEntryOperation) GetLast() bool
- func (x *LogEntryOperation) GetProducer() string
- func (*LogEntryOperation) ProtoMessage()
- func (x *LogEntryOperation) ProtoReflect() protoreflect.Message
- func (x *LogEntryOperation) Reset()
- func (x *LogEntryOperation) String() string
- type LogSeverity
- func (LogSeverity) Descriptor() protoreflect.EnumDescriptor
- func (x LogSeverity) Enum() *LogSeverity
- func (LogSeverity) EnumDescriptor() ([]byte, []int)deprecated
- func (x LogSeverity) Number() protoreflect.EnumNumber
- func (x LogSeverity) String() string
- func (LogSeverity) Type() protoreflect.EnumType
- type LogSplit
- func (*LogSplit) Descriptor() ([]byte, []int)deprecated
- func (x *LogSplit) GetIndex() int32
- func (x *LogSplit) GetTotalSplits() int32
- func (x *LogSplit) GetUid() string
- func (*LogSplit) ProtoMessage()
- func (x *LogSplit) ProtoReflect() protoreflect.Message
- func (x *LogSplit) Reset()
- func (x *LogSplit) String() string
- type RequestMetadata
- func (*RequestMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *RequestMetadata) GetCallerIp() string
- func (x *RequestMetadata) GetCallerNetwork() string
- func (x *RequestMetadata) GetCallerSuppliedUserAgent() string
- func (x *RequestMetadata) GetDestinationAttributes() *attribute_context.AttributeContext_Peer
- func (x *RequestMetadata) GetRequestAttributes() *attribute_context.AttributeContext_Request
- func (*RequestMetadata) ProtoMessage()
- func (x *RequestMetadata) ProtoReflect() protoreflect.Message
- func (x *RequestMetadata) Reset()
- func (x *RequestMetadata) String() string
- type ResourceLocation
- func (*ResourceLocation) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceLocation) GetCurrentLocations() []string
- func (x *ResourceLocation) GetOriginalLocations() []string
- func (*ResourceLocation) ProtoMessage()
- func (x *ResourceLocation) ProtoReflect() protoreflect.Message
- func (x *ResourceLocation) Reset()
- func (x *ResourceLocation) String() string
- type ServiceAccountDelegationInfo
- func (*ServiceAccountDelegationInfo) Descriptor() ([]byte, []int)deprecated
- func (m *ServiceAccountDelegationInfo) GetAuthority() isServiceAccountDelegationInfo_Authority
- func (x *ServiceAccountDelegationInfo) GetFirstPartyPrincipal() *ServiceAccountDelegationInfo_FirstPartyPrincipal
- func (x *ServiceAccountDelegationInfo) GetThirdPartyPrincipal() *ServiceAccountDelegationInfo_ThirdPartyPrincipal
- func (*ServiceAccountDelegationInfo) ProtoMessage()
- func (x *ServiceAccountDelegationInfo) ProtoReflect() protoreflect.Message
- func (x *ServiceAccountDelegationInfo) Reset()
- func (x *ServiceAccountDelegationInfo) String() string
- type ServiceAccountDelegationInfo_FirstPartyPrincipal
- func (*ServiceAccountDelegationInfo_FirstPartyPrincipal) Descriptor() ([]byte, []int)deprecated
- func (x *ServiceAccountDelegationInfo_FirstPartyPrincipal) GetPrincipalEmail() string
- func (x *ServiceAccountDelegationInfo_FirstPartyPrincipal) GetServiceMetadata() *structpb.Struct
- func (*ServiceAccountDelegationInfo_FirstPartyPrincipal) ProtoMessage()
- func (x *ServiceAccountDelegationInfo_FirstPartyPrincipal) ProtoReflect() protoreflect.Message
- func (x *ServiceAccountDelegationInfo_FirstPartyPrincipal) Reset()
- func (x *ServiceAccountDelegationInfo_FirstPartyPrincipal) String() string
- type ServiceAccountDelegationInfo_FirstPartyPrincipal_
- type ServiceAccountDelegationInfo_ThirdPartyPrincipal
- func (*ServiceAccountDelegationInfo_ThirdPartyPrincipal) Descriptor() ([]byte, []int)deprecated
- func (x *ServiceAccountDelegationInfo_ThirdPartyPrincipal) GetThirdPartyClaims() *structpb.Struct
- func (*ServiceAccountDelegationInfo_ThirdPartyPrincipal) ProtoMessage()
- func (x *ServiceAccountDelegationInfo_ThirdPartyPrincipal) ProtoReflect() protoreflect.Message
- func (x *ServiceAccountDelegationInfo_ThirdPartyPrincipal) Reset()
- func (x *ServiceAccountDelegationInfo_ThirdPartyPrincipal) String() string
- type ServiceAccountDelegationInfo_ThirdPartyPrincipal_
Constants ¶
This section is empty.
Variables ¶
var ( LogSeverity_name = map[int32]string{ 0: "DEFAULT", 100: "DEBUG", 200: "INFO", 300: "NOTICE", 400: "WARNING", 500: "ERROR", 600: "CRITICAL", 700: "ALERT", 800: "EMERGENCY", } LogSeverity_value = map[string]int32{ "DEFAULT": 0, "DEBUG": 100, "INFO": 200, "NOTICE": 300, "WARNING": 400, "ERROR": 500, "CRITICAL": 600, "ALERT": 700, "EMERGENCY": 800, } )
Enum value maps for LogSeverity.
var File_cloud_audit_v1_data_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AuditLog ¶
type AuditLog struct { // The name of the API service performing the operation. For example, // `"datastore.googleapis.com"`. ServiceName string `protobuf:"bytes,7,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` // The name of the service method or operation. // For API calls, this should be the name of the API method. // For example, // // "google.datastore.v1.Datastore.RunQuery" // "google.logging.v1.LoggingService.DeleteLog" MethodName string `protobuf:"bytes,8,opt,name=method_name,json=methodName,proto3" json:"method_name,omitempty"` // The resource or collection that is the target of the operation. // The name is a scheme-less URI, not including the API service name. // For example: // // "shelves/SHELF_ID/books" // "shelves/SHELF_ID/books/BOOK_ID" ResourceName string `protobuf:"bytes,11,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"` // The resource location information. ResourceLocation *ResourceLocation `protobuf:"bytes,20,opt,name=resource_location,json=resourceLocation,proto3" json:"resource_location,omitempty"` // The resource's original state before mutation. Present only for // operations which have successfully modified the targeted resource(s). // In general, this field should contain all changed fields, except those // that are already been included in `request`, `response`, `metadata` or // `service_data` fields. // When the JSON object represented here has a proto equivalent, // the proto name will be indicated in the `@type` property. ResourceOriginalState *structpb.Struct `` /* 127-byte string literal not displayed */ // The number of items returned from a List or Query API method, // if applicable. NumResponseItems int64 `protobuf:"varint,12,opt,name=num_response_items,json=numResponseItems,proto3" json:"num_response_items,omitempty"` // The status of the overall operation. Status *status.Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // Authentication information. AuthenticationInfo *AuthenticationInfo `protobuf:"bytes,3,opt,name=authentication_info,json=authenticationInfo,proto3" json:"authentication_info,omitempty"` // Authorization information. If there are multiple // resources or permissions involved, then there is // one AuthorizationInfo element for each {resource, permission} tuple. AuthorizationInfo []*AuthorizationInfo `protobuf:"bytes,9,rep,name=authorization_info,json=authorizationInfo,proto3" json:"authorization_info,omitempty"` // Metadata about the operation. RequestMetadata *RequestMetadata `protobuf:"bytes,4,opt,name=request_metadata,json=requestMetadata,proto3" json:"request_metadata,omitempty"` // The operation request. This may not include all request parameters, // such as those that are too large, privacy-sensitive, or duplicated // elsewhere in the log record. // It should never include user-generated data, such as file contents. // When the JSON object represented here has a proto equivalent, the proto // name will be indicated in the `@type` property. Request *structpb.Struct `protobuf:"bytes,16,opt,name=request,proto3" json:"request,omitempty"` // The operation response. This may not include all response elements, // such as those that are too large, privacy-sensitive, or duplicated // elsewhere in the log record. // It should never include user-generated data, such as file contents. // When the JSON object represented here has a proto equivalent, the proto // name will be indicated in the `@type` property. Response *structpb.Struct `protobuf:"bytes,17,opt,name=response,proto3" json:"response,omitempty"` // Other service-specific data about the request, response, and other // information associated with the current audited event. Metadata *structpb.Struct `protobuf:"bytes,18,opt,name=metadata,proto3" json:"metadata,omitempty"` // Deprecated: Use `metadata` field instead. // Other service-specific data about the request, response, and other // activities. // When the JSON object represented here has a proto equivalent, the proto // name will be indicated in the `@type` property. ServiceData *structpb.Struct `protobuf:"bytes,15,opt,name=service_data,json=serviceData,proto3" json:"service_data,omitempty"` // contains filtered or unexported fields }
Common audit log format for Google Cloud Platform API operations. Copied from https://github.com/googleapis/googleapis/blob/master/google/cloud/audit/audit_log.proto, but changing service_data from Any to Struct.
func (*AuditLog) Descriptor
deprecated
func (*AuditLog) GetAuthenticationInfo ¶
func (x *AuditLog) GetAuthenticationInfo() *AuthenticationInfo
func (*AuditLog) GetAuthorizationInfo ¶
func (x *AuditLog) GetAuthorizationInfo() []*AuthorizationInfo
func (*AuditLog) GetMetadata ¶
func (*AuditLog) GetMethodName ¶
func (*AuditLog) GetNumResponseItems ¶
func (*AuditLog) GetRequest ¶
func (*AuditLog) GetRequestMetadata ¶
func (x *AuditLog) GetRequestMetadata() *RequestMetadata
func (*AuditLog) GetResourceLocation ¶
func (x *AuditLog) GetResourceLocation() *ResourceLocation
func (*AuditLog) GetResourceName ¶
func (*AuditLog) GetResourceOriginalState ¶
func (*AuditLog) GetResponse ¶
func (*AuditLog) GetServiceData ¶
func (*AuditLog) GetServiceName ¶
func (*AuditLog) ProtoMessage ¶
func (*AuditLog) ProtoMessage()
func (*AuditLog) ProtoReflect ¶
func (x *AuditLog) ProtoReflect() protoreflect.Message
type AuthenticationInfo ¶
type AuthenticationInfo struct { // The email address of the authenticated user (or service account on behalf // of third party principal) making the request. For third party identity // callers, the `principal_subject` field is populated instead of this field. // For privacy reasons, the principal email address is sometimes redacted. // For more information, see [Caller identities in audit // logs](https://cloud.google.com/logging/docs/audit#user-id). PrincipalEmail string `protobuf:"bytes,1,opt,name=principal_email,json=principalEmail,proto3" json:"principal_email,omitempty"` // The authority selector specified by the requestor, if any. // It is not guaranteed that the principal was allowed to use this authority. AuthoritySelector string `protobuf:"bytes,2,opt,name=authority_selector,json=authoritySelector,proto3" json:"authority_selector,omitempty"` // The third party identification (if any) of the authenticated user making // the request. // When the JSON object represented here has a proto equivalent, the proto // name will be indicated in the `@type` property. ThirdPartyPrincipal *structpb.Struct `protobuf:"bytes,4,opt,name=third_party_principal,json=thirdPartyPrincipal,proto3" json:"third_party_principal,omitempty"` // The name of the service account key used to create or exchange // credentials for authenticating the service account making the request. // This is a scheme-less URI full resource name. For example: // // "//iam.googleapis.com/projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}" ServiceAccountKeyName string `` /* 128-byte string literal not displayed */ // Identity delegation history of an authenticated service account that makes // the request. It contains information on the real authorities that try to // access GCP resources by delegating on a service account. When multiple // authorities present, they are guaranteed to be sorted based on the original // ordering of the identity delegation events. ServiceAccountDelegationInfo []*ServiceAccountDelegationInfo `` /* 149-byte string literal not displayed */ // String representation of identity of requesting party. // Populated for both first and third party identities. PrincipalSubject string `protobuf:"bytes,8,opt,name=principal_subject,json=principalSubject,proto3" json:"principal_subject,omitempty"` // contains filtered or unexported fields }
Authentication information for the operation.
func (*AuthenticationInfo) Descriptor
deprecated
func (*AuthenticationInfo) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticationInfo.ProtoReflect.Descriptor instead.
func (*AuthenticationInfo) GetAuthoritySelector ¶
func (x *AuthenticationInfo) GetAuthoritySelector() string
func (*AuthenticationInfo) GetPrincipalEmail ¶
func (x *AuthenticationInfo) GetPrincipalEmail() string
func (*AuthenticationInfo) GetPrincipalSubject ¶
func (x *AuthenticationInfo) GetPrincipalSubject() string
func (*AuthenticationInfo) GetServiceAccountDelegationInfo ¶
func (x *AuthenticationInfo) GetServiceAccountDelegationInfo() []*ServiceAccountDelegationInfo
func (*AuthenticationInfo) GetServiceAccountKeyName ¶
func (x *AuthenticationInfo) GetServiceAccountKeyName() string
func (*AuthenticationInfo) GetThirdPartyPrincipal ¶
func (x *AuthenticationInfo) GetThirdPartyPrincipal() *structpb.Struct
func (*AuthenticationInfo) ProtoMessage ¶
func (*AuthenticationInfo) ProtoMessage()
func (*AuthenticationInfo) ProtoReflect ¶
func (x *AuthenticationInfo) ProtoReflect() protoreflect.Message
func (*AuthenticationInfo) Reset ¶
func (x *AuthenticationInfo) Reset()
func (*AuthenticationInfo) String ¶
func (x *AuthenticationInfo) String() string
type AuthorizationInfo ¶
type AuthorizationInfo struct { // The resource being accessed, as a REST-style string. For example: // // bigquery.googleapis.com/projects/PROJECTID/datasets/DATASETID Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` // The required IAM permission. Permission string `protobuf:"bytes,2,opt,name=permission,proto3" json:"permission,omitempty"` // Whether or not authorization for `resource` and `permission` // was granted. Granted bool `protobuf:"varint,3,opt,name=granted,proto3" json:"granted,omitempty"` // Resource attributes used in IAM condition evaluation. This field contains // resource attributes like resource type and resource name. // // To get the whole view of the attributes used in IAM // condition evaluation, the user must also look into // `AuditLogData.request_metadata.request_attributes`. ResourceAttributes *attribute_context.AttributeContext_Resource `protobuf:"bytes,5,opt,name=resource_attributes,json=resourceAttributes,proto3" json:"resource_attributes,omitempty"` // contains filtered or unexported fields }
Authorization information for the operation.
func (*AuthorizationInfo) Descriptor
deprecated
func (*AuthorizationInfo) Descriptor() ([]byte, []int)
Deprecated: Use AuthorizationInfo.ProtoReflect.Descriptor instead.
func (*AuthorizationInfo) GetGranted ¶
func (x *AuthorizationInfo) GetGranted() bool
func (*AuthorizationInfo) GetPermission ¶
func (x *AuthorizationInfo) GetPermission() string
func (*AuthorizationInfo) GetResource ¶
func (x *AuthorizationInfo) GetResource() string
func (*AuthorizationInfo) GetResourceAttributes ¶
func (x *AuthorizationInfo) GetResourceAttributes() *attribute_context.AttributeContext_Resource
func (*AuthorizationInfo) ProtoMessage ¶
func (*AuthorizationInfo) ProtoMessage()
func (*AuthorizationInfo) ProtoReflect ¶
func (x *AuthorizationInfo) ProtoReflect() protoreflect.Message
func (*AuthorizationInfo) Reset ¶
func (x *AuthorizationInfo) Reset()
func (*AuthorizationInfo) String ¶
func (x *AuthorizationInfo) String() string
type LogEntryData ¶
type LogEntryData struct { // The resource name of the log to which this log entry belongs. LogName string `protobuf:"bytes,12,opt,name=log_name,json=logName,proto3" json:"log_name,omitempty"` // The monitored resource that produced this log entry. // // Example: a log entry that reports a database error would be associated with // the monitored resource designating the particular database that reported // the error. Resource *api.MonitoredResource `protobuf:"bytes,8,opt,name=resource,proto3" json:"resource,omitempty"` // The log entry payload, which is always an AuditLog for Cloud Audit Log // events. ProtoPayload *AuditLog `protobuf:"bytes,2,opt,name=proto_payload,json=protoPayload,proto3" json:"proto_payload,omitempty"` // A unique identifier for the log entry. InsertId string `protobuf:"bytes,4,opt,name=insert_id,json=insertId,proto3" json:"insert_id,omitempty"` // A set of user-defined (key, value) data that provides additional // information about the log entry. Labels map[string]string `` /* 154-byte string literal not displayed */ // Information about an operation associated with the log entry, if // applicable. Operation *LogEntryOperation `protobuf:"bytes,15,opt,name=operation,proto3" json:"operation,omitempty"` // The time the event described by the log entry occurred. Timestamp *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // The time the log entry was received by Logging. ReceiveTimestamp *timestamppb.Timestamp `protobuf:"bytes,24,opt,name=receive_timestamp,json=receiveTimestamp,proto3" json:"receive_timestamp,omitempty"` // The severity of the log entry. Severity LogSeverity `protobuf:"varint,10,opt,name=severity,proto3,enum=google.events.cloud.audit.v1.LogSeverity" json:"severity,omitempty"` // Resource name of the trace associated with the log entry, if any. If it // contains a relative resource name, the name is assumed to be relative to // `//tracing.googleapis.com`. Example: // `projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824` Trace string `protobuf:"bytes,22,opt,name=trace,proto3" json:"trace,omitempty"` // The span ID within the trace associated with the log entry, if any. // // For Trace spans, this is the same format that the Trace API v2 uses: a // 16-character hexadecimal encoding of an 8-byte array, such as // `000000000000004a`. SpanId string `protobuf:"bytes,27,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"` // Information indicating this LogEntry is part of a sequence of multiple logs // split from a single LogEntry. Split *LogSplit `protobuf:"bytes,35,opt,name=split,proto3" json:"split,omitempty"` // contains filtered or unexported fields }
The data within all Cloud Audit Logs log entry events.
func (*LogEntryData) Descriptor
deprecated
func (*LogEntryData) Descriptor() ([]byte, []int)
Deprecated: Use LogEntryData.ProtoReflect.Descriptor instead.
func (*LogEntryData) GetInsertId ¶
func (x *LogEntryData) GetInsertId() string
func (*LogEntryData) GetLabels ¶
func (x *LogEntryData) GetLabels() map[string]string
func (*LogEntryData) GetLogName ¶
func (x *LogEntryData) GetLogName() string
func (*LogEntryData) GetOperation ¶
func (x *LogEntryData) GetOperation() *LogEntryOperation
func (*LogEntryData) GetProtoPayload ¶
func (x *LogEntryData) GetProtoPayload() *AuditLog
func (*LogEntryData) GetReceiveTimestamp ¶
func (x *LogEntryData) GetReceiveTimestamp() *timestamppb.Timestamp
func (*LogEntryData) GetResource ¶
func (x *LogEntryData) GetResource() *api.MonitoredResource
func (*LogEntryData) GetSeverity ¶
func (x *LogEntryData) GetSeverity() LogSeverity
func (*LogEntryData) GetSpanId ¶
func (x *LogEntryData) GetSpanId() string
func (*LogEntryData) GetSplit ¶
func (x *LogEntryData) GetSplit() *LogSplit
func (*LogEntryData) GetTimestamp ¶
func (x *LogEntryData) GetTimestamp() *timestamppb.Timestamp
func (*LogEntryData) GetTrace ¶
func (x *LogEntryData) GetTrace() string
func (*LogEntryData) ProtoMessage ¶
func (*LogEntryData) ProtoMessage()
func (*LogEntryData) ProtoReflect ¶
func (x *LogEntryData) ProtoReflect() protoreflect.Message
func (*LogEntryData) Reset ¶
func (x *LogEntryData) Reset()
func (*LogEntryData) String ¶
func (x *LogEntryData) String() string
type LogEntryOperation ¶
type LogEntryOperation struct { // An arbitrary operation identifier. Log entries with the same // identifier are assumed to be part of the same operation. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // An arbitrary producer identifier. The combination of `id` and // `producer` must be globally unique. Examples for `producer`: // `"MyDivision.MyBigCompany.com"`, `"github.com/MyProject/MyApplication"`. Producer string `protobuf:"bytes,2,opt,name=producer,proto3" json:"producer,omitempty"` // True if this is the first log entry in the operation. First bool `protobuf:"varint,3,opt,name=first,proto3" json:"first,omitempty"` // True if this is the last log entry in the operation. Last bool `protobuf:"varint,4,opt,name=last,proto3" json:"last,omitempty"` // contains filtered or unexported fields }
Additional information about a potentially long-running operation with which a log entry is associated.
func (*LogEntryOperation) Descriptor
deprecated
func (*LogEntryOperation) Descriptor() ([]byte, []int)
Deprecated: Use LogEntryOperation.ProtoReflect.Descriptor instead.
func (*LogEntryOperation) GetFirst ¶
func (x *LogEntryOperation) GetFirst() bool
func (*LogEntryOperation) GetId ¶
func (x *LogEntryOperation) GetId() string
func (*LogEntryOperation) GetLast ¶
func (x *LogEntryOperation) GetLast() bool
func (*LogEntryOperation) GetProducer ¶
func (x *LogEntryOperation) GetProducer() string
func (*LogEntryOperation) ProtoMessage ¶
func (*LogEntryOperation) ProtoMessage()
func (*LogEntryOperation) ProtoReflect ¶
func (x *LogEntryOperation) ProtoReflect() protoreflect.Message
func (*LogEntryOperation) Reset ¶
func (x *LogEntryOperation) Reset()
func (*LogEntryOperation) String ¶
func (x *LogEntryOperation) String() string
type LogSeverity ¶
type LogSeverity int32
The severity of the event described in a log entry, expressed as one of the standard severity levels listed below. For your reference, the levels are assigned the listed numeric values. The effect of using numeric values other than those listed is undefined. Copied from https://github.com/googleapis/googleapis/blob/master/google/logging/type/log_severity.proto
const ( // (0) The log entry has no assigned severity level. LogSeverity_DEFAULT LogSeverity = 0 // (100) Debug or trace information. LogSeverity_DEBUG LogSeverity = 100 // (200) Routine information, such as ongoing status or performance. LogSeverity_INFO LogSeverity = 200 // (300) Normal but significant events, such as start up, shut down, or // a configuration change. LogSeverity_NOTICE LogSeverity = 300 // (400) Warning events might cause problems. LogSeverity_WARNING LogSeverity = 400 // (500) Error events are likely to cause problems. LogSeverity_ERROR LogSeverity = 500 // (600) Critical events cause more severe problems or outages. LogSeverity_CRITICAL LogSeverity = 600 // (700) A person must take an action immediately. LogSeverity_ALERT LogSeverity = 700 // (800) One or more systems are unusable. LogSeverity_EMERGENCY LogSeverity = 800 )
func (LogSeverity) Descriptor ¶
func (LogSeverity) Descriptor() protoreflect.EnumDescriptor
func (LogSeverity) Enum ¶
func (x LogSeverity) Enum() *LogSeverity
func (LogSeverity) EnumDescriptor
deprecated
func (LogSeverity) EnumDescriptor() ([]byte, []int)
Deprecated: Use LogSeverity.Descriptor instead.
func (LogSeverity) Number ¶
func (x LogSeverity) Number() protoreflect.EnumNumber
func (LogSeverity) String ¶
func (x LogSeverity) String() string
func (LogSeverity) Type ¶
func (LogSeverity) Type() protoreflect.EnumType
type LogSplit ¶
type LogSplit struct { // A globally unique identifier for all LogEntries in a sequence of split // logs. All LogEntries with the same |LogSplit.uid| are assumed to be part of // the same sequence of split logs. Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` // The index of this LogEntry in the sequence of split logs. LogEntries are // given |index| values 0, 1, ..., n-1 for a sequence of n entries. Index int32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` // The total number of logs that the original LogEntry was split into. TotalSplits int32 `protobuf:"varint,3,opt,name=total_splits,json=totalSplits,proto3" json:"total_splits,omitempty"` // contains filtered or unexported fields }
Additional information used to correlate multiple LogEntries. Used when a single LogEntry would exceed the Google Cloud Logging size limit and is split across multiple entries.
func (*LogSplit) Descriptor
deprecated
func (*LogSplit) GetTotalSplits ¶
func (*LogSplit) ProtoMessage ¶
func (*LogSplit) ProtoMessage()
func (*LogSplit) ProtoReflect ¶
func (x *LogSplit) ProtoReflect() protoreflect.Message
type RequestMetadata ¶
type RequestMetadata struct { // The IP address of the caller. // For caller from internet, this will be public IPv4 or IPv6 address. // For caller from a Compute Engine VM with external IP address, this // will be the VM's external IP address. For caller from a Compute // Engine VM without external IP address, if the VM is in the same // organization (or project) as the accessed resource, `caller_ip` will // be the VM's internal IPv4 address, otherwise the `caller_ip` will be // redacted to "gce-internal-ip". // See https://cloud.google.com/compute/docs/vpc/ for more information. CallerIp string `protobuf:"bytes,1,opt,name=caller_ip,json=callerIp,proto3" json:"caller_ip,omitempty"` // The user agent of the caller. // This information is not authenticated and should be treated accordingly. // For example: // // - `google-api-python-client/1.4.0`: // The request was made by the Google API client for Python. // - `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`: // The request was made by the Google Cloud SDK CLI (gcloud). // - `AppEngine-Google; (+http://code.google.com/appengine; appid: // // s~my-project`: // // The request was made from the `my-project` App Engine app. CallerSuppliedUserAgent string `` /* 134-byte string literal not displayed */ // The network of the caller. // Set only if the network host project is part of the same GCP organization // (or project) as the accessed resource. // See https://cloud.google.com/compute/docs/vpc/ for more information. // This is a scheme-less URI full resource name. For example: // // "//compute.googleapis.com/projects/PROJECT_ID/global/networks/NETWORK_ID" CallerNetwork string `protobuf:"bytes,3,opt,name=caller_network,json=callerNetwork,proto3" json:"caller_network,omitempty"` // Request attributes used in IAM condition evaluation. This field contains // request attributes like request time and access levels associated with // the request. // // To get the whole view of the attributes used in IAM // condition evaluation, the user must also look into // `AuditLog.authentication_info.resource_attributes`. RequestAttributes *attribute_context.AttributeContext_Request `protobuf:"bytes,7,opt,name=request_attributes,json=requestAttributes,proto3" json:"request_attributes,omitempty"` // The destination of a network activity, such as accepting a TCP connection. // In a multi hop network activity, the destination represents the receiver of // the last hop. Only two fields are used in this message, Peer.port and // Peer.ip. These fields are optionally populated by those services utilizing // the IAM condition feature. DestinationAttributes *attribute_context.AttributeContext_Peer `protobuf:"bytes,8,opt,name=destination_attributes,json=destinationAttributes,proto3" json:"destination_attributes,omitempty"` // contains filtered or unexported fields }
Metadata about the request.
func (*RequestMetadata) Descriptor
deprecated
func (*RequestMetadata) Descriptor() ([]byte, []int)
Deprecated: Use RequestMetadata.ProtoReflect.Descriptor instead.
func (*RequestMetadata) GetCallerIp ¶
func (x *RequestMetadata) GetCallerIp() string
func (*RequestMetadata) GetCallerNetwork ¶
func (x *RequestMetadata) GetCallerNetwork() string
func (*RequestMetadata) GetCallerSuppliedUserAgent ¶
func (x *RequestMetadata) GetCallerSuppliedUserAgent() string
func (*RequestMetadata) GetDestinationAttributes ¶
func (x *RequestMetadata) GetDestinationAttributes() *attribute_context.AttributeContext_Peer
func (*RequestMetadata) GetRequestAttributes ¶
func (x *RequestMetadata) GetRequestAttributes() *attribute_context.AttributeContext_Request
func (*RequestMetadata) ProtoMessage ¶
func (*RequestMetadata) ProtoMessage()
func (*RequestMetadata) ProtoReflect ¶
func (x *RequestMetadata) ProtoReflect() protoreflect.Message
func (*RequestMetadata) Reset ¶
func (x *RequestMetadata) Reset()
func (*RequestMetadata) String ¶
func (x *RequestMetadata) String() string
type ResourceLocation ¶
type ResourceLocation struct { // The locations of a resource after the execution of the operation. // Requests to create or delete a location based resource must populate // the 'current_locations' field and not the 'original_locations' field. // For example: // // "europe-west1-a" // "us-east1" // "nam3" CurrentLocations []string `protobuf:"bytes,1,rep,name=current_locations,json=currentLocations,proto3" json:"current_locations,omitempty"` // The locations of a resource prior to the execution of the operation. // Requests that mutate the resource's location must populate both the // 'original_locations' as well as the 'current_locations' fields. // For example: // // "europe-west1-a" // "us-east1" // "nam3" OriginalLocations []string `protobuf:"bytes,2,rep,name=original_locations,json=originalLocations,proto3" json:"original_locations,omitempty"` // contains filtered or unexported fields }
Location information about a resource.
func (*ResourceLocation) Descriptor
deprecated
func (*ResourceLocation) Descriptor() ([]byte, []int)
Deprecated: Use ResourceLocation.ProtoReflect.Descriptor instead.
func (*ResourceLocation) GetCurrentLocations ¶
func (x *ResourceLocation) GetCurrentLocations() []string
func (*ResourceLocation) GetOriginalLocations ¶
func (x *ResourceLocation) GetOriginalLocations() []string
func (*ResourceLocation) ProtoMessage ¶
func (*ResourceLocation) ProtoMessage()
func (*ResourceLocation) ProtoReflect ¶
func (x *ResourceLocation) ProtoReflect() protoreflect.Message
func (*ResourceLocation) Reset ¶
func (x *ResourceLocation) Reset()
func (*ResourceLocation) String ¶
func (x *ResourceLocation) String() string
type ServiceAccountDelegationInfo ¶
type ServiceAccountDelegationInfo struct { // Entity that creates credentials for service account and assumes its // identity for authentication. // // Types that are assignable to Authority: // // *ServiceAccountDelegationInfo_FirstPartyPrincipal_ // *ServiceAccountDelegationInfo_ThirdPartyPrincipal_ Authority isServiceAccountDelegationInfo_Authority `protobuf_oneof:"Authority"` // contains filtered or unexported fields }
Identity delegation history of an authenticated service account.
func (*ServiceAccountDelegationInfo) Descriptor
deprecated
func (*ServiceAccountDelegationInfo) Descriptor() ([]byte, []int)
Deprecated: Use ServiceAccountDelegationInfo.ProtoReflect.Descriptor instead.
func (*ServiceAccountDelegationInfo) GetAuthority ¶
func (m *ServiceAccountDelegationInfo) GetAuthority() isServiceAccountDelegationInfo_Authority
func (*ServiceAccountDelegationInfo) GetFirstPartyPrincipal ¶
func (x *ServiceAccountDelegationInfo) GetFirstPartyPrincipal() *ServiceAccountDelegationInfo_FirstPartyPrincipal
func (*ServiceAccountDelegationInfo) GetThirdPartyPrincipal ¶
func (x *ServiceAccountDelegationInfo) GetThirdPartyPrincipal() *ServiceAccountDelegationInfo_ThirdPartyPrincipal
func (*ServiceAccountDelegationInfo) ProtoMessage ¶
func (*ServiceAccountDelegationInfo) ProtoMessage()
func (*ServiceAccountDelegationInfo) ProtoReflect ¶
func (x *ServiceAccountDelegationInfo) ProtoReflect() protoreflect.Message
func (*ServiceAccountDelegationInfo) Reset ¶
func (x *ServiceAccountDelegationInfo) Reset()
func (*ServiceAccountDelegationInfo) String ¶
func (x *ServiceAccountDelegationInfo) String() string
type ServiceAccountDelegationInfo_FirstPartyPrincipal ¶
type ServiceAccountDelegationInfo_FirstPartyPrincipal struct { // The email address of a Google account. PrincipalEmail string `protobuf:"bytes,1,opt,name=principal_email,json=principalEmail,proto3" json:"principal_email,omitempty"` // Metadata about the service that uses the service account. ServiceMetadata *structpb.Struct `protobuf:"bytes,2,opt,name=service_metadata,json=serviceMetadata,proto3" json:"service_metadata,omitempty"` // contains filtered or unexported fields }
First party identity principal.
func (*ServiceAccountDelegationInfo_FirstPartyPrincipal) Descriptor
deprecated
func (*ServiceAccountDelegationInfo_FirstPartyPrincipal) Descriptor() ([]byte, []int)
Deprecated: Use ServiceAccountDelegationInfo_FirstPartyPrincipal.ProtoReflect.Descriptor instead.
func (*ServiceAccountDelegationInfo_FirstPartyPrincipal) GetPrincipalEmail ¶
func (x *ServiceAccountDelegationInfo_FirstPartyPrincipal) GetPrincipalEmail() string
func (*ServiceAccountDelegationInfo_FirstPartyPrincipal) GetServiceMetadata ¶
func (x *ServiceAccountDelegationInfo_FirstPartyPrincipal) GetServiceMetadata() *structpb.Struct
func (*ServiceAccountDelegationInfo_FirstPartyPrincipal) ProtoMessage ¶
func (*ServiceAccountDelegationInfo_FirstPartyPrincipal) ProtoMessage()
func (*ServiceAccountDelegationInfo_FirstPartyPrincipal) ProtoReflect ¶
func (x *ServiceAccountDelegationInfo_FirstPartyPrincipal) ProtoReflect() protoreflect.Message
func (*ServiceAccountDelegationInfo_FirstPartyPrincipal) Reset ¶
func (x *ServiceAccountDelegationInfo_FirstPartyPrincipal) Reset()
func (*ServiceAccountDelegationInfo_FirstPartyPrincipal) String ¶
func (x *ServiceAccountDelegationInfo_FirstPartyPrincipal) String() string
type ServiceAccountDelegationInfo_FirstPartyPrincipal_ ¶
type ServiceAccountDelegationInfo_FirstPartyPrincipal_ struct { // First party (Google) identity as the real authority. FirstPartyPrincipal *ServiceAccountDelegationInfo_FirstPartyPrincipal `protobuf:"bytes,1,opt,name=first_party_principal,json=firstPartyPrincipal,proto3,oneof"` }
type ServiceAccountDelegationInfo_ThirdPartyPrincipal ¶
type ServiceAccountDelegationInfo_ThirdPartyPrincipal struct { // Metadata about third party identity. ThirdPartyClaims *structpb.Struct `protobuf:"bytes,1,opt,name=third_party_claims,json=thirdPartyClaims,proto3" json:"third_party_claims,omitempty"` // contains filtered or unexported fields }
Third party identity principal.
func (*ServiceAccountDelegationInfo_ThirdPartyPrincipal) Descriptor
deprecated
func (*ServiceAccountDelegationInfo_ThirdPartyPrincipal) Descriptor() ([]byte, []int)
Deprecated: Use ServiceAccountDelegationInfo_ThirdPartyPrincipal.ProtoReflect.Descriptor instead.
func (*ServiceAccountDelegationInfo_ThirdPartyPrincipal) GetThirdPartyClaims ¶
func (x *ServiceAccountDelegationInfo_ThirdPartyPrincipal) GetThirdPartyClaims() *structpb.Struct
func (*ServiceAccountDelegationInfo_ThirdPartyPrincipal) ProtoMessage ¶
func (*ServiceAccountDelegationInfo_ThirdPartyPrincipal) ProtoMessage()
func (*ServiceAccountDelegationInfo_ThirdPartyPrincipal) ProtoReflect ¶
func (x *ServiceAccountDelegationInfo_ThirdPartyPrincipal) ProtoReflect() protoreflect.Message
func (*ServiceAccountDelegationInfo_ThirdPartyPrincipal) Reset ¶
func (x *ServiceAccountDelegationInfo_ThirdPartyPrincipal) Reset()
func (*ServiceAccountDelegationInfo_ThirdPartyPrincipal) String ¶
func (x *ServiceAccountDelegationInfo_ThirdPartyPrincipal) String() string
type ServiceAccountDelegationInfo_ThirdPartyPrincipal_ ¶
type ServiceAccountDelegationInfo_ThirdPartyPrincipal_ struct { // Third party identity as the real authority. ThirdPartyPrincipal *ServiceAccountDelegationInfo_ThirdPartyPrincipal `protobuf:"bytes,2,opt,name=third_party_principal,json=thirdPartyPrincipal,proto3,oneof"` }