google-apis-bigquery_v2 0.1.0 → 0.11.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +42 -0
- data/lib/google/apis/bigquery_v2.rb +1 -4
- data/lib/google/apis/bigquery_v2/classes.rb +365 -40
- data/lib/google/apis/bigquery_v2/gem_version.rb +3 -3
- data/lib/google/apis/bigquery_v2/representations.rb +105 -1
- data/lib/google/apis/bigquery_v2/service.rb +161 -0
- metadata +5 -5
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module BigqueryV2
|
18
18
|
# Version of the google-apis-bigquery_v2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.11.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.2.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210430"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -220,6 +220,18 @@ module Google
|
|
220
220
|
include Google::Apis::Core::JsonObjectSupport
|
221
221
|
end
|
222
222
|
|
223
|
+
class DatasetAccessEntry
|
224
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
225
|
+
|
226
|
+
class TargetType
|
227
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
228
|
+
|
229
|
+
include Google::Apis::Core::JsonObjectSupport
|
230
|
+
end
|
231
|
+
|
232
|
+
include Google::Apis::Core::JsonObjectSupport
|
233
|
+
end
|
234
|
+
|
223
235
|
class DatasetList
|
224
236
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
225
237
|
|
@@ -514,6 +526,12 @@ module Google
|
|
514
526
|
include Google::Apis::Core::JsonObjectSupport
|
515
527
|
end
|
516
528
|
|
529
|
+
class ParquetOptions
|
530
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
531
|
+
|
532
|
+
include Google::Apis::Core::JsonObjectSupport
|
533
|
+
end
|
534
|
+
|
517
535
|
class Policy
|
518
536
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
519
537
|
|
@@ -652,6 +670,12 @@ module Google
|
|
652
670
|
include Google::Apis::Core::JsonObjectSupport
|
653
671
|
end
|
654
672
|
|
673
|
+
class SessionInfo
|
674
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
675
|
+
|
676
|
+
include Google::Apis::Core::JsonObjectSupport
|
677
|
+
end
|
678
|
+
|
655
679
|
class SetIamPolicyRequest
|
656
680
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
657
681
|
|
@@ -682,6 +706,12 @@ module Google
|
|
682
706
|
include Google::Apis::Core::JsonObjectSupport
|
683
707
|
end
|
684
708
|
|
709
|
+
class StandardSqlTableType
|
710
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
711
|
+
|
712
|
+
include Google::Apis::Core::JsonObjectSupport
|
713
|
+
end
|
714
|
+
|
685
715
|
class Streamingbuffer
|
686
716
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
687
717
|
|
@@ -897,10 +927,14 @@ module Google
|
|
897
927
|
property :arima_fitting_metrics, as: 'arimaFittingMetrics', class: Google::Apis::BigqueryV2::ArimaFittingMetrics, decorator: Google::Apis::BigqueryV2::ArimaFittingMetrics::Representation
|
898
928
|
|
899
929
|
property :has_drift, as: 'hasDrift'
|
930
|
+
property :has_holiday_effect, as: 'hasHolidayEffect'
|
931
|
+
property :has_spikes_and_dips, as: 'hasSpikesAndDips'
|
932
|
+
property :has_step_changes, as: 'hasStepChanges'
|
900
933
|
property :non_seasonal_order, as: 'nonSeasonalOrder', class: Google::Apis::BigqueryV2::ArimaOrder, decorator: Google::Apis::BigqueryV2::ArimaOrder::Representation
|
901
934
|
|
902
935
|
collection :seasonal_periods, as: 'seasonalPeriods'
|
903
936
|
property :time_series_id, as: 'timeSeriesId'
|
937
|
+
collection :time_series_ids, as: 'timeSeriesIds'
|
904
938
|
end
|
905
939
|
end
|
906
940
|
|
@@ -928,10 +962,14 @@ module Google
|
|
928
962
|
property :arima_fitting_metrics, as: 'arimaFittingMetrics', class: Google::Apis::BigqueryV2::ArimaFittingMetrics, decorator: Google::Apis::BigqueryV2::ArimaFittingMetrics::Representation
|
929
963
|
|
930
964
|
property :has_drift, as: 'hasDrift'
|
965
|
+
property :has_holiday_effect, as: 'hasHolidayEffect'
|
966
|
+
property :has_spikes_and_dips, as: 'hasSpikesAndDips'
|
967
|
+
property :has_step_changes, as: 'hasStepChanges'
|
931
968
|
property :non_seasonal_order, as: 'nonSeasonalOrder', class: Google::Apis::BigqueryV2::ArimaOrder, decorator: Google::Apis::BigqueryV2::ArimaOrder::Representation
|
932
969
|
|
933
970
|
collection :seasonal_periods, as: 'seasonalPeriods'
|
934
971
|
property :time_series_id, as: 'timeSeriesId'
|
972
|
+
collection :time_series_ids, as: 'timeSeriesIds'
|
935
973
|
end
|
936
974
|
end
|
937
975
|
|
@@ -1024,7 +1062,6 @@ module Google
|
|
1024
1062
|
class Binding
|
1025
1063
|
# @private
|
1026
1064
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1027
|
-
property :binding_id, as: 'bindingId'
|
1028
1065
|
property :condition, as: 'condition', class: Google::Apis::BigqueryV2::Expr, decorator: Google::Apis::BigqueryV2::Expr::Representation
|
1029
1066
|
|
1030
1067
|
collection :members, as: 'members'
|
@@ -1189,6 +1226,8 @@ module Google
|
|
1189
1226
|
class Access
|
1190
1227
|
# @private
|
1191
1228
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1229
|
+
property :dataset, as: 'dataset', class: Google::Apis::BigqueryV2::DatasetAccessEntry, decorator: Google::Apis::BigqueryV2::DatasetAccessEntry::Representation
|
1230
|
+
|
1192
1231
|
property :domain, as: 'domain'
|
1193
1232
|
property :group_by_email, as: 'groupByEmail'
|
1194
1233
|
property :iam_member, as: 'iamMember'
|
@@ -1203,6 +1242,23 @@ module Google
|
|
1203
1242
|
end
|
1204
1243
|
end
|
1205
1244
|
|
1245
|
+
class DatasetAccessEntry
|
1246
|
+
# @private
|
1247
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1248
|
+
property :dataset, as: 'dataset', class: Google::Apis::BigqueryV2::DatasetReference, decorator: Google::Apis::BigqueryV2::DatasetReference::Representation
|
1249
|
+
|
1250
|
+
collection :target_types, as: 'target_types', class: Google::Apis::BigqueryV2::DatasetAccessEntry::TargetType, decorator: Google::Apis::BigqueryV2::DatasetAccessEntry::TargetType::Representation
|
1251
|
+
|
1252
|
+
end
|
1253
|
+
|
1254
|
+
class TargetType
|
1255
|
+
# @private
|
1256
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1257
|
+
property :target_type, as: 'targetType'
|
1258
|
+
end
|
1259
|
+
end
|
1260
|
+
end
|
1261
|
+
|
1206
1262
|
class DatasetList
|
1207
1263
|
# @private
|
1208
1264
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1366,6 +1422,8 @@ module Google
|
|
1366
1422
|
|
1367
1423
|
property :ignore_unknown_values, as: 'ignoreUnknownValues'
|
1368
1424
|
property :max_bad_records, as: 'maxBadRecords'
|
1425
|
+
property :parquet_options, as: 'parquetOptions', class: Google::Apis::BigqueryV2::ParquetOptions, decorator: Google::Apis::BigqueryV2::ParquetOptions::Representation
|
1426
|
+
|
1369
1427
|
property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation
|
1370
1428
|
|
1371
1429
|
property :source_format, as: 'sourceFormat'
|
@@ -1553,8 +1611,11 @@ module Google
|
|
1553
1611
|
property :hive_partitioning_options, as: 'hivePartitioningOptions', class: Google::Apis::BigqueryV2::HivePartitioningOptions, decorator: Google::Apis::BigqueryV2::HivePartitioningOptions::Representation
|
1554
1612
|
|
1555
1613
|
property :ignore_unknown_values, as: 'ignoreUnknownValues'
|
1614
|
+
property :json_extension, as: 'jsonExtension'
|
1556
1615
|
property :max_bad_records, as: 'maxBadRecords'
|
1557
1616
|
property :null_marker, as: 'nullMarker'
|
1617
|
+
property :parquet_options, as: 'parquetOptions', class: Google::Apis::BigqueryV2::ParquetOptions, decorator: Google::Apis::BigqueryV2::ParquetOptions::Representation
|
1618
|
+
|
1558
1619
|
collection :projection_fields, as: 'projectionFields'
|
1559
1620
|
property :quote, as: 'quote'
|
1560
1621
|
property :range_partitioning, as: 'rangePartitioning', class: Google::Apis::BigqueryV2::RangePartitioning, decorator: Google::Apis::BigqueryV2::RangePartitioning::Representation
|
@@ -1583,6 +1644,7 @@ module Google
|
|
1583
1644
|
collection :connection_properties, as: 'connectionProperties', class: Google::Apis::BigqueryV2::ConnectionProperty, decorator: Google::Apis::BigqueryV2::ConnectionProperty::Representation
|
1584
1645
|
|
1585
1646
|
property :create_disposition, as: 'createDisposition'
|
1647
|
+
property :create_session, as: 'createSession'
|
1586
1648
|
property :default_dataset, as: 'defaultDataset', class: Google::Apis::BigqueryV2::DatasetReference, decorator: Google::Apis::BigqueryV2::DatasetReference::Representation
|
1587
1649
|
|
1588
1650
|
property :destination_encryption_configuration, as: 'destinationEncryptionConfiguration', class: Google::Apis::BigqueryV2::EncryptionConfiguration, decorator: Google::Apis::BigqueryV2::EncryptionConfiguration::Representation
|
@@ -1693,6 +1755,8 @@ module Google
|
|
1693
1755
|
|
1694
1756
|
property :script_statistics, as: 'scriptStatistics', class: Google::Apis::BigqueryV2::ScriptStatistics, decorator: Google::Apis::BigqueryV2::ScriptStatistics::Representation
|
1695
1757
|
|
1758
|
+
property :session_info_template, as: 'sessionInfoTemplate', class: Google::Apis::BigqueryV2::SessionInfo, decorator: Google::Apis::BigqueryV2::SessionInfo::Representation
|
1759
|
+
|
1696
1760
|
property :start_time, :numeric_string => true, as: 'startTime'
|
1697
1761
|
property :total_bytes_processed, :numeric_string => true, as: 'totalBytesProcessed'
|
1698
1762
|
property :total_slot_ms, :numeric_string => true, as: 'totalSlotMs'
|
@@ -1715,7 +1779,11 @@ module Google
|
|
1715
1779
|
property :billing_tier, as: 'billingTier'
|
1716
1780
|
property :cache_hit, as: 'cacheHit'
|
1717
1781
|
property :ddl_affected_row_access_policy_count, :numeric_string => true, as: 'ddlAffectedRowAccessPolicyCount'
|
1782
|
+
property :ddl_destination_table, as: 'ddlDestinationTable', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
|
1783
|
+
|
1718
1784
|
property :ddl_operation_performed, as: 'ddlOperationPerformed'
|
1785
|
+
property :ddl_target_dataset, as: 'ddlTargetDataset', class: Google::Apis::BigqueryV2::DatasetReference, decorator: Google::Apis::BigqueryV2::DatasetReference::Representation
|
1786
|
+
|
1719
1787
|
property :ddl_target_routine, as: 'ddlTargetRoutine', class: Google::Apis::BigqueryV2::RoutineReference, decorator: Google::Apis::BigqueryV2::RoutineReference::Representation
|
1720
1788
|
|
1721
1789
|
property :ddl_target_row_access_policy, as: 'ddlTargetRowAccessPolicy', class: Google::Apis::BigqueryV2::RowAccessPolicyReference, decorator: Google::Apis::BigqueryV2::RowAccessPolicyReference::Representation
|
@@ -1836,6 +1904,7 @@ module Google
|
|
1836
1904
|
class Model
|
1837
1905
|
# @private
|
1838
1906
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1907
|
+
property :best_trial_id, :numeric_string => true, as: 'bestTrialId'
|
1839
1908
|
property :creation_time, :numeric_string => true, as: 'creationTime'
|
1840
1909
|
property :description, as: 'description'
|
1841
1910
|
property :encryption_configuration, as: 'encryptionConfiguration', class: Google::Apis::BigqueryV2::EncryptionConfiguration, decorator: Google::Apis::BigqueryV2::EncryptionConfiguration::Representation
|
@@ -1896,6 +1965,14 @@ module Google
|
|
1896
1965
|
end
|
1897
1966
|
end
|
1898
1967
|
|
1968
|
+
class ParquetOptions
|
1969
|
+
# @private
|
1970
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1971
|
+
property :enable_list_inference, as: 'enableListInference'
|
1972
|
+
property :enum_as_string, as: 'enumAsString'
|
1973
|
+
end
|
1974
|
+
end
|
1975
|
+
|
1899
1976
|
class Policy
|
1900
1977
|
# @private
|
1901
1978
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1987,6 +2064,7 @@ module Google
|
|
1987
2064
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1988
2065
|
collection :connection_properties, as: 'connectionProperties', class: Google::Apis::BigqueryV2::ConnectionProperty, decorator: Google::Apis::BigqueryV2::ConnectionProperty::Representation
|
1989
2066
|
|
2067
|
+
property :create_session, as: 'createSession'
|
1990
2068
|
property :default_dataset, as: 'defaultDataset', class: Google::Apis::BigqueryV2::DatasetReference, decorator: Google::Apis::BigqueryV2::DatasetReference::Representation
|
1991
2069
|
|
1992
2070
|
property :dry_run, as: 'dryRun'
|
@@ -2023,6 +2101,8 @@ module Google
|
|
2023
2101
|
|
2024
2102
|
property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation
|
2025
2103
|
|
2104
|
+
property :session_info_template, as: 'sessionInfoTemplate', class: Google::Apis::BigqueryV2::SessionInfo, decorator: Google::Apis::BigqueryV2::SessionInfo::Representation
|
2105
|
+
|
2026
2106
|
property :total_bytes_processed, :numeric_string => true, as: 'totalBytesProcessed'
|
2027
2107
|
property :total_rows, :numeric_string => true, as: 'totalRows'
|
2028
2108
|
end
|
@@ -2091,6 +2171,8 @@ module Google
|
|
2091
2171
|
collection :imported_libraries, as: 'importedLibraries'
|
2092
2172
|
property :language, as: 'language'
|
2093
2173
|
property :last_modified_time, :numeric_string => true, as: 'lastModifiedTime'
|
2174
|
+
property :return_table_type, as: 'returnTableType', class: Google::Apis::BigqueryV2::StandardSqlTableType, decorator: Google::Apis::BigqueryV2::StandardSqlTableType::Representation
|
2175
|
+
|
2094
2176
|
property :return_type, as: 'returnType', class: Google::Apis::BigqueryV2::StandardSqlDataType, decorator: Google::Apis::BigqueryV2::StandardSqlDataType::Representation
|
2095
2177
|
|
2096
2178
|
property :routine_reference, as: 'routineReference', class: Google::Apis::BigqueryV2::RoutineReference, decorator: Google::Apis::BigqueryV2::RoutineReference::Representation
|
@@ -2167,6 +2249,13 @@ module Google
|
|
2167
2249
|
end
|
2168
2250
|
end
|
2169
2251
|
|
2252
|
+
class SessionInfo
|
2253
|
+
# @private
|
2254
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2255
|
+
property :session_id, as: 'sessionId'
|
2256
|
+
end
|
2257
|
+
end
|
2258
|
+
|
2170
2259
|
class SetIamPolicyRequest
|
2171
2260
|
# @private
|
2172
2261
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2214,6 +2303,14 @@ module Google
|
|
2214
2303
|
end
|
2215
2304
|
end
|
2216
2305
|
|
2306
|
+
class StandardSqlTableType
|
2307
|
+
# @private
|
2308
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2309
|
+
collection :columns, as: 'columns', class: Google::Apis::BigqueryV2::StandardSqlField, decorator: Google::Apis::BigqueryV2::StandardSqlField::Representation
|
2310
|
+
|
2311
|
+
end
|
2312
|
+
end
|
2313
|
+
|
2217
2314
|
class Streamingbuffer
|
2218
2315
|
# @private
|
2219
2316
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2335,10 +2432,13 @@ module Google
|
|
2335
2432
|
property :description, as: 'description'
|
2336
2433
|
collection :fields, as: 'fields', class: Google::Apis::BigqueryV2::TableFieldSchema, decorator: Google::Apis::BigqueryV2::TableFieldSchema::Representation
|
2337
2434
|
|
2435
|
+
property :max_length, :numeric_string => true, as: 'maxLength'
|
2338
2436
|
property :mode, as: 'mode'
|
2339
2437
|
property :name, as: 'name'
|
2340
2438
|
property :policy_tags, as: 'policyTags', class: Google::Apis::BigqueryV2::TableFieldSchema::PolicyTags, decorator: Google::Apis::BigqueryV2::TableFieldSchema::PolicyTags::Representation
|
2341
2439
|
|
2440
|
+
property :precision, :numeric_string => true, as: 'precision'
|
2441
|
+
property :scale, :numeric_string => true, as: 'scale'
|
2342
2442
|
property :type, as: 'type'
|
2343
2443
|
end
|
2344
2444
|
|
@@ -2451,13 +2551,16 @@ module Google
|
|
2451
2551
|
class TrainingOptions
|
2452
2552
|
# @private
|
2453
2553
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2554
|
+
property :adjust_step_changes, as: 'adjustStepChanges'
|
2454
2555
|
property :auto_arima, as: 'autoArima'
|
2455
2556
|
property :auto_arima_max_order, :numeric_string => true, as: 'autoArimaMaxOrder'
|
2456
2557
|
property :batch_size, :numeric_string => true, as: 'batchSize'
|
2558
|
+
property :clean_spikes_and_dips, as: 'cleanSpikesAndDips'
|
2457
2559
|
property :data_frequency, as: 'dataFrequency'
|
2458
2560
|
property :data_split_column, as: 'dataSplitColumn'
|
2459
2561
|
property :data_split_eval_fraction, as: 'dataSplitEvalFraction'
|
2460
2562
|
property :data_split_method, as: 'dataSplitMethod'
|
2563
|
+
property :decompose_time_series, as: 'decomposeTimeSeries'
|
2461
2564
|
property :distance_type, as: 'distanceType'
|
2462
2565
|
property :dropout, as: 'dropout'
|
2463
2566
|
property :early_stop, as: 'earlyStop'
|
@@ -2491,6 +2594,7 @@ module Google
|
|
2491
2594
|
property :subsample, as: 'subsample'
|
2492
2595
|
property :time_series_data_column, as: 'timeSeriesDataColumn'
|
2493
2596
|
property :time_series_id_column, as: 'timeSeriesIdColumn'
|
2597
|
+
collection :time_series_id_columns, as: 'timeSeriesIdColumns'
|
2494
2598
|
property :time_series_timestamp_column, as: 'timeSeriesTimestampColumn'
|
2495
2599
|
property :user_column, as: 'userColumn'
|
2496
2600
|
property :wals_alpha, as: 'walsAlpha'
|
@@ -340,6 +340,47 @@ module Google
|
|
340
340
|
execute_or_queue_command(command, &block)
|
341
341
|
end
|
342
342
|
|
343
|
+
# Requests that a job is deleted. This call will return when the job is deleted.
|
344
|
+
# This method is available in limited preview.
|
345
|
+
# @param [String] project_id
|
346
|
+
# Required. Project ID of the job to be deleted.
|
347
|
+
# @param [String] job_id
|
348
|
+
# Required. Job ID of the job to be deleted. If this is a parent job which has
|
349
|
+
# child jobs, all child jobs will be deleted as well. Deletion of child jobs
|
350
|
+
# directly is not allowed.
|
351
|
+
# @param [String] location
|
352
|
+
# The geographic location of the job. Required. See details at: https://cloud.
|
353
|
+
# google.com/bigquery/docs/locations#specifying_your_location.
|
354
|
+
# @param [String] fields
|
355
|
+
# Selector specifying which fields to include in a partial response.
|
356
|
+
# @param [String] quota_user
|
357
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
358
|
+
# characters.
|
359
|
+
# @param [String] user_ip
|
360
|
+
# Deprecated. Please use quotaUser instead.
|
361
|
+
# @param [Google::Apis::RequestOptions] options
|
362
|
+
# Request-specific options
|
363
|
+
#
|
364
|
+
# @yield [result, err] Result & error if block supplied
|
365
|
+
# @yieldparam result [NilClass] No result returned for this method
|
366
|
+
# @yieldparam err [StandardError] error object if request failed
|
367
|
+
#
|
368
|
+
# @return [void]
|
369
|
+
#
|
370
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
371
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
372
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
373
|
+
def delete_job(project_id, job_id, location: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
374
|
+
command = make_simple_command(:delete, 'projects/{+projectId}/jobs/{+jobId}/delete', options)
|
375
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
376
|
+
command.params['jobId'] = job_id unless job_id.nil?
|
377
|
+
command.query['location'] = location unless location.nil?
|
378
|
+
command.query['fields'] = fields unless fields.nil?
|
379
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
380
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
381
|
+
execute_or_queue_command(command, &block)
|
382
|
+
end
|
383
|
+
|
343
384
|
# Returns information about a specific job. Job information is available for a
|
344
385
|
# six month period after creation. Requires that you're the person who ran the
|
345
386
|
# job, or have the Is Owner project role.
|
@@ -660,6 +701,8 @@ module Google
|
|
660
701
|
end
|
661
702
|
|
662
703
|
# Lists all models in the specified dataset. Requires the READER dataset role.
|
704
|
+
# After retrieving the list of models, you can get information about a
|
705
|
+
# particular model by calling the models.get method.
|
663
706
|
# @param [String] project_id
|
664
707
|
# Required. Project ID of the models to list.
|
665
708
|
# @param [String] dataset_id
|
@@ -1030,6 +1073,44 @@ module Google
|
|
1030
1073
|
execute_or_queue_command(command, &block)
|
1031
1074
|
end
|
1032
1075
|
|
1076
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
1077
|
+
# resource exists and does not have a policy set.
|
1078
|
+
# @param [String] resource
|
1079
|
+
# REQUIRED: The resource for which the policy is being requested. See the
|
1080
|
+
# operation documentation for the appropriate value for this field.
|
1081
|
+
# @param [Google::Apis::BigqueryV2::GetIamPolicyRequest] get_iam_policy_request_object
|
1082
|
+
# @param [String] fields
|
1083
|
+
# Selector specifying which fields to include in a partial response.
|
1084
|
+
# @param [String] quota_user
|
1085
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1086
|
+
# characters.
|
1087
|
+
# @param [String] user_ip
|
1088
|
+
# Deprecated. Please use quotaUser instead.
|
1089
|
+
# @param [Google::Apis::RequestOptions] options
|
1090
|
+
# Request-specific options
|
1091
|
+
#
|
1092
|
+
# @yield [result, err] Result & error if block supplied
|
1093
|
+
# @yieldparam result [Google::Apis::BigqueryV2::Policy] parsed result object
|
1094
|
+
# @yieldparam err [StandardError] error object if request failed
|
1095
|
+
#
|
1096
|
+
# @return [Google::Apis::BigqueryV2::Policy]
|
1097
|
+
#
|
1098
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1099
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1100
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1101
|
+
def get_row_access_policy_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1102
|
+
command = make_simple_command(:post, '{+resource}:getIamPolicy', options)
|
1103
|
+
command.request_representation = Google::Apis::BigqueryV2::GetIamPolicyRequest::Representation
|
1104
|
+
command.request_object = get_iam_policy_request_object
|
1105
|
+
command.response_representation = Google::Apis::BigqueryV2::Policy::Representation
|
1106
|
+
command.response_class = Google::Apis::BigqueryV2::Policy
|
1107
|
+
command.params['resource'] = resource unless resource.nil?
|
1108
|
+
command.query['fields'] = fields unless fields.nil?
|
1109
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1110
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1111
|
+
execute_or_queue_command(command, &block)
|
1112
|
+
end
|
1113
|
+
|
1033
1114
|
# Lists all row access policies on the specified table.
|
1034
1115
|
# @param [String] project_id
|
1035
1116
|
# Required. Project ID of the row access policies to list.
|
@@ -1076,6 +1157,86 @@ module Google
|
|
1076
1157
|
execute_or_queue_command(command, &block)
|
1077
1158
|
end
|
1078
1159
|
|
1160
|
+
# Sets the access control policy on the specified resource. Replaces any
|
1161
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
1162
|
+
# PERMISSION_DENIED` errors.
|
1163
|
+
# @param [String] resource
|
1164
|
+
# REQUIRED: The resource for which the policy is being specified. See the
|
1165
|
+
# operation documentation for the appropriate value for this field.
|
1166
|
+
# @param [Google::Apis::BigqueryV2::SetIamPolicyRequest] set_iam_policy_request_object
|
1167
|
+
# @param [String] fields
|
1168
|
+
# Selector specifying which fields to include in a partial response.
|
1169
|
+
# @param [String] quota_user
|
1170
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1171
|
+
# characters.
|
1172
|
+
# @param [String] user_ip
|
1173
|
+
# Deprecated. Please use quotaUser instead.
|
1174
|
+
# @param [Google::Apis::RequestOptions] options
|
1175
|
+
# Request-specific options
|
1176
|
+
#
|
1177
|
+
# @yield [result, err] Result & error if block supplied
|
1178
|
+
# @yieldparam result [Google::Apis::BigqueryV2::Policy] parsed result object
|
1179
|
+
# @yieldparam err [StandardError] error object if request failed
|
1180
|
+
#
|
1181
|
+
# @return [Google::Apis::BigqueryV2::Policy]
|
1182
|
+
#
|
1183
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1184
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1185
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1186
|
+
def set_row_access_policy_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1187
|
+
command = make_simple_command(:post, '{+resource}:setIamPolicy', options)
|
1188
|
+
command.request_representation = Google::Apis::BigqueryV2::SetIamPolicyRequest::Representation
|
1189
|
+
command.request_object = set_iam_policy_request_object
|
1190
|
+
command.response_representation = Google::Apis::BigqueryV2::Policy::Representation
|
1191
|
+
command.response_class = Google::Apis::BigqueryV2::Policy
|
1192
|
+
command.params['resource'] = resource unless resource.nil?
|
1193
|
+
command.query['fields'] = fields unless fields.nil?
|
1194
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1195
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1196
|
+
execute_or_queue_command(command, &block)
|
1197
|
+
end
|
1198
|
+
|
1199
|
+
# Returns permissions that a caller has on the specified resource. If the
|
1200
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
1201
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
1202
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
1203
|
+
# This operation may "fail open" without warning.
|
1204
|
+
# @param [String] resource
|
1205
|
+
# REQUIRED: The resource for which the policy detail is being requested. See the
|
1206
|
+
# operation documentation for the appropriate value for this field.
|
1207
|
+
# @param [Google::Apis::BigqueryV2::TestIamPermissionsRequest] test_iam_permissions_request_object
|
1208
|
+
# @param [String] fields
|
1209
|
+
# Selector specifying which fields to include in a partial response.
|
1210
|
+
# @param [String] quota_user
|
1211
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1212
|
+
# characters.
|
1213
|
+
# @param [String] user_ip
|
1214
|
+
# Deprecated. Please use quotaUser instead.
|
1215
|
+
# @param [Google::Apis::RequestOptions] options
|
1216
|
+
# Request-specific options
|
1217
|
+
#
|
1218
|
+
# @yield [result, err] Result & error if block supplied
|
1219
|
+
# @yieldparam result [Google::Apis::BigqueryV2::TestIamPermissionsResponse] parsed result object
|
1220
|
+
# @yieldparam err [StandardError] error object if request failed
|
1221
|
+
#
|
1222
|
+
# @return [Google::Apis::BigqueryV2::TestIamPermissionsResponse]
|
1223
|
+
#
|
1224
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1225
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1226
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1227
|
+
def test_row_access_policy_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1228
|
+
command = make_simple_command(:post, '{+resource}:testIamPermissions', options)
|
1229
|
+
command.request_representation = Google::Apis::BigqueryV2::TestIamPermissionsRequest::Representation
|
1230
|
+
command.request_object = test_iam_permissions_request_object
|
1231
|
+
command.response_representation = Google::Apis::BigqueryV2::TestIamPermissionsResponse::Representation
|
1232
|
+
command.response_class = Google::Apis::BigqueryV2::TestIamPermissionsResponse
|
1233
|
+
command.params['resource'] = resource unless resource.nil?
|
1234
|
+
command.query['fields'] = fields unless fields.nil?
|
1235
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1236
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1237
|
+
execute_or_queue_command(command, &block)
|
1238
|
+
end
|
1239
|
+
|
1079
1240
|
# Streams data into BigQuery one record at a time without needing to run a load
|
1080
1241
|
# job. Requires the WRITER dataset role.
|
1081
1242
|
# @param [String] project_id
|