google-apis-bigquery_v2 0.1.0 → 0.2.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: 804fdfc6618136c89fe020c51b682130f8c11f8f97afe5bdd6d375fc3613f84b
4
- data.tar.gz: b2ce8f64df548dcdcdc49708b7548e4e4a3f30c3e5923f1e25ea2e008fd51cb1
3
+ metadata.gz: 312cca381f34c0dd7111f0d2a39beba252e46a16183d11a5a920b7494bc16346
4
+ data.tar.gz: b46bf05bc32c9d680aa4b3b63134520de5a67cc8a5e9cf9af12034bdf1205e29
5
5
  SHA512:
6
- metadata.gz: b4f3606b75e94906f9d5a32cbc5b1aaced60cfe3d294d88a9586d2092940842c48d9a5f146871134daec651b0ba2b8660eef630c1dbf9a4f2486e50d8ba8b9af
7
- data.tar.gz: 8d0f5c5b066a26554f1e359003f2d2b67943a696dc0e77b746e14e8978c91e47793698920b85c9fe6232854490ee2c2844ef1ee4c02daec700cee114a8d218c3
6
+ metadata.gz: 9f542b257d6fe7e887cb4d50b84f86b59cf7db044e0bc93f5624014660260526fe5c8f1827deb7696dc431df193e3b385214dd69d8c52765aba2b39bf473057c
7
+ data.tar.gz: 3a09873804043cee5d8bb407a33d5d6a16ca0bd26370f7d6dd707b1e98b3b55390f9f7631b2f5d6361a9f03b7fb74edc0ac863d0ee49ff70d412229c6dbb2824
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-bigquery_v2
2
2
 
3
+ ### v0.2.0 (2021-01-23)
4
+
5
+ * Regenerated from discovery document revision 20210118
6
+ * Regenerated using generator version 0.1.2
7
+
3
8
  ### v0.1.0 (2021-01-07)
4
9
 
5
10
  * Regenerated using generator version 0.1.1
@@ -784,11 +784,6 @@ module Google
784
784
  class Binding
785
785
  include Google::Apis::Core::Hashable
786
786
 
787
- #
788
- # Corresponds to the JSON property `bindingId`
789
- # @return [String]
790
- attr_accessor :binding_id
791
-
792
787
  # Represents a textual expression in the Common Expression Language (CEL) syntax.
793
788
  # CEL is a C-like expression language. The syntax and semantics of CEL are
794
789
  # documented at https://github.com/google/cel-spec. Example (Comparison): title:
@@ -850,7 +845,6 @@ module Google
850
845
 
851
846
  # Update properties of this object
852
847
  def update!(**args)
853
- @binding_id = args[:binding_id] if args.key?(:binding_id)
854
848
  @condition = args[:condition] if args.key?(:condition)
855
849
  @members = args[:members] if args.key?(:members)
856
850
  @role = args[:role] if args.key?(:role)
@@ -1158,7 +1152,7 @@ module Google
1158
1152
  class ClusteringMetrics
1159
1153
  include Google::Apis::Core::Hashable
1160
1154
 
1161
- # [Beta] Information for all clusters.
1155
+ # Information for all clusters.
1162
1156
  # Corresponds to the JSON property `clusters`
1163
1157
  # @return [Array<Google::Apis::BigqueryV2::Cluster>]
1164
1158
  attr_accessor :clusters
@@ -1727,6 +1721,25 @@ module Google
1727
1721
  end
1728
1722
  end
1729
1723
 
1724
+ # Model evaluation metrics for dimensionality reduction models.
1725
+ class DimensionalityReductionMetrics
1726
+ include Google::Apis::Core::Hashable
1727
+
1728
+ # Total percentage of variance explained by the selected principal components.
1729
+ # Corresponds to the JSON property `totalExplainedVarianceRatio`
1730
+ # @return [Float]
1731
+ attr_accessor :total_explained_variance_ratio
1732
+
1733
+ def initialize(**args)
1734
+ update!(**args)
1735
+ end
1736
+
1737
+ # Update properties of this object
1738
+ def update!(**args)
1739
+ @total_explained_variance_ratio = args[:total_explained_variance_ratio] if args.key?(:total_explained_variance_ratio)
1740
+ end
1741
+ end
1742
+
1730
1743
  #
