2017-03-30 22:30:51 +00:00
|
|
|
# Copyright 2015 Google Inc.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
require 'date'
|
|
|
|
require 'google/apis/core/base_service'
|
|
|
|
require 'google/apis/core/json_representation'
|
|
|
|
require 'google/apis/core/hashable'
|
|
|
|
require 'google/apis/errors'
|
|
|
|
|
|
|
|
module Google
|
|
|
|
module Apis
|
|
|
|
module LoggingV2
|
|
|
|
|
2019-09-15 00:37:08 +00:00
|
|
|
class BigQueryOptions
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-30 00:35:07 +00:00
|
|
|
class BucketOptions
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2020-01-17 00:37:24 +00:00
|
|
|
class CmekSettings
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class Empty
|
2017-06-14 17:02:03 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-30 00:35:07 +00:00
|
|
|
class Explicit
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class Exponential
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class HttpRequest
|
2017-06-14 17:02:03 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class LabelDescriptor
|
2017-06-14 17:02:03 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-30 00:35:07 +00:00
|
|
|
class Linear
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class ListExclusionsResponse
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class ListLogEntriesRequest
|
2017-06-14 17:02:03 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class ListLogEntriesResponse
|
2017-06-14 17:02:03 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class ListLogMetricsResponse
|
2017-06-14 17:02:03 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class ListLogsResponse
|
2017-03-30 22:30:51 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class ListMonitoredResourceDescriptorsResponse
|
2017-04-03 20:18:48 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class ListSinksResponse
|
2017-04-03 20:18:48 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class LogEntry
|
2017-03-30 22:30:51 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class LogEntryOperation
|
2017-03-30 22:30:51 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class LogEntrySourceLocation
|
2017-04-03 20:18:48 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-30 00:35:07 +00:00
|
|
|
class LogExclusion
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class LogLine
|
2017-03-30 22:30:51 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class LogMetric
|
2017-03-30 22:30:51 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class LogSink
|
2017-03-30 22:30:51 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-30 00:35:07 +00:00
|
|
|
class MetricDescriptor
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2018-06-29 00:37:36 +00:00
|
|
|
class MetricDescriptorMetadata
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class MonitoredResource
|
2017-03-30 22:30:51 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class MonitoredResourceDescriptor
|
2017-03-30 22:30:51 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2018-04-28 00:36:34 +00:00
|
|
|
class MonitoredResourceMetadata
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class RequestLog
|
2017-03-30 22:30:51 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class SourceLocation
|
2017-03-30 22:30:51 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class SourceReference
|
2017-03-30 22:30:51 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class WriteLogEntriesRequest
|
2017-03-30 22:30:51 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class WriteLogEntriesResponse
|
2017-03-30 22:30:51 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2019-09-15 00:37:08 +00:00
|
|
|
class BigQueryOptions
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :use_partitioned_tables, as: 'usePartitionedTables'
|
2020-02-02 00:37:39 +00:00
|
|
|
property :uses_timestamp_column_partitioning, as: 'usesTimestampColumnPartitioning'
|
2019-09-15 00:37:08 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-30 00:35:07 +00:00
|
|
|
class BucketOptions
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :explicit_buckets, as: 'explicitBuckets', class: Google::Apis::LoggingV2::Explicit, decorator: Google::Apis::LoggingV2::Explicit::Representation
|
|
|
|
|
|
|
|
property :exponential_buckets, as: 'exponentialBuckets', class: Google::Apis::LoggingV2::Exponential, decorator: Google::Apis::LoggingV2::Exponential::Representation
|
|
|
|
|
|
|
|
property :linear_buckets, as: 'linearBuckets', class: Google::Apis::LoggingV2::Linear, decorator: Google::Apis::LoggingV2::Linear::Representation
|
|
|
|
|
|
|
|
end
|
2020-01-17 00:37:24 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class CmekSettings
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :kms_key_name, as: 'kmsKeyName'
|
|
|
|
property :name, as: 'name'
|
|
|
|
property :service_account_id, as: 'serviceAccountId'
|
|
|
|
end
|
2017-08-30 00:35:07 +00:00
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class Empty
|
2017-04-03 20:18:48 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
end
|
2017-03-30 22:30:51 +00:00
|
|
|
end
|
|
|
|
|
2017-08-30 00:35:07 +00:00
|
|
|
class Explicit
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :bounds, as: 'bounds'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class Exponential
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :growth_factor, as: 'growthFactor'
|
|
|
|
property :num_finite_buckets, as: 'numFiniteBuckets'
|
|
|
|
property :scale, as: 'scale'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class HttpRequest
|
2017-03-31 19:53:27 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
property :cache_fill_bytes, :numeric_string => true, as: 'cacheFillBytes'
|
|
|
|
property :cache_hit, as: 'cacheHit'
|
|
|
|
property :cache_lookup, as: 'cacheLookup'
|
|
|
|
property :cache_validated_with_origin_server, as: 'cacheValidatedWithOriginServer'
|
|
|
|
property :latency, as: 'latency'
|
|
|
|
property :protocol, as: 'protocol'
|
|
|
|
property :referer, as: 'referer'
|
|
|
|
property :remote_ip, as: 'remoteIp'
|
|
|
|
property :request_method, as: 'requestMethod'
|
|
|
|
property :request_size, :numeric_string => true, as: 'requestSize'
|
|
|
|
property :request_url, as: 'requestUrl'
|
|
|
|
property :response_size, :numeric_string => true, as: 'responseSize'
|
|
|
|
property :server_ip, as: 'serverIp'
|
|
|
|
property :status, as: 'status'
|
|
|
|
property :user_agent, as: 'userAgent'
|
2017-07-12 20:10:42 +00:00
|
|
|
end
|
|
|
|
end
|
2017-06-02 06:11:31 +00:00
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class LabelDescriptor
|
2017-07-12 20:10:42 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
property :description, as: 'description'
|
|
|
|
property :key, as: 'key'
|
|
|
|
property :value_type, as: 'valueType'
|
2017-03-31 19:53:27 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-30 00:35:07 +00:00
|
|
|
class Linear
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :num_finite_buckets, as: 'numFiniteBuckets'
|
|
|
|
property :offset, as: 'offset'
|
|
|
|
property :width, as: 'width'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class ListExclusionsResponse
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :exclusions, as: 'exclusions', class: Google::Apis::LoggingV2::LogExclusion, decorator: Google::Apis::LoggingV2::LogExclusion::Representation
|
|
|
|
|
|
|
|
property :next_page_token, as: 'nextPageToken'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class ListLogEntriesRequest
|
2017-03-31 19:53:27 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
property :filter, as: 'filter'
|
|
|
|
property :order_by, as: 'orderBy'
|
|
|
|
property :page_size, as: 'pageSize'
|
|
|
|
property :page_token, as: 'pageToken'
|
|
|
|
collection :project_ids, as: 'projectIds'
|
|
|
|
collection :resource_names, as: 'resourceNames'
|
2017-04-03 20:18:48 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class ListLogEntriesResponse
|
2017-04-03 20:18:48 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
collection :entries, as: 'entries', class: Google::Apis::LoggingV2::LogEntry, decorator: Google::Apis::LoggingV2::LogEntry::Representation
|
|
|
|
|
|
|
|
property :next_page_token, as: 'nextPageToken'
|
2017-03-31 19:53:27 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class ListLogMetricsResponse
|
2017-03-31 19:53:27 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
collection :metrics, as: 'metrics', class: Google::Apis::LoggingV2::LogMetric, decorator: Google::Apis::LoggingV2::LogMetric::Representation
|
2017-05-26 16:44:32 +00:00
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
property :next_page_token, as: 'nextPageToken'
|
|
|
|
end
|
|
|
|
end
|
2017-05-26 16:44:32 +00:00
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class ListLogsResponse
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :log_names, as: 'logNames'
|
|
|
|
property :next_page_token, as: 'nextPageToken'
|
2017-03-31 19:53:27 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-05-26 16:44:32 +00:00
|
|
|
class ListMonitoredResourceDescriptorsResponse
|
2017-03-31 19:53:27 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
property :next_page_token, as: 'nextPageToken'
|
2017-05-26 16:44:32 +00:00
|
|
|
collection :resource_descriptors, as: 'resourceDescriptors', class: Google::Apis::LoggingV2::MonitoredResourceDescriptor, decorator: Google::Apis::LoggingV2::MonitoredResourceDescriptor::Representation
|
2017-05-04 19:35:56 +00:00
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class ListSinksResponse
|
2017-03-31 19:53:27 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
property :next_page_token, as: 'nextPageToken'
|
|
|
|
collection :sinks, as: 'sinks', class: Google::Apis::LoggingV2::LogSink, decorator: Google::Apis::LoggingV2::LogSink::Representation
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class LogEntry
|
2017-03-30 22:30:51 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
property :http_request, as: 'httpRequest', class: Google::Apis::LoggingV2::HttpRequest, decorator: Google::Apis::LoggingV2::HttpRequest::Representation
|
|
|
|
|
|
|
|
property :insert_id, as: 'insertId'
|
|
|
|
hash :json_payload, as: 'jsonPayload'
|
|
|
|
hash :labels, as: 'labels'
|
|
|
|
property :log_name, as: 'logName'
|
2018-04-28 00:36:34 +00:00
|
|
|
property :metadata, as: 'metadata', class: Google::Apis::LoggingV2::MonitoredResourceMetadata, decorator: Google::Apis::LoggingV2::MonitoredResourceMetadata::Representation
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
property :operation, as: 'operation', class: Google::Apis::LoggingV2::LogEntryOperation, decorator: Google::Apis::LoggingV2::LogEntryOperation::Representation
|
|
|
|
|
|
|
|
hash :proto_payload, as: 'protoPayload'
|
|
|
|
property :receive_timestamp, as: 'receiveTimestamp'
|
|
|
|
property :resource, as: 'resource', class: Google::Apis::LoggingV2::MonitoredResource, decorator: Google::Apis::LoggingV2::MonitoredResource::Representation
|
|
|
|
|
|
|
|
property :severity, as: 'severity'
|
|
|
|
property :source_location, as: 'sourceLocation', class: Google::Apis::LoggingV2::LogEntrySourceLocation, decorator: Google::Apis::LoggingV2::LogEntrySourceLocation::Representation
|
|
|
|
|
2017-11-01 00:35:09 +00:00
|
|
|
property :span_id, as: 'spanId'
|
2017-08-25 19:54:22 +00:00
|
|
|
property :text_payload, as: 'textPayload'
|
|
|
|
property :timestamp, as: 'timestamp'
|
|
|
|
property :trace, as: 'trace'
|
2018-09-28 00:36:28 +00:00
|
|
|
property :trace_sampled, as: 'traceSampled'
|
2017-03-30 22:30:51 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-05-26 16:44:32 +00:00
|
|
|
class LogEntryOperation
|
2017-03-30 22:30:51 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-05-26 16:44:32 +00:00
|
|
|
property :first, as: 'first'
|
2017-08-25 19:54:22 +00:00
|
|
|
property :id, as: 'id'
|
2017-07-12 20:10:42 +00:00
|
|
|
property :last, as: 'last'
|
2017-08-25 19:54:22 +00:00
|
|
|
property :producer, as: 'producer'
|
2017-06-14 17:02:03 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class LogEntrySourceLocation
|
2017-06-14 17:02:03 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
property :file, as: 'file'
|
|
|
|
property :function, as: 'function'
|
|
|
|
property :line, :numeric_string => true, as: 'line'
|
2017-03-30 22:30:51 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-30 00:35:07 +00:00
|
|
|
class LogExclusion
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2019-01-21 00:36:36 +00:00
|
|
|
property :create_time, as: 'createTime'
|
2017-08-30 00:35:07 +00:00
|
|
|
property :description, as: 'description'
|
|
|
|
property :disabled, as: 'disabled'
|
|
|
|
property :filter, as: 'filter'
|
|
|
|
property :name, as: 'name'
|
2019-01-21 00:36:36 +00:00
|
|
|
property :update_time, as: 'updateTime'
|
2017-08-30 00:35:07 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class LogLine
|
2017-03-31 19:53:27 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
property :log_message, as: 'logMessage'
|
|
|
|
property :severity, as: 'severity'
|
|
|
|
property :source_location, as: 'sourceLocation', class: Google::Apis::LoggingV2::SourceLocation, decorator: Google::Apis::LoggingV2::SourceLocation::Representation
|
|
|
|
|
|
|
|
property :time, as: 'time'
|
2017-03-31 19:53:27 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class LogMetric
|
2017-06-02 06:11:31 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-30 00:35:07 +00:00
|
|
|
property :bucket_options, as: 'bucketOptions', class: Google::Apis::LoggingV2::BucketOptions, decorator: Google::Apis::LoggingV2::BucketOptions::Representation
|
|
|
|
|
2019-01-21 00:36:36 +00:00
|
|
|
property :create_time, as: 'createTime'
|
2017-08-25 19:54:22 +00:00
|
|
|
property :description, as: 'description'
|
2017-07-12 20:10:42 +00:00
|
|
|
property :filter, as: 'filter'
|
2017-08-30 00:35:07 +00:00
|
|
|
hash :label_extractors, as: 'labelExtractors'
|
|
|
|
property :metric_descriptor, as: 'metricDescriptor', class: Google::Apis::LoggingV2::MetricDescriptor, decorator: Google::Apis::LoggingV2::MetricDescriptor::Representation
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
property :name, as: 'name'
|
2019-01-21 00:36:36 +00:00
|
|
|
property :update_time, as: 'updateTime'
|
2017-08-30 00:35:07 +00:00
|
|
|
property :value_extractor, as: 'valueExtractor'
|
2017-08-25 19:54:22 +00:00
|
|
|
property :version, as: 'version'
|
2017-06-02 06:11:31 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class LogSink
|
2017-03-30 22:30:51 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2019-09-15 00:37:08 +00:00
|
|
|
property :bigquery_options, as: 'bigqueryOptions', class: Google::Apis::LoggingV2::BigQueryOptions, decorator: Google::Apis::LoggingV2::BigQueryOptions::Representation
|
|
|
|
|
2019-01-21 00:36:36 +00:00
|
|
|
property :create_time, as: 'createTime'
|
2019-11-24 00:37:35 +00:00
|
|
|
property :description, as: 'description'
|
2017-08-25 19:54:22 +00:00
|
|
|
property :destination, as: 'destination'
|
2019-11-24 00:37:35 +00:00
|
|
|
property :disabled, as: 'disabled'
|
2019-10-14 00:37:43 +00:00
|
|
|
property :end_time, as: 'endTime'
|
2017-08-25 19:54:22 +00:00
|
|
|
property :filter, as: 'filter'
|
|
|
|
property :include_children, as: 'includeChildren'
|
|
|
|
property :name, as: 'name'
|
|
|
|
property :output_version_format, as: 'outputVersionFormat'
|
2019-10-14 00:37:43 +00:00
|
|
|
property :start_time, as: 'startTime'
|
2019-01-21 00:36:36 +00:00
|
|
|
property :update_time, as: 'updateTime'
|
2017-08-25 19:54:22 +00:00
|
|
|
property :writer_identity, as: 'writerIdentity'
|
2017-03-30 22:30:51 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-30 00:35:07 +00:00
|
|
|
class MetricDescriptor
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :description, as: 'description'
|
|
|
|
property :display_name, as: 'displayName'
|
|
|
|
collection :labels, as: 'labels', class: Google::Apis::LoggingV2::LabelDescriptor, decorator: Google::Apis::LoggingV2::LabelDescriptor::Representation
|
|
|
|
|
2019-05-24 00:38:17 +00:00
|
|
|
property :launch_stage, as: 'launchStage'
|
2018-06-29 00:37:36 +00:00
|
|
|
property :metadata, as: 'metadata', class: Google::Apis::LoggingV2::MetricDescriptorMetadata, decorator: Google::Apis::LoggingV2::MetricDescriptorMetadata::Representation
|
|
|
|
|
2017-08-30 00:35:07 +00:00
|
|
|
property :metric_kind, as: 'metricKind'
|
2019-10-07 00:38:40 +00:00
|
|
|
collection :monitored_resource_types, as: 'monitoredResourceTypes'
|
2017-08-30 00:35:07 +00:00
|
|
|
property :name, as: 'name'
|
|
|
|
property :type, as: 'type'
|
|
|
|
property :unit, as: 'unit'
|
|
|
|
property :value_type, as: 'valueType'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2018-06-29 00:37:36 +00:00
|
|
|
class MetricDescriptorMetadata
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :ingest_delay, as: 'ingestDelay'
|
|
|
|
property :launch_stage, as: 'launchStage'
|
|
|
|
property :sample_period, as: 'samplePeriod'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class MonitoredResource
|
2017-06-02 06:11:31 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
hash :labels, as: 'labels'
|
|
|
|
property :type, as: 'type'
|
2017-07-12 20:10:42 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class MonitoredResourceDescriptor
|
2017-07-12 20:10:42 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
property :description, as: 'description'
|
|
|
|
property :display_name, as: 'displayName'
|
|
|
|
collection :labels, as: 'labels', class: Google::Apis::LoggingV2::LabelDescriptor, decorator: Google::Apis::LoggingV2::LabelDescriptor::Representation
|
2017-07-12 20:10:42 +00:00
|
|
|
|
2019-05-10 00:37:26 +00:00
|
|
|
property :launch_stage, as: 'launchStage'
|
2017-08-25 19:54:22 +00:00
|
|
|
property :name, as: 'name'
|
|
|
|
property :type, as: 'type'
|
2017-07-12 20:10:42 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2018-04-28 00:36:34 +00:00
|
|
|
class MonitoredResourceMetadata
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
hash :system_labels, as: 'systemLabels'
|
|
|
|
hash :user_labels, as: 'userLabels'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class RequestLog
|
2017-07-12 20:10:42 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
property :app_engine_release, as: 'appEngineRelease'
|
|
|
|
property :app_id, as: 'appId'
|
|
|
|
property :cost, as: 'cost'
|
|
|
|
property :end_time, as: 'endTime'
|
|
|
|
property :finished, as: 'finished'
|
|
|
|
property :first, as: 'first'
|
|
|
|
property :host, as: 'host'
|
|
|
|
property :http_version, as: 'httpVersion'
|
|
|
|
property :instance_id, as: 'instanceId'
|
|
|
|
property :instance_index, as: 'instanceIndex'
|
|
|
|
property :ip, as: 'ip'
|
|
|
|
property :latency, as: 'latency'
|
|
|
|
collection :line, as: 'line', class: Google::Apis::LoggingV2::LogLine, decorator: Google::Apis::LoggingV2::LogLine::Representation
|
|
|
|
|
|
|
|
property :mega_cycles, :numeric_string => true, as: 'megaCycles'
|
|
|
|
property :method_prop, as: 'method'
|
|
|
|
property :module_id, as: 'moduleId'
|
|
|
|
property :nickname, as: 'nickname'
|
|
|
|
property :pending_time, as: 'pendingTime'
|
|
|
|
property :referrer, as: 'referrer'
|
|
|
|
property :request_id, as: 'requestId'
|
|
|
|
property :resource, as: 'resource'
|
2017-07-12 20:10:42 +00:00
|
|
|
property :response_size, :numeric_string => true, as: 'responseSize'
|
2017-08-25 19:54:22 +00:00
|
|
|
collection :source_reference, as: 'sourceReference', class: Google::Apis::LoggingV2::SourceReference, decorator: Google::Apis::LoggingV2::SourceReference::Representation
|
|
|
|
|
|
|
|
property :start_time, as: 'startTime'
|
2017-07-12 20:10:42 +00:00
|
|
|
property :status, as: 'status'
|
2017-08-25 19:54:22 +00:00
|
|
|
property :task_name, as: 'taskName'
|
|
|
|
property :task_queue_name, as: 'taskQueueName'
|
|
|
|
property :trace_id, as: 'traceId'
|
2018-08-22 21:14:52 +00:00
|
|
|
property :trace_sampled, as: 'traceSampled'
|
2017-08-25 19:54:22 +00:00
|
|
|
property :url_map_entry, as: 'urlMapEntry'
|
2017-07-12 20:10:42 +00:00
|
|
|
property :user_agent, as: 'userAgent'
|
2017-08-25 19:54:22 +00:00
|
|
|
property :version_id, as: 'versionId'
|
|
|
|
property :was_loading_request, as: 'wasLoadingRequest'
|
2017-07-12 20:10:42 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class SourceLocation
|
2017-07-12 20:10:42 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
property :file, as: 'file'
|
|
|
|
property :function_name, as: 'functionName'
|
|
|
|
property :line, :numeric_string => true, as: 'line'
|
2017-07-12 20:10:42 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class SourceReference
|
2017-07-12 20:10:42 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
property :repository, as: 'repository'
|
|
|
|
property :revision_id, as: 'revisionId'
|
2017-07-12 20:10:42 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class WriteLogEntriesRequest
|
2017-07-12 20:10:42 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2018-01-18 00:35:53 +00:00
|
|
|
property :dry_run, as: 'dryRun'
|
2017-07-12 20:10:42 +00:00
|
|
|
collection :entries, as: 'entries', class: Google::Apis::LoggingV2::LogEntry, decorator: Google::Apis::LoggingV2::LogEntry::Representation
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
hash :labels, as: 'labels'
|
|
|
|
property :log_name, as: 'logName'
|
|
|
|
property :partial_success, as: 'partialSuccess'
|
|
|
|
property :resource, as: 'resource', class: Google::Apis::LoggingV2::MonitoredResource, decorator: Google::Apis::LoggingV2::MonitoredResource::Representation
|
|
|
|
|
2017-07-12 20:10:42 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class WriteLogEntriesResponse
|
2017-07-12 20:10:42 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-30 22:30:51 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|