Skip to content

Commit dba8a8a

Browse files
feat: Automated regeneration of BigQuery client (googleapis#12933)
Auto-created at 2025-02-07 13:12:50 +0000 using the toys pull request generator.
1 parent 99f9165 commit dba8a8a

File tree

10 files changed

+597
-4
lines changed

10 files changed

+597
-4
lines changed

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

Lines changed: 417 additions & 0 deletions
Large diffs are not rendered by default.

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

2525
def discovery_revision(), do: @discovery_revision
2626
end
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.BigQuery.V2.Model.BatchDeleteRowAccessPoliciesRequest do
19+
@moduledoc """
20+
Request message for the BatchDeleteRowAccessPoliciesRequest method.
21+
22+
## Attributes
23+
24+
* `force` (*type:* `boolean()`, *default:* `nil`) - If set to true, it deletes the row access policy even if it's the last row access policy on the table and the deletion will widen the access rather narrowing it.
25+
* `policyIds` (*type:* `list(String.t)`, *default:* `nil`) - Required. Policy IDs of the row access policies.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:force => boolean() | nil,
32+
:policyIds => list(String.t()) | nil
33+
}
34+
35+
field(:force)
36+
field(:policyIds, type: :list)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.BatchDeleteRowAccessPoliciesRequest do
40+
def decode(value, options) do
41+
GoogleApi.BigQuery.V2.Model.BatchDeleteRowAccessPoliciesRequest.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.BatchDeleteRowAccessPoliciesRequest do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ defmodule GoogleApi.BigQuery.V2.Model.JobConfigurationQuery do
4848
* `useQueryCache` (*type:* `boolean()`, *default:* `true`) - Optional. Whether to look for the result in the query cache. The query cache is a best-effort cache that will be flushed whenever tables in the query are modified. Moreover, the query cache is only available when a query does not have a destination table specified. The default value is true.
4949
* `userDefinedFunctionResources` (*type:* `list(GoogleApi.BigQuery.V2.Model.UserDefinedFunctionResource.t)`, *default:* `nil`) - Describes user-defined function resources used in the query.
5050
* `writeDisposition` (*type:* `String.t`, *default:* `nil`) - Optional. Specifies the action that occurs if the destination table already exists. The following values are supported: * WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the data, removes the constraints, and uses the schema from the query result. * WRITE_APPEND: If the table already exists, BigQuery appends the data to the table. * WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result. The default value is WRITE_EMPTY. Each action is atomic and only occurs if BigQuery is able to complete the job successfully. Creation, truncation and append actions occur as one atomic update upon job completion.
51+
* `writeIncrementalResults` (*type:* `boolean()`, *default:* `nil`) - Optional. This is only supported for a SELECT query using a temporary table. If set, the query is allowed to write results incrementally to the temporary result table. This may incur a performance penalty. This option cannot be used with Legacy SQL. This feature is not yet available.
5152
"""
5253

5354
use GoogleApi.Gax.ModelBase
@@ -83,7 +84,8 @@ defmodule GoogleApi.BigQuery.V2.Model.JobConfigurationQuery do
8384
:useQueryCache => boolean() | nil,
8485
:userDefinedFunctionResources =>
8586
list(GoogleApi.BigQuery.V2.Model.UserDefinedFunctionResource.t()) | nil,
86-
:writeDisposition => String.t() | nil
87+
:writeDisposition => String.t() | nil,
88+
:writeIncrementalResults => boolean() | nil
8789
}
8890

8991
field(:allowLargeResults)
@@ -122,6 +124,7 @@ defmodule GoogleApi.BigQuery.V2.Model.JobConfigurationQuery do
122124
)
123125

124126
field(:writeDisposition)
127+
field(:writeIncrementalResults)
125128
end
126129

