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