Skip to content

Commit 0cfcfe3

Browse files
feat: Automated regeneration of BigQuery client (googleapis#12856)
Auto-created at 2025-01-23 13:14:30 +0000 using the toys pull request generator.
1 parent 5d0705a commit 0cfcfe3

File tree

5 files changed

+23
-5
lines changed

5 files changed

+23
-5
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.87"}]
14+
[{:google_api_big_query, "~> 0.88"}]
1515
end
1616
```
1717

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 "20241222"
23+
@discovery_revision "20250112"
2424

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defmodule GoogleApi.BigQuery.V2.Model.MaterializedViewDefinition do
2121
2222
## Attributes
2323
24-
* `allowNonIncrementalDefinition` (*type:* `boolean()`, *default:* `nil`) - Optional. This option declares the intention to construct a materialized view that isn't refreshed incrementally.
24+
* `allowNonIncrementalDefinition` (*type:* `boolean()`, *default:* `nil`) - Optional. This option declares the intention to construct a materialized view that isn't refreshed incrementally. Non-incremental materialized views support an expanded range of SQL queries. The `allow_non_incremental_definition` option can't be changed after the materialized view is created.
2525
* `enableRefresh` (*type:* `boolean()`, *default:* `nil`) - Optional. Enable automatic refresh of the materialized view when the base table is updated. The default value is "true".
2626
* `lastRefreshTime` (*type:* `String.t`, *default:* `nil`) - Output only. The time when this materialized view was last refreshed, in milliseconds since the epoch.
2727
* `maxStaleness` (*type:* `String.t`, *default:* `nil`) - [Optional] Max staleness of data that could be returned when materizlized view is queried (formatted as Google SQL Interval type).

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

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,57 +22,75 @@ defmodule GoogleApi.BigQuery.V2.Model.QueryResponse do
2222
## Attributes
2323
2424
* `cacheHit` (*type:* `boolean()`, *default:* `nil`) - Whether the query result was fetched from the query cache.
25+
* `creationTime` (*type:* `String.t`, *default:* `nil`) - Output only. Creation time of this query, in milliseconds since the epoch. This field will be present on all queries.
2526
* `dmlStats` (*type:* `GoogleApi.BigQuery.V2.Model.DmlStatistics.t`, *default:* `nil`) - Output only. Detailed statistics for DML statements INSERT, UPDATE, DELETE, MERGE or TRUNCATE.
27+
* `endTime` (*type:* `String.t`, *default:* `nil`) - Output only. End time of this query, in milliseconds since the epoch. This field will be present whenever a query job is in the DONE state.
2628
* `errors` (*type:* `list(GoogleApi.BigQuery.V2.Model.ErrorProto.t)`, *default:* `nil`) - Output only. The first errors or warnings encountered during the running of the job. The final message includes the number of errors that caused the process to stop. Errors here do not necessarily mean that the job has completed or was unsuccessful. For more information about error messages, see [Error messages](https://cloud.google.com/bigquery/docs/error-messages).
2729
* `jobComplete` (*type:* `boolean()`, *default:* `nil`) - Whether the query has completed or not. If rows or totalRows are present, this will always be true. If this is false, totalRows will not be available.
2830
* `jobCreationReason` (*type:* `GoogleApi.BigQuery.V2.Model.JobCreationReason.t`, *default:* `nil`) - Optional. The reason why a Job was created. Only relevant when a job_reference is present in the response. If job_reference is not present it will always be unset. [Preview](https://cloud.google.com/products/#product-launch-stages)
2931
* `jobReference` (*type:* `GoogleApi.BigQuery.V2.Model.JobReference.t`, *default:* `nil`) - Reference to the Job that was created to run the query. This field will be present even if the original request timed out, in which case GetQueryResults can be used to read the results once the query has completed. Since this API only returns the first page of results, subsequent pages can be fetched via the same mechanism (GetQueryResults). If job_creation_mode was set to `JOB_CREATION_OPTIONAL` and the query completes without creating a job, this field will be empty.
3032
* `kind` (*type:* `String.t`, *default:* `bigquery#queryResponse`) - The resource type.
33+
* `location` (*type:* `String.t`, *default:* `nil`) - Output only. The geographic location of the query. For more information about BigQuery locations, see: https://cloud.google.com/bigquery/docs/locations
3134
* `numDmlAffectedRows` (*type:* `String.t`, *default:* `nil`) - Output only. The number of rows affected by a DML statement. Present only for DML statements INSERT, UPDATE or DELETE.
3235
* `pageToken` (*type:* `String.t`, *default:* `nil`) - A token used for paging results. A non-empty token indicates that additional results are available. To see additional results, query the [`jobs.getQueryResults`](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/getQueryResults) method. For more information, see [Paging through table data](https://cloud.google.com/bigquery/docs/paging-results).
3336
* `queryId` (*type:* `String.t`, *default:* `nil`) - Auto-generated ID for the query. [Preview](https://cloud.google.com/products/#product-launch-stages)
3437
* `rows` (*type:* `list(GoogleApi.BigQuery.V2.Model.TableRow.t)`, *default:* `nil`) - An object with as many results as can be contained within the maximum permitted reply size. To get any additional rows, you can call GetQueryResults and specify the jobReference returned above.
3538
* `schema` (*type:* `GoogleApi.BigQuery.V2.Model.TableSchema.t`, *default:* `nil`) - The schema of the results. Present only when the query completes successfully.
3639
* `sessionInfo` (*type:* `GoogleApi.BigQuery.V2.Model.SessionInfo.t`, *default:* `nil`) - Output only. Information of the session if this job is part of one.
40+
* `startTime` (*type:* `String.t`, *default:* `nil`) - Output only. Start time of this query, in milliseconds since the epoch. This field will be present when the query job transitions from the PENDING state to either RUNNING or DONE.
41+
* `totalBytesBilled` (*type:* `String.t`, *default:* `nil`) - Output only. If the project is configured to use on-demand pricing, then this field contains the total bytes billed for the job. If the project is configured to use flat-rate pricing, then you are not billed for bytes and this field is informational only.
3742
* `totalBytesProcessed` (*type:* `String.t`, *default:* `nil`) - The total number of bytes processed for this query. If this query was a dry run, this is the number of bytes that would be processed if the query were run.
3843
* `totalRows` (*type:* `String.t`, *default:* `nil`) - The total number of rows in the complete query result set, which can be more than the number of rows in this single page of results.
44+
* `totalSlotMs` (*type:* `String.t`, *default:* `nil`) - Output only. Number of slot ms the user is actually billed for.
3945
"""
4046

4147
use GoogleApi.Gax.ModelBase
4248

4349
@type t :: %__MODULE__{
4450
:cacheHit => boolean() | nil,
51+
:creationTime => String.t() | nil,
4552
:dmlStats => GoogleApi.BigQuery.V2.Model.DmlStatistics.t() | nil,
53+
:endTime => String.t() | nil,
4654
:errors => list(GoogleApi.BigQuery.V2.Model.ErrorProto.t()) | nil,
4755
:jobComplete => boolean() | nil,
4856
:jobCreationReason => GoogleApi.BigQuery.V2.Model.JobCreationReason.t() | nil,
4957
:jobReference => GoogleApi.BigQuery.V2.Model.JobReference.t() | nil,
5058
:kind => String.t() | nil,
59+
:location => String.t() | nil,
5160
:numDmlAffectedRows => String.t() | nil,
5261
:pageToken => String.t() | nil,
5362
:queryId => String.t() | nil,
5463
:rows => list(GoogleApi.BigQuery.V2.Model.TableRow.t()) | nil,
5564
:schema => GoogleApi.BigQuery.V2.Model.TableSchema.t() | nil,
5665
:sessionInfo => GoogleApi.BigQuery.V2.Model.SessionInfo.t() | nil,
66+
:startTime => String.t() | nil,
67+
:totalBytesBilled => String.t() | nil,
5768
:totalBytesProcessed => String.t() | nil,
58-
:totalRows => String.t() | nil
69+
:totalRows => String.t() | nil,
70+
:totalSlotMs => String.t() | nil
5971
}
6072

6173
field(:cacheHit)
74+
field(:creationTime)
6275
field(:dmlStats, as: GoogleApi.BigQuery.V2.Model.DmlStatistics)
76+
field(:endTime)
6377
field(:errors, as: GoogleApi.BigQuery.V2.Model.ErrorProto, type: :list)
6478
field(:jobComplete)
6579
field(:jobCreationReason, as: GoogleApi.BigQuery.V2.Model.JobCreationReason)
6680
field(:jobReference, as: GoogleApi.BigQuery.V2.Model.JobReference)
6781
field(:kind)
82+
field(:location)
6883
field(:numDmlAffectedRows)
6984
field(:pageToken)
7085
field(:queryId)
7186
field(:rows, as: GoogleApi.BigQuery.V2.Model.TableRow, type: :list)
7287
field(:schema, as: GoogleApi.BigQuery.V2.Model.TableSchema)
7388
field(:sessionInfo, as: GoogleApi.BigQuery.V2.Model.SessionInfo)
89+
field(:startTime)
90+
field(:totalBytesBilled)
7491
field(:totalBytesProcessed)
7592
field(:totalRows)
93+
field(:totalSlotMs)
7694
end
7795

7896
defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.QueryResponse do

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.87.2"
21+
@version "0.88.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)