feat: Automated regeneration of bigquery v2 client (#2259)

This PR was generated using Autosynth. 🌈


<details><summary>Log from Synthtool</summary>

```
2021-01-09 01:43:41,159 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/google-api-ruby-client/synth.py.
On branch autosynth-bigquery-v2
nothing to commit, working tree clean
2021-01-09 01:43:41,229 synthtool [DEBUG] > Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth bigquery v2
DEBUG:synthtool:Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth bigquery v2
bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
The dependency jruby-openssl (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`.
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Fetching rake 11.3.0
Installing rake 11.3.0
Fetching concurrent-ruby 1.1.7
Installing concurrent-ruby 1.1.7
Fetching i18n 1.8.7
Installing i18n 1.8.7
Fetching minitest 5.14.3
Installing minitest 5.14.3
Fetching tzinfo 2.0.4
Installing tzinfo 2.0.4
Fetching zeitwerk 2.4.2
Installing zeitwerk 2.4.2
Fetching activesupport 6.1.1
Installing activesupport 6.1.1
Fetching public_suffix 4.0.6
Installing public_suffix 4.0.6
Fetching addressable 2.7.0
Installing addressable 2.7.0
Fetching ast 2.4.1
Installing ast 2.4.1
Using bundler 2.1.4
Fetching byebug 11.1.3
Installing byebug 11.1.3 with native extensions
Fetching coderay 1.1.3
Installing coderay 1.1.3
Fetching json 2.5.1
Installing json 2.5.1 with native extensions
Fetching docile 1.3.4
Installing docile 1.3.4
Fetching simplecov-html 0.10.2
Installing simplecov-html 0.10.2
Fetching simplecov 0.16.1
Installing simplecov 0.16.1
Using sync 0.5.0
Fetching tins 1.26.0
Installing tins 1.26.0
Fetching term-ansicolor 1.7.1
Installing term-ansicolor 1.7.1
Fetching thor 0.20.3
Installing thor 0.20.3
Fetching coveralls 0.8.23
Installing coveralls 0.8.23
Fetching rexml 3.2.4
Installing rexml 3.2.4
Fetching crack 0.4.5
Installing crack 0.4.5
Fetching declarative 0.0.20
Installing declarative 0.0.20
Fetching declarative-option 0.1.0
Installing declarative-option 0.1.0
Fetching diff-lcs 1.4.4
Installing diff-lcs 1.4.4
Fetching dotenv 2.7.6
Installing dotenv 2.7.6
Fetching fakefs 0.20.1
Installing fakefs 0.20.1
Fetching faraday-net_http 1.0.0
Installing faraday-net_http 1.0.0
Fetching multipart-post 2.1.1
Installing multipart-post 2.1.1
Fetching ruby2_keywords 0.0.2
Installing ruby2_keywords 0.0.2
Fetching faraday 1.3.0
Installing faraday 1.3.0
Fetching gems 1.2.0
Installing gems 1.2.0
Fetching github-markup 1.7.0
Installing github-markup 1.7.0
Fetching jwt 2.2.2
Installing jwt 2.2.2
Fetching memoist 0.16.2
Installing memoist 0.16.2
Fetching multi_json 1.15.0
Installing multi_json 1.15.0
Fetching os 0.9.6
Installing os 0.9.6
Fetching signet 0.14.0
Installing signet 0.14.0
Fetching googleauth 0.14.0
Installing googleauth 0.14.0
Fetching httpclient 2.8.3
Installing httpclient 2.8.3
Fetching mini_mime 1.0.2
Installing mini_mime 1.0.2
Fetching uber 0.1.0
Installing uber 0.1.0
Fetching representable 3.0.4
Installing representable 3.0.4
Fetching retriable 3.1.2
Installing retriable 3.1.2
Fetching google-apis-core 0.2.0
Installing google-apis-core 0.2.0
Fetching google-apis-discovery_v1 0.1.0
Installing google-apis-discovery_v1 0.1.0
Using google-apis-generator 0.1.1 from source at `.`
Fetching google-id-token 1.4.2
Installing google-id-token 1.4.2
Fetching hashdiff 1.0.1
Installing hashdiff 1.0.1
Fetching mime-types-data 3.2020.1104
Installing mime-types-data 3.2020.1104
Fetching mime-types 3.3.1
Installing mime-types 3.3.1
Fetching multi_xml 0.6.0
Installing multi_xml 0.6.0
Fetching httparty 0.18.1
Installing httparty 0.18.1
Fetching rspec-support 3.10.1
Installing rspec-support 3.10.1
Fetching rspec-core 3.10.1
Installing rspec-core 3.10.1
Fetching rspec-expectations 3.10.1
Installing rspec-expectations 3.10.1
Fetching rspec-mocks 3.10.1
Installing rspec-mocks 3.10.1
Fetching rspec 3.10.0
Installing rspec 3.10.0
Fetching json_spec 1.1.5
Installing json_spec 1.1.5
Fetching launchy 2.5.0
Installing launchy 2.5.0
Fetching little-plugger 1.1.4
Installing little-plugger 1.1.4
Fetching logging 2.3.0
Installing logging 2.3.0
Fetching method_source 1.0.0
Installing method_source 1.0.0
Fetching opencensus 0.5.0
Installing opencensus 0.5.0
Fetching parallel 1.20.1
Installing parallel 1.20.1
Fetching parser 2.7.2.0
Installing parser 2.7.2.0
Fetching powerpack 0.1.3
Installing powerpack 0.1.3
Fetching pry 0.13.1
Installing pry 0.13.1
Fetching pry-byebug 3.9.0
Installing pry-byebug 3.9.0
Fetching yard 0.9.26
Installing yard 0.9.26
Fetching pry-doc 0.13.5
Installing pry-doc 0.13.5
Fetching rainbow 2.2.2
Installing rainbow 2.2.2 with native extensions
Fetching redcarpet 3.5.1
Installing redcarpet 3.5.1 with native extensions
Fetching redis 3.3.5
Installing redis 3.3.5
Fetching rmail 1.1.4
Installing rmail 1.1.4
Fetching ruby-progressbar 1.11.0
Installing ruby-progressbar 1.11.0
Fetching unicode-display_width 1.7.0
Installing unicode-display_width 1.7.0
Fetching rubocop 0.49.1
Installing rubocop 0.49.1
Fetching webmock 2.3.2
Installing webmock 2.3.2
Bundle complete! 25 Gemfile dependencies, 81 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Post-install message from i18n:

HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
But that may break your application.

If you are upgrading your Rails application from an older version of Rails:

Please check your Rails app for 'config.i18n.fallbacks = true'.
If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be
'config.i18n.fallbacks = [I18n.default_locale]'.
If not, fallbacks will be broken in your app by I18n 1.1.x.

If you are starting a NEW Rails application, you can ignore this notice.

For more info see:
https://github.com/svenfuchs/i18n/releases/tag/v1.1.0

Post-install message from httparty:
When you HTTParty, you must party hard!
echo a | bundle exec bin/generate-api gen /workspace/generated --api=bigquery.v2 --names=/workspace/api_names.yaml --names-out=/workspace/api_names_out.yaml --spot-check
Loading bigquery, version v2 from https://raw.githubusercontent.com/googleapis/discovery-artifact-manager/master/discoveries/bigquery.v2.json
    conflict  google-apis-bigquery_v2/lib/google/apis/bigquery_v2/classes.rb
<uery_v2/classes.rb? (enter "h" for help) [Ynaqdhm] a
       force  google-apis-bigquery_v2/lib/google/apis/bigquery_v2/classes.rb
    conflict  google-apis-bigquery_v2/lib/google/apis/bigquery_v2/representations.rb
       force  google-apis-bigquery_v2/lib/google/apis/bigquery_v2/representations.rb
    conflict  google-apis-bigquery_v2/lib/google/apis/bigquery_v2/service.rb
       force  google-apis-bigquery_v2/lib/google/apis/bigquery_v2/service.rb
    conflict  google-apis-bigquery_v2/lib/google/apis/bigquery_v2/gem_version.rb
       force  google-apis-bigquery_v2/lib/google/apis/bigquery_v2/gem_version.rb
    conflict  google-apis-bigquery_v2/CHANGELOG.md
       force  google-apis-bigquery_v2/CHANGELOG.md
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
The dependency jruby-openssl (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`.
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Fetching rake 13.0.3
Installing rake 13.0.3
Using public_suffix 4.0.6
Using addressable 2.7.0
Using bundler 2.1.4
Using declarative 0.0.20
Using declarative-option 0.1.0
Using diff-lcs 1.4.4
Using faraday-net_http 1.0.0
Using multipart-post 2.1.1
Using ruby2_keywords 0.0.2
Using faraday 1.3.0
Using jwt 2.2.2
Using memoist 0.16.2
Using multi_json 1.15.0
Fetching os 1.1.1
Installing os 1.1.1
Using signet 0.14.0
Using googleauth 0.14.0
Using httpclient 2.8.3
Using mini_mime 1.0.2
Using uber 0.1.0
Using representable 3.0.4
Using retriable 3.1.2
Using rexml 3.2.4
Using google-apis-core 0.2.0
Using google-apis-bigquery_v2 0.2.0 from source at `.`
Using opencensus 0.5.0
Using redcarpet 3.5.1
Using rspec-support 3.10.1
Using rspec-core 3.10.1
Using rspec-expectations 3.10.1
Using rspec-mocks 3.10.1
Using rspec 3.10.0
Using yard 0.9.26
Bundle complete! 8 Gemfile dependencies, 33 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
/root/.rbenv/versions/2.6.6/bin/ruby -I/root/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/rspec-core-3.10.1/lib:/root/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/rspec-support-3.10.1/lib /root/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/rspec-core-3.10.1/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb

Google::Apis::BigqueryV2
  should load

Finished in 0.36732 seconds (files took 0.10664 seconds to load)
1 example, 0 failures

Files:           4
Modules:         3 (    1 undocumented)
Classes:       136 (   83 undocumented)
Constants:      12 (    0 undocumented)
Attributes:    444 (    0 undocumented)
Methods:       309 (    0 undocumented)
 90.71% documented
google-apis-bigquery_v2 0.2.0 built to pkg/google-apis-bigquery_v2-0.2.0.gem.
    conflict  /workspace/api_names_out.yaml
       force  /workspace/api_names_out.yaml
2021-01-09 01:44:24,729 synthtool [DEBUG] > Wrote metadata to generated/google-apis-bigquery_v2/synth.metadata.
DEBUG:synthtool:Wrote metadata to generated/google-apis-bigquery_v2/synth.metadata.

```
</details>

Full log will be available here:
https://source.cloud.google.com/results/invocations/2fec3e68-c8da-44a7-8bac-3218258fd2a0/targets

- [ ] To automatically regenerate this PR, check this box.
This commit is contained in:
Yoshi Automation Bot 2021-01-09 01:56:02 -08:00 committed by GitHub
parent 8fcea6747f
commit 94a8229c21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 172 additions and 39 deletions

View File

@ -15996,6 +15996,7 @@
"/bigquery:v2/JobConfigurationLoad/hivePartitioningMode": hive_partitioning_mode
"/bigquery:v2/JobConfigurationLoad/hivePartitioningOptions": hive_partitioning_options
"/bigquery:v2/JobConfigurationLoad/ignoreUnknownValues": ignore_unknown_values
"/bigquery:v2/JobConfigurationLoad/jsonExtension": json_extension
"/bigquery:v2/JobConfigurationLoad/maxBadRecords": max_bad_records
"/bigquery:v2/JobConfigurationLoad/nullMarker": null_marker
"/bigquery:v2/JobConfigurationLoad/projectionFields": projection_fields
@ -16653,12 +16654,18 @@
"/bigquery:v2/bigquery.routines.update/datasetId": dataset_id
"/bigquery:v2/bigquery.routines.update/projectId": project_id
"/bigquery:v2/bigquery.routines.update/routineId": routine_id
"/bigquery:v2/bigquery.rowAccessPolicies.getIamPolicy": get_row_access_policy_iam_policy
"/bigquery:v2/bigquery.rowAccessPolicies.getIamPolicy/resource": resource
"/bigquery:v2/bigquery.rowAccessPolicies.list": list_row_access_policies
"/bigquery:v2/bigquery.rowAccessPolicies.list/datasetId": dataset_id
"/bigquery:v2/bigquery.rowAccessPolicies.list/pageSize": page_size
"/bigquery:v2/bigquery.rowAccessPolicies.list/pageToken": page_token
"/bigquery:v2/bigquery.rowAccessPolicies.list/projectId": project_id
"/bigquery:v2/bigquery.rowAccessPolicies.list/tableId": table_id
"/bigquery:v2/bigquery.rowAccessPolicies.setIamPolicy": set_row_access_policy_iam_policy
"/bigquery:v2/bigquery.rowAccessPolicies.setIamPolicy/resource": resource
"/bigquery:v2/bigquery.rowAccessPolicies.testIamPermissions": test_row_access_policy_iam_permissions
"/bigquery:v2/bigquery.rowAccessPolicies.testIamPermissions/resource": resource
"/bigquery:v2/bigquery.tabledata.insertAll": insert_all_table_data
"/bigquery:v2/bigquery.tabledata.insertAll/datasetId": dataset_id
"/bigquery:v2/bigquery.tabledata.insertAll/projectId": project_id

View File

@ -1,5 +1,9 @@
# Release history for google-apis-bigquery_v2
### v0.2.0 (2021-01-09)
* Regenerated from discovery document revision 20210104
### v0.1.0 (2021-01-07)
* Regenerated using generator version 0.1.1

View File

@ -784,11 +784,6 @@ module Google
class Binding
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `bindingId`
# @return [String]
attr_accessor :binding_id
# Represents a textual expression in the Common Expression Language (CEL) syntax.
# CEL is a C-like expression language. The syntax and semantics of CEL are
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
@ -850,7 +845,6 @@ module Google
# Update properties of this object
def update!(**args)
@binding_id = args[:binding_id] if args.key?(:binding_id)
@condition = args[:condition] if args.key?(:condition)
@members = args[:members] if args.key?(:members)
@role = args[:role] if args.key?(:role)
@ -1158,7 +1152,7 @@ module Google
class ClusteringMetrics
include Google::Apis::Core::Hashable
# [Beta] Information for all clusters.
# Information for all clusters.
# Corresponds to the JSON property `clusters`
# @return [Array<Google::Apis::BigqueryV2::Cluster>]
attr_accessor :clusters
@ -2202,7 +2196,7 @@ module Google
# @return [Google::Apis::BigqueryV2::GoogleSheetsOptions]
attr_accessor :google_sheets_options
# [Optional, Trusted Tester] Options to configure hive partitioning support.
# [Optional] Options to configure hive partitioning support.
# Corresponds to the JSON property `hivePartitioningOptions`
# @return [Google::Apis::BigqueryV2::HivePartitioningOptions]
attr_accessor :hive_partitioning_options
@ -2944,23 +2938,24 @@ module Google
# @return [String]
attr_accessor :create_disposition
# [Trusted Tester] Defines the list of possible SQL data types to which the
# source decimal values are converted. This list and the precision and the scale
# parameters of the decimal field determine the target type. In the order of
# NUMERIC, BIGNUMERIC, and STRING, a type is picked if it is in the specified
# list and if it supports the precision and the scale. STRING supports all
# precision and scale values. If none of the listed types supports the precision
# and the scale, the type supporting the widest range in the specified list is
# picked, and if a value exceeds the supported range when reading the data, an
# error will be thrown. For example: suppose decimal_target_type = ["NUMERIC", "
# BIGNUMERIC"]. Then if (precision,scale) is: * (38,9) -> NUMERIC; * (39,9) ->
# BIGNUMERIC (NUMERIC cannot hold 30 integer digits); * (38,10) -> BIGNUMERIC (
# NUMERIC cannot hold 10 fractional digits); * (76,38) -> BIGNUMERIC; * (77,38) -
# > BIGNUMERIC (error if value exeeds supported range). For duplicated types in
# this field, only one will be considered and the rest will be ignored. The
# order of the types in this field is ignored. For example, ["BIGNUMERIC", "
# NUMERIC"] is the same as ["NUMERIC", "BIGNUMERIC"] and NUMERIC always takes
# precedence over BIGNUMERIC.
# Defines the list of possible SQL data types to which the source decimal values
# are converted. This list and the precision and the scale parameters of the
# decimal field determine the target type. In the order of NUMERIC, BIGNUMERIC ([
# Preview](/products/#product-launch-stages)), and STRING, a type is picked if
# it is in the specified list and if it supports the precision and the scale.
# STRING supports all precision and scale values. If none of the listed types
# supports the precision and the scale, the type supporting the widest range in
# the specified list is picked, and if a value exceeds the supported range when
# reading the data, an error will be thrown. Example: Suppose the value of this
# field is ["NUMERIC", "BIGNUMERIC"]. If (precision,scale) is: * (38,9) ->
# NUMERIC; * (39,9) -> BIGNUMERIC (NUMERIC cannot hold 30 integer digits); * (38,
# 10) -> BIGNUMERIC (NUMERIC cannot hold 10 fractional digits); * (76,38) ->
# BIGNUMERIC; * (77,38) -> BIGNUMERIC (error if value exeeds supported range).
# This field cannot contain duplicate types. The order of the types in this
# field is ignored. For example, ["BIGNUMERIC", "NUMERIC"] is the same as ["
# NUMERIC", "BIGNUMERIC"] and NUMERIC always takes precedence over BIGNUMERIC.
# Defaults to ["NUMERIC", "STRING"] for ORC and ["NUMERIC"] for the other file
# formats.
# Corresponds to the JSON property `decimalTargetTypes`
# @return [Array<String>]
attr_accessor :decimal_target_types
@ -2999,7 +2994,7 @@ module Google
# @return [String]
attr_accessor :field_delimiter
# [Optional, Trusted Tester] Options to configure hive partitioning support.
# [Optional] Options to configure hive partitioning support.
# Corresponds to the JSON property `hivePartitioningOptions`
# @return [Google::Apis::BigqueryV2::HivePartitioningOptions]
attr_accessor :hive_partitioning_options
@ -3016,6 +3011,14 @@ module Google
attr_accessor :ignore_unknown_values
alias_method :ignore_unknown_values?, :ignore_unknown_values
# [Optional] If sourceFormat is set to newline-delimited JSON, indicates whether
# it should be processed as a JSON variant such as GeoJSON. For a sourceFormat
# other than JSON, omit this field. If the sourceFormat is newline-delimited
# JSON: - for newline-delimited GeoJSON: set to GEOJSON.
# Corresponds to the JSON property `jsonExtension`
# @return [String]
attr_accessor :json_extension
# [Optional] The maximum number of bad records that BigQuery can ignore when
# running the job. If the number of bad records exceeds this value, an invalid
# error is returned in the job result. This is only valid for CSV and JSON. The
@ -3162,6 +3165,7 @@ module Google
@field_delimiter = args[:field_delimiter] if args.key?(:field_delimiter)
@hive_partitioning_options = args[:hive_partitioning_options] if args.key?(:hive_partitioning_options)
@ignore_unknown_values = args[:ignore_unknown_values] if args.key?(:ignore_unknown_values)
@json_extension = args[:json_extension] if args.key?(:json_extension)
@max_bad_records = args[:max_bad_records] if args.key?(:max_bad_records)
@null_marker = args[:null_marker] if args.key?(:null_marker)
@projection_fields = args[:projection_fields] if args.key?(:projection_fields)
@ -5212,7 +5216,7 @@ module Google
# @return [Float]
attr_accessor :median_absolute_error
# R^2 score.
# R^2 score. This corresponds to r2_score in ML.EVALUATE.
# Corresponds to the JSON property `rSquared`
# @return [Float]
attr_accessor :r_squared
@ -6228,9 +6232,10 @@ module Google
attr_accessor :policy_tags
# [Required] The field data type. Possible values include STRING, BYTES, INTEGER,
# INT64 (same as INTEGER), FLOAT, FLOAT64 (same as FLOAT), BOOLEAN, BOOL (same
# as BOOLEAN), TIMESTAMP, DATE, TIME, DATETIME, RECORD (where RECORD indicates
# that the field contains a nested schema) or STRUCT (same as RECORD).
# INT64 (same as INTEGER), FLOAT, FLOAT64 (same as FLOAT), NUMERIC, BIGNUMERIC,
# BOOLEAN, BOOL (same as BOOLEAN), TIMESTAMP, DATE, TIME, DATETIME, RECORD (
# where RECORD indicates that the field contains a nested schema) or STRUCT (
# same as RECORD).
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
@ -6599,7 +6604,7 @@ module Google
end
end
#
# Options used in model training.
class TrainingOptions
include Google::Apis::Core::Hashable
@ -6773,8 +6778,8 @@ module Google
# @return [Float]
attr_accessor :min_split_loss
# [Beta] Google Cloud Storage URI from which the model was imported. Only
# applicable for imported models.
# Google Cloud Storage URI from which the model was imported. Only applicable
# for imported models.
# Corresponds to the JSON property `modelUri`
# @return [String]
attr_accessor :model_uri
@ -6931,8 +6936,7 @@ module Google
# @return [String]
attr_accessor :start_time
# Options that were used for this training run, includes user specified and
# default options that were used.
# Options used in model training.
# Corresponds to the JSON property `trainingOptions`
# @return [Google::Apis::BigqueryV2::TrainingOptions]
attr_accessor :training_options

View File

@ -16,13 +16,13 @@ module Google
module Apis
module BigqueryV2
# Version of the google-apis-bigquery_v2 gem
GEM_VERSION = "0.1.0"
GEM_VERSION = "0.2.0"
# Version of the code generator used to generate this client
GENERATOR_VERSION = "0.1.1"
# Revision of the discovery document this client was generated from
REVISION = "20201030"
REVISION = "20210104"
end
end
end

View File

@ -1024,7 +1024,6 @@ module Google
class Binding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :binding_id, as: 'bindingId'
property :condition, as: 'condition', class: Google::Apis::BigqueryV2::Expr, decorator: Google::Apis::BigqueryV2::Expr::Representation
collection :members, as: 'members'
@ -1553,6 +1552,7 @@ module Google
property :hive_partitioning_options, as: 'hivePartitioningOptions', class: Google::Apis::BigqueryV2::HivePartitioningOptions, decorator: Google::Apis::BigqueryV2::HivePartitioningOptions::Representation
property :ignore_unknown_values, as: 'ignoreUnknownValues'
property :json_extension, as: 'jsonExtension'
property :max_bad_records, as: 'maxBadRecords'
property :null_marker, as: 'nullMarker'
collection :projection_fields, as: 'projectionFields'

View File

@ -1030,6 +1030,44 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets the access control policy for a resource. Returns an empty policy if the
# resource exists and does not have a policy set.
# @param [String] resource
# REQUIRED: The resource for which the policy is being requested. See the
# operation documentation for the appropriate value for this field.
# @param [Google::Apis::BigqueryV2::GetIamPolicyRequest] get_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BigqueryV2::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigqueryV2::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
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)
command = make_simple_command(:post, '{+resource}:getIamPolicy', options)
command.request_representation = Google::Apis::BigqueryV2::GetIamPolicyRequest::Representation
command.request_object = get_iam_policy_request_object
command.response_representation = Google::Apis::BigqueryV2::Policy::Representation
command.response_class = Google::Apis::BigqueryV2::Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Lists all row access policies on the specified table.
# @param [String] project_id
# Required. Project ID of the row access policies to list.
@ -1076,6 +1114,86 @@ module Google
execute_or_queue_command(command, &block)
end
# Sets the access control policy on the specified resource. Replaces any
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
# PERMISSION_DENIED` errors.
# @param [String] resource
# REQUIRED: The resource for which the policy is being specified. See the
# operation documentation for the appropriate value for this field.
# @param [Google::Apis::BigqueryV2::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BigqueryV2::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigqueryV2::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
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)
command = make_simple_command(:post, '{+resource}:setIamPolicy', options)
command.request_representation = Google::Apis::BigqueryV2::SetIamPolicyRequest::Representation
command.request_object = set_iam_policy_request_object
command.response_representation = Google::Apis::BigqueryV2::Policy::Representation
command.response_class = Google::Apis::BigqueryV2::Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Returns permissions that a caller has on the specified resource. If the
# resource does not exist, this will return an empty set of permissions, not a `
# NOT_FOUND` error. Note: This operation is designed to be used for building
# permission-aware UIs and command-line tools, not for authorization checking.
# This operation may "fail open" without warning.
# @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested. See the
# operation documentation for the appropriate value for this field.
# @param [Google::Apis::BigqueryV2::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BigqueryV2::TestIamPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigqueryV2::TestIamPermissionsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
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)
command = make_simple_command(:post, '{+resource}:testIamPermissions', options)
command.request_representation = Google::Apis::BigqueryV2::TestIamPermissionsRequest::Representation
command.request_object = test_iam_permissions_request_object
command.response_representation = Google::Apis::BigqueryV2::TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::BigqueryV2::TestIamPermissionsResponse
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Streams data into BigQuery one record at a time without needing to run a load
# job. Requires the WRITER dataset role.
# @param [String] project_id

View File

@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/google-api-ruby-client.git",
"sha": "a98ff78fa110f58ba38da0cc1291f35c55f96c9f"
"sha": "8fcea6747fbcee2f5efd17b827f5b5c59e867c49"
}
}
]