google-apis-bigquery_v2 0.61.0 → 0.63.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,22 +32,20 @@ module Google
32
32
  #
33
33
  # @see https://cloud.google.com/bigquery/
34
34
  class BigqueryService < Google::Apis::Core::BaseService
35
+ DEFAULT_ENDPOINT_TEMPLATE = "https://bigquery.$UNIVERSE_DOMAIN$/"
36
+
35
37
  # @return [String]
36
38
  # API key. Your API key identifies your project and provides you with API access,
37
39
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
40
  attr_accessor :key
39
41
 
40
42
  # @return [String]
41
- # An opaque string that represents a user for quota purposes. Must not exceed 40
42
- # characters.
43
+ # Available to use for quota purposes for server-side applications. Can be any
44
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
45
  attr_accessor :quota_user
44
46
 
45
- # @return [String]
46
- # Deprecated. Please use quotaUser instead.
47
- attr_accessor :user_ip
48
-
49
47
  def initialize
50
- super('https://bigquery.googleapis.com/', 'bigquery/v2/',
48
+ super(DEFAULT_ENDPOINT_TEMPLATE, 'bigquery/v2/',
51
49
  client_name: 'google-apis-bigquery_v2',
52
50
  client_version: Google::Apis::BigqueryV2::GEM_VERSION)
53
51
  @batch_path = 'batch/bigquery/v2'
@@ -58,19 +56,17 @@ module Google
58
56
  # deleteContents. Immediately after deletion, you can create another dataset
59
57
  # with the same name.
60
58
  # @param [String] project_id
61
- # Project ID of the dataset being deleted
59
+ # Required. Project ID of the dataset being deleted
62
60
  # @param [String] dataset_id
63
- # Dataset ID of dataset being deleted
61
+ # Required. Dataset ID of dataset being deleted
64
62
  # @param [Boolean] delete_contents
65
63
  # If True, delete all the tables in the dataset. If False and the dataset
66
64
  # contains tables, the request will fail. Default is False
67
65
  # @param [String] fields
68
66
  # Selector specifying which fields to include in a partial response.
69
67
  # @param [String] quota_user
70
- # An opaque string that represents a user for quota purposes. Must not exceed 40
71
- # characters.
72
- # @param [String] user_ip
73
- # Deprecated. Please use quotaUser instead.
68
+ # Available to use for quota purposes for server-side applications. Can be any
69
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
74
70
  # @param [Google::Apis::RequestOptions] options
75
71
  # Request-specific options
76
72
  #
@@ -83,33 +79,29 @@ module Google
83
79
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
84
80
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
85
81
  # @raise [Google::Apis::AuthorizationError] Authorization is required
86
- def delete_dataset(project_id, dataset_id, delete_contents: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
87
- command = make_simple_command(:delete, 'projects/{projectId}/datasets/{datasetId}', options)
82
+ def delete_dataset(project_id, dataset_id, delete_contents: nil, fields: nil, quota_user: nil, options: nil, &block)
83
+ command = make_simple_command(:delete, 'projects/{+projectId}/datasets/{+datasetId}', options)
88
84
  command.params['projectId'] = project_id unless project_id.nil?
89
85
  command.params['datasetId'] = dataset_id unless dataset_id.nil?
90
86
  command.query['deleteContents'] = delete_contents unless delete_contents.nil?
91
87
  command.query['fields'] = fields unless fields.nil?
92
88
  command.query['quotaUser'] = quota_user unless quota_user.nil?
93
- command.query['userIp'] = user_ip unless user_ip.nil?
94
89
  execute_or_queue_command(command, &block)
95
90
  end
96
91
 
97
92
  # Returns the dataset specified by datasetID.
98
93
  # @param [String] project_id
99
- # Project ID of the requested dataset
94
+ # Required. Project ID of the requested dataset
100
95
  # @param [String] dataset_id
101
- # Dataset ID of the requested dataset
96
+ # Required. Dataset ID of the requested dataset
102
97
  # @param [String] dataset_view
103
- # Specifies the view that determines which dataset information is returned. By
104
- # default, metadata and ACL information are returned. Allowed values: METADATA,
105
- # ACL, FULL.
98
+ # Optional. Specifies the view that determines which dataset information is
99
+ # returned. By default, metadata and ACL information are returned.
106
100
  # @param [String] fields
107
101
  # Selector specifying which fields to include in a partial response.
108
102
  # @param [String] quota_user
109
- # An opaque string that represents a user for quota purposes. Must not exceed 40
110
- # characters.
111
- # @param [String] user_ip
112
- # Deprecated. Please use quotaUser instead.
103
+ # Available to use for quota purposes for server-side applications. Can be any
104
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
113
105
  # @param [Google::Apis::RequestOptions] options
114
106
  # Request-specific options
115
107
  #
@@ -122,8 +114,8 @@ module Google
122
114
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
123
115
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
124
116
  # @raise [Google::Apis::AuthorizationError] Authorization is required
125
- def get_dataset(project_id, dataset_id, dataset_view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
126
- command = make_simple_command(:get, 'projects/{projectId}/datasets/{datasetId}', options)
117
+ def get_dataset(project_id, dataset_id, dataset_view: nil, fields: nil, quota_user: nil, options: nil, &block)
118
+ command = make_simple_command(:get, 'projects/{+projectId}/datasets/{+datasetId}', options)
127
119
  command.response_representation = Google::Apis::BigqueryV2::Dataset::Representation
128
120
  command.response_class = Google::Apis::BigqueryV2::Dataset
129
121
  command.params['projectId'] = project_id unless project_id.nil?
@@ -131,21 +123,18 @@ module Google
131
123
  command.query['datasetView'] = dataset_view unless dataset_view.nil?
132
124
  command.query['fields'] = fields unless fields.nil?
133
125
  command.query['quotaUser'] = quota_user unless quota_user.nil?
134
- command.query['userIp'] = user_ip unless user_ip.nil?
135
126
  execute_or_queue_command(command, &block)
136
127
  end
137
128
 
138
129
  # Creates a new empty dataset.
139
130
  # @param [String] project_id
140
- # Project ID of the new dataset
131
+ # Required. Project ID of the new dataset
141
132
  # @param [Google::Apis::BigqueryV2::Dataset] dataset_object
142
133
  # @param [String] fields
143
134
  # Selector specifying which fields to include in a partial response.
144
135
  # @param [String] quota_user
145
- # An opaque string that represents a user for quota purposes. Must not exceed 40
146
- # characters.
147
- # @param [String] user_ip
148
- # Deprecated. Please use quotaUser instead.
136
+ # Available to use for quota purposes for server-side applications. Can be any
137
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
149
138
  # @param [Google::Apis::RequestOptions] options
150
139
  # Request-specific options
151
140
  #
@@ -158,8 +147,8 @@ module Google
158
147
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
159
148
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
160
149
  # @raise [Google::Apis::AuthorizationError] Authorization is required
161
- def insert_dataset(project_id, dataset_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
162
- command = make_simple_command(:post, 'projects/{projectId}/datasets', options)
150
+ def insert_dataset(project_id, dataset_object = nil, fields: nil, quota_user: nil, options: nil, &block)
151
+ command = make_simple_command(:post, 'projects/{+projectId}/datasets', options)
163
152
  command.request_representation = Google::Apis::BigqueryV2::Dataset::Representation
164
153
  command.request_object = dataset_object
165
154
  command.response_representation = Google::Apis::BigqueryV2::Dataset::Representation
@@ -167,32 +156,31 @@ module Google
167
156
  command.params['projectId'] = project_id unless project_id.nil?
168
157
  command.query['fields'] = fields unless fields.nil?
169
158
  command.query['quotaUser'] = quota_user unless quota_user.nil?
170
- command.query['userIp'] = user_ip unless user_ip.nil?
171
159
  execute_or_queue_command(command, &block)
172
160
  end
173
161
 
174
- # Lists all datasets in the specified project to which you have been granted the
175
- # READER dataset role.
162
+ # Lists all datasets in the specified project to which the user has been granted
163
+ # the READER dataset role.
176
164
  # @param [String] project_id
177
- # Project ID of the datasets to be listed
165
+ # Required. Project ID of the datasets to be listed
178
166
  # @param [Boolean] all
179
167
  # Whether to list all datasets, including hidden ones
180
168
  # @param [String] filter
181
169
  # An expression for filtering the results of the request by label. The syntax is
182
- # "labels.<name>[:<value>]". Multiple filters can be ANDed together by
183
- # connecting with a space. Example: "labels.department:receiving labels.active".
184
- # See Filtering datasets using labels for details.
170
+ # \"labels.<name>[:<value>]\". Multiple filters can be ANDed together by
171
+ # connecting with a space. Example: \"labels.department:receiving labels.active\"
172
+ # . See [Filtering datasets using labels](/bigquery/docs/labeling-datasets#
173
+ # filtering_datasets_using_labels) for details.
185
174
  # @param [Fixnum] max_results
186
- # The maximum number of results to return
175
+ # The maximum number of results to return in a single response page. Leverage
176
+ # the page tokens to iterate through the entire collection.
187
177
  # @param [String] page_token
188
178
  # Page token, returned by a previous call, to request the next page of results
189
179
  # @param [String] fields
190
180
  # Selector specifying which fields to include in a partial response.
191
181
  # @param [String] quota_user
192
- # An opaque string that represents a user for quota purposes. Must not exceed 40
193
- # characters.
194
- # @param [String] user_ip
195
- # Deprecated. Please use quotaUser instead.
182
+ # Available to use for quota purposes for server-side applications. Can be any
183
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
196
184
  # @param [Google::Apis::RequestOptions] options
197
185
  # Request-specific options
198
186
  #
@@ -205,8 +193,8 @@ module Google
205
193
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
206
194
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
207
195
  # @raise [Google::Apis::AuthorizationError] Authorization is required
208
- def list_datasets(project_id, all: nil, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
209
- command = make_simple_command(:get, 'projects/{projectId}/datasets', options)
196
+ def list_datasets(project_id, all: nil, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
197
+ command = make_simple_command(:get, 'projects/{+projectId}/datasets', options)
210
198
  command.response_representation = Google::Apis::BigqueryV2::DatasetList::Representation
211
199
  command.response_class = Google::Apis::BigqueryV2::DatasetList
212
200
  command.params['projectId'] = project_id unless project_id.nil?
@@ -216,26 +204,23 @@ module Google
216
204
  command.query['pageToken'] = page_token unless page_token.nil?
217
205
  command.query['fields'] = fields unless fields.nil?
218
206
  command.query['quotaUser'] = quota_user unless quota_user.nil?
219
- command.query['userIp'] = user_ip unless user_ip.nil?
220
207
  execute_or_queue_command(command, &block)
221
208
  end
222
209
 
223
210
  # Updates information in an existing dataset. The update method replaces the
224
211
  # entire dataset resource, whereas the patch method only replaces fields that
225
- # are provided in the submitted dataset resource. This method supports patch
226
- # semantics.
212
+ # are provided in the submitted dataset resource. This method supports RFC5789
213
+ # patch semantics.
227
214
  # @param [String] project_id
228
- # Project ID of the dataset being updated
215
+ # Required. Project ID of the dataset being updated
229
216
  # @param [String] dataset_id
230
- # Dataset ID of the dataset being updated
217
+ # Required. Dataset ID of the dataset being updated
231
218
  # @param [Google::Apis::BigqueryV2::Dataset] dataset_object
232
219
  # @param [String] fields
233
220
  # Selector specifying which fields to include in a partial response.
234
221
  # @param [String] quota_user
235
- # An opaque string that represents a user for quota purposes. Must not exceed 40
236
- # characters.
237
- # @param [String] user_ip
238
- # Deprecated. Please use quotaUser instead.
222
+ # Available to use for quota purposes for server-side applications. Can be any
223
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
239
224
  # @param [Google::Apis::RequestOptions] options
240
225
  # Request-specific options
241
226
  #
@@ -248,8 +233,8 @@ module Google
248
233
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
249
234
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
250
235
  # @raise [Google::Apis::AuthorizationError] Authorization is required
251
- def patch_dataset(project_id, dataset_id, dataset_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
252
- command = make_simple_command(:patch, 'projects/{projectId}/datasets/{datasetId}', options)
236
+ def patch_dataset(project_id, dataset_id, dataset_object = nil, fields: nil, quota_user: nil, options: nil, &block)
237
+ command = make_simple_command(:patch, 'projects/{+projectId}/datasets/{+datasetId}', options)
253
238
  command.request_representation = Google::Apis::BigqueryV2::Dataset::Representation
254
239
  command.request_object = dataset_object
255
240
  command.response_representation = Google::Apis::BigqueryV2::Dataset::Representation
@@ -258,7 +243,44 @@ module Google
258
243
  command.params['datasetId'] = dataset_id unless dataset_id.nil?
259
244
  command.query['fields'] = fields unless fields.nil?
260
245
  command.query['quotaUser'] = quota_user unless quota_user.nil?
261
- command.query['userIp'] = user_ip unless user_ip.nil?
246
+ execute_or_queue_command(command, &block)
247
+ end
248
+
249
+ # Undeletes a dataset which is within time travel window based on datasetId. If
250
+ # a time is specified, the dataset version deleted at that time is undeleted,
251
+ # else the last live version is undeleted.
252
+ # @param [String] project_id
253
+ # Required. Project ID of the dataset to be undeleted
254
+ # @param [String] dataset_id
255
+ # Required. Dataset ID of dataset being deleted
256
+ # @param [Google::Apis::BigqueryV2::UndeleteDatasetRequest] undelete_dataset_request_object
257
+ # @param [String] fields
258
+ # Selector specifying which fields to include in a partial response.
259
+ # @param [String] quota_user
260
+ # Available to use for quota purposes for server-side applications. Can be any
261
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
262
+ # @param [Google::Apis::RequestOptions] options
263
+ # Request-specific options
264
+ #
265
+ # @yield [result, err] Result & error if block supplied
266
+ # @yieldparam result [Google::Apis::BigqueryV2::Dataset] parsed result object
267
+ # @yieldparam err [StandardError] error object if request failed
268
+ #
269
+ # @return [Google::Apis::BigqueryV2::Dataset]
270
+ #
271
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
272
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
273
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
274
+ def undelete_dataset(project_id, dataset_id, undelete_dataset_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
275
+ command = make_simple_command(:post, 'projects/{+projectId}/datasets/{+datasetId}:undelete', options)
276
+ command.request_representation = Google::Apis::BigqueryV2::UndeleteDatasetRequest::Representation
277
+ command.request_object = undelete_dataset_request_object
278
+ command.response_representation = Google::Apis::BigqueryV2::Dataset::Representation
279
+ command.response_class = Google::Apis::BigqueryV2::Dataset
280
+ command.params['projectId'] = project_id unless project_id.nil?
281
+ command.params['datasetId'] = dataset_id unless dataset_id.nil?
282
+ command.query['fields'] = fields unless fields.nil?
283
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
262
284
  execute_or_queue_command(command, &block)
263
285
  end
264
286
 
@@ -266,17 +288,15 @@ module Google
266
288
  # entire dataset resource, whereas the patch method only replaces fields that
267
289
  # are provided in the submitted dataset resource.
268
290
  # @param [String] project_id
269
- # Project ID of the dataset being updated
291
+ # Required. Project ID of the dataset being updated
270
292
  # @param [String] dataset_id
271
- # Dataset ID of the dataset being updated
293
+ # Required. Dataset ID of the dataset being updated
272
294
  # @param [Google::Apis::BigqueryV2::Dataset] dataset_object
273
295
  # @param [String] fields
274
296
  # Selector specifying which fields to include in a partial response.
275
297
  # @param [String] quota_user
276
- # An opaque string that represents a user for quota purposes. Must not exceed 40
277
- # characters.
278
- # @param [String] user_ip
279
- # Deprecated. Please use quotaUser instead.
298
+ # Available to use for quota purposes for server-side applications. Can be any
299
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
280
300
  # @param [Google::Apis::RequestOptions] options
281
301
  # Request-specific options
282
302
  #
@@ -289,8 +309,8 @@ module Google
289
309
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
290
310
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
291
311
  # @raise [Google::Apis::AuthorizationError] Authorization is required
292
- def update_dataset(project_id, dataset_id, dataset_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
293
- command = make_simple_command(:put, 'projects/{projectId}/datasets/{datasetId}', options)
312
+ def update_dataset(project_id, dataset_id, dataset_object = nil, fields: nil, quota_user: nil, options: nil, &block)
313
+ command = make_simple_command(:put, 'projects/{+projectId}/datasets/{+datasetId}', options)
294
314
  command.request_representation = Google::Apis::BigqueryV2::Dataset::Representation
295
315
  command.request_object = dataset_object
296
316
  command.response_representation = Google::Apis::BigqueryV2::Dataset::Representation
@@ -299,7 +319,6 @@ module Google
299
319
  command.params['datasetId'] = dataset_id unless dataset_id.nil?
300
320
  command.query['fields'] = fields unless fields.nil?
301
321
  command.query['quotaUser'] = quota_user unless quota_user.nil?
302
- command.query['userIp'] = user_ip unless user_ip.nil?
303
322
  execute_or_queue_command(command, &block)
304
323
  end
305
324
 
@@ -307,19 +326,20 @@ module Google
307
326
  # client will need to poll for the job status to see if the cancel completed
308
327
  # successfully. Cancelled jobs may still incur costs.
309
328
  # @param [String] project_id
310
- # [Required] Project ID of the job to cancel
329
+ # Required. Project ID of the job to cancel
311
330
  # @param [String] job_id
312
- # [Required] Job ID of the job to cancel
331
+ # Required. Job ID of the job to cancel
313
332
  # @param [String] location
314
- # The geographic location of the job. Required except for US and EU. See details
315
- # at https://cloud.google.com/bigquery/docs/locations#specifying_your_location.
333
+ # The geographic location of the job. You must specify the location to run the
334
+ # job for the following scenarios: - If the location to run a job is not in the `
335
+ # us` or the `eu` multi-regional location - If the job's location is in a single
336
+ # region (for example, `us-central1`) For more information, see https://cloud.
337
+ # google.com/bigquery/docs/locations#specifying_your_location.
316
338
  # @param [String] fields
317
339
  # Selector specifying which fields to include in a partial response.
318
340
  # @param [String] quota_user
319
- # An opaque string that represents a user for quota purposes. Must not exceed 40
320
- # characters.
321
- # @param [String] user_ip
322
- # Deprecated. Please use quotaUser instead.
341
+ # Available to use for quota purposes for server-side applications. Can be any
342
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
323
343
  # @param [Google::Apis::RequestOptions] options
324
344
  # Request-specific options
325
345
  #
@@ -332,8 +352,8 @@ module Google
332
352
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
333
353
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
334
354
  # @raise [Google::Apis::AuthorizationError] Authorization is required
335
- def cancel_job(project_id, job_id, location: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
336
- command = make_simple_command(:post, 'projects/{projectId}/jobs/{jobId}/cancel', options)
355
+ def cancel_job(project_id, job_id, location: nil, fields: nil, quota_user: nil, options: nil, &block)
356
+ command = make_simple_command(:post, 'projects/{+projectId}/jobs/{+jobId}/cancel', options)
337
357
  command.response_representation = Google::Apis::BigqueryV2::CancelJobResponse::Representation
338
358
  command.response_class = Google::Apis::BigqueryV2::CancelJobResponse
339
359
  command.params['projectId'] = project_id unless project_id.nil?
@@ -341,7 +361,6 @@ module Google
341
361
  command.query['location'] = location unless location.nil?
342
362
  command.query['fields'] = fields unless fields.nil?
343
363
  command.query['quotaUser'] = quota_user unless quota_user.nil?
344
- command.query['userIp'] = user_ip unless user_ip.nil?
345
364
  execute_or_queue_command(command, &block)
346
365
  end
347
366
 
@@ -359,10 +378,8 @@ module Google
359
378
  # @param [String] fields
360
379
  # Selector specifying which fields to include in a partial response.
361
380
  # @param [String] quota_user
362
- # An opaque string that represents a user for quota purposes. Must not exceed 40
363
- # characters.
364
- # @param [String] user_ip
365
- # Deprecated. Please use quotaUser instead.
381
+ # Available to use for quota purposes for server-side applications. Can be any
382
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
366
383
  # @param [Google::Apis::RequestOptions] options
367
384
  # Request-specific options
368
385
  #
@@ -375,14 +392,13 @@ module Google
375
392
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
376
393
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
377
394
  # @raise [Google::Apis::AuthorizationError] Authorization is required
378
- def delete_job(project_id, job_id, location: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
395
+ def delete_job(project_id, job_id, location: nil, fields: nil, quota_user: nil, options: nil, &block)
379
396
  command = make_simple_command(:delete, 'projects/{+projectId}/jobs/{+jobId}/delete', options)
380
397
  command.params['projectId'] = project_id unless project_id.nil?
381
398
  command.params['jobId'] = job_id unless job_id.nil?
382
399
  command.query['location'] = location unless location.nil?
383
400
  command.query['fields'] = fields unless fields.nil?
384
401
  command.query['quotaUser'] = quota_user unless quota_user.nil?
385
- command.query['userIp'] = user_ip unless user_ip.nil?
386
402
  execute_or_queue_command(command, &block)
387
403
  end
388
404
 
@@ -390,19 +406,20 @@ module Google
390
406
  # six month period after creation. Requires that you're the person who ran the
391
407
  # job, or have the Is Owner project role.
392
408
  # @param [String] project_id
393
- # [Required] Project ID of the requested job
409
+ # Required. Project ID of the requested job.
394
410
  # @param [String] job_id
395
- # [Required] Job ID of the requested job
411
+ # Required. Job ID of the requested job.
396
412
  # @param [String] location
397
- # The geographic location of the job. Required except for US and EU. See details
398
- # at https://cloud.google.com/bigquery/docs/locations#specifying_your_location.
413
+ # The geographic location of the job. You must specify the location to run the
414
+ # job for the following scenarios: - If the location to run a job is not in the `
415
+ # us` or the `eu` multi-regional location - If the job's location is in a single
416
+ # region (for example, `us-central1`) For more information, see https://cloud.
417
+ # google.com/bigquery/docs/locations#specifying_your_location.
399
418
  # @param [String] fields
400
419
  # Selector specifying which fields to include in a partial response.
401
420
  # @param [String] quota_user
402
- # An opaque string that represents a user for quota purposes. Must not exceed 40
403
- # characters.
404
- # @param [String] user_ip
405
- # Deprecated. Please use quotaUser instead.
421
+ # Available to use for quota purposes for server-side applications. Can be any
422
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
406
423
  # @param [Google::Apis::RequestOptions] options
407
424
  # Request-specific options
408
425
  #
@@ -415,8 +432,8 @@ module Google
415
432
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
416
433
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
417
434
  # @raise [Google::Apis::AuthorizationError] Authorization is required
418
- def get_job(project_id, job_id, location: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
419
- command = make_simple_command(:get, 'projects/{projectId}/jobs/{jobId}', options)
435
+ def get_job(project_id, job_id, location: nil, fields: nil, quota_user: nil, options: nil, &block)
436
+ command = make_simple_command(:get, 'projects/{+projectId}/jobs/{+jobId}', options)
420
437
  command.response_representation = Google::Apis::BigqueryV2::Job::Representation
421
438
  command.response_class = Google::Apis::BigqueryV2::Job
422
439
  command.params['projectId'] = project_id unless project_id.nil?
@@ -424,36 +441,44 @@ module Google
424
441
  command.query['location'] = location unless location.nil?
425
442
  command.query['fields'] = fields unless fields.nil?
426
443
  command.query['quotaUser'] = quota_user unless quota_user.nil?
427
- command.query['userIp'] = user_ip unless user_ip.nil?
428
444
  execute_or_queue_command(command, &block)
429
445
  end
430
446
 
431
- # Retrieves the results of a query job.
447
+ # RPC to get the results of a query job.
432
448
  # @param [String] project_id
433
- # [Required] Project ID of the query job
449
+ # Required. Project ID of the query job.
434
450
  # @param [String] job_id
435
- # [Required] Job ID of the query job
451
+ # Required. Job ID of the query job.
452
+ # @param [Boolean] format_options_use_int64_timestamp
453
+ # Optional. Output timestamp as usec int64. Default is false.
436
454
  # @param [String] location
437
- # The geographic location where the job should run. Required except for US and
438
- # EU. See details at https://cloud.google.com/bigquery/docs/locations#
439
- # specifying_your_location.
455
+ # The geographic location of the job. You must specify the location to run the
456
+ # job for the following scenarios: - If the location to run a job is not in the `
457
+ # us` or the `eu` multi-regional location - If the job's location is in a single
458
+ # region (for example, `us-central1`) For more information, see https://cloud.
459
+ # google.com/bigquery/docs/locations#specifying_your_location.
440
460
  # @param [Fixnum] max_results
441
- # Maximum number of results to read
461
+ # Maximum number of results to read.
442
462
  # @param [String] page_token
443
- # Page token, returned by a previous call, to request the next page of results
463
+ # Page token, returned by a previous call, to request the next page of results.
444
464
  # @param [Fixnum] start_index
445
- # Zero-based index of the starting row
465
+ # Zero-based index of the starting row.
446
466
  # @param [Fixnum] timeout_ms
447
- # How long to wait for the query to complete, in milliseconds, before returning.
448
- # Default is 10 seconds. If the timeout passes before the job completes, the '
449
- # jobComplete' field in the response will be false
467
+ # Optional: Specifies the maximum amount of time, in milliseconds, that the
468
+ # client is willing to wait for the query to complete. By default, this limit is
469
+ # 10 seconds (10,000 milliseconds). If the query is complete, the jobComplete
470
+ # field in the response is true. If the query has not yet completed, jobComplete
471
+ # is false. You can request a longer timeout period in the timeoutMs field.
472
+ # However, the call is not guaranteed to wait for the specified timeout; it
473
+ # typically returns after around 200 seconds (200,000 milliseconds), even if the
474
+ # query is not complete. If jobComplete is false, you can continue to wait for
475
+ # the query to complete by calling the getQueryResults method until the
476
+ # jobComplete field in the getQueryResults response is true.
450
477
  # @param [String] fields
451
478
  # Selector specifying which fields to include in a partial response.
452
479
  # @param [String] quota_user
453
- # An opaque string that represents a user for quota purposes. Must not exceed 40
454
- # characters.
455
- # @param [String] user_ip
456
- # Deprecated. Please use quotaUser instead.
480
+ # Available to use for quota purposes for server-side applications. Can be any
481
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
457
482
  # @param [Google::Apis::RequestOptions] options
458
483
  # Request-specific options
459
484
  #
@@ -466,12 +491,13 @@ module Google
466
491
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
467
492
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
468
493
  # @raise [Google::Apis::AuthorizationError] Authorization is required
469
- def get_job_query_results(project_id, job_id, location: nil, max_results: nil, page_token: nil, start_index: nil, timeout_ms: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
470
- command = make_simple_command(:get, 'projects/{projectId}/queries/{jobId}', options)
494
+ def get_job_query_results(project_id, job_id, format_options_use_int64_timestamp: nil, location: nil, max_results: nil, page_token: nil, start_index: nil, timeout_ms: nil, fields: nil, quota_user: nil, options: nil, &block)
495
+ command = make_simple_command(:get, 'projects/{+projectId}/queries/{+jobId}', options)
471
496
  command.response_representation = Google::Apis::BigqueryV2::GetQueryResultsResponse::Representation
472
497
  command.response_class = Google::Apis::BigqueryV2::GetQueryResultsResponse
473
498
  command.params['projectId'] = project_id unless project_id.nil?
474
499
  command.params['jobId'] = job_id unless job_id.nil?
500
+ command.query['formatOptions.useInt64Timestamp'] = format_options_use_int64_timestamp unless format_options_use_int64_timestamp.nil?
475
501
  command.query['location'] = location unless location.nil?
476
502
  command.query['maxResults'] = max_results unless max_results.nil?
477
503
  command.query['pageToken'] = page_token unless page_token.nil?
@@ -479,21 +505,23 @@ module Google
479
505
  command.query['timeoutMs'] = timeout_ms unless timeout_ms.nil?
480
506
  command.query['fields'] = fields unless fields.nil?
481
507
  command.query['quotaUser'] = quota_user unless quota_user.nil?
482
- command.query['userIp'] = user_ip unless user_ip.nil?
483
508
  execute_or_queue_command(command, &block)
484
509
  end
485
510
 
486
- # Starts a new asynchronous job. Requires the Can View project role.
511
+ # Starts a new asynchronous job. This API has two different kinds of endpoint
512
+ # URIs, as this method supports a variety of use cases. * The *Metadata* URI is
513
+ # used for most interactions, as it accepts the job configuration directly. *
514
+ # The *Upload* URI is ONLY for the case when you're sending both a load job
515
+ # configuration and a data stream together. In this case, the Upload URI accepts
516
+ # the job configuration and the data as two distinct multipart MIME parts.
487
517
  # @param [String] project_id
488
- # Project ID of the project that will be billed for the job
518
+ # Project ID of project that will be billed for the job.
489
519
  # @param [Google::Apis::BigqueryV2::Job] job_object
490
520
  # @param [String] fields
491
521
  # Selector specifying which fields to include in a partial response.
492
522
  # @param [String] quota_user
493
- # An opaque string that represents a user for quota purposes. Must not exceed 40
494
- # characters.
495
- # @param [String] user_ip
496
- # Deprecated. Please use quotaUser instead.
523
+ # Available to use for quota purposes for server-side applications. Can be any
524
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
497
525
  # @param [IO, String] upload_source
498
526
  # IO stream or filename containing content to upload
499
527
  # @param [String] content_type
@@ -510,11 +538,11 @@ module Google
510
538
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
511
539
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
512
540
  # @raise [Google::Apis::AuthorizationError] Authorization is required
513
- def insert_job(project_id, job_object = nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
541
+ def insert_job(project_id, job_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
514
542
  if upload_source.nil?
515
- command = make_simple_command(:post, 'projects/{projectId}/jobs', options)
543
+ command = make_simple_command(:post, 'projects/{+projectId}/jobs', options)
516
544
  else
517
- command = make_upload_command(:post, 'projects/{projectId}/jobs', options)
545
+ command = make_upload_command(:post, 'projects/{+projectId}/jobs', options)
518
546
  command.upload_source = upload_source
519
547
  command.upload_content_type = content_type
520
548
  end
@@ -525,7 +553,6 @@ module Google
525
553
  command.params['projectId'] = project_id unless project_id.nil?
526
554
  command.query['fields'] = fields unless fields.nil?
527
555
  command.query['quotaUser'] = quota_user unless quota_user.nil?
528
- command.query['userIp'] = user_ip unless user_ip.nil?
529
556
  execute_or_queue_command(command, &block)
530
557
  end
531
558
 
@@ -534,22 +561,23 @@ module Google
534
561
  # reverse chronological order, by job creation time. Requires the Can View
535
562
  # project role, or the Is Owner project role if you set the allUsers property.
536
563
  # @param [String] project_id
537
- # Project ID of the jobs to list
564
+ # Project ID of the jobs to list.
538
565
  # @param [Boolean] all_users
539
- # Whether to display jobs owned by all users in the project. Default false
566
+ # Whether to display jobs owned by all users in the project. Default False.
540
567
  # @param [Fixnum] max_creation_time
541
568
  # Max value for job creation time, in milliseconds since the POSIX epoch. If set,
542
- # only jobs created before or at this timestamp are returned
569
+ # only jobs created before or at this timestamp are returned.
543
570
  # @param [Fixnum] max_results
544
- # Maximum number of results to return
571
+ # The maximum number of results to return in a single response page. Leverage
572
+ # the page tokens to iterate through the entire collection.
545
573
  # @param [Fixnum] min_creation_time
546
574
  # Min value for job creation time, in milliseconds since the POSIX epoch. If set,
547
- # only jobs created after or at this timestamp are returned
575
+ # only jobs created after or at this timestamp are returned.
548
576
  # @param [String] page_token
549
- # Page token, returned by a previous call, to request the next page of results
577
+ # Page token, returned by a previous call, to request the next page of results.
550
578
  # @param [String] parent_job_id
551
- # If set, retrieves only jobs whose parent is this job. Otherwise, retrieves
552
- # only jobs which have no parent
579
+ # If set, show only child jobs of the specified parent. Otherwise, show all top-
580
+ # level jobs.
553
581
  # @param [String] projection
554
582
  # Restrict information returned to a set of selected fields
555
583
  # @param [Array<String>, String] state_filter
@@ -557,10 +585,8 @@ module Google
557
585
  # @param [String] fields
558
586
  # Selector specifying which fields to include in a partial response.
559
587
  # @param [String] quota_user
560
- # An opaque string that represents a user for quota purposes. Must not exceed 40
561
- # characters.
562
- # @param [String] user_ip
563
- # Deprecated. Please use quotaUser instead.
588
+ # Available to use for quota purposes for server-side applications. Can be any
589
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
564
590
  # @param [Google::Apis::RequestOptions] options
565
591
  # Request-specific options
566
592
  #
@@ -573,8 +599,8 @@ module Google
573
599
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
574
600
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
575
601
  # @raise [Google::Apis::AuthorizationError] Authorization is required
576
- def list_jobs(project_id, all_users: nil, max_creation_time: nil, max_results: nil, min_creation_time: nil, page_token: nil, parent_job_id: nil, projection: nil, state_filter: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
577
- command = make_simple_command(:get, 'projects/{projectId}/jobs', options)
602
+ def list_jobs(project_id, all_users: nil, max_creation_time: nil, max_results: nil, min_creation_time: nil, page_token: nil, parent_job_id: nil, projection: nil, state_filter: nil, fields: nil, quota_user: nil, options: nil, &block)
603
+ command = make_simple_command(:get, 'projects/{+projectId}/jobs', options)
578
604
  command.response_representation = Google::Apis::BigqueryV2::JobList::Representation
579
605
  command.response_class = Google::Apis::BigqueryV2::JobList
580
606
  command.params['projectId'] = project_id unless project_id.nil?
@@ -588,22 +614,19 @@ module Google
588
614
  command.query['stateFilter'] = state_filter unless state_filter.nil?
589
615
  command.query['fields'] = fields unless fields.nil?
590
616
  command.query['quotaUser'] = quota_user unless quota_user.nil?
591
- command.query['userIp'] = user_ip unless user_ip.nil?
592
617
  execute_or_queue_command(command, &block)
593
618
  end
594
619
 
595
620
  # Runs a BigQuery SQL query synchronously and returns query results if the query
596
621
  # completes within a specified timeout.
597
622
  # @param [String] project_id
598
- # Project ID of the project billed for the query
623
+ # Required. Project ID of the query request.
599
624
  # @param [Google::Apis::BigqueryV2::QueryRequest] query_request_object
600
625
  # @param [String] fields
601
626
  # Selector specifying which fields to include in a partial response.
602
627
  # @param [String] quota_user
603
- # An opaque string that represents a user for quota purposes. Must not exceed 40
604
- # characters.
605
- # @param [String] user_ip
606
- # Deprecated. Please use quotaUser instead.
628
+ # Available to use for quota purposes for server-side applications. Can be any
629
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
607
630
  # @param [Google::Apis::RequestOptions] options
608
631
  # Request-specific options
609
632
  #
@@ -616,8 +639,8 @@ module Google
616
639
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
617
640
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
618
641
  # @raise [Google::Apis::AuthorizationError] Authorization is required
619
- def query_job(project_id, query_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
620
- command = make_simple_command(:post, 'projects/{projectId}/queries', options)
642
+ def query_job(project_id, query_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
643
+ command = make_simple_command(:post, 'projects/{+projectId}/queries', options)
621
644
  command.request_representation = Google::Apis::BigqueryV2::QueryRequest::Representation
622
645
  command.request_object = query_request_object
623
646
  command.response_representation = Google::Apis::BigqueryV2::QueryResponse::Representation
@@ -625,7 +648,6 @@ module Google
625
648
  command.params['projectId'] = project_id unless project_id.nil?
626
649
  command.query['fields'] = fields unless fields.nil?
627
650
  command.query['quotaUser'] = quota_user unless quota_user.nil?
628
- command.query['userIp'] = user_ip unless user_ip.nil?
629
651
  execute_or_queue_command(command, &block)
630
652
  end
631
653
 
@@ -639,10 +661,8 @@ module Google
639
661
  # @param [String] fields
640
662
  # Selector specifying which fields to include in a partial response.
641
663
  # @param [String] quota_user
642
- # An opaque string that represents a user for quota purposes. Must not exceed 40
643
- # characters.
644
- # @param [String] user_ip
645
- # Deprecated. Please use quotaUser instead.
664
+ # Available to use for quota purposes for server-side applications. Can be any
665
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
646
666
  # @param [Google::Apis::RequestOptions] options
647
667
  # Request-specific options
648
668
  #
@@ -655,14 +675,13 @@ module Google
655
675
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
656
676
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
657
677
  # @raise [Google::Apis::AuthorizationError] Authorization is required
658
- def delete_model(project_id, dataset_id, model_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
678
+ def delete_model(project_id, dataset_id, model_id, fields: nil, quota_user: nil, options: nil, &block)
659
679
  command = make_simple_command(:delete, 'projects/{+projectId}/datasets/{+datasetId}/models/{+modelId}', options)
660
680
  command.params['projectId'] = project_id unless project_id.nil?
661
681
  command.params['datasetId'] = dataset_id unless dataset_id.nil?
662
682
  command.params['modelId'] = model_id unless model_id.nil?
663
683
  command.query['fields'] = fields unless fields.nil?
664
684
  command.query['quotaUser'] = quota_user unless quota_user.nil?
665
- command.query['userIp'] = user_ip unless user_ip.nil?
666
685
  execute_or_queue_command(command, &block)
667
686
  end
668
687
 
@@ -676,10 +695,8 @@ module Google
676
695
  # @param [String] fields
677
696
  # Selector specifying which fields to include in a partial response.
678
697
  # @param [String] quota_user
679
- # An opaque string that represents a user for quota purposes. Must not exceed 40
680
- # characters.
681
- # @param [String] user_ip
682
- # Deprecated. Please use quotaUser instead.
698
+ # Available to use for quota purposes for server-side applications. Can be any
699
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
683
700
  # @param [Google::Apis::RequestOptions] options
684
701
  # Request-specific options
685
702
  #
@@ -692,7 +709,7 @@ module Google
692
709
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
693
710
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
694
711
  # @raise [Google::Apis::AuthorizationError] Authorization is required
695
- def get_model(project_id, dataset_id, model_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
712
+ def get_model(project_id, dataset_id, model_id, fields: nil, quota_user: nil, options: nil, &block)
696
713
  command = make_simple_command(:get, 'projects/{+projectId}/datasets/{+datasetId}/models/{+modelId}', options)
697
714
  command.response_representation = Google::Apis::BigqueryV2::Model::Representation
698
715
  command.response_class = Google::Apis::BigqueryV2::Model
@@ -701,7 +718,6 @@ module Google
701
718
  command.params['modelId'] = model_id unless model_id.nil?
702
719
  command.query['fields'] = fields unless fields.nil?
703
720
  command.query['quotaUser'] = quota_user unless quota_user.nil?
704
- command.query['userIp'] = user_ip unless user_ip.nil?
705
721
  execute_or_queue_command(command, &block)
706
722
  end
707
723
 
@@ -720,10 +736,8 @@ module Google
720
736
  # @param [String] fields
721
737
  # Selector specifying which fields to include in a partial response.
722
738
  # @param [String] quota_user
723
- # An opaque string that represents a user for quota purposes. Must not exceed 40
724
- # characters.
725
- # @param [String] user_ip
726
- # Deprecated. Please use quotaUser instead.
739
+ # Available to use for quota purposes for server-side applications. Can be any
740
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
727
741
  # @param [Google::Apis::RequestOptions] options
728
742
  # Request-specific options
729
743
  #
@@ -736,7 +750,7 @@ module Google
736
750
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
737
751
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
738
752
  # @raise [Google::Apis::AuthorizationError] Authorization is required
739
- def list_models(project_id, dataset_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
753
+ def list_models(project_id, dataset_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
740
754
  command = make_simple_command(:get, 'projects/{+projectId}/datasets/{+datasetId}/models', options)
741
755
  command.response_representation = Google::Apis::BigqueryV2::ListModelsResponse::Representation
742
756
  command.response_class = Google::Apis::BigqueryV2::ListModelsResponse
@@ -746,7 +760,6 @@ module Google
746
760
  command.query['pageToken'] = page_token unless page_token.nil?
747
761
  command.query['fields'] = fields unless fields.nil?
748
762
  command.query['quotaUser'] = quota_user unless quota_user.nil?
749
- command.query['userIp'] = user_ip unless user_ip.nil?
750
763
  execute_or_queue_command(command, &block)
751
764
  end
752
765
 
@@ -761,10 +774,8 @@ module Google
761
774
  # @param [String] fields
762
775
  # Selector specifying which fields to include in a partial response.
763
776
  # @param [String] quota_user
764
- # An opaque string that represents a user for quota purposes. Must not exceed 40
765
- # characters.
766
- # @param [String] user_ip
767
- # Deprecated. Please use quotaUser instead.
777
+ # Available to use for quota purposes for server-side applications. Can be any
778
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
768
779
  # @param [Google::Apis::RequestOptions] options
769
780
  # Request-specific options
770
781
  #
@@ -777,7 +788,7 @@ module Google
777
788
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
778
789
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
779
790
  # @raise [Google::Apis::AuthorizationError] Authorization is required
780
- def patch_model(project_id, dataset_id, model_id, model_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
791
+ def patch_model(project_id, dataset_id, model_id, model_object = nil, fields: nil, quota_user: nil, options: nil, &block)
781
792
  command = make_simple_command(:patch, 'projects/{+projectId}/datasets/{+datasetId}/models/{+modelId}', options)
782
793
  command.request_representation = Google::Apis::BigqueryV2::Model::Representation
783
794
  command.request_object = model_object
@@ -788,21 +799,18 @@ module Google
788
799
  command.params['modelId'] = model_id unless model_id.nil?
789
800
  command.query['fields'] = fields unless fields.nil?
790
801
  command.query['quotaUser'] = quota_user unless quota_user.nil?
791
- command.query['userIp'] = user_ip unless user_ip.nil?
792
802
  execute_or_queue_command(command, &block)
793
803
  end
794
804
 
795
- # Returns the email address of the service account for your project used for
796
- # interactions with Google Cloud KMS.
805
+ # RPC to get the service account for a project used for interactions with Google
806
+ # Cloud KMS
797
807
  # @param [String] project_id
798
- # Project ID for which the service account is requested.
808
+ # Required. ID of the project.
799
809
  # @param [String] fields
800
810
  # Selector specifying which fields to include in a partial response.
801
811
  # @param [String] quota_user
802
- # An opaque string that represents a user for quota purposes. Must not exceed 40
803
- # characters.
804
- # @param [String] user_ip
805
- # Deprecated. Please use quotaUser instead.
812
+ # Available to use for quota purposes for server-side applications. Can be any
813
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
806
814
  # @param [Google::Apis::RequestOptions] options
807
815
  # Request-specific options
808
816
  #
@@ -815,29 +823,32 @@ module Google
815
823
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
816
824
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
817
825
  # @raise [Google::Apis::AuthorizationError] Authorization is required
818
- def get_project_service_account(project_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
819
- command = make_simple_command(:get, 'projects/{projectId}/serviceAccount', options)
826
+ def get_project_service_account(project_id, fields: nil, quota_user: nil, options: nil, &block)
827
+ command = make_simple_command(:get, 'projects/{+projectId}/serviceAccount', options)
820
828
  command.response_representation = Google::Apis::BigqueryV2::GetServiceAccountResponse::Representation
821
829
  command.response_class = Google::Apis::BigqueryV2::GetServiceAccountResponse
822
830
  command.params['projectId'] = project_id unless project_id.nil?
823
831
  command.query['fields'] = fields unless fields.nil?
824
832
  command.query['quotaUser'] = quota_user unless quota_user.nil?
825
- command.query['userIp'] = user_ip unless user_ip.nil?
826
833
  execute_or_queue_command(command, &block)
827
834
  end
828
835
 
829
- # Lists all projects to which you have been granted any project role.
836
+ # RPC to list projects to which the user has been granted any project role.
837
+ # Users of this method are encouraged to consider the [Resource Manager](https://
838
+ # cloud.google.com/resource-manager/docs/) API, which provides the underlying
839
+ # data for this method and has more capabilities.
830
840
  # @param [Fixnum] max_results
831
- # Maximum number of results to return
841
+ # `maxResults` unset returns all results, up to 50 per page. Additionally, the
842
+ # number of projects in a page may be fewer than `maxResults` because projects
843
+ # are retrieved and then filtered to only projects with the BigQuery API enabled.
832
844
  # @param [String] page_token
833
- # Page token, returned by a previous call, to request the next page of results
845
+ # Page token, returned by a previous call, to request the next page of results.
846
+ # If not present, no further pages are present.
834
847
  # @param [String] fields
835
848
  # Selector specifying which fields to include in a partial response.
836
849
  # @param [String] quota_user
837
- # An opaque string that represents a user for quota purposes. Must not exceed 40
838
- # characters.
839
- # @param [String] user_ip
840
- # Deprecated. Please use quotaUser instead.
850
+ # Available to use for quota purposes for server-side applications. Can be any
851
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
841
852
  # @param [Google::Apis::RequestOptions] options
842
853
  # Request-specific options
843
854
  #
@@ -850,7 +861,7 @@ module Google
850
861
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
851
862
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
852
863
  # @raise [Google::Apis::AuthorizationError] Authorization is required
853
- def list_projects(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
864
+ def list_projects(max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
854
865
  command = make_simple_command(:get, 'projects', options)
855
866
  command.response_representation = Google::Apis::BigqueryV2::ProjectList::Representation
856
867
  command.response_class = Google::Apis::BigqueryV2::ProjectList
@@ -858,7 +869,6 @@ module Google
858
869
  command.query['pageToken'] = page_token unless page_token.nil?
859
870
  command.query['fields'] = fields unless fields.nil?
860
871
  command.query['quotaUser'] = quota_user unless quota_user.nil?
861
- command.query['userIp'] = user_ip unless user_ip.nil?
862
872
  execute_or_queue_command(command, &block)
863
873
  end
864
874
 
@@ -872,10 +882,8 @@ module Google
872
882
  # @param [String] fields
873
883
  # Selector specifying which fields to include in a partial response.
874
884
  # @param [String] quota_user
875
- # An opaque string that represents a user for quota purposes. Must not exceed 40
876
- # characters.
877
- # @param [String] user_ip
878
- # Deprecated. Please use quotaUser instead.
885
+ # Available to use for quota purposes for server-side applications. Can be any
886
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
879
887
  # @param [Google::Apis::RequestOptions] options
880
888
  # Request-specific options
881
889
  #
@@ -888,14 +896,13 @@ module Google
888
896
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
889
897
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
890
898
  # @raise [Google::Apis::AuthorizationError] Authorization is required
891
- def delete_routine(project_id, dataset_id, routine_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
899
+ def delete_routine(project_id, dataset_id, routine_id, fields: nil, quota_user: nil, options: nil, &block)
892
900
  command = make_simple_command(:delete, 'projects/{+projectId}/datasets/{+datasetId}/routines/{+routineId}', options)
893
901
  command.params['projectId'] = project_id unless project_id.nil?
894
902
  command.params['datasetId'] = dataset_id unless dataset_id.nil?
895
903
  command.params['routineId'] = routine_id unless routine_id.nil?
896
904
  command.query['fields'] = fields unless fields.nil?
897
905
  command.query['quotaUser'] = quota_user unless quota_user.nil?
898
- command.query['userIp'] = user_ip unless user_ip.nil?
899
906
  execute_or_queue_command(command, &block)
900
907
  end
901
908
 
@@ -912,10 +919,8 @@ module Google
912
919
  # @param [String] fields
913
920
  # Selector specifying which fields to include in a partial response.
914
921
  # @param [String] quota_user
915
- # An opaque string that represents a user for quota purposes. Must not exceed 40
916
- # characters.
917
- # @param [String] user_ip
918
- # Deprecated. Please use quotaUser instead.
922
+ # Available to use for quota purposes for server-side applications. Can be any
923
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
919
924
  # @param [Google::Apis::RequestOptions] options
920
925
  # Request-specific options
921
926
  #
@@ -928,7 +933,7 @@ module Google
928
933
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
929
934
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
930
935
  # @raise [Google::Apis::AuthorizationError] Authorization is required
931
- def get_routine(project_id, dataset_id, routine_id, read_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
936
+ def get_routine(project_id, dataset_id, routine_id, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
932
937
  command = make_simple_command(:get, 'projects/{+projectId}/datasets/{+datasetId}/routines/{+routineId}', options)
933
938
  command.response_representation = Google::Apis::BigqueryV2::Routine::Representation
934
939
  command.response_class = Google::Apis::BigqueryV2::Routine
@@ -938,7 +943,6 @@ module Google
938
943
  command.query['readMask'] = read_mask unless read_mask.nil?
939
944
  command.query['fields'] = fields unless fields.nil?
940
945
  command.query['quotaUser'] = quota_user unless quota_user.nil?
941
- command.query['userIp'] = user_ip unless user_ip.nil?
942
946
  execute_or_queue_command(command, &block)
943
947
  end
944
948
 
@@ -951,10 +955,8 @@ module Google
951
955
  # @param [String] fields
952
956
  # Selector specifying which fields to include in a partial response.
953
957
  # @param [String] quota_user
954
- # An opaque string that represents a user for quota purposes. Must not exceed 40
955
- # characters.
956
- # @param [String] user_ip
957
- # Deprecated. Please use quotaUser instead.
958
+ # Available to use for quota purposes for server-side applications. Can be any
959
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
958
960
  # @param [Google::Apis::RequestOptions] options
959
961
  # Request-specific options
960
962
  #
@@ -967,7 +969,7 @@ module Google
967
969
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
968
970
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
969
971
  # @raise [Google::Apis::AuthorizationError] Authorization is required
970
- def insert_routine(project_id, dataset_id, routine_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
972
+ def insert_routine(project_id, dataset_id, routine_object = nil, fields: nil, quota_user: nil, options: nil, &block)
971
973
  command = make_simple_command(:post, 'projects/{+projectId}/datasets/{+datasetId}/routines', options)
972
974
  command.request_representation = Google::Apis::BigqueryV2::Routine::Representation
973
975
  command.request_object = routine_object
@@ -977,7 +979,6 @@ module Google
977
979
  command.params['datasetId'] = dataset_id unless dataset_id.nil?
978
980
  command.query['fields'] = fields unless fields.nil?
979
981
  command.query['quotaUser'] = quota_user unless quota_user.nil?
980
- command.query['userIp'] = user_ip unless user_ip.nil?
981
982
  execute_or_queue_command(command, &block)
982
983
  end
983
984
 
@@ -1003,10 +1004,8 @@ module Google
1003
1004
  # @param [String] fields
1004
1005
  # Selector specifying which fields to include in a partial response.
1005
1006
  # @param [String] quota_user
1006
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1007
- # characters.
1008
- # @param [String] user_ip
1009
- # Deprecated. Please use quotaUser instead.
1007
+ # Available to use for quota purposes for server-side applications. Can be any
1008
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1010
1009
  # @param [Google::Apis::RequestOptions] options
1011
1010
  # Request-specific options
1012
1011
  #
@@ -1019,7 +1018,7 @@ module Google
1019
1018
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1020
1019
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1021
1020
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1022
- def list_routines(project_id, dataset_id, filter: nil, max_results: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1021
+ def list_routines(project_id, dataset_id, filter: nil, max_results: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1023
1022
  command = make_simple_command(:get, 'projects/{+projectId}/datasets/{+datasetId}/routines', options)
1024
1023
  command.response_representation = Google::Apis::BigqueryV2::ListRoutinesResponse::Representation
1025
1024
  command.response_class = Google::Apis::BigqueryV2::ListRoutinesResponse
@@ -1031,7 +1030,6 @@ module Google
1031
1030
  command.query['readMask'] = read_mask unless read_mask.nil?
1032
1031
  command.query['fields'] = fields unless fields.nil?
1033
1032
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1034
- command.query['userIp'] = user_ip unless user_ip.nil?
1035
1033
  execute_or_queue_command(command, &block)
1036
1034
  end
1037
1035
 
@@ -1047,10 +1045,8 @@ module Google
1047
1045
  # @param [String] fields
1048
1046
  # Selector specifying which fields to include in a partial response.
1049
1047
  # @param [String] quota_user
1050
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1051
- # characters.
1052
- # @param [String] user_ip
1053
- # Deprecated. Please use quotaUser instead.
1048
+ # Available to use for quota purposes for server-side applications. Can be any
1049
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1054
1050
  # @param [Google::Apis::RequestOptions] options
1055
1051
  # Request-specific options
1056
1052
  #
@@ -1063,7 +1059,7 @@ module Google
1063
1059
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1064
1060
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1065
1061
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1066
- def update_routine(project_id, dataset_id, routine_id, routine_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1062
+ def update_routine(project_id, dataset_id, routine_id, routine_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1067
1063
  command = make_simple_command(:put, 'projects/{+projectId}/datasets/{+datasetId}/routines/{+routineId}', options)
1068
1064
  command.request_representation = Google::Apis::BigqueryV2::Routine::Representation
1069
1065
  command.request_object = routine_object
@@ -1074,7 +1070,6 @@ module Google
1074
1070
  command.params['routineId'] = routine_id unless routine_id.nil?
1075
1071
  command.query['fields'] = fields unless fields.nil?
1076
1072
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1077
- command.query['userIp'] = user_ip unless user_ip.nil?
1078
1073
  execute_or_queue_command(command, &block)
1079
1074
  end
1080
1075
 
@@ -1088,10 +1083,8 @@ module Google
1088
1083
  # @param [String] fields
1089
1084
  # Selector specifying which fields to include in a partial response.
1090
1085
  # @param [String] quota_user
1091
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1092
- # characters.
1093
- # @param [String] user_ip
1094
- # Deprecated. Please use quotaUser instead.
1086
+ # Available to use for quota purposes for server-side applications. Can be any
1087
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1095
1088
  # @param [Google::Apis::RequestOptions] options
1096
1089
  # Request-specific options
1097
1090
  #
@@ -1104,7 +1097,7 @@ module Google
1104
1097
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1105
1098
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1106
1099
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1107
- def get_row_access_policy_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1100
+ def get_row_access_policy_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1108
1101
  command = make_simple_command(:post, '{+resource}:getIamPolicy', options)
1109
1102
  command.request_representation = Google::Apis::BigqueryV2::GetIamPolicyRequest::Representation
1110
1103
  command.request_object = get_iam_policy_request_object
@@ -1113,7 +1106,6 @@ module Google
1113
1106
  command.params['resource'] = resource unless resource.nil?
1114
1107
  command.query['fields'] = fields unless fields.nil?
1115
1108
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1116
- command.query['userIp'] = user_ip unless user_ip.nil?
1117
1109
  execute_or_queue_command(command, &block)
1118
1110
  end
1119
1111
 
@@ -1132,10 +1124,8 @@ module Google
1132
1124
  # @param [String] fields
1133
1125
  # Selector specifying which fields to include in a partial response.
1134
1126
  # @param [String] quota_user
1135
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1136
- # characters.
1137
- # @param [String] user_ip
1138
- # Deprecated. Please use quotaUser instead.
1127
+ # Available to use for quota purposes for server-side applications. Can be any
1128
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1139
1129
  # @param [Google::Apis::RequestOptions] options
1140
1130
  # Request-specific options
1141
1131
  #
@@ -1148,7 +1138,7 @@ module Google
1148
1138
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1149
1139
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1150
1140
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1151
- def list_row_access_policies(project_id, dataset_id, table_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1141
+ def list_row_access_policies(project_id, dataset_id, table_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1152
1142
  command = make_simple_command(:get, 'projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}/rowAccessPolicies', options)
1153
1143
  command.response_representation = Google::Apis::BigqueryV2::ListRowAccessPoliciesResponse::Representation
1154
1144
  command.response_class = Google::Apis::BigqueryV2::ListRowAccessPoliciesResponse
@@ -1159,7 +1149,6 @@ module Google
1159
1149
  command.query['pageToken'] = page_token unless page_token.nil?
1160
1150
  command.query['fields'] = fields unless fields.nil?
1161
1151
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1162
- command.query['userIp'] = user_ip unless user_ip.nil?
1163
1152
  execute_or_queue_command(command, &block)
1164
1153
  end
1165
1154
 
@@ -1176,10 +1165,8 @@ module Google
1176
1165
  # @param [String] fields
1177
1166
  # Selector specifying which fields to include in a partial response.
1178
1167
  # @param [String] quota_user
1179
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1180
- # characters.
1181
- # @param [String] user_ip
1182
- # Deprecated. Please use quotaUser instead.
1168
+ # Available to use for quota purposes for server-side applications. Can be any
1169
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1183
1170
  # @param [Google::Apis::RequestOptions] options
1184
1171
  # Request-specific options
1185
1172
  #
@@ -1192,7 +1179,7 @@ module Google
1192
1179
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1193
1180
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1194
1181
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1195
- def test_row_access_policy_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1182
+ def test_row_access_policy_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1196
1183
  command = make_simple_command(:post, '{+resource}:testIamPermissions', options)
1197
1184
  command.request_representation = Google::Apis::BigqueryV2::TestIamPermissionsRequest::Representation
1198
1185
  command.request_object = test_iam_permissions_request_object
@@ -1201,26 +1188,23 @@ module Google
1201
1188
  command.params['resource'] = resource unless resource.nil?
1202
1189
  command.query['fields'] = fields unless fields.nil?
1203
1190
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1204
- command.query['userIp'] = user_ip unless user_ip.nil?
1205
1191
  execute_or_queue_command(command, &block)
1206
1192
  end
1207
1193
 
1208
1194
  # Streams data into BigQuery one record at a time without needing to run a load
1209
- # job. Requires the WRITER dataset role.
1195
+ # job.
1210
1196
  # @param [String] project_id
1211
- # Project ID of the destination table.
1197
+ # Required. Project ID of the destination.
1212
1198
  # @param [String] dataset_id
1213
- # Dataset ID of the destination table.
1199
+ # Required. Dataset ID of the destination.
1214
1200
  # @param [String] table_id
1215
- # Table ID of the destination table.
1201
+ # Required. Table ID of the destination.
1216
1202
  # @param [Google::Apis::BigqueryV2::InsertAllTableDataRequest] insert_all_table_data_request_object
1217
1203
  # @param [String] fields
1218
1204
  # Selector specifying which fields to include in a partial response.
1219
1205
  # @param [String] quota_user
1220
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1221
- # characters.
1222
- # @param [String] user_ip
1223
- # Deprecated. Please use quotaUser instead.
1206
+ # Available to use for quota purposes for server-side applications. Can be any
1207
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1224
1208
  # @param [Google::Apis::RequestOptions] options
1225
1209
  # Request-specific options
1226
1210
  #
@@ -1233,8 +1217,8 @@ module Google
1233
1217
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1234
1218
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1235
1219
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1236
- def insert_all_table_data(project_id, dataset_id, table_id, insert_all_table_data_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1237
- command = make_simple_command(:post, 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}/insertAll', options)
1220
+ def insert_all_table_data(project_id, dataset_id, table_id, insert_all_table_data_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1221
+ command = make_simple_command(:post, 'projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}/insertAll', options)
1238
1222
  command.request_representation = Google::Apis::BigqueryV2::InsertAllTableDataRequest::Representation
1239
1223
  command.request_object = insert_all_table_data_request_object
1240
1224
  command.response_representation = Google::Apis::BigqueryV2::InsertAllTableDataResponse::Representation
@@ -1244,34 +1228,34 @@ module Google
1244
1228
  command.params['tableId'] = table_id unless table_id.nil?
1245
1229
  command.query['fields'] = fields unless fields.nil?
1246
1230
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1247
- command.query['userIp'] = user_ip unless user_ip.nil?
1248
1231
  execute_or_queue_command(command, &block)
1249
1232
  end
1250
1233
 
1251
- # Retrieves table data from a specified set of rows. Requires the READER dataset
1252
- # role.
1234
+ # List the content of a table in rows.
1253
1235
  # @param [String] project_id
1254
- # Project ID of the table to read
1236
+ # Required. Project id of the table to list.
1255
1237
  # @param [String] dataset_id
1256
- # Dataset ID of the table to read
1238
+ # Required. Dataset id of the table to list.
1257
1239
  # @param [String] table_id
1258
- # Table ID of the table to read
1240
+ # Required. Table id of the table to list.
1241
+ # @param [Boolean] format_options_use_int64_timestamp
1242
+ # Optional. Output timestamp as usec int64. Default is false.
1259
1243
  # @param [Fixnum] max_results
1260
- # Maximum number of results to return
1244
+ # Row limit of the table.
1261
1245
  # @param [String] page_token
1262
- # Page token, returned by a previous call, identifying the result set
1246
+ # To retrieve the next page of table data, set this field to the string provided
1247
+ # in the pageToken field of the response body from your previous call to
1248
+ # tabledata.list.
1263
1249
  # @param [String] selected_fields
1264
- # List of fields to return (comma-separated). If unspecified, all fields are
1265
- # returned
1250
+ # Subset of fields to return, supports select into sub fields. Example:
1251
+ # selected_fields = "a,e.d.f";
1266
1252
  # @param [Fixnum] start_index
1267
- # Zero-based index of the starting row to read
1253
+ # Start row index of the table.
1268
1254
  # @param [String] fields
1269
1255
  # Selector specifying which fields to include in a partial response.
1270
1256
  # @param [String] quota_user
1271
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1272
- # characters.
1273
- # @param [String] user_ip
1274
- # Deprecated. Please use quotaUser instead.
1257
+ # Available to use for quota purposes for server-side applications. Can be any
1258
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1275
1259
  # @param [Google::Apis::RequestOptions] options
1276
1260
  # Request-specific options
1277
1261
  #
@@ -1284,38 +1268,36 @@ module Google
1284
1268
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1285
1269
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1286
1270
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1287
- def list_table_data(project_id, dataset_id, table_id, max_results: nil, page_token: nil, selected_fields: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1288
- command = make_simple_command(:get, 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}/data', options)
1271
+ def list_table_data(project_id, dataset_id, table_id, format_options_use_int64_timestamp: nil, max_results: nil, page_token: nil, selected_fields: nil, start_index: nil, fields: nil, quota_user: nil, options: nil, &block)
1272
+ command = make_simple_command(:get, 'projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}/data', options)
1289
1273
  command.response_representation = Google::Apis::BigqueryV2::TableDataList::Representation
1290
1274
  command.response_class = Google::Apis::BigqueryV2::TableDataList
1291
1275
  command.params['projectId'] = project_id unless project_id.nil?
1292
1276
  command.params['datasetId'] = dataset_id unless dataset_id.nil?
1293
1277
  command.params['tableId'] = table_id unless table_id.nil?
1278
+ command.query['formatOptions.useInt64Timestamp'] = format_options_use_int64_timestamp unless format_options_use_int64_timestamp.nil?
1294
1279
  command.query['maxResults'] = max_results unless max_results.nil?
1295
1280
  command.query['pageToken'] = page_token unless page_token.nil?
1296
1281
  command.query['selectedFields'] = selected_fields unless selected_fields.nil?
1297
1282
  command.query['startIndex'] = start_index unless start_index.nil?
1298
1283
  command.query['fields'] = fields unless fields.nil?
1299
1284
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1300
- command.query['userIp'] = user_ip unless user_ip.nil?
1301
1285
  execute_or_queue_command(command, &block)
1302
1286
  end
1303
1287
 
1304
1288
  # Deletes the table specified by tableId from the dataset. If the table contains
1305
1289
  # data, all the data will be deleted.
1306
1290
  # @param [String] project_id
1307
- # Project ID of the table to delete
1291
+ # Required. Project ID of the table to delete
1308
1292
  # @param [String] dataset_id
1309
- # Dataset ID of the table to delete
1293
+ # Required. Dataset ID of the table to delete
1310
1294
  # @param [String] table_id
1311
- # Table ID of the table to delete
1295
+ # Required. Table ID of the table to delete
1312
1296
  # @param [String] fields
1313
1297
  # Selector specifying which fields to include in a partial response.
1314
1298
  # @param [String] quota_user
1315
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1316
- # characters.
1317
- # @param [String] user_ip
1318
- # Deprecated. Please use quotaUser instead.
1299
+ # Available to use for quota purposes for server-side applications. Can be any
1300
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1319
1301
  # @param [Google::Apis::RequestOptions] options
1320
1302
  # Request-specific options
1321
1303
  #
@@ -1328,14 +1310,13 @@ module Google
1328
1310
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1329
1311
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1330
1312
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1331
- def delete_table(project_id, dataset_id, table_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1332
- command = make_simple_command(:delete, 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}', options)
1313
+ def delete_table(project_id, dataset_id, table_id, fields: nil, quota_user: nil, options: nil, &block)
1314
+ command = make_simple_command(:delete, 'projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}', options)
1333
1315
  command.params['projectId'] = project_id unless project_id.nil?
1334
1316
  command.params['datasetId'] = dataset_id unless dataset_id.nil?
1335
1317
  command.params['tableId'] = table_id unless table_id.nil?
1336
1318
  command.query['fields'] = fields unless fields.nil?
1337
1319
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1338
- command.query['userIp'] = user_ip unless user_ip.nil?
1339
1320
  execute_or_queue_command(command, &block)
1340
1321
  end
1341
1322
 
@@ -1343,25 +1324,26 @@ module Google
1343
1324
  # data in the table, it only returns the table resource, which describes the
1344
1325
  # structure of this table.
1345
1326
  # @param [String] project_id
1346
- # Project ID of the requested table
1327
+ # Required. Project ID of the requested table
1347
1328
  # @param [String] dataset_id
1348
- # Dataset ID of the requested table
1329
+ # Required. Dataset ID of the requested table
1349
1330
  # @param [String] table_id
1350
- # Table ID of the requested table
1331
+ # Required. Table ID of the requested table
1351
1332
  # @param [String] selected_fields
1352
- # List of fields to return (comma-separated). If unspecified, all fields are
1353
- # returned
1333
+ # List of table schema fields to return (comma-separated). If unspecified, all
1334
+ # fields are returned. A fieldMask cannot be used here because the fields will
1335
+ # automatically be converted from camelCase to snake_case and the conversion
1336
+ # will fail if there are underscores. Since these are fields in BigQuery table
1337
+ # schemas, underscores are allowed.
1354
1338
  # @param [String] view
1355
- # Specifies the view that determines which table information is returned. By
1356
- # default, basic table information and storage statistics (STORAGE_STATS) are
1357
- # returned.
1339
+ # Optional. Specifies the view that determines which table information is
1340
+ # returned. By default, basic table information and storage statistics (
1341
+ # STORAGE_STATS) are returned.
1358
1342
  # @param [String] fields
1359
1343
  # Selector specifying which fields to include in a partial response.
1360
1344
  # @param [String] quota_user
1361
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1362
- # characters.
1363
- # @param [String] user_ip
1364
- # Deprecated. Please use quotaUser instead.
1345
+ # Available to use for quota purposes for server-side applications. Can be any
1346
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1365
1347
  # @param [Google::Apis::RequestOptions] options
1366
1348
  # Request-specific options
1367
1349
  #
@@ -1374,8 +1356,8 @@ module Google
1374
1356
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1375
1357
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1376
1358
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1377
- def get_table(project_id, dataset_id, table_id, selected_fields: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1378
- command = make_simple_command(:get, 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}', options)
1359
+ def get_table(project_id, dataset_id, table_id, selected_fields: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
1360
+ command = make_simple_command(:get, 'projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}', options)
1379
1361
  command.response_representation = Google::Apis::BigqueryV2::Table::Representation
1380
1362
  command.response_class = Google::Apis::BigqueryV2::Table
1381
1363
  command.params['projectId'] = project_id unless project_id.nil?
@@ -1385,7 +1367,6 @@ module Google
1385
1367
  command.query['view'] = view unless view.nil?
1386
1368
  command.query['fields'] = fields unless fields.nil?
1387
1369
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1388
- command.query['userIp'] = user_ip unless user_ip.nil?
1389
1370
  execute_or_queue_command(command, &block)
1390
1371
  end
1391
1372
 
@@ -1399,10 +1380,8 @@ module Google
1399
1380
  # @param [String] fields
1400
1381
  # Selector specifying which fields to include in a partial response.
1401
1382
  # @param [String] quota_user
1402
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1403
- # characters.
1404
- # @param [String] user_ip
1405
- # Deprecated. Please use quotaUser instead.
1383
+ # Available to use for quota purposes for server-side applications. Can be any
1384
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1406
1385
  # @param [Google::Apis::RequestOptions] options
1407
1386
  # Request-specific options
1408
1387
  #
@@ -1415,7 +1394,7 @@ module Google
1415
1394
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1416
1395
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1417
1396
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1418
- def get_table_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1397
+ def get_table_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1419
1398
  command = make_simple_command(:post, '{+resource}:getIamPolicy', options)
1420
1399
  command.request_representation = Google::Apis::BigqueryV2::GetIamPolicyRequest::Representation
1421
1400
  command.request_object = get_iam_policy_request_object
@@ -1424,23 +1403,20 @@ module Google
1424
1403
  command.params['resource'] = resource unless resource.nil?
1425
1404
  command.query['fields'] = fields unless fields.nil?
1426
1405
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1427
- command.query['userIp'] = user_ip unless user_ip.nil?
1428
1406
  execute_or_queue_command(command, &block)
1429
1407
  end
1430
1408
 
1431
1409
  # Creates a new, empty table in the dataset.
1432
1410
  # @param [String] project_id
1433
- # Project ID of the new table
1411
+ # Required. Project ID of the new table
1434
1412
  # @param [String] dataset_id
1435
- # Dataset ID of the new table
1413
+ # Required. Dataset ID of the new table
1436
1414
  # @param [Google::Apis::BigqueryV2::Table] table_object
1437
1415
  # @param [String] fields
1438
1416
  # Selector specifying which fields to include in a partial response.
1439
1417
  # @param [String] quota_user
1440
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1441
- # characters.
1442
- # @param [String] user_ip
1443
- # Deprecated. Please use quotaUser instead.
1418
+ # Available to use for quota purposes for server-side applications. Can be any
1419
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1444
1420
  # @param [Google::Apis::RequestOptions] options
1445
1421
  # Request-specific options
1446
1422
  #
@@ -1453,8 +1429,8 @@ module Google
1453
1429
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1454
1430
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1455
1431
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1456
- def insert_table(project_id, dataset_id, table_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1457
- command = make_simple_command(:post, 'projects/{projectId}/datasets/{datasetId}/tables', options)
1432
+ def insert_table(project_id, dataset_id, table_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1433
+ command = make_simple_command(:post, 'projects/{+projectId}/datasets/{+datasetId}/tables', options)
1458
1434
  command.request_representation = Google::Apis::BigqueryV2::Table::Representation
1459
1435
  command.request_object = table_object
1460
1436
  command.response_representation = Google::Apis::BigqueryV2::Table::Representation
@@ -1463,26 +1439,24 @@ module Google
1463
1439
  command.params['datasetId'] = dataset_id unless dataset_id.nil?
1464
1440
  command.query['fields'] = fields unless fields.nil?
1465
1441
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1466
- command.query['userIp'] = user_ip unless user_ip.nil?
1467
1442
  execute_or_queue_command(command, &block)
1468
1443
  end
1469
1444
 
1470
1445
  # Lists all tables in the specified dataset. Requires the READER dataset role.
1471
1446
  # @param [String] project_id
1472
- # Project ID of the tables to list
1447
+ # Required. Project ID of the tables to list
1473
1448
  # @param [String] dataset_id
1474
- # Dataset ID of the tables to list
1449
+ # Required. Dataset ID of the tables to list
1475
1450
  # @param [Fixnum] max_results
1476
- # Maximum number of results to return
1451
+ # The maximum number of results to return in a single response page. Leverage
1452
+ # the page tokens to iterate through the entire collection.
1477
1453
  # @param [String] page_token
1478
1454
  # Page token, returned by a previous call, to request the next page of results
1479
1455
  # @param [String] fields
1480
1456
  # Selector specifying which fields to include in a partial response.
1481
1457
  # @param [String] quota_user
1482
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1483
- # characters.
1484
- # @param [String] user_ip
1485
- # Deprecated. Please use quotaUser instead.
1458
+ # Available to use for quota purposes for server-side applications. Can be any
1459
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1486
1460
  # @param [Google::Apis::RequestOptions] options
1487
1461
  # Request-specific options
1488
1462
  #
@@ -1495,8 +1469,8 @@ module Google
1495
1469
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1496
1470
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1497
1471
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1498
- def list_tables(project_id, dataset_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1499
- command = make_simple_command(:get, 'projects/{projectId}/datasets/{datasetId}/tables', options)
1472
+ def list_tables(project_id, dataset_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1473
+ command = make_simple_command(:get, 'projects/{+projectId}/datasets/{+datasetId}/tables', options)
1500
1474
  command.response_representation = Google::Apis::BigqueryV2::TableList::Representation
1501
1475
  command.response_class = Google::Apis::BigqueryV2::TableList
1502
1476
  command.params['projectId'] = project_id unless project_id.nil?
@@ -1505,29 +1479,27 @@ module Google
1505
1479
  command.query['pageToken'] = page_token unless page_token.nil?
1506
1480
  command.query['fields'] = fields unless fields.nil?
1507
1481
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1508
- command.query['userIp'] = user_ip unless user_ip.nil?
1509
1482
  execute_or_queue_command(command, &block)
1510
1483
  end
1511
1484
 
1512
1485
  # Updates information in an existing table. The update method replaces the
1513
1486
  # entire table resource, whereas the patch method only replaces fields that are
1514
- # provided in the submitted table resource. This method supports patch semantics.
1487
+ # provided in the submitted table resource. This method supports RFC5789 patch
1488
+ # semantics.
1515
1489
  # @param [String] project_id
1516
- # Project ID of the table to update
1490
+ # Required. Project ID of the table to update
1517
1491
  # @param [String] dataset_id
1518
- # Dataset ID of the table to update
1492
+ # Required. Dataset ID of the table to update
1519
1493
  # @param [String] table_id
1520
- # Table ID of the table to update
1494
+ # Required. Table ID of the table to update
1521
1495
  # @param [Google::Apis::BigqueryV2::Table] table_object
1522
1496
  # @param [Boolean] autodetect_schema
1523
- # When true will autodetect schema, else will keep original schema
1497
+ # Optional. When true will autodetect schema, else will keep original schema
1524
1498
  # @param [String] fields
1525
1499
  # Selector specifying which fields to include in a partial response.
1526
1500
  # @param [String] quota_user
1527
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1528
- # characters.
1529
- # @param [String] user_ip
1530
- # Deprecated. Please use quotaUser instead.
1501
+ # Available to use for quota purposes for server-side applications. Can be any
1502
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1531
1503
  # @param [Google::Apis::RequestOptions] options
1532
1504
  # Request-specific options
1533
1505
  #
@@ -1540,8 +1512,8 @@ module Google
1540
1512
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1541
1513
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1542
1514
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1543
- def patch_table(project_id, dataset_id, table_id, table_object = nil, autodetect_schema: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1544
- command = make_simple_command(:patch, 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}', options)
1515
+ def patch_table(project_id, dataset_id, table_id, table_object = nil, autodetect_schema: nil, fields: nil, quota_user: nil, options: nil, &block)
1516
+ command = make_simple_command(:patch, 'projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}', options)
1545
1517
  command.request_representation = Google::Apis::BigqueryV2::Table::Representation
1546
1518
  command.request_object = table_object
1547
1519
  command.response_representation = Google::Apis::BigqueryV2::Table::Representation
@@ -1552,7 +1524,6 @@ module Google
1552
1524
  command.query['autodetect_schema'] = autodetect_schema unless autodetect_schema.nil?
1553
1525
  command.query['fields'] = fields unless fields.nil?
1554
1526
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1555
- command.query['userIp'] = user_ip unless user_ip.nil?
1556
1527
  execute_or_queue_command(command, &block)
1557
1528
  end
1558
1529
 
@@ -1567,10 +1538,8 @@ module Google
1567
1538
  # @param [String] fields
1568
1539
  # Selector specifying which fields to include in a partial response.
1569
1540
  # @param [String] quota_user
1570
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1571
- # characters.
1572
- # @param [String] user_ip
1573
- # Deprecated. Please use quotaUser instead.
1541
+ # Available to use for quota purposes for server-side applications. Can be any
1542
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1574
1543
  # @param [Google::Apis::RequestOptions] options
1575
1544
  # Request-specific options
1576
1545
  #
@@ -1583,7 +1552,7 @@ module Google
1583
1552
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1584
1553
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1585
1554
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1586
- def set_table_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1555
+ def set_table_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1587
1556
  command = make_simple_command(:post, '{+resource}:setIamPolicy', options)
1588
1557
  command.request_representation = Google::Apis::BigqueryV2::SetIamPolicyRequest::Representation
1589
1558
  command.request_object = set_iam_policy_request_object
@@ -1592,7 +1561,6 @@ module Google
1592
1561
  command.params['resource'] = resource unless resource.nil?
1593
1562
  command.query['fields'] = fields unless fields.nil?
1594
1563
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1595
- command.query['userIp'] = user_ip unless user_ip.nil?
1596
1564
  execute_or_queue_command(command, &block)
1597
1565
  end
1598
1566
 
@@ -1609,10 +1577,8 @@ module Google
1609
1577
  # @param [String] fields
1610
1578
  # Selector specifying which fields to include in a partial response.
1611
1579
  # @param [String] quota_user
1612
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1613
- # characters.
1614
- # @param [String] user_ip
1615
- # Deprecated. Please use quotaUser instead.
1580
+ # Available to use for quota purposes for server-side applications. Can be any
1581
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1616
1582
  # @param [Google::Apis::RequestOptions] options
1617
1583
  # Request-specific options
1618
1584
  #
@@ -1625,7 +1591,7 @@ module Google
1625
1591
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1626
1592
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1627
1593
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1628
- def test_table_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1594
+ def test_table_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1629
1595
  command = make_simple_command(:post, '{+resource}:testIamPermissions', options)
1630
1596
  command.request_representation = Google::Apis::BigqueryV2::TestIamPermissionsRequest::Representation
1631
1597
  command.request_object = test_iam_permissions_request_object
@@ -1634,29 +1600,26 @@ module Google
1634
1600
  command.params['resource'] = resource unless resource.nil?
1635
1601
  command.query['fields'] = fields unless fields.nil?
1636
1602
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1637
- command.query['userIp'] = user_ip unless user_ip.nil?
1638
1603
  execute_or_queue_command(command, &block)
1639
1604
  end
1640
1605
 
1641
1606
  # Updates information in an existing table. The update method replaces the
1642
- # entire table resource, whereas the patch method only replaces fields that are
1643
- # provided in the submitted table resource.
1607
+ # entire Table resource, whereas the patch method only replaces fields that are
1608
+ # provided in the submitted Table resource.
1644
1609
  # @param [String] project_id
1645
- # Project ID of the table to update
1610
+ # Required. Project ID of the table to update
1646
1611
  # @param [String] dataset_id
1647
- # Dataset ID of the table to update
1612
+ # Required. Dataset ID of the table to update
1648
1613
  # @param [String] table_id
1649
- # Table ID of the table to update
1614
+ # Required. Table ID of the table to update
1650
1615
  # @param [Google::Apis::BigqueryV2::Table] table_object
1651
1616
  # @param [Boolean] autodetect_schema
1652
- # When true will autodetect schema, else will keep original schema
1617
+ # Optional. When true will autodetect schema, else will keep original schema
1653
1618
  # @param [String] fields
1654
1619
  # Selector specifying which fields to include in a partial response.
1655
1620
  # @param [String] quota_user
1656
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1657
- # characters.
1658
- # @param [String] user_ip
1659
- # Deprecated. Please use quotaUser instead.
1621
+ # Available to use for quota purposes for server-side applications. Can be any
1622
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1660
1623
  # @param [Google::Apis::RequestOptions] options
1661
1624
  # Request-specific options
1662
1625
  #
@@ -1669,8 +1632,8 @@ module Google
1669
1632
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1670
1633
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1671
1634
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1672
- def update_table(project_id, dataset_id, table_id, table_object = nil, autodetect_schema: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1673
- command = make_simple_command(:put, 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}', options)
1635
+ def update_table(project_id, dataset_id, table_id, table_object = nil, autodetect_schema: nil, fields: nil, quota_user: nil, options: nil, &block)
1636
+ command = make_simple_command(:put, 'projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}', options)
1674
1637
  command.request_representation = Google::Apis::BigqueryV2::Table::Representation
1675
1638
  command.request_object = table_object
1676
1639
  command.response_representation = Google::Apis::BigqueryV2::Table::Representation
@@ -1681,7 +1644,6 @@ module Google
1681
1644
  command.query['autodetect_schema'] = autodetect_schema unless autodetect_schema.nil?
1682
1645
  command.query['fields'] = fields unless fields.nil?
1683
1646
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1684
- command.query['userIp'] = user_ip unless user_ip.nil?
1685
1647
  execute_or_queue_command(command, &block)
1686
1648
  end
1687
1649
 
@@ -1690,7 +1652,6 @@ module Google
1690
1652
  def apply_command_defaults(command)
1691
1653
  command.query['key'] = key unless key.nil?
1692
1654
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1693
- command.query['userIp'] = user_ip unless user_ip.nil?
1694
1655
  end
1695
1656
  end
1696
1657
  end