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

303 lines
10 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 FirebaserulesV1
class Result
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SourcePosition
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestCase
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Ruleset
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestRulesetRequest
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Issue
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListReleasesResponse
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class File
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FunctionCall
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Release
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestRulesetResponse
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestResult
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListRulesetsResponse
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Arg
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestSuite
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FunctionMock
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Source
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Result
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :value, as: 'value'
property :undefined, as: 'undefined', class: Google::Apis::FirebaserulesV1::Empty, decorator: Google::Apis::FirebaserulesV1::Empty::Representation
end
2017-03-30 22:30:51 +00:00
end
class SourcePosition
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :line, as: 'line'
property :column, as: 'column'
property :file_name, as: 'fileName'
2017-03-30 22:30:51 +00:00
end
end
class TestCase
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :resource, as: 'resource'
collection :function_mocks, as: 'functionMocks', class: Google::Apis::FirebaserulesV1::FunctionMock, decorator: Google::Apis::FirebaserulesV1::FunctionMock::Representation
property :expectation, as: 'expectation'
property :request, as: 'request'
2017-03-30 22:30:51 +00:00
end
end
class Ruleset
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :source, as: 'source', class: Google::Apis::FirebaserulesV1::Source, decorator: Google::Apis::FirebaserulesV1::Source::Representation
2017-03-30 22:30:51 +00:00
property :create_time, as: 'createTime'
property :name, as: 'name'
2017-03-30 22:30:51 +00:00
end
end
class TestRulesetRequest
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :source, as: 'source', class: Google::Apis::FirebaserulesV1::Source, decorator: Google::Apis::FirebaserulesV1::Source::Representation
property :test_suite, as: 'testSuite', class: Google::Apis::FirebaserulesV1::TestSuite, decorator: Google::Apis::FirebaserulesV1::TestSuite::Representation
2017-04-03 20:18:48 +00:00
2017-03-30 22:30:51 +00:00
end
end
class Issue
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :source_position, as: 'sourcePosition', class: Google::Apis::FirebaserulesV1::SourcePosition, decorator: Google::Apis::FirebaserulesV1::SourcePosition::Representation
2017-03-30 22:30:51 +00:00
property :severity, as: 'severity'
2017-05-26 16:44:32 +00:00
end
end
class ListReleasesResponse
2017-05-26 16:44:32 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :releases, as: 'releases', class: Google::Apis::FirebaserulesV1::Release, decorator: Google::Apis::FirebaserulesV1::Release::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class File
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :content, as: 'content'
property :fingerprint, :base64 => true, as: 'fingerprint'
2017-03-30 22:30:51 +00:00
end
end
class FunctionCall
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :args, as: 'args'
property :function, as: 'function'
2017-03-30 22:30:51 +00:00
end
end
class Release
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :update_time, as: 'updateTime'
property :name, as: 'name'
property :ruleset_name, as: 'rulesetName'
2017-03-30 22:30:51 +00:00
end
end
class TestRulesetResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :test_results, as: 'testResults', class: Google::Apis::FirebaserulesV1::TestResult, decorator: Google::Apis::FirebaserulesV1::TestResult::Representation
collection :issues, as: 'issues', class: Google::Apis::FirebaserulesV1::Issue, decorator: Google::Apis::FirebaserulesV1::Issue::Representation
end
end
class TestResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :function_calls, as: 'functionCalls', class: Google::Apis::FirebaserulesV1::FunctionCall, decorator: Google::Apis::FirebaserulesV1::FunctionCall::Representation
property :state, as: 'state'
collection :debug_messages, as: 'debugMessages'
property :error_position, as: 'errorPosition', class: Google::Apis::FirebaserulesV1::SourcePosition, decorator: Google::Apis::FirebaserulesV1::SourcePosition::Representation
end
end
class ListRulesetsResponse
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :rulesets, as: 'rulesets', class: Google::Apis::FirebaserulesV1::Ruleset, decorator: Google::Apis::FirebaserulesV1::Ruleset::Representation
property :next_page_token, as: 'nextPageToken'
2017-03-30 22:30:51 +00:00
end
end
class Arg
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :exact_value, as: 'exactValue'
property :any_value, as: 'anyValue', class: Google::Apis::FirebaserulesV1::Empty, decorator: Google::Apis::FirebaserulesV1::Empty::Representation
2017-04-03 20:18:48 +00:00
2017-03-30 22:30:51 +00:00
end
end
class TestSuite
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :test_cases, as: 'testCases', class: Google::Apis::FirebaserulesV1::TestCase, decorator: Google::Apis::FirebaserulesV1::TestCase::Representation
2017-03-30 22:30:51 +00:00
end
end
class Empty
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class FunctionMock
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :function, as: 'function'
property :result, as: 'result', class: Google::Apis::FirebaserulesV1::Result, decorator: Google::Apis::FirebaserulesV1::Result::Representation
collection :args, as: 'args', class: Google::Apis::FirebaserulesV1::Arg, decorator: Google::Apis::FirebaserulesV1::Arg::Representation
end
end
2017-05-26 16:44:32 +00:00
class Source
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :files, as: 'files', class: Google::Apis::FirebaserulesV1::File, decorator: Google::Apis::FirebaserulesV1::File::Representation
2017-03-30 22:30:51 +00:00
end
end
end
end
end