class Google::Apis::ServicecontrolV1::AuditLog
Common audit log format for Google
Cloud Platform API operations.
Attributes
Authentication information for the operation. Corresponds to the JSON property `authenticationInfo` @return [Google::Apis::ServicecontrolV1::AuthenticationInfo]
Other service-specific data about the request, response, and other information associated with the current audited event. Corresponds to the JSON property `metadata` @return [Hash<String,Object>]
The name of the service method or operation. For API calls, this should be the name of the API method. For example, “google.cloud.bigquery.v2.TableService. InsertTable” “google.logging.v2.ConfigServiceV2.CreateSink” Corresponds to the JSON property `methodName` @return [String]
The number of items returned from a List or Query API method, if applicable. Corresponds to the JSON property `numResponseItems` @return [Fixnum]
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. Corresponds to the JSON property `request` @return [Hash<String,Object>]
Metadata about the request. Corresponds to the JSON property `requestMetadata` @return [Google::Apis::ServicecontrolV1::RequestMetadata]
Location information about a resource. Corresponds to the JSON property `resourceLocation` @return [Google::Apis::ServicecontrolV1::ResourceLocation]
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: “projects/ PROJECT_ID/zones/us-central1-a/instances” “projects/PROJECT_ID/datasets/ DATASET_ID” Corresponds to the JSON property `resourceName` @return [String]
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. Corresponds to the JSON property `resourceOriginalState` @return [Hash<String,Object>]
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. Corresponds to the JSON property `response` @return [Hash<String,Object>]
Deprecated. Use the `metadata` field instead. Other service-specific data about the request, response, and other activities. Corresponds to the JSON property `serviceData` @return [Hash<String,Object>]
The name of the API service performing the operation. For example, `“compute. googleapis.com”`. Corresponds to the JSON property `serviceName` @return [String]
The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [ gRPC](github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https: //cloud.google.com/apis/design/errors). Corresponds to the JSON property `status` @return [Google::Apis::ServicecontrolV1::Status]
Public Class Methods
# File lib/google/apis/servicecontrol_v1/classes.rb, line 288 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/servicecontrol_v1/classes.rb, line 293 def update!(**args) @authentication_info = args[:authentication_info] if args.key?(:authentication_info) @authorization_info = args[:authorization_info] if args.key?(:authorization_info) @metadata = args[:metadata] if args.key?(:metadata) @method_name = args[:method_name] if args.key?(:method_name) @num_response_items = args[:num_response_items] if args.key?(:num_response_items) @request = args[:request] if args.key?(:request) @request_metadata = args[:request_metadata] if args.key?(:request_metadata) @resource_location = args[:resource_location] if args.key?(:resource_location) @resource_name = args[:resource_name] if args.key?(:resource_name) @resource_original_state = args[:resource_original_state] if args.key?(:resource_original_state) @response = args[:response] if args.key?(:response) @service_data = args[:service_data] if args.key?(:service_data) @service_name = args[:service_name] if args.key?(:service_name) @status = args[:status] if args.key?(:status) end