1731
1744
  class EncryptionConfiguration
1732
1745
  include Google::Apis::Core::Hashable
@@ -1833,6 +1846,11 @@ module Google
1833
1846
  # @return [Google::Apis::BigqueryV2::ClusteringMetrics]
1834
1847
  attr_accessor :clustering_metrics
1835
1848
 
1849
+ # Model evaluation metrics for dimensionality reduction models.
1850
+ # Corresponds to the JSON property `dimensionalityReductionMetrics`
1851
+ # @return [Google::Apis::BigqueryV2::DimensionalityReductionMetrics]
1852
+ attr_accessor :dimensionality_reduction_metrics
1853
+
1836
1854
  # Evaluation metrics for multi-class classification/classifier models.
1837
1855
  # Corresponds to the JSON property `multiClassClassificationMetrics`
1838
1856
  # @return [Google::Apis::BigqueryV2::MultiClassClassificationMetrics]
@@ -1859,6 +1877,7 @@ module Google
1859
1877
  @arima_forecasting_metrics = args[:arima_forecasting_metrics] if args.key?(:arima_forecasting_metrics)
1860
1878
  @binary_classification_metrics = args[:binary_classification_metrics] if args.key?(:binary_classification_metrics)
1861
1879
  @clustering_metrics = args[:clustering_metrics] if args.key?(:clustering_metrics)
1880
+ @dimensionality_reduction_metrics = args[:dimensionality_reduction_metrics] if args.key?(:dimensionality_reduction_metrics)
1862
1881
  @multi_class_classification_metrics = args[:multi_class_classification_metrics] if args.key?(:multi_class_classification_metrics)
1863
1882
  @ranking_metrics = args[:ranking_metrics] if args.key?(:ranking_metrics)
1864
1883
  @regression_metrics = args[:regression_metrics] if args.key?(:regression_metrics)
@@ -2202,7 +2221,7 @@ module Google
2202
2221
  # @return [Google::Apis::BigqueryV2::GoogleSheetsOptions]
2203
2222
  attr_accessor :google_sheets_options
2204
2223
 
2205
- # [Optional, Trusted Tester] Options to configure hive partitioning support.
2224
+ # [Optional] Options to configure hive partitioning support.
2206
2225
  # Corresponds to the JSON property `hivePartitioningOptions`
2207
2226
  # @return [Google::Apis::BigqueryV2::HivePartitioningOptions]
2208
2227
  attr_accessor :hive_partitioning_options
@@ -2630,6 +2649,11 @@ module Google
2630
2649
  # @return [Float]
2631
2650
  attr_accessor :learn_rate
2632
2651
 
2652
+ # The information of the principal components.
2653
+ # Corresponds to the JSON property `principalComponentInfos`
2654
+ # @return [Array<Google::Apis::BigqueryV2::PrincipalComponentInfo>]
2655
+ attr_accessor :principal_component_infos
2656
+
2633
2657
  # Loss computed on the training data at the end of iteration.
2634
2658
  # Corresponds to the JSON property `trainingLoss`
2635
2659
  # @return [Float]
@@ -2647,6 +2671,7 @@ module Google
2647
2671
  @eval_loss = args[:eval_loss] if args.key?(:eval_loss)
2648
2672
  @index = args[:index] if args.key?(:index)
2649
2673
  @learn_rate = args[:learn_rate] if args.key?(:learn_rate)
2674
+ @principal_component_infos = args[:principal_component_infos] if args.key?(:principal_component_infos)
2650
2675
  @training_loss = args[:training_loss] if args.key?(:training_loss)
2651
2676
  end
2652
2677
  end
@@ -2944,23 +2969,24 @@ module Google
2944
2969
  # @return [String]
