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

223 lines
7.5 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
2017-03-31 19:53:27 +00:00
class FunctionCall
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-03-31 19:53:27 +00:00
class File
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-03-31 19:53:27 +00:00
class ListReleasesResponse
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-03-31 19:53:27 +00:00
class Release
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-03-31 19:53:27 +00:00
class TestRulesetResponse
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-03-31 19:53:27 +00:00
class TestResult
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-03-31 19:53:27 +00:00
class ListRulesetsResponse
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-03-31 19:53:27 +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-03-31 19:53:27 +00:00
class Source
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-03-31 19:53:27 +00:00
class SourcePosition
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-03-31 19:53:27 +00:00
class Issue
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-03-31 19:53:27 +00:00
class TestRulesetRequest
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-03-31 19:53:27 +00:00
class Ruleset
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-03-31 19:53:27 +00:00
class FunctionCall
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-03-31 19:53:27 +00:00
property :function, as: 'function'
collection :args, as: 'args'
2017-03-30 22:30:51 +00:00
end
end
2017-03-31 19:53:27 +00:00
class File
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-03-31 19:53:27 +00:00
property :fingerprint, :base64 => true, as: 'fingerprint'
property :name, as: 'name'
property :content, as: 'content'
2017-03-30 22:30:51 +00:00
end
end
2017-03-31 19:53:27 +00:00
class ListReleasesResponse
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-03-31 19:53:27 +00:00
collection :releases, as: 'releases', class: Google::Apis::FirebaserulesV1::Release, decorator: Google::Apis::FirebaserulesV1::Release::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-03-31 19:53:27 +00:00
class Release
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-03-31 19:53:27 +00:00
property :update_time, as: 'updateTime'
property :name, as: 'name'
property :ruleset_name, as: 'rulesetName'
property :create_time, as: 'createTime'
2017-03-30 22:30:51 +00:00
end
end
2017-03-31 19:53:27 +00:00
class TestRulesetResponse
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-03-31 19:53:27 +00:00
collection :issues, as: 'issues', class: Google::Apis::FirebaserulesV1::Issue, decorator: Google::Apis::FirebaserulesV1::Issue::Representation
collection :test_results, as: 'testResults', class: Google::Apis::FirebaserulesV1::TestResult, decorator: Google::Apis::FirebaserulesV1::TestResult::Representation
2017-03-30 22:30:51 +00:00
end
end
2017-03-31 19:53:27 +00:00
class TestResult
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-03-31 19:53:27 +00:00
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
2017-03-30 22:30:51 +00:00
end
end
2017-03-31 19:53:27 +00:00
class ListRulesetsResponse
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-03-31 19:53:27 +00:00
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
2017-03-31 19:53:27 +00:00
class Empty
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
2017-03-31 19:53:27 +00:00
class Source
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-03-31 19:53:27 +00:00
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
2017-03-31 19:53:27 +00:00
class SourcePosition
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-03-31 19:53:27 +00:00
property :column, as: 'column'
property :file_name, as: 'fileName'
property :line, as: 'line'
2017-03-30 22:30:51 +00:00
end
end
2017-03-31 19:53:27 +00:00
class Issue
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-03-31 19:53:27 +00:00
property :source_position, as: 'sourcePosition', class: Google::Apis::FirebaserulesV1::SourcePosition, decorator: Google::Apis::FirebaserulesV1::SourcePosition::Representation
2017-03-30 22:30:51 +00:00
2017-03-31 19:53:27 +00:00
property :severity, as: 'severity'
property :description, as: 'description'
2017-03-30 22:30:51 +00:00
end
end
2017-03-31 19:53:27 +00:00
class TestRulesetRequest
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-03-31 19:53:27 +00:00
property :source, as: 'source', class: Google::Apis::FirebaserulesV1::Source, decorator: Google::Apis::FirebaserulesV1::Source::Representation
2017-03-30 22:30:51 +00:00
end
end
2017-03-31 19:53:27 +00:00
class Ruleset
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-03-31 19:53:27 +00:00
property :name, as: 'name'
property :source, as: 'source', class: Google::Apis::FirebaserulesV1::Source, decorator: Google::Apis::FirebaserulesV1::Source::Representation
property :create_time, as: 'createTime'
2017-03-30 22:30:51 +00:00
end
end
end
end
end