127130
defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.JobConfigurationQuery do

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ defmodule GoogleApi.BigQuery.V2.Model.QueryRequest do
4141
* `timeoutMs` (*type:* `integer()`, *default:* `nil`) - Optional. Optional: Specifies the maximum amount of time, in milliseconds, that the client is willing to wait for the query to complete. By default, this limit is 10 seconds (10,000 milliseconds). If the query is complete, the jobComplete field in the response is true. If the query has not yet completed, jobComplete is false. You can request a longer timeout period in the timeoutMs field. However, the call is not guaranteed to wait for the specified timeout; it typically returns after around 200 seconds (200,000 milliseconds), even if the query is not complete. If jobComplete is false, you can continue to wait for the query to complete by calling the getQueryResults method until the jobComplete field in the getQueryResults response is true.
4242
* `useLegacySql` (*type:* `boolean()`, *default:* `true`) - Specifies whether to use BigQuery's legacy SQL dialect for this query. The default value is true. If set to false, the query will use BigQuery's GoogleSQL: https://cloud.google.com/bigquery/sql-reference/ When useLegacySql is set to false, the value of flattenResults is ignored; query will be run as if flattenResults is false.
4343
* `useQueryCache` (*type:* `boolean()`, *default:* `true`) - Optional. Whether to look for the result in the query cache. The query cache is a best-effort cache that will be flushed whenever tables in the query are modified. The default value is true.
44+
* `writeIncrementalResults` (*type:* `boolean()`, *default:* `nil`) - Optional. This is only supported for SELECT query. If set, the query is allowed to write results incrementally to the temporary result table. This may incur a performance penalty. This option cannot be used with Legacy SQL. This feature is not yet available.
4445
"""
4546

4647
use GoogleApi.Gax.ModelBase
@@ -65,7 +66,8 @@ defmodule GoogleApi.BigQuery.V2.Model.QueryRequest do
6566
:requestId => String.t() | nil,
6667
:timeoutMs => integer() | nil,
6768
:useLegacySql => boolean() | nil,
68-
:useQueryCache => boolean() | nil
69+
:useQueryCache => boolean() | nil,
70+
:writeIncrementalResults => boolean() | nil
6971
}
7072

7173
field(:connectionProperties, as: GoogleApi.BigQuery.V2.Model.ConnectionProperty, type: :list)
@@ -88,6 +90,7 @@ defmodule GoogleApi.BigQuery.V2.Model.QueryRequest do
8890
field(:timeoutMs)
8991
field(:useLegacySql)
9092
field(:useQueryCache)
93+
field(:writeIncrementalResults)
9194
end
9295

9396
defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.QueryRequest do

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ defmodule GoogleApi.BigQuery.V2.Model.RowAccessPolicy do
2424
* `creationTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when this row access policy was created, in milliseconds since the epoch.
2525
* `etag` (*type:* `String.t`, *default:* `nil`) - Output only. A hash of this resource.
2626
* `filterPredicate` (*type:* `String.t`, *default:* `nil`) - Required. A SQL boolean expression that represents the rows defined by this row access policy, similar to the boolean expression in a WHERE clause of a SELECT query on a table. References to other tables, routines, and temporary functions are not supported. Examples: region="EU" date_field = CAST('2019-9-27' as DATE) nullable_field is not NULL numeric_field BETWEEN 1.0 AND 5.0
27+
* `grantees` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Input only. The optional list of iam_member users or groups that specifies the initial members that the row-level access policy should be created with. grantees types: - "user:[email protected]": An email address that represents a specific Google account. - "serviceAccount:[email protected]": An email address that represents a service account. - "group:[email protected]": An email address that represents a Google group. - "domain:example.com":The Google Workspace domain (primary) that represents all the users of that domain. - "allAuthenticatedUsers": A special identifier that represents all service accounts and all users on the internet who have authenticated with a Google Account. This identifier includes accounts that aren't connected to a Google Workspace or Cloud Identity domain, such as personal Gmail accounts. Users who aren't authenticated, such as anonymous visitors, aren't included. - "allUsers":A special identifier that represents anyone who is on the internet, including authenticated and unauthenticated users. Because BigQuery requires authentication before a user can access the service, allUsers includes only authenticated users.
2728
* `lastModifiedTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when this row access policy was last modified, in milliseconds since the epoch.
2829
* `rowAccessPolicyReference` (*type:* `GoogleApi.BigQuery.V2.Model.RowAccessPolicyReference.t`, *default:* `nil`) - Required. Reference describing the ID of this row access policy.
2930
"""
@@ -34,6 +35,7 @@ defmodule GoogleApi.BigQuery.V2.Model.RowAccessPolicy do
3435
:creationTime => DateTime.t() | nil,
3536
:etag => String.t() | nil,
3637
:filterPredicate => String.t() | nil,
38+
:grantees => list(String.t()) | nil,
3739
:lastModifiedTime => DateTime.t() | nil,
3840
:rowAccessPolicyReference =>
3941
GoogleApi.BigQuery.V2.Model.RowAccessPolicyReference.t() | nil
@@ -42,6 +44,7 @@ defmodule GoogleApi.BigQuery.V2.Model.RowAccessPolicy do
4244
field(:creationTime, as: DateTime)
4345
field(:etag)
4446
field(:filterPredicate)
47+
field(:grantees, type: :list)
4548
field(:lastModifiedTime, as: DateTime)
4649
field(:rowAccessPolicyReference, as: GoogleApi.BigQuery.V2.Model.RowAccessPolicyReference)
4750
end
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.BigQuery.V2.Model.StoredColumnsUnusedReason do
19+
@moduledoc """
20+
If the stored column was not used, explain why.
21+
22+
## Attributes
23+
24+
* `code` (*type:* `String.t`, *default:* `nil`) - Specifies the high-level reason for the unused scenario, each reason must have a code associated.
25+
* `message` (*type:* `String.t`, *default:* `nil`) - Specifies the detailed description for the scenario.
26+
* `uncoveredColumns` (*type:* `list(String.t)`, *default:* `nil`) - Specifies which columns were not covered by the stored columns for the specified code up to 20 columns. This is populated when the code is STORED_COLUMNS_COVER_INSUFFICIENT and BASE_TABLE_HAS_CLS.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:code => String.t() | nil,
33+
:message => String.t() | nil,
34+
:uncoveredColumns => list(String.t()) | nil
35+
}
36+
37+
field(:code)
38+
field(:message)
39+
field(:uncoveredColumns, type: :list)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.StoredColumnsUnusedReason do
43+
def decode(value, options) do
44+
GoogleApi.BigQuery.V2.Model.StoredColumnsUnusedReason.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.StoredColumnsUnusedReason do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
end
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.BigQuery.V2.Model.StoredColumnsUsage do
19+
@moduledoc """
20+
Indicates the stored columns usage in the query.
21+
22+
## Attributes
23+
24+
* `baseTable` (*type:* `GoogleApi.BigQuery.V2.Model.TableReference.t`, *default:* `nil`) - Specifies the base table.
25+
* `isQueryAccelerated` (*type:* `boolean()`, *default:* `nil`) - Specifies whether the query was accelerated with stored columns.
26+
* `storedColumnsUnusedReasons` (*type:* `list(GoogleApi.BigQuery.V2.Model.StoredColumnsUnusedReason.t)`, *default:* `nil`) - If stored columns were not used, explain why.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:baseTable => GoogleApi.BigQuery.V2.Model.TableReference.t() | nil,
33+
:isQueryAccelerated => boolean() | nil,
34+
:storedColumnsUnusedReasons =>
35+
list(GoogleApi.BigQuery.V2.Model.StoredColumnsUnusedReason.t()) | nil
36+
}
37+
38+
field(:baseTable, as: GoogleApi.BigQuery.V2.Model.TableReference)
39+
field(:isQueryAccelerated)
40+
41+
field(:storedColumnsUnusedReasons,
42+
as: GoogleApi.BigQuery.V2.Model.StoredColumnsUnusedReason,
43+
type: :list
44+
)
45+
end
46+
47+
defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.StoredColumnsUsage do
48+
def decode(value, options) do
49+
GoogleApi.BigQuery.V2.Model.StoredColumnsUsage.decode(value, options)
50+
end
51+
end
52+
53+
defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.StoredColumnsUsage do
54+
def encode(value, options) do
55+
GoogleApi.Gax.ModelBase.encode(value, options)
56+
end
57+
end

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ defmodule GoogleApi.BigQuery.V2.Model.TrainingOptions do
5050
* `dataSplitMethod` (*type:* `String.t`, *default:* `nil`) - The data split type for training and evaluation, e.g. RANDOM.
5151
* `earlyStop` (*type:* `boolean()`, *default:* `nil`) - Whether to stop early when the loss doesn't improve significantly any more (compared to min_relative_progress). Used only for iterative training algorithms.
5252
* `includeDrift` (*type:* `boolean()`, *default:* `nil`) - Include drift when fitting an ARIMA model.
53+
* `forecastLimitUpperBound` (*type:* `float()`, *default:* `nil`) - The forecast limit upper bound that was used during ARIMA model training with limits.
5354
* `calculatePValues` (*type:* `boolean()`, *default:* `nil`) - Whether or not p-value test should be computed for this model. Only available for linear and logistic regression models.
5455
* `timeSeriesDataColumn` (*type:* `String.t`, *default:* `nil`) - Column to be designated as time series data for ARIMA model.
5556
* `enableGlobalExplain` (*type:* `boolean()`, *default:* `nil`) - If true, enable global explanation during training.
@@ -65,6 +66,7 @@ defmodule GoogleApi.BigQuery.V2.Model.TrainingOptions do
6566
* `maxParallelTrials` (*type:* `String.t`, *default:* `nil`) - Maximum number of trials to run in parallel.
6667
* `dartNormalizeType` (*type:* `String.t`, *default:* `nil`) - Type of normalization algorithm for boosted tree models using dart booster.
6768
* `feedbackType` (*type:* `String.t`, *default:* `nil`) - Feedback type that specifies which algorithm to run for matrix factorization.
69+
* `forecastLimitLowerBound` (*type:* `float()`, *default:* `nil`) - The forecast limit lower bound that was used during ARIMA model training with limits. To see more details of the algorithm: https://otexts.com/fpp2/limits.html
6870
* `boosterType` (*type:* `String.t`, *default:* `nil`) - Booster type for boosted tree models.
6971
* `minRelativeProgress` (*type:* `float()`, *default:* `nil`) - When early_stop is true, stops training when accuracy improvement is less than 'min_relative_progress'. Used only for iterative training algorithms.
7072
* `subsample` (*type:* `float()`, *default:* `nil`) - Subsample fraction of the training data to grow tree to prevent overfitting for boosted tree models.
@@ -145,6 +147,7 @@ defmodule GoogleApi.BigQuery.V2.Model.TrainingOptions do
145147
:dataSplitMethod => String.t() | nil,
146148
:earlyStop => boolean() | nil,
147149
:includeDrift => boolean() | nil,
150+
:forecastLimitUpperBound => float() | nil,
148151
:calculatePValues => boolean() | nil,
149152
:timeSeriesDataColumn => String.t() | nil,
150153
:enableGlobalExplain => boolean() | nil,
@@ -160,6 +163,7 @@ defmodule GoogleApi.BigQuery.V2.Model.TrainingOptions do
160163
:maxParallelTrials => String.t() | nil,
161164
:dartNormalizeType => String.t() | nil,
162165
:feedbackType => String.t() | nil,
166+
:forecastLimitLowerBound => float() | nil,
163167
:boosterType => String.t() | nil,
164168
:minRelativeProgress => float() | nil,
165169
:subsample => float() | nil,
@@ -237,6 +241,7 @@ defmodule GoogleApi.BigQuery.V2.Model.TrainingOptions do
237241
field(:dataSplitMethod)
238242
field(:earlyStop)
239243
field(:includeDrift)
244+
field(:forecastLimitUpperBound)
240245
field(:calculatePValues)
241246
field(:timeSeriesDataColumn)
242247
field(:enableGlobalExplain)
@@ -252,6 +257,7 @@ defmodule GoogleApi.BigQuery.V2.Model.TrainingOptions do
252257
field(:maxParallelTrials)
253258
field(:dartNormalizeType)
254259
field(:feedbackType)
260+
field(:forecastLimitLowerBound)
255261
field(:boosterType)
256262
field(:minRelativeProgress)
257263
field(:subsample)

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,20 @@ defmodule GoogleApi.BigQuery.V2.Model.VectorSearchStatistics do
2323
2424
* `indexUnusedReasons` (*type:* `list(GoogleApi.BigQuery.V2.Model.IndexUnusedReason.t)`, *default:* `nil`) - When `indexUsageMode` is `UNUSED` or `PARTIALLY_USED`, this field explains why indexes were not used in all or part of the vector search query. If `indexUsageMode` is `FULLY_USED`, this field is not populated.
2525
* `indexUsageMode` (*type:* `String.t`, *default:* `nil`) - Specifies the index usage mode for the query.
26+
* `storedColumnsUsages` (*type:* `list(GoogleApi.BigQuery.V2.Model.StoredColumnsUsage.t)`, *default:* `nil`) - Specifies the usage of stored columns in the query when stored columns are used in the query.
2627
"""
2728

2829
use GoogleApi.Gax.ModelBase
2930

3031
@type t :: %__MODULE__{
3132
:indexUnusedReasons => list(GoogleApi.BigQuery.V2.Model.IndexUnusedReason.t()) | nil,
32-
:indexUsageMode => String.t() | nil
33+
:indexUsageMode => String.t() | nil,
34+
:storedColumnsUsages => list(GoogleApi.BigQuery.V2.Model.StoredColumnsUsage.t()) | nil
3335
}
3436

3537
field(:indexUnusedReasons, as: GoogleApi.BigQuery.V2.Model.IndexUnusedReason, type: :list)
3638
field(:indexUsageMode)
39+
field(:storedColumnsUsages, as: GoogleApi.BigQuery.V2.Model.StoredColumnsUsage, type: :list)
3740
end
3841

3942
defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.VectorSearchStatistics do

0 commit comments

Comments
 (0)