2945
2970
  attr_accessor :create_disposition
2946
2971
 
2947
- # [Trusted Tester] Defines the list of possible SQL data types to which the
2948
- # source decimal values are converted. This list and the precision and the scale
2949
- # parameters of the decimal field determine the target type. In the order of
2950
- # NUMERIC, BIGNUMERIC, and STRING, a type is picked if it is in the specified
2951
- # list and if it supports the precision and the scale. STRING supports all
2952
- # precision and scale values. If none of the listed types supports the precision
2953
- # and the scale, the type supporting the widest range in the specified list is
2954
- # picked, and if a value exceeds the supported range when reading the data, an
2955
- # error will be thrown. For example: suppose decimal_target_type = ["NUMERIC", "
2956
- # BIGNUMERIC"]. Then if (precision,scale) is: * (38,9) -> NUMERIC; * (39,9) ->
2957
- # BIGNUMERIC (NUMERIC cannot hold 30 integer digits); * (38,10) -> BIGNUMERIC (
2958
- # NUMERIC cannot hold 10 fractional digits); * (76,38) -> BIGNUMERIC; * (77,38) -
2959
- # > BIGNUMERIC (error if value exeeds supported range). For duplicated types in
2960
- # this field, only one will be considered and the rest will be ignored. The
2961
- # order of the types in this field is ignored. For example, ["BIGNUMERIC", "
2962
- # NUMERIC"] is the same as ["NUMERIC", "BIGNUMERIC"] and NUMERIC always takes
2963
- # precedence over BIGNUMERIC.
2972
+ # Defines the list of possible SQL data types to which the source decimal values
2973
+ # are converted. This list and the precision and the scale parameters of the
2974
+ # decimal field determine the target type. In the order of NUMERIC, BIGNUMERIC ([
2975
+ # Preview](/products/#product-launch-stages)), and STRING, a type is picked if
2976
+ # it is in the specified list and if it supports the precision and the scale.
2977
+ # STRING supports all precision and scale values. If none of the listed types
2978
+ # supports the precision and the scale, the type supporting the widest range in
2979
+ # the specified list is picked, and if a value exceeds the supported range when
2980
+ # reading the data, an error will be thrown. Example: Suppose the value of this
2981
+ # field is ["NUMERIC", "BIGNUMERIC"]. If (precision,scale) is: * (38,9) ->
2982
+ # NUMERIC; * (39,9) -> BIGNUMERIC (NUMERIC cannot hold 30 integer digits); * (38,
2983
+ # 10) -> BIGNUMERIC (NUMERIC cannot hold 10 fractional digits); * (76,38) ->
2984
+ # BIGNUMERIC; * (77,38) -> BIGNUMERIC (error if value exeeds supported range).
2985
+ # This field cannot contain duplicate types. The order of the types in this
2986
+ # field is ignored. For example, ["BIGNUMERIC", "NUMERIC"] is the same as ["
2987
+ # NUMERIC", "BIGNUMERIC"] and NUMERIC always takes precedence over BIGNUMERIC.
2988
+ # Defaults to ["NUMERIC", "STRING"] for ORC and ["NUMERIC"] for the other file
2989
+ # formats.
2964
2990
  # Corresponds to the JSON property `decimalTargetTypes`
2965
2991
  # @return [Array<String>]
2966
2992
  attr_accessor :decimal_target_types
@@ -2999,7 +3025,7 @@ module Google
2999
3025
  # @return [String]
3000
3026
  attr_accessor :field_delimiter
3001
3027
 
3002
- # [Optional, Trusted Tester] Options to configure hive partitioning support.
3028
+ # [Optional] Options to configure hive partitioning support.
3003
3029
  # Corresponds to the JSON property `hivePartitioningOptions`
3004
3030
  # @return [Google::Apis::BigqueryV2::HivePartitioningOptions]
3005
3031
  attr_accessor :hive_partitioning_options
@@ -3016,6 +3042,14 @@ module Google
3016
3042
  attr_accessor :ignore_unknown_values
