google-apis-bigquery_v2 0.71.0 → 0.92.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -94,6 +94,20 @@ module Google
94
94
  # Required. Project ID of the requested dataset
95
95
  # @param [String] dataset_id
96
96
  # Required. Dataset ID of the requested dataset
97
+ # @param [Fixnum] access_policy_version
98
+ # Optional. The version of the access policy schema to fetch. Valid values are 0,
99
+ # 1, and 3. Requests specifying an invalid value will be rejected. Requests for
100
+ # conditional access policy binding in datasets must specify version 3. Dataset
101
+ # with no conditional role bindings in access policy may specify any valid value
102
+ # or leave the field unset. This field will be mapped to [IAM Policy version] (
103
+ # https://cloud.google.com/iam/docs/policies#versions) and will be used to fetch
104
+ # policy from IAM. If unset or if 0 or 1 value is used for dataset with
105
+ # conditional bindings, access entry with condition will have role string
106
+ # appended by 'withcond' string followed by a hash value. For example : ` "
107
+ # access": [ ` "role": "roles/bigquery.
108
+ # dataViewer_with_conditionalbinding_7a34awqsda", "userByEmail": "user@example.
109
+ # com", ` ] ` Please refer https://cloud.google.com/iam/docs/troubleshooting-
110
+ # withcond for more details.
97
111
  # @param [String] dataset_view
98
112
  # Optional. Specifies the view that determines which dataset information is
99
113
  # returned. By default, metadata and ACL information are returned.
@@ -114,12 +128,13 @@ module Google
114
128
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
115
129
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
116
130
  # @raise [Google::Apis::AuthorizationError] Authorization is required
117
- def get_dataset(project_id, dataset_id, dataset_view: nil, fields: nil, quota_user: nil, options: nil, &block)
131
+ def get_dataset(project_id, dataset_id, access_policy_version: nil, dataset_view: nil, fields: nil, quota_user: nil, options: nil, &block)
118
132
  command = make_simple_command(:get, 'projects/{+projectId}/datasets/{+datasetId}', options)
119
133
  command.response_representation = Google::Apis::BigqueryV2::Dataset::Representation
120
134
  command.response_class = Google::Apis::BigqueryV2::Dataset
121
135
  command.params['projectId'] = project_id unless project_id.nil?
122
136
  command.params['datasetId'] = dataset_id unless dataset_id.nil?
137
+ command.query['accessPolicyVersion'] = access_policy_version unless access_policy_version.nil?
123
138
  command.query['datasetView'] = dataset_view unless dataset_view.nil?
124
139
  command.query['fields'] = fields unless fields.nil?
125
140
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -130,6 +145,18 @@ module Google
130
145
  # @param [String] project_id
131
146
  # Required. Project ID of the new dataset
132
147
  # @param [Google::Apis::BigqueryV2::Dataset] dataset_object
148
+ # @param [Fixnum] access_policy_version
149
+ # Optional. The version of the provided access policy schema. Valid values are 0,
150
+ # 1, and 3. Requests specifying an invalid value will be rejected. This version
151
+ # refers to the schema version of the access policy and not the version of
152
+ # access policy. This field's value can be equal or more than the access policy
153
+ # schema provided in the request. For example, * Requests with conditional
154
+ # access policy binding in datasets must specify version 3. * But dataset with
155
+ # no conditional role bindings in access policy may specify any valid value or
156
+ # leave the field unset. If unset or if 0 or 1 value is used for dataset with
157
+ # conditional bindings, request will be rejected. This field will be mapped to
158
+ # IAM Policy version (https://cloud.google.com/iam/docs/policies#versions) and
159
+ # will be used to set policy in IAM.
133
160
  # @param [String] fields
134
161
  # Selector specifying which fields to include in a partial response.
135
162
  # @param [String] quota_user
@@ -147,13 +174,14 @@ module Google
147
174
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
148
175
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
149
176
  # @raise [Google::Apis::AuthorizationError] Authorization is required
