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

985 lines
34 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 SpannerV1
2017-04-03 20:18:48 +00:00
class ResultSetMetadata
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 TransactionSelector
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 KeySet
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 Mutation
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 GetDatabaseDdlResponse
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 Database
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 Instance
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 SetIamPolicyRequest
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 ListDatabasesResponse
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 RollbackRequest
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 Transaction
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 UpdateDatabaseDdlMetadata
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 CounterOptions
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 StructType
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 QueryPlan
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 Field
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 ResultSetStats
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 TestIamPermissionsRequest
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 CommitResponse
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 Type
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 PlanNode
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 CreateInstanceMetadata
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 AuditConfig
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 ChildLink
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 CloudAuditOptions
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 Delete
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 CommitRequest
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 BeginTransactionRequest
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 ListInstanceConfigsResponse
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 GetIamPolicyRequest
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 TestIamPermissionsResponse
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 Rule
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 CreateDatabaseMetadata
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 LogConfig
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 Session
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 KeyRange
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 ListInstancesResponse
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 ShortRepresentation
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 InstanceConfig
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 UpdateInstanceRequest
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 TransactionOptions
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 CreateDatabaseRequest
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 CreateInstanceRequest
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 Condition
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 AuditLogConfig
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 ReadOnly
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 ExecuteSqlRequest
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 Policy
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 ReadRequest
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 Write
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 DataAccessOptions
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 ReadWrite
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 Operation
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-31 19:53:27 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
2017-03-30 22:30:51 +00:00
2017-03-31 19:53:27 +00:00
include Google::Apis::Core::JsonObjectSupport
2017-03-30 22:30:51 +00:00
end
2017-04-03 20:18:48 +00:00
class ResultSet
2017-03-31 19:53:27 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
2017-03-30 22:30:51 +00:00
2017-03-31 19:53:27 +00:00
include Google::Apis::Core::JsonObjectSupport
2017-03-30 22:30:51 +00:00
end
2017-04-03 20:18:48 +00:00
class UpdateDatabaseDdlRequest
2017-03-31 19:53:27 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
2017-03-30 22:30:51 +00:00
2017-03-31 19:53:27 +00:00
include Google::Apis::Core::JsonObjectSupport
2017-03-30 22:30:51 +00:00
end
2017-04-03 20:18:48 +00:00
class Binding
2017-03-31 19:53:27 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
2017-03-30 22:30:51 +00:00
2017-03-31 19:53:27 +00:00
include Google::Apis::Core::JsonObjectSupport
2017-03-30 22:30:51 +00:00
end
2017-04-03 20:18:48 +00:00
class PartialResultSet
2017-03-31 19:53:27 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
2017-03-30 22:30:51 +00:00
end
2017-04-03 20:18:48 +00:00
class UpdateInstanceMetadata
2017-03-31 19:53:27 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
2017-03-30 22:30:51 +00:00
end
2017-04-03 20:18:48 +00:00
class ListOperationsResponse
2017-03-31 19:53:27 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
2017-03-30 22:30:51 +00:00
2017-03-31 19:53:27 +00:00
include Google::Apis::Core::JsonObjectSupport
2017-03-30 22:30:51 +00:00
end
2017-04-03 20:18:48 +00:00
class ResultSetMetadata
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :row_type, as: 'rowType', class: Google::Apis::SpannerV1::StructType, decorator: Google::Apis::SpannerV1::StructType::Representation
property :transaction, as: 'transaction', class: Google::Apis::SpannerV1::Transaction, decorator: Google::Apis::SpannerV1::Transaction::Representation
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class TransactionSelector
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :single_use, as: 'singleUse', class: Google::Apis::SpannerV1::TransactionOptions, decorator: Google::Apis::SpannerV1::TransactionOptions::Representation
property :begin, as: 'begin', class: Google::Apis::SpannerV1::TransactionOptions, decorator: Google::Apis::SpannerV1::TransactionOptions::Representation
2017-03-30 22:30:51 +00:00
2017-04-03 20:18:48 +00:00
property :id, :base64 => true, as: 'id'
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class KeySet
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
collection :ranges, as: 'ranges', class: Google::Apis::SpannerV1::KeyRange, decorator: Google::Apis::SpannerV1::KeyRange::Representation
2017-03-31 19:53:27 +00:00
2017-04-03 20:18:48 +00:00
collection :keys, as: 'keys', :class => Array do
include Representable::JSON::Collection
items
end
2017-03-30 22:30:51 +00:00
2017-04-03 20:18:48 +00:00
property :all, as: 'all'
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class Mutation
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :update, as: 'update', class: Google::Apis::SpannerV1::Write, decorator: Google::Apis::SpannerV1::Write::Representation
property :replace, as: 'replace', class: Google::Apis::SpannerV1::Write, decorator: Google::Apis::SpannerV1::Write::Representation
property :delete, as: 'delete', class: Google::Apis::SpannerV1::Delete, decorator: Google::Apis::SpannerV1::Delete::Representation
property :insert, as: 'insert', class: Google::Apis::SpannerV1::Write, decorator: Google::Apis::SpannerV1::Write::Representation
property :insert_or_update, as: 'insertOrUpdate', class: Google::Apis::SpannerV1::Write, decorator: Google::Apis::SpannerV1::Write::Representation
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class GetDatabaseDdlResponse
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
collection :statements, as: 'statements'
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class Database
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :state, as: 'state'
property :name, as: 'name'
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class Instance
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :config, as: 'config'
property :state, as: 'state'
property :name, as: 'name'
property :display_name, as: 'displayName'
property :node_count, as: 'nodeCount'
hash :labels, as: 'labels'
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class SetIamPolicyRequest
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :policy, as: 'policy', class: Google::Apis::SpannerV1::Policy, decorator: Google::Apis::SpannerV1::Policy::Representation
2017-03-31 19:53:27 +00:00
2017-04-03 20:18:48 +00:00
property :update_mask, as: 'updateMask'
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class ListDatabasesResponse
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :next_page_token, as: 'nextPageToken'
collection :databases, as: 'databases', class: Google::Apis::SpannerV1::Database, decorator: Google::Apis::SpannerV1::Database::Representation
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class RollbackRequest
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :transaction_id, :base64 => true, as: 'transactionId'
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class Transaction
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :read_timestamp, as: 'readTimestamp'
property :id, :base64 => true, as: 'id'
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class UpdateDatabaseDdlMetadata
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
collection :statements, as: 'statements'
collection :commit_timestamps, as: 'commitTimestamps'
property :database, as: 'database'
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class CounterOptions
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :metric, as: 'metric'
property :field, as: 'field'
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class StructType
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
collection :fields, as: 'fields', class: Google::Apis::SpannerV1::Field, decorator: Google::Apis::SpannerV1::Field::Representation
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class QueryPlan
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
collection :plan_nodes, as: 'planNodes', class: Google::Apis::SpannerV1::PlanNode, decorator: Google::Apis::SpannerV1::PlanNode::Representation
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class Field
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'
property :type, as: 'type', class: Google::Apis::SpannerV1::Type, decorator: Google::Apis::SpannerV1::Type::Representation
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class ResultSetStats
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :query_plan, as: 'queryPlan', class: Google::Apis::SpannerV1::QueryPlan, decorator: Google::Apis::SpannerV1::QueryPlan::Representation
hash :query_stats, as: 'queryStats'
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class TestIamPermissionsRequest
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
collection :permissions, as: 'permissions'
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class CommitResponse
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :commit_timestamp, as: 'commitTimestamp'
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class Type
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :struct_type, as: 'structType', class: Google::Apis::SpannerV1::StructType, decorator: Google::Apis::SpannerV1::StructType::Representation
2017-03-30 22:30:51 +00:00
2017-04-03 20:18:48 +00:00
property :array_element_type, as: 'arrayElementType', class: Google::Apis::SpannerV1::Type, decorator: Google::Apis::SpannerV1::Type::Representation
property :code, as: 'code'
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class PlanNode
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
hash :metadata, as: 'metadata'
hash :execution_stats, as: 'executionStats'
property :short_representation, as: 'shortRepresentation', class: Google::Apis::SpannerV1::ShortRepresentation, decorator: Google::Apis::SpannerV1::ShortRepresentation::Representation
2017-03-30 22:30:51 +00:00
2017-04-03 20:18:48 +00:00
property :index, as: 'index'
property :display_name, as: 'displayName'
property :kind, as: 'kind'
collection :child_links, as: 'childLinks', class: Google::Apis::SpannerV1::ChildLink, decorator: Google::Apis::SpannerV1::ChildLink::Representation
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class CreateInstanceMetadata
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :cancel_time, as: 'cancelTime'
property :end_time, as: 'endTime'
property :instance, as: 'instance', class: Google::Apis::SpannerV1::Instance, decorator: Google::Apis::SpannerV1::Instance::Representation
2017-03-31 19:53:27 +00:00
2017-04-03 20:18:48 +00:00
property :start_time, as: 'startTime'
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class AuditConfig
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
collection :exempted_members, as: 'exemptedMembers'
property :service, as: 'service'
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::SpannerV1::AuditLogConfig, decorator: Google::Apis::SpannerV1::AuditLogConfig::Representation
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class ChildLink
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 :child_index, as: 'childIndex'
property :variable, as: 'variable'
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class CloudAuditOptions
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 Delete
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :table, as: 'table'
property :key_set, as: 'keySet', class: Google::Apis::SpannerV1::KeySet, decorator: Google::Apis::SpannerV1::KeySet::Representation
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class CommitRequest
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :single_use_transaction, as: 'singleUseTransaction', class: Google::Apis::SpannerV1::TransactionOptions, decorator: Google::Apis::SpannerV1::TransactionOptions::Representation
2017-03-30 22:30:51 +00:00
2017-04-03 20:18:48 +00:00
collection :mutations, as: 'mutations', class: Google::Apis::SpannerV1::Mutation, decorator: Google::Apis::SpannerV1::Mutation::Representation
property :transaction_id, :base64 => true, as: 'transactionId'
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class BeginTransactionRequest
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :options, as: 'options', class: Google::Apis::SpannerV1::TransactionOptions, decorator: Google::Apis::SpannerV1::TransactionOptions::Representation
2017-03-31 19:53:27 +00:00
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class ListInstanceConfigsResponse
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :next_page_token, as: 'nextPageToken'
collection :instance_configs, as: 'instanceConfigs', class: Google::Apis::SpannerV1::InstanceConfig, decorator: Google::Apis::SpannerV1::InstanceConfig::Representation
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class GetIamPolicyRequest
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 TestIamPermissionsResponse
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
collection :permissions, as: 'permissions'
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class Rule
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
collection :log_config, as: 'logConfig', class: Google::Apis::SpannerV1::LogConfig, decorator: Google::Apis::SpannerV1::LogConfig::Representation
2017-03-30 22:30:51 +00:00
2017-04-03 20:18:48 +00:00
collection :in, as: 'in'
collection :permissions, as: 'permissions'
property :action, as: 'action'
collection :not_in, as: 'notIn'
property :description, as: 'description'
collection :conditions, as: 'conditions', class: Google::Apis::SpannerV1::Condition, decorator: Google::Apis::SpannerV1::Condition::Representation
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class CreateDatabaseMetadata
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :database, as: 'database'
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class LogConfig
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :cloud_audit, as: 'cloudAudit', class: Google::Apis::SpannerV1::CloudAuditOptions, decorator: Google::Apis::SpannerV1::CloudAuditOptions::Representation
property :counter, as: 'counter', class: Google::Apis::SpannerV1::CounterOptions, decorator: Google::Apis::SpannerV1::CounterOptions::Representation
property :data_access, as: 'dataAccess', class: Google::Apis::SpannerV1::DataAccessOptions, decorator: Google::Apis::SpannerV1::DataAccessOptions::Representation
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class Session
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 KeyRange
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
collection :start_closed, as: 'startClosed'
collection :start_open, as: 'startOpen'
collection :end_open, as: 'endOpen'
collection :end_closed, as: 'endClosed'
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class ListInstancesResponse
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :next_page_token, as: 'nextPageToken'
collection :instances, as: 'instances', class: Google::Apis::SpannerV1::Instance, decorator: Google::Apis::SpannerV1::Instance::Representation
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class ShortRepresentation
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 :subqueries, as: 'subqueries'
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class InstanceConfig
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'
property :display_name, as: 'displayName'
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class UpdateInstanceRequest
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :instance, as: 'instance', class: Google::Apis::SpannerV1::Instance, decorator: Google::Apis::SpannerV1::Instance::Representation
property :field_mask, as: 'fieldMask'
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 TransactionOptions
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :read_write, as: 'readWrite', class: Google::Apis::SpannerV1::ReadWrite, decorator: Google::Apis::SpannerV1::ReadWrite::Representation
property :read_only, as: 'readOnly', class: Google::Apis::SpannerV1::ReadOnly, decorator: Google::Apis::SpannerV1::ReadOnly::Representation
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class CreateDatabaseRequest
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :create_statement, as: 'createStatement'
collection :extra_statements, as: 'extraStatements'
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class CreateInstanceRequest
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :instance_id, as: 'instanceId'
property :instance, as: 'instance', class: Google::Apis::SpannerV1::Instance, decorator: Google::Apis::SpannerV1::Instance::Representation
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class Condition
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
collection :values, as: 'values'
property :iam, as: 'iam'
property :op, as: 'op'
property :svc, as: 'svc'
property :sys, as: 'sys'
property :value, as: 'value'
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class AuditLogConfig
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
collection :exempted_members, as: 'exemptedMembers'
property :log_type, as: 'logType'
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class ReadOnly
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :max_staleness, as: 'maxStaleness'
property :read_timestamp, as: 'readTimestamp'
property :return_read_timestamp, as: 'returnReadTimestamp'
property :exact_staleness, as: 'exactStaleness'
property :strong, as: 'strong'
property :min_read_timestamp, as: 'minReadTimestamp'
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class ExecuteSqlRequest
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :query_mode, as: 'queryMode'
property :transaction, as: 'transaction', class: Google::Apis::SpannerV1::TransactionSelector, decorator: Google::Apis::SpannerV1::TransactionSelector::Representation
property :resume_token, :base64 => true, as: 'resumeToken'
hash :param_types, as: 'paramTypes', class: Google::Apis::SpannerV1::Type, decorator: Google::Apis::SpannerV1::Type::Representation
2017-03-30 22:30:51 +00:00
2017-04-03 20:18:48 +00:00
property :sql, as: 'sql'
hash :params, as: 'params'
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class Policy
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :iam_owned, as: 'iamOwned'
collection :rules, as: 'rules', class: Google::Apis::SpannerV1::Rule, decorator: Google::Apis::SpannerV1::Rule::Representation
property :version, as: 'version'
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::SpannerV1::AuditConfig, decorator: Google::Apis::SpannerV1::AuditConfig::Representation
collection :bindings, as: 'bindings', class: Google::Apis::SpannerV1::Binding, decorator: Google::Apis::SpannerV1::Binding::Representation
2017-03-30 22:30:51 +00:00
2017-04-03 20:18:48 +00:00
property :etag, :base64 => true, as: 'etag'
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class ReadRequest
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :index, as: 'index'
property :key_set, as: 'keySet', class: Google::Apis::SpannerV1::KeySet, decorator: Google::Apis::SpannerV1::KeySet::Representation
collection :columns, as: 'columns'
property :transaction, as: 'transaction', class: Google::Apis::SpannerV1::TransactionSelector, decorator: Google::Apis::SpannerV1::TransactionSelector::Representation
2017-03-30 22:30:51 +00:00
2017-04-03 20:18:48 +00:00
property :resume_token, :base64 => true, as: 'resumeToken'
property :table, as: 'table'
property :limit, :numeric_string => true, as: 'limit'
2017-03-30 22:30:51 +00:00
end
end
2017-04-03 20:18:48 +00:00
class Write
2017-03-31 19:53:27 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
collection :columns, as: 'columns'
collection :values, as: 'values', :class => Array do
include Representable::JSON::Collection
items
end
property :table, as: 'table'
2017-03-31 19:53:27 +00:00
end
end
2017-04-03 20:18:48 +00:00
class DataAccessOptions
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 ReadWrite
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 Operation
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
hash :response, as: 'response'
property :name, as: 'name'
property :error, as: 'error', class: Google::Apis::SpannerV1::Status, decorator: Google::Apis::SpannerV1::Status::Representation
2017-03-31 19:53:27 +00:00
2017-04-03 20:18:48 +00:00
hash :metadata, as: 'metadata'
property :done, as: 'done'
end
end
2017-03-31 19:53:27 +00:00
2017-04-03 20:18:48 +00:00
class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :message, as: 'message'
collection :details, as: 'details'
2017-03-31 19:53:27 +00:00
property :code, as: 'code'
end
end
2017-04-03 20:18:48 +00:00
class ResultSet
2017-03-31 19:53:27 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :stats, as: 'stats', class: Google::Apis::SpannerV1::ResultSetStats, decorator: Google::Apis::SpannerV1::ResultSetStats::Representation
2017-03-31 19:53:27 +00:00
2017-04-03 20:18:48 +00:00
collection :rows, as: 'rows', :class => Array do
include Representable::JSON::Collection
items
end
property :metadata, as: 'metadata', class: Google::Apis::SpannerV1::ResultSetMetadata, decorator: Google::Apis::SpannerV1::ResultSetMetadata::Representation
2017-03-31 19:53:27 +00:00
end
end
2017-04-03 20:18:48 +00:00
class UpdateDatabaseDdlRequest
2017-03-31 19:53:27 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
collection :statements, as: 'statements'
property :operation_id, as: 'operationId'
2017-03-31 19:53:27 +00:00
end
end
2017-04-03 20:18:48 +00:00
class Binding
2017-03-31 19:53:27 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
collection :members, as: 'members'
property :role, as: 'role'
2017-03-31 19:53:27 +00:00
end
end
2017-04-03 20:18:48 +00:00
class PartialResultSet
2017-03-31 19:53:27 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :chunked_value, as: 'chunkedValue'
property :metadata, as: 'metadata', class: Google::Apis::SpannerV1::ResultSetMetadata, decorator: Google::Apis::SpannerV1::ResultSetMetadata::Representation
collection :values, as: 'values'
property :resume_token, :base64 => true, as: 'resumeToken'
property :stats, as: 'stats', class: Google::Apis::SpannerV1::ResultSetStats, decorator: Google::Apis::SpannerV1::ResultSetStats::Representation
2017-03-31 19:53:27 +00:00
end
end
2017-04-03 20:18:48 +00:00
class UpdateInstanceMetadata
2017-03-31 19:53:27 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :cancel_time, as: 'cancelTime'
property :end_time, as: 'endTime'
property :instance, as: 'instance', class: Google::Apis::SpannerV1::Instance, decorator: Google::Apis::SpannerV1::Instance::Representation
property :start_time, as: 'startTime'
2017-03-31 19:53:27 +00:00
end
end
2017-04-03 20:18:48 +00:00
class ListOperationsResponse
2017-03-31 19:53:27 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :next_page_token, as: 'nextPageToken'
collection :operations, as: 'operations', class: Google::Apis::SpannerV1::Operation, decorator: Google::Apis::SpannerV1::Operation::Representation
2017-03-31 19:53:27 +00:00
2017-03-30 22:30:51 +00:00
end
end
end
end
end