3017
3043
  alias_method :ignore_unknown_values?, :ignore_unknown_values
3018
3044
 
3045
+ # [Optional] If sourceFormat is set to newline-delimited JSON, indicates whether
3046
+ # it should be processed as a JSON variant such as GeoJSON. For a sourceFormat
3047
+ # other than JSON, omit this field. If the sourceFormat is newline-delimited
3048
+ # JSON: - for newline-delimited GeoJSON: set to GEOJSON.
3049
+ # Corresponds to the JSON property `jsonExtension`
3050
+ # @return [String]
3051
+ attr_accessor :json_extension
3052
+
3019
3053
  # [Optional] The maximum number of bad records that BigQuery can ignore when
3020
3054
  # running the job. If the number of bad records exceeds this value, an invalid
3021
3055
  # error is returned in the job result. This is only valid for CSV and JSON. The
@@ -3162,6 +3196,7 @@ module Google
3162
3196
  @field_delimiter = args[:field_delimiter] if args.key?(:field_delimiter)
3163
3197
  @hive_partitioning_options = args[:hive_partitioning_options] if args.key?(:hive_partitioning_options)
3164
3198
  @ignore_unknown_values = args[:ignore_unknown_values] if args.key?(:ignore_unknown_values)
3199
+ @json_extension = args[:json_extension] if args.key?(:json_extension)
3165
3200
  @max_bad_records = args[:max_bad_records] if args.key?(:max_bad_records)
3166
3201
  @null_marker = args[:null_marker] if args.key?(:null_marker)
3167
3202
  @projection_fields = args[:projection_fields] if args.key?(:projection_fields)
@@ -4553,6 +4588,45 @@ module Google
4553
4588
  end
4554
4589
  end
4555
4590
 
4591
+ # Principal component infos, used only for eigen decomposition based models, e.g.
4592
+ # , PCA. Ordered by explained_variance in the descending order.
4593
+ class PrincipalComponentInfo
4594
+ include Google::Apis::Core::Hashable
4595
+
4596
+ # The explained_variance is pre-ordered in the descending order to compute the
4597
+ # cumulative explained variance ratio.
4598
+ # Corresponds to the JSON property `cumulativeExplainedVarianceRatio`
4599
+ # @return [Float]
4600
+ attr_accessor :cumulative_explained_variance_ratio
4601
+
4602
+ # Explained variance by this principal component, which is simply the eigenvalue.
4603
+ # Corresponds to the JSON property `explainedVariance`
4604
+ # @return [Float]
4605
+ attr_accessor :explained_variance
4606
+
4607
+ # Explained_variance over the total explained variance.
4608
+ # Corresponds to the JSON property `explainedVarianceRatio`
4609
+ # @return [Float]
4610
+ attr_accessor :explained_variance_ratio
4611
+
4612
+ # Id of the principal component.
4613
+ # Corresponds to the JSON property `principalComponentId`
4614
+ # @return [Fixnum]
4615
+ attr_accessor :principal_component_id
4616
+
4617
+ def initialize(**args)
4618
+ update!(**args)
4619
+ end
4620
+
4621
+ # Update properties of this object
4622
+ def update!(**args)
4623
+ @cumulative_explained_variance_ratio = args[:cumulative_explained_variance_ratio] if args.key?(:cumulative_explained_variance_ratio)
4624
+ @explained_variance = args[:explained_variance] if args.key?(:explained_variance)
4625
+ @explained_variance_ratio = args[:explained_variance_ratio] if args.key?(:explained_variance_ratio)
4626
+ @principal_component_id = args[:principal_component_id] if args.key?(:principal_component_id)
4627
+ end
4628
+ end
4629
+
4556
4630
  #
4557
4631
  class ProjectList
4558
4632
  include Google::Apis::Core::Hashable
@@ -5212,7 +5286,7 @@ module Google
5212
5286
  # @return [Float]
5213
5287
  attr_accessor :median_absolute_error
5214
5288
 
