google-api-ruby-client/generated/google/apis/tracing_v1/representations.rb

280 lines
9.7 KiB
Ruby
Raw Normal View History

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 TracingV1
2017-04-03 20:18:48 +00:00
class StackTrace
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-04-03 20:18:48 +00:00
class TimeEvent
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-04-03 20:18:48 +00:00
class NetworkEvent
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-04-03 20:18:48 +00:00
class SpanUpdates
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-04-03 20:18:48 +00:00
class ListSpansResponse
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-04-03 20:18:48 +00:00
class StackFrame
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-04-03 20:18:48 +00:00
class Link
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-04-03 20:18:48 +00:00
class Annotation
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-04-03 20:18:48 +00:00
class Trace
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-04-03 20:18:48 +00:00
class Module
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-04-03 20:18:48 +00:00
class Status
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-04-03 20:18:48 +00:00
class ListTracesResponse
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-04-03 20:18:48 +00:00
class Span
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-04-03 20:18:48 +00:00
class Empty
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-04-03 20:18:48 +00:00
class AttributeValue
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-04-03 20:18:48 +00:00
class BatchUpdateSpansRequest
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-04-03 20:18:48 +00:00
class StackTrace
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
collection :stack_frame, as: 'stackFrame', class: Google::Apis::TracingV1::StackFrame, decorator: Google::Apis::TracingV1::StackFrame::Representation
property :stack_trace_hash_id, :numeric_string => true, as: 'stackTraceHashId'
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class TimeEvent
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :network_event, as: 'networkEvent', class: Google::Apis::TracingV1::NetworkEvent, decorator: Google::Apis::TracingV1::NetworkEvent::Representation
property :annotation, as: 'annotation', class: Google::Apis::TracingV1::Annotation, decorator: Google::Apis::TracingV1::Annotation::Representation
property :local_time, as: 'localTime'
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class NetworkEvent
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :message_id, :numeric_string => true, as: 'messageId'
property :message_size, :numeric_string => true, as: 'messageSize'
property :kernel_time, as: 'kernelTime'
property :type, as: 'type'
2017-03-31 19:53:27 +00:00
end
end
2017-04-03 20:18:48 +00:00
class SpanUpdates
2017-03-31 19:53:27 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
collection :spans, as: 'spans', class: Google::Apis::TracingV1::Span, decorator: Google::Apis::TracingV1::Span::Representation
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class ListSpansResponse
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
2017-04-03 20:18:48 +00:00
collection :spans, as: 'spans', class: Google::Apis::TracingV1::Span, decorator: Google::Apis::TracingV1::Span::Representation
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class StackFrame
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :column_number, :numeric_string => true, as: 'columnNumber'
property :file_name, as: 'fileName'
property :source_version, as: 'sourceVersion'
property :original_function_name, as: 'originalFunctionName'
property :function_name, as: 'functionName'
property :line_number, :numeric_string => true, as: 'lineNumber'
property :load_module, as: 'loadModule', class: Google::Apis::TracingV1::Module, decorator: Google::Apis::TracingV1::Module::Representation
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class Link
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :type, as: 'type'
property :trace_id, as: 'traceId'
property :span_id, :numeric_string => true, as: 'spanId'
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class Annotation
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :description, as: 'description'
hash :attributes, as: 'attributes', class: Google::Apis::TracingV1::AttributeValue, decorator: Google::Apis::TracingV1::AttributeValue::Representation
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class Trace
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :name, as: 'name'
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class Module
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :module, as: 'module'
property :build_id, as: 'buildId'
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class Status
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :message, as: 'message'
collection :details, as: 'details'
property :code, as: 'code'
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class ListTracesResponse
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
collection :traces, as: 'traces', class: Google::Apis::TracingV1::Trace, decorator: Google::Apis::TracingV1::Trace::Representation
2017-03-30 22:30:51 +00:00
2017-03-31 19:53:27 +00:00
property :next_page_token, as: 'nextPageToken'
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class Span
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
hash :attributes, as: 'attributes', class: Google::Apis::TracingV1::AttributeValue, decorator: Google::Apis::TracingV1::AttributeValue::Representation
property :id, :numeric_string => true, as: 'id'
property :local_start_time, as: 'localStartTime'
property :has_remote_parent, as: 'hasRemoteParent'
property :local_end_time, as: 'localEndTime'
property :parent_id, :numeric_string => true, as: 'parentId'
collection :time_events, as: 'timeEvents', class: Google::Apis::TracingV1::TimeEvent, decorator: Google::Apis::TracingV1::TimeEvent::Representation
property :status, as: 'status', class: Google::Apis::TracingV1::Status, decorator: Google::Apis::TracingV1::Status::Representation
property :name, as: 'name'
property :stack_trace, as: 'stackTrace', class: Google::Apis::TracingV1::StackTrace, decorator: Google::Apis::TracingV1::StackTrace::Representation
collection :links, as: 'links', class: Google::Apis::TracingV1::Link, decorator: Google::Apis::TracingV1::Link::Representation
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class Empty
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
2017-04-03 20:18:48 +00:00
class AttributeValue
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :int_value, :numeric_string => true, as: 'intValue'
property :string_value, as: 'stringValue'
property :bool_value, as: 'boolValue'
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class BatchUpdateSpansRequest
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
hash :span_updates, as: 'spanUpdates', class: Google::Apis::TracingV1::SpanUpdates, decorator: Google::Apis::TracingV1::SpanUpdates::Representation
2017-03-30 22:30:51 +00:00
end
end
end
end
end