# 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 MonitoringV1 class DroppedLabels class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class Field class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class Option class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class SourceContext class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class SpanContext class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class Type class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class DroppedLabels # @private class Representation < Google::Apis::Core::JsonRepresentation hash :label, as: 'label' end end class Field # @private class Representation < Google::Apis::Core::JsonRepresentation property :cardinality, as: 'cardinality' property :default_value, as: 'defaultValue' property :json_name, as: 'jsonName' property :kind, as: 'kind' property :name, as: 'name' property :number, as: 'number' property :oneof_index, as: 'oneofIndex' collection :options, as: 'options', class: Google::Apis::MonitoringV1::Option, decorator: Google::Apis::MonitoringV1::Option::Representation property :packed, as: 'packed' property :type_url, as: 'typeUrl' end end class Option # @private class Representation < Google::Apis::Core::JsonRepresentation property :name, as: 'name' hash :value, as: 'value' end end class SourceContext # @private class Representation < Google::Apis::Core::JsonRepresentation property :file_name, as: 'fileName' end end class SpanContext # @private class Representation < Google::Apis::Core::JsonRepresentation property :span_name, as: 'spanName' end end class Type # @private class Representation < Google::Apis::Core::JsonRepresentation collection :fields, as: 'fields', class: Google::Apis::MonitoringV1::Field, decorator: Google::Apis::MonitoringV1::Field::Representation property :name, as: 'name' collection :oneofs, as: 'oneofs' collection :options, as: 'options', class: Google::Apis::MonitoringV1::Option, decorator: Google::Apis::MonitoringV1::Option::Representation property :source_context, as: 'sourceContext', class: Google::Apis::MonitoringV1::SourceContext, decorator: Google::Apis::MonitoringV1::SourceContext::Representation property :syntax, as: 'syntax' end end end end end