5215
- # R^2 score.
5289
+ # R^2 score. This corresponds to r2_score in ML.EVALUATE.
5216
5290
  # Corresponds to the JSON property `rSquared`
5217
5291
  # @return [Float]
5218
5292
  attr_accessor :r_squared
@@ -6228,9 +6302,10 @@ module Google
6228
6302
  attr_accessor :policy_tags
6229
6303
 
6230
6304
  # [Required] The field data type. Possible values include STRING, BYTES, INTEGER,
6231
- # INT64 (same as INTEGER), FLOAT, FLOAT64 (same as FLOAT), BOOLEAN, BOOL (same
6232
- # as BOOLEAN), TIMESTAMP, DATE, TIME, DATETIME, RECORD (where RECORD indicates
6233
- # that the field contains a nested schema) or STRUCT (same as RECORD).
6305
+ # INT64 (same as INTEGER), FLOAT, FLOAT64 (same as FLOAT), NUMERIC, BIGNUMERIC,
6306
+ # BOOLEAN, BOOL (same as BOOLEAN), TIMESTAMP, DATE, TIME, DATETIME, RECORD (
6307
+ # where RECORD indicates that the field contains a nested schema) or STRUCT (
6308
+ # same as RECORD).
6234
6309
  # Corresponds to the JSON property `type`
6235
6310
  # @return [String]
6236
6311
  attr_accessor :type
@@ -6599,7 +6674,7 @@ module Google
6599
6674
  end
6600
6675
  end
6601
6676
 
6602
- #
6677
+ # Options used in model training.
6603
6678
  class TrainingOptions
6604
6679
  include Google::Apis::Core::Hashable
6605
6680
 
@@ -6773,8 +6848,8 @@ module Google
6773
6848
  # @return [Float]
6774
6849
  attr_accessor :min_split_loss
6775
6850
 
6776
- # [Beta] Google Cloud Storage URI from which the model was imported. Only
6777
- # applicable for imported models.
6851
+ # Google Cloud Storage URI from which the model was imported. Only applicable
6852
+ # for imported models.
6778
6853
  # Corresponds to the JSON property `modelUri`
6779
6854
  # @return [String]
6780
6855
  attr_accessor :model_uri
@@ -6931,8 +7006,7 @@ module Google
6931
7006
  # @return [String]
6932
7007
  attr_accessor :start_time
6933
7008
 
6934
- # Options that were used for this training run, includes user specified and
6935
- # default options that were used.
7009
+ # Options used in model training.
6936
7010
  # Corresponds to the JSON property `trainingOptions`
6937
7011
  # @return [Google::Apis::BigqueryV2::TrainingOptions]
6938
7012
  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.1.0"
19
+ GEM_VERSION = "0.2.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.1"
22
+ GENERATOR_VERSION = "0.1.2"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20201030"
25
+ REVISION = "20210118"
26
26
  end
27
27
  end
28
28
  end
@@ -244,6 +244,12 @@ module Google
244
244
  include Google::Apis::Core::JsonObjectSupport
245
245
  end
246
246
 
247
+ class DimensionalityReductionMetrics
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
247
253
  class EncryptionConfiguration
248
254
  class Representation < Google::Apis::Core::JsonRepresentation; end
249
255
 
@@ -520,6 +526,12 @@ module Google
520
526
  include Google::Apis::Core::JsonObjectSupport
521
527
  end
522
528
 
529
+ class PrincipalComponentInfo
530
+ class Representation < Google::Apis::Core::JsonRepresentation; end
531
+
532
+ include Google::Apis::Core::JsonObjectSupport
533
+ end
534
+
523
535
  class ProjectList
524
536
  class Representation < Google::Apis::Core::JsonRepresentation; end
525
537
 
@@ -1024,7 +1036,6 @@ module Google
1024
1036
  class Binding
1025
1037
  # @private
1026
1038
  class Representation < Google::Apis::Core::JsonRepresentation
1027
- property :binding_id, as: 'bindingId'
1028
1039
  property :condition, as: 'condition', class: Google::Apis::BigqueryV2::Expr, decorator: Google::Apis::BigqueryV2::Expr::Representation
