2015-06-23 23:05:46 +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 BigqueryV2
|
|
|
|
|
2016-03-11 22:41:20 +00:00
|
|
|
class BigtableColumn
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class BigtableColumnFamily
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class BigtableOptions
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2015-06-23 23:05:46 +00:00
|
|
|
class CsvOptions
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class Dataset
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
class Access
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class DatasetList
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
class Dataset
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class DatasetReference
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
|
2018-02-17 00:35:51 +00:00
|
|
|
class DestinationTableProperties
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-09-09 00:35:50 +00:00
|
|
|
class EncryptionConfiguration
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2015-06-23 23:05:46 +00:00
|
|
|
class ErrorProto
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
|
2015-12-03 01:10:07 +00:00
|
|
|
class ExplainQueryStage
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class ExplainQueryStep
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
|
2015-06-23 23:05:46 +00:00
|
|
|
class ExternalDataConfiguration
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class GetQueryResultsResponse
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
|
2017-09-09 00:35:50 +00:00
|
|
|
class GetServiceAccountResponse
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2016-05-16 16:49:15 +00:00
|
|
|
class GoogleSheetsOptions
|
2016-04-14 18:15:27 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2015-06-23 23:05:46 +00:00
|
|
|
class Job
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class CancelJobResponse
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class JobConfiguration
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class JobConfigurationExtract
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class JobConfigurationLoad
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class JobConfigurationQuery
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class JobConfigurationTableCopy
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class JobList
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
class Job
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class JobReference
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class JobStatistics
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class JobStatistics2
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class JobStatistics3
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class JobStatistics4
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class JobStatus
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class ProjectList
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
class Project
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class ProjectReference
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
|
2016-08-31 20:33:12 +00:00
|
|
|
class QueryParameter
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class QueryParameterType
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
class StructType
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class QueryParameterValue
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2015-06-23 23:05:46 +00:00
|
|
|
class QueryRequest
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class QueryResponse
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
|
2017-12-23 00:35:27 +00:00
|
|
|
class QueryTimelineSample
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2015-12-03 01:10:07 +00:00
|
|
|
class Streamingbuffer
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
|
2015-06-23 23:05:46 +00:00
|
|
|
class Table
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class TableCell
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class InsertAllTableDataRequest
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
class Row
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class InsertAllTableDataResponse
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
class InsertError
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class TableDataList
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class TableFieldSchema
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class TableList
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
class Table
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2017-03-10 21:11:09 +00:00
|
|
|
|
|
|
|
class View
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
|
2016-05-16 16:49:15 +00:00
|
|
|
class TableReference
|
2016-04-14 18:15:27 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2016-05-16 16:49:15 +00:00
|
|
|
class TableRow
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
|
2016-05-16 16:49:15 +00:00
|
|
|
class TableSchema
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
|
2016-05-16 16:49:15 +00:00
|
|
|
class TimePartitioning
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
|
2015-07-20 21:49:34 +00:00
|
|
|
class UserDefinedFunctionResource
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-07-20 21:49:34 +00:00
|
|
|
end
|
|
|
|
|
2015-06-23 23:05:46 +00:00
|
|
|
class ViewDefinition
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
|
2016-03-11 22:41:20 +00:00
|
|
|
class BigtableColumn
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :encoding, as: 'encoding'
|
|
|
|
property :field_name, as: 'fieldName'
|
|
|
|
property :only_read_latest, as: 'onlyReadLatest'
|
|
|
|
property :qualifier_encoded, :base64 => true, as: 'qualifierEncoded'
|
|
|
|
property :qualifier_string, as: 'qualifierString'
|
|
|
|
property :type, as: 'type'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class BigtableColumnFamily
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :columns, as: 'columns', class: Google::Apis::BigqueryV2::BigtableColumn, decorator: Google::Apis::BigqueryV2::BigtableColumn::Representation
|
|
|
|
|
|
|
|
property :encoding, as: 'encoding'
|
|
|
|
property :family_id, as: 'familyId'
|
|
|
|
property :only_read_latest, as: 'onlyReadLatest'
|
|
|
|
property :type, as: 'type'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class BigtableOptions
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :column_families, as: 'columnFamilies', class: Google::Apis::BigqueryV2::BigtableColumnFamily, decorator: Google::Apis::BigqueryV2::BigtableColumnFamily::Representation
|
|
|
|
|
|
|
|
property :ignore_unspecified_column_families, as: 'ignoreUnspecifiedColumnFamilies'
|
2016-08-08 20:25:38 +00:00
|
|
|
property :read_rowkey_as_string, as: 'readRowkeyAsString'
|
2016-03-11 22:41:20 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2015-06-23 23:05:46 +00:00
|
|
|
class CsvOptions
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :allow_jagged_rows, as: 'allowJaggedRows'
|
|
|
|
property :allow_quoted_newlines, as: 'allowQuotedNewlines'
|
|
|
|
property :encoding, as: 'encoding'
|
|
|
|
property :field_delimiter, as: 'fieldDelimiter'
|
|
|
|
property :quote, as: 'quote'
|
2017-04-03 20:18:48 +00:00
|
|
|
property :skip_leading_rows, :numeric_string => true, as: 'skipLeadingRows'
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class Dataset
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :access, as: 'access', class: Google::Apis::BigqueryV2::Dataset::Access, decorator: Google::Apis::BigqueryV2::Dataset::Access::Representation
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
property :creation_time, :numeric_string => true, as: 'creationTime'
|
2015-06-23 23:05:46 +00:00
|
|
|
property :dataset_reference, as: 'datasetReference', class: Google::Apis::BigqueryV2::DatasetReference, decorator: Google::Apis::BigqueryV2::DatasetReference::Representation
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
property :default_table_expiration_ms, :numeric_string => true, as: 'defaultTableExpirationMs'
|
2015-06-23 23:05:46 +00:00
|
|
|
property :description, as: 'description'
|
|
|
|
property :etag, as: 'etag'
|
|
|
|
property :friendly_name, as: 'friendlyName'
|
|
|
|
property :id, as: 'id'
|
|
|
|
property :kind, as: 'kind'
|
2016-08-08 20:25:38 +00:00
|
|
|
hash :labels, as: 'labels'
|
2017-04-03 20:18:48 +00:00
|
|
|
property :last_modified_time, :numeric_string => true, as: 'lastModifiedTime'
|
2015-06-23 23:05:46 +00:00
|
|
|
property :location, as: 'location'
|
|
|
|
property :self_link, as: 'selfLink'
|
|
|
|
end
|
|
|
|
|
|
|
|
class Access
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :domain, as: 'domain'
|
|
|
|
property :group_by_email, as: 'groupByEmail'
|
|
|
|
property :role, as: 'role'
|
|
|
|
property :special_group, as: 'specialGroup'
|
|
|
|
property :user_by_email, as: 'userByEmail'
|
|
|
|
property :view, as: 'view', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class DatasetList
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :datasets, as: 'datasets', class: Google::Apis::BigqueryV2::DatasetList::Dataset, decorator: Google::Apis::BigqueryV2::DatasetList::Dataset::Representation
|
|
|
|
|
|
|
|
property :etag, as: 'etag'
|
|
|
|
property :kind, as: 'kind'
|
|
|
|
property :next_page_token, as: 'nextPageToken'
|
|
|
|
end
|
|
|
|
|
|
|
|
class Dataset
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :dataset_reference, as: 'datasetReference', class: Google::Apis::BigqueryV2::DatasetReference, decorator: Google::Apis::BigqueryV2::DatasetReference::Representation
|
|
|
|
|
|
|
|
property :friendly_name, as: 'friendlyName'
|
|
|
|
property :id, as: 'id'
|
|
|
|
property :kind, as: 'kind'
|
2016-08-08 20:25:38 +00:00
|
|
|
hash :labels, as: 'labels'
|
2018-02-03 00:35:36 +00:00
|
|
|
property :location, as: 'location'
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class DatasetReference
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :dataset_id, as: 'datasetId'
|
|
|
|
property :project_id, as: 'projectId'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2018-02-17 00:35:51 +00:00
|
|
|
class DestinationTableProperties
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :description, as: 'description'
|
|
|
|
property :friendly_name, as: 'friendlyName'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-09-09 00:35:50 +00:00
|
|
|
class EncryptionConfiguration
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :kms_key_name, as: 'kmsKeyName'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2015-06-23 23:05:46 +00:00
|
|
|
class ErrorProto
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :debug_info, as: 'debugInfo'
|
|
|
|
property :location, as: 'location'
|
|
|
|
property :message, as: 'message'
|
|
|
|
property :reason, as: 'reason'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2015-12-03 01:10:07 +00:00
|
|
|
class ExplainQueryStage
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-12-09 00:35:52 +00:00
|
|
|
property :completed_parallel_inputs, :numeric_string => true, as: 'completedParallelInputs'
|
2017-08-25 19:54:22 +00:00
|
|
|
property :compute_ms_avg, :numeric_string => true, as: 'computeMsAvg'
|
|
|
|
property :compute_ms_max, :numeric_string => true, as: 'computeMsMax'
|
2015-12-03 01:10:07 +00:00
|
|
|
property :compute_ratio_avg, as: 'computeRatioAvg'
|
|
|
|
property :compute_ratio_max, as: 'computeRatioMax'
|
2018-02-10 00:35:32 +00:00
|
|
|
property :end_ms, :numeric_string => true, as: 'endMs'
|
2017-04-03 20:18:48 +00:00
|
|
|
property :id, :numeric_string => true, as: 'id'
|
2018-02-10 00:35:32 +00:00
|
|
|
collection :input_stages, as: 'inputStages'
|
2015-12-03 01:10:07 +00:00
|
|
|
property :name, as: 'name'
|
2017-12-09 00:35:52 +00:00
|
|
|
property :parallel_inputs, :numeric_string => true, as: 'parallelInputs'
|
2017-08-25 19:54:22 +00:00
|
|
|
property :read_ms_avg, :numeric_string => true, as: 'readMsAvg'
|
|
|
|
property :read_ms_max, :numeric_string => true, as: 'readMsMax'
|
2015-12-03 01:10:07 +00:00
|
|
|
property :read_ratio_avg, as: 'readRatioAvg'
|
|
|
|
property :read_ratio_max, as: 'readRatioMax'
|
2017-04-03 20:18:48 +00:00
|
|
|
property :records_read, :numeric_string => true, as: 'recordsRead'
|
|
|
|
property :records_written, :numeric_string => true, as: 'recordsWritten'
|
2017-08-25 19:54:22 +00:00
|
|
|
property :shuffle_output_bytes, :numeric_string => true, as: 'shuffleOutputBytes'
|
|
|
|
property :shuffle_output_bytes_spilled, :numeric_string => true, as: 'shuffleOutputBytesSpilled'
|
2018-02-10 00:35:32 +00:00
|
|
|
property :start_ms, :numeric_string => true, as: 'startMs'
|
2017-01-13 23:04:35 +00:00
|
|
|
property :status, as: 'status'
|
2015-12-03 01:10:07 +00:00
|
|
|
collection :steps, as: 'steps', class: Google::Apis::BigqueryV2::ExplainQueryStep, decorator: Google::Apis::BigqueryV2::ExplainQueryStep::Representation
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
property :wait_ms_avg, :numeric_string => true, as: 'waitMsAvg'
|
|
|
|
property :wait_ms_max, :numeric_string => true, as: 'waitMsMax'
|
2015-12-03 01:10:07 +00:00
|
|
|
property :wait_ratio_avg, as: 'waitRatioAvg'
|
|
|
|
property :wait_ratio_max, as: 'waitRatioMax'
|
2017-08-25 19:54:22 +00:00
|
|
|
property :write_ms_avg, :numeric_string => true, as: 'writeMsAvg'
|
|
|
|
property :write_ms_max, :numeric_string => true, as: 'writeMsMax'
|
2015-12-03 01:10:07 +00:00
|
|
|
property :write_ratio_avg, as: 'writeRatioAvg'
|
|
|
|
property :write_ratio_max, as: 'writeRatioMax'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class ExplainQueryStep
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :kind, as: 'kind'
|
|
|
|
collection :substeps, as: 'substeps'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2015-06-23 23:05:46 +00:00
|
|
|
class ExternalDataConfiguration
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2016-03-11 22:41:20 +00:00
|
|
|
property :autodetect, as: 'autodetect'
|
|
|
|
property :bigtable_options, as: 'bigtableOptions', class: Google::Apis::BigqueryV2::BigtableOptions, decorator: Google::Apis::BigqueryV2::BigtableOptions::Representation
|
|
|
|
|
2015-06-23 23:05:46 +00:00
|
|
|
property :compression, as: 'compression'
|
|
|
|
property :csv_options, as: 'csvOptions', class: Google::Apis::BigqueryV2::CsvOptions, decorator: Google::Apis::BigqueryV2::CsvOptions::Representation
|
|
|
|
|
2016-05-16 16:49:15 +00:00
|
|
|
property :google_sheets_options, as: 'googleSheetsOptions', class: Google::Apis::BigqueryV2::GoogleSheetsOptions, decorator: Google::Apis::BigqueryV2::GoogleSheetsOptions::Representation
|
|
|
|
|
2015-06-23 23:05:46 +00:00
|
|
|
property :ignore_unknown_values, as: 'ignoreUnknownValues'
|
|
|
|
property :max_bad_records, as: 'maxBadRecords'
|
|
|
|
property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation
|
|
|
|
|
|
|
|
property :source_format, as: 'sourceFormat'
|
|
|
|
collection :source_uris, as: 'sourceUris'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class GetQueryResultsResponse
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :cache_hit, as: 'cacheHit'
|
2015-12-03 01:10:07 +00:00
|
|
|
collection :errors, as: 'errors', class: Google::Apis::BigqueryV2::ErrorProto, decorator: Google::Apis::BigqueryV2::ErrorProto::Representation
|
|
|
|
|
2015-06-23 23:05:46 +00:00
|
|
|
property :etag, as: 'etag'
|
|
|
|
property :job_complete, as: 'jobComplete'
|
|
|
|
property :job_reference, as: 'jobReference', class: Google::Apis::BigqueryV2::JobReference, decorator: Google::Apis::BigqueryV2::JobReference::Representation
|
|
|
|
|
|
|
|
property :kind, as: 'kind'
|
2017-04-03 20:18:48 +00:00
|
|
|
property :num_dml_affected_rows, :numeric_string => true, as: 'numDmlAffectedRows'
|
2015-06-23 23:05:46 +00:00
|
|
|
property :page_token, as: 'pageToken'
|
|
|
|
collection :rows, as: 'rows', class: Google::Apis::BigqueryV2::TableRow, decorator: Google::Apis::BigqueryV2::TableRow::Representation
|
|
|
|
|
|
|
|
property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
property :total_bytes_processed, :numeric_string => true, as: 'totalBytesProcessed'
|
|
|
|
property :total_rows, :numeric_string => true, as: 'totalRows'
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-09-09 00:35:50 +00:00
|
|
|
class GetServiceAccountResponse
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :email, as: 'email'
|
|
|
|
property :kind, as: 'kind'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2016-05-16 16:49:15 +00:00
|
|
|
class GoogleSheetsOptions
|
2016-04-14 18:15:27 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-04-03 20:18:48 +00:00
|
|
|
property :skip_leading_rows, :numeric_string => true, as: 'skipLeadingRows'
|
2016-04-14 18:15:27 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2015-06-23 23:05:46 +00:00
|
|
|
class Job
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :configuration, as: 'configuration', class: Google::Apis::BigqueryV2::JobConfiguration, decorator: Google::Apis::BigqueryV2::JobConfiguration::Representation
|
|
|
|
|
|
|
|
property :etag, as: 'etag'
|
|
|
|
property :id, as: 'id'
|
|
|
|
property :job_reference, as: 'jobReference', class: Google::Apis::BigqueryV2::JobReference, decorator: Google::Apis::BigqueryV2::JobReference::Representation
|
|
|
|
|
|
|
|
property :kind, as: 'kind'
|
|
|
|
property :self_link, as: 'selfLink'
|
|
|
|
property :statistics, as: 'statistics', class: Google::Apis::BigqueryV2::JobStatistics, decorator: Google::Apis::BigqueryV2::JobStatistics::Representation
|
|
|
|
|
|
|
|
property :status, as: 'status', class: Google::Apis::BigqueryV2::JobStatus, decorator: Google::Apis::BigqueryV2::JobStatus::Representation
|
|
|
|
|
|
|
|
property :user_email, as: 'user_email'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class CancelJobResponse
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :job, as: 'job', class: Google::Apis::BigqueryV2::Job, decorator: Google::Apis::BigqueryV2::Job::Representation
|
|
|
|
|
|
|
|
property :kind, as: 'kind'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class JobConfiguration
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :copy, as: 'copy', class: Google::Apis::BigqueryV2::JobConfigurationTableCopy, decorator: Google::Apis::BigqueryV2::JobConfigurationTableCopy::Representation
|
|
|
|
|
|
|
|
property :dry_run, as: 'dryRun'
|
|
|
|
property :extract, as: 'extract', class: Google::Apis::BigqueryV2::JobConfigurationExtract, decorator: Google::Apis::BigqueryV2::JobConfigurationExtract::Representation
|
|
|
|
|
2018-02-03 00:35:36 +00:00
|
|
|
property :job_timeout_ms, :numeric_string => true, as: 'jobTimeoutMs'
|
2016-11-08 23:43:14 +00:00
|
|
|
hash :labels, as: 'labels'
|
2015-06-23 23:05:46 +00:00
|
|
|
property :load, as: 'load', class: Google::Apis::BigqueryV2::JobConfigurationLoad, decorator: Google::Apis::BigqueryV2::JobConfigurationLoad::Representation
|
|
|
|
|
|
|
|
property :query, as: 'query', class: Google::Apis::BigqueryV2::JobConfigurationQuery, decorator: Google::Apis::BigqueryV2::JobConfigurationQuery::Representation
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class JobConfigurationExtract
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :compression, as: 'compression'
|
|
|
|
property :destination_format, as: 'destinationFormat'
|
|
|
|
property :destination_uri, as: 'destinationUri'
|
|
|
|
collection :destination_uris, as: 'destinationUris'
|
|
|
|
property :field_delimiter, as: 'fieldDelimiter'
|
|
|
|
property :print_header, as: 'printHeader'
|
|
|
|
property :source_table, as: 'sourceTable', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class JobConfigurationLoad
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :allow_jagged_rows, as: 'allowJaggedRows'
|
|
|
|
property :allow_quoted_newlines, as: 'allowQuotedNewlines'
|
2016-05-16 16:49:15 +00:00
|
|
|
property :autodetect, as: 'autodetect'
|
2015-06-23 23:05:46 +00:00
|
|
|
property :create_disposition, as: 'createDisposition'
|
2017-09-09 00:35:50 +00:00
|
|
|
property :destination_encryption_configuration, as: 'destinationEncryptionConfiguration', class: Google::Apis::BigqueryV2::EncryptionConfiguration, decorator: Google::Apis::BigqueryV2::EncryptionConfiguration::Representation
|
|
|
|
|
2015-06-23 23:05:46 +00:00
|
|
|
property :destination_table, as: 'destinationTable', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
|
|
|
|
|
2018-02-17 00:35:51 +00:00
|
|
|
property :destination_table_properties, as: 'destinationTableProperties', class: Google::Apis::BigqueryV2::DestinationTableProperties, decorator: Google::Apis::BigqueryV2::DestinationTableProperties::Representation
|
|
|
|
|
2015-06-23 23:05:46 +00:00
|
|
|
property :encoding, as: 'encoding'
|
|
|
|
property :field_delimiter, as: 'fieldDelimiter'
|
|
|
|
property :ignore_unknown_values, as: 'ignoreUnknownValues'
|
|
|
|
property :max_bad_records, as: 'maxBadRecords'
|
2017-01-13 23:04:35 +00:00
|
|
|
property :null_marker, as: 'nullMarker'
|
2015-06-23 23:05:46 +00:00
|
|
|
collection :projection_fields, as: 'projectionFields'
|
|
|
|
property :quote, as: 'quote'
|
|
|
|
property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation
|
|
|
|
|
|
|
|
property :schema_inline, as: 'schemaInline'
|
|
|
|
property :schema_inline_format, as: 'schemaInlineFormat'
|
2016-08-31 20:33:12 +00:00
|
|
|
collection :schema_update_options, as: 'schemaUpdateOptions'
|
2015-06-23 23:05:46 +00:00
|
|
|
property :skip_leading_rows, as: 'skipLeadingRows'
|
|
|
|
property :source_format, as: 'sourceFormat'
|
|
|
|
collection :source_uris, as: 'sourceUris'
|
2017-08-25 19:54:22 +00:00
|
|
|
property :time_partitioning, as: 'timePartitioning', class: Google::Apis::BigqueryV2::TimePartitioning, decorator: Google::Apis::BigqueryV2::TimePartitioning::Representation
|
|
|
|
|
2015-06-23 23:05:46 +00:00
|
|
|
property :write_disposition, as: 'writeDisposition'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class JobConfigurationQuery
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :allow_large_results, as: 'allowLargeResults'
|
|
|
|
property :create_disposition, as: 'createDisposition'
|
|
|
|
property :default_dataset, as: 'defaultDataset', class: Google::Apis::BigqueryV2::DatasetReference, decorator: Google::Apis::BigqueryV2::DatasetReference::Representation
|
|
|
|
|
2017-09-09 00:35:50 +00:00
|
|
|
property :destination_encryption_configuration, as: 'destinationEncryptionConfiguration', class: Google::Apis::BigqueryV2::EncryptionConfiguration, decorator: Google::Apis::BigqueryV2::EncryptionConfiguration::Representation
|
|
|
|
|
2015-06-23 23:05:46 +00:00
|
|
|
property :destination_table, as: 'destinationTable', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
|
|
|
|
|
|
|
|
property :flatten_results, as: 'flattenResults'
|
2016-01-08 00:23:51 +00:00
|
|
|
property :maximum_billing_tier, as: 'maximumBillingTier'
|
2017-04-03 20:18:48 +00:00
|
|
|
property :maximum_bytes_billed, :numeric_string => true, as: 'maximumBytesBilled'
|
2016-08-31 20:33:12 +00:00
|
|
|
property :parameter_mode, as: 'parameterMode'
|
2015-06-23 23:05:46 +00:00
|
|
|
property :preserve_nulls, as: 'preserveNulls'
|
|
|
|
property :priority, as: 'priority'
|
|
|
|
property :query, as: 'query'
|
2016-08-31 20:33:12 +00:00
|
|
|
collection :query_parameters, as: 'queryParameters', class: Google::Apis::BigqueryV2::QueryParameter, decorator: Google::Apis::BigqueryV2::QueryParameter::Representation
|
|
|
|
|
|
|
|
collection :schema_update_options, as: 'schemaUpdateOptions'
|
2015-06-23 23:05:46 +00:00
|
|
|
hash :table_definitions, as: 'tableDefinitions', class: Google::Apis::BigqueryV2::ExternalDataConfiguration, decorator: Google::Apis::BigqueryV2::ExternalDataConfiguration::Representation
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
property :time_partitioning, as: 'timePartitioning', class: Google::Apis::BigqueryV2::TimePartitioning, decorator: Google::Apis::BigqueryV2::TimePartitioning::Representation
|
|
|
|
|
2016-02-25 23:16:53 +00:00
|
|
|
property :use_legacy_sql, as: 'useLegacySql'
|
2015-06-23 23:05:46 +00:00
|
|
|
property :use_query_cache, as: 'useQueryCache'
|
2015-07-20 21:49:34 +00:00
|
|
|
collection :user_defined_function_resources, as: 'userDefinedFunctionResources', class: Google::Apis::BigqueryV2::UserDefinedFunctionResource, decorator: Google::Apis::BigqueryV2::UserDefinedFunctionResource::Representation
|
|
|
|
|
2015-06-23 23:05:46 +00:00
|
|
|
property :write_disposition, as: 'writeDisposition'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class JobConfigurationTableCopy
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :create_disposition, as: 'createDisposition'
|
2017-09-09 00:35:50 +00:00
|
|
|
property :destination_encryption_configuration, as: 'destinationEncryptionConfiguration', class: Google::Apis::BigqueryV2::EncryptionConfiguration, decorator: Google::Apis::BigqueryV2::EncryptionConfiguration::Representation
|
|
|
|
|
2015-06-23 23:05:46 +00:00
|
|
|
property :destination_table, as: 'destinationTable', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
|
|
|
|
|
|
|
|
property :source_table, as: 'sourceTable', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
|
|
|
|
|
|
|
|
collection :source_tables, as: 'sourceTables', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
|
|
|
|
|
|
|
|
property :write_disposition, as: 'writeDisposition'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class JobList
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :etag, as: 'etag'
|
|
|
|
collection :jobs, as: 'jobs', class: Google::Apis::BigqueryV2::JobList::Job, decorator: Google::Apis::BigqueryV2::JobList::Job::Representation
|
|
|
|
|
|
|
|
property :kind, as: 'kind'
|
|
|
|
property :next_page_token, as: 'nextPageToken'
|
|
|
|
end
|
|
|
|
|
|
|
|
class Job
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :configuration, as: 'configuration', class: Google::Apis::BigqueryV2::JobConfiguration, decorator: Google::Apis::BigqueryV2::JobConfiguration::Representation
|
|
|
|
|
|
|
|
property :error_result, as: 'errorResult', class: Google::Apis::BigqueryV2::ErrorProto, decorator: Google::Apis::BigqueryV2::ErrorProto::Representation
|
|
|
|
|
|
|
|
property :id, as: 'id'
|
|
|
|
property :job_reference, as: 'jobReference', class: Google::Apis::BigqueryV2::JobReference, decorator: Google::Apis::BigqueryV2::JobReference::Representation
|
|
|
|
|
|
|
|
property :kind, as: 'kind'
|
|
|
|
property :state, as: 'state'
|
|
|
|
property :statistics, as: 'statistics', class: Google::Apis::BigqueryV2::JobStatistics, decorator: Google::Apis::BigqueryV2::JobStatistics::Representation
|
|
|
|
|
|
|
|
property :status, as: 'status', class: Google::Apis::BigqueryV2::JobStatus, decorator: Google::Apis::BigqueryV2::JobStatus::Representation
|
|
|
|
|
|
|
|
property :user_email, as: 'user_email'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class JobReference
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :job_id, as: 'jobId'
|
2018-02-03 00:35:36 +00:00
|
|
|
property :location, as: 'location'
|
2015-06-23 23:05:46 +00:00
|
|
|
property :project_id, as: 'projectId'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class JobStatistics
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2018-02-03 00:35:36 +00:00
|
|
|
property :completion_ratio, as: 'completionRatio'
|
2017-04-03 20:18:48 +00:00
|
|
|
property :creation_time, :numeric_string => true, as: 'creationTime'
|
|
|
|
property :end_time, :numeric_string => true, as: 'endTime'
|
2015-06-23 23:05:46 +00:00
|
|
|
property :extract, as: 'extract', class: Google::Apis::BigqueryV2::JobStatistics4, decorator: Google::Apis::BigqueryV2::JobStatistics4::Representation
|
|
|
|
|
|
|
|
property :load, as: 'load', class: Google::Apis::BigqueryV2::JobStatistics3, decorator: Google::Apis::BigqueryV2::JobStatistics3::Representation
|
|
|
|
|
|
|
|
property :query, as: 'query', class: Google::Apis::BigqueryV2::JobStatistics2, decorator: Google::Apis::BigqueryV2::JobStatistics2::Representation
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
property :start_time, :numeric_string => true, as: 'startTime'
|
|
|
|
property :total_bytes_processed, :numeric_string => true, as: 'totalBytesProcessed'
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class JobStatistics2
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2015-12-03 01:10:07 +00:00
|
|
|
property :billing_tier, as: 'billingTier'
|
2015-06-23 23:05:46 +00:00
|
|
|
property :cache_hit, as: 'cacheHit'
|
2017-10-28 00:35:05 +00:00
|
|
|
property :ddl_operation_performed, as: 'ddlOperationPerformed'
|
|
|
|
property :ddl_target_table, as: 'ddlTargetTable', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
|
|
|
|
|
2017-12-09 00:35:52 +00:00
|
|
|
property :estimated_bytes_processed, :numeric_string => true, as: 'estimatedBytesProcessed'
|
2017-04-03 20:18:48 +00:00
|
|
|
property :num_dml_affected_rows, :numeric_string => true, as: 'numDmlAffectedRows'
|
2015-12-03 01:10:07 +00:00
|
|
|
collection :query_plan, as: 'queryPlan', class: Google::Apis::BigqueryV2::ExplainQueryStage, decorator: Google::Apis::BigqueryV2::ExplainQueryStage::Representation
|
|
|
|
|
2016-02-25 23:16:53 +00:00
|
|
|
collection :referenced_tables, as: 'referencedTables', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
|
|
|
|
|
2016-05-16 16:49:15 +00:00
|
|
|
property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation
|
|
|
|
|
2017-01-13 23:04:35 +00:00
|
|
|
property :statement_type, as: 'statementType'
|
2017-12-23 00:35:27 +00:00
|
|
|
collection :timeline, as: 'timeline', class: Google::Apis::BigqueryV2::QueryTimelineSample, decorator: Google::Apis::BigqueryV2::QueryTimelineSample::Representation
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
property :total_bytes_billed, :numeric_string => true, as: 'totalBytesBilled'
|
|
|
|
property :total_bytes_processed, :numeric_string => true, as: 'totalBytesProcessed'
|
2018-03-17 00:35:57 +00:00
|
|
|
property :total_partitions_processed, :numeric_string => true, as: 'totalPartitionsProcessed'
|
2017-09-16 00:35:41 +00:00
|
|
|
property :total_slot_ms, :numeric_string => true, as: 'totalSlotMs'
|
2016-08-31 20:33:12 +00:00
|
|
|
collection :undeclared_query_parameters, as: 'undeclaredQueryParameters', class: Google::Apis::BigqueryV2::QueryParameter, decorator: Google::Apis::BigqueryV2::QueryParameter::Representation
|
|
|
|
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class JobStatistics3
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
property :bad_records, :numeric_string => true, as: 'badRecords'
|
2017-04-03 20:18:48 +00:00
|
|
|
property :input_file_bytes, :numeric_string => true, as: 'inputFileBytes'
|
|
|
|
property :input_files, :numeric_string => true, as: 'inputFiles'
|
|
|
|
property :output_bytes, :numeric_string => true, as: 'outputBytes'
|
|
|
|
property :output_rows, :numeric_string => true, as: 'outputRows'
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class JobStatistics4
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :destination_uri_file_counts, as: 'destinationUriFileCounts'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class JobStatus
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :error_result, as: 'errorResult', class: Google::Apis::BigqueryV2::ErrorProto, decorator: Google::Apis::BigqueryV2::ErrorProto::Representation
|
|
|
|
|
|
|
|
collection :errors, as: 'errors', class: Google::Apis::BigqueryV2::ErrorProto, decorator: Google::Apis::BigqueryV2::ErrorProto::Representation
|
|
|
|
|
|
|
|
property :state, as: 'state'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class ProjectList
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :etag, as: 'etag'
|
|
|
|
property :kind, as: 'kind'
|
|
|
|
property :next_page_token, as: 'nextPageToken'
|
|
|
|
collection :projects, as: 'projects', class: Google::Apis::BigqueryV2::ProjectList::Project, decorator: Google::Apis::BigqueryV2::ProjectList::Project::Representation
|
|
|
|
|
|
|
|
property :total_items, as: 'totalItems'
|
|
|
|
end
|
|
|
|
|
|
|
|
class Project
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :friendly_name, as: 'friendlyName'
|
|
|
|
property :id, as: 'id'
|
|
|
|
property :kind, as: 'kind'
|
2017-04-03 20:18:48 +00:00
|
|
|
property :numeric_id, :numeric_string => true, as: 'numericId'
|
2015-06-23 23:05:46 +00:00
|
|
|
property :project_reference, as: 'projectReference', class: Google::Apis::BigqueryV2::ProjectReference, decorator: Google::Apis::BigqueryV2::ProjectReference::Representation
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class ProjectReference
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :project_id, as: 'projectId'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2016-08-31 20:33:12 +00:00
|
|
|
class QueryParameter
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :name, as: 'name'
|
|
|
|
property :parameter_type, as: 'parameterType', class: Google::Apis::BigqueryV2::QueryParameterType, decorator: Google::Apis::BigqueryV2::QueryParameterType::Representation
|
|
|
|
|
|
|
|
property :parameter_value, as: 'parameterValue', class: Google::Apis::BigqueryV2::QueryParameterValue, decorator: Google::Apis::BigqueryV2::QueryParameterValue::Representation
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class QueryParameterType
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :array_type, as: 'arrayType', class: Google::Apis::BigqueryV2::QueryParameterType, decorator: Google::Apis::BigqueryV2::QueryParameterType::Representation
|
|
|
|
|
|
|
|
collection :struct_types, as: 'structTypes', class: Google::Apis::BigqueryV2::QueryParameterType::StructType, decorator: Google::Apis::BigqueryV2::QueryParameterType::StructType::Representation
|
|
|
|
|
|
|
|
property :type, as: 'type'
|
|
|
|
end
|
|
|
|
|
|
|
|
class StructType
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :description, as: 'description'
|
|
|
|
property :name, as: 'name'
|
|
|
|
property :type, as: 'type', class: Google::Apis::BigqueryV2::QueryParameterType, decorator: Google::Apis::BigqueryV2::QueryParameterType::Representation
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class QueryParameterValue
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :array_values, as: 'arrayValues', class: Google::Apis::BigqueryV2::QueryParameterValue, decorator: Google::Apis::BigqueryV2::QueryParameterValue::Representation
|
|
|
|
|
2016-09-19 21:24:23 +00:00
|
|
|
hash :struct_values, as: 'structValues', class: Google::Apis::BigqueryV2::QueryParameterValue, decorator: Google::Apis::BigqueryV2::QueryParameterValue::Representation
|
2016-08-31 20:33:12 +00:00
|
|
|
|
|
|
|
property :value, as: 'value'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2015-06-23 23:05:46 +00:00
|
|
|
class QueryRequest
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :default_dataset, as: 'defaultDataset', class: Google::Apis::BigqueryV2::DatasetReference, decorator: Google::Apis::BigqueryV2::DatasetReference::Representation
|
|
|
|
|
|
|
|
property :dry_run, as: 'dryRun'
|
|
|
|
property :kind, as: 'kind'
|
2018-02-03 00:35:36 +00:00
|
|
|
property :location, as: 'location'
|
2015-06-23 23:05:46 +00:00
|
|
|
property :max_results, as: 'maxResults'
|
2016-08-31 20:33:12 +00:00
|
|
|
property :parameter_mode, as: 'parameterMode'
|
2015-06-23 23:05:46 +00:00
|
|
|
property :preserve_nulls, as: 'preserveNulls'
|
|
|
|
property :query, as: 'query'
|
2016-08-31 20:33:12 +00:00
|
|
|
collection :query_parameters, as: 'queryParameters', class: Google::Apis::BigqueryV2::QueryParameter, decorator: Google::Apis::BigqueryV2::QueryParameter::Representation
|
|
|
|
|
2015-06-23 23:05:46 +00:00
|
|
|
property :timeout_ms, as: 'timeoutMs'
|
2016-02-25 23:16:53 +00:00
|
|
|
property :use_legacy_sql, as: 'useLegacySql'
|
2015-06-23 23:05:46 +00:00
|
|
|
property :use_query_cache, as: 'useQueryCache'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class QueryResponse
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :cache_hit, as: 'cacheHit'
|
2015-12-03 01:10:07 +00:00
|
|
|
collection :errors, as: 'errors', class: Google::Apis::BigqueryV2::ErrorProto, decorator: Google::Apis::BigqueryV2::ErrorProto::Representation
|
|
|
|
|
2015-06-23 23:05:46 +00:00
|
|
|
property :job_complete, as: 'jobComplete'
|
|
|
|
property :job_reference, as: 'jobReference', class: Google::Apis::BigqueryV2::JobReference, decorator: Google::Apis::BigqueryV2::JobReference::Representation
|
|
|
|
|
|
|
|
property :kind, as: 'kind'
|
2017-04-03 20:18:48 +00:00
|
|
|
property :num_dml_affected_rows, :numeric_string => true, as: 'numDmlAffectedRows'
|
2015-06-23 23:05:46 +00:00
|
|
|
property :page_token, as: 'pageToken'
|
|
|
|
collection :rows, as: 'rows', class: Google::Apis::BigqueryV2::TableRow, decorator: Google::Apis::BigqueryV2::TableRow::Representation
|
|
|
|
|
|
|
|
property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
property :total_bytes_processed, :numeric_string => true, as: 'totalBytesProcessed'
|
|
|
|
property :total_rows, :numeric_string => true, as: 'totalRows'
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
2017-12-23 00:35:27 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class QueryTimelineSample
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2018-03-31 00:36:19 +00:00
|
|
|
property :active_units, :numeric_string => true, as: 'activeUnits'
|
|
|
|
property :completed_units, :numeric_string => true, as: 'completedUnits'
|
2017-12-23 00:35:27 +00:00
|
|
|
property :elapsed_ms, :numeric_string => true, as: 'elapsedMs'
|
2018-03-31 00:36:19 +00:00
|
|
|
property :pending_units, :numeric_string => true, as: 'pendingUnits'
|
2017-12-23 00:35:27 +00:00
|
|
|
property :total_slot_ms, :numeric_string => true, as: 'totalSlotMs'
|
|
|
|
end
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
|
2015-12-03 01:10:07 +00:00
|
|
|
class Streamingbuffer
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-04-03 20:18:48 +00:00
|
|
|
property :estimated_bytes, :numeric_string => true, as: 'estimatedBytes'
|
|
|
|
property :estimated_rows, :numeric_string => true, as: 'estimatedRows'
|
|
|
|
property :oldest_entry_time, :numeric_string => true, as: 'oldestEntryTime'
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2015-06-23 23:05:46 +00:00
|
|
|
class Table
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-04-03 20:18:48 +00:00
|
|
|
property :creation_time, :numeric_string => true, as: 'creationTime'
|
2015-06-23 23:05:46 +00:00
|
|
|
property :description, as: 'description'
|
2017-09-09 00:35:50 +00:00
|
|
|
property :encryption_configuration, as: 'encryptionConfiguration', class: Google::Apis::BigqueryV2::EncryptionConfiguration, decorator: Google::Apis::BigqueryV2::EncryptionConfiguration::Representation
|
|
|
|
|
2015-06-23 23:05:46 +00:00
|
|
|
property :etag, as: 'etag'
|
2017-04-03 20:18:48 +00:00
|
|
|
property :expiration_time, :numeric_string => true, as: 'expirationTime'
|
2015-07-31 00:05:47 +00:00
|
|
|
property :external_data_configuration, as: 'externalDataConfiguration', class: Google::Apis::BigqueryV2::ExternalDataConfiguration, decorator: Google::Apis::BigqueryV2::ExternalDataConfiguration::Representation
|
|
|
|
|
2015-06-23 23:05:46 +00:00
|
|
|
property :friendly_name, as: 'friendlyName'
|
|
|
|
property :id, as: 'id'
|
|
|
|
property :kind, as: 'kind'
|
2017-01-13 23:04:35 +00:00
|
|
|
hash :labels, as: 'labels'
|
2017-04-03 20:18:48 +00:00
|
|
|
property :last_modified_time, :numeric_string => true, as: 'lastModifiedTime'
|
2015-06-25 23:12:26 +00:00
|
|
|
property :location, as: 'location'
|
2017-04-03 20:18:48 +00:00
|
|
|
property :num_bytes, :numeric_string => true, as: 'numBytes'
|
|
|
|
property :num_long_term_bytes, :numeric_string => true, as: 'numLongTermBytes'
|
|
|
|
property :num_rows, :numeric_string => true, as: 'numRows'
|
2015-06-23 23:05:46 +00:00
|
|
|
property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation
|
|
|
|
|
|
|
|
property :self_link, as: 'selfLink'
|
2015-12-03 01:10:07 +00:00
|
|
|
property :streaming_buffer, as: 'streamingBuffer', class: Google::Apis::BigqueryV2::Streamingbuffer, decorator: Google::Apis::BigqueryV2::Streamingbuffer::Representation
|
|
|
|
|
2015-06-23 23:05:46 +00:00
|
|
|
property :table_reference, as: 'tableReference', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
|
|
|
|
|
2016-05-16 16:49:15 +00:00
|
|
|
property :time_partitioning, as: 'timePartitioning', class: Google::Apis::BigqueryV2::TimePartitioning, decorator: Google::Apis::BigqueryV2::TimePartitioning::Representation
|
|
|
|
|
2015-06-23 23:05:46 +00:00
|
|
|
property :type, as: 'type'
|
|
|
|
property :view, as: 'view', class: Google::Apis::BigqueryV2::ViewDefinition, decorator: Google::Apis::BigqueryV2::ViewDefinition::Representation
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class TableCell
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :v, as: 'v'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class InsertAllTableDataRequest
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :ignore_unknown_values, as: 'ignoreUnknownValues'
|
|
|
|
property :kind, as: 'kind'
|
|
|
|
collection :rows, as: 'rows', class: Google::Apis::BigqueryV2::InsertAllTableDataRequest::Row, decorator: Google::Apis::BigqueryV2::InsertAllTableDataRequest::Row::Representation
|
|
|
|
|
|
|
|
property :skip_invalid_rows, as: 'skipInvalidRows'
|
2015-12-03 01:10:07 +00:00
|
|
|
property :template_suffix, as: 'templateSuffix'
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class Row
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :insert_id, as: 'insertId'
|
|
|
|
hash :json, as: 'json'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class InsertAllTableDataResponse
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :insert_errors, as: 'insertErrors', class: Google::Apis::BigqueryV2::InsertAllTableDataResponse::InsertError, decorator: Google::Apis::BigqueryV2::InsertAllTableDataResponse::InsertError::Representation
|
|
|
|
|
|
|
|
property :kind, as: 'kind'
|
|
|
|
end
|
|
|
|
|
|
|
|
class InsertError
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :errors, as: 'errors', class: Google::Apis::BigqueryV2::ErrorProto, decorator: Google::Apis::BigqueryV2::ErrorProto::Representation
|
|
|
|
|
|
|
|
property :index, as: 'index'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class TableDataList
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :etag, as: 'etag'
|
|
|
|
property :kind, as: 'kind'
|
|
|
|
property :page_token, as: 'pageToken'
|
|
|
|
collection :rows, as: 'rows', class: Google::Apis::BigqueryV2::TableRow, decorator: Google::Apis::BigqueryV2::TableRow::Representation
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
property :total_rows, :numeric_string => true, as: 'totalRows'
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class TableFieldSchema
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :description, as: 'description'
|
|
|
|
collection :fields, as: 'fields', class: Google::Apis::BigqueryV2::TableFieldSchema, decorator: Google::Apis::BigqueryV2::TableFieldSchema::Representation
|
|
|
|
|
|
|
|
property :mode, as: 'mode'
|
|
|
|
property :name, as: 'name'
|
|
|
|
property :type, as: 'type'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class TableList
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :etag, as: 'etag'
|
|
|
|
property :kind, as: 'kind'
|
|
|
|
property :next_page_token, as: 'nextPageToken'
|
|
|
|
collection :tables, as: 'tables', class: Google::Apis::BigqueryV2::TableList::Table, decorator: Google::Apis::BigqueryV2::TableList::Table::Representation
|
|
|
|
|
|
|
|
property :total_items, as: 'totalItems'
|
|
|
|
end
|
|
|
|
|
|
|
|
class Table
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-10-07 00:35:43 +00:00
|
|
|
property :creation_time, :numeric_string => true, as: 'creationTime'
|
|
|
|
property :expiration_time, :numeric_string => true, as: 'expirationTime'
|
2015-06-23 23:05:46 +00:00
|
|
|
property :friendly_name, as: 'friendlyName'
|
|
|
|
property :id, as: 'id'
|
|
|
|
property :kind, as: 'kind'
|
2017-01-13 23:04:35 +00:00
|
|
|
hash :labels, as: 'labels'
|
2015-06-23 23:05:46 +00:00
|
|
|
property :table_reference, as: 'tableReference', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
|
|
|
|
|
2017-07-12 20:10:42 +00:00
|
|
|
property :time_partitioning, as: 'timePartitioning', class: Google::Apis::BigqueryV2::TimePartitioning, decorator: Google::Apis::BigqueryV2::TimePartitioning::Representation
|
|
|
|
|
2015-06-23 23:05:46 +00:00
|
|
|
property :type, as: 'type'
|
2017-03-10 21:11:09 +00:00
|
|
|
property :view, as: 'view', class: Google::Apis::BigqueryV2::TableList::Table::View, decorator: Google::Apis::BigqueryV2::TableList::Table::View::Representation
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
class View
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :use_legacy_sql, as: 'useLegacySql'
|
|
|
|
end
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class TableReference
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :dataset_id, as: 'datasetId'
|
|
|
|
property :project_id, as: 'projectId'
|
|
|
|
property :table_id, as: 'tableId'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class TableRow
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :f, as: 'f', class: Google::Apis::BigqueryV2::TableCell, decorator: Google::Apis::BigqueryV2::TableCell::Representation
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class TableSchema
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :fields, as: 'fields', class: Google::Apis::BigqueryV2::TableFieldSchema, decorator: Google::Apis::BigqueryV2::TableFieldSchema::Representation
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2016-05-16 16:49:15 +00:00
|
|
|
class TimePartitioning
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-04-03 20:18:48 +00:00
|
|
|
property :expiration_ms, :numeric_string => true, as: 'expirationMs'
|
2017-09-02 00:36:51 +00:00
|
|
|
property :field, as: 'field'
|
2018-02-10 00:35:32 +00:00
|
|
|
property :require_partition_filter, as: 'requirePartitionFilter'
|
2016-05-16 16:49:15 +00:00
|
|
|
property :type, as: 'type'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2015-07-20 21:49:34 +00:00
|
|
|
class UserDefinedFunctionResource
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :inline_code, as: 'inlineCode'
|
|
|
|
property :resource_uri, as: 'resourceUri'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2015-06-23 23:05:46 +00:00
|
|
|
class ViewDefinition
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :query, as: 'query'
|
2016-06-09 20:22:21 +00:00
|
|
|
property :use_legacy_sql, as: 'useLegacySql'
|
2015-12-03 01:10:07 +00:00
|
|
|
collection :user_defined_function_resources, as: 'userDefinedFunctionResources', class: Google::Apis::BigqueryV2::UserDefinedFunctionResource, decorator: Google::Apis::BigqueryV2::UserDefinedFunctionResource::Representation
|
|
|
|
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|