google-api-client 0.9.12 → 0.9.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/README.md +9 -1
- data/api_names.yaml +2 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +8 -0
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +12 -4
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +13 -5
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +186 -0
- data/generated/google/apis/bigquery_v2/representations.rb +77 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/civicinfo_v2.rb +1 -1
- data/generated/google/apis/civicinfo_v2/classes.rb +10 -4
- data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
- data/generated/google/apis/civicinfo_v2/service.rb +6 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +7 -0
- data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/datastore_v1beta3/classes.rb +26 -27
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +4 -2
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +4 -2
- data/generated/google/apis/drive_v3.rb +1 -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_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +26 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +4 -0
- data/generated/google/apis/language_v1beta1.rb +36 -0
- data/generated/google/apis/language_v1beta1/classes.rb +596 -0
- data/generated/google/apis/language_v1beta1/representations.rb +289 -0
- data/generated/google/apis/language_v1beta1/service.rb +154 -0
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +2 -2
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/speech_v1beta1.rb +34 -0
- data/generated/google/apis/speech_v1beta1/classes.rb +512 -0
- data/generated/google/apis/speech_v1beta1/representations.rb +218 -0
- data/generated/google/apis/speech_v1beta1/service.rb +268 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/service.rb +2 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/google-api-client.gemspec +2 -1
- data/lib/google/apis/core/base_service.rb +10 -5
- data/lib/google/apis/version.rb +1 -1
- metadata +20 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd052e976a82cbdc9862642efef6c2b95755bdde
|
4
|
+
data.tar.gz: 1366274fbbf964ad84e08f81f5ad217b3d182473
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67daa592a6451421f833f3a4510279eefa4e6dd1437bbbf16fd4c1090ae570bc3c17dc9fd1f97ae2b165356397cba5f8388a28272cd2fa62d88c77319ee7d7d7
|
7
|
+
data.tar.gz: dc344ae552ebb22eecc33a4f6227f946af7128f3fce942b581af1e33e7b760a638d6a74245f1bf4510a63f4ad952f38a0752583bd5adb31fad89cd56490467da
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -53,6 +53,14 @@ metadata = drive.insert_file(metadata, upload_source: 'test.txt', content_type:
|
|
53
53
|
# Download a file
|
54
54
|
drive.get_file(metadata.id, download_dest: '/tmp/myfile.txt')
|
55
55
|
```
|
56
|
+
### Naming conventions vs JSON representation
|
57
|
+
|
58
|
+
Object properties in the ruby client use the standard ruby convention for naming -- snake_case. This differs from the underlying JSON representation which typically uses camelCase for properties. There are a few notable exceptions to this rule:
|
59
|
+
|
60
|
+
* For properties that are defined as hashes with user-defined keys, no translation is performed on the key.
|
61
|
+
* For embedded field masks in requests (for example, the Sheets API), specify the camelCase form when referencing fields.
|
62
|
+
|
63
|
+
Outisde those exceptions, if a property is specified using camelCase in a request, it will be ignored during serialization and omitted from the request.
|
56
64
|
|
57
65
|
### Media
|
58
66
|
|
@@ -306,7 +314,7 @@ A URL can also be specified:
|
|
306
314
|
## License
|
307
315
|
|
308
316
|
This library is licensed under Apache 2.0. Full license text is
|
309
|
-
available in [LICENSE
|
317
|
+
available in [LICENSE](LICENSE).
|
310
318
|
|
311
319
|
## Contributing
|
312
320
|
|
data/api_names.yaml
CHANGED
@@ -1050,3 +1050,5 @@
|
|
1050
1050
|
"/classroom:v1/classroom.courses.courseWork.studentSubmissions.get": get_student_submission
|
1051
1051
|
"/classroom:v1/classroom.courses.courseWork.studentSubmissions.patch": patch_student_submission
|
1052
1052
|
"/classroom:v1/classroom.courses.courseWork.studentSubmissions.list": list_student_submissions
|
1053
|
+
"/speech:v1beta1/speech.speech.syncrecognize": sync_recognize_speech
|
1054
|
+
"/speech:v1beta1/speech.speech.asyncrecognize": async_recognize_speech
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://developers.google.com/ad-exchange/buyer-rest
|
27
27
|
module AdexchangebuyerV1_4
|
28
28
|
VERSION = 'V1_4'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20160831'
|
30
30
|
|
31
31
|
# Manage your Ad Exchange buyer account configuration
|
32
32
|
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
|
@@ -1180,6 +1180,13 @@ module Google
|
|
1180
1180
|
# @return [String]
|
1181
1181
|
attr_accessor :branding_type
|
1182
1182
|
|
1183
|
+
# Indicates that this ExternalDealId exists under at least two different
|
1184
|
+
# AdxInventoryDeals. Currently, the only case that the same ExternalDealId will
|
1185
|
+
# exist is programmatic cross sell case.
|
1186
|
+
# Corresponds to the JSON property `crossListedExternalDealIdType`
|
1187
|
+
# @return [String]
|
1188
|
+
attr_accessor :cross_listed_external_deal_id_type
|
1189
|
+
|
1183
1190
|
# Description for the proposed terms of the deal.
|
1184
1191
|
# Corresponds to the JSON property `description`
|
1185
1192
|
# @return [String]
|
@@ -1230,6 +1237,7 @@ module Google
|
|
1230
1237
|
# Update properties of this object
|
1231
1238
|
def update!(**args)
|
1232
1239
|
@branding_type = args[:branding_type] if args.key?(:branding_type)
|
1240
|
+
@cross_listed_external_deal_id_type = args[:cross_listed_external_deal_id_type] if args.key?(:cross_listed_external_deal_id_type)
|
1233
1241
|
@description = args[:description] if args.key?(:description)
|
1234
1242
|
@estimated_gross_spend = args[:estimated_gross_spend] if args.key?(:estimated_gross_spend)
|
1235
1243
|
@estimated_impressions_per_day = args[:estimated_impressions_per_day] if args.key?(:estimated_impressions_per_day)
|
@@ -790,6 +790,7 @@ module Google
|
|
790
790
|
# @private
|
791
791
|
class Representation < Google::Apis::Core::JsonRepresentation
|
792
792
|
property :branding_type, as: 'brandingType'
|
793
|
+
property :cross_listed_external_deal_id_type, as: 'crossListedExternalDealIdType'
|
793
794
|
property :description, as: 'description'
|
794
795
|
property :estimated_gross_spend, as: 'estimatedGrossSpend', class: Google::Apis::AdexchangebuyerV1_4::Price, decorator: Google::Apis::AdexchangebuyerV1_4::Price::Representation
|
795
796
|
|
@@ -124,6 +124,8 @@ module Google
|
|
124
124
|
# @param [Fixnum] id
|
125
125
|
# The account id
|
126
126
|
# @param [Google::Apis::AdexchangebuyerV1_4::Account] account_object
|
127
|
+
# @param [Boolean] confirm_unsafe_account_change
|
128
|
+
# Confirmation for erasing bidder and cookie matching urls.
|
127
129
|
# @param [String] fields
|
128
130
|
# Selector specifying which fields to include in a partial response.
|
129
131
|
# @param [String] quota_user
|
@@ -145,13 +147,14 @@ module Google
|
|
145
147
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
146
148
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
147
149
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
148
|
-
def patch_account(id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
150
|
+
def patch_account(id, account_object = nil, confirm_unsafe_account_change: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
149
151
|
command = make_simple_command(:patch, 'accounts/{id}', options)
|
150
152
|
command.request_representation = Google::Apis::AdexchangebuyerV1_4::Account::Representation
|
151
153
|
command.request_object = account_object
|
152
154
|
command.response_representation = Google::Apis::AdexchangebuyerV1_4::Account::Representation
|
153
155
|
command.response_class = Google::Apis::AdexchangebuyerV1_4::Account
|
154
156
|
command.params['id'] = id unless id.nil?
|
157
|
+
command.query['confirmUnsafeAccountChange'] = confirm_unsafe_account_change unless confirm_unsafe_account_change.nil?
|
155
158
|
command.query['fields'] = fields unless fields.nil?
|
156
159
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
157
160
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -162,6 +165,8 @@ module Google
|
|
162
165
|
# @param [Fixnum] id
|
163
166
|
# The account id
|
164
167
|
# @param [Google::Apis::AdexchangebuyerV1_4::Account] account_object
|
168
|
+
# @param [Boolean] confirm_unsafe_account_change
|
169
|
+
# Confirmation for erasing bidder and cookie matching urls.
|
165
170
|
# @param [String] fields
|
166
171
|
# Selector specifying which fields to include in a partial response.
|
167
172
|
# @param [String] quota_user
|
@@ -183,13 +188,14 @@ module Google
|
|
183
188
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
184
189
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
185
190
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
186
|
-
def update_account(id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
191
|
+
def update_account(id, account_object = nil, confirm_unsafe_account_change: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
187
192
|
command = make_simple_command(:put, 'accounts/{id}', options)
|
188
193
|
command.request_representation = Google::Apis::AdexchangebuyerV1_4::Account::Representation
|
189
194
|
command.request_object = account_object
|
190
195
|
command.response_representation = Google::Apis::AdexchangebuyerV1_4::Account::Representation
|
191
196
|
command.response_class = Google::Apis::AdexchangebuyerV1_4::Account
|
192
197
|
command.params['id'] = id unless id.nil?
|
198
|
+
command.query['confirmUnsafeAccountChange'] = confirm_unsafe_account_change unless confirm_unsafe_account_change.nil?
|
193
199
|
command.query['fields'] = fields unless fields.nil?
|
194
200
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
195
201
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -1291,7 +1297,8 @@ module Google
|
|
1291
1297
|
# should then fetch the latest proposal at head revision and retry the update at
|
1292
1298
|
# that revision.
|
1293
1299
|
# @param [String] update_action
|
1294
|
-
# The proposed action to take on the proposal.
|
1300
|
+
# The proposed action to take on the proposal. This field is required and it
|
1301
|
+
# must be set when updating a proposal.
|
1295
1302
|
# @param [Google::Apis::AdexchangebuyerV1_4::Proposal] proposal_object
|
1296
1303
|
# @param [String] fields
|
1297
1304
|
# Selector specifying which fields to include in a partial response.
|
@@ -1406,7 +1413,8 @@ module Google
|
|
1406
1413
|
# should then fetch the latest proposal at head revision and retry the update at
|
1407
1414
|
# that revision.
|
1408
1415
|
# @param [String] update_action
|
1409
|
-
# The proposed action to take on the proposal.
|
1416
|
+
# The proposed action to take on the proposal. This field is required and it
|
1417
|
+
# must be set when updating a proposal.
|
1410
1418
|
# @param [Google::Apis::AdexchangebuyerV1_4::Proposal] proposal_object
|
1411
1419
|
# @param [String] fields
|
1412
1420
|
# Selector specifying which fields to include in a partial response.
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://developers.google.com/admin-sdk/directory/
|
27
27
|
module AdminDirectoryV1
|
28
28
|
VERSION = 'DirectoryV1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20160824'
|
30
30
|
|
31
31
|
# View and manage customer related information
|
32
32
|
AUTH_ADMIN_DIRECTORY_CUSTOMER = 'https://www.googleapis.com/auth/admin.directory.customer'
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/adsense/management/
|
26
26
|
module AdsenseV1_4
|
27
27
|
VERSION = 'V1_4'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20160830'
|
29
29
|
|
30
30
|
# View and manage your AdSense data
|
31
31
|
AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense'
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://developers.google.com/adsense/host/
|
27
27
|
module AdsensehostV4_1
|
28
28
|
VERSION = 'V4_1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20160830'
|
30
30
|
|
31
31
|
# View and manage your AdSense host data and associated accounts
|
32
32
|
AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost'
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/android/work/play/emm-api
|
26
26
|
module AndroidenterpriseV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20160825'
|
29
29
|
|
30
30
|
# Manage corporate Android devices
|
31
31
|
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
|
@@ -439,11 +439,19 @@ module Google
|
|
439
439
|
# @return [String]
|
440
440
|
attr_accessor :kind
|
441
441
|
|
442
|
-
#
|
443
|
-
#
|
444
|
-
#
|
445
|
-
#
|
446
|
-
#
|
442
|
+
# Identifies the extent to which the device is controlled by an Android for Work
|
443
|
+
# EMM in various deployment configurations.
|
444
|
+
# Possible values include:
|
445
|
+
# - "managedDevice"—A device that has the EMM's device policy controller (DPC)
|
446
|
+
# as the device owner.
|
447
|
+
# - "managedProfile"—A device that has a work profile managed by the DPC (DPC is
|
448
|
+
# profile owner) in addition to a separate, personal profile that is unavailable
|
449
|
+
# to the DPC.
|
450
|
+
# - "containerApp"—A device running the Android for Work App. The Android for
|
451
|
+
# Work App is managed by the DPC.
|
452
|
+
# - "unmanagedProfile"—A device that has been allowed (by the domain's admin,
|
453
|
+
# using the Admin Console to enable the privilege) to use Android for Work apps
|
454
|
+
# or Google Apps for Work, but the profile is itself not owned by a DPC.
|
447
455
|
# Corresponds to the JSON property `managementType`
|
448
456
|
# @return [String]
|
449
457
|
attr_accessor :management_type
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/android-publisher
|
26
26
|
module AndroidpublisherV2
|
27
27
|
VERSION = 'V2'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20160817'
|
29
29
|
|
30
30
|
# View and manage your Google Play Developer account
|
31
31
|
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/games/services/web/api/states
|
26
26
|
module AppstateV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20160824'
|
29
29
|
|
30
30
|
# View and manage your data for this application
|
31
31
|
AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate'
|
@@ -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 = '20160822'
|
29
29
|
|
30
30
|
# View and manage your data in Google BigQuery
|
31
31
|
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
@@ -1271,6 +1271,18 @@ module Google
|
|
1271
1271
|
# @return [String]
|
1272
1272
|
attr_accessor :schema_inline_format
|
1273
1273
|
|
1274
|
+
# [Experimental] Allows the schema of the desitination table to be updated as a
|
1275
|
+
# side effect of the load job. Schema update options are supported in two cases:
|
1276
|
+
# when writeDisposition is WRITE_APPEND; when writeDisposition is WRITE_TRUNCATE
|
1277
|
+
# and the destination table is a partition of a table, specified by partition
|
1278
|
+
# decorators. For normal tables, WRITE_TRUNCATE will always overwrite the schema.
|
1279
|
+
# One or more of the following values are specified: ALLOW_FIELD_ADDITION:
|
1280
|
+
# allow adding a nullable field to the schema. ALLOW_FIELD_RELAXATION: allow
|
1281
|
+
# relaxing a required field in the original schema to nullable.
|
1282
|
+
# Corresponds to the JSON property `schemaUpdateOptions`
|
1283
|
+
# @return [Array<String>]
|
1284
|
+
attr_accessor :schema_update_options
|
1285
|
+
|
1274
1286
|
# [Optional] The number of rows at the top of a CSV file that BigQuery will skip
|
1275
1287
|
# when loading the data. The default value is 0. This property is useful if you
|
1276
1288
|
# have header rows in the file that should be skipped.
|
@@ -1325,6 +1337,7 @@ module Google
|
|
1325
1337
|
@schema = args[:schema] if args.key?(:schema)
|
1326
1338
|
@schema_inline = args[:schema_inline] if args.key?(:schema_inline)
|
1327
1339
|
@schema_inline_format = args[:schema_inline_format] if args.key?(:schema_inline_format)
|
1340
|
+
@schema_update_options = args[:schema_update_options] if args.key?(:schema_update_options)
|
1328
1341
|
@skip_leading_rows = args[:skip_leading_rows] if args.key?(:skip_leading_rows)
|
1329
1342
|
@source_format = args[:source_format] if args.key?(:source_format)
|
1330
1343
|
@source_uris = args[:source_uris] if args.key?(:source_uris)
|
@@ -1386,6 +1399,12 @@ module Google
|
|
1386
1399
|
# @return [String]
|
1387
1400
|
attr_accessor :maximum_bytes_billed
|
1388
1401
|
|
1402
|
+
# [Experimental] Standard SQL only. Whether to use positional (?) or named (@
|
1403
|
+
# myparam) query parameters in this query.
|
1404
|
+
# Corresponds to the JSON property `parameterMode`
|
1405
|
+
# @return [String]
|
1406
|
+
attr_accessor :parameter_mode
|
1407
|
+
|
1389
1408
|
# [Deprecated] This property is deprecated.
|
1390
1409
|
# Corresponds to the JSON property `preserveNulls`
|
1391
1410
|
# @return [Boolean]
|
@@ -1403,6 +1422,24 @@ module Google
|
|
1403
1422
|
# @return [String]
|
1404
1423
|
attr_accessor :query
|
1405
1424
|
|
1425
|
+
# [Experimental] Query parameters for Standard SQL queries.
|
1426
|
+
# Corresponds to the JSON property `queryParameters`
|
1427
|
+
# @return [Array<Google::Apis::BigqueryV2::QueryParameter>]
|
1428
|
+
attr_accessor :query_parameters
|
1429
|
+
|
1430
|
+
# [Experimental] Allows the schema of the desitination table to be updated as a
|
1431
|
+
# side effect of the query job. Schema update options are supported in two cases:
|
1432
|
+
# when writeDisposition is WRITE_APPEND; when writeDisposition is
|
1433
|
+
# WRITE_TRUNCATE and the destination table is a partition of a table, specified
|
1434
|
+
# by partition decorators. For normal tables, WRITE_TRUNCATE will always
|
1435
|
+
# overwrite the schema. One or more of the following values are specified:
|
1436
|
+
# ALLOW_FIELD_ADDITION: allow adding a nullable field to the schema.
|
1437
|
+
# ALLOW_FIELD_RELAXATION: allow relaxing a required field in the original schema
|
1438
|
+
# to nullable.
|
1439
|
+
# Corresponds to the JSON property `schemaUpdateOptions`
|
1440
|
+
# @return [Array<String>]
|
1441
|
+
attr_accessor :schema_update_options
|
1442
|
+
|
1406
1443
|
# [Optional] If querying an external data source outside of BigQuery, describes
|
1407
1444
|
# the data format, location and other properties of the data source. By defining
|
1408
1445
|
# these properties, the data source can then be queried as if it were a standard
|
@@ -1461,9 +1498,12 @@ module Google
|
|
1461
1498
|
@flatten_results = args[:flatten_results] if args.key?(:flatten_results)
|
1462
1499
|
@maximum_billing_tier = args[:maximum_billing_tier] if args.key?(:maximum_billing_tier)
|
1463
1500
|
@maximum_bytes_billed = args[:maximum_bytes_billed] if args.key?(:maximum_bytes_billed)
|
1501
|
+
@parameter_mode = args[:parameter_mode] if args.key?(:parameter_mode)
|
1464
1502
|
@preserve_nulls = args[:preserve_nulls] if args.key?(:preserve_nulls)
|
1465
1503
|
@priority = args[:priority] if args.key?(:priority)
|
1466
1504
|
@query = args[:query] if args.key?(:query)
|
1505
|
+
@query_parameters = args[:query_parameters] if args.key?(:query_parameters)
|
1506
|
+
@schema_update_options = args[:schema_update_options] if args.key?(:schema_update_options)
|
1467
1507
|
@table_definitions = args[:table_definitions] if args.key?(:table_definitions)
|
1468
1508
|
@use_legacy_sql = args[:use_legacy_sql] if args.key?(:use_legacy_sql)
|
1469
1509
|
@use_query_cache = args[:use_query_cache] if args.key?(:use_query_cache)
|
@@ -1768,6 +1808,12 @@ module Google
|
|
1768
1808
|
# @return [String]
|
1769
1809
|
attr_accessor :total_bytes_processed
|
1770
1810
|
|
1811
|
+
# [Output-only, Experimental] Standard SQL only: list of undeclared query
|
1812
|
+
# parameters detected during a dry run validation.
|
1813
|
+
# Corresponds to the JSON property `undeclaredQueryParameters`
|
1814
|
+
# @return [Array<Google::Apis::BigqueryV2::QueryParameter>]
|
1815
|
+
attr_accessor :undeclared_query_parameters
|
1816
|
+
|
1771
1817
|
def initialize(**args)
|
1772
1818
|
update!(**args)
|
1773
1819
|
end
|
@@ -1782,6 +1828,7 @@ module Google
|
|
1782
1828
|
@schema = args[:schema] if args.key?(:schema)
|
1783
1829
|
@total_bytes_billed = args[:total_bytes_billed] if args.key?(:total_bytes_billed)
|
1784
1830
|
@total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed)
|
1831
|
+
@undeclared_query_parameters = args[:undeclared_query_parameters] if args.key?(:undeclared_query_parameters)
|
1785
1832
|
end
|
1786
1833
|
end
|
1787
1834
|
|
@@ -1984,6 +2031,132 @@ module Google
|
|
1984
2031
|
end
|
1985
2032
|
end
|
1986
2033
|
|
2034
|
+
#
|
2035
|
+
class QueryParameter
|
2036
|
+
include Google::Apis::Core::Hashable
|
2037
|
+
|
2038
|
+
# [Optional] If unset, this is a positional parameter. Otherwise, should be
|
2039
|
+
# unique within a query.
|
2040
|
+
# Corresponds to the JSON property `name`
|
2041
|
+
# @return [String]
|
2042
|
+
attr_accessor :name
|
2043
|
+
|
2044
|
+
# [Required] The type of this parameter.
|
2045
|
+
# Corresponds to the JSON property `parameterType`
|
2046
|
+
# @return [Google::Apis::BigqueryV2::QueryParameterType]
|
2047
|
+
attr_accessor :parameter_type
|
2048
|
+
|
2049
|
+
# [Required] The value of this parameter.
|
2050
|
+
# Corresponds to the JSON property `parameterValue`
|
2051
|
+
# @return [Google::Apis::BigqueryV2::QueryParameterValue]
|
2052
|
+
attr_accessor :parameter_value
|
2053
|
+
|
2054
|
+
def initialize(**args)
|
2055
|
+
update!(**args)
|
2056
|
+
end
|
2057
|
+
|
2058
|
+
# Update properties of this object
|
2059
|
+
def update!(**args)
|
2060
|
+
@name = args[:name] if args.key?(:name)
|
2061
|
+
@parameter_type = args[:parameter_type] if args.key?(:parameter_type)
|
2062
|
+
@parameter_value = args[:parameter_value] if args.key?(:parameter_value)
|
2063
|
+
end
|
2064
|
+
end
|
2065
|
+
|
2066
|
+
#
|
2067
|
+
class QueryParameterType
|
2068
|
+
include Google::Apis::Core::Hashable
|
2069
|
+
|
2070
|
+
# [Optional] The type of the array's elements, if this is an array.
|
2071
|
+
# Corresponds to the JSON property `arrayType`
|
2072
|
+
# @return [Google::Apis::BigqueryV2::QueryParameterType]
|
2073
|
+
attr_accessor :array_type
|
2074
|
+
|
2075
|
+
# [Optional] The types of the fields of this struct, in order, if this is a
|
2076
|
+
# struct.
|
2077
|
+
# Corresponds to the JSON property `structTypes`
|
2078
|
+
# @return [Array<Google::Apis::BigqueryV2::QueryParameterType::StructType>]
|
2079
|
+
attr_accessor :struct_types
|
2080
|
+
|
2081
|
+
# [Required] The top level type of this field.
|
2082
|
+
# Corresponds to the JSON property `type`
|
2083
|
+
# @return [String]
|
2084
|
+
attr_accessor :type
|
2085
|
+
|
2086
|
+
def initialize(**args)
|
2087
|
+
update!(**args)
|
2088
|
+
end
|
2089
|
+
|
2090
|
+
# Update properties of this object
|
2091
|
+
def update!(**args)
|
2092
|
+
@array_type = args[:array_type] if args.key?(:array_type)
|
2093
|
+
@struct_types = args[:struct_types] if args.key?(:struct_types)
|
2094
|
+
@type = args[:type] if args.key?(:type)
|
2095
|
+
end
|
2096
|
+
|
2097
|
+
#
|
2098
|
+
class StructType
|
2099
|
+
include Google::Apis::Core::Hashable
|
2100
|
+
|
2101
|
+
# [Optional] Human-oriented description of the field.
|
2102
|
+
# Corresponds to the JSON property `description`
|
2103
|
+
# @return [String]
|
2104
|
+
attr_accessor :description
|
2105
|
+
|
2106
|
+
# [Optional] The name of this field.
|
2107
|
+
# Corresponds to the JSON property `name`
|
2108
|
+
# @return [String]
|
2109
|
+
attr_accessor :name
|
2110
|
+
|
2111
|
+
# [Required] The type of this field.
|
2112
|
+
# Corresponds to the JSON property `type`
|
2113
|
+
# @return [Google::Apis::BigqueryV2::QueryParameterType]
|
2114
|
+
attr_accessor :type
|
2115
|
+
|
2116
|
+
def initialize(**args)
|
2117
|
+
update!(**args)
|
2118
|
+
end
|
2119
|
+
|
2120
|
+
# Update properties of this object
|
2121
|
+
def update!(**args)
|
2122
|
+
@description = args[:description] if args.key?(:description)
|
2123
|
+
@name = args[:name] if args.key?(:name)
|
2124
|
+
@type = args[:type] if args.key?(:type)
|
2125
|
+
end
|
2126
|
+
end
|
2127
|
+
end
|
2128
|
+
|
2129
|
+
#
|
2130
|
+
class QueryParameterValue
|
2131
|
+
include Google::Apis::Core::Hashable
|
2132
|
+
|
2133
|
+
# [Optional] The array values, if this is an array type.
|
2134
|
+
# Corresponds to the JSON property `arrayValues`
|
2135
|
+
# @return [Array<Google::Apis::BigqueryV2::QueryParameterValue>]
|
2136
|
+
attr_accessor :array_values
|
2137
|
+
|
2138
|
+
# [Optional] The struct field values, in order of the struct type's declaration.
|
2139
|
+
# Corresponds to the JSON property `structValues`
|
2140
|
+
# @return [Array<Google::Apis::BigqueryV2::QueryParameterValue>]
|
2141
|
+
attr_accessor :struct_values
|
2142
|
+
|
2143
|
+
# [Optional] The value of this value, if a simple scalar type.
|
2144
|
+
# Corresponds to the JSON property `value`
|
2145
|
+
# @return [String]
|
2146
|
+
attr_accessor :value
|
2147
|
+
|
2148
|
+
def initialize(**args)
|
2149
|
+
update!(**args)
|
2150
|
+
end
|
2151
|
+
|
2152
|
+
# Update properties of this object
|
2153
|
+
def update!(**args)
|
2154
|
+
@array_values = args[:array_values] if args.key?(:array_values)
|
2155
|
+
@struct_values = args[:struct_values] if args.key?(:struct_values)
|
2156
|
+
@value = args[:value] if args.key?(:value)
|
2157
|
+
end
|
2158
|
+
end
|
2159
|
+
|
1987
2160
|
#
|
1988
2161
|
class QueryRequest
|
1989
2162
|
include Google::Apis::Core::Hashable
|
@@ -2018,6 +2191,12 @@ module Google
|
|
2018
2191
|
# @return [Fixnum]
|
2019
2192
|
attr_accessor :max_results
|
2020
2193
|
|
2194
|
+
# [Experimental] Standard SQL only. Whether to use positional (?) or named (@
|
2195
|
+
# myparam) query parameters in this query.
|
2196
|
+
# Corresponds to the JSON property `parameterMode`
|
2197
|
+
# @return [String]
|
2198
|
+
attr_accessor :parameter_mode
|
2199
|
+
|
2021
2200
|
# [Deprecated] This property is deprecated.
|
2022
2201
|
# Corresponds to the JSON property `preserveNulls`
|
2023
2202
|
# @return [Boolean]
|
@@ -2031,6 +2210,11 @@ module Google
|
|
2031
2210
|
# @return [String]
|
2032
2211
|
attr_accessor :query
|
2033
2212
|
|
2213
|
+
# [Experimental] Query parameters for Standard SQL queries.
|
2214
|
+
# Corresponds to the JSON property `queryParameters`
|
2215
|
+
# @return [Array<Google::Apis::BigqueryV2::QueryParameter>]
|
2216
|
+
attr_accessor :query_parameters
|
2217
|
+
|
2034
2218
|
# [Optional] How long to wait for the query to complete, in milliseconds, before
|
2035
2219
|
# the request times out and returns. Note that this is only a timeout for the
|
2036
2220
|
# request, not the query. If the query takes longer to run than the timeout
|
@@ -2070,8 +2254,10 @@ module Google
|
|
2070
2254
|
@dry_run = args[:dry_run] if args.key?(:dry_run)
|
2071
2255
|
@kind = args[:kind] if args.key?(:kind)
|
2072
2256
|
@max_results = args[:max_results] if args.key?(:max_results)
|
2257
|
+
@parameter_mode = args[:parameter_mode] if args.key?(:parameter_mode)
|
2073
2258
|
@preserve_nulls = args[:preserve_nulls] if args.key?(:preserve_nulls)
|
2074
2259
|
@query = args[:query] if args.key?(:query)
|
2260
|
+
@query_parameters = args[:query_parameters] if args.key?(:query_parameters)
|
2075
2261
|
@timeout_ms = args[:timeout_ms] if args.key?(:timeout_ms)
|
2076
2262
|
@use_legacy_sql = args[:use_legacy_sql] if args.key?(:use_legacy_sql)
|
2077
2263
|
@use_query_cache = args[:use_query_cache] if args.key?(:use_query_cache)
|