1029
1040
 
1030
1041
  collection :members, as: 'members'
@@ -1244,6 +1255,13 @@ module Google
1244
1255
  end
1245
1256
  end
1246
1257
 
1258
+ class DimensionalityReductionMetrics
1259
+ # @private
1260
+ class Representation < Google::Apis::Core::JsonRepresentation
1261
+ property :total_explained_variance_ratio, as: 'totalExplainedVarianceRatio'
1262
+ end
1263
+ end
1264
+
1247
1265
  class EncryptionConfiguration
1248
1266
  # @private
1249
1267
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1278,6 +1296,8 @@ module Google
1278
1296
 
1279
1297
  property :clustering_metrics, as: 'clusteringMetrics', class: Google::Apis::BigqueryV2::ClusteringMetrics, decorator: Google::Apis::BigqueryV2::ClusteringMetrics::Representation
1280
1298
 
1299
+ property :dimensionality_reduction_metrics, as: 'dimensionalityReductionMetrics', class: Google::Apis::BigqueryV2::DimensionalityReductionMetrics, decorator: Google::Apis::BigqueryV2::DimensionalityReductionMetrics::Representation
1300
+
1281
1301
  property :multi_class_classification_metrics, as: 'multiClassClassificationMetrics', class: Google::Apis::BigqueryV2::MultiClassClassificationMetrics, decorator: Google::Apis::BigqueryV2::MultiClassClassificationMetrics::Representation
1282
1302
 
1283
1303
  property :ranking_metrics, as: 'rankingMetrics', class: Google::Apis::BigqueryV2::RankingMetrics, decorator: Google::Apis::BigqueryV2::RankingMetrics::Representation
@@ -1465,6 +1485,8 @@ module Google
1465
1485
  property :eval_loss, as: 'evalLoss'
1466
1486
  property :index, as: 'index'
1467
1487
  property :learn_rate, as: 'learnRate'
1488
+ collection :principal_component_infos, as: 'principalComponentInfos', class: Google::Apis::BigqueryV2::PrincipalComponentInfo, decorator: Google::Apis::BigqueryV2::PrincipalComponentInfo::Representation
1489
+
1468
1490
  property :training_loss, as: 'trainingLoss'
1469
1491
  end
1470
1492
  end
@@ -1553,6 +1575,7 @@ module Google
1553
1575
  property :hive_partitioning_options, as: 'hivePartitioningOptions', class: Google::Apis::BigqueryV2::HivePartitioningOptions, decorator: Google::Apis::BigqueryV2::HivePartitioningOptions::Representation
1554
1576
 
1555
1577
  property :ignore_unknown_values, as: 'ignoreUnknownValues'
1578
+ property :json_extension, as: 'jsonExtension'
1556
1579
  property :max_bad_records, as: 'maxBadRecords'
1557
1580
  property :null_marker, as: 'nullMarker'
1558
1581
  collection :projection_fields, as: 'projectionFields'
@@ -1908,6 +1931,16 @@ module Google
1908
1931
  end
1909
1932
  end
1910
1933
 
1934
+ class PrincipalComponentInfo
1935
+ # @private
1936
+ class Representation < Google::Apis::Core::JsonRepresentation
1937
+ property :cumulative_explained_variance_ratio, as: 'cumulativeExplainedVarianceRatio'
1938
+ property :explained_variance, as: 'explainedVariance'
1939
+ property :explained_variance_ratio, as: 'explainedVarianceRatio'
1940
+ property :principal_component_id, :numeric_string => true, as: 'principalComponentId'
1941
+ end
1942
+ end
1943
+
1911
1944
  class ProjectList
1912
1945
  # @private
1913
1946
  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.1.0
4
+ version: 0.2.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-01-08 00:00:00.000000000 Z
11
+ date: 2021-02-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.1.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-bigquery_v2/v0.2.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: []
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.1.4
72
+ rubygems_version: 3.2.6
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for BigQuery API V2