Skip to content

Commit c3d8c36

Browse files
feat: Automated regeneration of BigQuery client (googleapis#12394)
Auto-created at 2024-10-23 13:20:37 +0000 using the toys pull request generator.
1 parent 6c3d329 commit c3d8c36

File tree

5 files changed

+14
-3
lines changed

5 files changed

+14
-3
lines changed

clients/big_query/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_big_query, "~> 0.85"}]
14+
[{:google_api_big_query, "~> 0.86"}]
1515
end
1616
```
1717

clients/big_query/lib/google_api/big_query/v2/api/datasets.ex

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ defmodule GoogleApi.BigQuery.V2.Api.Datasets do
112112
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
113113
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
114114
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
115+
* `:accessPolicyVersion` (*type:* `integer()`) - Optional. The version of the access policy schema to fetch. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for conditional access policy binding in datasets must specify version 3. Dataset with no conditional role bindings in access policy may specify any valid value or leave the field unset. This field will be maped to [IAM Policy version] (https://cloud.google.com/iam/docs/policies#versions) and will be used to fetch policy from IAM. If unset or if 0 or 1 value is used for dataset with conditional bindings, access entry with condition will have role string appended by 'withcond' string followed by a hash value. For example : { "access": [ { "role": "roles/bigquery.dataViewer_with_conditionalbinding_7a34awqsda", "userByEmail": "[email protected]", } ] } Please refer https://cloud.google.com/iam/docs/troubleshooting-withcond for more details.
115116
* `:datasetView` (*type:* `String.t`) - Optional. Specifies the view that determines which dataset information is returned. By default, metadata and ACL information are returned.
116117
* `opts` (*type:* `keyword()`) - Call options
117118
@@ -138,6 +139,7 @@ defmodule GoogleApi.BigQuery.V2.Api.Datasets do
138139
:quotaUser => :query,
139140
:uploadType => :query,
140141
:upload_protocol => :query,
142+
:accessPolicyVersion => :query,
141143
:datasetView => :query
142144
}
143145

@@ -175,6 +177,7 @@ defmodule GoogleApi.BigQuery.V2.Api.Datasets do
175177
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
176178
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
177179
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
180+
* `:accessPolicyVersion` (*type:* `integer()`) - Optional. The version of the provided access policy schema. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. This version refers to the schema version of the access policy and not the version of access policy. This field's value can be equal or more than the access policy schema provided in the request. For example, * Requests with conditional access policy binding in datasets must specify version 3. * But dataset with no conditional role bindings in access policy may specify any valid value or leave the field unset. If unset or if 0 or 1 value is used for dataset with conditional bindings, request will be rejected. This field will be maped to IAM Policy version (https://cloud.google.com/iam/docs/policies#versions) and will be used to set policy in IAM.
178181
* `:body` (*type:* `GoogleApi.BigQuery.V2.Model.Dataset.t`) -
179182
* `opts` (*type:* `keyword()`) - Call options
180183
@@ -201,6 +204,7 @@ defmodule GoogleApi.BigQuery.V2.Api.Datasets do
201204
:quotaUser => :query,
202205
:uploadType => :query,
203206
:upload_protocol => :query,
207+
:accessPolicyVersion => :query,
204208
:body => :body
205209
}
206210

@@ -306,6 +310,7 @@ defmodule GoogleApi.BigQuery.V2.Api.Datasets do
306310
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
307311
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
308312
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
313+
* `:accessPolicyVersion` (*type:* `integer()`) - Optional. The version of the provided access policy schema. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. This version refers to the schema version of the access policy and not the version of access policy. This field's value can be equal or more than the access policy schema provided in the request. For example, * Operations updating conditional access policy binding in datasets must specify version 3. Some of the operations are : - Adding a new access policy entry with condition. - Removing an access policy entry with condition. - Updating an access policy entry with condition. * But dataset with no conditional role bindings in access policy may specify any valid value or leave the field unset. If unset or if 0 or 1 value is used for dataset with conditional bindings, request will be rejected. This field will be maped to IAM Policy version (https://cloud.google.com/iam/docs/policies#versions) and will be used to set policy in IAM.
309314
* `:body` (*type:* `GoogleApi.BigQuery.V2.Model.Dataset.t`) -
310315
* `opts` (*type:* `keyword()`) - Call options
311316
@@ -338,6 +343,7 @@ defmodule GoogleApi.BigQuery.V2.Api.Datasets do
338343
:quotaUser => :query,
339344
:uploadType => :query,
340345
:upload_protocol => :query,
346+
:accessPolicyVersion => :query,
341347
:body => :body
342348
}
343349

@@ -452,6 +458,7 @@ defmodule GoogleApi.BigQuery.V2.Api.Datasets do
452458
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
453459
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
454460
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
461+
* `:accessPolicyVersion` (*type:* `integer()`) - Optional. The version of the provided access policy schema. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. This version refers to the schema version of the access policy and not the version of access policy. This field's value can be equal or more than the access policy schema provided in the request. For example, * Operations updating conditional access policy binding in datasets must specify version 3. Some of the operations are : - Adding a new access policy entry with condition. - Removing an access policy entry with condition. - Updating an access policy entry with condition. * But dataset with no conditional role bindings in access policy may specify any valid value or leave the field unset. If unset or if 0 or 1 value is used for dataset with conditional bindings, request will be rejected. This field will be maped to IAM Policy version (https://cloud.google.com/iam/docs/policies#versions) and will be used to set policy in IAM.
455462
* `:body` (*type:* `GoogleApi.BigQuery.V2.Model.Dataset.t`) -
456463
* `opts` (*type:* `keyword()`) - Call options
457464
@@ -484,6 +491,7 @@ defmodule GoogleApi.BigQuery.V2.Api.Datasets do
484491
:quotaUser => :query,
485492
:uploadType => :query,
486493
:upload_protocol => :query,
494+
:accessPolicyVersion => :query,
487495
:body => :body
488496
}
489497

clients/big_query/lib/google_api/big_query/v2/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.BigQuery.V2 do
2020
API client metadata for GoogleApi.BigQuery.V2.
2121
"""
2222

23-
@discovery_revision "20240919"
23+
@discovery_revision "20241013"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/big_query/lib/google_api/big_query/v2/model/dataset_access.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ defmodule GoogleApi.BigQuery.V2.Model.DatasetAccess do
2121
2222
## Attributes
2323
24+
* `condition` (*type:* `GoogleApi.BigQuery.V2.Model.Expr.t`, *default:* `nil`) - Optional. condition for the binding. If CEL expression in this field is true, this access binding will be considered
2425
* `dataset` (*type:* `GoogleApi.BigQuery.V2.Model.DatasetAccessEntry.t`, *default:* `nil`) - [Pick one] A grant authorizing all resources of a particular type in a particular dataset access to this dataset. Only views are supported for now. The role field is not required when this field is set. If that dataset is deleted and re-created, its access needs to be granted again via an update operation.
2526
* `domain` (*type:* `String.t`, *default:* `nil`) - [Pick one] A domain to grant access to. Any users signed in with the domain specified will be granted the specified access. Example: "example.com". Maps to IAM policy member "domain:DOMAIN".
2627
* `groupByEmail` (*type:* `String.t`, *default:* `nil`) - [Pick one] An email address of a Google Group to grant access to. Maps to IAM policy member "group:GROUP".
@@ -35,6 +36,7 @@ defmodule GoogleApi.BigQuery.V2.Model.DatasetAccess do
3536
use GoogleApi.Gax.ModelBase
3637

3738
@type t :: %__MODULE__{
39+
:condition => GoogleApi.BigQuery.V2.Model.Expr.t() | nil,
3840
:dataset => GoogleApi.BigQuery.V2.Model.DatasetAccessEntry.t() | nil,
3941
:domain => String.t() | nil,
4042
:groupByEmail => String.t() | nil,
@@ -46,6 +48,7 @@ defmodule GoogleApi.BigQuery.V2.Model.DatasetAccess do
4648
:view => GoogleApi.BigQuery.V2.Model.TableReference.t() | nil
4749
}
4850

51+
field(:condition, as: GoogleApi.BigQuery.V2.Model.Expr)
4952
field(:dataset, as: GoogleApi.BigQuery.V2.Model.DatasetAccessEntry)
5053
field(:domain)
5154
field(:groupByEmail)

clients/big_query/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
defmodule GoogleApi.BigQuery.Mixfile do
1919
use Mix.Project
2020

21-
@version "0.85.0"
21+
@version "0.86.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)