Skip to content

Commit 2aff3d2

Browse files
feat: Automated regeneration of BigQuery client (googleapis#13012)
Auto-created at 2025-02-20 13:20:33 +0000 using the toys pull request generator.
1 parent a77dc08 commit 2aff3d2

File tree

9 files changed

+50
-9
lines changed

9 files changed

+50
-9
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ defmodule GoogleApi.BigQuery.V2.Api.Datasets do
242242
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
243243
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
244244
* `:all` (*type:* `boolean()`) - Whether to list all datasets, including hidden ones
245-
* `:filter` (*type:* `String.t`) - An expression for filtering the results of the request by label. The syntax is `labels.[:]`. Multiple filters can be ANDed together by connecting with a space. Example: `labels.department:receiving labels.active`. See [Filtering datasets using labels](https://cloud.google.com/bigquery/docs/filtering-labels#filtering_datasets_using_labels) for details.
245+
* `:filter` (*type:* `String.t`) - An expression for filtering the results of the request by label. The syntax is `labels.[:]`. Multiple filters can be AND-ed together by connecting with a space. Example: `labels.department:receiving labels.active`. See [Filtering datasets using labels](https://cloud.google.com/bigquery/docs/filtering-labels#filtering_datasets_using_labels) for details.
246246
* `:maxResults` (*type:* `integer()`) - The maximum number of results to return in a single response page. Leverage the page tokens to iterate through the entire collection.
247247
* `:pageToken` (*type:* `String.t`) - Page token, returned by a previous call, to request the next page of results
248248
* `opts` (*type:* `keyword()`) - Call options

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 "20250128"
23+
@discovery_revision "20250216"
2424

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ defmodule GoogleApi.BigQuery.V2.Model.AggregateClassificationMetrics do
2727
* `precision` (*type:* `float()`, *default:* `nil`) - Precision is the fraction of actual positive predictions that had positive actual labels. For multiclass this is a macro-averaged metric treating each class as a binary classifier.
2828
* `recall` (*type:* `float()`, *default:* `nil`) - Recall is the fraction of actual positive labels that were given a positive prediction. For multiclass this is a macro-averaged metric.
2929
* `rocAuc` (*type:* `float()`, *default:* `nil`) - Area Under a ROC Curve. For multiclass this is a macro-averaged metric.
30-
* `threshold` (*type:* `float()`, *default:* `nil`) - Threshold at which the metrics are computed. For binary classification models this is the positive class threshold. For multi-class classfication models this is the confidence threshold.
30+
* `threshold` (*type:* `float()`, *default:* `nil`) - Threshold at which the metrics are computed. For binary classification models this is the positive class threshold. For multi-class classification models this is the confidence threshold.
3131
"""
3232

3333
use GoogleApi.Gax.ModelBase

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

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ defmodule GoogleApi.BigQuery.V2.Model.ExternalDataConfiguration do
2727
* `compression` (*type:* `String.t`, *default:* `nil`) - Optional. The compression type of the data source. Possible values include GZIP and NONE. The default value is NONE. This setting is ignored for Google Cloud Bigtable, Google Cloud Datastore backups, Avro, ORC and Parquet formats. An empty string is an invalid value.
2828
* `connectionId` (*type:* `String.t`, *default:* `nil`) - Optional. The connection specifying the credentials to be used to read external storage, such as Azure Blob, Cloud Storage, or S3. The connection_id can have the form `{project_id}.{location_id};{connection_id}` or `projects/{project_id}/locations/{location_id}/connections/{connection_id}`.
2929
* `csvOptions` (*type:* `GoogleApi.BigQuery.V2.Model.CsvOptions.t`, *default:* `nil`) - Optional. Additional properties to set if sourceFormat is set to CSV.
30-
* `decimalTargetTypes` (*type:* `list(String.t)`, *default:* `nil`) - 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. 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.
30+
* `dateFormat` (*type:* `String.t`, *default:* `nil`) - Optional. Format used to parse DATE values. Supports C-style and SQL-style values.
31+
* `datetimeFormat` (*type:* `String.t`, *default:* `nil`) - Optional. Format used to parse DATETIME values. Supports C-style and SQL-style values.
32+
* `decimalTargetTypes` (*type:* `list(String.t)`, *default:* `nil`) - 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. 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 exceeds 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.
3133
* `fileSetSpecType` (*type:* `String.t`, *default:* `nil`) - Optional. Specifies how source URIs are interpreted for constructing the file set to load. By default source URIs are expanded against the underlying storage. Other options include specifying manifest files. Only applicable to object storage systems.
3234
* `googleSheetsOptions` (*type:* `GoogleApi.BigQuery.V2.Model.GoogleSheetsOptions.t`, *default:* `nil`) - Optional. Additional options if sourceFormat is set to GOOGLE_SHEETS.
3335
* `hivePartitioningOptions` (*type:* `GoogleApi.BigQuery.V2.Model.HivePartitioningOptions.t`, *default:* `nil`) - Optional. When set, configures hive partitioning support. Not all storage formats support hive partitioning -- requesting hive partitioning on an unsupported format will lead to an error, as will providing an invalid specification.
@@ -42,6 +44,9 @@ defmodule GoogleApi.BigQuery.V2.Model.ExternalDataConfiguration do
4244
* `schema` (*type:* `GoogleApi.BigQuery.V2.Model.TableSchema.t`, *default:* `nil`) - Optional. The schema for the data. Schema is required for CSV and JSON formats if autodetect is not on. Schema is disallowed for Google Cloud Bigtable, Cloud Datastore backups, Avro, ORC and Parquet formats.
4345
* `sourceFormat` (*type:* `String.t`, *default:* `nil`) - [Required] The data format. For CSV files, specify "CSV". For Google sheets, specify "GOOGLE_SHEETS". For newline-delimited JSON, specify "NEWLINE_DELIMITED_JSON". For Avro files, specify "AVRO". For Google Cloud Datastore backups, specify "DATASTORE_BACKUP". For Apache Iceberg tables, specify "ICEBERG". For ORC files, specify "ORC". For Parquet files, specify "PARQUET". [Beta] For Google Cloud Bigtable, specify "BIGTABLE".
4446
* `sourceUris` (*type:* `list(String.t)`, *default:* `nil`) - [Required] The fully-qualified URIs that point to your data in Google Cloud. For Google Cloud Storage URIs: Each URI can contain one '*' wildcard character and it must come after the 'bucket' name. Size limits related to load jobs apply to external data sources. For Google Cloud Bigtable URIs: Exactly one URI can be specified and it has be a fully specified and valid HTTPS URL for a Google Cloud Bigtable table. For Google Cloud Datastore backups, exactly one URI can be specified. Also, the '*' wildcard character is not allowed.
47+
* `timeFormat` (*type:* `String.t`, *default:* `nil`) - Optional. Format used to parse TIME values. Supports C-style and SQL-style values.
48+
* `timeZone` (*type:* `String.t`, *default:* `nil`) - Optional. Time zone used when parsing timestamp values that do not have specific time zone information (e.g. 2024-04-20 12:34:56). The expected format is a IANA timezone string (e.g. America/Los_Angeles).
49+
* `timestampFormat` (*type:* `String.t`, *default:* `nil`) - Optional. Format used to parse TIMESTAMP values. Supports C-style and SQL-style values.
4550
"""
4651

4752
use GoogleApi.Gax.ModelBase
@@ -53,6 +58,8 @@ defmodule GoogleApi.BigQuery.V2.Model.ExternalDataConfiguration do
5358
:compression => String.t() | nil,
5459
:connectionId => String.t() | nil,
5560
:csvOptions => GoogleApi.BigQuery.V2.Model.CsvOptions.t() | nil,
61+
:dateFormat => String.t() | nil,
62+
:datetimeFormat => String.t() | nil,
5663
:decimalTargetTypes => list(String.t()) | nil,
5764
:fileSetSpecType => String.t() | nil,
5865
:googleSheetsOptions => GoogleApi.BigQuery.V2.Model.GoogleSheetsOptions.t() | nil,
@@ -68,7 +75,10 @@ defmodule GoogleApi.BigQuery.V2.Model.ExternalDataConfiguration do
6875
:referenceFileSchemaUri => String.t() | nil,
6976
:schema => GoogleApi.BigQuery.V2.Model.TableSchema.t() | nil,
7077
:sourceFormat => String.t() | nil,
71-
:sourceUris => list(String.t()) | nil
78+
:sourceUris => list(String.t()) | nil,
79+
:timeFormat => String.t() | nil,
80+
:timeZone => String.t() | nil,
81+
:timestampFormat => String.t() | nil
7282
}
7383

7484
field(:autodetect)
@@ -77,6 +87,8 @@ defmodule GoogleApi.BigQuery.V2.Model.ExternalDataConfiguration do
7787
field(:compression)
7888
field(:connectionId)
7989
field(:csvOptions, as: GoogleApi.BigQuery.V2.Model.CsvOptions)
90+
field(:dateFormat)
91+
field(:datetimeFormat)
8092
field(:decimalTargetTypes, type: :list)
8193
field(:fileSetSpecType)
8294
field(:googleSheetsOptions, as: GoogleApi.BigQuery.V2.Model.GoogleSheetsOptions)
@@ -92,6 +104,9 @@ defmodule GoogleApi.BigQuery.V2.Model.ExternalDataConfiguration do
92104
field(:schema, as: GoogleApi.BigQuery.V2.Model.TableSchema)
93105
field(:sourceFormat)
94106
field(:sourceUris, type: :list)
107+
field(:timeFormat)
108+
field(:timeZone)
109+
field(:timestampFormat)
95110
end
96111

97112
defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.ExternalDataConfiguration do

0 commit comments

Comments
 (0)