generated/google/apis/spanner_v1/representations.rb in google-api-client-0.10.3 vs generated/google/apis/spanner_v1/representations.rb in google-api-client-0.11.0

- old
+ new

@@ -20,963 +20,963 @@ module Google module Apis module SpannerV1 - class ListInstanceConfigsResponse + class ResultSetMetadata class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class BeginTransactionRequest + class TransactionSelector class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class CommitRequest + class KeySet class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GetIamPolicyRequest + class Mutation class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class TestIamPermissionsResponse + class GetDatabaseDdlResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class CreateDatabaseMetadata + class Database class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Rule + class Instance class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class LogConfig + class SetIamPolicyRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Session + class ListDatabasesResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ListInstancesResponse + class RollbackRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class KeyRange + class Transaction class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ShortRepresentation + class UpdateDatabaseDdlMetadata class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class InstanceConfig + class CounterOptions class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class UpdateInstanceRequest + class StructType class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Empty + class QueryPlan class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class TransactionOptions + class Field class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class CreateDatabaseRequest + class ResultSetStats class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class CreateInstanceRequest + class TestIamPermissionsRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Condition + class CommitResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class AuditLogConfig + class Type class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ReadOnly + class PlanNode class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ExecuteSqlRequest + class CreateInstanceMetadata class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Policy + class AuditConfig class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ReadRequest + class ChildLink class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Write + class CloudAuditOptions class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ReadWrite + class Delete class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class DataAccessOptions + class CommitRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Operation + class BeginTransactionRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ResultSet + class ListInstanceConfigsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Status + class GetIamPolicyRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Binding + class TestIamPermissionsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class UpdateDatabaseDdlRequest + class Rule class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class PartialResultSet + class CreateDatabaseMetadata class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class UpdateInstanceMetadata + class LogConfig class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ListOperationsResponse + class Session class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ResultSetMetadata + class KeyRange class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class TransactionSelector + class ListInstancesResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Mutation + class ShortRepresentation class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class KeySet + class InstanceConfig class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GetDatabaseDdlResponse + class UpdateInstanceRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Database + class Empty class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ListDatabasesResponse + class TransactionOptions class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class SetIamPolicyRequest + class CreateDatabaseRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Instance + class CreateInstanceRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class RollbackRequest + class Condition class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Transaction + class AuditLogConfig class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class UpdateDatabaseDdlMetadata + class ReadOnly class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class CounterOptions + class ExecuteSqlRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class QueryPlan + class Policy class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class StructType + class ReadRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Field + class Write class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class TestIamPermissionsRequest + class DataAccessOptions class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ResultSetStats + class ReadWrite class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class CommitResponse + class Operation class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Type + class Status class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class PlanNode + class ResultSet class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class AuditConfig + class UpdateDatabaseDdlRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class CreateInstanceMetadata + class Binding class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ChildLink + class PartialResultSet class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class CloudAuditOptions + class UpdateInstanceMetadata class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Delete + class ListOperationsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ListInstanceConfigsResponse + class ResultSetMetadata # @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 :row_type, as: 'rowType', class: Google::Apis::SpannerV1::StructType, decorator: Google::Apis::SpannerV1::StructType::Representation - end - end + property :transaction, as: 'transaction', class: Google::Apis::SpannerV1::Transaction, decorator: Google::Apis::SpannerV1::Transaction::Representation - class BeginTransactionRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :options, as: 'options', class: Google::Apis::SpannerV1::TransactionOptions, decorator: Google::Apis::SpannerV1::TransactionOptions::Representation - end end - class CommitRequest + class TransactionSelector # @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 :single_use, as: 'singleUse', 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 :begin, as: 'begin', class: Google::Apis::SpannerV1::TransactionOptions, decorator: Google::Apis::SpannerV1::TransactionOptions::Representation - property :transaction_id, :base64 => true, as: 'transactionId' + property :id, :base64 => true, as: 'id' end end - class GetIamPolicyRequest + class KeySet # @private class Representation < Google::Apis::Core::JsonRepresentation - end + 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 - class TestIamPermissionsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :permissions, as: 'permissions' + property :all, as: 'all' end end - class CreateDatabaseMetadata + class Mutation # @private class Representation < Google::Apis::Core::JsonRepresentation - property :database, as: 'database' + 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 + end end - class Rule + class GetDatabaseDdlResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - 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' - collection :not_in, as: 'notIn' + collection :statements, as: 'statements' end end - class LogConfig + class Database # @private class Representation < Google::Apis::Core::JsonRepresentation - 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 - - property :cloud_audit, as: 'cloudAudit', class: Google::Apis::SpannerV1::CloudAuditOptions, decorator: Google::Apis::SpannerV1::CloudAuditOptions::Representation - + property :state, as: 'state' + property :name, as: 'name' end end - class Session + class Instance # @private class Representation < Google::Apis::Core::JsonRepresentation + 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 ListInstancesResponse + class SetIamPolicyRequest # @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 :policy, as: 'policy', class: Google::Apis::SpannerV1::Policy, decorator: Google::Apis::SpannerV1::Policy::Representation + property :update_mask, as: 'updateMask' end end - class KeyRange + class ListDatabasesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :end_closed, as: 'endClosed' - collection :start_closed, as: 'startClosed' - collection :start_open, as: 'startOpen' - collection :end_open, as: 'endOpen' + property :next_page_token, as: 'nextPageToken' + collection :databases, as: 'databases', class: Google::Apis::SpannerV1::Database, decorator: Google::Apis::SpannerV1::Database::Representation + end end - class ShortRepresentation + class RollbackRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :description, as: 'description' - hash :subqueries, as: 'subqueries' + property :transaction_id, :base64 => true, as: 'transactionId' end end - class InstanceConfig + class Transaction # @private class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' - property :display_name, as: 'displayName' + property :read_timestamp, as: 'readTimestamp' + property :id, :base64 => true, as: 'id' end end - class UpdateInstanceRequest + class UpdateDatabaseDdlMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation - property :instance, as: 'instance', class: Google::Apis::SpannerV1::Instance, decorator: Google::Apis::SpannerV1::Instance::Representation - - property :field_mask, as: 'fieldMask' + collection :statements, as: 'statements' + collection :commit_timestamps, as: 'commitTimestamps' + property :database, as: 'database' end end - class Empty + class CounterOptions # @private class Representation < Google::Apis::Core::JsonRepresentation + property :metric, as: 'metric' + property :field, as: 'field' end end - class TransactionOptions + class StructType # @private class Representation < Google::Apis::Core::JsonRepresentation - property :read_write, as: 'readWrite', class: Google::Apis::SpannerV1::ReadWrite, decorator: Google::Apis::SpannerV1::ReadWrite::Representation + collection :fields, as: 'fields', class: Google::Apis::SpannerV1::Field, decorator: Google::Apis::SpannerV1::Field::Representation - property :read_only, as: 'readOnly', class: Google::Apis::SpannerV1::ReadOnly, decorator: Google::Apis::SpannerV1::ReadOnly::Representation - end end - class CreateDatabaseRequest + class QueryPlan # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :extra_statements, as: 'extraStatements' - property :create_statement, as: 'createStatement' + collection :plan_nodes, as: 'planNodes', class: Google::Apis::SpannerV1::PlanNode, decorator: Google::Apis::SpannerV1::PlanNode::Representation + end end - class CreateInstanceRequest + class Field # @private class Representation < Google::Apis::Core::JsonRepresentation - property :instance, as: 'instance', class: Google::Apis::SpannerV1::Instance, decorator: Google::Apis::SpannerV1::Instance::Representation + property :name, as: 'name' + property :type, as: 'type', class: Google::Apis::SpannerV1::Type, decorator: Google::Apis::SpannerV1::Type::Representation - property :instance_id, as: 'instanceId' end end - class Condition + class ResultSetStats # @private class Representation < Google::Apis::Core::JsonRepresentation - property :svc, as: 'svc' - property :value, as: 'value' - property :sys, as: 'sys' - collection :values, as: 'values' - property :iam, as: 'iam' - property :op, as: 'op' + property :query_plan, as: 'queryPlan', class: Google::Apis::SpannerV1::QueryPlan, decorator: Google::Apis::SpannerV1::QueryPlan::Representation + + hash :query_stats, as: 'queryStats' end end - class AuditLogConfig + class TestIamPermissionsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :exempted_members, as: 'exemptedMembers' - property :log_type, as: 'logType' + collection :permissions, as: 'permissions' end end - class ReadOnly + class CommitResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - 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 :commit_timestamp, as: 'commitTimestamp' end end - class ExecuteSqlRequest + class Type # @private class Representation < Google::Apis::Core::JsonRepresentation - property :query_mode, as: 'queryMode' - property :transaction, as: 'transaction', class: Google::Apis::SpannerV1::TransactionSelector, decorator: Google::Apis::SpannerV1::TransactionSelector::Representation + property :struct_type, as: 'structType', class: Google::Apis::SpannerV1::StructType, decorator: Google::Apis::SpannerV1::StructType::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 :array_element_type, as: 'arrayElementType', class: Google::Apis::SpannerV1::Type, decorator: Google::Apis::SpannerV1::Type::Representation - property :sql, as: 'sql' - hash :params, as: 'params' + property :code, as: 'code' end end - class Policy + class PlanNode # @private class Representation < Google::Apis::Core::JsonRepresentation - property :version, as: 'version' - collection :audit_configs, as: 'auditConfigs', class: Google::Apis::SpannerV1::AuditConfig, decorator: Google::Apis::SpannerV1::AuditConfig::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 - collection :bindings, as: 'bindings', class: Google::Apis::SpannerV1::Binding, decorator: Google::Apis::SpannerV1::Binding::Representation + 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 - property :etag, :base64 => true, as: 'etag' - property :iam_owned, as: 'iamOwned' - collection :rules, as: 'rules', class: Google::Apis::SpannerV1::Rule, decorator: Google::Apis::SpannerV1::Rule::Representation - end end - class ReadRequest + class CreateInstanceMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation - property :transaction, as: 'transaction', class: Google::Apis::SpannerV1::TransactionSelector, decorator: Google::Apis::SpannerV1::TransactionSelector::Representation + 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 :resume_token, :base64 => true, as: 'resumeToken' - property :table, as: 'table' - property :limit, as: 'limit' - 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 :start_time, as: 'startTime' end end - class Write + class AuditConfig # @private class Representation < Google::Apis::Core::JsonRepresentation - property :table, as: 'table' - collection :columns, as: 'columns' - collection :values, as: 'values', :class => Array do - include Representable::JSON::Collection - items - end + 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 end end - class ReadWrite + class ChildLink # @private class Representation < Google::Apis::Core::JsonRepresentation + property :type, as: 'type' + property :child_index, as: 'childIndex' + property :variable, as: 'variable' end end - class DataAccessOptions + class CloudAuditOptions # @private class Representation < Google::Apis::Core::JsonRepresentation end end - class Operation + class Delete # @private class Representation < Google::Apis::Core::JsonRepresentation - hash :response, as: 'response' - property :name, as: 'name' - property :error, as: 'error', class: Google::Apis::SpannerV1::Status, decorator: Google::Apis::SpannerV1::Status::Representation + property :table, as: 'table' + property :key_set, as: 'keySet', class: Google::Apis::SpannerV1::KeySet, decorator: Google::Apis::SpannerV1::KeySet::Representation - hash :metadata, as: 'metadata' - property :done, as: 'done' end end - class ResultSet + class CommitRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :rows, as: 'rows', :class => Array do - include Representable::JSON::Collection - items - end + property :single_use_transaction, as: 'singleUseTransaction', class: Google::Apis::SpannerV1::TransactionOptions, decorator: Google::Apis::SpannerV1::TransactionOptions::Representation - property :metadata, as: 'metadata', class: Google::Apis::SpannerV1::ResultSetMetadata, decorator: Google::Apis::SpannerV1::ResultSetMetadata::Representation + collection :mutations, as: 'mutations', class: Google::Apis::SpannerV1::Mutation, decorator: Google::Apis::SpannerV1::Mutation::Representation - property :stats, as: 'stats', class: Google::Apis::SpannerV1::ResultSetStats, decorator: Google::Apis::SpannerV1::ResultSetStats::Representation - + property :transaction_id, :base64 => true, as: 'transactionId' end end - class Status + class BeginTransactionRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :details, as: 'details' - property :code, as: 'code' - property :message, as: 'message' + property :options, as: 'options', class: Google::Apis::SpannerV1::TransactionOptions, decorator: Google::Apis::SpannerV1::TransactionOptions::Representation + end end - class Binding + class ListInstanceConfigsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :members, as: 'members' - property :role, as: 'role' + property :next_page_token, as: 'nextPageToken' + collection :instance_configs, as: 'instanceConfigs', class: Google::Apis::SpannerV1::InstanceConfig, decorator: Google::Apis::SpannerV1::InstanceConfig::Representation + end end - class UpdateDatabaseDdlRequest + class GetIamPolicyRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :statements, as: 'statements' - property :operation_id, as: 'operationId' end end - class PartialResultSet + class TestIamPermissionsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :resume_token, :base64 => true, as: 'resumeToken' - 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' + collection :permissions, as: 'permissions' end end - class UpdateInstanceMetadata + class Rule # @private class Representation < Google::Apis::Core::JsonRepresentation - property :instance, as: 'instance', class: Google::Apis::SpannerV1::Instance, decorator: Google::Apis::SpannerV1::Instance::Representation + collection :log_config, as: 'logConfig', class: Google::Apis::SpannerV1::LogConfig, decorator: Google::Apis::SpannerV1::LogConfig::Representation - property :start_time, as: 'startTime' - property :cancel_time, as: 'cancelTime' - property :end_time, as: 'endTime' + 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 + end end - class ListOperationsResponse + class CreateDatabaseMetadata # @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 - + property :database, as: 'database' end end - class ResultSetMetadata + class LogConfig # @private class Representation < Google::Apis::Core::JsonRepresentation - property :transaction, as: 'transaction', class: Google::Apis::SpannerV1::Transaction, decorator: Google::Apis::SpannerV1::Transaction::Representation + property :cloud_audit, as: 'cloudAudit', class: Google::Apis::SpannerV1::CloudAuditOptions, decorator: Google::Apis::SpannerV1::CloudAuditOptions::Representation - property :row_type, as: 'rowType', class: Google::Apis::SpannerV1::StructType, decorator: Google::Apis::SpannerV1::StructType::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 + end end - class TransactionSelector + class Session # @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 - - property :begin, as: 'begin', class: Google::Apis::SpannerV1::TransactionOptions, decorator: Google::Apis::SpannerV1::TransactionOptions::Representation - + property :name, as: 'name' end end - class Mutation + class KeyRange # @private class Representation < Google::Apis::Core::JsonRepresentation - 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 - + collection :start_closed, as: 'startClosed' + collection :start_open, as: 'startOpen' + collection :end_open, as: 'endOpen' + collection :end_closed, as: 'endClosed' end end - class KeySet + class ListInstancesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :ranges, as: 'ranges', class: Google::Apis::SpannerV1::KeyRange, decorator: Google::Apis::SpannerV1::KeyRange::Representation + property :next_page_token, as: 'nextPageToken' + collection :instances, as: 'instances', class: Google::Apis::SpannerV1::Instance, decorator: Google::Apis::SpannerV1::Instance::Representation - collection :keys, as: 'keys', :class => Array do - include Representable::JSON::Collection - items - end - - property :all, as: 'all' end end - class GetDatabaseDdlResponse + class ShortRepresentation # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :statements, as: 'statements' + property :description, as: 'description' + hash :subqueries, as: 'subqueries' end end - class Database + class InstanceConfig # @private class Representation < Google::Apis::Core::JsonRepresentation - property :state, as: 'state' property :name, as: 'name' + property :display_name, as: 'displayName' end end - class ListDatabasesResponse + class UpdateInstanceRequest # @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 :instance, as: 'instance', class: Google::Apis::SpannerV1::Instance, decorator: Google::Apis::SpannerV1::Instance::Representation + property :field_mask, as: 'fieldMask' end end - class SetIamPolicyRequest + class Empty # @private class Representation < Google::Apis::Core::JsonRepresentation - property :policy, as: 'policy', class: Google::Apis::SpannerV1::Policy, decorator: Google::Apis::SpannerV1::Policy::Representation + end + end - property :update_mask, as: 'updateMask' + class TransactionOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + 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 + end end - class Instance + class CreateDatabaseRequest # @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 :create_statement, as: 'createStatement' + collection :extra_statements, as: 'extraStatements' end end - class RollbackRequest + class CreateInstanceRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :transaction_id, :base64 => true, as: 'transactionId' + property :instance_id, as: 'instanceId' + property :instance, as: 'instance', class: Google::Apis::SpannerV1::Instance, decorator: Google::Apis::SpannerV1::Instance::Representation + end end - class Transaction + class Condition # @private class Representation < Google::Apis::Core::JsonRepresentation - property :read_timestamp, as: 'readTimestamp' - property :id, :base64 => true, as: 'id' + collection :values, as: 'values' + property :iam, as: 'iam' + property :op, as: 'op' + property :svc, as: 'svc' + property :sys, as: 'sys' + property :value, as: 'value' end end - class UpdateDatabaseDdlMetadata + class AuditLogConfig # @private class Representation < Google::Apis::Core::JsonRepresentation - property :database, as: 'database' - collection :statements, as: 'statements' - collection :commit_timestamps, as: 'commitTimestamps' + collection :exempted_members, as: 'exemptedMembers' + property :log_type, as: 'logType' end end - class CounterOptions + class ReadOnly # @private class Representation < Google::Apis::Core::JsonRepresentation - property :metric, as: 'metric' - property :field, as: 'field' + 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 QueryPlan + class ExecuteSqlRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :plan_nodes, as: 'planNodes', class: Google::Apis::SpannerV1::PlanNode, decorator: Google::Apis::SpannerV1::PlanNode::Representation + 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' end end - class StructType + class Policy # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :fields, as: 'fields', class: Google::Apis::SpannerV1::Field, decorator: Google::Apis::SpannerV1::Field::Representation + 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 + + property :etag, :base64 => true, as: 'etag' end end - class Field + class ReadRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' - property :type, as: 'type', class: Google::Apis::SpannerV1::Type, decorator: Google::Apis::SpannerV1::Type::Representation + 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 + + property :resume_token, :base64 => true, as: 'resumeToken' + property :table, as: 'table' + property :limit, :numeric_string => true, as: 'limit' end end - class TestIamPermissionsRequest + class Write # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :permissions, as: 'permissions' + collection :columns, as: 'columns' + collection :values, as: 'values', :class => Array do + include Representable::JSON::Collection + items + end + + property :table, as: 'table' end end - class ResultSetStats + class DataAccessOptions # @private class Representation < Google::Apis::Core::JsonRepresentation - property :query_plan, as: 'queryPlan', class: Google::Apis::SpannerV1::QueryPlan, decorator: Google::Apis::SpannerV1::QueryPlan::Representation - - hash :query_stats, as: 'queryStats' end end - class CommitResponse + class ReadWrite # @private class Representation < Google::Apis::Core::JsonRepresentation - property :commit_timestamp, as: 'commitTimestamp' end end - class Type + class Operation # @private class Representation < Google::Apis::Core::JsonRepresentation - property :struct_type, as: 'structType', class: Google::Apis::SpannerV1::StructType, decorator: Google::Apis::SpannerV1::StructType::Representation + hash :response, as: 'response' + property :name, as: 'name' + property :error, as: 'error', class: Google::Apis::SpannerV1::Status, decorator: Google::Apis::SpannerV1::Status::Representation - property :array_element_type, as: 'arrayElementType', class: Google::Apis::SpannerV1::Type, decorator: Google::Apis::SpannerV1::Type::Representation + hash :metadata, as: 'metadata' + property :done, as: 'done' + end + end + class Status + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :message, as: 'message' + collection :details, as: 'details' property :code, as: 'code' end end - class PlanNode + class ResultSet # @private class Representation < Google::Apis::Core::JsonRepresentation - 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 + property :stats, as: 'stats', class: Google::Apis::SpannerV1::ResultSetStats, decorator: Google::Apis::SpannerV1::ResultSetStats::Representation - 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 + 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 + end end - class AuditConfig + class UpdateDatabaseDdlRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - 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 - + collection :statements, as: 'statements' + property :operation_id, as: 'operationId' end end - class CreateInstanceMetadata + class Binding # @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' + collection :members, as: 'members' + property :role, as: 'role' end end - class ChildLink + class PartialResultSet # @private class Representation < Google::Apis::Core::JsonRepresentation - property :child_index, as: 'childIndex' - property :variable, as: 'variable' - property :type, as: 'type' + 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 + end end - class CloudAuditOptions + 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 Delete + class ListOperationsResponse # @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 :next_page_token, as: 'nextPageToken' + collection :operations, as: 'operations', class: Google::Apis::SpannerV1::Operation, decorator: Google::Apis::SpannerV1::Operation::Representation end end end end