google-api-client 0.9.6 → 0.9.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/api_names.yaml +15 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +75 -12
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +25 -5
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +6 -2
- data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +1 -1
- data/generated/google/apis/admin_directory_v1/representations.rb +1 -2
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4.rb +37 -0
- data/generated/google/apis/analyticsreporting_v4/classes.rb +1385 -0
- data/generated/google/apis/analyticsreporting_v4/representations.rb +597 -0
- data/generated/google/apis/analyticsreporting_v4/service.rb +88 -0
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +98 -2
- data/generated/google/apis/androidenterprise_v1/representations.rb +48 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +63 -1
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +268 -0
- data/generated/google/apis/androidpublisher_v2/representations.rb +142 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +121 -0
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/autoscaler_v1beta2.rb +1 -1
- data/generated/google/apis/autoscaler_v1beta2/classes.rb +10 -47
- data/generated/google/apis/autoscaler_v1beta2/representations.rb +1 -18
- data/generated/google/apis/autoscaler_v1beta2/service.rb +4 -4
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +97 -61
- data/generated/google/apis/bigquery_v2/representations.rb +23 -18
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +23 -2
- data/generated/google/apis/classroom_v1/classes.rb +920 -6
- data/generated/google/apis/classroom_v1/representations.rb +419 -0
- data/generated/google/apis/classroom_v1/service.rb +507 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +30 -23
- data/generated/google/apis/cloudbuild_v1/representations.rb +4 -3
- data/generated/google/apis/cloudbuild_v1/service.rb +25 -25
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +55 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +40 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +35 -0
- data/generated/google/apis/cloudtrace_v1.rb +11 -3
- data/generated/google/apis/cloudtrace_v1/classes.rb +5 -5
- data/generated/google/apis/cloudtrace_v1/service.rb +8 -6
- data/generated/google/apis/compute_beta.rb +2 -2
- data/generated/google/apis/compute_beta/classes.rb +162 -32
- data/generated/google/apis/compute_beta/representations.rb +58 -0
- data/generated/google/apis/compute_beta/service.rb +392 -267
- data/generated/google/apis/compute_v1.rb +2 -2
- data/generated/google/apis/compute_v1/classes.rb +21 -9
- data/generated/google/apis/compute_v1/representations.rb +1 -0
- data/generated/google/apis/compute_v1/service.rb +291 -253
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +148 -0
- data/generated/google/apis/container_v1/representations.rb +55 -0
- data/generated/google/apis/container_v1/service.rb +161 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +18 -6
- data/generated/google/apis/content_v2/representations.rb +1 -0
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1.rb +2 -11
- data/generated/google/apis/dataproc_v1/classes.rb +0 -19
- data/generated/google/apis/dataproc_v1/representations.rb +0 -13
- data/generated/google/apis/dataproc_v1/service.rb +8 -87
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/dfareporting_v2_3.rb +1 -1
- data/generated/google/apis/dfareporting_v2_3/classes.rb +41 -32
- data/generated/google/apis/discovery_v1.rb +2 -2
- data/generated/google/apis/discovery_v1/service.rb +2 -2
- data/generated/google/apis/dns_v1.rb +2 -3
- data/generated/google/apis/dns_v1/service.rb +1 -2
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +3 -2
- data/generated/google/apis/drive_v2/service.rb +2 -1
- data/generated/google/apis/drive_v3.rb +3 -2
- data/generated/google/apis/drive_v3/service.rb +2 -1
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_management_v1management/classes.rb +34 -0
- data/generated/google/apis/games_management_v1management/representations.rb +16 -0
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +34 -0
- data/generated/google/apis/games_v1/representations.rb +16 -0
- data/generated/google/apis/games_v1/service.rb +212 -53
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +18 -0
- data/generated/google/apis/genomics_v1/representations.rb +3 -0
- data/generated/google/apis/genomics_v1/service.rb +2 -2
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +19 -7
- data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -1
- data/generated/google/apis/mybusiness_v3.rb +32 -0
- data/generated/google/apis/mybusiness_v3/classes.rb +1864 -0
- data/generated/google/apis/mybusiness_v3/representations.rb +741 -0
- data/generated/google/apis/mybusiness_v3/service.rb +960 -0
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/plus_domains_v1.rb +2 -2
- data/generated/google/apis/plus_domains_v1/service.rb +1 -1
- data/generated/google/apis/plus_v1.rb +2 -2
- data/generated/google/apis/plus_v1/service.rb +1 -1
- data/generated/google/apis/prediction_v1_6.rb +4 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +5 -2
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +169 -22
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +36 -1
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +254 -39
- data/generated/google/apis/replicapool_v1beta2.rb +3 -3
- data/generated/google/apis/replicapool_v1beta2/service.rb +2 -2
- data/generated/google/apis/resourceviews_v1beta2.rb +1 -1
- data/generated/google/apis/script_v1.rb +6 -3
- data/generated/google/apis/script_v1/service.rb +2 -2
- data/generated/google/apis/sheets_v4.rb +43 -0
- data/generated/google/apis/sheets_v4/classes.rb +5425 -0
- data/generated/google/apis/sheets_v4/representations.rb +2070 -0
- data/generated/google/apis/sheets_v4/service.rb +402 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +19 -4
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +3 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +2 -1
- data/generated/google/apis/taskqueue_v1beta2.rb +2 -2
- data/generated/google/apis/taskqueue_v1beta2/service.rb +1 -1
- data/generated/google/apis/vision_v1.rb +4 -5
- data/generated/google/apis/vision_v1/classes.rb +69 -68
- data/generated/google/apis/vision_v1/representations.rb +13 -13
- data/generated/google/apis/vision_v1/service.rb +3 -4
- data/generated/google/apis/youtube_analytics_v1.rb +2 -2
- data/generated/google/apis/youtube_analytics_v1/service.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +121 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +50 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +40 -0
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +24 -0
- data/generated/google/apis/youtube_v3/representations.rb +4 -0
- data/generated/google/apis/youtubereporting_v1.rb +3 -3
- data/generated/google/apis/youtubereporting_v1/classes.rb +19 -0
- data/generated/google/apis/youtubereporting_v1/representations.rb +3 -0
- data/generated/google/apis/youtubereporting_v1/service.rb +3 -4
- data/lib/google/apis/version.rb +1 -1
- metadata +14 -2
@@ -102,12 +102,6 @@ module Google
|
|
102
102
|
|
103
103
|
class Zone
|
104
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
-
|
106
|
-
class MaintenanceWindow
|
107
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
108
|
-
|
109
|
-
include Google::Apis::Core::JsonObjectSupport
|
110
|
-
end
|
111
105
|
|
112
106
|
include Google::Apis::Core::JsonObjectSupport
|
113
107
|
end
|
@@ -197,6 +191,7 @@ module Google
|
|
197
191
|
class Representation < Google::Apis::Core::JsonRepresentation
|
198
192
|
property :client_operation_id, as: 'clientOperationId'
|
199
193
|
property :creation_timestamp, as: 'creationTimestamp'
|
194
|
+
property :description, as: 'description'
|
200
195
|
property :end_time, as: 'endTime'
|
201
196
|
property :error, as: 'error', class: Google::Apis::AutoscalerV1beta2::Operation::Error, decorator: Google::Apis::AutoscalerV1beta2::Operation::Error::Representation
|
202
197
|
|
@@ -278,23 +273,11 @@ module Google
|
|
278
273
|
property :description, as: 'description'
|
279
274
|
property :id, as: 'id'
|
280
275
|
property :kind, as: 'kind'
|
281
|
-
collection :maintenance_windows, as: 'maintenanceWindows', class: Google::Apis::AutoscalerV1beta2::Zone::MaintenanceWindow, decorator: Google::Apis::AutoscalerV1beta2::Zone::MaintenanceWindow::Representation
|
282
|
-
|
283
276
|
property :name, as: 'name'
|
284
277
|
property :region, as: 'region'
|
285
278
|
property :self_link, as: 'selfLink'
|
286
279
|
property :status, as: 'status'
|
287
280
|
end
|
288
|
-
|
289
|
-
class MaintenanceWindow
|
290
|
-
# @private
|
291
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
292
|
-
property :begin_time, as: 'beginTime'
|
293
|
-
property :description, as: 'description'
|
294
|
-
property :end_time, as: 'endTime'
|
295
|
-
property :name, as: 'name'
|
296
|
-
end
|
297
|
-
end
|
298
281
|
end
|
299
282
|
|
300
283
|
class ZoneList
|
@@ -426,10 +426,10 @@ module Google
|
|
426
426
|
end
|
427
427
|
|
428
428
|
#
|
429
|
-
# @param [String] project
|
430
429
|
# @param [String] filter
|
431
430
|
# @param [Fixnum] max_results
|
432
431
|
# @param [String] page_token
|
432
|
+
# @param [String] project
|
433
433
|
# @param [String] fields
|
434
434
|
# Selector specifying which fields to include in a partial response.
|
435
435
|
# @param [String] quota_user
|
@@ -451,14 +451,14 @@ module Google
|
|
451
451
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
452
452
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
453
453
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
454
|
-
def list_zones(
|
455
|
-
command = make_simple_command(:get, '
|
454
|
+
def list_zones(filter: nil, max_results: nil, page_token: nil, project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
455
|
+
command = make_simple_command(:get, 'zones', options)
|
456
456
|
command.response_representation = Google::Apis::AutoscalerV1beta2::ZoneList::Representation
|
457
457
|
command.response_class = Google::Apis::AutoscalerV1beta2::ZoneList
|
458
|
-
command.params['project'] = project unless project.nil?
|
459
458
|
command.query['filter'] = filter unless filter.nil?
|
460
459
|
command.query['maxResults'] = max_results unless max_results.nil?
|
461
460
|
command.query['pageToken'] = page_token unless page_token.nil?
|
461
|
+
command.query['project'] = project unless project.nil?
|
462
462
|
command.query['fields'] = fields unless fields.nil?
|
463
463
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
464
464
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/bigquery/
|
26
26
|
module BigqueryV2
|
27
27
|
VERSION = 'V2'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20160511'
|
29
29
|
|
30
30
|
# View and manage your data in Google BigQuery
|
31
31
|
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
@@ -238,7 +238,7 @@ module Google
|
|
238
238
|
# when reading the data. The default value is 0. This property is useful if you
|
239
239
|
# have header rows in the file that should be skipped.
|
240
240
|
# Corresponds to the JSON property `skipLeadingRows`
|
241
|
-
# @return [
|
241
|
+
# @return [String]
|
242
242
|
attr_accessor :skip_leading_rows
|
243
243
|
|
244
244
|
def initialize(**args)
|
@@ -714,6 +714,11 @@ module Google
|
|
714
714
|
# @return [Google::Apis::BigqueryV2::CsvOptions]
|
715
715
|
attr_accessor :csv_options
|
716
716
|
|
717
|
+
# [Optional] Additional options if sourceFormat is set to GOOGLE_SHEETS.
|
718
|
+
# Corresponds to the JSON property `googleSheetsOptions`
|
719
|
+
# @return [Google::Apis::BigqueryV2::GoogleSheetsOptions]
|
720
|
+
attr_accessor :google_sheets_options
|
721
|
+
|
717
722
|
# [Optional] Indicates if BigQuery should allow extra values that are not
|
718
723
|
# represented in the table schema. If true, the extra values are ignored. If
|
719
724
|
# false, records with extra columns are treated as bad records, and if there are
|
@@ -744,13 +749,13 @@ module Google
|
|
744
749
|
# @return [Google::Apis::BigqueryV2::TableSchema]
|
745
750
|
attr_accessor :schema
|
746
751
|
|
747
|
-
# [Required] The data format. For CSV files, specify "CSV". For
|
748
|
-
#
|
749
|
-
#
|
750
|
-
#
|
751
|
-
#
|
752
|
-
#
|
753
|
-
# project.
|
752
|
+
# [Required] The data format. For CSV files, specify "CSV". For Google sheets,
|
753
|
+
# specify "GOOGLE_SHEETS". For newline-delimited JSON, specify "
|
754
|
+
# NEWLINE_DELIMITED_JSON". For Avro files, specify "AVRO". For Google Cloud
|
755
|
+
# Datastore backups, specify "DATASTORE_BACKUP". [Experimental] For Google Cloud
|
756
|
+
# Bigtable, specify "BIGTABLE". Please note that reading from Google Cloud
|
757
|
+
# Bigtable is experimental and has to be enabled for your project. Please
|
758
|
+
# contact Google Cloud Support to enable this for your project.
|
754
759
|
# Corresponds to the JSON property `sourceFormat`
|
755
760
|
# @return [String]
|
756
761
|
attr_accessor :source_format
|
@@ -758,12 +763,11 @@ module Google
|
|
758
763
|
# [Required] The fully-qualified URIs that point to your data in Google Cloud.
|
759
764
|
# For Google Cloud Storage URIs: Each URI can contain one '*' wildcard character
|
760
765
|
# and it must come after the 'bucket' name. Size limits related to load jobs
|
761
|
-
# apply to external data sources
|
762
|
-
#
|
763
|
-
#
|
764
|
-
#
|
765
|
-
#
|
766
|
-
# character is not allowed.
|
766
|
+
# apply to external data sources. For Google Cloud Bigtable URIs: Exactly one
|
767
|
+
# URI can be specified and it has be a fully specified and valid HTTPS URL for a
|
768
|
+
# Google Cloud Bigtable table. For Google Cloud Datastore backups, exactly one
|
769
|
+
# URI can be specified, and it must end with '.backup_info'. Also, the '*'
|
770
|
+
# wildcard character is not allowed.
|
767
771
|
# Corresponds to the JSON property `sourceUris`
|
768
772
|
# @return [Array<String>]
|
769
773
|
attr_accessor :source_uris
|
@@ -778,6 +782,7 @@ module Google
|
|
778
782
|
@bigtable_options = args[:bigtable_options] if args.key?(:bigtable_options)
|
779
783
|
@compression = args[:compression] if args.key?(:compression)
|
780
784
|
@csv_options = args[:csv_options] if args.key?(:csv_options)
|
785
|
+
@google_sheets_options = args[:google_sheets_options] if args.key?(:google_sheets_options)
|
781
786
|
@ignore_unknown_values = args[:ignore_unknown_values] if args.key?(:ignore_unknown_values)
|
782
787
|
@max_bad_records = args[:max_bad_records] if args.key?(:max_bad_records)
|
783
788
|
@schema = args[:schema] if args.key?(:schema)
|
@@ -880,18 +885,23 @@ module Google
|
|
880
885
|
end
|
881
886
|
|
882
887
|
#
|
883
|
-
class
|
888
|
+
class GoogleSheetsOptions
|
884
889
|
include Google::Apis::Core::Hashable
|
885
890
|
|
886
|
-
#
|
887
|
-
#
|
888
|
-
#
|
889
|
-
|
890
|
-
|
891
|
-
#
|
892
|
-
#
|
891
|
+
# [Optional] The number of rows at the top of a sheet that BigQuery will skip
|
892
|
+
# when reading the data. The default value is 0. This property is useful if you
|
893
|
+
# have header rows that should be skipped. When autodetect is on, behavior is
|
894
|
+
# the following: * skipLeadingRows unspecified - Autodetect tries to detect
|
895
|
+
# headers in the first row. If they are not detected, the row is read as data.
|
896
|
+
# Otherwise data is read starting from the second row. * skipLeadingRows is 0 -
|
897
|
+
# Instructs autodetect that there are no headers and data should be read
|
898
|
+
# starting from the first row. * skipLeadingRows = N > 0 - Autodetect skips N-1
|
899
|
+
# rows and tries to detect headers in row N. If headers are not detected, row N
|
900
|
+
# is just skipped. Otherwise row N is used to extract column names for the
|
901
|
+
# detected schema.
|
902
|
+
# Corresponds to the JSON property `skipLeadingRows`
|
893
903
|
# @return [String]
|
894
|
-
attr_accessor :
|
904
|
+
attr_accessor :skip_leading_rows
|
895
905
|
|
896
906
|
def initialize(**args)
|
897
907
|
update!(**args)
|
@@ -899,8 +909,7 @@ module Google
|
|
899
909
|
|
900
910
|
# Update properties of this object
|
901
911
|
def update!(**args)
|
902
|
-
@
|
903
|
-
@type = args[:type] if args.key?(:type)
|
912
|
+
@skip_leading_rows = args[:skip_leading_rows] if args.key?(:skip_leading_rows)
|
904
913
|
end
|
905
914
|
end
|
906
915
|
|
@@ -1128,6 +1137,13 @@ module Google
|
|
1128
1137
|
attr_accessor :allow_quoted_newlines
|
1129
1138
|
alias_method :allow_quoted_newlines?, :allow_quoted_newlines
|
1130
1139
|
|
1140
|
+
# [Experimental] Indicates if we should automatically infer the options and
|
1141
|
+
# schema for CSV and JSON sources.
|
1142
|
+
# Corresponds to the JSON property `autodetect`
|
1143
|
+
# @return [Boolean]
|
1144
|
+
attr_accessor :autodetect
|
1145
|
+
alias_method :autodetect?, :autodetect
|
1146
|
+
|
1131
1147
|
# [Optional] Specifies whether the job is allowed to create new tables. The
|
1132
1148
|
# following values are supported: CREATE_IF_NEEDED: If the table does not exist,
|
1133
1149
|
# BigQuery creates the table. CREATE_NEVER: The table must already exist. If it
|
@@ -1262,6 +1278,7 @@ module Google
|
|
1262
1278
|
def update!(**args)
|
1263
1279
|
@allow_jagged_rows = args[:allow_jagged_rows] if args.key?(:allow_jagged_rows)
|
1264
1280
|
@allow_quoted_newlines = args[:allow_quoted_newlines] if args.key?(:allow_quoted_newlines)
|
1281
|
+
@autodetect = args[:autodetect] if args.key?(:autodetect)
|
1265
1282
|
@create_disposition = args[:create_disposition] if args.key?(:create_disposition)
|
1266
1283
|
@destination_table = args[:destination_table] if args.key?(:destination_table)
|
1267
1284
|
@encoding = args[:encoding] if args.key?(:encoding)
|
@@ -1354,10 +1371,10 @@ module Google
|
|
1354
1371
|
|
1355
1372
|
# [Experimental] Specifies whether to use BigQuery's legacy SQL dialect for this
|
1356
1373
|
# query. The default value is true. If set to false, the query will use BigQuery'
|
1357
|
-
# s
|
1358
|
-
#
|
1359
|
-
#
|
1360
|
-
#
|
1374
|
+
# s standard SQL: https://cloud.google.com/bigquery/sql-reference/ When
|
1375
|
+
# useLegacySql is set to false, the values of allowLargeResults and
|
1376
|
+
# flattenResults are ignored; query will be run as if allowLargeResults is true
|
1377
|
+
# and flattenResults is false.
|
1361
1378
|
# Corresponds to the JSON property `useLegacySql`
|
1362
1379
|
# @return [Boolean]
|
1363
1380
|
attr_accessor :use_legacy_sql
|
@@ -1687,6 +1704,12 @@ module Google
|
|
1687
1704
|
# @return [Array<Google::Apis::BigqueryV2::TableReference>]
|
1688
1705
|
attr_accessor :referenced_tables
|
1689
1706
|
|
1707
|
+
# [Output-only, Experimental] The schema of the results. Present only for
|
1708
|
+
# successful dry run of non-legacy SQL queries.
|
1709
|
+
# Corresponds to the JSON property `schema`
|
1710
|
+
# @return [Google::Apis::BigqueryV2::TableSchema]
|
1711
|
+
attr_accessor :schema
|
1712
|
+
|
1690
1713
|
# [Output-only] Total bytes billed for the job.
|
1691
1714
|
# Corresponds to the JSON property `totalBytesBilled`
|
1692
1715
|
# @return [String]
|
@@ -1707,6 +1730,7 @@ module Google
|
|
1707
1730
|
@cache_hit = args[:cache_hit] if args.key?(:cache_hit)
|
1708
1731
|
@query_plan = args[:query_plan] if args.key?(:query_plan)
|
1709
1732
|
@referenced_tables = args[:referenced_tables] if args.key?(:referenced_tables)
|
1733
|
+
@schema = args[:schema] if args.key?(:schema)
|
1710
1734
|
@total_bytes_billed = args[:total_bytes_billed] if args.key?(:total_bytes_billed)
|
1711
1735
|
@total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed)
|
1712
1736
|
end
|
@@ -1970,10 +1994,10 @@ module Google
|
|
1970
1994
|
|
1971
1995
|
# [Experimental] Specifies whether to use BigQuery's legacy SQL dialect for this
|
1972
1996
|
# query. The default value is true. If set to false, the query will use BigQuery'
|
1973
|
-
# s
|
1974
|
-
#
|
1975
|
-
#
|
1976
|
-
#
|
1997
|
+
# s standard SQL: https://cloud.google.com/bigquery/sql-reference/ When
|
1998
|
+
# useLegacySql is set to false, the values of allowLargeResults and
|
1999
|
+
# flattenResults are ignored; query will be run as if allowLargeResults is true
|
2000
|
+
# and flattenResults is false.
|
1977
2001
|
# Corresponds to the JSON property `useLegacySql`
|
1978
2002
|
# @return [Boolean]
|
1979
2003
|
attr_accessor :use_legacy_sql
|
@@ -2192,19 +2216,18 @@ module Google
|
|
2192
2216
|
# @return [String]
|
2193
2217
|
attr_accessor :num_bytes
|
2194
2218
|
|
2219
|
+
# [Output-only] The number of bytes in the table that are considered "long-term
|
2220
|
+
# storage".
|
2221
|
+
# Corresponds to the JSON property `numLongTermBytes`
|
2222
|
+
# @return [String]
|
2223
|
+
attr_accessor :num_long_term_bytes
|
2224
|
+
|
2195
2225
|
# [Output-only] The number of rows of data in this table, excluding any data in
|
2196
2226
|
# the streaming buffer.
|
2197
2227
|
# Corresponds to the JSON property `numRows`
|
2198
2228
|
# @return [String]
|
2199
2229
|
attr_accessor :num_rows
|
2200
2230
|
|
2201
|
-
# [Experimental] List of partition configurations for this table. Currently only
|
2202
|
-
# one configuration can be specified and it can only be an interval partition
|
2203
|
-
# with type daily.
|
2204
|
-
# Corresponds to the JSON property `partitionConfigurations`
|
2205
|
-
# @return [Array<Google::Apis::BigqueryV2::TablePartitionConfiguration>]
|
2206
|
-
attr_accessor :partition_configurations
|
2207
|
-
|
2208
2231
|
# [Optional] Describes the schema of this table.
|
2209
2232
|
# Corresponds to the JSON property `schema`
|
2210
2233
|
# @return [Google::Apis::BigqueryV2::TableSchema]
|
@@ -2227,6 +2250,11 @@ module Google
|
|
2227
2250
|
# @return [Google::Apis::BigqueryV2::TableReference]
|
2228
2251
|
attr_accessor :table_reference
|
2229
2252
|
|
2253
|
+
# [Experimental] If specified, configures time-based partitioning for this table.
|
2254
|
+
# Corresponds to the JSON property `timePartitioning`
|
2255
|
+
# @return [Google::Apis::BigqueryV2::TimePartitioning]
|
2256
|
+
attr_accessor :time_partitioning
|
2257
|
+
|
2230
2258
|
# [Output-only] Describes the table type. The following values are supported:
|
2231
2259
|
# TABLE: A normal BigQuery table. VIEW: A virtual table defined by a SQL query.
|
2232
2260
|
# EXTERNAL: A table that references data stored in an external storage system,
|
@@ -2257,12 +2285,13 @@ module Google
|
|
2257
2285
|
@last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
|
2258
2286
|
@location = args[:location] if args.key?(:location)
|
2259
2287
|
@num_bytes = args[:num_bytes] if args.key?(:num_bytes)
|
2288
|
+
@num_long_term_bytes = args[:num_long_term_bytes] if args.key?(:num_long_term_bytes)
|
2260
2289
|
@num_rows = args[:num_rows] if args.key?(:num_rows)
|
2261
|
-
@partition_configurations = args[:partition_configurations] if args.key?(:partition_configurations)
|
2262
2290
|
@schema = args[:schema] if args.key?(:schema)
|
2263
2291
|
@self_link = args[:self_link] if args.key?(:self_link)
|
2264
2292
|
@streaming_buffer = args[:streaming_buffer] if args.key?(:streaming_buffer)
|
2265
2293
|
@table_reference = args[:table_reference] if args.key?(:table_reference)
|
2294
|
+
@time_partitioning = args[:time_partitioning] if args.key?(:time_partitioning)
|
2266
2295
|
@type = args[:type] if args.key?(:type)
|
2267
2296
|
@view = args[:view] if args.key?(:view)
|
2268
2297
|
end
|
@@ -2597,26 +2626,6 @@ module Google
|
|
2597
2626
|
end
|
2598
2627
|
end
|
2599
2628
|
|
2600
|
-
# [Required] A partition configuration. Only one type of partition should be
|
2601
|
-
# configured.
|
2602
|
-
class TablePartitionConfiguration
|
2603
|
-
include Google::Apis::Core::Hashable
|
2604
|
-
|
2605
|
-
# [Pick one] Configures an interval partition.
|
2606
|
-
# Corresponds to the JSON property `interval`
|
2607
|
-
# @return [Google::Apis::BigqueryV2::IntervalPartitionConfiguration]
|
2608
|
-
attr_accessor :interval
|
2609
|
-
|
2610
|
-
def initialize(**args)
|
2611
|
-
update!(**args)
|
2612
|
-
end
|
2613
|
-
|
2614
|
-
# Update properties of this object
|
2615
|
-
def update!(**args)
|
2616
|
-
@interval = args[:interval] if args.key?(:interval)
|
2617
|
-
end
|
2618
|
-
end
|
2619
|
-
|
2620
2629
|
#
|
2621
2630
|
class TableReference
|
2622
2631
|
include Google::Apis::Core::Hashable
|
@@ -2687,6 +2696,33 @@ module Google
|
|
2687
2696
|
end
|
2688
2697
|
end
|
2689
2698
|
|
2699
|
+
#
|
2700
|
+
class TimePartitioning
|
2701
|
+
include Google::Apis::Core::Hashable
|
2702
|
+
|
2703
|
+
# [Optional] Number of milliseconds for which to keep the storage for a
|
2704
|
+
# partition.
|
2705
|
+
# Corresponds to the JSON property `expirationMs`
|
2706
|
+
# @return [String]
|
2707
|
+
attr_accessor :expiration_ms
|
2708
|
+
|
2709
|
+
# [Required] The only type supported is DAY, which will generate one partition
|
2710
|
+
# per day based on data loading time.
|
2711
|
+
# Corresponds to the JSON property `type`
|
2712
|
+
# @return [String]
|
2713
|
+
attr_accessor :type
|
2714
|
+
|
2715
|
+
def initialize(**args)
|
2716
|
+
update!(**args)
|
2717
|
+
end
|
2718
|
+
|
2719
|
+
# Update properties of this object
|
2720
|
+
def update!(**args)
|
2721
|
+
@expiration_ms = args[:expiration_ms] if args.key?(:expiration_ms)
|
2722
|
+
@type = args[:type] if args.key?(:type)
|
2723
|
+
end
|
2724
|
+
end
|
2725
|
+
|
2690
2726
|
#
|
2691
2727
|
class UserDefinedFunctionResource
|
2692
2728
|
include Google::Apis::Core::Hashable
|
@@ -106,7 +106,7 @@ module Google
|
|
106
106
|
include Google::Apis::Core::JsonObjectSupport
|
107
107
|
end
|
108
108
|
|
109
|
-
class
|
109
|
+
class GoogleSheetsOptions
|
110
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
111
|
|
112
112
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -298,25 +298,25 @@ module Google
|
|
298
298
|
include Google::Apis::Core::JsonObjectSupport
|
299
299
|
end
|
300
300
|
|
301
|
-
class
|
301
|
+
class TableReference
|
302
302
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
303
303
|
|
304
304
|
include Google::Apis::Core::JsonObjectSupport
|
305
305
|
end
|
306
306
|
|
307
|
-
class
|
307
|
+
class TableRow
|
308
308
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
309
309
|
|
310
310
|
include Google::Apis::Core::JsonObjectSupport
|
311
311
|
end
|
312
312
|
|
313
|
-
class
|
313
|
+
class TableSchema
|
314
314
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
315
315
|
|
316
316
|
include Google::Apis::Core::JsonObjectSupport
|
317
317
|
end
|
318
318
|
|
319
|
-
class
|
319
|
+
class TimePartitioning
|
320
320
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
321
321
|
|
322
322
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -489,6 +489,8 @@ module Google
|
|
489
489
|
property :compression, as: 'compression'
|
490
490
|
property :csv_options, as: 'csvOptions', class: Google::Apis::BigqueryV2::CsvOptions, decorator: Google::Apis::BigqueryV2::CsvOptions::Representation
|
491
491
|
|
492
|
+
property :google_sheets_options, as: 'googleSheetsOptions', class: Google::Apis::BigqueryV2::GoogleSheetsOptions, decorator: Google::Apis::BigqueryV2::GoogleSheetsOptions::Representation
|
493
|
+
|
492
494
|
property :ignore_unknown_values, as: 'ignoreUnknownValues'
|
493
495
|
property :max_bad_records, as: 'maxBadRecords'
|
494
496
|
property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation
|
@@ -519,11 +521,10 @@ module Google
|
|
519
521
|
end
|
520
522
|
end
|
521
523
|
|
522
|
-
class
|
524
|
+
class GoogleSheetsOptions
|
523
525
|
# @private
|
524
526
|
class Representation < Google::Apis::Core::JsonRepresentation
|
525
|
-
property :
|
526
|
-
property :type, as: 'type'
|
527
|
+
property :skip_leading_rows, as: 'skipLeadingRows'
|
527
528
|
end
|
528
529
|
end
|
529
530
|
|
@@ -589,6 +590,7 @@ module Google
|
|
589
590
|
class Representation < Google::Apis::Core::JsonRepresentation
|
590
591
|
property :allow_jagged_rows, as: 'allowJaggedRows'
|
591
592
|
property :allow_quoted_newlines, as: 'allowQuotedNewlines'
|
593
|
+
property :autodetect, as: 'autodetect'
|
592
594
|
property :create_disposition, as: 'createDisposition'
|
593
595
|
property :destination_table, as: 'destinationTable', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
|
594
596
|
|
@@ -711,6 +713,8 @@ module Google
|
|
711
713
|
|
712
714
|
collection :referenced_tables, as: 'referencedTables', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
|
713
715
|
|
716
|
+
property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation
|
717
|
+
|
714
718
|
property :total_bytes_billed, as: 'totalBytesBilled'
|
715
719
|
property :total_bytes_processed, as: 'totalBytesProcessed'
|
716
720
|
end
|
@@ -835,9 +839,8 @@ module Google
|
|
835
839
|
property :last_modified_time, as: 'lastModifiedTime'
|
836
840
|
property :location, as: 'location'
|
837
841
|
property :num_bytes, as: 'numBytes'
|
842
|
+
property :num_long_term_bytes, as: 'numLongTermBytes'
|
838
843
|
property :num_rows, as: 'numRows'
|
839
|
-
collection :partition_configurations, as: 'partitionConfigurations', class: Google::Apis::BigqueryV2::TablePartitionConfiguration, decorator: Google::Apis::BigqueryV2::TablePartitionConfiguration::Representation
|
840
|
-
|
841
844
|
property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation
|
842
845
|
|
843
846
|
property :self_link, as: 'selfLink'
|
@@ -845,6 +848,8 @@ module Google
|
|
845
848
|
|
846
849
|
property :table_reference, as: 'tableReference', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
|
847
850
|
|
851
|
+
property :time_partitioning, as: 'timePartitioning', class: Google::Apis::BigqueryV2::TimePartitioning, decorator: Google::Apis::BigqueryV2::TimePartitioning::Representation
|
852
|
+
|
848
853
|
property :type, as: 'type'
|
849
854
|
property :view, as: 'view', class: Google::Apis::BigqueryV2::ViewDefinition, decorator: Google::Apis::BigqueryV2::ViewDefinition::Representation
|
850
855
|
|
@@ -944,14 +949,6 @@ module Google
|
|
944
949
|
end
|
945
950
|
end
|
946
951
|
|
947
|
-
class TablePartitionConfiguration
|
948
|
-
# @private
|
949
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
950
|
-
property :interval, as: 'interval', class: Google::Apis::BigqueryV2::IntervalPartitionConfiguration, decorator: Google::Apis::BigqueryV2::IntervalPartitionConfiguration::Representation
|
951
|
-
|
952
|
-
end
|
953
|
-
end
|
954
|
-
|
955
952
|
class TableReference
|
956
953
|
# @private
|
957
954
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -977,6 +974,14 @@ module Google
|
|
977
974
|
end
|
978
975
|
end
|
979
976
|
|
977
|
+
class TimePartitioning
|
978
|
+
# @private
|
979
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
980
|
+
property :expiration_ms, as: 'expirationMs'
|
981
|
+
property :type, as: 'type'
|
982
|
+
end
|
983
|
+
end
|
984
|
+
|
980
985
|
class UserDefinedFunctionResource
|
981
986
|
# @private
|
982
987
|
class Representation < Google::Apis::Core::JsonRepresentation
|