generated/google/apis/spanner_v1/representations.rb in google-api-client-0.12.0 vs generated/google/apis/spanner_v1/representations.rb in google-api-client-0.13.0

- old
+ new

@@ -20,64 +20,10 @@ module Google module Apis module SpannerV1 - class ResultSet - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Status - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Binding - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class UpdateDatabaseDdlRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class PartialResultSet - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListOperationsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class UpdateInstanceMetadata - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ResultSetMetadata - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class TransactionSelector - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class KeySet class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end @@ -98,11 +44,11 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Instance + class ListDatabasesResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end @@ -110,11 +56,11 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ListDatabasesResponse + class Instance class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end @@ -218,11 +164,11 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class CommitRequest + class ListInstanceConfigsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end @@ -230,23 +176,23 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ListInstanceConfigsResponse + class CommitRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class TestIamPermissionsResponse + class GetIamPolicyRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GetIamPolicyRequest + class TestIamPermissionsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end @@ -368,17 +314,17 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ReadWrite + class DataAccessOptions class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class DataAccessOptions + class ReadWrite class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end @@ -386,131 +332,91 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ResultSet - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :rows, as: 'rows', :class => Array do - include Representable::JSON::Collection - items + class Status + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end - property :metadata, as: 'metadata', class: Google::Apis::SpannerV1::ResultSetMetadata, decorator: Google::Apis::SpannerV1::ResultSetMetadata::Representation + class ResultSet + class Representation < Google::Apis::Core::JsonRepresentation; end - property :stats, as: 'stats', class: Google::Apis::SpannerV1::ResultSetStats, decorator: Google::Apis::SpannerV1::ResultSetStats::Representation - - end + include Google::Apis::Core::JsonObjectSupport end - class Status - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :details, as: 'details' - property :code, as: 'code' - property :message, as: 'message' - end + class UpdateDatabaseDdlRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport end class Binding - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :members, as: 'members' - property :role, as: 'role' - end - end + class Representation < Google::Apis::Core::JsonRepresentation; end - class UpdateDatabaseDdlRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :statements, as: 'statements' - property :operation_id, as: 'operationId' - end + include Google::Apis::Core::JsonObjectSupport end class PartialResultSet - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :chunked_value, as: 'chunkedValue' - property :metadata, as: 'metadata', class: Google::Apis::SpannerV1::ResultSetMetadata, decorator: Google::Apis::SpannerV1::ResultSetMetadata::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - 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 - - end + include Google::Apis::Core::JsonObjectSupport end - class ListOperationsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' - collection :operations, as: 'operations', class: Google::Apis::SpannerV1::Operation, decorator: Google::Apis::SpannerV1::Operation::Representation + class UpdateInstanceMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end - end + include Google::Apis::Core::JsonObjectSupport end - class UpdateInstanceMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - 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 + class ListOperationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end - property :start_time, as: 'startTime' - end + include Google::Apis::Core::JsonObjectSupport end class ResultSetMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :transaction, as: 'transaction', class: Google::Apis::SpannerV1::Transaction, decorator: Google::Apis::SpannerV1::Transaction::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :row_type, as: 'rowType', class: Google::Apis::SpannerV1::StructType, decorator: Google::Apis::SpannerV1::StructType::Representation - - end + include Google::Apis::Core::JsonObjectSupport end class TransactionSelector - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :id, :base64 => true, as: 'id' - property :single_use, as: 'singleUse', class: Google::Apis::SpannerV1::TransactionOptions, decorator: Google::Apis::SpannerV1::TransactionOptions::Representation + class Representation < Google::Apis::Core::JsonRepresentation; end - property :begin, as: 'begin', class: Google::Apis::SpannerV1::TransactionOptions, decorator: Google::Apis::SpannerV1::TransactionOptions::Representation - - end + include Google::Apis::Core::JsonObjectSupport end class KeySet # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :ranges, as: 'ranges', class: Google::Apis::SpannerV1::KeyRange, decorator: Google::Apis::SpannerV1::KeyRange::Representation + collection :keys, as: 'keys', :class => Array do include Representable::JSON::Collection items end property :all, as: 'all' - collection :ranges, as: 'ranges', class: Google::Apis::SpannerV1::KeyRange, decorator: Google::Apis::SpannerV1::KeyRange::Representation - end end class Mutation # @private class Representation < Google::Apis::Core::JsonRepresentation - 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 + 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 + end end class GetDatabaseDdlResponse # @private @@ -525,19 +431,16 @@ property :state, as: 'state' property :name, as: 'name' end end - class Instance + class ListDatabasesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :node_count, as: 'nodeCount' - hash :labels, as: 'labels' - property :config, as: 'config' - property :state, as: 'state' - property :name, as: 'name' - property :display_name, as: 'displayName' + property :next_page_token, as: 'nextPageToken' + collection :databases, as: 'databases', class: Google::Apis::SpannerV1::Database, decorator: Google::Apis::SpannerV1::Database::Representation + end end class SetIamPolicyRequest # @private @@ -546,16 +449,19 @@ property :update_mask, as: 'updateMask' end end - class ListDatabasesResponse + class Instance # @private class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' - collection :databases, as: 'databases', class: Google::Apis::SpannerV1::Database, decorator: Google::Apis::SpannerV1::Database::Representation - + 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' end end class RollbackRequest # @private @@ -565,12 +471,12 @@ end class Transaction # @private class Representation < Google::Apis::Core::JsonRepresentation - property :id, :base64 => true, as: 'id' property :read_timestamp, as: 'readTimestamp' + property :id, :base64 => true, as: 'id' end end class UpdateDatabaseDdlMetadata # @private @@ -615,13 +521,13 @@ end class ResultSetStats # @private class Representation < Google::Apis::Core::JsonRepresentation + hash :query_stats, as: 'queryStats' property :query_plan, as: 'queryPlan', class: Google::Apis::SpannerV1::QueryPlan, decorator: Google::Apis::SpannerV1::QueryPlan::Representation - hash :query_stats, as: 'queryStats' end end class TestIamPermissionsRequest # @private @@ -649,19 +555,19 @@ end class PlanNode # @private class Representation < Google::Apis::Core::JsonRepresentation + property :short_representation, as: 'shortRepresentation', class: Google::Apis::SpannerV1::ShortRepresentation, decorator: Google::Apis::SpannerV1::ShortRepresentation::Representation + property :index, as: 'index' - property :display_name, as: 'displayName' property :kind, as: 'kind' + property :display_name, as: 'displayName' collection :child_links, as: 'childLinks', class: Google::Apis::SpannerV1::ChildLink, decorator: Google::Apis::SpannerV1::ChildLink::Representation 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 - end end class CreateInstanceMetadata # @private @@ -700,24 +606,22 @@ end class Delete # @private class Representation < Google::Apis::Core::JsonRepresentation + property :table, as: 'table' property :key_set, as: 'keySet', class: Google::Apis::SpannerV1::KeySet, decorator: Google::Apis::SpannerV1::KeySet::Representation - property :table, as: 'table' end end - class CommitRequest + class ListInstanceConfigsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :single_use_transaction, as: 'singleUseTransaction', class: Google::Apis::SpannerV1::TransactionOptions, decorator: Google::Apis::SpannerV1::TransactionOptions::Representation + property :next_page_token, as: 'nextPageToken' + collection :instance_configs, as: 'instanceConfigs', class: Google::Apis::SpannerV1::InstanceConfig, decorator: Google::Apis::SpannerV1::InstanceConfig::Representation - collection :mutations, as: 'mutations', class: Google::Apis::SpannerV1::Mutation, decorator: Google::Apis::SpannerV1::Mutation::Representation - - property :transaction_id, :base64 => true, as: 'transactionId' end end class BeginTransactionRequest # @private @@ -725,44 +629,46 @@ property :options, as: 'options', class: Google::Apis::SpannerV1::TransactionOptions, decorator: Google::Apis::SpannerV1::TransactionOptions::Representation end end - class ListInstanceConfigsResponse + class CommitRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' - collection :instance_configs, as: 'instanceConfigs', class: Google::Apis::SpannerV1::InstanceConfig, decorator: Google::Apis::SpannerV1::InstanceConfig::Representation + property :single_use_transaction, as: 'singleUseTransaction', class: Google::Apis::SpannerV1::TransactionOptions, decorator: Google::Apis::SpannerV1::TransactionOptions::Representation + collection :mutations, as: 'mutations', class: Google::Apis::SpannerV1::Mutation, decorator: Google::Apis::SpannerV1::Mutation::Representation + + property :transaction_id, :base64 => true, as: 'transactionId' end end - class TestIamPermissionsResponse + class GetIamPolicyRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :permissions, as: 'permissions' end end - class GetIamPolicyRequest + class TestIamPermissionsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' end end class Rule # @private class Representation < Google::Apis::Core::JsonRepresentation - 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 collection :log_config, as: 'logConfig', class: Google::Apis::SpannerV1::LogConfig, decorator: Google::Apis::SpannerV1::LogConfig::Representation collection :in, as: 'in' + collection :permissions, as: 'permissions' + property :action, as: 'action' end end class CreateDatabaseMetadata # @private @@ -801,13 +707,13 @@ end class ListInstancesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' collection :instances, as: 'instances', class: Google::Apis::SpannerV1::Instance, decorator: Google::Apis::SpannerV1::Instance::Representation + property :next_page_token, as: 'nextPageToken' end end class ShortRepresentation # @private @@ -818,12 +724,12 @@ end class InstanceConfig # @private class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' property :display_name, as: 'displayName' + property :name, as: 'name' end end class UpdateInstanceRequest # @private @@ -851,21 +757,21 @@ end class CreateDatabaseRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :extra_statements, as: 'extraStatements' property :create_statement, as: 'createStatement' + collection :extra_statements, as: 'extraStatements' end end class CreateInstanceRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :instance_id, as: 'instanceId' property :instance, as: 'instance', class: Google::Apis::SpannerV1::Instance, decorator: Google::Apis::SpannerV1::Instance::Representation + property :instance_id, as: 'instanceId' end end class Condition # @private @@ -888,30 +794,30 @@ end class ReadOnly # @private class Representation < Google::Apis::Core::JsonRepresentation + property :strong, as: 'strong' + property :min_read_timestamp, as: 'minReadTimestamp' 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' end end class ExecuteSqlRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :sql, as: 'sql' + hash :params, as: 'params' + 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 - property :sql, as: 'sql' - hash :params, as: 'params' - property :query_mode, as: 'queryMode' end end class Policy # @private @@ -954,17 +860,17 @@ end end end - class ReadWrite + class DataAccessOptions # @private class Representation < Google::Apis::Core::JsonRepresentation end end - class DataAccessOptions + class ReadWrite # @private class Representation < Google::Apis::Core::JsonRepresentation end end @@ -975,9 +881,103 @@ hash :response, as: 'response' property :name, as: 'name' property :error, as: 'error', class: Google::Apis::SpannerV1::Status, decorator: Google::Apis::SpannerV1::Status::Representation hash :metadata, as: 'metadata' + end + end + + class Status + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :details, as: 'details' + property :code, as: 'code' + property :message, as: 'message' + end + end + + class ResultSet + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :metadata, as: 'metadata', class: Google::Apis::SpannerV1::ResultSetMetadata, decorator: Google::Apis::SpannerV1::ResultSetMetadata::Representation + + property :stats, as: 'stats', class: Google::Apis::SpannerV1::ResultSetStats, decorator: Google::Apis::SpannerV1::ResultSetStats::Representation + + collection :rows, as: 'rows', :class => Array do + include Representable::JSON::Collection + items + end + + end + end + + class UpdateDatabaseDdlRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :statements, as: 'statements' + property :operation_id, as: 'operationId' + end + end + + class Binding + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :members, as: 'members' + property :role, as: 'role' + end + end + + class PartialResultSet + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :stats, as: 'stats', class: Google::Apis::SpannerV1::ResultSetStats, decorator: Google::Apis::SpannerV1::ResultSetStats::Representation + + 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' + end + end + + class UpdateInstanceMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + 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' + end + end + + class ListOperationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :operations, as: 'operations', class: Google::Apis::SpannerV1::Operation, decorator: Google::Apis::SpannerV1::Operation::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class ResultSetMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + 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 + + end + end + + class TransactionSelector + # @private + class Representation < Google::Apis::Core::JsonRepresentation + 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 + + property :id, :base64 => true, as: 'id' end end end end end