150
- def insert_dataset(project_id, dataset_object = nil, fields: nil, quota_user: nil, options: nil, &block)
177
+ def insert_dataset(project_id, dataset_object = nil, access_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
151
178
  command = make_simple_command(:post, 'projects/{+projectId}/datasets', options)
152
179
  command.request_representation = Google::Apis::BigqueryV2::Dataset::Representation
153
180
  command.request_object = dataset_object
154
181
  command.response_representation = Google::Apis::BigqueryV2::Dataset::Representation
155
182
  command.response_class = Google::Apis::BigqueryV2::Dataset
156
183
  command.params['projectId'] = project_id unless project_id.nil?
184
+ command.query['accessPolicyVersion'] = access_policy_version unless access_policy_version.nil?
157
185
  command.query['fields'] = fields unless fields.nil?
158
186
  command.query['quotaUser'] = quota_user unless quota_user.nil?
159
187
  execute_or_queue_command(command, &block)
@@ -167,9 +195,9 @@ module Google
167
195
  # Whether to list all datasets, including hidden ones
168
196
  # @param [String] filter
169
197
  # An expression for filtering the results of the request by label. The syntax is
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/filtering-labels#
198
+ # `labels.[:]`. Multiple filters can be AND-ed together by connecting with a
199
+ # space. Example: `labels.department:receiving labels.active`. See [Filtering
200
+ # datasets using labels](https://cloud.google.com/bigquery/docs/filtering-labels#
173
201
  # filtering_datasets_using_labels) for details.
174
202
  # @param [Fixnum] max_results
175
203
  # The maximum number of results to return in a single response page. Leverage
@@ -216,6 +244,23 @@ module Google
216
244
  # @param [String] dataset_id
217
245
  # Required. Dataset ID of the dataset being updated
218
246
  # @param [Google::Apis::BigqueryV2::Dataset] dataset_object
247
+ # @param [Fixnum] access_policy_version
248
+ # Optional. The version of the provided access policy schema. Valid values are 0,
249
+ # 1, and 3. Requests specifying an invalid value will be rejected. This version
250
+ # refers to the schema version of the access policy and not the version of
251
+ # access policy. This field's value can be equal or more than the access policy
252
+ # schema provided in the request. For example, * Operations updating conditional
253
+ # access policy binding in datasets must specify version 3. Some of the
254
+ # operations are : - Adding a new access policy entry with condition. - Removing
255
+ # an access policy entry with condition. - Updating an access policy entry with
256
+ # condition. * But dataset with no conditional role bindings in access policy
257
+ # may specify any valid value or leave the field unset. If unset or if 0 or 1
258
+ # value is used for dataset with conditional bindings, request will be rejected.
259
+ # This field will be mapped to IAM Policy version (https://cloud.google.com/iam/
260
+ # docs/policies#versions) and will be used to set policy in IAM.
261
+ # @param [String] update_mode
262
+ # Optional. Specifies the fields of dataset that update/patch operation is
263
+ # targeting By default, both metadata and ACL fields are updated.
219
264
  # @param [String] fields
220
265
  # Selector specifying which fields to include in a partial response.
221
266
  # @param [String] quota_user
@@ -233,7 +278,7 @@ module Google
233
278
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
234
279
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
235
280
  # @raise [Google::Apis::AuthorizationError] Authorization is required
236
- def patch_dataset(project_id, dataset_id, dataset_object = nil, fields: nil, quota_user: nil, options: nil, &block)
281
+ def patch_dataset(project_id, dataset_id, dataset_object = nil, access_policy_version: nil, update_mode: nil, fields: nil, quota_user: nil, options: nil, &block)
237
282
  command = make_simple_command(:patch, 'projects/{+projectId}/datasets/{+datasetId}', options)
238
283
  command.request_representation = Google::Apis::BigqueryV2::Dataset::Representation
239
284
  command.request_object = dataset_object
@@ -241,6 +286,8 @@ module Google
241
286
  command.response_class = Google::Apis::BigqueryV2::Dataset
242
287
  command.params['projectId'] = project_id unless project_id.nil?
243
288
  command.params['datasetId'] = dataset_id unless dataset_id.nil?
289
+ command.query['accessPolicyVersion'] = access_policy_version unless access_policy_version.nil?
290
+ command.query['updateMode'] = update_mode unless update_mode.nil?
244
291
  command.query['fields'] = fields unless fields.nil?
245
292
  command.query['quotaUser'] = quota_user unless quota_user.nil?
246
293
  execute_or_queue_command(command, &block)
@@ -292,6 +339,23 @@ module Google
292
339
  # @param [String] dataset_id
293
340
  # Required. Dataset ID of the dataset being updated
294
341
  # @param [Google::Apis::BigqueryV2::Dataset] dataset_object
342
+ # @param [Fixnum] access_policy_version
343
+ # Optional. The version of the provided access policy schema. Valid values are 0,
344
+ # 1, and 3. Requests specifying an invalid value will be rejected. This version
345
+ # refers to the schema version of the access policy and not the version of
346
+ # access policy. This field's value can be equal or more than the access policy
347
+ # schema provided in the request. For example, * Operations updating conditional
348
+ # access policy binding in datasets must specify version 3. Some of the
349
+ # operations are : - Adding a new access policy entry with condition. - Removing
350
+ # an access policy entry with condition. - Updating an access policy entry with
351
+ # condition. * But dataset with no conditional role bindings in access policy
352
+ # may specify any valid value or leave the field unset. If unset or if 0 or 1
353
+ # value is used for dataset with conditional bindings, request will be rejected.
354
+ # This field will be mapped to IAM Policy version (https://cloud.google.com/iam/
355
+ # docs/policies#versions) and will be used to set policy in IAM.
356
+ # @param [String] update_mode
357
+ # Optional. Specifies the fields of dataset that update/patch operation is
358
+ # targeting By default, both metadata and ACL fields are updated.
295
359
  # @param [String] fields
296
360
  # Selector specifying which fields to include in a partial response.
297
361
  # @param [String] quota_user
@@ -309,7 +373,7 @@ module Google
309
373
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
310
374
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
311
375
  # @raise [Google::Apis::AuthorizationError] Authorization is required
312
- def update_dataset(project_id, dataset_id, dataset_object = nil, fields: nil, quota_user: nil, options: nil, &block)
376
+ def update_dataset(project_id, dataset_id, dataset_object = nil, access_policy_version: nil, update_mode: nil, fields: nil, quota_user: nil, options: nil, &block)
313
377
  command = make_simple_command(:put, 'projects/{+projectId}/datasets/{+datasetId}', options)
314
378
  command.request_representation = Google::Apis::BigqueryV2::Dataset::Representation
315
379
  command.request_object = dataset_object
@@ -317,6 +381,8 @@ module Google
317
381
  command.response_class = Google::Apis::BigqueryV2::Dataset
318
382
  command.params['projectId'] = project_id unless project_id.nil?
319
383
  command.params['datasetId'] = dataset_id unless dataset_id.nil?
384
+ command.query['accessPolicyVersion'] = access_policy_version unless access_policy_version.nil?
385
+ command.query['updateMode'] = update_mode unless update_mode.nil?
320
386
  command.query['fields'] = fields unless fields.nil?
321
387
  command.query['quotaUser'] = quota_user unless quota_user.nil?
322
388
  execute_or_queue_command(command, &block)
@@ -330,11 +396,11 @@ module Google
330
396
  # @param [String] job_id
331
397
  # Required. Job ID of the job to cancel
332
398
  # @param [String] location
333
- # The geographic location of the job. You must specify the location to run the
334
- # job for the following scenarios: - If the location to run a job is not in the `
335
- # us` or the `eu` multi-regional location - If the job's location is in a single
336
- # region (for example, `us-central1`) For more information, see https://cloud.
337
- # google.com/bigquery/docs/locations#specifying_your_location.
399
+ # The geographic location of the job. You must [specify the location](https://
400
+ # cloud.google.com/bigquery/docs/locations#specify_locations) to run the job for
401
+ # the following scenarios: * If the location to run a job is not in the `us` or
402
+ # the `eu` multi-regional location * If the job's location is in a single region
403
+ # (for example, `us-central1`)
338
404
  # @param [String] fields
339
405
  # Selector specifying which fields to include in a partial response.
340
406
  # @param [String] quota_user
@@ -373,8 +439,9 @@ module Google
373
439
  # parent job which has child jobs, the metadata from all child jobs will be
374
440
  # deleted as well. Direct deletion of the metadata of child jobs is not allowed.
375
441
  # @param [String] location
376
- # The geographic location of the job. Required. See details at: https://cloud.
377
- # google.com/bigquery/docs/locations#specifying_your_location.
442
+ # The geographic location of the job. Required. For more information, see how to
443
+ # [specify locations](https://cloud.google.com/bigquery/docs/locations#
444
+ # specify_locations).
378
445
  # @param [String] fields
379
446
  # Selector specifying which fields to include in a partial response.
380
447
  # @param [String] quota_user
@@ -411,10 +478,10 @@ module Google
411
478
  # Required. Job ID of the requested job.
412
479
  # @param [String] location
413
480
  # 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.
481
+ # job for the following scenarios: * If the location to run a job is not in the `
482
+ # us` or the `eu` multi-regional location * If the job's location is in a single
483
+ # region (for example, `us-central1`) For more information, see how to [specify
484
+ # locations](https://cloud.google.com/bigquery/docs/locations#specify_locations).
418
485
  # @param [String] fields
419
486
  # Selector specifying which fields to include in a partial response.
420
487
  # @param [String] quota_user
@@ -449,14 +516,18 @@ module Google
449
516
  # Required. Project ID of the query job.
450
517
  # @param [String] job_id
451
518
  # Required. Job ID of the query job.
519
+ # @param [String] format_options_timestamp_output_format
520
+ # Optional. The API output format for a timestamp. This offers more explicit
521
+ # control over the timestamp output format as compared to the existing `
522
+ # use_int64_timestamp` option.
452
523
  # @param [Boolean] format_options_use_int64_timestamp
453
524
  # Optional. Output timestamp as usec int64. Default is false.
454
525
  # @param [String] location
455
526
  # 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.
527
+ # job for the following scenarios: * If the location to run a job is not in the `
528
+ # us` or the `eu` multi-regional location * If the job's location is in a single
529
+ # region (for example, `us-central1`) For more information, see how to [specify
530
+ # locations](https://cloud.google.com/bigquery/docs/locations#specify_locations).
460
531
  # @param [Fixnum] max_results
461
532
  # Maximum number of results to read.
462
533
  # @param [String] page_token
@@ -491,12 +562,13 @@ module Google
491
562
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
492
563
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
493
564
  # @raise [Google::Apis::AuthorizationError] Authorization is required
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)
565
+ def get_job_query_results(project_id, job_id, format_options_timestamp_output_format: nil, 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
566
  command = make_simple_command(:get, 'projects/{+projectId}/queries/{+jobId}', options)
496
567
  command.response_representation = Google::Apis::BigqueryV2::GetQueryResultsResponse::Representation
497
568
  command.response_class = Google::Apis::BigqueryV2::GetQueryResultsResponse
498
569
  command.params['projectId'] = project_id unless project_id.nil?
499
570
  command.params['jobId'] = job_id unless job_id.nil?
571
+ command.query['formatOptions.timestampOutputFormat'] = format_options_timestamp_output_format unless format_options_timestamp_output_format.nil?
500
572
  command.query['formatOptions.useInt64Timestamp'] = format_options_use_int64_timestamp unless format_options_use_int64_timestamp.nil?
501
573
  command.query['location'] = location unless location.nil?
502
574
  command.query['maxResults'] = max_results unless max_results.nil?
@@ -1106,6 +1178,45 @@ module Google
1106
1178
  execute_or_queue_command(command, &block)
1107
1179
  end
1108
1180
 
1181
+ # Returns permissions that a caller has on the specified resource. If the
1182
+ # resource does not exist, this will return an empty set of permissions, not a `
1183
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
1184
+ # permission-aware UIs and command-line tools, not for authorization checking.
1185
+ # This operation may "fail open" without warning.
1186
+ # @param [String] resource
1187
+ # REQUIRED: The resource for which the policy detail is being requested. See [
1188
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1189
+ # appropriate value for this field.
1190
+ # @param [Google::Apis::BigqueryV2::TestIamPermissionsRequest] test_iam_permissions_request_object
1191
+ # @param [String] fields
1192
+ # Selector specifying which fields to include in a partial response.
1193
+ # @param [String] quota_user
1194
+ # Available to use for quota purposes for server-side applications. Can be any
1195
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1196
+ # @param [Google::Apis::RequestOptions] options
1197
+ # Request-specific options
1198
+ #
1199
+ # @yield [result, err] Result & error if block supplied
1200
+ # @yieldparam result [Google::Apis::BigqueryV2::TestIamPermissionsResponse] parsed result object
1201
+ # @yieldparam err [StandardError] error object if request failed
1202
+ #
1203
+ # @return [Google::Apis::BigqueryV2::TestIamPermissionsResponse]
1204
+ #
1205
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1206
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1207
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1208
+ def test_routine_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1209
+ command = make_simple_command(:post, '{+resource}:testIamPermissions', options)
1210
+ command.request_representation = Google::Apis::BigqueryV2::TestIamPermissionsRequest::Representation
1211
+ command.request_object = test_iam_permissions_request_object
1212
+ command.response_representation = Google::Apis::BigqueryV2::TestIamPermissionsResponse::Representation
1213
+ command.response_class = Google::Apis::BigqueryV2::TestIamPermissionsResponse
1214
+ command.params['resource'] = resource unless resource.nil?
1215
+ command.query['fields'] = fields unless fields.nil?
1216
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1217
+ execute_or_queue_command(command, &block)
1218
+ end
1219
+
1109
1220
  # Updates information in an existing routine. The update method replaces the
1110
1221
  # entire Routine resource.
1111
1222
  # @param [String] project_id
@@ -1146,6 +1257,124 @@ module Google
1146
1257
  execute_or_queue_command(command, &block)
1147
1258
  end
1148
1259
 
1260
+ # Deletes provided row access policies.
1261
+ # @param [String] project_id
1262
+ # Required. Project ID of the table to delete the row access policies.
1263
+ # @param [String] dataset_id
1264
+ # Required. Dataset ID of the table to delete the row access policies.
1265
+ # @param [String] table_id
1266
+ # Required. Table ID of the table to delete the row access policies.
1267
+ # @param [Google::Apis::BigqueryV2::BatchDeleteRowAccessPoliciesRequest] batch_delete_row_access_policies_request_object
1268
+ # @param [String] fields
1269
+ # Selector specifying which fields to include in a partial response.
1270
+ # @param [String] quota_user
1271
+ # Available to use for quota purposes for server-side applications. Can be any
1272
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1273
+ # @param [Google::Apis::RequestOptions] options
1274
+ # Request-specific options
1275
+ #
1276
+ # @yield [result, err] Result & error if block supplied
1277
+ # @yieldparam result [NilClass] No result returned for this method
1278
+ # @yieldparam err [StandardError] error object if request failed
1279
+ #
1280
+ # @return [void]
1281
+ #
1282
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1283
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1284
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1285
+ def batch_row_access_policy_delete_row_access_policies(project_id, dataset_id, table_id, batch_delete_row_access_policies_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1286
+ command = make_simple_command(:post, 'projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}/rowAccessPolicies:batchDelete', options)
1287
+ command.request_representation = Google::Apis::BigqueryV2::BatchDeleteRowAccessPoliciesRequest::Representation
1288
+ command.request_object = batch_delete_row_access_policies_request_object
1289
+ command.params['projectId'] = project_id unless project_id.nil?
1290
+ command.params['datasetId'] = dataset_id unless dataset_id.nil?
1291
+ command.params['tableId'] = table_id unless table_id.nil?
1292
+ command.query['fields'] = fields unless fields.nil?
1293
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1294
+ execute_or_queue_command(command, &block)
1295
+ end
1296
+
1297
+ # Deletes a row access policy.
1298
+ # @param [String] project_id
1299
+ # Required. Project ID of the table to delete the row access policy.
1300
+ # @param [String] dataset_id
1301
+ # Required. Dataset ID of the table to delete the row access policy.
1302
+ # @param [String] table_id
1303
+ # Required. Table ID of the table to delete the row access policy.
1304
+ # @param [String] policy_id
1305
+ # Required. Policy ID of the row access policy.
1306
+ # @param [Boolean] force
1307
+ # If set to true, it deletes the row access policy even if it's the last row
1308
+ # access policy on the table and the deletion will widen the access rather
1309
+ # narrowing it.
1310
+ # @param [String] fields
1311
+ # Selector specifying which fields to include in a partial response.
1312
+ # @param [String] quota_user
1313
+ # Available to use for quota purposes for server-side applications. Can be any
1314
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1315
+ # @param [Google::Apis::RequestOptions] options
1316
+ # Request-specific options
1317
+ #
1318
+ # @yield [result, err] Result & error if block supplied
1319
+ # @yieldparam result [NilClass] No result returned for this method
1320
+ # @yieldparam err [StandardError] error object if request failed
1321
+ #
1322
+ # @return [void]
1323
+ #
1324
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1325
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1326
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1327
+ def delete_row_access_policy(project_id, dataset_id, table_id, policy_id, force: nil, fields: nil, quota_user: nil, options: nil, &block)
1328
+ command = make_simple_command(:delete, 'projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}/rowAccessPolicies/{+policyId}', options)
1329
+ command.params['projectId'] = project_id unless project_id.nil?
1330
+ command.params['datasetId'] = dataset_id unless dataset_id.nil?
1331
+ command.params['tableId'] = table_id unless table_id.nil?
1332
+ command.params['policyId'] = policy_id unless policy_id.nil?
1333
+ command.query['force'] = force unless force.nil?
1334
+ command.query['fields'] = fields unless fields.nil?
1335
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1336
+ execute_or_queue_command(command, &block)
1337
+ end
1338
+
1339
+ # Gets the specified row access policy by policy ID.
1340
+ # @param [String] project_id
1341
+ # Required. Project ID of the table to get the row access policy.
1342
+ # @param [String] dataset_id
1343
+ # Required. Dataset ID of the table to get the row access policy.
1344
+ # @param [String] table_id
1345
+ # Required. Table ID of the table to get the row access policy.
1346
+ # @param [String] policy_id
1347
+ # Required. Policy ID of the row access policy.
1348
+ # @param [String] fields
1349
+ # Selector specifying which fields to include in a partial response.
1350
+ # @param [String] quota_user
1351
+ # Available to use for quota purposes for server-side applications. Can be any
1352
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1353
+ # @param [Google::Apis::RequestOptions] options
1354
+ # Request-specific options
1355
+ #
1356
+ # @yield [result, err] Result & error if block supplied
1357
+ # @yieldparam result [Google::Apis::BigqueryV2::RowAccessPolicy] parsed result object
1358
+ # @yieldparam err [StandardError] error object if request failed
1359
+ #
1360
+ # @return [Google::Apis::BigqueryV2::RowAccessPolicy]
1361
+ #
1362
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1363
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1364
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1365
+ def get_row_access_policy(project_id, dataset_id, table_id, policy_id, fields: nil, quota_user: nil, options: nil, &block)
1366
+ command = make_simple_command(:get, 'projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}/rowAccessPolicies/{+policyId}', options)
1367
+ command.response_representation = Google::Apis::BigqueryV2::RowAccessPolicy::Representation
1368
+ command.response_class = Google::Apis::BigqueryV2::RowAccessPolicy
1369
+ command.params['projectId'] = project_id unless project_id.nil?
1370
+ command.params['datasetId'] = dataset_id unless dataset_id.nil?
1371
+ command.params['tableId'] = table_id unless table_id.nil?
1372
+ command.params['policyId'] = policy_id unless policy_id.nil?
1373
+ command.query['fields'] = fields unless fields.nil?
1374
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1375
+ execute_or_queue_command(command, &block)
1376
+ end
1377
+
1149
1378
  # Gets the access control policy for a resource. Returns an empty policy if the
1150
1379
  # resource exists and does not have a policy set.
1151
1380
  # @param [String] resource
@@ -1182,6 +1411,45 @@ module Google
1182
1411
  execute_or_queue_command(command, &block)
1183
1412
  end
1184
1413
 
1414
+ # Creates a row access policy.
1415
+ # @param [String] project_id
1416
+ # Required. Project ID of the table to get the row access policy.
1417
+ # @param [String] dataset_id
1418
+ # Required. Dataset ID of the table to get the row access policy.
1419
+ # @param [String] table_id
1420
+ # Required. Table ID of the table to get the row access policy.
1421
+ # @param [Google::Apis::BigqueryV2::RowAccessPolicy] row_access_policy_object
1422
+ # @param [String] fields
1423
+ # Selector specifying which fields to include in a partial response.
1424
+ # @param [String] quota_user
1425
+ # Available to use for quota purposes for server-side applications. Can be any
1426
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1427
+ # @param [Google::Apis::RequestOptions] options
1428
+ # Request-specific options
1429
+ #
1430
+ # @yield [result, err] Result & error if block supplied
1431
+ # @yieldparam result [Google::Apis::BigqueryV2::RowAccessPolicy] parsed result object
1432
+ # @yieldparam err [StandardError] error object if request failed
1433
+ #
1434
+ # @return [Google::Apis::BigqueryV2::RowAccessPolicy]
1435
+ #
1436
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1437
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1438
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1439
+ def insert_row_access_policy(project_id, dataset_id, table_id, row_access_policy_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1440
+ command = make_simple_command(:post, 'projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}/rowAccessPolicies', options)
1441
+ command.request_representation = Google::Apis::BigqueryV2::RowAccessPolicy::Representation
1442
+ command.request_object = row_access_policy_object
1443
+ command.response_representation = Google::Apis::BigqueryV2::RowAccessPolicy::Representation
1444
+ command.response_class = Google::Apis::BigqueryV2::RowAccessPolicy
1445
+ command.params['projectId'] = project_id unless project_id.nil?
1446
+ command.params['datasetId'] = dataset_id unless dataset_id.nil?
1447
+ command.params['tableId'] = table_id unless table_id.nil?
1448
+ command.query['fields'] = fields unless fields.nil?
1449
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1450
+ execute_or_queue_command(command, &block)
1451
+ end
1452
+
1185
1453
  # Lists all row access policies on the specified table.
1186
1454
  # @param [String] project_id
1187
1455
  # Required. Project ID of the row access policies to list.
@@ -1264,6 +1532,48 @@ module Google
1264
1532
  execute_or_queue_command(command, &block)
1265
1533
  end
1266
1534
 
1535
+ # Updates a row access policy.
1536
+ # @param [String] project_id
1537
+ # Required. Project ID of the table to get the row access policy.
1538
+ # @param [String] dataset_id
1539
+ # Required. Dataset ID of the table to get the row access policy.
1540
+ # @param [String] table_id
1541
+ # Required. Table ID of the table to get the row access policy.
1542
+ # @param [String] policy_id
1543
+ # Required. Policy ID of the row access policy.
1544
+ # @param [Google::Apis::BigqueryV2::RowAccessPolicy] row_access_policy_object
1545
+ # @param [String] fields
1546
+ # Selector specifying which fields to include in a partial response.
1547
+ # @param [String] quota_user
1548
+ # Available to use for quota purposes for server-side applications. Can be any
1549
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1550
+ # @param [Google::Apis::RequestOptions] options
1551
+ # Request-specific options
1552
+ #
1553
+ # @yield [result, err] Result & error if block supplied
1554
+ # @yieldparam result [Google::Apis::BigqueryV2::RowAccessPolicy] parsed result object
1555
+ # @yieldparam err [StandardError] error object if request failed
1556
+ #
1557
+ # @return [Google::Apis::BigqueryV2::RowAccessPolicy]
1558
+ #
1559
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1560
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1561
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1562
+ def update_row_access_policy(project_id, dataset_id, table_id, policy_id, row_access_policy_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1563
+ command = make_simple_command(:put, 'projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}/rowAccessPolicies/{+policyId}', options)
1564
+ command.request_representation = Google::Apis::BigqueryV2::RowAccessPolicy::Representation
1565
+ command.request_object = row_access_policy_object
1566
+ command.response_representation = Google::Apis::BigqueryV2::RowAccessPolicy::Representation
1567
+ command.response_class = Google::Apis::BigqueryV2::RowAccessPolicy
1568
+ command.params['projectId'] = project_id unless project_id.nil?
1569
+ command.params['datasetId'] = dataset_id unless dataset_id.nil?
1570
+ command.params['tableId'] = table_id unless table_id.nil?
1571
+ command.params['policyId'] = policy_id unless policy_id.nil?
1572
+ command.query['fields'] = fields unless fields.nil?
1573
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1574
+ execute_or_queue_command(command, &block)
1575
+ end
1576
+
1267
1577
  # Streams data into BigQuery one record at a time without needing to run a load
1268
1578
  # job.
1269
1579
  # @param [String] project_id
@@ -1311,6 +1621,10 @@ module Google
1311
1621
  # Required. Dataset id of the table to list.
1312
1622
  # @param [String] table_id
1313
1623
  # Required. Table id of the table to list.
1624
+ # @param [String] format_options_timestamp_output_format
1625
+ # Optional. The API output format for a timestamp. This offers more explicit
1626
+ # control over the timestamp output format as compared to the existing `
1627
+ # use_int64_timestamp` option.
1314
1628
  # @param [Boolean] format_options_use_int64_timestamp
1315
1629
  # Optional. Output timestamp as usec int64. Default is false.
1316
1630
  # @param [Fixnum] max_results
@@ -1341,13 +1655,14 @@ module Google
1341
1655
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1342
1656
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1343
1657
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1344
- 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)
1658
+ def list_table_data(project_id, dataset_id, table_id, format_options_timestamp_output_format: nil, 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)
1345
1659
  command = make_simple_command(:get, 'projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}/data', options)
1346
1660
  command.response_representation = Google::Apis::BigqueryV2::TableDataList::Representation
1347
1661
  command.response_class = Google::Apis::BigqueryV2::TableDataList
1348
1662
  command.params['projectId'] = project_id unless project_id.nil?
1349
1663
  command.params['datasetId'] = dataset_id unless dataset_id.nil?
1350
1664
  command.params['tableId'] = table_id unless table_id.nil?
1665
+ command.query['formatOptions.timestampOutputFormat'] = format_options_timestamp_output_format unless format_options_timestamp_output_format.nil?
1351
1666
  command.query['formatOptions.useInt64Timestamp'] = format_options_use_int64_timestamp unless format_options_use_int64_timestamp.nil?
1352
1667
  command.query['maxResults'] = max_results unless max_results.nil?
1353
1668
  command.query['pageToken'] = page_token unless page_token.nil?
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-bigquery_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.71.0
4
+ version: 0.92.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-06-09 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: google-apis-core
@@ -58,9 +57,8 @@ licenses:
58
57
  metadata:
59
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-bigquery_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-bigquery_v2/v0.71.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-bigquery_v2/v0.92.0
62
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-bigquery_v2
63
- post_install_message:
64
62
  rdoc_options: []
65
63
  require_paths:
66
64
  - lib
@@ -68,15 +66,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
68
66
  requirements:
69
67
  - - ">="
70
68
  - !ruby/object:Gem::Version
71
- version: '2.7'
69
+ version: '3.1'
72
70
  required_rubygems_version: !ruby/object:Gem::Requirement
73
71
  requirements:
74
72
  - - ">="
75
73
  - !ruby/object:Gem::Version
76
74
  version: '0'
77
75
  requirements: []
78
- rubygems_version: 3.5.6
79
- signing_key:
76
+ rubygems_version: 3.6.9
80
77
  specification_version: 4
81
78
  summary: Simple REST client for BigQuery API V2
82
79
  test_files: []