google-apis-bigquery_v2 0.1.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4e33511bdeccf5110ce927fca86ca321110d9c0755b0a43529b0390c36dd0f1
|
4
|
+
data.tar.gz: d58f56c600e44f1822062855a7bcdefa54d9f53e1ccc40ae0a9ae30f8a975a8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82985f2ac789ee22884e6f8ffffdbad1b8e7b32ae9ea27dd9bf939360488c3e291322d519f4bb92bf922b988d6ed397e513abc69cce3724eef0bda5be09afb76
|
7
|
+
data.tar.gz: c64799317473adbdf31b65d8435b8539c3c91eab5a84ec62b21ef25e824401b9977436b472801a3e28c9612bae9f4d38da6aa922836fdf898971face33a87da2
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,26 @@
|
|
1
1
|
# Release history for google-apis-bigquery_v2
|
2
2
|
|
3
|
+
### v0.6.0 (2021-03-04)
|
4
|
+
|
5
|
+
* Unspecified changes
|
6
|
+
|
7
|
+
### v0.5.0 (2021-02-26)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210219
|
10
|
+
|
11
|
+
### v0.4.0 (2021-02-20)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210215
|
14
|
+
|
15
|
+
### v0.3.0 (2021-02-13)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20210204
|
18
|
+
|
19
|
+
### v0.2.0 (2021-01-23)
|
20
|
+
|
21
|
+
* Regenerated from discovery document revision 20210118
|
22
|
+
* Regenerated using generator version 0.1.2
|
23
|
+
|
3
24
|
### v0.1.0 (2021-01-07)
|
4
25
|
|
5
26
|
* Regenerated using generator version 0.1.1
|
@@ -276,7 +276,9 @@ module Google
|
|
276
276
|
# @return [Array<String>]
|
277
277
|
attr_accessor :seasonal_periods
|
278
278
|
|
279
|
-
# The
|
279
|
+
# The time_series_id value for this time series. It will be one of the unique
|
280
|
+
# values from the time_series_id_column specified during ARIMA model training.
|
281
|
+
# Only present when time_series_id_column training option was used.
|
280
282
|
# Corresponds to the JSON property `timeSeriesId`
|
281
283
|
# @return [String]
|
282
284
|
attr_accessor :time_series_id
|
@@ -381,7 +383,9 @@ module Google
|
|
381
383
|
# @return [Array<String>]
|
382
384
|
attr_accessor :seasonal_periods
|
383
385
|
|
384
|
-
# The
|
386
|
+
# The time_series_id value for this time series. It will be one of the unique
|
387
|
+
# values from the time_series_id_column specified during ARIMA model training.
|
388
|
+
# Only present when time_series_id_column training option was used.
|
385
389
|
# Corresponds to the JSON property `timeSeriesId`
|
386
390
|
# @return [String]
|
387
391
|
attr_accessor :time_series_id
|
@@ -784,11 +788,6 @@ module Google
|
|
784
788
|
class Binding
|
785
789
|
include Google::Apis::Core::Hashable
|
786
790
|
|
787
|
-
#
|
788
|
-
# Corresponds to the JSON property `bindingId`
|
789
|
-
# @return [String]
|
790
|
-
attr_accessor :binding_id
|
791
|
-
|
792
791
|
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
793
792
|
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
794
793
|
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
@@ -850,7 +849,6 @@ module Google
|
|
850
849
|
|
851
850
|
# Update properties of this object
|
852
851
|
def update!(**args)
|
853
|
-
@binding_id = args[:binding_id] if args.key?(:binding_id)
|
854
852
|
@condition = args[:condition] if args.key?(:condition)
|
855
853
|
@members = args[:members] if args.key?(:members)
|
856
854
|
@role = args[:role] if args.key?(:role)
|
@@ -1158,7 +1156,7 @@ module Google
|
|
1158
1156
|
class ClusteringMetrics
|
1159
1157
|
include Google::Apis::Core::Hashable
|
1160
1158
|
|
1161
|
-
#
|
1159
|
+
# Information for all clusters.
|
1162
1160
|
# Corresponds to the JSON property `clusters`
|
1163
1161
|
# @return [Array<Google::Apis::BigqueryV2::Cluster>]
|
1164
1162
|
attr_accessor :clusters
|
@@ -1489,6 +1487,15 @@ module Google
|
|
1489
1487
|
class Access
|
1490
1488
|
include Google::Apis::Core::Hashable
|
1491
1489
|
|
1490
|
+
# [Pick one] A grant authorizing all resources of a particular type in a
|
1491
|
+
# particular dataset access to this dataset. Only views are supported for now.
|
1492
|
+
# The role field is not required when this field is set. If that dataset is
|
1493
|
+
# deleted and re-created, its access needs to be granted again via an update
|
1494
|
+
# operation.
|
1495
|
+
# Corresponds to the JSON property `dataset`
|
1496
|
+
# @return [Google::Apis::BigqueryV2::DatasetAccessEntry]
|
1497
|
+
attr_accessor :dataset
|
1498
|
+
|
1492
1499
|
# [Pick one] A domain to grant access to. Any users signed in with the domain
|
1493
1500
|
# specified will be granted the specified access. Example: "example.com". Maps
|
1494
1501
|
# to IAM policy member "domain:DOMAIN".
|
@@ -1557,6 +1564,7 @@ module Google
|
|
1557
1564
|
|
1558
1565
|
# Update properties of this object
|
1559
1566
|
def update!(**args)
|
1567
|
+
@dataset = args[:dataset] if args.key?(:dataset)
|
1560
1568
|
@domain = args[:domain] if args.key?(:domain)
|
1561
1569
|
@group_by_email = args[:group_by_email] if args.key?(:group_by_email)
|
1562
1570
|
@iam_member = args[:iam_member] if args.key?(:iam_member)
|
@@ -1569,6 +1577,52 @@ module Google
|
|
1569
1577
|
end
|
1570
1578
|
end
|
1571
1579
|
|
1580
|
+
#
|
1581
|
+
class DatasetAccessEntry
|
1582
|
+
include Google::Apis::Core::Hashable
|
1583
|
+
|
1584
|
+
# [Required] The dataset this entry applies to.
|
1585
|
+
# Corresponds to the JSON property `dataset`
|
1586
|
+
# @return [Google::Apis::BigqueryV2::DatasetReference]
|
1587
|
+
attr_accessor :dataset
|
1588
|
+
|
1589
|
+
#
|
1590
|
+
# Corresponds to the JSON property `target_types`
|
1591
|
+
# @return [Array<Google::Apis::BigqueryV2::DatasetAccessEntry::TargetType>]
|
1592
|
+
attr_accessor :target_types
|
1593
|
+
|
1594
|
+
def initialize(**args)
|
1595
|
+
update!(**args)
|
1596
|
+
end
|
1597
|
+
|
1598
|
+
# Update properties of this object
|
1599
|
+
def update!(**args)
|
1600
|
+
@dataset = args[:dataset] if args.key?(:dataset)
|
1601
|
+
@target_types = args[:target_types] if args.key?(:target_types)
|
1602
|
+
end
|
1603
|
+
|
1604
|
+
#
|
1605
|
+
class TargetType
|
1606
|
+
include Google::Apis::Core::Hashable
|
1607
|
+
|
1608
|
+
# [Required] Which resources in the dataset this entry applies to. Currently,
|
1609
|
+
# only views are supported, but additional target types may be added in the
|
1610
|
+
# future. Possible values: VIEWS: This entry applies to all views in the dataset.
|
1611
|
+
# Corresponds to the JSON property `targetType`
|
1612
|
+
# @return [String]
|
1613
|
+
attr_accessor :target_type
|
1614
|
+
|
1615
|
+
def initialize(**args)
|
1616
|
+
update!(**args)
|
1617
|
+
end
|
1618
|
+
|
1619
|
+
# Update properties of this object
|
1620
|
+
def update!(**args)
|
1621
|
+
@target_type = args[:target_type] if args.key?(:target_type)
|
1622
|
+
end
|
1623
|
+
end
|
1624
|
+
end
|
1625
|
+
|
1572
1626
|
#
|
1573
1627
|
class DatasetList
|
1574
1628
|
include Google::Apis::Core::Hashable
|
@@ -1727,6 +1781,25 @@ module Google
|
|
1727
1781
|
end
|
1728
1782
|
end
|
1729
1783
|
|
1784
|
+
# Model evaluation metrics for dimensionality reduction models.
|
1785
|
+
class DimensionalityReductionMetrics
|
1786
|
+
include Google::Apis::Core::Hashable
|
1787
|
+
|
1788
|
+
# Total percentage of variance explained by the selected principal components.
|
1789
|
+
# Corresponds to the JSON property `totalExplainedVarianceRatio`
|
1790
|
+
# @return [Float]
|
1791
|
+
attr_accessor :total_explained_variance_ratio
|
1792
|
+
|
1793
|
+
def initialize(**args)
|
1794
|
+
update!(**args)
|
1795
|
+
end
|
1796
|
+
|
1797
|
+
# Update properties of this object
|
1798
|
+
def update!(**args)
|
1799
|
+
@total_explained_variance_ratio = args[:total_explained_variance_ratio] if args.key?(:total_explained_variance_ratio)
|
1800
|
+
end
|
1801
|
+
end
|
1802
|
+
|
1730
1803
|
#
|
1731
1804
|
class EncryptionConfiguration
|
1732
1805
|
include Google::Apis::Core::Hashable
|
@@ -1833,6 +1906,11 @@ module Google
|
|
1833
1906
|
# @return [Google::Apis::BigqueryV2::ClusteringMetrics]
|
1834
1907
|
attr_accessor :clustering_metrics
|
1835
1908
|
|
1909
|
+
# Model evaluation metrics for dimensionality reduction models.
|
1910
|
+
# Corresponds to the JSON property `dimensionalityReductionMetrics`
|
1911
|
+
# @return [Google::Apis::BigqueryV2::DimensionalityReductionMetrics]
|
1912
|
+
attr_accessor :dimensionality_reduction_metrics
|
1913
|
+
|
1836
1914
|
# Evaluation metrics for multi-class classification/classifier models.
|
1837
1915
|
# Corresponds to the JSON property `multiClassClassificationMetrics`
|
1838
1916
|
# @return [Google::Apis::BigqueryV2::MultiClassClassificationMetrics]
|
@@ -1859,6 +1937,7 @@ module Google
|
|
1859
1937
|
@arima_forecasting_metrics = args[:arima_forecasting_metrics] if args.key?(:arima_forecasting_metrics)
|
1860
1938
|
@binary_classification_metrics = args[:binary_classification_metrics] if args.key?(:binary_classification_metrics)
|
1861
1939
|
@clustering_metrics = args[:clustering_metrics] if args.key?(:clustering_metrics)
|
1940
|
+
@dimensionality_reduction_metrics = args[:dimensionality_reduction_metrics] if args.key?(:dimensionality_reduction_metrics)
|
1862
1941
|
@multi_class_classification_metrics = args[:multi_class_classification_metrics] if args.key?(:multi_class_classification_metrics)
|
1863
1942
|
@ranking_metrics = args[:ranking_metrics] if args.key?(:ranking_metrics)
|
1864
1943
|
@regression_metrics = args[:regression_metrics] if args.key?(:regression_metrics)
|
@@ -2202,7 +2281,7 @@ module Google
|
|
2202
2281
|
# @return [Google::Apis::BigqueryV2::GoogleSheetsOptions]
|
2203
2282
|
attr_accessor :google_sheets_options
|
2204
2283
|
|
2205
|
-
# [Optional
|
2284
|
+
# [Optional] Options to configure hive partitioning support.
|
2206
2285
|
# Corresponds to the JSON property `hivePartitioningOptions`
|
2207
2286
|
# @return [Google::Apis::BigqueryV2::HivePartitioningOptions]
|
2208
2287
|
attr_accessor :hive_partitioning_options
|
@@ -2231,6 +2310,11 @@ module Google
|
|
2231
2310
|
# @return [Fixnum]
|
2232
2311
|
attr_accessor :max_bad_records
|
2233
2312
|
|
2313
|
+
# Additional properties to set if sourceFormat is set to Parquet.
|
2314
|
+
# Corresponds to the JSON property `parquetOptions`
|
2315
|
+
# @return [Google::Apis::BigqueryV2::ParquetOptions]
|
2316
|
+
attr_accessor :parquet_options
|
2317
|
+
|
2234
2318
|
# [Optional] The schema for the data. Schema is required for CSV and JSON
|
2235
2319
|
# formats. Schema is disallowed for Google Cloud Bigtable, Cloud Datastore
|
2236
2320
|
# backups, and Avro formats.
|
@@ -2273,6 +2357,7 @@ module Google
|
|
2273
2357
|
@hive_partitioning_options = args[:hive_partitioning_options] if args.key?(:hive_partitioning_options)
|
2274
2358
|
@ignore_unknown_values = args[:ignore_unknown_values] if args.key?(:ignore_unknown_values)
|
2275
2359
|
@max_bad_records = args[:max_bad_records] if args.key?(:max_bad_records)
|
2360
|
+
@parquet_options = args[:parquet_options] if args.key?(:parquet_options)
|
2276
2361
|
@schema = args[:schema] if args.key?(:schema)
|
2277
2362
|
@source_format = args[:source_format] if args.key?(:source_format)
|
2278
2363
|
@source_uris = args[:source_uris] if args.key?(:source_uris)
|
@@ -2630,6 +2715,11 @@ module Google
|
|
2630
2715
|
# @return [Float]
|
2631
2716
|
attr_accessor :learn_rate
|
2632
2717
|
|
2718
|
+
# The information of the principal components.
|
2719
|
+
# Corresponds to the JSON property `principalComponentInfos`
|
2720
|
+
# @return [Array<Google::Apis::BigqueryV2::PrincipalComponentInfo>]
|
2721
|
+
attr_accessor :principal_component_infos
|
2722
|
+
|
2633
2723
|
# Loss computed on the training data at the end of iteration.
|
2634
2724
|
# Corresponds to the JSON property `trainingLoss`
|
2635
2725
|
# @return [Float]
|
@@ -2647,6 +2737,7 @@ module Google
|
|
2647
2737
|
@eval_loss = args[:eval_loss] if args.key?(:eval_loss)
|
2648
2738
|
@index = args[:index] if args.key?(:index)
|
2649
2739
|
@learn_rate = args[:learn_rate] if args.key?(:learn_rate)
|
2740
|
+
@principal_component_infos = args[:principal_component_infos] if args.key?(:principal_component_infos)
|
2650
2741
|
@training_loss = args[:training_loss] if args.key?(:training_loss)
|
2651
2742
|
end
|
2652
2743
|
end
|
@@ -2944,23 +3035,24 @@ module Google
|
|
2944
3035
|
# @return [String]
|
2945
3036
|
attr_accessor :create_disposition
|
2946
3037
|
|
2947
|
-
#
|
2948
|
-
#
|
2949
|
-
#
|
2950
|
-
#
|
2951
|
-
# list and if it supports the precision and the scale.
|
2952
|
-
# precision and scale values. If none of the listed types
|
2953
|
-
# and the scale, the type supporting the widest range in
|
2954
|
-
# picked, and if a value exceeds the supported range when
|
2955
|
-
# error will be thrown.
|
2956
|
-
# BIGNUMERIC"].
|
2957
|
-
# BIGNUMERIC (NUMERIC cannot hold 30 integer digits); * (38,
|
2958
|
-
# NUMERIC cannot hold 10 fractional digits); * (76,38) ->
|
2959
|
-
#
|
2960
|
-
#
|
2961
|
-
#
|
2962
|
-
# NUMERIC"
|
2963
|
-
#
|
3038
|
+
# Defines the list of possible SQL data types to which the source decimal values
|
3039
|
+
# are converted. This list and the precision and the scale parameters of the
|
3040
|
+
# decimal field determine the target type. In the order of NUMERIC, BIGNUMERIC ([
|
3041
|
+
# Preview](/products/#product-launch-stages)), and STRING, a type is picked if
|
3042
|
+
# it is in the specified list and if it supports the precision and the scale.
|
3043
|
+
# STRING supports all precision and scale values. If none of the listed types
|
3044
|
+
# supports the precision and the scale, the type supporting the widest range in
|
3045
|
+
# the specified list is picked, and if a value exceeds the supported range when
|
3046
|
+
# reading the data, an error will be thrown. Example: Suppose the value of this
|
3047
|
+
# field is ["NUMERIC", "BIGNUMERIC"]. If (precision,scale) is: * (38,9) ->
|
3048
|
+
# NUMERIC; * (39,9) -> BIGNUMERIC (NUMERIC cannot hold 30 integer digits); * (38,
|
3049
|
+
# 10) -> BIGNUMERIC (NUMERIC cannot hold 10 fractional digits); * (76,38) ->
|
3050
|
+
# BIGNUMERIC; * (77,38) -> BIGNUMERIC (error if value exeeds supported range).
|
3051
|
+
# This field cannot contain duplicate types. The order of the types in this
|
3052
|
+
# field is ignored. For example, ["BIGNUMERIC", "NUMERIC"] is the same as ["
|
3053
|
+
# NUMERIC", "BIGNUMERIC"] and NUMERIC always takes precedence over BIGNUMERIC.
|
3054
|
+
# Defaults to ["NUMERIC", "STRING"] for ORC and ["NUMERIC"] for the other file
|
3055
|
+
# formats.
|
2964
3056
|
# Corresponds to the JSON property `decimalTargetTypes`
|
2965
3057
|
# @return [Array<String>]
|
2966
3058
|
attr_accessor :decimal_target_types
|
@@ -2999,7 +3091,7 @@ module Google
|
|
2999
3091
|
# @return [String]
|
3000
3092
|
attr_accessor :field_delimiter
|
3001
3093
|
|
3002
|
-
# [Optional
|
3094
|
+
# [Optional] Options to configure hive partitioning support.
|
3003
3095
|
# Corresponds to the JSON property `hivePartitioningOptions`
|
3004
3096
|
# @return [Google::Apis::BigqueryV2::HivePartitioningOptions]
|
3005
3097
|
attr_accessor :hive_partitioning_options
|
@@ -3016,6 +3108,14 @@ module Google
|
|
3016
3108
|
attr_accessor :ignore_unknown_values
|
3017
3109
|
alias_method :ignore_unknown_values?, :ignore_unknown_values
|
3018
3110
|
|
3111
|
+
# [Optional] If sourceFormat is set to newline-delimited JSON, indicates whether
|
3112
|
+
# it should be processed as a JSON variant such as GeoJSON. For a sourceFormat
|
3113
|
+
# other than JSON, omit this field. If the sourceFormat is newline-delimited
|
3114
|
+
# JSON: - for newline-delimited GeoJSON: set to GEOJSON.
|
3115
|
+
# Corresponds to the JSON property `jsonExtension`
|
3116
|
+
# @return [String]
|
3117
|
+
attr_accessor :json_extension
|
3118
|
+
|
3019
3119
|
# [Optional] The maximum number of bad records that BigQuery can ignore when
|
3020
3120
|
# running the job. If the number of bad records exceeds this value, an invalid
|
3021
3121
|
# error is returned in the job result. This is only valid for CSV and JSON. The
|
@@ -3034,6 +3134,11 @@ module Google
|
|
3034
3134
|
# @return [String]
|
3035
3135
|
attr_accessor :null_marker
|
3036
3136
|
|
3137
|
+
# [Optional] Options to configure parquet support.
|
3138
|
+
# Corresponds to the JSON property `parquetOptions`
|
3139
|
+
# @return [Google::Apis::BigqueryV2::ParquetOptions]
|
3140
|
+
attr_accessor :parquet_options
|
3141
|
+
|
3037
3142
|
# If sourceFormat is set to "DATASTORE_BACKUP", indicates which entity
|
3038
3143
|
# properties to load into BigQuery from a Cloud Datastore backup. Property names
|
3039
3144
|
# are case sensitive and must be top-level properties. If no properties are
|
@@ -3162,8 +3267,10 @@ module Google
|
|
3162
3267
|
@field_delimiter = args[:field_delimiter] if args.key?(:field_delimiter)
|
3163
3268
|
@hive_partitioning_options = args[:hive_partitioning_options] if args.key?(:hive_partitioning_options)
|
3164
3269
|
@ignore_unknown_values = args[:ignore_unknown_values] if args.key?(:ignore_unknown_values)
|
3270
|
+
@json_extension = args[:json_extension] if args.key?(:json_extension)
|
3165
3271
|
@max_bad_records = args[:max_bad_records] if args.key?(:max_bad_records)
|
3166
3272
|
@null_marker = args[:null_marker] if args.key?(:null_marker)
|
3273
|
+
@parquet_options = args[:parquet_options] if args.key?(:parquet_options)
|
3167
3274
|
@projection_fields = args[:projection_fields] if args.key?(:projection_fields)
|
3168
3275
|
@quote = args[:quote] if args.key?(:quote)
|
3169
3276
|
@range_partitioning = args[:range_partitioning] if args.key?(:range_partitioning)
|
@@ -3783,6 +3890,12 @@ module Google
|
|
3783
3890
|
# @return [String]
|
3784
3891
|
attr_accessor :ddl_operation_performed
|
3785
3892
|
|
3893
|
+
# [Output-only] The DDL target dataset. Present only for CREATE/ALTER/DROP
|
3894
|
+
# SCHEMA queries.
|
3895
|
+
# Corresponds to the JSON property `ddlTargetDataset`
|
3896
|
+
# @return [Google::Apis::BigqueryV2::DatasetReference]
|
3897
|
+
attr_accessor :ddl_target_dataset
|
3898
|
+
|
3786
3899
|
# The DDL target routine. Present only for CREATE/DROP FUNCTION/PROCEDURE
|
3787
3900
|
# queries.
|
3788
3901
|
# Corresponds to the JSON property `ddlTargetRoutine`
|
@@ -3926,6 +4039,7 @@ module Google
|
|
3926
4039
|
@cache_hit = args[:cache_hit] if args.key?(:cache_hit)
|
3927
4040
|
@ddl_affected_row_access_policy_count = args[:ddl_affected_row_access_policy_count] if args.key?(:ddl_affected_row_access_policy_count)
|
3928
4041
|
@ddl_operation_performed = args[:ddl_operation_performed] if args.key?(:ddl_operation_performed)
|
4042
|
+
@ddl_target_dataset = args[:ddl_target_dataset] if args.key?(:ddl_target_dataset)
|
3929
4043
|
@ddl_target_routine = args[:ddl_target_routine] if args.key?(:ddl_target_routine)
|
3930
4044
|
@ddl_target_row_access_policy = args[:ddl_target_row_access_policy] if args.key?(:ddl_target_row_access_policy)
|
3931
4045
|
@ddl_target_table = args[:ddl_target_table] if args.key?(:ddl_target_table)
|
@@ -4463,6 +4577,35 @@ module Google
|
|
4463
4577
|
end
|
4464
4578
|
end
|
4465
4579
|
|
4580
|
+
#
|
4581
|
+
class ParquetOptions
|
4582
|
+
include Google::Apis::Core::Hashable
|
4583
|
+
|
4584
|
+
# [Optional] Indicates whether to use schema inference specifically for Parquet
|
4585
|
+
# LIST logical type.
|
4586
|
+
# Corresponds to the JSON property `enableListInference`
|
4587
|
+
# @return [Boolean]
|
4588
|
+
attr_accessor :enable_list_inference
|
4589
|
+
alias_method :enable_list_inference?, :enable_list_inference
|
4590
|
+
|
4591
|
+
# [Optional] Indicates whether to infer Parquet ENUM logical type as STRING
|
4592
|
+
# instead of BYTES by default.
|
4593
|
+
# Corresponds to the JSON property `enumAsString`
|
4594
|
+
# @return [Boolean]
|
4595
|
+
attr_accessor :enum_as_string
|
4596
|
+
alias_method :enum_as_string?, :enum_as_string
|
4597
|
+
|
4598
|
+
def initialize(**args)
|
4599
|
+
update!(**args)
|
4600
|
+
end
|
4601
|
+
|
4602
|
+
# Update properties of this object
|
4603
|
+
def update!(**args)
|
4604
|
+
@enable_list_inference = args[:enable_list_inference] if args.key?(:enable_list_inference)
|
4605
|
+
@enum_as_string = args[:enum_as_string] if args.key?(:enum_as_string)
|
4606
|
+
end
|
4607
|
+
end
|
4608
|
+
|
4466
4609
|
# An Identity and Access Management (IAM) policy, which specifies access
|
4467
4610
|
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
4468
4611
|
# A `binding` binds one or more `members` to a single `role`. Members can be
|
@@ -4553,6 +4696,45 @@ module Google
|
|
4553
4696
|
end
|
4554
4697
|
end
|
4555
4698
|
|
4699
|
+
# Principal component infos, used only for eigen decomposition based models, e.g.
|
4700
|
+
# , PCA. Ordered by explained_variance in the descending order.
|
4701
|
+
class PrincipalComponentInfo
|
4702
|
+
include Google::Apis::Core::Hashable
|
4703
|
+
|
4704
|
+
# The explained_variance is pre-ordered in the descending order to compute the
|
4705
|
+
# cumulative explained variance ratio.
|
4706
|
+
# Corresponds to the JSON property `cumulativeExplainedVarianceRatio`
|
4707
|
+
# @return [Float]
|
4708
|
+
attr_accessor :cumulative_explained_variance_ratio
|
4709
|
+
|
4710
|
+
# Explained variance by this principal component, which is simply the eigenvalue.
|
4711
|
+
# Corresponds to the JSON property `explainedVariance`
|
4712
|
+
# @return [Float]
|
4713
|
+
attr_accessor :explained_variance
|
4714
|
+
|
4715
|
+
# Explained_variance over the total explained variance.
|
4716
|
+
# Corresponds to the JSON property `explainedVarianceRatio`
|
4717
|
+
# @return [Float]
|
4718
|
+
attr_accessor :explained_variance_ratio
|
4719
|
+
|
4720
|
+
# Id of the principal component.
|
4721
|
+
# Corresponds to the JSON property `principalComponentId`
|
4722
|
+
# @return [Fixnum]
|
4723
|
+
attr_accessor :principal_component_id
|
4724
|
+
|
4725
|
+
def initialize(**args)
|
4726
|
+
update!(**args)
|
4727
|
+
end
|
4728
|
+
|
4729
|
+
# Update properties of this object
|
4730
|
+
def update!(**args)
|
4731
|
+
@cumulative_explained_variance_ratio = args[:cumulative_explained_variance_ratio] if args.key?(:cumulative_explained_variance_ratio)
|
4732
|
+
@explained_variance = args[:explained_variance] if args.key?(:explained_variance)
|
4733
|
+
@explained_variance_ratio = args[:explained_variance_ratio] if args.key?(:explained_variance_ratio)
|
4734
|
+
@principal_component_id = args[:principal_component_id] if args.key?(:principal_component_id)
|
4735
|
+
end
|
4736
|
+
end
|
4737
|
+
|
4556
4738
|
#
|
4557
4739
|
class ProjectList
|
4558
4740
|
include Google::Apis::Core::Hashable
|
@@ -5212,7 +5394,7 @@ module Google
|
|
5212
5394
|
# @return [Float]
|
5213
5395
|
attr_accessor :median_absolute_error
|
5214
5396
|
|
5215
|
-
# R^2 score.
|
5397
|
+
# R^2 score. This corresponds to r2_score in ML.EVALUATE.
|
5216
5398
|
# Corresponds to the JSON property `rSquared`
|
5217
5399
|
# @return [Float]
|
5218
5400
|
attr_accessor :r_squared
|
@@ -6228,9 +6410,10 @@ module Google
|
|
6228
6410
|
attr_accessor :policy_tags
|
6229
6411
|
|
6230
6412
|
# [Required] The field data type. Possible values include STRING, BYTES, INTEGER,
|
6231
|
-
# INT64 (same as INTEGER), FLOAT, FLOAT64 (same as FLOAT),
|
6232
|
-
# as BOOLEAN), TIMESTAMP, DATE, TIME, DATETIME, RECORD (
|
6233
|
-
# that the field contains a nested schema) or STRUCT (
|
6413
|
+
# INT64 (same as INTEGER), FLOAT, FLOAT64 (same as FLOAT), NUMERIC, BIGNUMERIC,
|
6414
|
+
# BOOLEAN, BOOL (same as BOOLEAN), TIMESTAMP, DATE, TIME, DATETIME, RECORD (
|
6415
|
+
# where RECORD indicates that the field contains a nested schema) or STRUCT (
|
6416
|
+
# same as RECORD).
|
6234
6417
|
# Corresponds to the JSON property `type`
|
6235
6418
|
# @return [String]
|
6236
6419
|
attr_accessor :type
|
@@ -6599,7 +6782,7 @@ module Google
|
|
6599
6782
|
end
|
6600
6783
|
end
|
6601
6784
|
|
6602
|
-
#
|
6785
|
+
# Options used in model training.
|
6603
6786
|
class TrainingOptions
|
6604
6787
|
include Google::Apis::Core::Hashable
|
6605
6788
|
|
@@ -6773,8 +6956,8 @@ module Google
|
|
6773
6956
|
# @return [Float]
|
6774
6957
|
attr_accessor :min_split_loss
|
6775
6958
|
|
6776
|
-
#
|
6777
|
-
#
|
6959
|
+
# Google Cloud Storage URI from which the model was imported. Only applicable
|
6960
|
+
# for imported models.
|
6778
6961
|
# Corresponds to the JSON property `modelUri`
|
6779
6962
|
# @return [String]
|
6780
6963
|
attr_accessor :model_uri
|
@@ -6818,8 +7001,7 @@ module Google
|
|
6818
7001
|
# @return [String]
|
6819
7002
|
attr_accessor :time_series_data_column
|
6820
7003
|
|
6821
|
-
# The id column that
|
6822
|
-
# in parallel.
|
7004
|
+
# The time series id column that was used during ARIMA model training.
|
6823
7005
|
# Corresponds to the JSON property `timeSeriesIdColumn`
|
6824
7006
|
# @return [String]
|
6825
7007
|
attr_accessor :time_series_id_column
|
@@ -6931,8 +7113,7 @@ module Google
|
|
6931
7113
|
# @return [String]
|
6932
7114
|
attr_accessor :start_time
|
6933
7115
|
|
6934
|
-
# Options
|
6935
|
-
# default options that were used.
|
7116
|
+
# Options used in model training.
|
6936
7117
|
# Corresponds to the JSON property `trainingOptions`
|
6937
7118
|
# @return [Google::Apis::BigqueryV2::TrainingOptions]
|
6938
7119
|
attr_accessor :training_options
|
@@ -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.6.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.1.
|
22
|
+
GENERATOR_VERSION = "0.1.2"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210219"
|
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
|
|
@@ -244,6 +256,12 @@ module Google
|
|
244
256
|
include Google::Apis::Core::JsonObjectSupport
|
245
257
|
end
|
246
258
|
|
259
|
+
class DimensionalityReductionMetrics
|
260
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
261
|
+
|
262
|
+
include Google::Apis::Core::JsonObjectSupport
|
263
|
+
end
|
264
|
+
|
247
265
|
class EncryptionConfiguration
|
248
266
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
249
267
|
|
@@ -514,12 +532,24 @@ module Google
|
|
514
532
|
include Google::Apis::Core::JsonObjectSupport
|
515
533
|
end
|
516
534
|
|
535
|
+
class ParquetOptions
|
536
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
537
|
+
|
538
|
+
include Google::Apis::Core::JsonObjectSupport
|
539
|
+
end
|
540
|
+
|
517
541
|
class Policy
|
518
542
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
519
543
|
|
520
544
|
include Google::Apis::Core::JsonObjectSupport
|
521
545
|
end
|
522
546
|
|
547
|
+
class PrincipalComponentInfo
|
548
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
549
|
+
|
550
|
+
include Google::Apis::Core::JsonObjectSupport
|
551
|
+
end
|
552
|
+
|
523
553
|
class ProjectList
|
524
554
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
525
555
|
|
@@ -1024,7 +1054,6 @@ module Google
|
|
1024
1054
|
class Binding
|
1025
1055
|
# @private
|
1026
1056
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1027
|
-
property :binding_id, as: 'bindingId'
|
1028
1057
|
property :condition, as: 'condition', class: Google::Apis::BigqueryV2::Expr, decorator: Google::Apis::BigqueryV2::Expr::Representation
|
1029
1058
|
|
1030
1059
|
collection :members, as: 'members'
|
@@ -1189,6 +1218,8 @@ module Google
|
|
1189
1218
|
class Access
|
1190
1219
|
# @private
|
1191
1220
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1221
|
+
property :dataset, as: 'dataset', class: Google::Apis::BigqueryV2::DatasetAccessEntry, decorator: Google::Apis::BigqueryV2::DatasetAccessEntry::Representation
|
1222
|
+
|
1192
1223
|
property :domain, as: 'domain'
|
1193
1224
|
property :group_by_email, as: 'groupByEmail'
|
1194
1225
|
property :iam_member, as: 'iamMember'
|
@@ -1203,6 +1234,23 @@ module Google
|
|
1203
1234
|
end
|
1204
1235
|
end
|
1205
1236
|
|
1237
|
+
class DatasetAccessEntry
|
1238
|
+
# @private
|
1239
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1240
|
+
property :dataset, as: 'dataset', class: Google::Apis::BigqueryV2::DatasetReference, decorator: Google::Apis::BigqueryV2::DatasetReference::Representation
|
1241
|
+
|
1242
|
+
collection :target_types, as: 'target_types', class: Google::Apis::BigqueryV2::DatasetAccessEntry::TargetType, decorator: Google::Apis::BigqueryV2::DatasetAccessEntry::TargetType::Representation
|
1243
|
+
|
1244
|
+
end
|
1245
|
+
|
1246
|
+
class TargetType
|
1247
|
+
# @private
|
1248
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1249
|
+
property :target_type, as: 'targetType'
|
1250
|
+
end
|
1251
|
+
end
|
1252
|
+
end
|
1253
|
+
|
1206
1254
|
class DatasetList
|
1207
1255
|
# @private
|
1208
1256
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1244,6 +1292,13 @@ module Google
|
|
1244
1292
|
end
|
1245
1293
|
end
|
1246
1294
|
|
1295
|
+
class DimensionalityReductionMetrics
|
1296
|
+
# @private
|
1297
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1298
|
+
property :total_explained_variance_ratio, as: 'totalExplainedVarianceRatio'
|
1299
|
+
end
|
1300
|
+
end
|
1301
|
+
|
1247
1302
|
class EncryptionConfiguration
|
1248
1303
|
# @private
|
1249
1304
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1278,6 +1333,8 @@ module Google
|
|
1278
1333
|
|
1279
1334
|
property :clustering_metrics, as: 'clusteringMetrics', class: Google::Apis::BigqueryV2::ClusteringMetrics, decorator: Google::Apis::BigqueryV2::ClusteringMetrics::Representation
|
1280
1335
|
|
1336
|
+
property :dimensionality_reduction_metrics, as: 'dimensionalityReductionMetrics', class: Google::Apis::BigqueryV2::DimensionalityReductionMetrics, decorator: Google::Apis::BigqueryV2::DimensionalityReductionMetrics::Representation
|
1337
|
+
|
1281
1338
|
property :multi_class_classification_metrics, as: 'multiClassClassificationMetrics', class: Google::Apis::BigqueryV2::MultiClassClassificationMetrics, decorator: Google::Apis::BigqueryV2::MultiClassClassificationMetrics::Representation
|
1282
1339
|
|
1283
1340
|
property :ranking_metrics, as: 'rankingMetrics', class: Google::Apis::BigqueryV2::RankingMetrics, decorator: Google::Apis::BigqueryV2::RankingMetrics::Representation
|
@@ -1366,6 +1423,8 @@ module Google
|
|
1366
1423
|
|
1367
1424
|
property :ignore_unknown_values, as: 'ignoreUnknownValues'
|
1368
1425
|
property :max_bad_records, as: 'maxBadRecords'
|
1426
|
+
property :parquet_options, as: 'parquetOptions', class: Google::Apis::BigqueryV2::ParquetOptions, decorator: Google::Apis::BigqueryV2::ParquetOptions::Representation
|
1427
|
+
|
1369
1428
|
property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation
|
1370
1429
|
|
1371
1430
|
property :source_format, as: 'sourceFormat'
|
@@ -1465,6 +1524,8 @@ module Google
|
|
1465
1524
|
property :eval_loss, as: 'evalLoss'
|
1466
1525
|
property :index, as: 'index'
|
1467
1526
|
property :learn_rate, as: 'learnRate'
|
1527
|
+
collection :principal_component_infos, as: 'principalComponentInfos', class: Google::Apis::BigqueryV2::PrincipalComponentInfo, decorator: Google::Apis::BigqueryV2::PrincipalComponentInfo::Representation
|
1528
|
+
|
1468
1529
|
property :training_loss, as: 'trainingLoss'
|
1469
1530
|
end
|
1470
1531
|
end
|
@@ -1553,8 +1614,11 @@ module Google
|
|
1553
1614
|
property :hive_partitioning_options, as: 'hivePartitioningOptions', class: Google::Apis::BigqueryV2::HivePartitioningOptions, decorator: Google::Apis::BigqueryV2::HivePartitioningOptions::Representation
|
1554
1615
|
|
1555
1616
|
property :ignore_unknown_values, as: 'ignoreUnknownValues'
|
1617
|
+
property :json_extension, as: 'jsonExtension'
|
1556
1618
|
property :max_bad_records, as: 'maxBadRecords'
|
1557
1619
|
property :null_marker, as: 'nullMarker'
|
1620
|
+
property :parquet_options, as: 'parquetOptions', class: Google::Apis::BigqueryV2::ParquetOptions, decorator: Google::Apis::BigqueryV2::ParquetOptions::Representation
|
1621
|
+
|
1558
1622
|
collection :projection_fields, as: 'projectionFields'
|
1559
1623
|
property :quote, as: 'quote'
|
1560
1624
|
property :range_partitioning, as: 'rangePartitioning', class: Google::Apis::BigqueryV2::RangePartitioning, decorator: Google::Apis::BigqueryV2::RangePartitioning::Representation
|
@@ -1716,6 +1780,8 @@ module Google
|
|
1716
1780
|
property :cache_hit, as: 'cacheHit'
|
1717
1781
|
property :ddl_affected_row_access_policy_count, :numeric_string => true, as: 'ddlAffectedRowAccessPolicyCount'
|
1718
1782
|
property :ddl_operation_performed, as: 'ddlOperationPerformed'
|
1783
|
+
property :ddl_target_dataset, as: 'ddlTargetDataset', class: Google::Apis::BigqueryV2::DatasetReference, decorator: Google::Apis::BigqueryV2::DatasetReference::Representation
|
1784
|
+
|
1719
1785
|
property :ddl_target_routine, as: 'ddlTargetRoutine', class: Google::Apis::BigqueryV2::RoutineReference, decorator: Google::Apis::BigqueryV2::RoutineReference::Representation
|
1720
1786
|
|
1721
1787
|
property :ddl_target_row_access_policy, as: 'ddlTargetRowAccessPolicy', class: Google::Apis::BigqueryV2::RowAccessPolicyReference, decorator: Google::Apis::BigqueryV2::RowAccessPolicyReference::Representation
|
@@ -1896,6 +1962,14 @@ module Google
|
|
1896
1962
|
end
|
1897
1963
|
end
|
1898
1964
|
|
1965
|
+
class ParquetOptions
|
1966
|
+
# @private
|
1967
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1968
|
+
property :enable_list_inference, as: 'enableListInference'
|
1969
|
+
property :enum_as_string, as: 'enumAsString'
|
1970
|
+
end
|
1971
|
+
end
|
1972
|
+
|
1899
1973
|
class Policy
|
1900
1974
|
# @private
|
1901
1975
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1908,6 +1982,16 @@ module Google
|
|
1908
1982
|
end
|
1909
1983
|
end
|
1910
1984
|
|
1985
|
+
class PrincipalComponentInfo
|
1986
|
+
# @private
|
1987
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1988
|
+
property :cumulative_explained_variance_ratio, as: 'cumulativeExplainedVarianceRatio'
|
1989
|
+
property :explained_variance, as: 'explainedVariance'
|
1990
|
+
property :explained_variance_ratio, as: 'explainedVarianceRatio'
|
1991
|
+
property :principal_component_id, :numeric_string => true, as: 'principalComponentId'
|
1992
|
+
end
|
1993
|
+
end
|
1994
|
+
|
1911
1995
|
class ProjectList
|
1912
1996
|
# @private
|
1913
1997
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1030,6 +1030,44 @@ module Google
|
|
1030
1030
|
execute_or_queue_command(command, &block)
|
1031
1031
|
end
|
1032
1032
|
|
1033
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
1034
|
+
# resource exists and does not have a policy set.
|
1035
|
+
# @param [String] resource
|
1036
|
+
# REQUIRED: The resource for which the policy is being requested. See the
|
1037
|
+
# operation documentation for the appropriate value for this field.
|
1038
|
+
# @param [Google::Apis::BigqueryV2::GetIamPolicyRequest] get_iam_policy_request_object
|
1039
|
+
# @param [String] fields
|
1040
|
+
# Selector specifying which fields to include in a partial response.
|
1041
|
+
# @param [String] quota_user
|
1042
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1043
|
+
# characters.
|
1044
|
+
# @param [String] user_ip
|
1045
|
+
# Deprecated. Please use quotaUser instead.
|
1046
|
+
# @param [Google::Apis::RequestOptions] options
|
1047
|
+
# Request-specific options
|
1048
|
+
#
|
1049
|
+
# @yield [result, err] Result & error if block supplied
|
1050
|
+
# @yieldparam result [Google::Apis::BigqueryV2::Policy] parsed result object
|
1051
|
+
# @yieldparam err [StandardError] error object if request failed
|
1052
|
+
#
|
1053
|
+
# @return [Google::Apis::BigqueryV2::Policy]
|
1054
|
+
#
|
1055
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1056
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1057
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1058
|
+
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)
|
1059
|
+
command = make_simple_command(:post, '{+resource}:getIamPolicy', options)
|
1060
|
+
command.request_representation = Google::Apis::BigqueryV2::GetIamPolicyRequest::Representation
|
1061
|
+
command.request_object = get_iam_policy_request_object
|
1062
|
+
command.response_representation = Google::Apis::BigqueryV2::Policy::Representation
|
1063
|
+
command.response_class = Google::Apis::BigqueryV2::Policy
|
1064
|
+
command.params['resource'] = resource unless resource.nil?
|
1065
|
+
command.query['fields'] = fields unless fields.nil?
|
1066
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1067
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1068
|
+
execute_or_queue_command(command, &block)
|
1069
|
+
end
|
1070
|
+
|
1033
1071
|
# Lists all row access policies on the specified table.
|
1034
1072
|
# @param [String] project_id
|
1035
1073
|
# Required. Project ID of the row access policies to list.
|
@@ -1076,6 +1114,86 @@ module Google
|
|
1076
1114
|
execute_or_queue_command(command, &block)
|
1077
1115
|
end
|
1078
1116
|
|
1117
|
+
# Sets the access control policy on the specified resource. Replaces any
|
1118
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
1119
|
+
# PERMISSION_DENIED` errors.
|
1120
|
+
# @param [String] resource
|
1121
|
+
# REQUIRED: The resource for which the policy is being specified. See the
|
1122
|
+
# operation documentation for the appropriate value for this field.
|
1123
|
+
# @param [Google::Apis::BigqueryV2::SetIamPolicyRequest] set_iam_policy_request_object
|
1124
|
+
# @param [String] fields
|
1125
|
+
# Selector specifying which fields to include in a partial response.
|
1126
|
+
# @param [String] quota_user
|
1127
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1128
|
+
# characters.
|
1129
|
+
# @param [String] user_ip
|
1130
|
+
# Deprecated. Please use quotaUser instead.
|
1131
|
+
# @param [Google::Apis::RequestOptions] options
|
1132
|
+
# Request-specific options
|
1133
|
+
#
|
1134
|
+
# @yield [result, err] Result & error if block supplied
|
1135
|
+
# @yieldparam result [Google::Apis::BigqueryV2::Policy] parsed result object
|
1136
|
+
# @yieldparam err [StandardError] error object if request failed
|
1137
|
+
#
|
1138
|
+
# @return [Google::Apis::BigqueryV2::Policy]
|
1139
|
+
#
|
1140
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1141
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1142
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1143
|
+
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)
|
1144
|
+
command = make_simple_command(:post, '{+resource}:setIamPolicy', options)
|
1145
|
+
command.request_representation = Google::Apis::BigqueryV2::SetIamPolicyRequest::Representation
|
1146
|
+
command.request_object = set_iam_policy_request_object
|
1147
|
+
command.response_representation = Google::Apis::BigqueryV2::Policy::Representation
|
1148
|
+
command.response_class = Google::Apis::BigqueryV2::Policy
|
1149
|
+
command.params['resource'] = resource unless resource.nil?
|
1150
|
+
command.query['fields'] = fields unless fields.nil?
|
1151
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1152
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1153
|
+
execute_or_queue_command(command, &block)
|
1154
|
+
end
|
1155
|
+
|
1156
|
+
# Returns permissions that a caller has on the specified resource. If the
|
1157
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
1158
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
1159
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
1160
|
+
# This operation may "fail open" without warning.
|
1161
|
+
# @param [String] resource
|
1162
|
+
# REQUIRED: The resource for which the policy detail is being requested. See the
|
1163
|
+
# operation documentation for the appropriate value for this field.
|
1164
|
+
# @param [Google::Apis::BigqueryV2::TestIamPermissionsRequest] test_iam_permissions_request_object
|
1165
|
+
# @param [String] fields
|
1166
|
+
# Selector specifying which fields to include in a partial response.
|
1167
|
+
# @param [String] quota_user
|
1168
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1169
|
+
# characters.
|
1170
|
+
# @param [String] user_ip
|
1171
|
+
# Deprecated. Please use quotaUser instead.
|
1172
|
+
# @param [Google::Apis::RequestOptions] options
|
1173
|
+
# Request-specific options
|
1174
|
+
#
|
1175
|
+
# @yield [result, err] Result & error if block supplied
|
1176
|
+
# @yieldparam result [Google::Apis::BigqueryV2::TestIamPermissionsResponse] parsed result object
|
1177
|
+
# @yieldparam err [StandardError] error object if request failed
|
1178
|
+
#
|
1179
|
+
# @return [Google::Apis::BigqueryV2::TestIamPermissionsResponse]
|
1180
|
+
#
|
1181
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1182
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1183
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1184
|
+
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)
|
1185
|
+
command = make_simple_command(:post, '{+resource}:testIamPermissions', options)
|
1186
|
+
command.request_representation = Google::Apis::BigqueryV2::TestIamPermissionsRequest::Representation
|
1187
|
+
command.request_object = test_iam_permissions_request_object
|
1188
|
+
command.response_representation = Google::Apis::BigqueryV2::TestIamPermissionsResponse::Representation
|
1189
|
+
command.response_class = Google::Apis::BigqueryV2::TestIamPermissionsResponse
|
1190
|
+
command.params['resource'] = resource unless resource.nil?
|
1191
|
+
command.query['fields'] = fields unless fields.nil?
|
1192
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1193
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1194
|
+
execute_or_queue_command(command, &block)
|
1195
|
+
end
|
1196
|
+
|
1079
1197
|
# Streams data into BigQuery one record at a time without needing to run a load
|
1080
1198
|
# job. Requires the WRITER dataset role.
|
1081
1199
|
# @param [String] project_id
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-bigquery_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -52,7 +52,7 @@ licenses:
|
|
52
52
|
metadata:
|
53
53
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
54
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-bigquery_v2/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-bigquery_v2/v0.
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-bigquery_v2/v0.6.0
|
56
56
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-bigquery_v2
|
57
57
|
post_install_message:
|
58
58
|
rdoc_options: []
|
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
62
|
requirements:
|
63
63
|
- - ">="
|
64
64
|
- !ruby/object:Gem::Version
|
65
|
-
version: '2.
|
65
|
+
version: '2.5'
|
66
66
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
68
|
- - ">="
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.
|
72
|
+
rubygems_version: 3.2.13
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Simple REST client for BigQuery API V2
|